File size: 596 Bytes
bc20498
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { createSeparator } from "@melt-ui/svelte";
import { createBitAttrs, getOptionUpdater, removeUndefined } from "../../internal/index.js";
function getSeparatorData() {
    const NAME = "separator";
    const PARTS = ["root"];
    return {
        NAME,
        PARTS,
    };
}
export function setCtx(props) {
    const { NAME, PARTS } = getSeparatorData();
    const getAttrs = createBitAttrs(NAME, PARTS);
    const separator = { ...createSeparator(removeUndefined(props)), getAttrs };
    return {
        ...separator,
        updateOption: getOptionUpdater(separator.options),
    };
}