@balikjs/mobile 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/Alert/Alert.js +82 -0
- package/dist/Alert/Alert.module.css.js +25 -0
- package/dist/Avatar/Avatar.js +60 -0
- package/dist/Avatar/Avatar.module.css.js +27 -0
- package/dist/BackToTop/BackToTop.js +55 -0
- package/dist/BackToTop/BackToTop.module.css.js +11 -0
- package/dist/Badge/Badge.js +59 -0
- package/dist/Badge/Badge.module.css.js +45 -0
- package/dist/BottomNavigation/BottomNavigation.js +48 -0
- package/dist/BottomNavigation/BottomNavigation.module.css.js +13 -0
- package/dist/BottomSheet/BottomSheet.js +120 -0
- package/dist/BottomSheet/BottomSheet.module.css.js +25 -0
- package/dist/Button/Button.js +56 -0
- package/dist/Button/Button.module.css.js +31 -0
- package/dist/Card/Card.js +22 -0
- package/dist/Card/Card.module.css.js +7 -0
- package/dist/Checkbox/Checkbox.js +65 -0
- package/dist/Checkbox/Checkbox.module.css.js +27 -0
- package/dist/Clipboard/Clipboard.js +60 -0
- package/dist/Clipboard/Clipboard.module.css.js +21 -0
- package/dist/CloseButton/CloseButton.js +37 -0
- package/dist/CloseButton/CloseButton.module.css.js +21 -0
- package/dist/Confirm/Confirm.js +146 -0
- package/dist/Confirm/Confirm.module.css.js +7 -0
- package/dist/DatePicker/DatePicker.js +149 -0
- package/dist/DatePicker/DatePicker.module.css.js +29 -0
- package/dist/Dialog/Dialog.js +142 -0
- package/dist/Dialog/Dialog.module.css.js +29 -0
- package/dist/Divider/Divider.js +27 -0
- package/dist/Divider/Divider.module.css.js +9 -0
- package/dist/Drawer/Drawer.js +59 -0
- package/dist/Drawer/Drawer.module.css.js +19 -0
- package/dist/Empty/Empty.js +25 -0
- package/dist/Empty/Empty.module.css.js +9 -0
- package/dist/Fab/Fab.js +79 -0
- package/dist/Fab/Fab.module.css.js +19 -0
- package/dist/Field/Field.js +70 -0
- package/dist/Field/Field.module.css.js +21 -0
- package/dist/Fieldset/Fieldset.js +31 -0
- package/dist/Fieldset/Fieldset.module.css.js +9 -0
- package/dist/FileUpload/FileUpload.js +174 -0
- package/dist/FileUpload/FileUpload.module.css.js +35 -0
- package/dist/FilterGroup/FilterGroup.js +70 -0
- package/dist/FilterGroup/FilterGroup.module.css.js +23 -0
- package/dist/Input/Input.js +68 -0
- package/dist/Input/Input.module.css.js +35 -0
- package/dist/Link/Link.js +22 -0
- package/dist/Link/Link.module.css.js +7 -0
- package/dist/MoneyInput/MoneyInput.js +106 -0
- package/dist/MoneyInput/MoneyInput.module.css.js +9 -0
- package/dist/Pagination/Pagination.js +67 -0
- package/dist/Pagination/Pagination.module.css.js +11 -0
- package/dist/Picker/Picker.js +75 -0
- package/dist/Picker/Picker.module.css.js +15 -0
- package/dist/PickerView/PickerView.js +89 -0
- package/dist/PickerView/PickerView.module.css.js +21 -0
- package/dist/PickerView/wheel.js +146 -0
- package/dist/PinInput/PinInput.js +80 -0
- package/dist/PinInput/PinInput.module.css.js +23 -0
- package/dist/Popover/Popover.js +107 -0
- package/dist/Popover/Popover.module.css.js +17 -0
- package/dist/Progress/Progress.js +80 -0
- package/dist/Progress/Progress.module.css.js +27 -0
- package/dist/QrCode/QrCode.js +78 -0
- package/dist/QrCode/QrCode.module.css.js +15 -0
- package/dist/RadioGroup/Radio.js +42 -0
- package/dist/RadioGroup/Radio.module.css.js +23 -0
- package/dist/RadioGroup/RadioGroup.js +29 -0
- package/dist/RadioGroup/RadioGroup.module.css.js +9 -0
- package/dist/RatingGroup/RatingGroup.js +87 -0
- package/dist/RatingGroup/RatingGroup.module.css.js +13 -0
- package/dist/SafeArea/SafeArea.js +24 -0
- package/dist/SafeArea/SafeArea.module.css.js +15 -0
- package/dist/SearchInput/SearchInput.js +76 -0
- package/dist/SearchInput/SearchInput.module.css.js +11 -0
- package/dist/Select/Select.js +122 -0
- package/dist/Select/Select.module.css.js +29 -0
- package/dist/SelectPc/Select.js +130 -0
- package/dist/SelectPc/SelectPc.module.css.js +31 -0
- package/dist/Skeleton/Skeleton.js +42 -0
- package/dist/Skeleton/Skeleton.module.css.js +11 -0
- package/dist/Slider/Slider.js +63 -0
- package/dist/Slider/Slider.module.css.js +19 -0
- package/dist/Spinner/Spinner.js +31 -0
- package/dist/Spinner/Spinner.module.css.js +17 -0
- package/dist/Steps/Steps.js +173 -0
- package/dist/Steps/Steps.module.css.js +31 -0
- package/dist/StickyHeader/StickyHeader.js +30 -0
- package/dist/StickyHeader/StickyHeader.module.css.js +9 -0
- package/dist/Switch/Switch.js +49 -0
- package/dist/Switch/Switch.module.css.js +25 -0
- package/dist/Tabs/Tabs.js +55 -0
- package/dist/Tabs/Tabs.module.css.js +13 -0
- package/dist/Tag/Tag.js +58 -0
- package/dist/Tag/Tag.module.css.js +35 -0
- package/dist/Textarea/Textarea.js +32 -0
- package/dist/Textarea/Textarea.module.css.js +21 -0
- package/dist/Toast/Toast.js +137 -0
- package/dist/Toast/Toast.module.css.js +43 -0
- package/dist/Toggle/Toggle.js +33 -0
- package/dist/Toggle/Toggle.module.css.js +9 -0
- package/dist/ToggleGroup/ToggleGroup.js +42 -0
- package/dist/ToggleGroup/ToggleGroup.module.css.js +19 -0
- package/dist/Tooltip/Tooltip.js +71 -0
- package/dist/Tooltip/Tooltip.module.css.js +13 -0
- package/dist/index.js +164 -3683
- package/dist/styles.css +1 -1
- package/dist/utils/bem.js +6 -0
- package/dist/utils/cn.js +6 -0
- package/dist/utils/useScrollLock.js +16 -0
- package/package.json +3 -198
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { createComponent as r, mergeProps as O, insert as x, effect as a, className as s, Portal as y, memo as v, setAttribute as $, template as S, delegateEvents as w } from "solid-js/web";
|
|
2
|
+
import { mergeProps as I, splitProps as L, createSignal as T, createMemo as V, For as _ } from "solid-js";
|
|
3
|
+
import { Select as n } from "@ark-ui/solid";
|
|
4
|
+
import { ChevronDown as k } from "lucide-solid";
|
|
5
|
+
import { bem as E } from "../utils/bem.js";
|
|
6
|
+
import { cn as M } from "../utils/cn.js";
|
|
7
|
+
import t from "./SelectPc.module.css.js";
|
|
8
|
+
var R = /* @__PURE__ */ S("<span>"), A = /* @__PURE__ */ S("<div><input>");
|
|
9
|
+
const B = {
|
|
10
|
+
outline: t.triggerVariantOutline
|
|
11
|
+
}, D = {
|
|
12
|
+
xs: t.triggerSizeXs,
|
|
13
|
+
sm: t.triggerSizeSm,
|
|
14
|
+
md: t.triggerSizeMd,
|
|
15
|
+
lg: t.triggerSizeLg,
|
|
16
|
+
xl: t.triggerSizeXl
|
|
17
|
+
}, F = {
|
|
18
|
+
variant: "outline",
|
|
19
|
+
size: "md",
|
|
20
|
+
disabled: !1,
|
|
21
|
+
filter: !1
|
|
22
|
+
};
|
|
23
|
+
function W(z) {
|
|
24
|
+
const c = I(F, z), g = c.onOpenChange, [i, b] = L(c, ["variant", "size", "class", "collection", "placeholder", "disabled", "filter", "filterPlaceholder", "defaultValue"]), [u, d] = T(""), m = () => {
|
|
25
|
+
var e;
|
|
26
|
+
return ((e = i.collection) == null ? void 0 : e.items) ?? [];
|
|
27
|
+
}, P = V(() => {
|
|
28
|
+
const e = u().toLowerCase();
|
|
29
|
+
return e ? m().filter((o) => o.label.toLowerCase().includes(e)) : m();
|
|
30
|
+
}), C = `var(--b-radius-l2-${i.size})`;
|
|
31
|
+
return r(n.Root, O({
|
|
32
|
+
get class() {
|
|
33
|
+
return t.root;
|
|
34
|
+
}
|
|
35
|
+
}, b, {
|
|
36
|
+
get collection() {
|
|
37
|
+
return i.collection;
|
|
38
|
+
},
|
|
39
|
+
get disabled() {
|
|
40
|
+
return i.disabled;
|
|
41
|
+
},
|
|
42
|
+
closeOnSelect: !0,
|
|
43
|
+
lazyMount: !0,
|
|
44
|
+
unmountOnExit: !0,
|
|
45
|
+
positioning: {
|
|
46
|
+
sameWidth: !0
|
|
47
|
+
},
|
|
48
|
+
onOpenChange: (e) => {
|
|
49
|
+
e.open || d(""), typeof g == "function" && g(e);
|
|
50
|
+
},
|
|
51
|
+
get children() {
|
|
52
|
+
return [r(n.Control, {
|
|
53
|
+
get children() {
|
|
54
|
+
return r(n.Trigger, {
|
|
55
|
+
get class() {
|
|
56
|
+
return M(E("balik-select", i.variant, i.size), t.triggerBase, B[i.variant], D[i.size], i.class);
|
|
57
|
+
},
|
|
58
|
+
get children() {
|
|
59
|
+
return [r(n.ValueText, {
|
|
60
|
+
get placeholder() {
|
|
61
|
+
return i.placeholder;
|
|
62
|
+
}
|
|
63
|
+
}), (() => {
|
|
64
|
+
var e = R();
|
|
65
|
+
return x(e, r(k, {
|
|
66
|
+
size: "1em",
|
|
67
|
+
"aria-hidden": "true"
|
|
68
|
+
})), a(() => s(e, t.indicator)), e;
|
|
69
|
+
})()];
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}), r(y, {
|
|
74
|
+
get children() {
|
|
75
|
+
return r(n.Positioner, {
|
|
76
|
+
get children() {
|
|
77
|
+
return r(n.Content, {
|
|
78
|
+
get class() {
|
|
79
|
+
return t.content;
|
|
80
|
+
},
|
|
81
|
+
style: {
|
|
82
|
+
"--_border-radius": C
|
|
83
|
+
},
|
|
84
|
+
get children() {
|
|
85
|
+
return [v(() => v(() => !!i.filter)() && (() => {
|
|
86
|
+
var e = A(), o = e.firstChild;
|
|
87
|
+
return o.$$input = (l) => d(l.target.value), a((l) => {
|
|
88
|
+
var p = t.filterWrapper, f = t.filterInput, h = i.filterPlaceholder || "Search...";
|
|
89
|
+
return p !== l.e && s(e, l.e = p), f !== l.t && s(o, l.t = f), h !== l.a && $(o, "placeholder", l.a = h), l;
|
|
90
|
+
}, {
|
|
91
|
+
e: void 0,
|
|
92
|
+
t: void 0,
|
|
93
|
+
a: void 0
|
|
94
|
+
}), a(() => o.value = u()), e;
|
|
95
|
+
})()), r(n.ItemGroup, {
|
|
96
|
+
get children() {
|
|
97
|
+
return r(_, {
|
|
98
|
+
get each() {
|
|
99
|
+
return P();
|
|
100
|
+
},
|
|
101
|
+
children: (e) => r(n.Item, {
|
|
102
|
+
item: e,
|
|
103
|
+
get class() {
|
|
104
|
+
return t.item;
|
|
105
|
+
},
|
|
106
|
+
get children() {
|
|
107
|
+
return r(n.ItemText, {
|
|
108
|
+
get children() {
|
|
109
|
+
return e.label;
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
})
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
})];
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
}), r(n.HiddenSelect, {})];
|
|
123
|
+
}
|
|
124
|
+
}));
|
|
125
|
+
}
|
|
126
|
+
W.Original = n;
|
|
127
|
+
w(["input"]);
|
|
128
|
+
export {
|
|
129
|
+
W as SelectPc
|
|
130
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const r = "_root_xp6lr_1", t = "_triggerBase_xp6lr_5", e = "_indicator_xp6lr_39", i = "_triggerVariantOutline_xp6lr_43", g = "_triggerSizeXs_xp6lr_53", _ = "_triggerSizeSm_xp6lr_61", n = "_triggerSizeMd_xp6lr_69", l = "_triggerSizeLg_xp6lr_77", o = "_triggerSizeXl_xp6lr_85", p = "_content_xp6lr_105", s = "_filterWrapper_xp6lr_118", c = "_filterInput_xp6lr_123", S = "_item_xp6lr_145", a = {
|
|
2
|
+
root: r,
|
|
3
|
+
triggerBase: t,
|
|
4
|
+
indicator: e,
|
|
5
|
+
triggerVariantOutline: i,
|
|
6
|
+
triggerSizeXs: g,
|
|
7
|
+
triggerSizeSm: _,
|
|
8
|
+
triggerSizeMd: n,
|
|
9
|
+
triggerSizeLg: l,
|
|
10
|
+
triggerSizeXl: o,
|
|
11
|
+
content: p,
|
|
12
|
+
filterWrapper: s,
|
|
13
|
+
filterInput: c,
|
|
14
|
+
item: S
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
p as content,
|
|
18
|
+
a as default,
|
|
19
|
+
c as filterInput,
|
|
20
|
+
s as filterWrapper,
|
|
21
|
+
e as indicator,
|
|
22
|
+
S as item,
|
|
23
|
+
r as root,
|
|
24
|
+
t as triggerBase,
|
|
25
|
+
l as triggerSizeLg,
|
|
26
|
+
n as triggerSizeMd,
|
|
27
|
+
_ as triggerSizeSm,
|
|
28
|
+
o as triggerSizeXl,
|
|
29
|
+
g as triggerSizeXs,
|
|
30
|
+
i as triggerVariantOutline
|
|
31
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { spread as h, mergeProps as u, memo as f, insert as g, createComponent as P, effect as w, className as y, setStyleProperty as n, template as l } from "solid-js/web";
|
|
2
|
+
import { splitProps as S, mergeProps as _, createMemo as b, For as A } from "solid-js";
|
|
3
|
+
import { bem as C } from "../utils/bem.js";
|
|
4
|
+
import { cn as F } from "../utils/cn.js";
|
|
5
|
+
import a from "./Skeleton.module.css.js";
|
|
6
|
+
var $ = /* @__PURE__ */ l("<div>"), k = /* @__PURE__ */ l("<span role=presentation data-part=item aria-hidden=true>");
|
|
7
|
+
const x = {
|
|
8
|
+
count: 1,
|
|
9
|
+
circle: !1
|
|
10
|
+
};
|
|
11
|
+
function O(m) {
|
|
12
|
+
const [r, p] = S(_(x, m), ["width", "height", "circle", "count", "class"]), d = b(() => Array.from({
|
|
13
|
+
length: r.count
|
|
14
|
+
}, (o, t) => t)), v = () => F(C(), a.base, r.circle && a.circle, r.class);
|
|
15
|
+
return (() => {
|
|
16
|
+
var o = $();
|
|
17
|
+
return h(o, u(p, {
|
|
18
|
+
get class() {
|
|
19
|
+
return f(() => r.count > 1)() ? a.wrapper : void 0;
|
|
20
|
+
},
|
|
21
|
+
"data-part": "root"
|
|
22
|
+
}), !1, !0), g(o, P(A, {
|
|
23
|
+
get each() {
|
|
24
|
+
return d();
|
|
25
|
+
},
|
|
26
|
+
children: () => (() => {
|
|
27
|
+
var t = k();
|
|
28
|
+
return w((e) => {
|
|
29
|
+
var i = v(), s = r.width || void 0, c = r.height || void 0;
|
|
30
|
+
return i !== e.e && y(t, e.e = i), s !== e.t && n(t, "width", e.t = s), c !== e.a && n(t, "height", e.a = c), e;
|
|
31
|
+
}, {
|
|
32
|
+
e: void 0,
|
|
33
|
+
t: void 0,
|
|
34
|
+
a: void 0
|
|
35
|
+
}), t;
|
|
36
|
+
})()
|
|
37
|
+
})), o;
|
|
38
|
+
})();
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
O as Skeleton
|
|
42
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { createComponent as e, mergeProps as a, memo as l } from "solid-js/web";
|
|
2
|
+
import { splitProps as c, mergeProps as i } from "solid-js";
|
|
3
|
+
import { Slider as r } from "@ark-ui/solid";
|
|
4
|
+
import { bem as m } from "../utils/bem.js";
|
|
5
|
+
import { cn as g } from "../utils/cn.js";
|
|
6
|
+
import t from "./Slider.module.css.js";
|
|
7
|
+
const u = {
|
|
8
|
+
min: 0,
|
|
9
|
+
max: 100,
|
|
10
|
+
step: 1
|
|
11
|
+
};
|
|
12
|
+
function d(o) {
|
|
13
|
+
const [n, s] = c(i(u, o), ["label", "class", "children", "defaultValue"]);
|
|
14
|
+
return e(r.Root, a(s, {
|
|
15
|
+
get class() {
|
|
16
|
+
return g(m(), t.root, n.class);
|
|
17
|
+
},
|
|
18
|
+
get children() {
|
|
19
|
+
return [l(() => l(() => !!n.label)() && e(r.Label, {
|
|
20
|
+
get class() {
|
|
21
|
+
return t.label;
|
|
22
|
+
},
|
|
23
|
+
get children() {
|
|
24
|
+
return n.label;
|
|
25
|
+
}
|
|
26
|
+
})), e(r.Control, {
|
|
27
|
+
get class() {
|
|
28
|
+
return t.control;
|
|
29
|
+
},
|
|
30
|
+
get children() {
|
|
31
|
+
return [e(r.Track, {
|
|
32
|
+
get class() {
|
|
33
|
+
return t.track;
|
|
34
|
+
},
|
|
35
|
+
get children() {
|
|
36
|
+
return e(r.Range, {
|
|
37
|
+
get class() {
|
|
38
|
+
return t.range;
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}), e(r.Thumb, {
|
|
43
|
+
index: 0,
|
|
44
|
+
get class() {
|
|
45
|
+
return t.thumb;
|
|
46
|
+
},
|
|
47
|
+
get children() {
|
|
48
|
+
return [e(r.DraggingIndicator, {
|
|
49
|
+
get class() {
|
|
50
|
+
return t.indicator;
|
|
51
|
+
}
|
|
52
|
+
}), e(r.HiddenInput, {})];
|
|
53
|
+
}
|
|
54
|
+
})];
|
|
55
|
+
}
|
|
56
|
+
})];
|
|
57
|
+
}
|
|
58
|
+
}));
|
|
59
|
+
}
|
|
60
|
+
d.Original = r;
|
|
61
|
+
export {
|
|
62
|
+
d as Slider
|
|
63
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const t = "_root_gmqs2_1", o = "_label_gmqs2_9", _ = "_control_gmqs2_15", s = "_track_gmqs2_23", c = "_range_gmqs2_31", n = "_thumb_gmqs2_38", r = "_indicator_gmqs2_54", a = {
|
|
2
|
+
root: t,
|
|
3
|
+
label: o,
|
|
4
|
+
control: _,
|
|
5
|
+
track: s,
|
|
6
|
+
range: c,
|
|
7
|
+
thumb: n,
|
|
8
|
+
indicator: r
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
_ as control,
|
|
12
|
+
a as default,
|
|
13
|
+
r as indicator,
|
|
14
|
+
o as label,
|
|
15
|
+
c as range,
|
|
16
|
+
t as root,
|
|
17
|
+
n as thumb,
|
|
18
|
+
s as track
|
|
19
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { createComponent as o } from "solid-js/web";
|
|
2
|
+
import { splitProps as t, mergeProps as i } from "solid-js";
|
|
3
|
+
import { Loader2 as m } from "lucide-solid";
|
|
4
|
+
import { bem as a } from "../utils/bem.js";
|
|
5
|
+
import { cn as l } from "../utils/cn.js";
|
|
6
|
+
import s from "./Spinner.module.css.js";
|
|
7
|
+
const n = {
|
|
8
|
+
xs: s.sizeXs,
|
|
9
|
+
sm: s.sizeSm,
|
|
10
|
+
md: s.sizeMd,
|
|
11
|
+
lg: s.sizeLg,
|
|
12
|
+
xl: s.sizeXl
|
|
13
|
+
}, p = {
|
|
14
|
+
size: "md"
|
|
15
|
+
};
|
|
16
|
+
function u(r) {
|
|
17
|
+
const [e] = t(i(p, r), ["size", "label", "class"]);
|
|
18
|
+
return o(m, {
|
|
19
|
+
role: "status",
|
|
20
|
+
"data-part": "root",
|
|
21
|
+
get "aria-label"() {
|
|
22
|
+
return e.label || "Loading";
|
|
23
|
+
},
|
|
24
|
+
get class() {
|
|
25
|
+
return l(a("balik-spinner", e.size), s.base, n[e.size], e.class);
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
u as Spinner
|
|
31
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const s = "_base_w20em_1", e = "_sizeXs_w20em_6", _ = "_sizeSm_w20em_11", i = "_sizeMd_w20em_16", z = "_sizeLg_w20em_21", t = "_sizeXl_w20em_26", m = {
|
|
2
|
+
base: s,
|
|
3
|
+
sizeXs: e,
|
|
4
|
+
sizeSm: _,
|
|
5
|
+
sizeMd: i,
|
|
6
|
+
sizeLg: z,
|
|
7
|
+
sizeXl: t
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
s as base,
|
|
11
|
+
m as default,
|
|
12
|
+
z as sizeLg,
|
|
13
|
+
i as sizeMd,
|
|
14
|
+
_ as sizeSm,
|
|
15
|
+
t as sizeXl,
|
|
16
|
+
e as sizeXs
|
|
17
|
+
};
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { createComponent as n, mergeProps as l, spread as C, insert as d, template as v } from "solid-js/web";
|
|
2
|
+
import { splitProps as o, mergeProps as x, createSignal as P, useContext as T, onMount as I, onCleanup as _, createContext as $ } from "solid-js";
|
|
3
|
+
import { Steps as i, useStepsItemContext as L } from "@ark-ui/solid";
|
|
4
|
+
import { Check as N } from "lucide-solid";
|
|
5
|
+
import { bem as R } from "../utils/bem.js";
|
|
6
|
+
import { cn as a } from "../utils/cn.js";
|
|
7
|
+
import s from "./Steps.module.css.js";
|
|
8
|
+
var p = /* @__PURE__ */ v("<span>");
|
|
9
|
+
const M = {
|
|
10
|
+
vertical: !1
|
|
11
|
+
}, m = $();
|
|
12
|
+
function O() {
|
|
13
|
+
const e = L()();
|
|
14
|
+
return e.completed ? n(N, {
|
|
15
|
+
size: 14,
|
|
16
|
+
"aria-hidden": "true"
|
|
17
|
+
}) : (() => {
|
|
18
|
+
var t = p();
|
|
19
|
+
return d(t, () => e.index + 1), t;
|
|
20
|
+
})();
|
|
21
|
+
}
|
|
22
|
+
function b(r) {
|
|
23
|
+
const [e, t] = o(x(M, r), ["class", "children", "vertical", "defaultStep", "count"]), [c, g] = P(0), h = () => g((u) => u + 1), f = () => g((u) => Math.max(0, u - 1)), S = () => e.count ?? c();
|
|
24
|
+
return n(m.Provider, {
|
|
25
|
+
value: {
|
|
26
|
+
register: h,
|
|
27
|
+
unregister: f
|
|
28
|
+
},
|
|
29
|
+
get children() {
|
|
30
|
+
return n(i.Root, l(t, {
|
|
31
|
+
get count() {
|
|
32
|
+
return S();
|
|
33
|
+
},
|
|
34
|
+
get class() {
|
|
35
|
+
return a(R(), s.root, e.vertical && s.vertical, e.class);
|
|
36
|
+
},
|
|
37
|
+
get children() {
|
|
38
|
+
return e.children;
|
|
39
|
+
}
|
|
40
|
+
}));
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
function q(r) {
|
|
45
|
+
const [e, t] = o(r, ["class", "children"]);
|
|
46
|
+
return n(i.List, l(t, {
|
|
47
|
+
get class() {
|
|
48
|
+
return a(s.list, e.class);
|
|
49
|
+
},
|
|
50
|
+
get children() {
|
|
51
|
+
return e.children;
|
|
52
|
+
}
|
|
53
|
+
}));
|
|
54
|
+
}
|
|
55
|
+
function w(r) {
|
|
56
|
+
const [e, t] = o(r, ["class", "children"]), c = T(m);
|
|
57
|
+
return I(() => c == null ? void 0 : c.register()), _(() => c == null ? void 0 : c.unregister()), n(i.Item, l(t, {
|
|
58
|
+
get class() {
|
|
59
|
+
return a(s.item, e.class);
|
|
60
|
+
},
|
|
61
|
+
get children() {
|
|
62
|
+
return e.children;
|
|
63
|
+
}
|
|
64
|
+
}));
|
|
65
|
+
}
|
|
66
|
+
function B(r) {
|
|
67
|
+
const [e, t] = o(r, ["class", "children"]);
|
|
68
|
+
return n(i.Trigger, l(t, {
|
|
69
|
+
get class() {
|
|
70
|
+
return a(s.itemTrigger, e.class);
|
|
71
|
+
},
|
|
72
|
+
get children() {
|
|
73
|
+
return e.children || [n(k, {}), n(y, {})];
|
|
74
|
+
}
|
|
75
|
+
}));
|
|
76
|
+
}
|
|
77
|
+
function k(r) {
|
|
78
|
+
const [e, t] = o(r, ["class"]);
|
|
79
|
+
return n(i.Indicator, l(t, {
|
|
80
|
+
get class() {
|
|
81
|
+
return a(s.indicator, e.class);
|
|
82
|
+
},
|
|
83
|
+
get children() {
|
|
84
|
+
return n(O, {});
|
|
85
|
+
}
|
|
86
|
+
}));
|
|
87
|
+
}
|
|
88
|
+
function y(r) {
|
|
89
|
+
const [e, t] = o(r, ["class"]);
|
|
90
|
+
return (() => {
|
|
91
|
+
var c = p();
|
|
92
|
+
return C(c, l(t, {
|
|
93
|
+
get class() {
|
|
94
|
+
return a(s.itemTitle, e.class);
|
|
95
|
+
}
|
|
96
|
+
}), !1, !0), d(c, () => r.children), c;
|
|
97
|
+
})();
|
|
98
|
+
}
|
|
99
|
+
function G(r) {
|
|
100
|
+
const [e, t] = o(r, ["class"]);
|
|
101
|
+
return n(i.Separator, l(t, {
|
|
102
|
+
get class() {
|
|
103
|
+
return a(s.separator, e.class);
|
|
104
|
+
}
|
|
105
|
+
}));
|
|
106
|
+
}
|
|
107
|
+
function H(r) {
|
|
108
|
+
const [e, t] = o(r, ["class", "children"]);
|
|
109
|
+
return n(i.Content, l(t, {
|
|
110
|
+
get class() {
|
|
111
|
+
return a(s.content, e.class);
|
|
112
|
+
},
|
|
113
|
+
get children() {
|
|
114
|
+
return e.children;
|
|
115
|
+
}
|
|
116
|
+
}));
|
|
117
|
+
}
|
|
118
|
+
function J(r) {
|
|
119
|
+
const [e, t] = o(r, ["class", "children"]);
|
|
120
|
+
return n(i.CompletedContent, l(t, {
|
|
121
|
+
get class() {
|
|
122
|
+
return a(s.completedContent, e.class);
|
|
123
|
+
},
|
|
124
|
+
get children() {
|
|
125
|
+
return e.children;
|
|
126
|
+
}
|
|
127
|
+
}));
|
|
128
|
+
}
|
|
129
|
+
function K(r) {
|
|
130
|
+
const [e, t] = o(r, ["class", "children"]);
|
|
131
|
+
return n(i.PrevTrigger, l(t, {
|
|
132
|
+
get class() {
|
|
133
|
+
return a(s.prevTrigger, e.class);
|
|
134
|
+
},
|
|
135
|
+
get children() {
|
|
136
|
+
return e.children || "Previous";
|
|
137
|
+
}
|
|
138
|
+
}));
|
|
139
|
+
}
|
|
140
|
+
function Q(r) {
|
|
141
|
+
const [e, t] = o(r, ["class", "children"]);
|
|
142
|
+
return n(i.NextTrigger, l(t, {
|
|
143
|
+
get class() {
|
|
144
|
+
return a(s.nextTrigger, e.class);
|
|
145
|
+
},
|
|
146
|
+
get children() {
|
|
147
|
+
return e.children || "Next";
|
|
148
|
+
}
|
|
149
|
+
}));
|
|
150
|
+
}
|
|
151
|
+
function V(r) {
|
|
152
|
+
const [e, t] = o(r, ["class"]);
|
|
153
|
+
return n(i.Progress, l(t, {
|
|
154
|
+
get class() {
|
|
155
|
+
return a(s.progress, e.class);
|
|
156
|
+
}
|
|
157
|
+
}));
|
|
158
|
+
}
|
|
159
|
+
b.Original = i;
|
|
160
|
+
export {
|
|
161
|
+
b as Steps,
|
|
162
|
+
J as StepsCompletedContent,
|
|
163
|
+
H as StepsContent,
|
|
164
|
+
k as StepsIndicator,
|
|
165
|
+
w as StepsItem,
|
|
166
|
+
q as StepsList,
|
|
167
|
+
Q as StepsNextTrigger,
|
|
168
|
+
K as StepsPrevTrigger,
|
|
169
|
+
V as StepsProgress,
|
|
170
|
+
G as StepsSeparator,
|
|
171
|
+
y as StepsTitle,
|
|
172
|
+
B as StepsTrigger
|
|
173
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const t = "_root_upu3v_1", e = "_list_upu3v_7", r = "_item_upu3v_14", o = "_itemTrigger_upu3v_20", _ = "_itemTitle_upu3v_34", i = "_indicator_upu3v_46", n = "_separator_upu3v_75", s = "_content_upu3v_87", u = "_completedContent_upu3v_95", c = "_progress_upu3v_103", p = "_prevTrigger_upu3v_113", g = "_nextTrigger_upu3v_114", v = "_vertical_upu3v_161", a = {
|
|
2
|
+
root: t,
|
|
3
|
+
list: e,
|
|
4
|
+
item: r,
|
|
5
|
+
itemTrigger: o,
|
|
6
|
+
itemTitle: _,
|
|
7
|
+
indicator: i,
|
|
8
|
+
separator: n,
|
|
9
|
+
content: s,
|
|
10
|
+
completedContent: u,
|
|
11
|
+
progress: c,
|
|
12
|
+
prevTrigger: p,
|
|
13
|
+
nextTrigger: g,
|
|
14
|
+
vertical: v
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
u as completedContent,
|
|
18
|
+
s as content,
|
|
19
|
+
a as default,
|
|
20
|
+
i as indicator,
|
|
21
|
+
r as item,
|
|
22
|
+
_ as itemTitle,
|
|
23
|
+
o as itemTrigger,
|
|
24
|
+
e as list,
|
|
25
|
+
g as nextTrigger,
|
|
26
|
+
p as prevTrigger,
|
|
27
|
+
c as progress,
|
|
28
|
+
t as root,
|
|
29
|
+
n as separator,
|
|
30
|
+
v as vertical
|
|
31
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { spread as p, mergeProps as a, insert as l, template as m } from "solid-js/web";
|
|
2
|
+
import { splitProps as f, mergeProps as i } from "solid-js";
|
|
3
|
+
import { bem as c } from "../utils/bem.js";
|
|
4
|
+
import { cn as n } from "../utils/cn.js";
|
|
5
|
+
import o from "./StickyHeader.module.css.js";
|
|
6
|
+
var d = /* @__PURE__ */ m("<div>");
|
|
7
|
+
const u = {
|
|
8
|
+
offsetTop: 0
|
|
9
|
+
};
|
|
10
|
+
function T(s) {
|
|
11
|
+
const [r, e] = f(i(u, s), ["class", "children", "offsetTop", "shadow"]);
|
|
12
|
+
return (() => {
|
|
13
|
+
var t = d();
|
|
14
|
+
return p(t, a(e, {
|
|
15
|
+
get class() {
|
|
16
|
+
return n(c(), o.base, r.shadow && o.shadow, r.class);
|
|
17
|
+
},
|
|
18
|
+
get style() {
|
|
19
|
+
return {
|
|
20
|
+
top: `${r.offsetTop}px`,
|
|
21
|
+
...typeof e.style == "object" ? e.style : void 0
|
|
22
|
+
};
|
|
23
|
+
},
|
|
24
|
+
"data-part": "root"
|
|
25
|
+
}), !1, !0), l(t, () => r.children), t;
|
|
26
|
+
})();
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
T as StickyHeader
|
|
30
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { createComponent as t, mergeProps as n, memo as o } from "solid-js/web";
|
|
2
|
+
import { splitProps as m, mergeProps as c } from "solid-js";
|
|
3
|
+
import { Switch as r } from "@ark-ui/solid";
|
|
4
|
+
import { bem as a } from "../utils/bem.js";
|
|
5
|
+
import { cn as p } from "../utils/cn.js";
|
|
6
|
+
import e from "./Switch.module.css.js";
|
|
7
|
+
const d = {
|
|
8
|
+
xs: e.sizeXs,
|
|
9
|
+
sm: e.sizeSm,
|
|
10
|
+
md: e.sizeMd,
|
|
11
|
+
lg: e.sizeLg,
|
|
12
|
+
xl: e.sizeXl,
|
|
13
|
+
"2xl": e.size2xl
|
|
14
|
+
}, g = {
|
|
15
|
+
size: "md"
|
|
16
|
+
};
|
|
17
|
+
function u(i) {
|
|
18
|
+
const [s, l] = m(c(g, i), ["class", "children", "size", "defaultChecked"]);
|
|
19
|
+
return t(r.Root, n(l, {
|
|
20
|
+
get class() {
|
|
21
|
+
return p(a(), e.root, d[s.size], s.class);
|
|
22
|
+
},
|
|
23
|
+
get children() {
|
|
24
|
+
return [t(r.Control, {
|
|
25
|
+
get class() {
|
|
26
|
+
return e.control;
|
|
27
|
+
},
|
|
28
|
+
get children() {
|
|
29
|
+
return t(r.Thumb, {
|
|
30
|
+
get class() {
|
|
31
|
+
return e.thumb;
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}), o(() => o(() => !!s.children)() && t(r.Label, {
|
|
36
|
+
get class() {
|
|
37
|
+
return e.label;
|
|
38
|
+
},
|
|
39
|
+
get children() {
|
|
40
|
+
return s.children;
|
|
41
|
+
}
|
|
42
|
+
})), t(r.HiddenInput, {})];
|
|
43
|
+
}
|
|
44
|
+
}));
|
|
45
|
+
}
|
|
46
|
+
u.Original = r;
|
|
47
|
+
export {
|
|
48
|
+
u as Switch
|
|
49
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const s = "_root_eevss_1", e = "_control_eevss_16", _ = "_thumb_eevss_42", o = "_label_eevss_68", t = "_sizeXs_eevss_80", i = "_sizeSm_eevss_93", z = "_sizeMd_eevss_106", l = "_sizeLg_eevss_119", c = "_sizeXl_eevss_132", n = "_size2xl_eevss_145", v = {
|
|
2
|
+
root: s,
|
|
3
|
+
control: e,
|
|
4
|
+
thumb: _,
|
|
5
|
+
label: o,
|
|
6
|
+
sizeXs: t,
|
|
7
|
+
sizeSm: i,
|
|
8
|
+
sizeMd: z,
|
|
9
|
+
sizeLg: l,
|
|
10
|
+
sizeXl: c,
|
|
11
|
+
size2xl: n
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
e as control,
|
|
15
|
+
v as default,
|
|
16
|
+
o as label,
|
|
17
|
+
s as root,
|
|
18
|
+
n as size2xl,
|
|
19
|
+
l as sizeLg,
|
|
20
|
+
z as sizeMd,
|
|
21
|
+
i as sizeSm,
|
|
22
|
+
c as sizeXl,
|
|
23
|
+
t as sizeXs,
|
|
24
|
+
_ as thumb
|
|
25
|
+
};
|