@functionalui/functionalui 0.2.6 → 0.2.8
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/Admonition-BVd4bXl_.cjs +1 -0
- package/dist/Admonition-CReUUZzJ.js +88 -0
- package/dist/{Avatar-CQA0mEVW.js → Avatar-CkxjB_cU.js} +4 -4
- package/dist/AvatarGroup-CbohU2rq.cjs +1 -0
- package/dist/AvatarGroup-FpaQP2H4.js +52 -0
- package/dist/{Button-CpTXDsI7.js → Button-DLwud-g7.js} +8 -8
- package/dist/{Checkbox-C29jP71p.js → Checkbox-CNpy1wvA.js} +3 -3
- package/dist/Checkboxes-CQVptWR8.cjs +1 -0
- package/dist/Checkboxes-Cj740f5X.js +80 -0
- package/dist/Chip-DgSZZTgy.js +132 -0
- package/dist/Chip-HOh--tbB.cjs +1 -0
- package/dist/ColorPicker-DUz0qcHd.js +234 -0
- package/dist/ColorPicker-rxR_V4EW.cjs +1 -0
- package/dist/DivMeasure-C398kYvk.js +26 -0
- package/dist/DivMeasure-oi_fzKlp.cjs +1 -0
- package/dist/GalleryModal-DjCnCkbg.js +464 -0
- package/dist/GalleryModal-wFC9x3Em.cjs +1 -0
- package/dist/InputImage-CInJWoGb.cjs +1 -0
- package/dist/InputImage-ZST0lvcI.js +106 -0
- package/dist/InputText-Bjhoe-Tm.cjs +1 -0
- package/dist/InputText-DnR7KYJS.js +246 -0
- package/dist/InsetGroup-BHxpHwpd.js +105 -0
- package/dist/InsetGroup-CGACEEbB.cjs +1 -0
- package/dist/{LabelText-D7QIWtWj.js → LabelText-WYEq5keJ.js} +3 -3
- package/dist/LoadingSpinner-BC0eMoVW.js +101 -0
- package/dist/LoadingSpinner-DykDI5-W.cjs +1 -0
- package/dist/{Modal-DXLyt-j4.js → Modal-Di5ye0Cr.js} +4 -4
- package/dist/NotificationSystem-B5NXsG0a.js +158 -0
- package/dist/NotificationSystem-D4ydo2Lk.cjs +1 -0
- package/dist/Radio-Dd5W2Lpf.js +121 -0
- package/dist/Radio-QbaBzLpf.cjs +1 -0
- package/dist/SelectSpring-BOfRXdag.js +471 -0
- package/dist/SelectSpring-DFKWTbF1.cjs +1 -0
- package/dist/SpringEnter-CPw1YgNg.cjs +1 -0
- package/dist/SpringEnter-CoVZpW-c.js +44 -0
- package/dist/{SpringEnterOffsetBy-DMSIQgV3.js → SpringEnterOffsetBy-BKglENgZ.js} +2 -2
- package/dist/SpringMenuTransition-B_PoFoqO.cjs +1 -0
- package/dist/SpringMenuTransition-CzSfyvDZ.js +42 -0
- package/dist/SpringOpenCloseHeight-COvFkc30.js +18 -0
- package/dist/SpringOpenCloseHeight-CyxsSgRD.cjs +1 -0
- package/dist/TableGrid-BYBVHJt9.cjs +1 -0
- package/dist/TableGrid-QlKM9Sdp.js +49 -0
- package/dist/{TableHeader-Da0XxILB.js → TableHeader-D3V5Z3JL.js} +4 -4
- package/dist/{TableRow-BlJSvake.js → TableRow-DKC9qdjQ.js} +3 -3
- package/dist/Tabs-BkUyxceG.js +134 -0
- package/dist/Tabs-C8VAb1g0.cjs +1 -0
- package/dist/{TagColor-BYKxfOU6.js → TagColor-Bd3n3RCF.js} +3 -3
- package/dist/TextArea-Bsm5M8lo.cjs +1 -0
- package/dist/TextArea-Cd3q9BMN.js +160 -0
- package/dist/ToggleSwitch-BNAk1Wp6.js +100 -0
- package/dist/ToggleSwitch-D6ltRmPy.cjs +1 -0
- package/dist/{UIcon-BHzbeYWw.js → UIcon-Cc5PX9WJ.js} +3 -3
- package/dist/UiContexts-36wfLVYv.cjs +1 -0
- package/dist/UiContexts-BMJZJR8C.js +35 -0
- package/dist/admonition/index.cjs +1 -1
- package/dist/admonition/index.mjs +2 -86
- package/dist/avatar/index.mjs +1 -1
- package/dist/avatar-group/index.cjs +1 -1
- package/dist/avatar-group/index.mjs +2 -50
- package/dist/button/index.mjs +1 -1
- package/dist/checkbox/index.mjs +1 -1
- package/dist/checkboxes/index.cjs +1 -1
- package/dist/checkboxes/index.mjs +2 -78
- package/dist/chip/index.cjs +1 -1
- package/dist/chip/index.mjs +2 -130
- package/dist/color-picker/index.cjs +1 -1
- package/dist/color-picker/index.mjs +2 -232
- package/dist/{component-CW2JPBAq.js → component-89pO-V2r.js} +1 -1
- package/dist/{component-BvHdlcdE.js → component-BbiEBU5H.js} +1 -1
- package/dist/component-BvmPGrYv.cjs +1 -0
- package/dist/{component-C1Gs4nVu.js → component-CGEZuC_0.js} +1 -1
- package/dist/{component-DRXQXr2G.js → component-CLzFHaNK.js} +1 -1
- package/dist/{component-D0wwK4KY.js → component-D-bBH8nL.js} +1 -1
- package/dist/{component-DCHO9d6d.js → component-DBDhHeDP.js} +1 -1
- package/dist/{component-D5nxKQnT.js → component-DP7cQasn.js} +1 -1
- package/dist/{component-CBIQe7z5.js → component-JelkpADf.js} +1 -1
- package/dist/{component-DdQu0mLI.js → component-SecZNuYG.js} +1 -1
- package/dist/component-cHg1BfVy.js +28 -0
- package/dist/container/index.mjs +1 -1
- package/dist/contexts/ui/index.cjs +1 -1
- package/dist/contexts/ui/index.mjs +3 -32
- package/dist/{createTextElement-Cgrvdwvh.js → createTextElement-d3-b9Lvn.js} +1 -1
- package/dist/css/index.css +1 -1
- package/dist/div-measure/index.cjs +1 -1
- package/dist/div-measure/index.mjs +2 -23
- package/dist/gallery-modal/index.cjs +1 -1
- package/dist/gallery-modal/index.mjs +2 -461
- package/dist/icons/index.mjs +1 -1
- package/dist/input-image/index.cjs +1 -1
- package/dist/input-image/index.mjs +2 -103
- package/dist/input-text/index.cjs +1 -1
- package/dist/input-text/index.mjs +2 -243
- package/dist/inset-group/index.cjs +1 -1
- package/dist/inset-group/index.mjs +2 -102
- package/dist/label-text/index.mjs +1 -1
- package/dist/layout/index.mjs +1 -1
- package/dist/lib/styles/types/types.d.ts +12 -12
- package/dist/loading-spinner/index.cjs +1 -1
- package/dist/loading-spinner/index.mjs +3 -98
- package/dist/main.cjs +1 -0
- package/dist/main.mjs +95 -0
- package/dist/modal/index.mjs +1 -1
- package/dist/notification-system/index.cjs +1 -1
- package/dist/notification-system/index.mjs +2 -155
- package/dist/radio/index.cjs +1 -1
- package/dist/radio/index.mjs +2 -118
- package/dist/{react-spring_web.modern-DgQDaJ06.js → react-spring_web.modern-DUf5COpz.js} +3 -3
- package/dist/select-spring/index.cjs +1 -1
- package/dist/select-spring/index.mjs +2 -468
- package/dist/spring-enter/index.cjs +1 -1
- package/dist/spring-enter/index.mjs +2 -42
- package/dist/spring-enter-offset-by/index.mjs +1 -1
- package/dist/spring-menu-transition/index.cjs +1 -1
- package/dist/spring-menu-transition/index.mjs +2 -40
- package/dist/spring-open-close-height/index.cjs +1 -1
- package/dist/spring-open-close-height/index.mjs +2 -16
- package/dist/styled/button/index.mjs +1 -1
- package/dist/styled/inputs/text/index.mjs +1 -1
- package/dist/styled/inputs/text-area/index.mjs +1 -1
- package/dist/styled/li/index.mjs +1 -1
- package/dist/styled/ul/index.mjs +1 -1
- package/dist/table-grid/index.cjs +1 -1
- package/dist/table-grid/index.mjs +2 -46
- package/dist/table-header/index.mjs +1 -1
- package/dist/table-row/index.mjs +1 -1
- package/dist/tabs/index.cjs +1 -1
- package/dist/tabs/index.mjs +2 -132
- package/dist/tag-color/index.mjs +1 -1
- package/dist/text-area/index.cjs +1 -1
- package/dist/text-area/index.mjs +2 -157
- package/dist/texts/header/index.cjs +1 -1
- package/dist/texts/header/index.mjs +2 -26
- package/dist/texts/p/index.mjs +1 -1
- package/dist/texts/span/index.mjs +1 -1
- package/dist/toggle-switch/index.cjs +1 -1
- package/dist/toggle-switch/index.mjs +2 -98
- package/dist/{types-BNUi2DUD.js → types-xFemYgmc.js} +1 -1
- package/dist/types.cjs +1 -1
- package/dist/types.mjs +33 -33
- package/package.json +9 -1
|
@@ -1,471 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { L as G } from "../component-DRXQXr2G.js";
|
|
4
|
-
import { C as T, a as oe } from "../generics-D33J7ILI.js";
|
|
5
|
-
import { j as ne, h as ie, b as U, i as se } from "../classes-CVxy1f4M.js";
|
|
6
|
-
import { D as M, a as p, b as m, c as J, e as A, S as z, d as C } from "../types-Bh_j-nXM.js";
|
|
7
|
-
import { useState as Z, useEffect as D, useReducer as ae } from "react";
|
|
8
|
-
import { u as V } from "../web-B_p0FWHf.js";
|
|
9
|
-
import { u as le } from "../useClickOutsideDOM-CBmttEFU.js";
|
|
10
|
-
import { C as R } from "../component-C1Gs4nVu.js";
|
|
11
|
-
import { T as O } from "../component-BvHdlcdE.js";
|
|
12
|
-
import { S as l, R as x, C as de } from "../generics-C-WSPclF.js";
|
|
13
|
-
import { d as X, c as ce, u as $ } from "../react-spring_web.modern-DgQDaJ06.js";
|
|
14
|
-
import { F as K } from "../component-D5nxKQnT.js";
|
|
15
|
-
import { F as ue } from "../component-DCHO9d6d.js";
|
|
16
|
-
import { a as v, c as N } from "../values-CSE3dLnv.js";
|
|
17
|
-
import { U as pe } from "../UIcon-BHzbeYWw.js";
|
|
18
|
-
const fe = "_ul_5jv7w_1", me = "_li_5jv7w_5", W = {
|
|
19
|
-
ul: fe,
|
|
20
|
-
li: me
|
|
21
|
-
}, F = {
|
|
22
|
-
[p.Top]: {
|
|
23
|
-
from: { y: -10 },
|
|
24
|
-
enter: { y: -1 },
|
|
25
|
-
leave: { y: -10 }
|
|
26
|
-
},
|
|
27
|
-
[p.Bottom]: {
|
|
28
|
-
from: { y: 10 },
|
|
29
|
-
enter: { y: -1 },
|
|
30
|
-
leave: { y: 10 }
|
|
31
|
-
}
|
|
32
|
-
}, he = ({
|
|
33
|
-
dropdownHeightStyle: e,
|
|
34
|
-
isOpen: t,
|
|
35
|
-
dropdownPosition: o,
|
|
36
|
-
position: r,
|
|
37
|
-
selectState: i,
|
|
38
|
-
children: s
|
|
39
|
-
}) => {
|
|
40
|
-
switch (e) {
|
|
41
|
-
case M.Default:
|
|
42
|
-
return /* @__PURE__ */ n(
|
|
43
|
-
j,
|
|
44
|
-
{
|
|
45
|
-
dropdownHeightStyle: e,
|
|
46
|
-
isOpen: t,
|
|
47
|
-
dropdownPosition: o,
|
|
48
|
-
position: r,
|
|
49
|
-
selectState: i,
|
|
50
|
-
children: s
|
|
51
|
-
}
|
|
52
|
-
);
|
|
53
|
-
case M.AutoHeight:
|
|
54
|
-
return /* @__PURE__ */ n(
|
|
55
|
-
Se,
|
|
56
|
-
{
|
|
57
|
-
dropdownHeightStyle: e,
|
|
58
|
-
isOpen: t,
|
|
59
|
-
dropdownPosition: o,
|
|
60
|
-
position: r,
|
|
61
|
-
selectState: i,
|
|
62
|
-
children: s
|
|
63
|
-
}
|
|
64
|
-
);
|
|
65
|
-
default:
|
|
66
|
-
return /* @__PURE__ */ n(
|
|
67
|
-
j,
|
|
68
|
-
{
|
|
69
|
-
dropdownHeightStyle: e,
|
|
70
|
-
isOpen: t,
|
|
71
|
-
dropdownPosition: o,
|
|
72
|
-
position: r,
|
|
73
|
-
selectState: i,
|
|
74
|
-
children: s
|
|
75
|
-
}
|
|
76
|
-
);
|
|
77
|
-
}
|
|
78
|
-
}, j = ({
|
|
79
|
-
isOpen: e,
|
|
80
|
-
dropdownPosition: t,
|
|
81
|
-
// dropdownHeightStyle,
|
|
82
|
-
// hasSelect,
|
|
83
|
-
position: o,
|
|
84
|
-
children: r
|
|
85
|
-
}) => X(e, {
|
|
86
|
-
from: {
|
|
87
|
-
opacity: 0,
|
|
88
|
-
...F[t].from
|
|
89
|
-
},
|
|
90
|
-
enter: {
|
|
91
|
-
opacity: 1,
|
|
92
|
-
...F[t].enter
|
|
93
|
-
},
|
|
94
|
-
leave: {
|
|
95
|
-
opacity: 0,
|
|
96
|
-
...F[t].leave
|
|
97
|
-
}
|
|
98
|
-
})(
|
|
99
|
-
(s, a) => a && /* @__PURE__ */ n(
|
|
100
|
-
K,
|
|
101
|
-
{
|
|
102
|
-
style: {
|
|
103
|
-
...s,
|
|
104
|
-
transformOrigin: t === p.Top ? "bottom center" : t === p.Bottom ? "top center" : o < 0 ? "bottom center" : "top center"
|
|
105
|
-
},
|
|
106
|
-
className: W.ul,
|
|
107
|
-
children: r
|
|
108
|
-
}
|
|
109
|
-
)
|
|
110
|
-
), Se = ({
|
|
111
|
-
isOpen: e,
|
|
112
|
-
// dropdownHeightStyle,
|
|
113
|
-
// hasSelect,
|
|
114
|
-
dropdownPosition: t,
|
|
115
|
-
position: o,
|
|
116
|
-
children: r
|
|
117
|
-
}) => X(e, {
|
|
118
|
-
from: {
|
|
119
|
-
opacity: 0,
|
|
120
|
-
scaleY: 0
|
|
121
|
-
},
|
|
122
|
-
enter: {
|
|
123
|
-
opacity: 1,
|
|
124
|
-
scaleY: 1
|
|
125
|
-
},
|
|
126
|
-
leave: {
|
|
127
|
-
opacity: 0,
|
|
128
|
-
scaleY: 0.5
|
|
129
|
-
},
|
|
130
|
-
config(s, a, d) {
|
|
131
|
-
return d === "leave" ? { duration: 100 } : ce.default;
|
|
132
|
-
}
|
|
133
|
-
})(
|
|
134
|
-
(s, a) => a && /* @__PURE__ */ n(
|
|
135
|
-
K,
|
|
136
|
-
{
|
|
137
|
-
style: {
|
|
138
|
-
...s,
|
|
139
|
-
transformOrigin: t === p.Top ? "bottom center" : t === p.Bottom ? "top center" : o < 0 ? "bottom center" : "top center"
|
|
140
|
-
},
|
|
141
|
-
className: W.ul,
|
|
142
|
-
children: r
|
|
143
|
-
}
|
|
144
|
-
)
|
|
145
|
-
), ge = ({
|
|
146
|
-
handleSelectItem: e,
|
|
147
|
-
id: t,
|
|
148
|
-
idx: o,
|
|
149
|
-
children: r,
|
|
150
|
-
colorSet: i
|
|
151
|
-
}) => {
|
|
152
|
-
const [s, a] = $(() => ({
|
|
153
|
-
backgroundColor: v[T.Grey2]
|
|
154
|
-
// same as SelectHeader bgColor
|
|
155
|
-
}));
|
|
156
|
-
return /* @__PURE__ */ n(
|
|
157
|
-
ue,
|
|
158
|
-
{
|
|
159
|
-
className: W.li,
|
|
160
|
-
paddingTop: l.Size1,
|
|
161
|
-
paddingBottom: l.Size1,
|
|
162
|
-
paddingLeft: l.Size2,
|
|
163
|
-
paddingRight: l.Size2,
|
|
164
|
-
marginTop: l.Size0,
|
|
165
|
-
style: {
|
|
166
|
-
listStyle: "none",
|
|
167
|
-
cursor: "pointer",
|
|
168
|
-
userSelect: "none",
|
|
169
|
-
...s
|
|
170
|
-
},
|
|
171
|
-
onMouseEnter: () => {
|
|
172
|
-
a.start({
|
|
173
|
-
backgroundColor: v[N[i][0] + 2]
|
|
174
|
-
});
|
|
175
|
-
},
|
|
176
|
-
onMouseLeave: () => {
|
|
177
|
-
a.start({ backgroundColor: v[T.Grey2] });
|
|
178
|
-
},
|
|
179
|
-
onMouseDown: () => {
|
|
180
|
-
a.start({
|
|
181
|
-
backgroundColor: v[N[i][0] + 3]
|
|
182
|
-
});
|
|
183
|
-
},
|
|
184
|
-
onClick: () => e(t, o),
|
|
185
|
-
children: r
|
|
186
|
-
}
|
|
187
|
-
);
|
|
188
|
-
}, ye = (e, t) => {
|
|
189
|
-
const [o, r] = Z(null);
|
|
190
|
-
D(() => {
|
|
191
|
-
const s = () => {
|
|
192
|
-
r({
|
|
193
|
-
width: window ? window.innerWidth : 0,
|
|
194
|
-
height: window ? window.innerHeight : 0
|
|
195
|
-
});
|
|
196
|
-
};
|
|
197
|
-
return window && window.addEventListener("resize", s), () => {
|
|
198
|
-
window && window.removeEventListener("resize", s);
|
|
199
|
-
};
|
|
200
|
-
}, []);
|
|
201
|
-
const i = e.height + 10;
|
|
202
|
-
return o && i + e.top > o.height ? -1 : 1;
|
|
203
|
-
}, we = ({
|
|
204
|
-
isSelectOpen: e,
|
|
205
|
-
selectOptions: t,
|
|
206
|
-
handleSelectItem: o,
|
|
207
|
-
selectState: r,
|
|
208
|
-
dropdownHeightStyle: i,
|
|
209
|
-
dropdownPosition: s = p.Bottom,
|
|
210
|
-
colorSet: a,
|
|
211
|
-
headerHeight: d,
|
|
212
|
-
w: S
|
|
213
|
-
// closeSelect,
|
|
214
|
-
}) => {
|
|
215
|
-
const [L, g] = V(), y = ye(g), h = y > 0 ? d - 1 : -g.height;
|
|
216
|
-
return /* @__PURE__ */ n(
|
|
217
|
-
R,
|
|
218
|
-
{
|
|
219
|
-
ref: L,
|
|
220
|
-
borderRadius: m[r].dropdown.borderRadius,
|
|
221
|
-
borderBottomLeftRadius: x.Size0,
|
|
222
|
-
borderBottomRightRadius: x.Size0,
|
|
223
|
-
borderWidth: m[r].header.borderWidth,
|
|
224
|
-
borderColor: m[r].header.borderColor,
|
|
225
|
-
style: {
|
|
226
|
-
maxHeight: 250,
|
|
227
|
-
width: S,
|
|
228
|
-
overflowY: "scroll",
|
|
229
|
-
position: "absolute",
|
|
230
|
-
transform: `translateY(${h}px)`,
|
|
231
|
-
overscrollBehaviorY: "none"
|
|
232
|
-
},
|
|
233
|
-
children: /* @__PURE__ */ n(
|
|
234
|
-
he,
|
|
235
|
-
{
|
|
236
|
-
dropdownHeightStyle: i,
|
|
237
|
-
isOpen: e,
|
|
238
|
-
dropdownPosition: s,
|
|
239
|
-
selectState: r,
|
|
240
|
-
position: y,
|
|
241
|
-
children: t.map((c, w) => /* @__PURE__ */ n(
|
|
242
|
-
ge,
|
|
243
|
-
{
|
|
244
|
-
handleSelectItem: o,
|
|
245
|
-
id: c.id,
|
|
246
|
-
idx: w,
|
|
247
|
-
colorSet: a,
|
|
248
|
-
children: /* @__PURE__ */ n(
|
|
249
|
-
R,
|
|
250
|
-
{
|
|
251
|
-
paddingTop: l.Size1,
|
|
252
|
-
paddingBottom: l.Size1,
|
|
253
|
-
paddingLeft: l.Size2,
|
|
254
|
-
paddingRight: l.Size2,
|
|
255
|
-
children: /* @__PURE__ */ n(O, { children: c.text })
|
|
256
|
-
}
|
|
257
|
-
)
|
|
258
|
-
},
|
|
259
|
-
c.id
|
|
260
|
-
))
|
|
261
|
-
}
|
|
262
|
-
)
|
|
263
|
-
}
|
|
264
|
-
);
|
|
265
|
-
}, be = ({
|
|
266
|
-
selectedValues: e,
|
|
267
|
-
doubleZero: t,
|
|
268
|
-
title: o,
|
|
269
|
-
selectedValueStyles: r = A.Text,
|
|
270
|
-
sizes: i = J.Medium
|
|
271
|
-
}) => (e.length === 1 && e[0].text, e.length < 1 ? /* @__PURE__ */ n(ve, { sizes: i, title: o }) : r === A.Text ? /* @__PURE__ */ n(Y, { children: e.map((s, a) => /* @__PURE__ */ n(O, { fontSize: z[i].font.size, children: s.text }, a)) }) : (
|
|
272
|
-
// @todo_20240503_1350("chip")
|
|
273
|
-
/* @__PURE__ */ n(Y, { children: e.map((s, a) => /* @__PURE__ */ n(O, { fontSize: z[i].font.size, children: s.text }, a)) })
|
|
274
|
-
)), ve = ({ title: e, sizes: t }) => /* @__PURE__ */ n(O, { fontSize: z[t].font.size, children: e }), Ce = ({
|
|
275
|
-
// w,
|
|
276
|
-
setOpenDropdown: e,
|
|
277
|
-
openDropdown: t,
|
|
278
|
-
title: o,
|
|
279
|
-
doubleZero: r,
|
|
280
|
-
selectState: i,
|
|
281
|
-
// selectedItemIdx,
|
|
282
|
-
selectedValues: s,
|
|
283
|
-
selectedValueStyles: a,
|
|
284
|
-
sizes: d = J.Medium
|
|
285
|
-
}) => /* @__PURE__ */ n(
|
|
286
|
-
R,
|
|
287
|
-
{
|
|
288
|
-
style: { cursor: "pointer" },
|
|
289
|
-
paddingTop: l.Size1,
|
|
290
|
-
paddingBottom: l.Size1,
|
|
291
|
-
paddingLeft: l.Size2,
|
|
292
|
-
paddingRight: l.Size2,
|
|
293
|
-
borderRadius: m[i].header.borderRadius,
|
|
294
|
-
borderWidth: m[i].header.borderWidth,
|
|
295
|
-
borderColor: m[i].header.borderColor,
|
|
296
|
-
borderTopLeftRadius: t ? x.Size0 : void 0,
|
|
297
|
-
borderTopRightRadius: t ? x.Size0 : void 0,
|
|
298
|
-
bgColor: m[i].header.bgColor,
|
|
299
|
-
onClick: () => e((S) => !S),
|
|
300
|
-
children: /* @__PURE__ */ I(
|
|
301
|
-
G,
|
|
302
|
-
{
|
|
303
|
-
display: U.Flex,
|
|
304
|
-
flexAlignItem: ie.Center,
|
|
305
|
-
flexJustifyContent: ne.SpaceBetween,
|
|
306
|
-
children: [
|
|
307
|
-
/* @__PURE__ */ n(
|
|
308
|
-
be,
|
|
309
|
-
{
|
|
310
|
-
sizes: d,
|
|
311
|
-
selectedValues: s,
|
|
312
|
-
doubleZero: r,
|
|
313
|
-
title: o,
|
|
314
|
-
selectedValueStyles: a
|
|
315
|
-
}
|
|
316
|
-
),
|
|
317
|
-
/* @__PURE__ */ n("div", { className: "icon", children: /* @__PURE__ */ n(De, { isSelectOpen: t, sizes: d }) })
|
|
318
|
-
]
|
|
319
|
-
}
|
|
320
|
-
)
|
|
321
|
-
}
|
|
322
|
-
), De = ({
|
|
323
|
-
isSelectOpen: e,
|
|
324
|
-
sizes: t,
|
|
325
|
-
cursor: o = de.Pointer
|
|
326
|
-
}) => {
|
|
327
|
-
const r = $({
|
|
328
|
-
rotateX: e ? 180 : 0
|
|
329
|
-
});
|
|
330
|
-
return (
|
|
331
|
-
// @todo_20241105_1045("tech debt")
|
|
332
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
333
|
-
// @ts-expect-error
|
|
334
|
-
/* @__PURE__ */ n(R, { style: r, children: /* @__PURE__ */ n(
|
|
335
|
-
pe,
|
|
336
|
-
{
|
|
337
|
-
name: "chevron-down",
|
|
338
|
-
colorLight: T.Grey5,
|
|
339
|
-
colorDark: T.Grey5,
|
|
340
|
-
size: z[t].icon.size,
|
|
341
|
-
cursor: o
|
|
342
|
-
}
|
|
343
|
-
) })
|
|
344
|
-
);
|
|
345
|
-
};
|
|
346
|
-
function Te(e, t) {
|
|
347
|
-
switch (t.type) {
|
|
348
|
-
case "field":
|
|
349
|
-
return { ...e, [t.field]: t.value };
|
|
350
|
-
case "select":
|
|
351
|
-
return {
|
|
352
|
-
...e,
|
|
353
|
-
selectedItemIdx: t.value,
|
|
354
|
-
selectOptions: e.selectOptions.map(
|
|
355
|
-
(o, r) => t.value === r ? { ...o, selected: !0 } : { ...o, selected: !1 }
|
|
356
|
-
),
|
|
357
|
-
openDropdown: !1,
|
|
358
|
-
selectState: C.Selected
|
|
359
|
-
};
|
|
360
|
-
case "open":
|
|
361
|
-
return { ...e, openDropdown: !0 };
|
|
362
|
-
case "close":
|
|
363
|
-
return { ...e, openDropdown: !1 };
|
|
364
|
-
case "open-close":
|
|
365
|
-
return { ...e, openDropdown: !e.openDropdown };
|
|
366
|
-
case "parent-update-selected":
|
|
367
|
-
return {
|
|
368
|
-
...e,
|
|
369
|
-
selectedItemIdx: t.value,
|
|
370
|
-
selectOptions: e.selectOptions.map((o, r) => ({
|
|
371
|
-
...o,
|
|
372
|
-
selected: r === t.value
|
|
373
|
-
}))
|
|
374
|
-
};
|
|
375
|
-
default:
|
|
376
|
-
return e;
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
const je = ({
|
|
380
|
-
id: e,
|
|
381
|
-
title: t,
|
|
382
|
-
options: o,
|
|
383
|
-
selectedIdx: r = null,
|
|
384
|
-
w: i = 225,
|
|
385
|
-
doubleZero: s = !1,
|
|
386
|
-
required: a = !1,
|
|
387
|
-
dropdownHeightStyle: d = M.AutoHeight,
|
|
388
|
-
state: S = C.Default,
|
|
389
|
-
selectedValuesStyle: L = A.Text,
|
|
390
|
-
colorSet: g = oe.Primarys,
|
|
391
|
-
dropdownPosition: y = p.Bottom,
|
|
392
|
-
setSelectedIdx: h,
|
|
393
|
-
setInput: c
|
|
394
|
-
}) => {
|
|
395
|
-
const [w, Q] = Z(!1), [q, u] = ae(Te, {
|
|
396
|
-
selectState: S,
|
|
397
|
-
openDropdown: !1,
|
|
398
|
-
selectedItemIdx: r,
|
|
399
|
-
selectOptions: o
|
|
400
|
-
}), { openDropdown: b, selectedItemIdx: _, selectOptions: B, selectState: k } = q;
|
|
401
|
-
D(() => {
|
|
402
|
-
Q(!0), typeof r == "number" && (h && h(r), c && c((f) => ({ ...f, [e]: o[r] })));
|
|
403
|
-
}, []), D(() => {
|
|
404
|
-
typeof r == "number" && u({ type: "parent-update-selected", value: r });
|
|
405
|
-
}, [r]), D(() => {
|
|
406
|
-
a && w && !b && u(typeof _ == "number" && _ !== -1 ? {
|
|
407
|
-
type: "field",
|
|
408
|
-
field: "selectState",
|
|
409
|
-
value: C.Default
|
|
410
|
-
} : {
|
|
411
|
-
type: "field",
|
|
412
|
-
field: "selectState",
|
|
413
|
-
value: C.Error
|
|
414
|
-
});
|
|
415
|
-
}, [w, b, a, _]);
|
|
416
|
-
const P = (f, E) => {
|
|
417
|
-
u({ type: "select", value: E }), h && h(E), c && c((re) => ({
|
|
418
|
-
...re,
|
|
419
|
-
[f]: B[E]
|
|
420
|
-
}));
|
|
421
|
-
}, ee = le(() => {
|
|
422
|
-
u({ type: "close" });
|
|
423
|
-
}), [te, H] = V();
|
|
424
|
-
return (
|
|
425
|
-
// <div ref={nodeDOM}>
|
|
426
|
-
/* @__PURE__ */ I(
|
|
427
|
-
G,
|
|
428
|
-
{
|
|
429
|
-
ref: ee,
|
|
430
|
-
display: U.Flex,
|
|
431
|
-
flexDirection: se.Column,
|
|
432
|
-
style: { width: i, maxWidth: i },
|
|
433
|
-
children: [
|
|
434
|
-
/* @__PURE__ */ n("div", { ref: te, children: /* @__PURE__ */ n(
|
|
435
|
-
Ce,
|
|
436
|
-
{
|
|
437
|
-
w: i,
|
|
438
|
-
setOpenDropdown: () => u({ type: "open-close" }),
|
|
439
|
-
selectState: k,
|
|
440
|
-
setSelectState: (f) => u({ type: "field", field: "selectState", value: f }),
|
|
441
|
-
openDropdown: b,
|
|
442
|
-
title: t,
|
|
443
|
-
doubleZero: s,
|
|
444
|
-
selectedValues: B.filter((f) => f.selected === !0),
|
|
445
|
-
selectedValueStyles: L,
|
|
446
|
-
options: o
|
|
447
|
-
}
|
|
448
|
-
) }),
|
|
449
|
-
/* @__PURE__ */ n(
|
|
450
|
-
we,
|
|
451
|
-
{
|
|
452
|
-
isSelectOpen: b,
|
|
453
|
-
closeSelect: () => u({ type: "close" }),
|
|
454
|
-
selectOptions: B,
|
|
455
|
-
handleSelectItem: P,
|
|
456
|
-
selectState: k,
|
|
457
|
-
dropdownHeightStyle: d,
|
|
458
|
-
dropdownPosition: y,
|
|
459
|
-
colorSet: g,
|
|
460
|
-
headerHeight: H.height,
|
|
461
|
-
w: H.width
|
|
462
|
-
}
|
|
463
|
-
)
|
|
464
|
-
]
|
|
465
|
-
}
|
|
466
|
-
)
|
|
467
|
-
);
|
|
468
|
-
};
|
|
2
|
+
import { S as t } from "../SelectSpring-BOfRXdag.js";
|
|
469
3
|
export {
|
|
470
|
-
|
|
4
|
+
t as SelectSpring
|
|
471
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../SpringEnter-CPw1YgNg.cjs");exports.SpringEnter=e.SpringEnter;
|
|
@@ -1,45 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { d as m } from "../react-spring_web.modern-DgQDaJ06.js";
|
|
4
|
-
import { C as y } from "../component-C1Gs4nVu.js";
|
|
5
|
-
const r = {
|
|
6
|
-
horizontal: {
|
|
7
|
-
from: { x: 10 },
|
|
8
|
-
enter: { x: 0 },
|
|
9
|
-
leave: { x: -10 }
|
|
10
|
-
},
|
|
11
|
-
vertical: {
|
|
12
|
-
from: { y: 10 },
|
|
13
|
-
enter: { y: 0 },
|
|
14
|
-
leave: { y: -10 }
|
|
15
|
-
},
|
|
16
|
-
verticalInverted: {
|
|
17
|
-
from: { y: -10 },
|
|
18
|
-
enter: { y: 0 },
|
|
19
|
-
leave: { y: 10 }
|
|
20
|
-
}
|
|
21
|
-
}, v = ({ direction: e, isShown: n = !0, children: o }) => {
|
|
22
|
-
const i = m(n, {
|
|
23
|
-
from: { ...r[e].from, opacity: 0, display: "none" },
|
|
24
|
-
enter: { ...r[e].enter, opacity: 1, display: "block" },
|
|
25
|
-
leave: { ...r[e].leave, opacity: 0, display: "none" }
|
|
26
|
-
// delay: 150,
|
|
27
|
-
});
|
|
28
|
-
return /* @__PURE__ */ t(s, { children: i(
|
|
29
|
-
(a, l) => l && /* @__PURE__ */ t(
|
|
30
|
-
y,
|
|
31
|
-
{
|
|
32
|
-
style: {
|
|
33
|
-
...a,
|
|
34
|
-
height: "inherit",
|
|
35
|
-
width: "inherit",
|
|
36
|
-
overflow: "hidden"
|
|
37
|
-
},
|
|
38
|
-
children: o
|
|
39
|
-
}
|
|
40
|
-
)
|
|
41
|
-
) });
|
|
42
|
-
};
|
|
2
|
+
import { S as n } from "../SpringEnter-CoVZpW-c.js";
|
|
43
3
|
export {
|
|
44
|
-
|
|
4
|
+
n as SpringEnter
|
|
45
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../SpringMenuTransition-B_PoFoqO.cjs");exports.SpringMenuTransition=n.SpringMenuTransition;
|
|
@@ -1,43 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { u as a } from "../react-spring_web.modern-DgQDaJ06.js";
|
|
4
|
-
import { C as h } from "../component-C1Gs4nVu.js";
|
|
5
|
-
import { c as m } from "../generics-C-WSPclF.js";
|
|
6
|
-
import { u as d } from "../web-B_p0FWHf.js";
|
|
7
|
-
const f = ({ isOpen: t, children: r }) => {
|
|
8
|
-
const [e, o] = d(), [n, s] = a(() => ({
|
|
9
|
-
opacity: 0,
|
|
10
|
-
height: 0,
|
|
11
|
-
width: 0
|
|
12
|
-
}));
|
|
13
|
-
return s.start({
|
|
14
|
-
opacity: t ? 1 : 0,
|
|
15
|
-
height: t ? o.height : 0,
|
|
16
|
-
width: t ? o.width : 0
|
|
17
|
-
}), /* @__PURE__ */ i(
|
|
18
|
-
h,
|
|
19
|
-
{
|
|
20
|
-
style: {
|
|
21
|
-
position: "absolute",
|
|
22
|
-
overflow: "hidden",
|
|
23
|
-
...n
|
|
24
|
-
},
|
|
25
|
-
boxSizing: m.BorderBox,
|
|
26
|
-
children: /* @__PURE__ */ i(
|
|
27
|
-
"div",
|
|
28
|
-
{
|
|
29
|
-
ref: e,
|
|
30
|
-
style: {
|
|
31
|
-
width: "max-content",
|
|
32
|
-
height: "max-content",
|
|
33
|
-
boxSizing: "border-box"
|
|
34
|
-
},
|
|
35
|
-
children: r
|
|
36
|
-
}
|
|
37
|
-
)
|
|
38
|
-
}
|
|
39
|
-
);
|
|
40
|
-
};
|
|
2
|
+
import { S as i } from "../SpringMenuTransition-CzSfyvDZ.js";
|
|
41
3
|
export {
|
|
42
|
-
|
|
4
|
+
i as SpringMenuTransition
|
|
43
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../SpringOpenCloseHeight-CyxsSgRD.cjs");exports.SpringOpenCloseHeight=e.SpringOpenCloseHeight;
|
|
@@ -1,19 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { C as o } from "../component-C1Gs4nVu.js";
|
|
4
|
-
import { u as s } from "../web-B_p0FWHf.js";
|
|
5
|
-
const m = ({
|
|
6
|
-
isOpen: t,
|
|
7
|
-
children: i
|
|
8
|
-
}) => {
|
|
9
|
-
const [n, r] = s(), h = {
|
|
10
|
-
height: t ? r.height : 0,
|
|
11
|
-
width: "auto",
|
|
12
|
-
overflow: "hidden",
|
|
13
|
-
opacity: t ? 1 : 0
|
|
14
|
-
};
|
|
15
|
-
return /* @__PURE__ */ e(o, { style: h, children: /* @__PURE__ */ e("div", { ref: n, children: /* @__PURE__ */ e(o, { style: { height: "max-content" }, children: i }) }) });
|
|
16
|
-
};
|
|
2
|
+
import { S as n } from "../SpringOpenCloseHeight-COvFkc30.js";
|
|
17
3
|
export {
|
|
18
|
-
|
|
4
|
+
n as SpringOpenCloseHeight
|
|
19
5
|
};
|
package/dist/styled/li/index.mjs
CHANGED
package/dist/styled/ul/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../TableGrid-BYBVHJt9.cjs");exports.TableGrid=e.TableGrid;
|