@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,142 @@
|
|
|
1
|
+
import { insert as u, createComponent as o, effect as g, className as p, mergeProps as D, Portal as L, memo as l, template as z } from "solid-js/web";
|
|
2
|
+
import { splitProps as E, mergeProps as M, Show as f } from "solid-js";
|
|
3
|
+
import { Dialog as s } from "@ark-ui/solid";
|
|
4
|
+
import { CloseButton as x } from "../CloseButton/CloseButton.js";
|
|
5
|
+
import { cn as i } from "../utils/cn.js";
|
|
6
|
+
import { bem as S } from "../utils/bem.js";
|
|
7
|
+
import { Button as h } from "../Button/Button.js";
|
|
8
|
+
import r from "./Dialog.module.css.js";
|
|
9
|
+
var C = /* @__PURE__ */ z("<div>");
|
|
10
|
+
const $ = {
|
|
11
|
+
mode: "sheet",
|
|
12
|
+
modal: !0,
|
|
13
|
+
lazyMount: !0,
|
|
14
|
+
unmountOnExit: !0,
|
|
15
|
+
closeable: !0,
|
|
16
|
+
backdropBlur: !0,
|
|
17
|
+
showCancel: !0,
|
|
18
|
+
showConfirm: !0,
|
|
19
|
+
cancelLabel: "Cancel",
|
|
20
|
+
confirmLabel: "Confirm",
|
|
21
|
+
loading: !1,
|
|
22
|
+
danger: !1,
|
|
23
|
+
backdropDismissible: !0
|
|
24
|
+
};
|
|
25
|
+
function v(b) {
|
|
26
|
+
const [e, O] = E(M($, b), ["mode", "onOpen", "onClose", "onOpenChange", "title", "closeable", "lazyMount", "unmountOnExit", "showCancel", "showConfirm", "cancelLabel", "confirmLabel", "onCancel", "onConfirm", "loading", "danger", "backdropDismissible", "backdropBlur", "modal", "defaultOpen", "footerClass", "footerPlacement", "class", "children"]), a = e.mode === "modal", w = (n) => {
|
|
27
|
+
var t, m, d;
|
|
28
|
+
n.open ? (t = e.onOpen) == null || t.call(e) : (m = e.onClose) == null || m.call(e), (d = e.onOpenChange) == null || d.call(e, n);
|
|
29
|
+
}, P = (n) => {
|
|
30
|
+
var t;
|
|
31
|
+
n.open || (t = e.onCancel) == null || t.call(e), w(n);
|
|
32
|
+
}, k = () => {
|
|
33
|
+
var n, t;
|
|
34
|
+
e.loading || ((n = e.onCancel) == null || n.call(e), (t = e.onOpenChange) == null || t.call(e, {
|
|
35
|
+
open: !1
|
|
36
|
+
}));
|
|
37
|
+
}, y = () => {
|
|
38
|
+
var n;
|
|
39
|
+
(n = e.onConfirm) == null || n.call(e);
|
|
40
|
+
}, B = e.showCancel !== e.showConfirm, c = (() => {
|
|
41
|
+
var n = C();
|
|
42
|
+
return u(n, o(f, {
|
|
43
|
+
get when() {
|
|
44
|
+
return e.showCancel;
|
|
45
|
+
},
|
|
46
|
+
get children() {
|
|
47
|
+
return o(h, {
|
|
48
|
+
size: "sm",
|
|
49
|
+
get disabled() {
|
|
50
|
+
return e.loading;
|
|
51
|
+
},
|
|
52
|
+
onClick: k,
|
|
53
|
+
get children() {
|
|
54
|
+
return e.cancelLabel;
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}), null), u(n, o(f, {
|
|
59
|
+
get when() {
|
|
60
|
+
return e.showConfirm;
|
|
61
|
+
},
|
|
62
|
+
get children() {
|
|
63
|
+
return o(h, {
|
|
64
|
+
size: "sm",
|
|
65
|
+
solid: !0,
|
|
66
|
+
get danger() {
|
|
67
|
+
return e.danger;
|
|
68
|
+
},
|
|
69
|
+
get loading() {
|
|
70
|
+
return e.loading;
|
|
71
|
+
},
|
|
72
|
+
onClick: y,
|
|
73
|
+
get children() {
|
|
74
|
+
return e.confirmLabel;
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
}), null), g(() => p(n, i(r.footer, B && r.footerSingle, e.footerClass))), n;
|
|
79
|
+
})();
|
|
80
|
+
return o(s.Root, D(O, {
|
|
81
|
+
onOpenChange: P,
|
|
82
|
+
get modal() {
|
|
83
|
+
return e.modal;
|
|
84
|
+
},
|
|
85
|
+
get lazyMount() {
|
|
86
|
+
return e.lazyMount;
|
|
87
|
+
},
|
|
88
|
+
get unmountOnExit() {
|
|
89
|
+
return e.unmountOnExit;
|
|
90
|
+
},
|
|
91
|
+
get closeOnInteractOutside() {
|
|
92
|
+
return l(() => !!e.backdropDismissible)() && !e.loading;
|
|
93
|
+
},
|
|
94
|
+
get children() {
|
|
95
|
+
return o(L, {
|
|
96
|
+
get mount() {
|
|
97
|
+
return document.body;
|
|
98
|
+
},
|
|
99
|
+
get children() {
|
|
100
|
+
return [o(s.Backdrop, {
|
|
101
|
+
get class() {
|
|
102
|
+
return i(r.backdrop, e.backdropBlur && r.blurred);
|
|
103
|
+
}
|
|
104
|
+
}), o(s.Positioner, {
|
|
105
|
+
get class() {
|
|
106
|
+
return i(r.positioner, !a && r.positionerSheet);
|
|
107
|
+
},
|
|
108
|
+
get children() {
|
|
109
|
+
return o(s.Content, {
|
|
110
|
+
get class() {
|
|
111
|
+
return i(S(), r.content, a ? r.contentModal : r.contentSheet, e.class);
|
|
112
|
+
},
|
|
113
|
+
get children() {
|
|
114
|
+
return [l(() => l(() => !!e.title)() && o(s.Title, {
|
|
115
|
+
get class() {
|
|
116
|
+
return r.title;
|
|
117
|
+
},
|
|
118
|
+
get children() {
|
|
119
|
+
return e.title;
|
|
120
|
+
}
|
|
121
|
+
})), l(() => e.footerPlacement === "top" && (e.showCancel || e.showConfirm) && c), (() => {
|
|
122
|
+
var n = C();
|
|
123
|
+
return u(n, () => e.children), g(() => p(n, r.body)), n;
|
|
124
|
+
})(), l(() => e.footerPlacement !== "top" && (e.showCancel || e.showConfirm) && c), l(() => l(() => !!(a && e.closeable && !e.loading))() && o(s.CloseTrigger, {
|
|
125
|
+
asChild: x,
|
|
126
|
+
get class() {
|
|
127
|
+
return r.close;
|
|
128
|
+
}
|
|
129
|
+
}))];
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
})];
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
}));
|
|
138
|
+
}
|
|
139
|
+
v.Original = s;
|
|
140
|
+
export {
|
|
141
|
+
v as Dialog
|
|
142
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const o = "_backdrop_1dyp4_1", t = "_blurred_1dyp4_11", e = "_positioner_1dyp4_27", n = "_positionerSheet_1dyp4_38", _ = "_content_1dyp4_44", c = "_contentModal_1dyp4_54", d = "_contentSheet_1dyp4_80", s = "_title_1dyp4_97", p = "_body_1dyp4_110", r = "_footer_1dyp4_117", i = "_footerSingle_1dyp4_127", l = "_close_1dyp4_131", y = {
|
|
2
|
+
backdrop: o,
|
|
3
|
+
blurred: t,
|
|
4
|
+
positioner: e,
|
|
5
|
+
positionerSheet: n,
|
|
6
|
+
content: _,
|
|
7
|
+
contentModal: c,
|
|
8
|
+
contentSheet: d,
|
|
9
|
+
title: s,
|
|
10
|
+
body: p,
|
|
11
|
+
footer: r,
|
|
12
|
+
footerSingle: i,
|
|
13
|
+
close: l
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
o as backdrop,
|
|
17
|
+
t as blurred,
|
|
18
|
+
p as body,
|
|
19
|
+
l as close,
|
|
20
|
+
_ as content,
|
|
21
|
+
c as contentModal,
|
|
22
|
+
d as contentSheet,
|
|
23
|
+
y as default,
|
|
24
|
+
r as footer,
|
|
25
|
+
i as footerSingle,
|
|
26
|
+
e as positioner,
|
|
27
|
+
n as positionerSheet,
|
|
28
|
+
s as title
|
|
29
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { spread as a, mergeProps as n, template as s } from "solid-js/web";
|
|
2
|
+
import { splitProps as l, mergeProps as m } from "solid-js";
|
|
3
|
+
import { bem as p } from "../utils/bem.js";
|
|
4
|
+
import { cn as c } from "../utils/cn.js";
|
|
5
|
+
import t from "./Divider.module.css.js";
|
|
6
|
+
var f = /* @__PURE__ */ s("<hr>");
|
|
7
|
+
const v = {
|
|
8
|
+
horizontal: t.horizontal,
|
|
9
|
+
vertical: t.vertical
|
|
10
|
+
}, P = {
|
|
11
|
+
orientation: "horizontal"
|
|
12
|
+
};
|
|
13
|
+
function _(e) {
|
|
14
|
+
const [r, i] = l(m(P, e), ["orientation", "class"]);
|
|
15
|
+
return (() => {
|
|
16
|
+
var o = f();
|
|
17
|
+
return a(o, n(i, {
|
|
18
|
+
"data-part": "root",
|
|
19
|
+
get class() {
|
|
20
|
+
return c(p("balik-divider", r.orientation), v[r.orientation], r.class);
|
|
21
|
+
}
|
|
22
|
+
}), !1, !1), o;
|
|
23
|
+
})();
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
_ as Divider
|
|
27
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { createComponent as h, Portal as g, effect as s, className as v, setAttribute as m, insert as c, memo as b, template as u, delegateEvents as C } from "solid-js/web";
|
|
2
|
+
import { splitProps as P, mergeProps as k } from "solid-js";
|
|
3
|
+
import { bem as y } from "../utils/bem.js";
|
|
4
|
+
import { cn as D } from "../utils/cn.js";
|
|
5
|
+
import d from "./Drawer.module.css.js";
|
|
6
|
+
var O = /* @__PURE__ */ u("<div data-part=backdrop>"), $ = /* @__PURE__ */ u("<div role=dialog aria-modal=true data-part=panel><div data-part=body>"), w = /* @__PURE__ */ u("<div data-part=header><h2 data-part=title>");
|
|
7
|
+
const A = {
|
|
8
|
+
side: "right"
|
|
9
|
+
};
|
|
10
|
+
function F(f) {
|
|
11
|
+
const [r] = P(k(A, f), ["open", "onOpenChange", "title", "side", "class", "children"]);
|
|
12
|
+
return h(g, {
|
|
13
|
+
get mount() {
|
|
14
|
+
return document.body;
|
|
15
|
+
},
|
|
16
|
+
get children() {
|
|
17
|
+
return [(() => {
|
|
18
|
+
var a = O();
|
|
19
|
+
return a.$$click = () => {
|
|
20
|
+
var t;
|
|
21
|
+
return (t = r.onOpenChange) == null ? void 0 : t.call(r, !1);
|
|
22
|
+
}, s((t) => {
|
|
23
|
+
var e = d.backdrop, o = r.open ? "" : void 0;
|
|
24
|
+
return e !== t.e && v(a, t.e = e), o !== t.t && m(a, "data-open", t.t = o), t;
|
|
25
|
+
}, {
|
|
26
|
+
e: void 0,
|
|
27
|
+
t: void 0
|
|
28
|
+
}), a;
|
|
29
|
+
})(), (() => {
|
|
30
|
+
var a = $(), t = a.firstChild;
|
|
31
|
+
return c(a, (() => {
|
|
32
|
+
var e = b(() => !!r.title);
|
|
33
|
+
return () => e() && (() => {
|
|
34
|
+
var o = w(), n = o.firstChild;
|
|
35
|
+
return c(n, () => r.title), s((i) => {
|
|
36
|
+
var l = d.header, p = d.title;
|
|
37
|
+
return l !== i.e && v(o, i.e = l), p !== i.t && v(n, i.t = p), i;
|
|
38
|
+
}, {
|
|
39
|
+
e: void 0,
|
|
40
|
+
t: void 0
|
|
41
|
+
}), o;
|
|
42
|
+
})();
|
|
43
|
+
})(), t), c(t, () => r.children), s((e) => {
|
|
44
|
+
var o = D(y(), d.panel, r.side === "left" ? d.sideLeft : d.sideRight, r.class), n = r.open ? "" : void 0, i = r.title || "Drawer", l = d.body;
|
|
45
|
+
return o !== e.e && v(a, e.e = o), n !== e.t && m(a, "data-open", e.t = n), i !== e.a && m(a, "aria-label", e.a = i), l !== e.o && v(t, e.o = l), e;
|
|
46
|
+
}, {
|
|
47
|
+
e: void 0,
|
|
48
|
+
t: void 0,
|
|
49
|
+
a: void 0,
|
|
50
|
+
o: void 0
|
|
51
|
+
}), a;
|
|
52
|
+
})()];
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
C(["click"]);
|
|
57
|
+
export {
|
|
58
|
+
F as Drawer
|
|
59
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const e = "_backdrop_c5zjb_1", t = "_panel_c5zjb_17", _ = "_sideLeft_c5zjb_36", c = "_sideRight_c5zjb_46", s = "_header_c5zjb_56", d = "_title_c5zjb_64", o = "_body_c5zjb_72", b = {
|
|
2
|
+
backdrop: e,
|
|
3
|
+
panel: t,
|
|
4
|
+
sideLeft: _,
|
|
5
|
+
sideRight: c,
|
|
6
|
+
header: s,
|
|
7
|
+
title: d,
|
|
8
|
+
body: o
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
e as backdrop,
|
|
12
|
+
o as body,
|
|
13
|
+
b as default,
|
|
14
|
+
s as header,
|
|
15
|
+
t as panel,
|
|
16
|
+
_ as sideLeft,
|
|
17
|
+
c as sideRight,
|
|
18
|
+
d as title
|
|
19
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { insert as m, effect as n, className as s, template as p } from "solid-js/web";
|
|
2
|
+
import { splitProps as f, mergeProps as v } from "solid-js";
|
|
3
|
+
import { bem as d } from "../utils/bem.js";
|
|
4
|
+
import { cn as u } from "../utils/cn.js";
|
|
5
|
+
import a from "./Empty.module.css.js";
|
|
6
|
+
var P = /* @__PURE__ */ p("<div data-part=root><p>");
|
|
7
|
+
const b = {
|
|
8
|
+
title: "No data"
|
|
9
|
+
};
|
|
10
|
+
function h(c) {
|
|
11
|
+
const [e] = f(v(b, c), ["title", "icon", "class"]);
|
|
12
|
+
return (() => {
|
|
13
|
+
var r = P(), o = r.firstChild;
|
|
14
|
+
return m(r, () => e.icon, o), m(o, () => e.title), n((t) => {
|
|
15
|
+
var i = u(d(), a.base, e.class), l = a.title;
|
|
16
|
+
return i !== t.e && s(r, t.e = i), l !== t.t && s(o, t.t = l), t;
|
|
17
|
+
}, {
|
|
18
|
+
e: void 0,
|
|
19
|
+
t: void 0
|
|
20
|
+
}), r;
|
|
21
|
+
})();
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
h as Empty
|
|
25
|
+
};
|
package/dist/Fab/Fab.js
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { spread as g, mergeProps as b, insert as l, effect as i, className as c, createComponent as s, memo as $, template as m } from "solid-js/web";
|
|
2
|
+
import { splitProps as u, mergeProps as f } from "solid-js";
|
|
3
|
+
import { Popover as P, PopoverTrigger as h, PopoverContent as C } from "../Popover/Popover.js";
|
|
4
|
+
import { bem as y } from "../utils/bem.js";
|
|
5
|
+
import { cn as F } from "../utils/cn.js";
|
|
6
|
+
import r from "./Fab.module.css.js";
|
|
7
|
+
var d = /* @__PURE__ */ m("<button><span data-part=icon>"), I = /* @__PURE__ */ m("<span data-part=label>"), L = /* @__PURE__ */ m("<div data-part=items>");
|
|
8
|
+
const v = {};
|
|
9
|
+
function R(a) {
|
|
10
|
+
const [e, o] = u(f(v, a), ["icon", "class"]);
|
|
11
|
+
return (() => {
|
|
12
|
+
var t = d(), n = t.firstChild;
|
|
13
|
+
return g(t, b(o, {
|
|
14
|
+
type: "button",
|
|
15
|
+
"data-part": "root",
|
|
16
|
+
get class() {
|
|
17
|
+
return F(y(), r.base, e.class);
|
|
18
|
+
}
|
|
19
|
+
}), !1, !0), l(n, () => e.icon), i(() => c(n, r.icon)), t;
|
|
20
|
+
})();
|
|
21
|
+
}
|
|
22
|
+
function E(a) {
|
|
23
|
+
const [e, o] = u(a, ["icon", "label", "class"]);
|
|
24
|
+
return (() => {
|
|
25
|
+
var t = d(), n = t.firstChild;
|
|
26
|
+
return g(t, b(o, {
|
|
27
|
+
type: "button",
|
|
28
|
+
get class() {
|
|
29
|
+
return [r.item, e.class].filter(Boolean).join(" ");
|
|
30
|
+
},
|
|
31
|
+
"data-part": "item"
|
|
32
|
+
}), !1, !0), l(n, () => e.icon), l(t, (() => {
|
|
33
|
+
var _ = $(() => !!e.label);
|
|
34
|
+
return () => _() && (() => {
|
|
35
|
+
var p = I();
|
|
36
|
+
return l(p, () => e.label), i(() => c(p, r.itemLabel)), p;
|
|
37
|
+
})();
|
|
38
|
+
})(), null), i(() => c(n, r.itemIcon)), t;
|
|
39
|
+
})();
|
|
40
|
+
}
|
|
41
|
+
function G(a) {
|
|
42
|
+
const [e] = u(f(v, a), ["icon", "aria-label", "class", "style", "children"]);
|
|
43
|
+
return s(P, {
|
|
44
|
+
positioning: {
|
|
45
|
+
placement: "top-end",
|
|
46
|
+
gutter: 16
|
|
47
|
+
},
|
|
48
|
+
get children() {
|
|
49
|
+
return [s(h, {
|
|
50
|
+
get children() {
|
|
51
|
+
return s(R, {
|
|
52
|
+
get icon() {
|
|
53
|
+
return e.icon;
|
|
54
|
+
},
|
|
55
|
+
get "aria-label"() {
|
|
56
|
+
return e["aria-label"];
|
|
57
|
+
},
|
|
58
|
+
get class() {
|
|
59
|
+
return r.trigger;
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}), s(C, {
|
|
64
|
+
get class() {
|
|
65
|
+
return r.groupContent;
|
|
66
|
+
},
|
|
67
|
+
get children() {
|
|
68
|
+
var o = L();
|
|
69
|
+
return l(o, () => e.children), i(() => c(o, r.items)), o;
|
|
70
|
+
}
|
|
71
|
+
})];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
export {
|
|
76
|
+
R as Fab,
|
|
77
|
+
G as FabGroup,
|
|
78
|
+
E as FabItem
|
|
79
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const e = "_base_1mlce_1", t = "_icon_1mlce_28", c = "_groupContent_1mlce_41", o = "_items_1mlce_49", _ = "_item_1mlce_49", n = "_itemIcon_1mlce_79", m = "_itemLabel_1mlce_92", s = {
|
|
2
|
+
base: e,
|
|
3
|
+
icon: t,
|
|
4
|
+
groupContent: c,
|
|
5
|
+
items: o,
|
|
6
|
+
item: _,
|
|
7
|
+
itemIcon: n,
|
|
8
|
+
itemLabel: m
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
e as base,
|
|
12
|
+
s as default,
|
|
13
|
+
c as groupContent,
|
|
14
|
+
t as icon,
|
|
15
|
+
_ as item,
|
|
16
|
+
n as itemIcon,
|
|
17
|
+
m as itemLabel,
|
|
18
|
+
o as items
|
|
19
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { createComponent as i, mergeProps as q, memo as r, insert as y, effect as O, className as x, template as P } from "solid-js/web";
|
|
2
|
+
import { splitProps as T, mergeProps as $ } from "solid-js";
|
|
3
|
+
import { Field as o } from "@ark-ui/solid";
|
|
4
|
+
import { bem as F } from "../utils/bem.js";
|
|
5
|
+
import { cn as m } from "../utils/cn.js";
|
|
6
|
+
import l from "./Field.module.css.js";
|
|
7
|
+
var C = /* @__PURE__ */ P("<div>");
|
|
8
|
+
const t = (n) => typeof n == "function" ? n() : n;
|
|
9
|
+
function E(n = {}) {
|
|
10
|
+
const [e, g] = T($({
|
|
11
|
+
label: "",
|
|
12
|
+
error: "",
|
|
13
|
+
helper: "",
|
|
14
|
+
required: !1,
|
|
15
|
+
compact: !1
|
|
16
|
+
}, n), ["label", "error", "helper", "required", "compact", "invalid", "disabled", "readOnly", "class", "children"]), s = () => t(e.error), c = () => t(e.helper), p = () => !!s(), f = () => !!c(), a = () => t(e.compact), u = () => t(e.required), h = () => p() ? !0 : e.invalid === void 0 ? void 0 : t(e.invalid), b = () => e.disabled === void 0 ? void 0 : t(e.disabled), v = () => e.readOnly === void 0 ? void 0 : t(e.readOnly);
|
|
17
|
+
return i(o.Root, q(g, {
|
|
18
|
+
get invalid() {
|
|
19
|
+
return h();
|
|
20
|
+
},
|
|
21
|
+
get disabled() {
|
|
22
|
+
return b();
|
|
23
|
+
},
|
|
24
|
+
get readOnly() {
|
|
25
|
+
return v();
|
|
26
|
+
},
|
|
27
|
+
get required() {
|
|
28
|
+
return u();
|
|
29
|
+
},
|
|
30
|
+
get class() {
|
|
31
|
+
return m(F("balik-field", a() && "compact"), a() ? l.compact : l.root, e.class);
|
|
32
|
+
},
|
|
33
|
+
get children() {
|
|
34
|
+
return [r(() => r(() => !!t(e.label))() ? i(o.Label, {
|
|
35
|
+
get class() {
|
|
36
|
+
return m(l.label, a() && l.compactLabel);
|
|
37
|
+
},
|
|
38
|
+
get children() {
|
|
39
|
+
return [r(() => t(e.label)), r(() => r(() => !!u())() && i(o.RequiredIndicator, {
|
|
40
|
+
get class() {
|
|
41
|
+
return l.required;
|
|
42
|
+
},
|
|
43
|
+
children: "*"
|
|
44
|
+
}))];
|
|
45
|
+
}
|
|
46
|
+
}) : null), r(() => r(() => !!a())() ? (() => {
|
|
47
|
+
var d = C();
|
|
48
|
+
return y(d, () => e.children), O(() => x(d, l.inputWrap)), d;
|
|
49
|
+
})() : e.children), r(() => r(() => !!p())() ? i(o.ErrorText, {
|
|
50
|
+
get class() {
|
|
51
|
+
return l.errorText;
|
|
52
|
+
},
|
|
53
|
+
get children() {
|
|
54
|
+
return s();
|
|
55
|
+
}
|
|
56
|
+
}) : r(() => !!f())() ? i(o.HelperText, {
|
|
57
|
+
get class() {
|
|
58
|
+
return l.helperText;
|
|
59
|
+
},
|
|
60
|
+
get children() {
|
|
61
|
+
return c();
|
|
62
|
+
}
|
|
63
|
+
}) : null)];
|
|
64
|
+
}
|
|
65
|
+
}));
|
|
66
|
+
}
|
|
67
|
+
E.Original = o;
|
|
68
|
+
export {
|
|
69
|
+
E as Field
|
|
70
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const e = "_root_pfa4w_1", t = "_compact_pfa4w_7", a = "_label_pfa4w_15", o = "_compactLabel_pfa4w_21", r = "_inputWrap_pfa4w_26", p = "_required_pfa4w_34", _ = "_errorText_pfa4w_39", c = "_helperText_pfa4w_46", l = {
|
|
2
|
+
root: e,
|
|
3
|
+
compact: t,
|
|
4
|
+
label: a,
|
|
5
|
+
compactLabel: o,
|
|
6
|
+
inputWrap: r,
|
|
7
|
+
required: p,
|
|
8
|
+
errorText: _,
|
|
9
|
+
helperText: c
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
t as compact,
|
|
13
|
+
o as compactLabel,
|
|
14
|
+
l as default,
|
|
15
|
+
_ as errorText,
|
|
16
|
+
c as helperText,
|
|
17
|
+
r as inputWrap,
|
|
18
|
+
a as label,
|
|
19
|
+
p as required,
|
|
20
|
+
e as root
|
|
21
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { createComponent as l, mergeProps as m, memo as t } from "solid-js/web";
|
|
2
|
+
import { splitProps as i, mergeProps as c } from "solid-js";
|
|
3
|
+
import { Fieldset as o } from "@ark-ui/solid";
|
|
4
|
+
import { bem as a } from "../utils/bem.js";
|
|
5
|
+
import { cn as f } from "../utils/cn.js";
|
|
6
|
+
import s from "./Fieldset.module.css.js";
|
|
7
|
+
const n = (e) => typeof e == "function" ? e() : e;
|
|
8
|
+
function h(e = {}) {
|
|
9
|
+
const [r, p] = i(c({
|
|
10
|
+
helper: ""
|
|
11
|
+
}, e), ["helper", "class", "children"]);
|
|
12
|
+
return l(o.Root, m(p, {
|
|
13
|
+
get class() {
|
|
14
|
+
return f(a(), s.root, r.class);
|
|
15
|
+
},
|
|
16
|
+
get children() {
|
|
17
|
+
return [t(() => r.children), t(() => t(() => !!n(r.helper))() ? l(o.HelperText, {
|
|
18
|
+
get class() {
|
|
19
|
+
return s.helperText;
|
|
20
|
+
},
|
|
21
|
+
get children() {
|
|
22
|
+
return n(r.helper);
|
|
23
|
+
}
|
|
24
|
+
}) : null)];
|
|
25
|
+
}
|
|
26
|
+
}));
|
|
27
|
+
}
|
|
28
|
+
h.Original = o;
|
|
29
|
+
export {
|
|
30
|
+
h as Fieldset
|
|
31
|
+
};
|