@functionalui/functionalui 0.2.6 → 0.2.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.
Files changed (138) hide show
  1. package/dist/Admonition-BVd4bXl_.cjs +1 -0
  2. package/dist/Admonition-CReUUZzJ.js +88 -0
  3. package/dist/{Avatar-CQA0mEVW.js → Avatar-CkxjB_cU.js} +4 -4
  4. package/dist/AvatarGroup-CbohU2rq.cjs +1 -0
  5. package/dist/AvatarGroup-FpaQP2H4.js +52 -0
  6. package/dist/{Button-CpTXDsI7.js → Button-DLwud-g7.js} +8 -8
  7. package/dist/{Checkbox-C29jP71p.js → Checkbox-CNpy1wvA.js} +3 -3
  8. package/dist/Checkboxes-CQVptWR8.cjs +1 -0
  9. package/dist/Checkboxes-Cj740f5X.js +80 -0
  10. package/dist/Chip-DgSZZTgy.js +132 -0
  11. package/dist/Chip-HOh--tbB.cjs +1 -0
  12. package/dist/ColorPicker-DUz0qcHd.js +234 -0
  13. package/dist/ColorPicker-rxR_V4EW.cjs +1 -0
  14. package/dist/DivMeasure-C398kYvk.js +26 -0
  15. package/dist/DivMeasure-oi_fzKlp.cjs +1 -0
  16. package/dist/GalleryModal-DjCnCkbg.js +464 -0
  17. package/dist/GalleryModal-wFC9x3Em.cjs +1 -0
  18. package/dist/InputImage-CInJWoGb.cjs +1 -0
  19. package/dist/InputImage-ZST0lvcI.js +106 -0
  20. package/dist/InputText-Bjhoe-Tm.cjs +1 -0
  21. package/dist/InputText-DnR7KYJS.js +246 -0
  22. package/dist/InsetGroup-BHxpHwpd.js +105 -0
  23. package/dist/InsetGroup-CGACEEbB.cjs +1 -0
  24. package/dist/{LabelText-D7QIWtWj.js → LabelText-WYEq5keJ.js} +3 -3
  25. package/dist/LoadingSpinner-BC0eMoVW.js +101 -0
  26. package/dist/LoadingSpinner-DykDI5-W.cjs +1 -0
  27. package/dist/{Modal-DXLyt-j4.js → Modal-Di5ye0Cr.js} +4 -4
  28. package/dist/NotificationSystem-B5NXsG0a.js +158 -0
  29. package/dist/NotificationSystem-D4ydo2Lk.cjs +1 -0
  30. package/dist/Radio-Dd5W2Lpf.js +121 -0
  31. package/dist/Radio-QbaBzLpf.cjs +1 -0
  32. package/dist/SelectSpring-BOfRXdag.js +471 -0
  33. package/dist/SelectSpring-DFKWTbF1.cjs +1 -0
  34. package/dist/SpringEnter-CPw1YgNg.cjs +1 -0
  35. package/dist/SpringEnter-CoVZpW-c.js +44 -0
  36. package/dist/{SpringEnterOffsetBy-DMSIQgV3.js → SpringEnterOffsetBy-BKglENgZ.js} +2 -2
  37. package/dist/SpringMenuTransition-B_PoFoqO.cjs +1 -0
  38. package/dist/SpringMenuTransition-CzSfyvDZ.js +42 -0
  39. package/dist/SpringOpenCloseHeight-COvFkc30.js +18 -0
  40. package/dist/SpringOpenCloseHeight-CyxsSgRD.cjs +1 -0
  41. package/dist/TableGrid-BYBVHJt9.cjs +1 -0
  42. package/dist/TableGrid-QlKM9Sdp.js +49 -0
  43. package/dist/{TableHeader-Da0XxILB.js → TableHeader-D3V5Z3JL.js} +4 -4
  44. package/dist/{TableRow-BlJSvake.js → TableRow-DKC9qdjQ.js} +3 -3
  45. package/dist/Tabs-BkUyxceG.js +134 -0
  46. package/dist/Tabs-C8VAb1g0.cjs +1 -0
  47. package/dist/{TagColor-BYKxfOU6.js → TagColor-Bd3n3RCF.js} +3 -3
  48. package/dist/TextArea-Bsm5M8lo.cjs +1 -0
  49. package/dist/TextArea-Cd3q9BMN.js +160 -0
  50. package/dist/ToggleSwitch-BNAk1Wp6.js +100 -0
  51. package/dist/ToggleSwitch-D6ltRmPy.cjs +1 -0
  52. package/dist/{UIcon-BHzbeYWw.js → UIcon-Cc5PX9WJ.js} +3 -3
  53. package/dist/UiContexts-36wfLVYv.cjs +1 -0
  54. package/dist/UiContexts-BMJZJR8C.js +35 -0
  55. package/dist/admonition/index.cjs +1 -1
  56. package/dist/admonition/index.mjs +2 -86
  57. package/dist/avatar/index.mjs +1 -1
  58. package/dist/avatar-group/index.cjs +1 -1
  59. package/dist/avatar-group/index.mjs +2 -50
  60. package/dist/button/index.mjs +1 -1
  61. package/dist/checkbox/index.mjs +1 -1
  62. package/dist/checkboxes/index.cjs +1 -1
  63. package/dist/checkboxes/index.mjs +2 -78
  64. package/dist/chip/index.cjs +1 -1
  65. package/dist/chip/index.mjs +2 -130
  66. package/dist/color-picker/index.cjs +1 -1
  67. package/dist/color-picker/index.mjs +2 -232
  68. package/dist/{component-CW2JPBAq.js → component-89pO-V2r.js} +1 -1
  69. package/dist/{component-BvHdlcdE.js → component-BbiEBU5H.js} +1 -1
  70. package/dist/component-BvmPGrYv.cjs +1 -0
  71. package/dist/{component-C1Gs4nVu.js → component-CGEZuC_0.js} +1 -1
  72. package/dist/{component-DRXQXr2G.js → component-CLzFHaNK.js} +1 -1
  73. package/dist/{component-D0wwK4KY.js → component-D-bBH8nL.js} +1 -1
  74. package/dist/{component-DCHO9d6d.js → component-DBDhHeDP.js} +1 -1
  75. package/dist/{component-D5nxKQnT.js → component-DP7cQasn.js} +1 -1
  76. package/dist/{component-CBIQe7z5.js → component-JelkpADf.js} +1 -1
  77. package/dist/{component-DdQu0mLI.js → component-SecZNuYG.js} +1 -1
  78. package/dist/component-cHg1BfVy.js +28 -0
  79. package/dist/container/index.mjs +1 -1
  80. package/dist/contexts/ui/index.cjs +1 -1
  81. package/dist/contexts/ui/index.mjs +3 -32
  82. package/dist/{createTextElement-Cgrvdwvh.js → createTextElement-d3-b9Lvn.js} +1 -1
  83. package/dist/css/index.css +1 -1
  84. package/dist/div-measure/index.cjs +1 -1
  85. package/dist/div-measure/index.mjs +2 -23
  86. package/dist/gallery-modal/index.cjs +1 -1
  87. package/dist/gallery-modal/index.mjs +2 -461
  88. package/dist/icons/index.mjs +1 -1
  89. package/dist/input-image/index.cjs +1 -1
  90. package/dist/input-image/index.mjs +2 -103
  91. package/dist/input-text/index.cjs +1 -1
  92. package/dist/input-text/index.mjs +2 -243
  93. package/dist/inset-group/index.cjs +1 -1
  94. package/dist/inset-group/index.mjs +2 -102
  95. package/dist/label-text/index.mjs +1 -1
  96. package/dist/layout/index.mjs +1 -1
  97. package/dist/loading-spinner/index.cjs +1 -1
  98. package/dist/loading-spinner/index.mjs +3 -98
  99. package/dist/main.cjs +1 -0
  100. package/dist/main.mjs +95 -0
  101. package/dist/modal/index.mjs +1 -1
  102. package/dist/notification-system/index.cjs +1 -1
  103. package/dist/notification-system/index.mjs +2 -155
  104. package/dist/radio/index.cjs +1 -1
  105. package/dist/radio/index.mjs +2 -118
  106. package/dist/{react-spring_web.modern-DgQDaJ06.js → react-spring_web.modern-DUf5COpz.js} +3 -3
  107. package/dist/select-spring/index.cjs +1 -1
  108. package/dist/select-spring/index.mjs +2 -468
  109. package/dist/spring-enter/index.cjs +1 -1
  110. package/dist/spring-enter/index.mjs +2 -42
  111. package/dist/spring-enter-offset-by/index.mjs +1 -1
  112. package/dist/spring-menu-transition/index.cjs +1 -1
  113. package/dist/spring-menu-transition/index.mjs +2 -40
  114. package/dist/spring-open-close-height/index.cjs +1 -1
  115. package/dist/spring-open-close-height/index.mjs +2 -16
  116. package/dist/styled/button/index.mjs +1 -1
  117. package/dist/styled/inputs/text/index.mjs +1 -1
  118. package/dist/styled/inputs/text-area/index.mjs +1 -1
  119. package/dist/styled/li/index.mjs +1 -1
  120. package/dist/styled/ul/index.mjs +1 -1
  121. package/dist/table-grid/index.cjs +1 -1
  122. package/dist/table-grid/index.mjs +2 -46
  123. package/dist/table-header/index.mjs +1 -1
  124. package/dist/table-row/index.mjs +1 -1
  125. package/dist/tabs/index.cjs +1 -1
  126. package/dist/tabs/index.mjs +2 -132
  127. package/dist/tag-color/index.mjs +1 -1
  128. package/dist/text-area/index.cjs +1 -1
  129. package/dist/text-area/index.mjs +2 -157
  130. package/dist/texts/header/index.cjs +1 -1
  131. package/dist/texts/header/index.mjs +2 -26
  132. package/dist/texts/p/index.mjs +1 -1
  133. package/dist/texts/span/index.mjs +1 -1
  134. package/dist/toggle-switch/index.cjs +1 -1
  135. package/dist/toggle-switch/index.mjs +2 -98
  136. package/dist/{types-BNUi2DUD.js → types-xFemYgmc.js} +1 -1
  137. package/dist/types.mjs +1 -1
  138. package/package.json +9 -1
