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