@balikjs/mobile 0.1.11 → 0.1.13
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/dist/Alert/Alert.module.css.js +18 -18
- package/dist/Avatar/Avatar.module.css.js +16 -16
- package/dist/BackToTop/BackToTop.module.css.js +6 -6
- package/dist/Badge/Badge.js +44 -43
- package/dist/Badge/Badge.module.css.js +36 -42
- package/dist/BottomNavigation/BottomNavigation.module.css.js +3 -3
- package/dist/BottomSheet/BottomSheet.js +52 -41
- package/dist/BottomSheet/BottomSheet.module.css.js +8 -8
- package/dist/Button/Button.js +29 -24
- package/dist/Button/Button.module.css.js +21 -19
- package/dist/Checkbox/Checkbox.module.css.js +10 -10
- package/dist/Clipboard/Clipboard.module.css.js +16 -16
- package/dist/CloseButton/CloseButton.js +1 -2
- package/dist/CloseButton/CloseButton.module.css.js +12 -12
- package/dist/DatePicker/DatePicker.js +71 -59
- package/dist/DatePicker/DatePicker.module.css.js +34 -22
- package/dist/Dialog/Dialog.js +8 -8
- package/dist/Dialog/Dialog.module.css.js +20 -18
- package/dist/Divider/Divider.module.css.js +2 -2
- package/dist/Drawer/Drawer.module.css.js +9 -9
- package/dist/Fab/Fab.module.css.js +16 -16
- package/dist/Field/Field.module.css.js +14 -14
- package/dist/Fieldset/Fieldset.module.css.js +1 -1
- package/dist/FileUpload/FileUpload.module.css.js +22 -22
- package/dist/FilterGroup/FilterGroup.js +61 -58
- package/dist/FilterGroup/FilterGroup.module.css.js +12 -20
- package/dist/Input/Input.js +62 -40
- package/dist/Input/Input.module.css.js +36 -30
- package/dist/Link/Link.module.css.js +1 -1
- package/dist/MoneyInput/MoneyInput.module.css.js +6 -6
- package/dist/Pagination/Pagination.module.css.js +4 -4
- package/dist/Picker/Picker.module.css.js +1 -1
- package/dist/PickerView/PickerView.module.css.js +11 -11
- package/dist/PinInput/PinInput.module.css.js +18 -18
- package/dist/Popover/Popover.module.css.js +10 -10
- package/dist/Progress/Progress.module.css.js +14 -14
- package/dist/QrCode/QrCode.module.css.js +6 -6
- package/dist/RadioGroup/Radio.module.css.js +11 -11
- package/dist/RatingGroup/RatingGroup.js +6 -6
- package/dist/RatingGroup/RatingGroup.module.css.js +6 -6
- package/dist/SearchInput/SearchInput.module.css.js +1 -1
- package/dist/Select/Select.js +45 -44
- package/dist/Select/Select.module.css.js +24 -22
- package/dist/SelectPc/Select.js +50 -44
- package/dist/SelectPc/SelectPc.module.css.js +29 -23
- package/dist/SignaturePad/SignaturePad.module.css.js +4 -4
- package/dist/Slider/Slider.module.css.js +10 -10
- package/dist/Spinner/Spinner.module.css.js +4 -4
- package/dist/Steps/Steps.js +87 -77
- package/dist/Steps/Steps.module.css.js +18 -20
- package/dist/Switch/Switch.js +22 -18
- package/dist/Switch/Switch.module.css.js +20 -18
- package/dist/Tabs/Tabs.module.css.js +5 -5
- package/dist/Tag/Tag.js +34 -26
- package/dist/Tag/Tag.module.css.js +36 -32
- package/dist/Textarea/Textarea.module.css.js +15 -15
- package/dist/Toast/Toast.module.css.js +34 -34
- package/dist/Toggle/Toggle.module.css.js +1 -1
- package/dist/ToggleGroup/ToggleGroup.js +36 -21
- package/dist/ToggleGroup/ToggleGroup.module.css.js +20 -14
- package/dist/styles.css +1 -1
- package/package.json +4 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
const s = "
|
|
1
|
+
const s = "_base_vhmnv_1", e = "_sizeXs_vhmnv_6", _ = "_sizeSm_vhmnv_11", i = "_sizeMd_vhmnv_16", z = "_sizeLg_vhmnv_21", n = "_sizeXl_vhmnv_26", v = {
|
|
2
2
|
base: s,
|
|
3
3
|
sizeXs: e,
|
|
4
4
|
sizeSm: _,
|
|
5
5
|
sizeMd: i,
|
|
6
6
|
sizeLg: z,
|
|
7
|
-
sizeXl:
|
|
7
|
+
sizeXl: n
|
|
8
8
|
};
|
|
9
9
|
export {
|
|
10
10
|
s as base,
|
|
11
|
-
|
|
11
|
+
v as default,
|
|
12
12
|
z as sizeLg,
|
|
13
13
|
i as sizeMd,
|
|
14
14
|
_ as sizeSm,
|
|
15
|
-
|
|
15
|
+
n as sizeXl,
|
|
16
16
|
e as sizeXs
|
|
17
17
|
};
|
package/dist/Steps/Steps.js
CHANGED
|
@@ -1,84 +1,85 @@
|
|
|
1
|
-
import { createComponent as n, mergeProps as l, spread as
|
|
2
|
-
import { splitProps as o, mergeProps as
|
|
1
|
+
import { createComponent as n, mergeProps as l, spread as v, insert as d, template as x } from "solid-js/web";
|
|
2
|
+
import { splitProps as o, mergeProps as P, createSignal as T, useContext as I, onMount as _, onCleanup as $, createContext as z } from "solid-js";
|
|
3
3
|
import { Steps as i, useStepsItemContext as L } from "@ark-ui/solid";
|
|
4
4
|
import { Check as N } from "lucide-solid";
|
|
5
|
+
import { Button as p } from "../Button/Button.js";
|
|
5
6
|
import { bem as R } from "../utils/bem.js";
|
|
6
7
|
import { cn as a } from "../utils/cn.js";
|
|
7
8
|
import s from "./Steps.module.css.js";
|
|
8
|
-
var
|
|
9
|
+
var m = /* @__PURE__ */ x("<span>");
|
|
9
10
|
const M = {
|
|
10
11
|
vertical: !1
|
|
11
|
-
},
|
|
12
|
+
}, h = z();
|
|
12
13
|
function O() {
|
|
13
|
-
const
|
|
14
|
-
return
|
|
14
|
+
const t = L()();
|
|
15
|
+
return t.completed ? n(N, {
|
|
15
16
|
size: 14,
|
|
16
17
|
"aria-hidden": "true"
|
|
17
18
|
}) : (() => {
|
|
18
|
-
var
|
|
19
|
-
return d(
|
|
19
|
+
var e = m();
|
|
20
|
+
return d(e, () => t.index + 1), e;
|
|
20
21
|
})();
|
|
21
22
|
}
|
|
22
23
|
function b(r) {
|
|
23
|
-
const [
|
|
24
|
-
return n(
|
|
24
|
+
const [t, e] = o(P(M, r), ["class", "children", "vertical", "defaultStep", "count"]), [c, g] = T(0), f = () => g((u) => u + 1), S = () => g((u) => Math.max(0, u - 1)), C = () => t.count ?? c();
|
|
25
|
+
return n(h.Provider, {
|
|
25
26
|
value: {
|
|
26
|
-
register:
|
|
27
|
-
unregister:
|
|
27
|
+
register: f,
|
|
28
|
+
unregister: S
|
|
28
29
|
},
|
|
29
30
|
get children() {
|
|
30
|
-
return n(i.Root, l(
|
|
31
|
+
return n(i.Root, l(e, {
|
|
31
32
|
get count() {
|
|
32
|
-
return
|
|
33
|
+
return C();
|
|
33
34
|
},
|
|
34
35
|
get class() {
|
|
35
|
-
return a(R(), s.root,
|
|
36
|
+
return a(R(), s.root, t.vertical && s.vertical, t.class);
|
|
36
37
|
},
|
|
37
38
|
get children() {
|
|
38
|
-
return
|
|
39
|
+
return t.children;
|
|
39
40
|
}
|
|
40
41
|
}));
|
|
41
42
|
}
|
|
42
43
|
});
|
|
43
44
|
}
|
|
44
|
-
function
|
|
45
|
-
const [
|
|
46
|
-
return n(i.List, l(
|
|
45
|
+
function w(r) {
|
|
46
|
+
const [t, e] = o(r, ["class", "children"]);
|
|
47
|
+
return n(i.List, l(e, {
|
|
47
48
|
get class() {
|
|
48
|
-
return a(s.list,
|
|
49
|
+
return a(s.list, t.class);
|
|
49
50
|
},
|
|
50
51
|
get children() {
|
|
51
|
-
return
|
|
52
|
+
return t.children;
|
|
52
53
|
}
|
|
53
54
|
}));
|
|
54
55
|
}
|
|
55
|
-
function
|
|
56
|
-
const [
|
|
57
|
-
return
|
|
56
|
+
function G(r) {
|
|
57
|
+
const [t, e] = o(r, ["class", "children"]), c = I(h);
|
|
58
|
+
return _(() => c == null ? void 0 : c.register()), $(() => c == null ? void 0 : c.unregister()), n(i.Item, l(e, {
|
|
58
59
|
get class() {
|
|
59
|
-
return a(s.item,
|
|
60
|
+
return a(s.item, t.class);
|
|
60
61
|
},
|
|
61
62
|
get children() {
|
|
62
|
-
return
|
|
63
|
+
return t.children;
|
|
63
64
|
}
|
|
64
65
|
}));
|
|
65
66
|
}
|
|
66
|
-
function
|
|
67
|
-
const [
|
|
68
|
-
return n(i.Trigger, l(
|
|
67
|
+
function H(r) {
|
|
68
|
+
const [t, e] = o(r, ["class", "children"]);
|
|
69
|
+
return n(i.Trigger, l(e, {
|
|
69
70
|
get class() {
|
|
70
|
-
return a(s.itemTrigger,
|
|
71
|
+
return a(s.itemTrigger, t.class);
|
|
71
72
|
},
|
|
72
73
|
get children() {
|
|
73
|
-
return
|
|
74
|
+
return t.children || [n(k, {}), n(y, {})];
|
|
74
75
|
}
|
|
75
76
|
}));
|
|
76
77
|
}
|
|
77
78
|
function k(r) {
|
|
78
|
-
const [
|
|
79
|
-
return n(i.Indicator, l(
|
|
79
|
+
const [t, e] = o(r, ["class"]);
|
|
80
|
+
return n(i.Indicator, l(e, {
|
|
80
81
|
get class() {
|
|
81
|
-
return a(s.indicator,
|
|
82
|
+
return a(s.indicator, t.class);
|
|
82
83
|
},
|
|
83
84
|
get children() {
|
|
84
85
|
return n(O, {});
|
|
@@ -86,88 +87,97 @@ function k(r) {
|
|
|
86
87
|
}));
|
|
87
88
|
}
|
|
88
89
|
function y(r) {
|
|
89
|
-
const [
|
|
90
|
+
const [t, e] = o(r, ["class"]);
|
|
90
91
|
return (() => {
|
|
91
|
-
var c =
|
|
92
|
-
return
|
|
92
|
+
var c = m();
|
|
93
|
+
return v(c, l(e, {
|
|
93
94
|
get class() {
|
|
94
|
-
return a(s.itemTitle,
|
|
95
|
+
return a(s.itemTitle, t.class);
|
|
95
96
|
}
|
|
96
97
|
}), !1, !0), d(c, () => r.children), c;
|
|
97
98
|
})();
|
|
98
99
|
}
|
|
99
|
-
function
|
|
100
|
-
const [
|
|
101
|
-
return n(i.Separator, l(
|
|
100
|
+
function J(r) {
|
|
101
|
+
const [t, e] = o(r, ["class"]);
|
|
102
|
+
return n(i.Separator, l(e, {
|
|
102
103
|
get class() {
|
|
103
|
-
return a(s.separator,
|
|
104
|
+
return a(s.separator, t.class);
|
|
104
105
|
}
|
|
105
106
|
}));
|
|
106
107
|
}
|
|
107
|
-
function
|
|
108
|
-
const [
|
|
109
|
-
return n(i.Content, l(
|
|
108
|
+
function K(r) {
|
|
109
|
+
const [t, e] = o(r, ["class", "children"]);
|
|
110
|
+
return n(i.Content, l(e, {
|
|
110
111
|
get class() {
|
|
111
|
-
return a(s.content,
|
|
112
|
+
return a(s.content, t.class);
|
|
112
113
|
},
|
|
113
114
|
get children() {
|
|
114
|
-
return
|
|
115
|
+
return t.children;
|
|
115
116
|
}
|
|
116
117
|
}));
|
|
117
118
|
}
|
|
118
|
-
function
|
|
119
|
-
const [
|
|
120
|
-
return n(i.CompletedContent, l(
|
|
119
|
+
function Q(r) {
|
|
120
|
+
const [t, e] = o(r, ["class", "children"]);
|
|
121
|
+
return n(i.CompletedContent, l(e, {
|
|
121
122
|
get class() {
|
|
122
|
-
return a(s.completedContent,
|
|
123
|
+
return a(s.completedContent, t.class);
|
|
123
124
|
},
|
|
124
125
|
get children() {
|
|
125
|
-
return
|
|
126
|
+
return t.children;
|
|
126
127
|
}
|
|
127
128
|
}));
|
|
128
129
|
}
|
|
129
|
-
function
|
|
130
|
-
const [
|
|
131
|
-
return n(i.PrevTrigger, l(
|
|
130
|
+
function V(r) {
|
|
131
|
+
const [t, e] = o(r, ["class", "children"]);
|
|
132
|
+
return n(i.PrevTrigger, l({
|
|
133
|
+
asChild: p,
|
|
134
|
+
variant: "outline",
|
|
135
|
+
intent: "neutral",
|
|
136
|
+
size: "sm",
|
|
132
137
|
get class() {
|
|
133
|
-
return a(s.
|
|
134
|
-
}
|
|
138
|
+
return a(s.navTrigger, t.class);
|
|
139
|
+
}
|
|
140
|
+
}, e, {
|
|
135
141
|
get children() {
|
|
136
|
-
return
|
|
142
|
+
return t.children || "Previous";
|
|
137
143
|
}
|
|
138
144
|
}));
|
|
139
145
|
}
|
|
140
|
-
function
|
|
141
|
-
const [
|
|
142
|
-
return n(i.NextTrigger, l(
|
|
146
|
+
function W(r) {
|
|
147
|
+
const [t, e] = o(r, ["class", "children"]);
|
|
148
|
+
return n(i.NextTrigger, l({
|
|
149
|
+
asChild: p,
|
|
150
|
+
variant: "solid",
|
|
151
|
+
size: "sm",
|
|
143
152
|
get class() {
|
|
144
|
-
return a(s.
|
|
145
|
-
}
|
|
153
|
+
return a(s.navTrigger, t.class);
|
|
154
|
+
}
|
|
155
|
+
}, e, {
|
|
146
156
|
get children() {
|
|
147
|
-
return
|
|
157
|
+
return t.children || "Next";
|
|
148
158
|
}
|
|
149
159
|
}));
|
|
150
160
|
}
|
|
151
|
-
function
|
|
152
|
-
const [
|
|
153
|
-
return n(i.Progress, l(
|
|
161
|
+
function X(r) {
|
|
162
|
+
const [t, e] = o(r, ["class"]);
|
|
163
|
+
return n(i.Progress, l(e, {
|
|
154
164
|
get class() {
|
|
155
|
-
return a(s.progress,
|
|
165
|
+
return a(s.progress, t.class);
|
|
156
166
|
}
|
|
157
167
|
}));
|
|
158
168
|
}
|
|
159
169
|
b.Original = i;
|
|
160
170
|
export {
|
|
161
171
|
b as Steps,
|
|
162
|
-
|
|
163
|
-
|
|
172
|
+
Q as StepsCompletedContent,
|
|
173
|
+
K as StepsContent,
|
|
164
174
|
k as StepsIndicator,
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
175
|
+
G as StepsItem,
|
|
176
|
+
w as StepsList,
|
|
177
|
+
W as StepsNextTrigger,
|
|
178
|
+
V as StepsPrevTrigger,
|
|
179
|
+
X as StepsProgress,
|
|
180
|
+
J as StepsSeparator,
|
|
171
181
|
y as StepsTitle,
|
|
172
|
-
|
|
182
|
+
H as StepsTrigger
|
|
173
183
|
};
|
|
@@ -1,31 +1,29 @@
|
|
|
1
|
-
const t = "
|
|
1
|
+
const t = "_root_1dj7p_1", e = "_list_1dj7p_7", o = "_item_1dj7p_14", _ = "_itemTrigger_1dj7p_20", r = "_itemTitle_1dj7p_34", n = "_indicator_1dj7p_46", i = "_separator_1dj7p_75", s = "_content_1dj7p_87", c = "_completedContent_1dj7p_95", p = "_progress_1dj7p_103", d = "_navTrigger_1dj7p_113", a = "_vertical_1dj7p_119", g = {
|
|
2
2
|
root: t,
|
|
3
|
-
list:
|
|
4
|
-
item:
|
|
5
|
-
itemTrigger:
|
|
6
|
-
itemTitle:
|
|
7
|
-
indicator:
|
|
8
|
-
separator:
|
|
3
|
+
list: e,
|
|
4
|
+
item: o,
|
|
5
|
+
itemTrigger: _,
|
|
6
|
+
itemTitle: r,
|
|
7
|
+
indicator: n,
|
|
8
|
+
separator: i,
|
|
9
9
|
content: s,
|
|
10
10
|
completedContent: c,
|
|
11
11
|
progress: p,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
vertical: l
|
|
12
|
+
navTrigger: d,
|
|
13
|
+
vertical: a
|
|
15
14
|
};
|
|
16
15
|
export {
|
|
17
16
|
c as completedContent,
|
|
18
17
|
s as content,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
g as prevTrigger,
|
|
18
|
+
g as default,
|
|
19
|
+
n as indicator,
|
|
20
|
+
o as item,
|
|
21
|
+
r as itemTitle,
|
|
22
|
+
_ as itemTrigger,
|
|
23
|
+
e as list,
|
|
24
|
+
d as navTrigger,
|
|
27
25
|
p as progress,
|
|
28
26
|
t as root,
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
i as separator,
|
|
28
|
+
a as vertical
|
|
31
29
|
};
|
package/dist/Switch/Switch.js
CHANGED
|
@@ -1,49 +1,53 @@
|
|
|
1
|
-
import { createComponent as
|
|
2
|
-
import { splitProps as
|
|
1
|
+
import { createComponent as n, mergeProps as a, memo as o } from "solid-js/web";
|
|
2
|
+
import { splitProps as d, mergeProps as u, createMemo as g } from "solid-js";
|
|
3
3
|
import { Switch as r } from "@ark-ui/solid";
|
|
4
|
-
import { bem as
|
|
5
|
-
import { cn as
|
|
4
|
+
import { bem as p } from "../utils/bem.js";
|
|
5
|
+
import { cn as h } from "../utils/cn.js";
|
|
6
6
|
import e from "./Switch.module.css.js";
|
|
7
|
-
const
|
|
7
|
+
const f = {
|
|
8
8
|
xs: e.sizeXs,
|
|
9
9
|
sm: e.sizeSm,
|
|
10
10
|
md: e.sizeMd,
|
|
11
11
|
lg: e.sizeLg,
|
|
12
12
|
xl: e.sizeXl,
|
|
13
13
|
"2xl": e.size2xl
|
|
14
|
-
},
|
|
15
|
-
|
|
14
|
+
}, z = {
|
|
15
|
+
default: null,
|
|
16
|
+
danger: e.intentDanger
|
|
17
|
+
}, b = {
|
|
18
|
+
size: "md",
|
|
19
|
+
intent: "default"
|
|
16
20
|
};
|
|
17
|
-
function
|
|
18
|
-
const [
|
|
19
|
-
return
|
|
21
|
+
function P(l) {
|
|
22
|
+
const [t, c] = d(u(b, l), ["class", "children", "size", "intent", "defaultChecked"]), s = (i) => typeof i == "function" ? i() : i, m = g(() => h(p("balik-switch", s(t.intent)), e.root, f[s(t.size)], z[s(t.intent)], t.class));
|
|
23
|
+
return n(r.Root, a(c, {
|
|
20
24
|
get class() {
|
|
21
|
-
return
|
|
25
|
+
return m();
|
|
22
26
|
},
|
|
23
27
|
get children() {
|
|
24
|
-
return [
|
|
28
|
+
return [n(r.Control, {
|
|
25
29
|
get class() {
|
|
26
30
|
return e.control;
|
|
27
31
|
},
|
|
28
32
|
get children() {
|
|
29
|
-
return
|
|
33
|
+
return n(r.Thumb, {
|
|
30
34
|
get class() {
|
|
31
35
|
return e.thumb;
|
|
32
36
|
}
|
|
33
37
|
});
|
|
34
38
|
}
|
|
35
|
-
}), o(() => o(() => !!
|
|
39
|
+
}), o(() => o(() => !!t.children)() && n(r.Label, {
|
|
36
40
|
get class() {
|
|
37
41
|
return e.label;
|
|
38
42
|
},
|
|
39
43
|
get children() {
|
|
40
|
-
return
|
|
44
|
+
return t.children;
|
|
41
45
|
}
|
|
42
|
-
})),
|
|
46
|
+
})), n(r.HiddenInput, {})];
|
|
43
47
|
}
|
|
44
48
|
}));
|
|
45
49
|
}
|
|
46
|
-
|
|
50
|
+
P.Original = r;
|
|
47
51
|
export {
|
|
48
|
-
|
|
52
|
+
P as Switch
|
|
49
53
|
};
|
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
const s = "
|
|
2
|
-
root:
|
|
3
|
-
control:
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
const e = "_root_vlxeu_1", s = "_control_vlxeu_17", _ = "_intentDanger_vlxeu_34", t = "_thumb_vlxeu_42", l = "_label_vlxeu_59", o = "_sizeXs_vlxeu_67", n = "_sizeSm_vlxeu_80", i = "_sizeMd_vlxeu_93", z = "_sizeLg_vlxeu_106", c = "_sizeXl_vlxeu_119", u = "_size2xl_vlxeu_132", x = {
|
|
2
|
+
root: e,
|
|
3
|
+
control: s,
|
|
4
|
+
intentDanger: _,
|
|
5
|
+
thumb: t,
|
|
6
|
+
label: l,
|
|
6
7
|
sizeXs: o,
|
|
7
|
-
sizeSm:
|
|
8
|
-
sizeMd:
|
|
8
|
+
sizeSm: n,
|
|
9
|
+
sizeMd: i,
|
|
9
10
|
sizeLg: z,
|
|
10
|
-
sizeXl:
|
|
11
|
-
size2xl:
|
|
11
|
+
sizeXl: c,
|
|
12
|
+
size2xl: u
|
|
12
13
|
};
|
|
13
14
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
s as control,
|
|
16
|
+
x as default,
|
|
17
|
+
_ as intentDanger,
|
|
18
|
+
l as label,
|
|
19
|
+
e as root,
|
|
20
|
+
u as size2xl,
|
|
19
21
|
z as sizeLg,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
i as sizeMd,
|
|
23
|
+
n as sizeSm,
|
|
24
|
+
c as sizeXl,
|
|
23
25
|
o as sizeXs,
|
|
24
|
-
|
|
26
|
+
t as thumb
|
|
25
27
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const t = "
|
|
1
|
+
const t = "_list_fl0ml_1", n = "_trigger_fl0ml_7", l = "_indicator_fl0ml_39", i = "_content_fl0ml_59", o = {
|
|
2
2
|
list: t,
|
|
3
|
-
trigger:
|
|
4
|
-
indicator:
|
|
3
|
+
trigger: n,
|
|
4
|
+
indicator: l,
|
|
5
5
|
content: i
|
|
6
6
|
};
|
|
7
7
|
export {
|
|
8
8
|
i as content,
|
|
9
9
|
o as default,
|
|
10
|
-
|
|
10
|
+
l as indicator,
|
|
11
11
|
t as list,
|
|
12
|
-
|
|
12
|
+
n as trigger
|
|
13
13
|
};
|
package/dist/Tag/Tag.js
CHANGED
|
@@ -1,56 +1,64 @@
|
|
|
1
|
-
import { spread as m, mergeProps as
|
|
2
|
-
import { splitProps as
|
|
3
|
-
import { CloseButton as
|
|
4
|
-
import { bem as
|
|
5
|
-
import { cn as
|
|
1
|
+
import { spread as m, mergeProps as p, insert as o, memo as f, createComponent as d, template as g } from "solid-js/web";
|
|
2
|
+
import { splitProps as z, mergeProps as b, createMemo as P } from "solid-js";
|
|
3
|
+
import { CloseButton as v } from "../CloseButton/CloseButton.js";
|
|
4
|
+
import { bem as x } from "../utils/bem.js";
|
|
5
|
+
import { cn as C } from "../utils/cn.js";
|
|
6
6
|
import e from "./Tag.module.css.js";
|
|
7
|
-
var
|
|
8
|
-
const
|
|
7
|
+
var _ = /* @__PURE__ */ g("<span>");
|
|
8
|
+
const $ = {
|
|
9
9
|
solid: e.solid,
|
|
10
|
+
surface: e.surface,
|
|
11
|
+
subtle: e.subtle,
|
|
10
12
|
outline: e.outline
|
|
11
|
-
},
|
|
12
|
-
|
|
13
|
+
}, M = {
|
|
14
|
+
neutral: e.intentNeutral,
|
|
15
|
+
accent: e.intentAccent,
|
|
13
16
|
success: e.intentSuccess,
|
|
14
17
|
warning: e.intentWarning,
|
|
15
|
-
danger: e.intentDanger
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
danger: e.intentDanger
|
|
19
|
+
}, S = {
|
|
20
|
+
default: "neutral",
|
|
21
|
+
info: "accent"
|
|
22
|
+
}, h = {
|
|
18
23
|
xs: e.sizeXs,
|
|
19
24
|
sm: e.sizeSm,
|
|
20
25
|
md: e.sizeMd,
|
|
21
26
|
lg: e.sizeLg,
|
|
22
27
|
xl: e.sizeXl,
|
|
23
28
|
"2xl": e.size2xl
|
|
24
|
-
},
|
|
25
|
-
variant: "
|
|
29
|
+
}, k = {
|
|
30
|
+
variant: "subtle",
|
|
26
31
|
intent: "default",
|
|
27
32
|
size: "sm",
|
|
28
33
|
closable: !1
|
|
29
34
|
};
|
|
30
|
-
function X(
|
|
31
|
-
const [t,
|
|
35
|
+
function X(i) {
|
|
36
|
+
const [t, l] = z(b(k, i), ["variant", "intent", "size", "closable", "onClose", "class", "children"]), s = (n) => typeof n == "function" ? n() : n, c = P(() => {
|
|
37
|
+
const n = s(t.variant), r = S[s(t.intent)] || s(t.intent);
|
|
38
|
+
return C(x("balik-tag", n, r, s(t.size)), e.base, $[n], M[r], h[s(t.size)], t.class);
|
|
39
|
+
});
|
|
32
40
|
return (() => {
|
|
33
|
-
var
|
|
34
|
-
return m(
|
|
41
|
+
var n = _();
|
|
42
|
+
return m(n, p(l, {
|
|
35
43
|
"data-part": "root",
|
|
36
44
|
get class() {
|
|
37
|
-
return
|
|
45
|
+
return c();
|
|
38
46
|
}
|
|
39
|
-
}), !1, !0),
|
|
40
|
-
var
|
|
41
|
-
return () =>
|
|
47
|
+
}), !1, !0), o(n, () => t.children, null), o(n, (() => {
|
|
48
|
+
var r = f(() => !!t.closable);
|
|
49
|
+
return () => r() && d(v, {
|
|
42
50
|
size: "xs",
|
|
43
51
|
rounded: !0,
|
|
44
52
|
get class() {
|
|
45
53
|
return e.close;
|
|
46
54
|
},
|
|
47
55
|
"data-part": "close",
|
|
48
|
-
onClick: (
|
|
49
|
-
var
|
|
50
|
-
|
|
56
|
+
onClick: (u) => {
|
|
57
|
+
var a;
|
|
58
|
+
u.stopPropagation(), (a = t.onClose) == null || a.call(t);
|
|
51
59
|
}
|
|
52
60
|
});
|
|
53
|
-
})(), null),
|
|
61
|
+
})(), null), n;
|
|
54
62
|
})();
|
|
55
63
|
}
|
|
56
64
|
export {
|
|
@@ -1,35 +1,39 @@
|
|
|
1
|
-
const n = "
|
|
2
|
-
base:
|
|
3
|
-
solid:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
const e = "_base_1lez1_1", n = "_solid_1lez1_30", s = "_surface_1lez1_35", t = "_subtle_1lez1_41", _ = "_outline_1lez1_46", i = "_intentNeutral_1lez1_53", l = "_intentAccent_1lez1_65", c = "_intentSuccess_1lez1_77", z = "_intentWarning_1lez1_89", o = "_intentDanger_1lez1_101", a = "_close_1lez1_115", u = "_sizeXs_1lez1_140", r = "_sizeSm_1lez1_147", g = "_sizeMd_1lez1_154", d = "_sizeLg_1lez1_161", b = "_sizeXl_1lez1_168", S = "_size2xl_1lez1_175", X = {
|
|
2
|
+
base: e,
|
|
3
|
+
solid: n,
|
|
4
|
+
surface: s,
|
|
5
|
+
subtle: t,
|
|
6
|
+
outline: _,
|
|
7
|
+
intentNeutral: i,
|
|
8
|
+
intentAccent: l,
|
|
9
|
+
intentSuccess: c,
|
|
10
|
+
intentWarning: z,
|
|
11
|
+
intentDanger: o,
|
|
12
|
+
close: a,
|
|
13
|
+
sizeXs: u,
|
|
14
|
+
sizeSm: r,
|
|
15
|
+
sizeMd: g,
|
|
16
|
+
sizeLg: d,
|
|
17
|
+
sizeXl: b,
|
|
18
|
+
size2xl: S
|
|
17
19
|
};
|
|
18
20
|
export {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
21
|
+
e as base,
|
|
22
|
+
a as close,
|
|
23
|
+
X as default,
|
|
24
|
+
l as intentAccent,
|
|
25
|
+
o as intentDanger,
|
|
26
|
+
i as intentNeutral,
|
|
27
|
+
c as intentSuccess,
|
|
28
|
+
z as intentWarning,
|
|
29
|
+
_ as outline,
|
|
30
|
+
S as size2xl,
|
|
31
|
+
d as sizeLg,
|
|
32
|
+
g as sizeMd,
|
|
33
|
+
r as sizeSm,
|
|
34
|
+
b as sizeXl,
|
|
35
|
+
u as sizeXs,
|
|
36
|
+
n as solid,
|
|
37
|
+
t as subtle,
|
|
38
|
+
s as surface
|
|
35
39
|
};
|