@balikjs/mobile 0.1.4 → 0.1.6

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.
Files changed (112) hide show
  1. package/README.md +1 -0
  2. package/dist/Alert/Alert.js +82 -0
  3. package/dist/Alert/Alert.module.css.js +25 -0
  4. package/dist/Avatar/Avatar.js +60 -0
  5. package/dist/Avatar/Avatar.module.css.js +27 -0
  6. package/dist/BackToTop/BackToTop.js +55 -0
  7. package/dist/BackToTop/BackToTop.module.css.js +11 -0
  8. package/dist/Badge/Badge.js +59 -0
  9. package/dist/Badge/Badge.module.css.js +45 -0
  10. package/dist/BottomNavigation/BottomNavigation.js +48 -0
  11. package/dist/BottomNavigation/BottomNavigation.module.css.js +13 -0
  12. package/dist/BottomSheet/BottomSheet.js +120 -0
  13. package/dist/BottomSheet/BottomSheet.module.css.js +25 -0
  14. package/dist/Button/Button.js +56 -0
  15. package/dist/Button/Button.module.css.js +31 -0
  16. package/dist/Card/Card.js +22 -0
  17. package/dist/Card/Card.module.css.js +7 -0
  18. package/dist/Checkbox/Checkbox.js +65 -0
  19. package/dist/Checkbox/Checkbox.module.css.js +27 -0
  20. package/dist/Clipboard/Clipboard.js +60 -0
  21. package/dist/Clipboard/Clipboard.module.css.js +21 -0
  22. package/dist/CloseButton/CloseButton.js +37 -0
  23. package/dist/CloseButton/CloseButton.module.css.js +21 -0
  24. package/dist/Confirm/Confirm.js +146 -0
  25. package/dist/Confirm/Confirm.module.css.js +7 -0
  26. package/dist/DatePicker/DatePicker.js +149 -0
  27. package/dist/DatePicker/DatePicker.module.css.js +29 -0
  28. package/dist/Dialog/Dialog.js +142 -0
  29. package/dist/Dialog/Dialog.module.css.js +29 -0
  30. package/dist/Divider/Divider.js +27 -0
  31. package/dist/Divider/Divider.module.css.js +9 -0
  32. package/dist/Drawer/Drawer.js +59 -0
  33. package/dist/Drawer/Drawer.module.css.js +19 -0
  34. package/dist/Empty/Empty.js +25 -0
  35. package/dist/Empty/Empty.module.css.js +9 -0
  36. package/dist/Fab/Fab.js +79 -0
  37. package/dist/Fab/Fab.module.css.js +19 -0
  38. package/dist/Field/Field.js +70 -0
  39. package/dist/Field/Field.module.css.js +21 -0
  40. package/dist/Fieldset/Fieldset.js +31 -0
  41. package/dist/Fieldset/Fieldset.module.css.js +9 -0
  42. package/dist/FileUpload/FileUpload.js +174 -0
  43. package/dist/FileUpload/FileUpload.module.css.js +35 -0
  44. package/dist/FilterGroup/FilterGroup.js +70 -0
  45. package/dist/FilterGroup/FilterGroup.module.css.js +23 -0
  46. package/dist/Input/Input.js +68 -0
  47. package/dist/Input/Input.module.css.js +35 -0
  48. package/dist/Link/Link.js +22 -0
  49. package/dist/Link/Link.module.css.js +7 -0
  50. package/dist/MoneyInput/MoneyInput.js +106 -0
  51. package/dist/MoneyInput/MoneyInput.module.css.js +9 -0
  52. package/dist/Pagination/Pagination.js +67 -0
  53. package/dist/Pagination/Pagination.module.css.js +11 -0
  54. package/dist/Picker/Picker.js +75 -0
  55. package/dist/Picker/Picker.module.css.js +15 -0
  56. package/dist/PickerView/PickerView.js +89 -0
  57. package/dist/PickerView/PickerView.module.css.js +21 -0
  58. package/dist/PickerView/wheel.js +146 -0
  59. package/dist/PinInput/PinInput.js +80 -0
  60. package/dist/PinInput/PinInput.module.css.js +23 -0
  61. package/dist/Popover/Popover.js +107 -0
  62. package/dist/Popover/Popover.module.css.js +17 -0
  63. package/dist/Progress/Progress.js +80 -0
  64. package/dist/Progress/Progress.module.css.js +27 -0
  65. package/dist/QrCode/QrCode.js +78 -0
  66. package/dist/QrCode/QrCode.module.css.js +15 -0
  67. package/dist/RadioGroup/Radio.js +42 -0
  68. package/dist/RadioGroup/Radio.module.css.js +23 -0
  69. package/dist/RadioGroup/RadioGroup.js +29 -0
  70. package/dist/RadioGroup/RadioGroup.module.css.js +9 -0
  71. package/dist/RatingGroup/RatingGroup.js +87 -0
  72. package/dist/RatingGroup/RatingGroup.module.css.js +13 -0
  73. package/dist/SafeArea/SafeArea.js +24 -0
  74. package/dist/SafeArea/SafeArea.module.css.js +15 -0
  75. package/dist/SearchInput/SearchInput.js +76 -0
  76. package/dist/SearchInput/SearchInput.module.css.js +11 -0
  77. package/dist/Select/Select.js +122 -0
  78. package/dist/Select/Select.module.css.js +29 -0
  79. package/dist/SelectPc/Select.js +130 -0
  80. package/dist/SelectPc/SelectPc.module.css.js +31 -0
  81. package/dist/Skeleton/Skeleton.js +42 -0
  82. package/dist/Skeleton/Skeleton.module.css.js +11 -0
  83. package/dist/Slider/Slider.js +63 -0
  84. package/dist/Slider/Slider.module.css.js +19 -0
  85. package/dist/Spinner/Spinner.js +31 -0
  86. package/dist/Spinner/Spinner.module.css.js +17 -0
  87. package/dist/Steps/Steps.js +173 -0
  88. package/dist/Steps/Steps.module.css.js +31 -0
  89. package/dist/StickyHeader/StickyHeader.js +30 -0
  90. package/dist/StickyHeader/StickyHeader.module.css.js +9 -0
  91. package/dist/Switch/Switch.js +49 -0
  92. package/dist/Switch/Switch.module.css.js +25 -0
  93. package/dist/Tabs/Tabs.js +55 -0
  94. package/dist/Tabs/Tabs.module.css.js +13 -0
  95. package/dist/Tag/Tag.js +58 -0
  96. package/dist/Tag/Tag.module.css.js +35 -0
  97. package/dist/Textarea/Textarea.js +32 -0
  98. package/dist/Textarea/Textarea.module.css.js +21 -0
  99. package/dist/Toast/Toast.js +137 -0
  100. package/dist/Toast/Toast.module.css.js +43 -0
  101. package/dist/Toggle/Toggle.js +33 -0
  102. package/dist/Toggle/Toggle.module.css.js +9 -0
  103. package/dist/ToggleGroup/ToggleGroup.js +42 -0
  104. package/dist/ToggleGroup/ToggleGroup.module.css.js +19 -0
  105. package/dist/Tooltip/Tooltip.js +71 -0
  106. package/dist/Tooltip/Tooltip.module.css.js +13 -0
  107. package/dist/index.js +164 -3641
  108. package/dist/styles.css +1 -1
  109. package/dist/utils/bem.js +6 -0
  110. package/dist/utils/cn.js +6 -0
  111. package/dist/utils/useScrollLock.js +16 -0
  112. package/package.json +3 -198