@@ -0,0 +1,246 @@
1
+ "use client";
2
+ import { jsxs as L, jsx as e } from "react/jsx-runtime";
3
+ import { C as f } from "./component-CGEZuC_0.js";
4
+ import { F as tt } from "./component-JelkpADf.js";
5
+ import { C as b, a as ot } from "./generics-D33J7ILI.js";
6
+ import { C as et, f as rt, c as st } from "./generics-C-WSPclF.js";
7
+ import { S as nt } from "./values-B5r2bYNJ.js";
8
+ import { c as z, a as s, I as D, e as S, h as m, f as it, g as y, b as I } from "./icons-B8R1UT86.js";
9
+ import { useState as B, useRef as at, useEffect as W, useCallback as k } from "react";
10
+ import { u as dt } from "./useCombinedRef-COuiqHjO.js";
11
+ import { L as lt } from "./LabelText-WYEq5keJ.js";
12
+ import { U as F } from "./UIcon-Cc5PX9WJ.js";
13
+ import { S as M } from "./generics-BrMr2-Gs.js";
14
+ import { T as ft } from "./component-BbiEBU5H.js";
15
+ const ut = ({ inputHelper: t }) => {
16
+ const [n, o] = B(!1);
17
+ return /* @__PURE__ */ L(
18
+ f,
19
+ {
20
+ style: {
21
+ position: "absolute",
22
+ top: "50%",
23
+ right: -10,
24
+ transform: "translateY(-25%)"
25
+ },
26
+ onMouseEnter: () => o(!0),
27
+ onMouseLeave: () => o(!1),
28
+ children: [
29
+ /* @__PURE__ */ e(
30
+ F,
31
+ {
32
+ name: "info",
33
+ size: M.Size2,
34
+ colorLight: b.Primary5,
35
+ colorDark: b.Primary5
36
+ }
37
+ ),
38
+ /* @__PURE__ */ e(f, { style: { position: "relative", pointerEvents: "none" }, children: /* @__PURE__ */ e(lt, { labelName: t, hover: n, x: 0, y: 0 }) })
39
+ ]
40
+ }
41
+ );
42
+ }, pt = "_inputtext_rg89u_1", ct = "_showHidePassword_rg89u_41", X = {
43
+ inputtext: pt,
44
+ showHidePassword: ct
45
+ }, mt = ({ isShow: t, handleShowHideText: n }) => /* @__PURE__ */ e(
46
+ f,
47
+ {
48
+ className: X.showHidePassword,
49
+ style: {
50
+ position: "absolute",
51
+ bottom: ".75rem",
52
+ left: "88%",
53
+ zIndex: 4,
54
+ cursor: "pointer"
55
+ },
56
+ onClick: () => n(),
57
+ children: /* @__PURE__ */ e(
58
+ F,
59
+ {
60
+ name: t ? z.EyeOff : z.Eye,
61
+ size: M.Size3,
62
+ colorLight: b.Primary5,
63
+ colorDark: b.Primary5,
64
+ cursor: et.Pointer
65
+ }
66
+ )
67
+ }
68
+ ), bt = ({
69
+ id: t,
70
+ label: n,
71
+ size: o,
72
+ labelTextColor: i,
73
+ inputColor: r
74
+ }) => /* @__PURE__ */ e(
75
+ f,
76
+ {
77
+ paddingLeft: s[o].paddings.left,
78
+ paddingBottom: s[o].paddings.bottom,
79
+ children: /* @__PURE__ */ e("label", { htmlFor: t, children: /* @__PURE__ */ e(
80
+ ft,
81
+ {
82
+ fontWeight: rt.Size3,
83
+ paletteColor: i && typeof i == "boolean" ? D[r].labelColor : b.Grey10,
84
+ fontSize: s[o].font.size,
85
+ children: n
86
+ }
87
+ ) })
88
+ }
89
+ ), Lt = ({
90
+ // required
91
+ id: t,
92
+ name: n,
93
+ type: o = m.Text,
94
+ value: i,
95
+ modes: r = S.Default,
96
+ label: g,
97
+ // optional properties
98
+ focus: u,
99
+ required: T,
100
+ width: p,
101
+ fullWidth: x,
102
+ helperText: c,
103
+ placeholder: h = "Insert text",
104
+ // other types property
105
+ step: j,
106
+ min: A,
107
+ // methods
108
+ handleChange: P,
109
+ handleFocus: _,
110
+ handleBlur: H,
111
+ handleCheck: C,
112
+ // styling
113
+ size: a = it.Default,
114
+ inputStyle: w = y.Default,
115
+ inputColor: v = ot.Primarys,
116
+ // customizations
117
+ labelTextColor: G = !0,
118
+ transparent: N,
119
+ ref: Y,
120
+ ...V
121
+ }) => {
122
+ const d = at(null), Z = dt(d, Y);
123
+ W(() => {
124
+ if (r !== S.Disabled) {
125
+ if (u) {
126
+ d.current && d.current.focus();
127
+ return;
128
+ }
129
+ i !== "" && d.current && d.current.value;
130
+ }
131
+ }, [u, r, i]);
132
+ const [q, R] = B(o), [E, J] = B(!1), K = () => {
133
+ J((l) => !l);
134
+ };
135
+ W(() => {
136
+ o === m.Password && R(E ? m.Text : m.Password);
137
+ }, [E]);
138
+ const Q = (l) => {
139
+ P && P(l);
140
+ }, $ = k(
141
+ async (l) => {
142
+ l.preventDefault();
143
+ const U = l.target.value.trim();
144
+ if (!(!U || U !== "")) {
145
+ H && H(), C && await C();
146
+ return;
147
+ }
148
+ },
149
+ [H, C]
150
+ ), O = k(() => {
151
+ if (r !== S.Disabled)
152
+ return d.current && d.current.focus(), _ && _(), !0;
153
+ }, [_, r]);
154
+ return /* @__PURE__ */ L(
155
+ f,
156
+ {
157
+ style: {
158
+ width: x ? "100%" : p || 350,
159
+ position: "relative"
160
+ // to label
161
+ },
162
+ children: [
163
+ !N && /* @__PURE__ */ e(
164
+ bt,
165
+ {
166
+ id: t,
167
+ label: g,
168
+ inputColor: v,
169
+ size: a,
170
+ labelTextColor: G
171
+ }
172
+ ),
173
+ /* @__PURE__ */ L(
174
+ f,
175
+ {
176
+ boxSizing: st.BorderBox,
177
+ ...gt(w, N),
178
+ borderColor: D[v].borderColor,
179
+ paddingLeft: s[a].paddings.left,
180
+ paddingRight: s[a].paddings.right,
181
+ paddingTop: s[a].paddings.top,
182
+ paddingBottom: s[a].paddings.bottom,
183
+ style: {
184
+ // position: "relative",
185
+ // width: fullWidth ? "100%" : width ? width : 350,
186
+ paddingTop: w !== y.Outlined ? 1 : "",
187
+ paddingBottom: w !== y.Outlined ? nt[s[a].paddings.bottom] : "",
188
+ // display: size === InputTextSizes.Small ? "flex" : "block",
189
+ display: w !== y.Outlined ? "flex" : "block",
190
+ cursor: "text"
191
+ },
192
+ onClick: () => O(),
193
+ children: [
194
+ /* @__PURE__ */ e(
195
+ tt,
196
+ {
197
+ ref: Z,
198
+ type: q,
199
+ required: T,
200
+ disabled: r !== S.Disabled ? void 0 : !0,
201
+ fontSize: s[a].font.size,
202
+ fontWeight: s[a].font.weight,
203
+ color: D[v].fontColor,
204
+ placeholder: h,
205
+ id: t,
206
+ name: n,
207
+ value: i,
208
+ min: A,
209
+ step: j,
210
+ onChange: P ? Q : void 0,
211
+ onFocus: O,
212
+ onBlur: $,
213
+ className: X.inputtext,
214
+ ...V
215
+ }
216
+ ),
217
+ o === m.Password && /* @__PURE__ */ e(
218
+ mt,
219
+ {
220
+ isShow: E,
221
+ handleShowHideText: K
222
+ }
223
+ ),
224
+ c && /* @__PURE__ */ e(ut, { inputHelper: c })
225
+ ]
226
+ }
227
+ )
228
+ ]
229
+ }
230
+ );
231
+ }, gt = (t, n = !1) => {
232
+ var o, i, r, g, u, T, p, x, c, h;
233
+ return n ? {} : {
234
+ // default
235
+ borderBottomStyle: (r = (i = (o = I[t]) == null ? void 0 : o.borders) == null ? void 0 : i.bottom) == null ? void 0 : r.style,
236
+ borderWidth: (u = (g = I[t]) == null ? void 0 : g.borders) == null ? void 0 : u.width,
237
+ // outline
238
+ borderRadius: (p = (T = I[t]) == null ? void 0 : T.borders) == null ? void 0 : p.radius,
239
+ borderStyle: (h = (c = (x = I[t]) == null ? void 0 : x.borders) == null ? void 0 : c.borders) == null ? void 0 : h.style
240
+ // filled
241
+ // borderRadius: undefined,
242
+ };
243
+ };
244
+ export {
245
+ Lt as I
246
+ };
@@ -0,0 +1,105 @@
1
+ "use client";
2
+ import { jsx as i } from "react/jsx-runtime";
3
+ import { L as R } from "./component-CLzFHaNK.js";
4
+ import { S as l, R as p } from "./generics-C-WSPclF.js";
5
+ import { h as b, b as x } from "./classes-CVxy1f4M.js";
6
+ import { useState as z, useEffect as C } from "react";
7
+ import { u } from "./react-spring_web.modern-DUf5COpz.js";
8
+ import { C as y } from "./component-CGEZuC_0.js";
9
+ import { T as I } from "./component-BbiEBU5H.js";
10
+ import { a as m } from "./generics-D33J7ILI.js";
11
+ import { a as d, c as f } from "./values-CSE3dLnv.js";
12
+ const L = ({
13
+ text: e,
14
+ // value,
15
+ idx: s,
16
+ // id,
17
+ handleSelectInset: c,
18
+ isSelected: o,
19
+ // rgbBg,
20
+ insetColor: a = m.Primarys,
21
+ borderTopLeftRadius: h,
22
+ borderTopRightRadius: S,
23
+ borderBottomLeftRadius: n,
24
+ borderBottomRightRadius: g
25
+ }) => {
26
+ const r = u({
27
+ // backgroundColor: isSelected ? rgbBg ? rgbBg : "rgb(255,255,255)" : "rgb(222,226,230)",
28
+ backgroundColor: o ? d[f[a][0] + 3] : d[f[m.Greys][0] + 2],
29
+ // color: isSelected ? "rgb(25,25,25)" : "rgb(134,142,150)",
30
+ color: o ? d[f[m.Greys][1] - 1] : d[f[m.Greys][1] - 4],
31
+ boxShadow: o ? "inset 0 0px 0 hsla(0, 0%, 0%, 0), inset 0 0px 0px hsla(0, 0%, 0%, 0)" : "inset 0 -2px 0 hsla(0, 0%, 100%, .055), inset 0 2px 2px hsla(0, 0%, 0%, 0.1)"
32
+ // boxShadow: isSelected ? "inset 0 0px 0 hsla(0, 0%, 0%, 0)" : "inset 0 -2px 0 hsla(0, 0%, 100%, .15)",
33
+ // config: {
34
+ // ...config.molasses,
35
+ // }
36
+ }), t = u({
37
+ // scale: isSelected ? 1 : 0.9,
38
+ fontWeight: o ? 500 : 300
39
+ });
40
+ return /* @__PURE__ */ i(
41
+ y,
42
+ {
43
+ style: { ...r, cursor: "pointer" },
44
+ paddingTop: l.Size1,
45
+ paddingBottom: l.Size1,
46
+ paddingLeft: l.Size2,
47
+ paddingRight: l.Size2,
48
+ borderTopLeftRadius: h,
49
+ borderTopRightRadius: S,
50
+ borderBottomLeftRadius: n,
51
+ borderBottomRightRadius: g,
52
+ onClick: () => c(s),
53
+ children: /* @__PURE__ */ i(y, { style: t, children: /* @__PURE__ */ i(
54
+ I,
55
+ {
56
+ style: {
57
+ color: "inherit",
58
+ transform: "translateY(-1px)",
59
+ display: "inline-block"
60
+ },
61
+ children: e
62
+ }
63
+ ) })
64
+ }
65
+ );
66
+ }, j = ({
67
+ options: e = [],
68
+ // id, value, text
69
+ valueIndex: s = 0,
70
+ id: c,
71
+ setInput: o,
72
+ setSelect: a,
73
+ insetColor: h
74
+ }) => {
75
+ const [S, n] = z(s);
76
+ C(() => {
77
+ typeof s == "number" && n(s);
78
+ }, [s]);
79
+ const g = (r) => {
80
+ n(r), o && o((t) => ({
81
+ ...t,
82
+ [c]: e[r]
83
+ })), a && a(e[r]);
84
+ };
85
+ return /* @__PURE__ */ i(R, { display: x.Flex, flexAlignItem: b.Center, children: e.map((r, t) => /* @__PURE__ */ i(
86
+ L,
87
+ {
88
+ text: r.text,
89
+ value: r.value,
90
+ idx: t,
91
+ id: r.id,
92
+ handleSelectInset: g,
93
+ isSelected: t === S,
94
+ insetColor: h,
95
+ borderTopLeftRadius: t === 0 ? p.Size4 : void 0,
96
+ borderTopRightRadius: t === e.length - 1 ? p.Size4 : void 0,
97
+ borderBottomLeftRadius: t === 0 ? p.Size4 : void 0,
98
+ borderBottomRightRadius: t === e.length - 1 ? p.Size4 : void 0
99
+ },
100
+ t
101
+ )) });
102
+ };
103
+ export {
104
+ j as I
105
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";const a=require("react/jsx-runtime"),y=require("./component-B1mkowwk.cjs"),r=require("./generics-9F1CmKPb.cjs"),R=require("./classes-HsjFV5aN.cjs"),h=require("react"),C=require("./react-spring_web.modern-W3Nkoq_6.cjs"),m=require("./component-D-EEi7NI.cjs"),x=require("./component-Bh3EPTN0.cjs"),u=require("./generics-DE1oV0MV.cjs"),t=require("./values-C40_Fyfk.cjs"),f=({text:o,idx:i,handleSelectInset:d,isSelected:n,insetColor:l=u.ColorSets.Primarys,borderTopLeftRadius:p,borderTopRightRadius:S,borderBottomLeftRadius:c,borderBottomRightRadius:g})=>{const s=C.useSpring({backgroundColor:n?t.COLOR_VALUES[t.ColorRanges[l][0]+3]:t.COLOR_VALUES[t.ColorRanges[u.ColorSets.Greys][0]+2],color:n?t.COLOR_VALUES[t.ColorRanges[u.ColorSets.Greys][1]-1]:t.COLOR_VALUES[t.ColorRanges[u.ColorSets.Greys][1]-4],boxShadow:n?"inset 0 0px 0 hsla(0, 0%, 0%, 0), inset 0 0px 0px hsla(0, 0%, 0%, 0)":"inset 0 -2px 0 hsla(0, 0%, 100%, .055), inset 0 2px 2px hsla(0, 0%, 0%, 0.1)"}),e=C.useSpring({fontWeight:n?500:300});return a.jsx(m.Container,{style:{...s,cursor:"pointer"},paddingTop:r.Spacings.Size1,paddingBottom:r.Spacings.Size1,paddingLeft:r.Spacings.Size2,paddingRight:r.Spacings.Size2,borderTopLeftRadius:p,borderTopRightRadius:S,borderBottomLeftRadius:c,borderBottomRightRadius:g,onClick:()=>d(i),children:a.jsx(m.Container,{style:e,children:a.jsx(x.Text_Span,{style:{color:"inherit",transform:"translateY(-1px)",display:"inline-block"},children:o})})})},L=({options:o=[],valueIndex:i=0,id:d,setInput:n,setSelect:l,insetColor:p})=>{const[S,c]=h.useState(i);h.useEffect(()=>{typeof i=="number"&&c(i)},[i]);const g=s=>{c(s),n&&n(e=>({...e,[d]:o[s]})),l&&l(o[s])};return a.jsx(y.Layout,{display:R.Displays.Flex,flexAlignItem:R.FlexAlignItems.Center,children:o.map((s,e)=>a.jsx(f,{text:s.text,value:s.value,idx:e,id:s.id,handleSelectInset:g,isSelected:e===S,insetColor:p,borderTopLeftRadius:e===0?r.Radiuses.Size4:void 0,borderTopRightRadius:e===o.length-1?r.Radiuses.Size4:void 0,borderBottomLeftRadius:e===0?r.Radiuses.Size4:void 0,borderBottomRightRadius:e===o.length-1?r.Radiuses.Size4:void 0},e))})};exports.InsetGroup=L;
@@ -1,7 +1,7 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { u as o } from "./react-spring_web.modern-DgQDaJ06.js";
3
- import { C as e } from "./component-C1Gs4nVu.js";
4
- import { T as f } from "./component-D0wwK4KY.js";
2
+ import { u as o } from "./react-spring_web.modern-DUf5COpz.js";
3
+ import { C as e } from "./component-CGEZuC_0.js";
4
+ import { T as f } from "./component-D-bBH8nL.js";
5
5
  import { u } from "./web-B_p0FWHf.js";
6
6
  const y = ({
7
7
  labelName: m = "",
@@ -0,0 +1,101 @@
1
+ "use client";
2
+ import { jsx as e, jsxs as c } from "react/jsx-runtime";
3
+ import { d as s, a as z } from "./react-spring_web.modern-DUf5COpz.js";
4
+ import { S as i } from "./generics-BrMr2-Gs.js";
5
+ const n = {
6
+ [i.Size1]: { containerSize: 8, size: 4 },
7
+ [i.Size2]: { containerSize: 12, size: 8 },
8
+ [i.Size3]: { containerSize: 16, size: 12 },
9
+ [i.Size4]: { containerSize: 20, size: 16 },
10
+ [i.Size5]: { containerSize: 24, size: 20 },
11
+ [i.Size6]: { containerSize: 28, size: 24 },
12
+ [i.Size7]: { containerSize: 32, size: 28 },
13
+ [i.Size8]: { containerSize: 36, size: 32 },
14
+ [i.Size9]: { containerSize: 44, size: 40 },
15
+ [i.Size10]: { containerSize: 52, size: 48 },
16
+ [i.Size11]: { containerSize: 60, size: 54 },
17
+ [i.Size12]: { containerSize: 68, size: 64 },
18
+ [i.Size13]: { containerSize: 76, size: 72 },
19
+ [i.Size14]: { containerSize: 84, size: 80 },
20
+ [i.Size15]: { containerSize: 92, size: 88 }
21
+ };
22
+ function S({ size: t = i.Size3 }) {
23
+ return /* @__PURE__ */ e(
24
+ "div",
25
+ {
26
+ className: "image-container",
27
+ style: {
28
+ width: `${n[t].containerSize}px`,
29
+ height: `${n[t].containerSize}px`
30
+ },
31
+ children: /* @__PURE__ */ e(
32
+ "svg",
33
+ {
34
+ className: "text-zinc-300",
35
+ viewBox: "0 0 2400 2400",
36
+ width: n[t].size,
37
+ height: n[t].size,
38
+ children: /* @__PURE__ */ c(
39
+ "g",
40
+ {
41
+ strokeWidth: 200,
42
+ strokeLinecap: "round",
43
+ stroke: "currentColor",
44
+ fill: "none",
45
+ children: [
46
+ /* @__PURE__ */ e("path", { d: "M1200 600L1200 100" }),
47
+ /* @__PURE__ */ e("path", { opacity: 0.5, d: "M1200 2300L1200 1800" }),
48
+ /* @__PURE__ */ e("path", { opacity: 0.917, d: "M900 680.4L650 247.4" }),
49
+ /* @__PURE__ */ e("path", { opacity: 0.417, d: "M1750 2152.6L1500 1719.6" }),
50
+ /* @__PURE__ */ e("path", { opacity: 0.833, d: "M680.4 900L247.4 650" }),
51
+ /* @__PURE__ */ e("path", { opacity: 0.333, d: "M2152.6 1750L1719.6 1500" }),
52
+ /* @__PURE__ */ e("path", { opacity: 0.75, d: "M600 1200L100 1200" }),
53
+ /* @__PURE__ */ e("path", { opacity: 0.25, d: "M2300 1200L1800 1200" }),
54
+ /* @__PURE__ */ e("path", { opacity: 0.667, d: "M680.4 1500L247.4 1750" }),
55
+ /* @__PURE__ */ e("path", { opacity: 0.167, d: "M2152.6 650L1719.6 900" }),
56
+ /* @__PURE__ */ e("path", { opacity: 0.583, d: "M900 1719.6L650 2152.6" }),
57
+ /* @__PURE__ */ e("path", { opacity: 0.083, d: "M1750 247.4L1500 680.4" }),
58
+ /* @__PURE__ */ e(
59
+ "animateTransform",
60
+ {
61
+ attributeName: "transform",
62
+ attributeType: "XML",
63
+ type: "rotate",
64
+ keyTimes: "0;0.08333;0.16667;0.25;0.33333;0.41667;0.5;0.58333;0.66667;0.75;0.83333;0.91667",
65
+ values: "0 1199 1199;30 1199 1199;60 1199 1199;90 1199 1199;120 1199 1199;150 1199 1199;180 1199 1199;210 1199 1199;240 1199 1199;270 1199 1199;300 1199 1199;330 1199 1199",
66
+ dur: "0.83333s",
67
+ begin: "0s",
68
+ repeatCount: "indefinite",
69
+ calcMode: "discrete"
70
+ }
71
+ )
72
+ ]
73
+ }
74
+ )
75
+ }
76
+ )
77
+ }
78
+ );
79
+ }
80
+ const y = ({ isLoading: t, size: a = i.Size3 }) => s(t, {
81
+ from: { opacity: 0, scale: 0.6, height: 0 },
82
+ enter: { opacity: 1, scale: 1, height: 30 },
83
+ leave: { opacity: 0, scale: 0.6, height: 0 }
84
+ })(
85
+ (o, r) => r && /* @__PURE__ */ e(
86
+ z.div,
87
+ {
88
+ style: {
89
+ display: "flex",
90
+ justifyContent: "center",
91
+ alignItems: "center",
92
+ ...o
93
+ },
94
+ children: /* @__PURE__ */ e(S, { size: a })
95
+ }
96
+ )
97
+ );
98
+ export {
99
+ y as L,
100
+ S
101
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";const i=require("react/jsx-runtime"),s=require("./react-spring_web.modern-W3Nkoq_6.cjs"),e=require("./generics-nyvJhwQE.cjs"),t={[e.Sizings.Size1]:{containerSize:8,size:4},[e.Sizings.Size2]:{containerSize:12,size:8},[e.Sizings.Size3]:{containerSize:16,size:12},[e.Sizings.Size4]:{containerSize:20,size:16},[e.Sizings.Size5]:{containerSize:24,size:20},[e.Sizings.Size6]:{containerSize:28,size:24},[e.Sizings.Size7]:{containerSize:32,size:28},[e.Sizings.Size8]:{containerSize:36,size:32},[e.Sizings.Size9]:{containerSize:44,size:40},[e.Sizings.Size10]:{containerSize:52,size:48},[e.Sizings.Size11]:{containerSize:60,size:54},[e.Sizings.Size12]:{containerSize:68,size:64},[e.Sizings.Size13]:{containerSize:76,size:72},[e.Sizings.Size14]:{containerSize:84,size:80},[e.Sizings.Size15]:{containerSize:92,size:88}};function a({size:n=e.Sizings.Size3}){return i.jsx("div",{className:"image-container",style:{width:`${t[n].containerSize}px`,height:`${t[n].containerSize}px`},children:i.jsx("svg",{className:"text-zinc-300",viewBox:"0 0 2400 2400",width:t[n].size,height:t[n].size,children:i.jsxs("g",{strokeWidth:200,strokeLinecap:"round",stroke:"currentColor",fill:"none",children:[i.jsx("path",{d:"M1200 600L1200 100"}),i.jsx("path",{opacity:.5,d:"M1200 2300L1200 1800"}),i.jsx("path",{opacity:.917,d:"M900 680.4L650 247.4"}),i.jsx("path",{opacity:.417,d:"M1750 2152.6L1500 1719.6"}),i.jsx("path",{opacity:.833,d:"M680.4 900L247.4 650"}),i.jsx("path",{opacity:.333,d:"M2152.6 1750L1719.6 1500"}),i.jsx("path",{opacity:.75,d:"M600 1200L100 1200"}),i.jsx("path",{opacity:.25,d:"M2300 1200L1800 1200"}),i.jsx("path",{opacity:.667,d:"M680.4 1500L247.4 1750"}),i.jsx("path",{opacity:.167,d:"M2152.6 650L1719.6 900"}),i.jsx("path",{opacity:.583,d:"M900 1719.6L650 2152.6"}),i.jsx("path",{opacity:.083,d:"M1750 247.4L1500 680.4"}),i.jsx("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",keyTimes:"0;0.08333;0.16667;0.25;0.33333;0.41667;0.5;0.58333;0.66667;0.75;0.83333;0.91667",values:"0 1199 1199;30 1199 1199;60 1199 1199;90 1199 1199;120 1199 1199;150 1199 1199;180 1199 1199;210 1199 1199;240 1199 1199;270 1199 1199;300 1199 1199;330 1199 1199",dur:"0.83333s",begin:"0s",repeatCount:"indefinite",calcMode:"discrete"})]})})})}const o=({isLoading:n,size:z=e.Sizings.Size3})=>s.useTransition(n,{from:{opacity:0,scale:.6,height:0},enter:{opacity:1,scale:1,height:30},leave:{opacity:0,scale:.6,height:0}})((r,c)=>c&&i.jsx(s.animated.div,{style:{display:"flex",justifyContent:"center",alignItems:"center",...r},children:i.jsx(a,{size:z})}));exports.LoadingSpinner=o;exports.Spinner=a;
@@ -1,15 +1,15 @@
1
1
  "use client";
2
2
  import { jsx as _, jsxs as gt } from "react/jsx-runtime";
3
- import { L as _t } from "./component-DRXQXr2G.js";
3
+ import { L as _t } from "./component-CLzFHaNK.js";
4
4
  import { h as yt, j as vt, b as bt } from "./classes-CVxy1f4M.js";
5
5
  import { M as R } from "./types-Dyu7oUOO.js";
6
6
  import P, { useEffect as tt, useState as wt } from "react";
7
- import { S as Et } from "./SpringEnterOffsetBy-DMSIQgV3.js";
7
+ import { S as Et } from "./SpringEnterOffsetBy-BKglENgZ.js";
8
8
  import { P as Tt } from "./types-DamZRbFt.js";
9
9
  import { createPortal as St } from "react-dom";
10
10
  import { P as At } from "./types-DgSz2H9f.js";
11
- import { d as et, u as Dt } from "./react-spring_web.modern-DgQDaJ06.js";
12
- import { C as V } from "./component-C1Gs4nVu.js";
11
+ import { d as et, u as Dt } from "./react-spring_web.modern-DUf5COpz.js";
12
+ import { C as V } from "./component-CGEZuC_0.js";
13
13
  import { a as It, C as Ot, b as kt } from "./values-CSE3dLnv.js";
14
14
  import { u as xt } from "./useClickOutsideDOM-CBmttEFU.js";
15
15
  function Ct(s, t = () => {
@@ -0,0 +1,158 @@
1
+ "use client";
2
+ import { jsx as i, jsxs as p, Fragment as w } from "react/jsx-runtime";
3
+ import { d as I } from "./react-spring_web.modern-DUf5COpz.js";
4
+ import { C as r } from "./component-CGEZuC_0.js";
5
+ import { u as M } from "./GlobalEventContext-DUmT3Vay.js";
6
+ import { G as v } from "./GlobalEventPortal-GjfUDr2B.js";
7
+ import { U as x } from "./UIcon-Cc5PX9WJ.js";
8
+ import { L as z } from "./component-CLzFHaNK.js";
9
+ import { T as F } from "./component-D-bBH8nL.js";
10
+ import { C as R } from "./generics-D33J7ILI.js";
11
+ import { b as A, S as d, R as E, d as T } from "./generics-C-WSPclF.js";
12
+ import { h as b, i as L, b as C } from "./classes-CVxy1f4M.js";
13
+ import { S } from "./generics-BrMr2-Gs.js";
14
+ import { useMemo as y, useState as _, useEffect as D } from "react";
15
+ const G = "_message_1i7cn_1", N = "_life_1i7cn_12", u = {
16
+ message: G,
17
+ life: N
18
+ }, P = () => {
19
+ const { globalEventRef: a } = M();
20
+ return /* @__PURE__ */ i(v, { children: /* @__PURE__ */ i(
21
+ $,
22
+ {
23
+ children: (l) => {
24
+ a.current = l;
25
+ }
26
+ }
27
+ ) });
28
+ };
29
+ let W = 0;
30
+ function $({
31
+ config: a = { tension: 125, friction: 20, precision: 0.1 },
32
+ timeout: l = 3e3,
33
+ children: c
34
+ }) {
35
+ const s = y(() => /* @__PURE__ */ new WeakMap(), []), m = y(() => /* @__PURE__ */ new WeakMap(), []), [g, n] = _([]), h = I(g, {
36
+ from: { opacity: 0, height: 0, life: "100%", y: 0 },
37
+ keys: (t) => t.key,
38
+ enter: (t) => async (o, e) => {
39
+ m.set(t, e), await o({
40
+ opacity: 1,
41
+ height: s.get(t).offsetHeight + 10,
42
+ y: 30
43
+ }), await o({ life: "0%" });
44
+ },
45
+ leave: [{ opacity: 0, y: 50 }, { height: 0 }],
46
+ onRest: (t, o, e) => {
47
+ n(
48
+ (f) => f.filter((k) => k.key !== e.key)
49
+ );
50
+ },
51
+ config: (t, o, e) => (f) => e === "enter" && f === "life" ? { duration: t.type.isTimeout ? l : 1e3 * 60 * 60 * 24 } : a
52
+ });
53
+ return D(() => {
54
+ c(
55
+ (t, o, e) => {
56
+ n((f) => [
57
+ ...f,
58
+ { key: W++, msg: t, type: o, customAction: e }
59
+ ]);
60
+ }
61
+ );
62
+ }, [c]), /* @__PURE__ */ i(
63
+ z,
64
+ {
65
+ display: C.Flex,
66
+ flexDirection: L.Column,
67
+ flexAlignItem: b.FlexEnd,
68
+ style: { position: "fixed", zIndex: 1e3, bottom: "30px", right: "30px" },
69
+ children: h(({ life: t, ...o }, e) => /* @__PURE__ */ i(
70
+ j,
71
+ {
72
+ style: o,
73
+ refMap: s,
74
+ cancelMap: m,
75
+ type: e.type,
76
+ msg: e.msg,
77
+ life: t,
78
+ item: e,
79
+ customAction: e.customAction
80
+ }
81
+ ))
82
+ }
83
+ );
84
+ }
85
+ const j = ({
86
+ style: a,
87
+ refMap: l,
88
+ cancelMap: c,
89
+ type: s,
90
+ msg: m,
91
+ life: g,
92
+ item: n,
93
+ customAction: h
94
+ }) => {
95
+ const [t, o] = _(!1);
96
+ return /* @__PURE__ */ i(
97
+ r,
98
+ {
99
+ style: a,
100
+ className: t ? `${u.message} disabled` : u.message,
101
+ children: /* @__PURE__ */ i("div", { ref: (e) => e && l.set(n, e), children: /* @__PURE__ */ i(
102
+ r,
103
+ {
104
+ bgColor: R.Secondary2,
105
+ borderRadius: E.Size4,
106
+ padding: d.Size3,
107
+ boxShadow: A.Size5,
108
+ style: { borderBottom: "none" },
109
+ children: /* @__PURE__ */ p(
110
+ z,
111
+ {
112
+ display: C.Flex,
113
+ flexAlignItem: b.Center,
114
+ style: { position: "relative", minWidth: "200px" },
115
+ children: [
116
+ /* @__PURE__ */ i(r, { marginRight: d.Size2, children: /* @__PURE__ */ i(
117
+ x,
118
+ {
119
+ name: s.icon,
120
+ size: S.Size6,
121
+ colorLight: s.color,
122
+ colorDark: s.color,
123
+ withMargin: !1
124
+ }
125
+ ) }),
126
+ /* @__PURE__ */ i(F, { fontSize: T.Size4, children: m || s.default }),
127
+ /* @__PURE__ */ p(r, { marginLeft: d.Auto, paddingLeft: d.Size3, children: [
128
+ h && /* @__PURE__ */ i(r, { marginRight: d.Size3, children: h }),
129
+ /* @__PURE__ */ i(
130
+ x,
131
+ {
132
+ name: "x-circle",
133
+ size: S.Size4,
134
+ iconAction: () => {
135
+ t || (c.has(n) && g.get() !== "0%" && c.get(n)(), o(!0));
136
+ },
137
+ withMargin: !1
138
+ }
139
+ )
140
+ ] }),
141
+ (s == null ? void 0 : s.isTimeout) && /* @__PURE__ */ i(
142
+ r,
143
+ {
144
+ className: `${u.life} ${s.classname}`,
145
+ style: { right: g, transform: "translateY(8px)" }
146
+ }
147
+ )
148
+ ]
149
+ }
150
+ )
151
+ }
152
+ ) })
153
+ }
154
+ );
155
+ }, ie = () => /* @__PURE__ */ i(w, { children: /* @__PURE__ */ i(P, {}) });
156
+ export {
157
+ ie as N
158
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";const e=require("react/jsx-runtime"),b=require("./react-spring_web.modern-W3Nkoq_6.cjs"),a=require("./component-D-EEi7NI.cjs"),C=require("./GlobalEventContext-D9ug9s1O.cjs"),q=require("./GlobalEventPortal-BIdCGd-m.cjs"),p=require("./UIcon-B5rpDmHC.cjs"),j=require("./component-B1mkowwk.cjs"),_=require("./component-JigdcRMd.cjs"),I=require("./generics-DE1oV0MV.cjs"),o=require("./generics-9F1CmKPb.cjs"),m=require("./classes-HsjFV5aN.cjs"),y=require("./generics-nyvJhwQE.cjs"),d=require("react"),v="_message_1i7cn_1",w="_life_1i7cn_12",S={message:v,life:w},M=()=>{const{globalEventRef:c}=C.useGlobalEventContext();return e.jsx(q.GlobalEventPortal,{children:e.jsx(E,{children:l=>{c.current=l}})})};let k=0;function E({config:c={tension:125,friction:20,precision:.1},timeout:l=3e3,children:g}){const i=d.useMemo(()=>new WeakMap,[]),u=d.useMemo(()=>new WeakMap,[]),[f,r]=d.useState([]),h=b.useTransition(f,{from:{opacity:0,height:0,life:"100%",y:0},keys:s=>s.key,enter:s=>async(t,n)=>{u.set(s,n),await t({opacity:1,height:i.get(s).offsetHeight+10,y:30}),await t({life:"0%"})},leave:[{opacity:0,y:50},{height:0}],onRest:(s,t,n)=>{r(x=>x.filter(z=>z.key!==n.key))},config:(s,t,n)=>x=>n==="enter"&&x==="life"?{duration:s.type.isTimeout?l:1e3*60*60*24}:c});return d.useEffect(()=>{g((s,t,n)=>{r(x=>[...x,{key:k++,msg:s,type:t,customAction:n}])})},[g]),e.jsx(j.Layout,{display:m.Displays.Flex,flexDirection:m.FlexDirections.Column,flexAlignItem:m.FlexAlignItems.FlexEnd,style:{position:"fixed",zIndex:1e3,bottom:"30px",right:"30px"},children:h(({life:s,...t},n)=>e.jsx(F,{style:t,refMap:i,cancelMap:u,type:n.type,msg:n.msg,life:s,item:n,customAction:n.customAction}))})}const F=({style:c,refMap:l,cancelMap:g,type:i,msg:u,life:f,item:r,customAction:h})=>{const[s,t]=d.useState(!1);return e.jsx(a.Container,{style:c,className:s?`${S.message} disabled`:S.message,children:e.jsx("div",{ref:n=>n&&l.set(r,n),children:e.jsx(a.Container,{bgColor:I.ColorPalettes.Secondary2,borderRadius:o.Radiuses.Size4,padding:o.Spacings.Size3,boxShadow:o.BoxShadows.Size5,style:{borderBottom:"none"},children:e.jsxs(j.Layout,{display:m.Displays.Flex,flexAlignItem:m.FlexAlignItems.Center,style:{position:"relative",minWidth:"200px"},children:[e.jsx(a.Container,{marginRight:o.Spacings.Size2,children:e.jsx(p.UIcon,{name:i.icon,size:y.Sizings.Size6,colorLight:i.color,colorDark:i.color,withMargin:!1})}),e.jsx(_.Text_P,{fontSize:o.FontSizes.Size4,children:u||i.default}),e.jsxs(a.Container,{marginLeft:o.Spacings.Auto,paddingLeft:o.Spacings.Size3,children:[h&&e.jsx(a.Container,{marginRight:o.Spacings.Size3,children:h}),e.jsx(p.UIcon,{name:"x-circle",size:y.Sizings.Size4,iconAction:()=>{s||(g.has(r)&&f.get()!=="0%"&&g.get(r)(),t(!0))},withMargin:!1})]}),(i==null?void 0:i.isTimeout)&&e.jsx(a.Container,{className:`${S.life} ${i.classname}`,style:{right:f,transform:"translateY(8px)"}})]})})})})},A=()=>e.jsx(e.Fragment,{children:e.jsx(M,{})});exports.NotificationSystem=A;