@@ -0,0 +1,55 @@
1
+ import { createComponent as n, mergeProps as o } from "solid-js/web";
2
+ import { splitProps as e } from "solid-js";
3
+ import { Tabs as a } from "@ark-ui/solid";
4
+ import { bem as c } from "../utils/bem.js";
5
+ import { cn as l } from "../utils/cn.js";
6
+ import i from "./Tabs.module.css.js";
7
+ function m(t) {
8
+ const [r, s] = e(t, ["variant", "defaultValue", "defaultIndex"]), u = r.variant ?? "card";
9
+ return n(a.Root, o({
10
+ get class() {
11
+ return l(c());
12
+ },
13
+ "data-tabs-variant": u
14
+ }, s));
15
+ }
16
+ function v(t) {
17
+ const [r, s] = e(t, ["class"]);
18
+ return n(a.List, o({
19
+ get class() {
20
+ return l(c(), i.list, r.class);
21
+ }
22
+ }, s));
23
+ }
24
+ function C(t) {
25
+ const [r, s] = e(t, ["class"]);
26
+ return n(a.Trigger, o({
27
+ get class() {
28
+ return l(c(), i.trigger, r.class);
29
+ }
30
+ }, s));
31
+ }
32
+ function I(t) {
33
+ const [r, s] = e(t, ["class"]);
34
+ return n(a.Content, o({
35
+ get class() {
36
+ return l(c(), i.content, r.class);
37
+ }
38
+ }, s));
39
+ }
40
+ function x(t) {
41
+ const [r, s] = e(t, ["class"]);
42
+ return n(a.Indicator, o({
43
+ get class() {
44
+ return l(c(), i.indicator, r.class);
45
+ }
46
+ }, s));
47
+ }
48
+ m.Original = a;
49
+ export {
50
+ m as Tabs,
51
+ I as TabsContent,
52
+ x as TabsIndicator,
53
+ v as TabsList,
54
+ C as TabsTrigger
55
+ };
@@ -0,0 +1,13 @@
1
+ const t = "_list_1hun2_1", n = "_trigger_1hun2_7", i = "_indicator_1hun2_38", o = "_content_1hun2_58", _ = {
2
+ list: t,
3
+ trigger: n,
4
+ indicator: i,
5
+ content: o
6
+ };
7
+ export {
8
+ o as content,
9
+ _ as default,
10
+ i as indicator,
11
+ t as list,
12
+ n as trigger
13
+ };
@@ -0,0 +1,58 @@
1
+ import { spread as m, mergeProps as c, insert as r, memo as p, createComponent as u, template as d } from "solid-js/web";
2
+ import { splitProps as f, mergeProps as g } from "solid-js";
3
+ import { CloseButton as z } from "../CloseButton/CloseButton.js";
4
+ import { bem as v } from "../utils/bem.js";
5
+ import { cn as P } from "../utils/cn.js";
6
+ import e from "./Tag.module.css.js";
7
+ var b = /* @__PURE__ */ d("<span>");
8
+ const x = {
9
+ solid: e.solid,
10
+ outline: e.outline
11
+ }, C = {
12
+ default: e.intentDefault,
13
+ success: e.intentSuccess,
14
+ warning: e.intentWarning,
15
+ danger: e.intentDanger,
16
+ info: e.intentInfo
17
+ }, _ = {
18
+ xs: e.sizeXs,
19
+ sm: e.sizeSm,
20
+ md: e.sizeMd,
21
+ lg: e.sizeLg,
22
+ xl: e.sizeXl,
23
+ "2xl": e.size2xl
24
+ }, $ = {
25
+ variant: "solid",
26
+ intent: "default",
27
+ size: "sm",
28
+ closable: !1
29
+ };
30
+ function X(o) {
31
+ const [t, i] = f(g($, o), ["variant", "intent", "size", "closable", "onClose", "class", "children"]);
32
+ return (() => {
33
+ var s = b();
34
+ return m(s, c(i, {
35
+ "data-part": "root",
36
+ get class() {
37
+ return P(v("balik-tag", t.variant, t.intent, t.size), e.base, x[t.variant], C[t.intent], _[t.size], t.class);
38
+ }
39
+ }), !1, !0), r(s, () => t.children, null), r(s, (() => {
40
+ var a = p(() => !!t.closable);
41
+ return () => a() && u(z, {
42
+ size: "xs",
43
+ rounded: !0,
44
+ get class() {
45
+ return e.close;
46
+ },
47
+ "data-part": "close",
48
+ onClick: (l) => {
49
+ var n;
50
+ l.stopPropagation(), (n = t.onClose) == null || n.call(t);
51
+ }
52
+ });
53
+ })(), null), s;
54
+ })();
55
+ }
56
+ export {
57
+ X as Tag
58
+ };
@@ -0,0 +1,35 @@
1
+ const n = "_base_18cwb_1", s = "_solid_18cwb_19", t = "_outline_18cwb_25", e = "_intentDefault_18cwb_31", _ = "_intentSuccess_18cwb_37", i = "_intentWarning_18cwb_43", c = "_intentDanger_18cwb_49", o = "_intentInfo_18cwb_55", l = "_close_18cwb_61", b = "_sizeXs_18cwb_94", z = "_sizeSm_18cwb_101", w = "_sizeMd_18cwb_108", a = "_sizeLg_18cwb_115", u = "_sizeXl_18cwb_122", g = "_size2xl_18cwb_129", d = {
2
+ base: n,
3
+ solid: s,
4
+ outline: t,
5
+ intentDefault: e,
6
+ intentSuccess: _,
7
+ intentWarning: i,
8
+ intentDanger: c,
9
+ intentInfo: o,
10
+ close: l,
11
+ sizeXs: b,
12
+ sizeSm: z,
13
+ sizeMd: w,
14
+ sizeLg: a,
15
+ sizeXl: u,
16
+ size2xl: g
17
+ };
18
+ export {
19
+ n as base,
20
+ l as close,
21
+ d as default,
22
+ c as intentDanger,
23
+ e as intentDefault,
24
+ o as intentInfo,
25
+ _ as intentSuccess,
26
+ i as intentWarning,
27
+ t as outline,
28
+ g as size2xl,
29
+ a as sizeLg,
30
+ w as sizeMd,
31
+ z as sizeSm,
32
+ u as sizeXl,
33
+ b as sizeXs,
34
+ s as solid
35
+ };
@@ -0,0 +1,32 @@
1
+ import { createComponent as o, mergeProps as a } from "solid-js/web";
2
+ import { splitProps as m, mergeProps as n } from "solid-js";
3
+ import { ark as r } from "@ark-ui/solid/factory";
4
+ import { bem as l } from "../utils/bem.js";
5
+ import { cn as p } from "../utils/cn.js";
6
+ import s from "./Textarea.module.css.js";
7
+ const c = {
8
+ solid: s.solid,
9
+ outline: s.outline
10
+ }, z = {
11
+ xs: s.sizeXs,
12
+ sm: s.sizeSm,
13
+ md: s.sizeMd,
14
+ lg: s.sizeLg,
15
+ xl: s.sizeXl
16
+ }, f = {
17
+ variant: "outline",
18
+ size: "md",
19
+ disabled: !1
20
+ };
21
+ function d(t) {
22
+ const [e, i] = m(n(f, t), ["variant", "size", "class"]);
23
+ return o(r.textarea, a(i, {
24
+ get class() {
25
+ return p(l("balik-textarea", e.variant, e.size), s.base, c[e.variant], z[e.size], e.class);
26
+ }
27
+ }));
28
+ }
29
+ d.Original = r;
30
+ export {
31
+ d as Textarea
32
+ };
@@ -0,0 +1,21 @@
1
+ const s = "_base_n2l8t_1", e = "_solid_n2l8t_32", _ = "_outline_n2l8t_41", t = "_sizeXs_n2l8t_51", i = "_sizeSm_n2l8t_59", n = "_sizeMd_n2l8t_67", l = "_sizeLg_n2l8t_75", o = "_sizeXl_n2l8t_83", z = {
2
+ base: s,
3
+ solid: e,
4
+ outline: _,
5
+ sizeXs: t,
6
+ sizeSm: i,
7
+ sizeMd: n,
8
+ sizeLg: l,
9
+ sizeXl: o
10
+ };
11
+ export {
12
+ s as base,
13
+ z as default,
14
+ _ as outline,
15
+ l as sizeLg,
16
+ n as sizeMd,
17
+ i as sizeSm,
18
+ o as sizeXl,
19
+ t as sizeXs,
20
+ e as solid
21
+ };
@@ -0,0 +1,137 @@
1
+ import { spread as E, mergeProps as I, insert as l, createComponent as a, template as u, memo as P, effect as b, className as d } from "solid-js/web";
2
+ import { createStore as z } from "solid-js/store";
3
+ import { splitProps as C, mergeProps as A, For as B, createEffect as F, onCleanup as L } from "solid-js";
4
+ import { Info as R, XCircle as S, TriangleAlert as N, CircleCheck as k } from "lucide-solid";
5
+ import { CloseButton as w } from "../CloseButton/CloseButton.js";
6
+ import { bem as T } from "../utils/bem.js";
7
+ import { cn as x } from "../utils/cn.js";
8
+ import e from "./Toast.module.css.js";
9
+ var y = /* @__PURE__ */ u("<section>"), D = /* @__PURE__ */ u("<div role=status data-part=item><span data-part=icon></span><div data-part=body><p data-part=title>"), O = /* @__PURE__ */ u("<p data-part=description>");
10
+ const q = {
11
+ "top-left": e.positionTopLeft,
12
+ "top-center": e.positionTopCenter,
13
+ "top-right": e.positionTopRight,
14
+ "bottom-left": e.positionBottomLeft,
15
+ "bottom-center": e.positionBottomCenter,
16
+ "bottom-right": e.positionBottomRight
17
+ }, G = {
18
+ info: e.intentInfo,
19
+ success: e.intentSuccess,
20
+ warning: e.intentWarning,
21
+ danger: e.intentDanger
22
+ }, U = {
23
+ success: () => a(k, {
24
+ size: 20,
25
+ "aria-hidden": "true"
26
+ }),
27
+ warning: () => a(N, {
28
+ size: 20,
29
+ "aria-hidden": "true"
30
+ }),
31
+ danger: () => a(S, {
32
+ size: 20,
33
+ "aria-hidden": "true"
34
+ }),
35
+ info: () => a(R, {
36
+ size: 20,
37
+ "aria-hidden": "true"
38
+ })
39
+ };
40
+ let V = 0;
41
+ const [_, p] = z([]);
42
+ function et(n) {
43
+ const t = typeof n == "string" ? {
44
+ title: n
45
+ } : n, s = ++V, i = t.duration ?? 5e3;
46
+ return p([..._, {
47
+ id: s,
48
+ title: t.title,
49
+ description: t.description ?? "",
50
+ intent: t.intent ?? "info",
51
+ duration: i,
52
+ state: "enter"
53
+ }]), i > 0 && setTimeout(() => $(s), i), s;
54
+ }
55
+ function $(n) {
56
+ p((t) => t.id === n, "state", "exit");
57
+ }
58
+ function W(n) {
59
+ p((t) => t.filter((s) => s.id !== n));
60
+ }
61
+ const X = {
62
+ position: "top-right"
63
+ };
64
+ function it(n) {
65
+ const [t, s] = C(A(X, n), ["position", "class"]);
66
+ return (() => {
67
+ var i = y();
68
+ return E(i, I(s, {
69
+ "aria-live": "polite",
70
+ "aria-label": "Notifications",
71
+ get class() {
72
+ return x(T(), e.region, q[t.position], t.class);
73
+ },
74
+ "data-part": "region"
75
+ }), !1, !0), l(i, a(B, {
76
+ each: _,
77
+ children: (o) => a(j, {
78
+ get id() {
79
+ return o.id;
80
+ },
81
+ get title() {
82
+ return o.title;
83
+ },
84
+ get description() {
85
+ return o.description;
86
+ },
87
+ get intent() {
88
+ return o.intent;
89
+ },
90
+ get state() {
91
+ return o.state;
92
+ }
93
+ })
94
+ })), i;
95
+ })();
96
+ }
97
+ function j(n) {
98
+ const [t] = C(n, ["id", "title", "description", "intent", "state"]), s = (i) => {
99
+ i.target === i.currentTarget && t.state === "exit" && W(t.id);
100
+ };
101
+ return F(() => {
102
+ if (t.state === "enter") {
103
+ const i = requestAnimationFrame(() => {
104
+ p((o) => o.id === t.id, "state", "visible");
105
+ });
106
+ L(() => cancelAnimationFrame(i));
107
+ }
108
+ }), (() => {
109
+ var i = D(), o = i.firstChild, m = o.nextSibling, f = m.firstChild;
110
+ return i.addEventListener("transitionend", s), l(o, () => U[t.intent]()), l(f, () => t.title), l(m, (() => {
111
+ var r = P(() => !!t.description);
112
+ return () => r() && (() => {
113
+ var c = O();
114
+ return l(c, () => t.description), b(() => d(c, e.description)), c;
115
+ })();
116
+ })(), null), l(i, a(w, {
117
+ size: "xs",
118
+ get class() {
119
+ return e.close;
120
+ },
121
+ onClick: () => $(t.id),
122
+ "data-part": "close"
123
+ }), null), b((r) => {
124
+ var c = x(T(), e.item, G[t.intent], t.state === "exit" && e.itemExit, t.state === "visible" && e.itemVisible), g = e.icon, v = e.body, h = e.title;
125
+ return c !== r.e && d(i, r.e = c), g !== r.t && d(o, r.t = g), v !== r.a && d(m, r.a = v), h !== r.o && d(f, r.o = h), r;
126
+ }, {
127
+ e: void 0,
128
+ t: void 0,
129
+ a: void 0,
130
+ o: void 0
131
+ }), i;
132
+ })();
133
+ }
134
+ export {
135
+ it as Toast,
136
+ et as toast
137
+ };
@@ -0,0 +1,43 @@
1
+ const t = "_region_xjbrb_1", o = "_positionTopLeft_xjbrb_13", i = "_positionTopCenter_xjbrb_19", n = "_positionTopRight_xjbrb_26", e = "_positionBottomLeft_xjbrb_32", _ = "_positionBottomCenter_xjbrb_39", s = "_positionBottomRight_xjbrb_47", b = "_item_xjbrb_54", r = "_itemVisible_xjbrb_72", c = "_itemExit_xjbrb_77", p = "_icon_xjbrb_82", x = "_body_xjbrb_95", j = "_title_xjbrb_100", m = "_description_xjbrb_109", g = "_close_xjbrb_118", l = "_intentSuccess_xjbrb_140", f = "_intentWarning_xjbrb_144", B = "_intentDanger_xjbrb_148", T = "_intentInfo_xjbrb_152", a = {
2
+ region: t,
3
+ positionTopLeft: o,
4
+ positionTopCenter: i,
5
+ positionTopRight: n,
6
+ positionBottomLeft: e,
7
+ positionBottomCenter: _,
8
+ positionBottomRight: s,
9
+ item: b,
10
+ itemVisible: r,
11
+ itemExit: c,
12
+ icon: p,
13
+ body: x,
14
+ title: j,
15
+ description: m,
16
+ close: g,
17
+ intentSuccess: l,
18
+ intentWarning: f,
19
+ intentDanger: B,
20
+ intentInfo: T
21
+ };
22
+ export {
23
+ x as body,
24
+ g as close,
25
+ a as default,
26
+ m as description,
27
+ p as icon,
28
+ B as intentDanger,
29
+ T as intentInfo,
30
+ l as intentSuccess,
31
+ f as intentWarning,
32
+ b as item,
33
+ c as itemExit,
34
+ r as itemVisible,
35
+ _ as positionBottomCenter,
36
+ e as positionBottomLeft,
37
+ s as positionBottomRight,
38
+ i as positionTopCenter,
39
+ o as positionTopLeft,
40
+ n as positionTopRight,
41
+ t as region,
42
+ j as title
43
+ };
@@ -0,0 +1,33 @@
1
+ import { createComponent as n, mergeProps as l } from "solid-js/web";
2
+ import { splitProps as s } from "solid-js";
3
+ import { Toggle as e } from "@ark-ui/solid";
4
+ import { bem as a } from "../utils/bem.js";
5
+ import { cn as c } from "../utils/cn.js";
6
+ import i from "./Toggle.module.css.js";
7
+ function m(o) {
8
+ const [r, t] = s(o, ["class", "children", "defaultPressed"]);
9
+ return n(e.Root, l(t, {
10
+ get class() {
11
+ return c(a(), i.root, r.class);
12
+ },
13
+ get children() {
14
+ return r.children;
15
+ }
16
+ }));
17
+ }
18
+ function T(o) {
19
+ const [r, t] = s(o, ["class", "children"]);
20
+ return n(e.Indicator, l(t, {
21
+ get class() {
22
+ return c(i.indicator, r.class);
23
+ },
24
+ get children() {
25
+ return r.children;
26
+ }
27
+ }));
28
+ }
29
+ m.Original = e;
30
+ export {
31
+ m as Toggle,
32
+ T as ToggleIndicator
33
+ };
@@ -0,0 +1,9 @@
1
+ const o = "_root_8md5k_1", t = "_indicator_8md5k_40", r = {
2
+ root: o,
3
+ indicator: t
4
+ };
5
+ export {
6
+ r as default,
7
+ t as indicator,
8
+ o as root
9
+ };
@@ -0,0 +1,42 @@
1
+ import { createComponent as l, mergeProps as i } from "solid-js/web";
2
+ import { splitProps as m, mergeProps as g } from "solid-js";
3
+ import { ToggleGroup as t } from "@ark-ui/solid";
4
+ import { cn as n } from "../utils/cn.js";
5
+ import { bem as c } from "../utils/bem.js";
6
+ import e from "./ToggleGroup.module.css.js";
7
+ const p = {
8
+ xs: e.sizeXs,
9
+ sm: e.sizeSm,
10
+ md: e.sizeMd,
11
+ lg: e.sizeLg,
12
+ xl: e.sizeXl
13
+ }, a = {
14
+ size: "md"
15
+ };
16
+ function u(s) {
17
+ const [r, o] = m(g(a, s), ["class", "children", "size", "defaultValue"]);
18
+ return l(t.Root, i(o, {
19
+ get class() {
20
+ return n(c(), e.root, p[r.size], r.class);
21
+ },
22
+ get children() {
23
+ return r.children;
24
+ }
25
+ }));
26
+ }
27
+ function G(s) {
28
+ const [r, o] = m(s, ["class", "children"]);
29
+ return l(t.Item, i(o, {
30
+ get class() {
31
+ return n(c(), e.item, r.class);
32
+ },
33
+ get children() {
34
+ return r.children;
35
+ }
36
+ }));
37
+ }
38
+ u.Original = t;
39
+ export {
40
+ u as ToggleGroup,
41
+ G as ToggleGroupItem
42
+ };
@@ -0,0 +1,19 @@
1
+ const s = "_root_1yyof_1", o = "_item_1yyof_6", e = "_sizeXs_1yyof_64", _ = "_sizeSm_1yyof_75", i = "_sizeMd_1yyof_86", t = "_sizeLg_1yyof_97", y = "_sizeXl_1yyof_108", z = {
2
+ root: s,
3
+ item: o,
4
+ sizeXs: e,
5
+ sizeSm: _,
6
+ sizeMd: i,
7
+ sizeLg: t,
8
+ sizeXl: y
9
+ };
10
+ export {
11
+ z as default,
12
+ o as item,
13
+ s as root,
14
+ t as sizeLg,
15
+ i as sizeMd,
16
+ _ as sizeSm,
17
+ y as sizeXl,
18
+ e as sizeXs
19
+ };
@@ -0,0 +1,71 @@
1
+ import { createComponent as r, mergeProps as s, Portal as i, memo as c } from "solid-js/web";
2
+ import { splitProps as a, mergeProps as g } from "solid-js";
3
+ import { Tooltip as e } from "@ark-ui/solid";
4
+ import { bem as p } from "../utils/bem.js";
5
+ import { cn as m } from "../utils/cn.js";
6
+ import t from "./Tooltip.module.css.js";
7
+ const u = {
8
+ openDelay: 300,
9
+ closeDelay: 100
10
+ };
11
+ function d(n) {
12
+ const [o, l] = a(g(u, n), ["content", "class", "children", "defaultOpen"]);
13
+ return r(e.Root, s(l, {
14
+ get openDelay() {
15
+ return o.openDelay;
16
+ },
17
+ get closeDelay() {
18
+ return o.closeDelay;
19
+ },
20
+ get class() {
21
+ return m(p());
22
+ },
23
+ get children() {
24
+ return [r(e.Trigger, {
25
+ as: "div",
26
+ get class() {
27
+ return t.trigger;
28
+ },
29
+ get children() {
30
+ return o.children;
31
+ }
32
+ }), r(i, {
33
+ get mount() {
34
+ return document.body;
35
+ },
36
+ get children() {
37
+ return r(e.Positioner, {
38
+ get class() {
39
+ return t.positioner;
40
+ },
41
+ get children() {
42
+ return r(e.Content, {
43
+ get class() {
44
+ return t.content;
45
+ },
46
+ get children() {
47
+ return [r(e.Arrow, {
48
+ get class() {
49
+ return t.arrow;
50
+ },
51
+ get children() {
52
+ return r(e.ArrowTip, {
53
+ get class() {
54
+ return t.arrowTip;
55
+ }
56
+ });
57
+ }
58
+ }), c(() => o.content)];
59
+ }
60
+ });
61
+ }
62
+ });
63
+ }
64
+ })];
65
+ }
66
+ }));
67
+ }
68
+ d.Original = e;
69
+ export {
70
+ d as Tooltip
71
+ };
@@ -0,0 +1,13 @@
1
+ const t = "_trigger_1nmhi_1", n = "_positioner_1nmhi_10", o = "_content_1nmhi_14", i = "_arrowTip_1nmhi_38", r = {
2
+ trigger: t,
3
+ positioner: n,
4
+ content: o,
5
+ arrowTip: i
6
+ };
7
+ export {
8
+ i as arrowTip,
9
+ o as content,
10
+ r as default,
11
+ n as positioner,
12
+ t as trigger
13
+ };