@brycks/core-front 0.2.0 → 0.2.1
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/components/feedback/Alert/Alert.d.ts +2 -2
- package/dist/components/feedback/Alert/Alert.d.ts.map +1 -1
- package/dist/components/feedback/Popover/Popover.d.ts +2 -2
- package/dist/components/feedback/Popover/Popover.d.ts.map +1 -1
- package/dist/components/layout/Box/Box.d.ts +2 -2
- package/dist/components/layout/Box/Box.d.ts.map +1 -1
- package/dist/components/layout/Container/Container.d.ts +2 -2
- package/dist/components/layout/Container/Container.d.ts.map +1 -1
- package/dist/components/layout/Grid/Grid.d.ts +3 -3
- package/dist/components/layout/Grid/Grid.d.ts.map +1 -1
- package/dist/components/layout/Stack/Stack.d.ts +2 -2
- package/dist/components/layout/Stack/Stack.d.ts.map +1 -1
- package/dist/components/navigation/Dropdown/Dropdown.d.ts.map +1 -1
- package/dist/components/primitives/Button/Button.d.ts +2 -2
- package/dist/components/primitives/Button/Button.d.ts.map +1 -1
- package/dist/components/primitives/Icon/Icon.d.ts +4 -0
- package/dist/components/primitives/Icon/Icon.d.ts.map +1 -1
- package/dist/components/typography/Heading/Heading.d.ts +2 -2
- package/dist/components/typography/Heading/Heading.d.ts.map +1 -1
- package/dist/components/typography/Text/Text.d.ts +2 -2
- package/dist/components/typography/Text/Text.d.ts.map +1 -1
- package/dist/design-system/primitives/index.d.ts +1 -0
- package/dist/design-system/primitives/index.d.ts.map +1 -1
- package/dist/design-system/primitives/layout.d.ts +114 -0
- package/dist/design-system/primitives/layout.d.ts.map +1 -0
- package/dist/index.cjs +15 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1221 -1143
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -0
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { spacing as
|
|
3
|
-
import { animations as
|
|
4
|
-
import { T as
|
|
5
|
-
import { forwardRef as z, useState as
|
|
6
|
-
import { jsx as s, jsxs as S, Fragment as
|
|
7
|
-
import { createPortal as
|
|
8
|
-
const
|
|
1
|
+
import { a as ts, c as rs, e as os, i as ns, n as ss, p as as, s as is, w as ls } from "./colors-B_8a3coi.js";
|
|
2
|
+
import { spacing as D, durations as Z, easings as G, fontSizes as me, fontWeights as Se, lineHeights as ze, fontFamilies as ne, containers as nt, textStyles as le } from "./tokens.js";
|
|
3
|
+
import { animations as ds, borderStyles as us, borderWidths as ys, breakpoints as fs, focusRings as bs, glows as ms, letterSpacings as gs, mediaQueries as hs, radii as ps, semanticSpacing as ks, shadows as vs, transitions as xs, zIndex as Ss } from "./tokens.js";
|
|
4
|
+
import { T as Cs, c as zs, d as Ms, l as Is, u as Ts, a as Ls } from "./cssVariables-D9uw0uKO.js";
|
|
5
|
+
import { forwardRef as z, useState as B, useId as st, useRef as Q, useCallback as j, useEffect as X, createContext as ye, useContext as fe, cloneElement as Le, useMemo as at, Children as it, isValidElement as lt } from "react";
|
|
6
|
+
import { jsx as s, jsxs as S, Fragment as te } from "react/jsx-runtime";
|
|
7
|
+
import { createPortal as pe } from "react-dom";
|
|
8
|
+
const ce = {
|
|
9
9
|
/** 24px - Micro elements (tags, small badges) */
|
|
10
|
-
xs:
|
|
10
|
+
xs: D[6],
|
|
11
11
|
/** 32px - Small inputs, compact buttons */
|
|
12
|
-
sm:
|
|
12
|
+
sm: D[8],
|
|
13
13
|
/** 40px - Default size for most interactive elements */
|
|
14
|
-
md:
|
|
14
|
+
md: D[10],
|
|
15
15
|
/** 48px - Large inputs, prominent buttons */
|
|
16
|
-
lg:
|
|
16
|
+
lg: D[12],
|
|
17
17
|
/** 56px - Extra large, hero CTAs */
|
|
18
|
-
xl:
|
|
19
|
-
},
|
|
18
|
+
xl: D[14]
|
|
19
|
+
}, we = {
|
|
20
20
|
/** 12px */
|
|
21
|
-
xs:
|
|
21
|
+
xs: D[3],
|
|
22
22
|
/** 16px */
|
|
23
|
-
sm:
|
|
23
|
+
sm: D[4],
|
|
24
24
|
/** 20px */
|
|
25
|
-
md:
|
|
25
|
+
md: D[5],
|
|
26
26
|
/** 24px */
|
|
27
|
-
lg:
|
|
27
|
+
lg: D[6],
|
|
28
28
|
/** 32px */
|
|
29
|
-
xl:
|
|
30
|
-
},
|
|
29
|
+
xl: D[8]
|
|
30
|
+
}, de = {
|
|
31
31
|
/** 8px */
|
|
32
|
-
xs:
|
|
32
|
+
xs: D[2],
|
|
33
33
|
/** 12px */
|
|
34
|
-
sm:
|
|
34
|
+
sm: D[3],
|
|
35
35
|
/** 16px */
|
|
36
|
-
md:
|
|
36
|
+
md: D[4],
|
|
37
37
|
/** 20px */
|
|
38
|
-
lg:
|
|
38
|
+
lg: D[5],
|
|
39
39
|
/** 24px */
|
|
40
|
-
xl:
|
|
41
|
-
},
|
|
40
|
+
xl: D[6]
|
|
41
|
+
}, pn = {
|
|
42
42
|
/** 4px */
|
|
43
|
-
xs:
|
|
43
|
+
xs: D[1],
|
|
44
44
|
/** 6px */
|
|
45
|
-
sm:
|
|
45
|
+
sm: D[1.5],
|
|
46
46
|
/** 8px */
|
|
47
|
-
md:
|
|
47
|
+
md: D[2],
|
|
48
48
|
/** 10px */
|
|
49
|
-
lg:
|
|
49
|
+
lg: D[2.5],
|
|
50
50
|
/** 12px */
|
|
51
|
-
xl:
|
|
51
|
+
xl: D[3]
|
|
52
52
|
}, ae = {
|
|
53
53
|
/** 4px - Tight spacing between icons and text */
|
|
54
|
-
xs:
|
|
54
|
+
xs: D[1],
|
|
55
55
|
/** 6px */
|
|
56
|
-
sm:
|
|
56
|
+
sm: D[1.5],
|
|
57
57
|
/** 8px - Default internal spacing */
|
|
58
|
-
md:
|
|
58
|
+
md: D[2],
|
|
59
59
|
/** 10px */
|
|
60
|
-
lg:
|
|
60
|
+
lg: D[2.5],
|
|
61
61
|
/** 12px - Spacious internal spacing */
|
|
62
|
-
xl:
|
|
63
|
-
},
|
|
62
|
+
xl: D[3]
|
|
63
|
+
}, kn = {
|
|
64
64
|
/** 400px - Small dialogs, confirmations */
|
|
65
65
|
sm: 400,
|
|
66
66
|
/** 500px - Medium dialogs */
|
|
@@ -71,16 +71,16 @@ const ue = {
|
|
|
71
71
|
xl: 800,
|
|
72
72
|
/** Full width minus margins */
|
|
73
73
|
full: "calc(100vw - 48px)"
|
|
74
|
-
},
|
|
74
|
+
}, vn = {
|
|
75
75
|
/** Default tooltip max width */
|
|
76
76
|
tooltipMaxWidth: 300,
|
|
77
77
|
/** Default popover max width */
|
|
78
78
|
popoverMaxWidth: 400,
|
|
79
79
|
/** Arrow size for tooltips */
|
|
80
|
-
arrowSize:
|
|
80
|
+
arrowSize: D[2],
|
|
81
81
|
/** Gap between trigger and popover */
|
|
82
|
-
offset:
|
|
83
|
-
},
|
|
82
|
+
offset: D[2]
|
|
83
|
+
}, ct = {
|
|
84
84
|
sm: {
|
|
85
85
|
box: 16,
|
|
86
86
|
icon: 10
|
|
@@ -93,7 +93,7 @@ const ue = {
|
|
|
93
93
|
box: 22,
|
|
94
94
|
icon: 14
|
|
95
95
|
}
|
|
96
|
-
},
|
|
96
|
+
}, dt = {
|
|
97
97
|
sm: {
|
|
98
98
|
width: 36,
|
|
99
99
|
height: 20,
|
|
@@ -109,7 +109,7 @@ const ue = {
|
|
|
109
109
|
height: 28,
|
|
110
110
|
thumb: 24
|
|
111
111
|
}
|
|
112
|
-
},
|
|
112
|
+
}, ue = {
|
|
113
113
|
/** Default focus ring - primary color */
|
|
114
114
|
default: "0 0 0 3px var(--brycks-focus-ring-color, rgba(85, 120, 244, 0.35))",
|
|
115
115
|
/** Error state focus ring */
|
|
@@ -120,10 +120,10 @@ const ue = {
|
|
|
120
120
|
subtle: "0 0 0 2px var(--brycks-focus-ring-color, rgba(85, 120, 244, 0.25))",
|
|
121
121
|
/** None - explicitly no focus ring */
|
|
122
122
|
none: "none"
|
|
123
|
-
},
|
|
123
|
+
}, xn = {
|
|
124
124
|
default: "0 0 0 2px var(--brycks-background-app), 0 0 0 4px var(--brycks-primary-default)",
|
|
125
125
|
error: "0 0 0 2px var(--brycks-background-app), 0 0 0 4px var(--brycks-error-default)"
|
|
126
|
-
},
|
|
126
|
+
}, Sn = {
|
|
127
127
|
/** Outline-based focus (native) */
|
|
128
128
|
outline: {
|
|
129
129
|
outline: "2px solid var(--brycks-border-focus)",
|
|
@@ -132,51 +132,51 @@ const ue = {
|
|
|
132
132
|
/** Box-shadow based focus (custom) */
|
|
133
133
|
ring: {
|
|
134
134
|
outline: "none",
|
|
135
|
-
boxShadow:
|
|
135
|
+
boxShadow: ue.default
|
|
136
136
|
},
|
|
137
137
|
/** Error state focus */
|
|
138
138
|
ringError: {
|
|
139
139
|
outline: "none",
|
|
140
|
-
boxShadow:
|
|
140
|
+
boxShadow: ue.error
|
|
141
141
|
},
|
|
142
142
|
/** Remove focus styles (use sparingly) */
|
|
143
143
|
none: {
|
|
144
144
|
outline: "none",
|
|
145
145
|
boxShadow: "none"
|
|
146
146
|
}
|
|
147
|
-
},
|
|
147
|
+
}, he = {
|
|
148
148
|
/** No transition */
|
|
149
149
|
none: "none",
|
|
150
150
|
/** Ultra-fast - for micro-interactions (50ms) */
|
|
151
|
-
instant: `all ${Z.faster}ms ${
|
|
151
|
+
instant: `all ${Z.faster}ms ${G.easeOut}`,
|
|
152
152
|
/** Fast - for hover states, toggles (100ms) */
|
|
153
|
-
fast: `all ${Z.fast}ms ${
|
|
153
|
+
fast: `all ${Z.fast}ms ${G.easeOut}`,
|
|
154
154
|
/** Quick - standard interactive feedback (150ms) */
|
|
155
|
-
quick: `all ${Z.quick}ms ${
|
|
155
|
+
quick: `all ${Z.quick}ms ${G.easeOut}`,
|
|
156
156
|
/** Default - most state changes (200ms) */
|
|
157
|
-
default: `all ${Z.normal}ms ${
|
|
157
|
+
default: `all ${Z.normal}ms ${G.easeOut}`,
|
|
158
158
|
/** Smooth - focus states, form elements (300ms) */
|
|
159
|
-
smooth: `all ${Z.relaxed}ms ${
|
|
159
|
+
smooth: `all ${Z.relaxed}ms ${G.smooth}`,
|
|
160
160
|
/** Slow - reveals, modals (400ms) */
|
|
161
|
-
slow: `all ${Z.slow}ms ${
|
|
161
|
+
slow: `all ${Z.slow}ms ${G.easeOut}`,
|
|
162
162
|
/** Spring - bouncy, tactile feel (300ms) */
|
|
163
|
-
spring: `all ${Z.relaxed}ms ${
|
|
163
|
+
spring: `all ${Z.relaxed}ms ${G.softSpring}`,
|
|
164
164
|
/** Colors only - optimized for color transitions */
|
|
165
|
-
colors: `color ${Z.fast}ms ${
|
|
165
|
+
colors: `color ${Z.fast}ms ${G.easeOut}, background-color ${Z.fast}ms ${G.easeOut}, border-color ${Z.fast}ms ${G.easeOut}`,
|
|
166
166
|
/** Transform only - for scale, translate */
|
|
167
|
-
transform: `transform ${Z.normal}ms ${
|
|
167
|
+
transform: `transform ${Z.normal}ms ${G.easeOut}`,
|
|
168
168
|
/** Opacity only - for fade effects */
|
|
169
|
-
opacity: `opacity ${Z.normal}ms ${
|
|
169
|
+
opacity: `opacity ${Z.normal}ms ${G.easeOut}`,
|
|
170
170
|
/** Shadow only - for elevation changes */
|
|
171
|
-
shadow: `box-shadow ${Z.normal}ms ${
|
|
172
|
-
},
|
|
171
|
+
shadow: `box-shadow ${Z.normal}ms ${G.easeOut}`
|
|
172
|
+
}, wn = {
|
|
173
173
|
all: "all",
|
|
174
174
|
colors: "color, background-color, border-color, fill, stroke",
|
|
175
175
|
opacity: "opacity",
|
|
176
176
|
shadow: "box-shadow",
|
|
177
177
|
transform: "transform",
|
|
178
178
|
dimensions: "width, height, padding, margin"
|
|
179
|
-
},
|
|
179
|
+
}, Cn = {
|
|
180
180
|
instant: Z.faster,
|
|
181
181
|
fast: Z.fast,
|
|
182
182
|
quick: Z.quick,
|
|
@@ -184,17 +184,17 @@ const ue = {
|
|
|
184
184
|
smooth: Z.relaxed,
|
|
185
185
|
slow: Z.slow,
|
|
186
186
|
slower: Z.slower
|
|
187
|
-
}, Cn = {
|
|
188
|
-
linear: q.linear,
|
|
189
|
-
ease: q.ease,
|
|
190
|
-
easeIn: q.easeIn,
|
|
191
|
-
easeOut: q.easeOut,
|
|
192
|
-
easeInOut: q.easeInOut,
|
|
193
|
-
spring: q.spring,
|
|
194
|
-
softSpring: q.softSpring,
|
|
195
|
-
smooth: q.smooth,
|
|
196
|
-
snappy: q.snappy
|
|
197
187
|
}, zn = {
|
|
188
|
+
linear: G.linear,
|
|
189
|
+
ease: G.ease,
|
|
190
|
+
easeIn: G.easeIn,
|
|
191
|
+
easeOut: G.easeOut,
|
|
192
|
+
easeInOut: G.easeInOut,
|
|
193
|
+
spring: G.spring,
|
|
194
|
+
softSpring: G.softSpring,
|
|
195
|
+
smooth: G.smooth,
|
|
196
|
+
snappy: G.snappy
|
|
197
|
+
}, Mn = {
|
|
198
198
|
fadeIn: `
|
|
199
199
|
@keyframes brycks-fade-in {
|
|
200
200
|
from { opacity: 0; }
|
|
@@ -255,144 +255,144 @@ const ue = {
|
|
|
255
255
|
40% { transform: scale(1); opacity: 1; }
|
|
256
256
|
}
|
|
257
257
|
`
|
|
258
|
-
},
|
|
258
|
+
}, K = {
|
|
259
259
|
/** 11px - Extra small labels, badges */
|
|
260
|
-
xs:
|
|
260
|
+
xs: me.xs,
|
|
261
261
|
/** 12px - Small text, captions, helper text */
|
|
262
|
-
sm:
|
|
262
|
+
sm: me.sm,
|
|
263
263
|
/** 14px - Default component text */
|
|
264
|
-
md:
|
|
264
|
+
md: me.base,
|
|
265
265
|
/** 15px - Large component text */
|
|
266
266
|
lg: 15,
|
|
267
267
|
/** 16px - Extra large component text */
|
|
268
|
-
xl:
|
|
268
|
+
xl: me.md
|
|
269
269
|
}, re = {
|
|
270
270
|
/** 400 - Regular body text */
|
|
271
|
-
regular:
|
|
271
|
+
regular: Se.regular,
|
|
272
272
|
/** 500 - Labels, emphasized text */
|
|
273
|
-
medium:
|
|
273
|
+
medium: Se.medium,
|
|
274
274
|
/** 600 - Headings, titles */
|
|
275
|
-
semibold:
|
|
275
|
+
semibold: Se.semibold,
|
|
276
276
|
/** 700 - Strong emphasis */
|
|
277
|
-
bold:
|
|
277
|
+
bold: Se.bold
|
|
278
278
|
}, U = {
|
|
279
279
|
/** 1 - Single line, badges */
|
|
280
|
-
none:
|
|
280
|
+
none: ze.none,
|
|
281
281
|
/** 1.25 - Tight, headings */
|
|
282
|
-
tight:
|
|
282
|
+
tight: ze.snug,
|
|
283
283
|
/** 1.4 - Slightly relaxed, labels */
|
|
284
284
|
snug: 1.4,
|
|
285
285
|
/** 1.5 - Default body text */
|
|
286
|
-
normal:
|
|
286
|
+
normal: ze.normal,
|
|
287
287
|
/** 1.6 - Relaxed, helper text */
|
|
288
288
|
relaxed: 1.6
|
|
289
|
-
},
|
|
289
|
+
}, In = {
|
|
290
290
|
/** Form field labels */
|
|
291
291
|
label: {
|
|
292
|
-
fontFamily:
|
|
293
|
-
fontSize:
|
|
292
|
+
fontFamily: ne.sans,
|
|
293
|
+
fontSize: K.sm,
|
|
294
294
|
fontWeight: re.medium,
|
|
295
295
|
lineHeight: U.normal
|
|
296
296
|
},
|
|
297
297
|
/** Helper/hint text below inputs */
|
|
298
298
|
helperText: {
|
|
299
|
-
fontFamily:
|
|
300
|
-
fontSize:
|
|
299
|
+
fontFamily: ne.sans,
|
|
300
|
+
fontSize: K.xs,
|
|
301
301
|
fontWeight: re.regular,
|
|
302
302
|
lineHeight: U.relaxed
|
|
303
303
|
},
|
|
304
304
|
/** Error messages */
|
|
305
305
|
errorText: {
|
|
306
|
-
fontFamily:
|
|
307
|
-
fontSize:
|
|
306
|
+
fontFamily: ne.sans,
|
|
307
|
+
fontSize: K.xs,
|
|
308
308
|
fontWeight: re.regular,
|
|
309
309
|
lineHeight: U.relaxed
|
|
310
310
|
},
|
|
311
311
|
/** Button text - small */
|
|
312
312
|
buttonSm: {
|
|
313
|
-
fontFamily:
|
|
314
|
-
fontSize:
|
|
313
|
+
fontFamily: ne.sans,
|
|
314
|
+
fontSize: K.sm,
|
|
315
315
|
fontWeight: re.medium,
|
|
316
316
|
lineHeight: U.none
|
|
317
317
|
},
|
|
318
318
|
/** Button text - medium (default) */
|
|
319
319
|
buttonMd: {
|
|
320
|
-
fontFamily:
|
|
321
|
-
fontSize:
|
|
320
|
+
fontFamily: ne.sans,
|
|
321
|
+
fontSize: K.md,
|
|
322
322
|
fontWeight: re.medium,
|
|
323
323
|
lineHeight: U.none
|
|
324
324
|
},
|
|
325
325
|
/** Button text - large */
|
|
326
326
|
buttonLg: {
|
|
327
|
-
fontFamily:
|
|
328
|
-
fontSize:
|
|
327
|
+
fontFamily: ne.sans,
|
|
328
|
+
fontSize: K.lg,
|
|
329
329
|
fontWeight: re.medium,
|
|
330
330
|
lineHeight: U.none
|
|
331
331
|
},
|
|
332
332
|
/** Badge text */
|
|
333
333
|
badge: {
|
|
334
|
-
fontFamily:
|
|
335
|
-
fontSize:
|
|
334
|
+
fontFamily: ne.sans,
|
|
335
|
+
fontSize: K.xs,
|
|
336
336
|
fontWeight: re.medium,
|
|
337
337
|
lineHeight: U.none
|
|
338
338
|
},
|
|
339
339
|
/** Tooltip text */
|
|
340
340
|
tooltip: {
|
|
341
|
-
fontFamily:
|
|
342
|
-
fontSize:
|
|
341
|
+
fontFamily: ne.sans,
|
|
342
|
+
fontSize: K.xs,
|
|
343
343
|
fontWeight: re.medium,
|
|
344
344
|
lineHeight: U.snug
|
|
345
345
|
},
|
|
346
346
|
/** Alert title */
|
|
347
347
|
alertTitle: {
|
|
348
|
-
fontFamily:
|
|
349
|
-
fontSize:
|
|
348
|
+
fontFamily: ne.sans,
|
|
349
|
+
fontSize: K.md,
|
|
350
350
|
fontWeight: re.semibold,
|
|
351
351
|
lineHeight: U.tight
|
|
352
352
|
},
|
|
353
353
|
/** Alert description */
|
|
354
354
|
alertDescription: {
|
|
355
|
-
fontFamily:
|
|
356
|
-
fontSize:
|
|
355
|
+
fontFamily: ne.sans,
|
|
356
|
+
fontSize: K.md,
|
|
357
357
|
fontWeight: re.regular,
|
|
358
358
|
lineHeight: U.normal
|
|
359
359
|
},
|
|
360
360
|
/** Modal title */
|
|
361
361
|
modalTitle: {
|
|
362
|
-
fontFamily:
|
|
363
|
-
fontSize:
|
|
362
|
+
fontFamily: ne.sans,
|
|
363
|
+
fontSize: me.lg,
|
|
364
364
|
fontWeight: re.semibold,
|
|
365
365
|
lineHeight: U.tight
|
|
366
366
|
},
|
|
367
367
|
/** Modal description */
|
|
368
368
|
modalDescription: {
|
|
369
|
-
fontFamily:
|
|
370
|
-
fontSize:
|
|
369
|
+
fontFamily: ne.sans,
|
|
370
|
+
fontSize: K.md,
|
|
371
371
|
fontWeight: re.regular,
|
|
372
372
|
lineHeight: U.normal
|
|
373
373
|
},
|
|
374
374
|
/** Empty state title */
|
|
375
375
|
emptyStateTitle: {
|
|
376
|
-
fontFamily:
|
|
377
|
-
fontSize:
|
|
376
|
+
fontFamily: ne.sans,
|
|
377
|
+
fontSize: me.lg,
|
|
378
378
|
fontWeight: re.semibold,
|
|
379
379
|
lineHeight: U.tight
|
|
380
380
|
},
|
|
381
381
|
/** Empty state description */
|
|
382
382
|
emptyStateDescription: {
|
|
383
|
-
fontFamily:
|
|
384
|
-
fontSize:
|
|
383
|
+
fontFamily: ne.sans,
|
|
384
|
+
fontSize: K.md,
|
|
385
385
|
fontWeight: re.regular,
|
|
386
386
|
lineHeight: U.normal
|
|
387
387
|
},
|
|
388
388
|
/** Divider label */
|
|
389
389
|
dividerLabel: {
|
|
390
|
-
fontFamily:
|
|
391
|
-
fontSize:
|
|
390
|
+
fontFamily: ne.sans,
|
|
391
|
+
fontSize: K.xs,
|
|
392
392
|
fontWeight: re.medium,
|
|
393
393
|
lineHeight: U.normal
|
|
394
394
|
}
|
|
395
|
-
},
|
|
395
|
+
}, ie = {
|
|
396
396
|
/** 0 - Fully transparent */
|
|
397
397
|
transparent: 0,
|
|
398
398
|
/** 0.05 - Barely visible */
|
|
@@ -425,24 +425,24 @@ const ue = {
|
|
|
425
425
|
95: 0.95,
|
|
426
426
|
/** 1 - Fully opaque */
|
|
427
427
|
opaque: 1
|
|
428
|
-
},
|
|
428
|
+
}, Ie = {
|
|
429
429
|
/** Disabled elements */
|
|
430
|
-
disabled:
|
|
430
|
+
disabled: ie[50],
|
|
431
431
|
/** Placeholder text */
|
|
432
|
-
placeholder:
|
|
432
|
+
placeholder: ie[50],
|
|
433
433
|
/** Hover overlay */
|
|
434
|
-
hoverOverlay:
|
|
434
|
+
hoverOverlay: ie[5],
|
|
435
435
|
/** Active/pressed overlay */
|
|
436
|
-
activeOverlay:
|
|
436
|
+
activeOverlay: ie[10],
|
|
437
437
|
/** Modal backdrop */
|
|
438
|
-
backdrop:
|
|
438
|
+
backdrop: ie[40],
|
|
439
439
|
/** Loading state */
|
|
440
|
-
loading:
|
|
440
|
+
loading: ie[70],
|
|
441
441
|
/** Secondary text */
|
|
442
|
-
muted:
|
|
442
|
+
muted: ie[60],
|
|
443
443
|
/** Subtle decorative elements */
|
|
444
|
-
subtle:
|
|
445
|
-
},
|
|
444
|
+
subtle: ie[30]
|
|
445
|
+
}, ge = {
|
|
446
446
|
/** Pressed state - subtle shrink */
|
|
447
447
|
pressed: 0.98,
|
|
448
448
|
/** Strong pressed - more noticeable */
|
|
@@ -457,33 +457,98 @@ const ue = {
|
|
|
457
457
|
hover: 1.02,
|
|
458
458
|
/** Emphasized grow */
|
|
459
459
|
emphasized: 1.05
|
|
460
|
+
}, Tn = {
|
|
461
|
+
/** Collapsed sidebar width: 72px */
|
|
462
|
+
collapsed: 72,
|
|
463
|
+
/** Expanded sidebar width: 240px */
|
|
464
|
+
expanded: 240,
|
|
465
|
+
/** Logo size: 32px */
|
|
466
|
+
logoSize: D[8],
|
|
467
|
+
/** Nav icon size: 20px */
|
|
468
|
+
navIconSize: D[5]
|
|
469
|
+
}, Ln = {
|
|
470
|
+
/** Standard header height: 64px */
|
|
471
|
+
height: D[16],
|
|
472
|
+
/** Compact header height: 48px */
|
|
473
|
+
compact: D[12]
|
|
474
|
+
}, Nn = {
|
|
475
|
+
/** 24px - Extra small */
|
|
476
|
+
xs: D[6],
|
|
477
|
+
/** 32px - Small */
|
|
478
|
+
sm: D[8],
|
|
479
|
+
/** 36px - Medium (default) */
|
|
480
|
+
md: 36,
|
|
481
|
+
/** 40px - Large */
|
|
482
|
+
lg: D[10],
|
|
483
|
+
/** 48px - Extra large */
|
|
484
|
+
xl: D[12],
|
|
485
|
+
/** 64px - 2x large (for hero sections) */
|
|
486
|
+
"2xl": D[16]
|
|
487
|
+
}, $n = {
|
|
488
|
+
/** 28px */
|
|
489
|
+
xs: 28,
|
|
490
|
+
/** 32px */
|
|
491
|
+
sm: D[8],
|
|
492
|
+
/** 36px */
|
|
493
|
+
md: 36,
|
|
494
|
+
/** 40px */
|
|
495
|
+
lg: D[10],
|
|
496
|
+
/** 48px */
|
|
497
|
+
xl: D[12]
|
|
498
|
+
}, Hn = {
|
|
499
|
+
/** Icon container size: 48px */
|
|
500
|
+
iconContainer: D[12],
|
|
501
|
+
/** Default padding: 16px */
|
|
502
|
+
padding: D[4]
|
|
503
|
+
}, Wn = {
|
|
504
|
+
/** Mobile padding: 16px */
|
|
505
|
+
mobile: D[4],
|
|
506
|
+
/** Tablet padding: 20px */
|
|
507
|
+
tablet: D[5],
|
|
508
|
+
/** Desktop padding: 24px */
|
|
509
|
+
desktop: D[6],
|
|
510
|
+
/** Large screen padding: 32px */
|
|
511
|
+
wide: D[8]
|
|
512
|
+
}, Dn = {
|
|
513
|
+
/** Bottom margin: 24px */
|
|
514
|
+
marginBottom: D[6]
|
|
515
|
+
}, Bn = {
|
|
516
|
+
/** Minimum width: 240px */
|
|
517
|
+
minWidth: 240,
|
|
518
|
+
/** Icon left offset: 12px */
|
|
519
|
+
iconLeft: D[3],
|
|
520
|
+
/** Input left padding to accommodate icon: 36px */
|
|
521
|
+
paddingLeft: 36
|
|
522
|
+
}, En = {
|
|
523
|
+
/** Icon container size: 48px */
|
|
524
|
+
iconContainer: D[12]
|
|
460
525
|
};
|
|
461
526
|
function M(...r) {
|
|
462
527
|
return r.filter(Boolean).join(" ");
|
|
463
528
|
}
|
|
464
|
-
function
|
|
465
|
-
return
|
|
529
|
+
function Rn(r) {
|
|
530
|
+
return D[r];
|
|
466
531
|
}
|
|
467
|
-
function
|
|
532
|
+
function Y(r) {
|
|
468
533
|
if (r === void 0) return;
|
|
469
|
-
const e =
|
|
534
|
+
const e = D[r];
|
|
470
535
|
return e === 0 ? "0" : `${e}px`;
|
|
471
536
|
}
|
|
472
|
-
function
|
|
537
|
+
function Te(r) {
|
|
473
538
|
const e = {};
|
|
474
|
-
return r.m !== void 0 && (e.margin =
|
|
539
|
+
return r.m !== void 0 && (e.margin = Y(r.m)), r.mx !== void 0 && (e.marginLeft = Y(r.mx), e.marginRight = Y(r.mx)), r.my !== void 0 && (e.marginTop = Y(r.my), e.marginBottom = Y(r.my)), r.mt !== void 0 && (e.marginTop = Y(r.mt)), r.mr !== void 0 && (e.marginRight = Y(r.mr)), r.mb !== void 0 && (e.marginBottom = Y(r.mb)), r.ml !== void 0 && (e.marginLeft = Y(r.ml)), r.p !== void 0 && (e.padding = Y(r.p)), r.px !== void 0 && (e.paddingLeft = Y(r.px), e.paddingRight = Y(r.px)), r.py !== void 0 && (e.paddingTop = Y(r.py), e.paddingBottom = Y(r.py)), r.pt !== void 0 && (e.paddingTop = Y(r.pt)), r.pr !== void 0 && (e.paddingRight = Y(r.pr)), r.pb !== void 0 && (e.paddingBottom = Y(r.pb)), r.pl !== void 0 && (e.paddingLeft = Y(r.pl)), e;
|
|
475
540
|
}
|
|
476
|
-
let
|
|
477
|
-
function
|
|
478
|
-
return `${r}-${++
|
|
541
|
+
let ut = 0;
|
|
542
|
+
function Fn(r = "brycks") {
|
|
543
|
+
return `${r}-${++ut}`;
|
|
479
544
|
}
|
|
480
|
-
function
|
|
545
|
+
function An(r, e) {
|
|
481
546
|
const t = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r);
|
|
482
547
|
if (!t) return r;
|
|
483
548
|
const o = parseInt(t[1], 16), n = parseInt(t[2], 16), a = parseInt(t[3], 16);
|
|
484
549
|
return `rgba(${o}, ${n}, ${a}, ${e})`;
|
|
485
550
|
}
|
|
486
|
-
const
|
|
551
|
+
const yt = {
|
|
487
552
|
none: "0",
|
|
488
553
|
xs: "var(--brycks-radius-xs)",
|
|
489
554
|
sm: "var(--brycks-radius-sm)",
|
|
@@ -493,7 +558,7 @@ const ut = {
|
|
|
493
558
|
"2xl": "var(--brycks-radius-2xl)",
|
|
494
559
|
"3xl": "var(--brycks-radius-3xl)",
|
|
495
560
|
full: "var(--brycks-radius-full)"
|
|
496
|
-
},
|
|
561
|
+
}, ft = {
|
|
497
562
|
none: "none",
|
|
498
563
|
xs: "var(--brycks-shadow-xs)",
|
|
499
564
|
sm: "var(--brycks-shadow-sm)",
|
|
@@ -502,13 +567,13 @@ const ut = {
|
|
|
502
567
|
xl: "var(--brycks-shadow-xl)",
|
|
503
568
|
"2xl": "var(--brycks-shadow-2xl)"
|
|
504
569
|
};
|
|
505
|
-
function
|
|
570
|
+
function bt(r) {
|
|
506
571
|
const t = {
|
|
507
|
-
...
|
|
572
|
+
...Te(r)
|
|
508
573
|
};
|
|
509
|
-
return r.display && (t.display = r.display), r.position && (t.position = r.position), r.width && (t.width = r.width), r.height && (t.height = r.height), r.minWidth && (t.minWidth = r.minWidth), r.maxWidth && (t.maxWidth = r.maxWidth), r.minHeight && (t.minHeight = r.minHeight), r.maxHeight && (t.maxHeight = r.maxHeight), r.overflow && (t.overflow = r.overflow), r.bg && (t.backgroundColor = r.bg), r.radius && (t.borderRadius =
|
|
574
|
+
return r.display && (t.display = r.display), r.position && (t.position = r.position), r.width && (t.width = r.width), r.height && (t.height = r.height), r.minWidth && (t.minWidth = r.minWidth), r.maxWidth && (t.maxWidth = r.maxWidth), r.minHeight && (t.minHeight = r.minHeight), r.maxHeight && (t.maxHeight = r.maxHeight), r.overflow && (t.overflow = r.overflow), r.bg && (t.backgroundColor = r.bg), r.radius && (t.borderRadius = yt[r.radius]), r.shadow && (t.boxShadow = ft[r.shadow]), t;
|
|
510
575
|
}
|
|
511
|
-
const
|
|
576
|
+
const mt = [
|
|
512
577
|
"m",
|
|
513
578
|
"mx",
|
|
514
579
|
"my",
|
|
@@ -537,14 +602,14 @@ const bt = [
|
|
|
537
602
|
"shadow",
|
|
538
603
|
"testId"
|
|
539
604
|
];
|
|
540
|
-
function
|
|
605
|
+
function gt(r) {
|
|
541
606
|
const e = { ...r };
|
|
542
|
-
for (const t of
|
|
607
|
+
for (const t of mt)
|
|
543
608
|
delete e[t];
|
|
544
609
|
return e;
|
|
545
610
|
}
|
|
546
|
-
const
|
|
547
|
-
const i = r || "div", d =
|
|
611
|
+
const ht = ({ as: r, className: e, style: t, children: o, testId: n, ...a }, l) => {
|
|
612
|
+
const i = r || "div", d = bt(a), c = gt(a);
|
|
548
613
|
return /* @__PURE__ */ s(
|
|
549
614
|
i,
|
|
550
615
|
{
|
|
@@ -556,9 +621,9 @@ const gt = ({ as: r, className: e, style: t, children: o, testId: n, ...a }, l)
|
|
|
556
621
|
children: o
|
|
557
622
|
}
|
|
558
623
|
);
|
|
559
|
-
},
|
|
560
|
-
|
|
561
|
-
const
|
|
624
|
+
}, pt = z(ht);
|
|
625
|
+
pt.displayName = "Box";
|
|
626
|
+
const kt = [
|
|
562
627
|
"m",
|
|
563
628
|
"mx",
|
|
564
629
|
"my",
|
|
@@ -583,22 +648,22 @@ const pt = [
|
|
|
583
648
|
"inline",
|
|
584
649
|
"testId"
|
|
585
650
|
];
|
|
586
|
-
function
|
|
651
|
+
function vt(r) {
|
|
587
652
|
const e = { ...r };
|
|
588
|
-
for (const t of
|
|
653
|
+
for (const t of kt)
|
|
589
654
|
delete e[t];
|
|
590
655
|
return e;
|
|
591
656
|
}
|
|
592
|
-
function
|
|
657
|
+
function xt(r) {
|
|
593
658
|
const t = {
|
|
594
|
-
...
|
|
659
|
+
...Te(r),
|
|
595
660
|
display: r.inline ? "inline-flex" : "flex",
|
|
596
661
|
flexDirection: r.direction ?? "column"
|
|
597
662
|
};
|
|
598
|
-
return r.gap !== void 0 ? t.gap =
|
|
663
|
+
return r.gap !== void 0 ? t.gap = Y(r.gap) : (r.gapX !== void 0 && (t.columnGap = Y(r.gapX)), r.gapY !== void 0 && (t.rowGap = Y(r.gapY))), r.align && (t.alignItems = r.align), r.justify && (t.justifyContent = r.justify), r.wrap && (t.flexWrap = r.wrap), t;
|
|
599
664
|
}
|
|
600
|
-
const
|
|
601
|
-
const i = r || "div", d =
|
|
665
|
+
const St = ({ as: r, className: e, style: t, children: o, testId: n, ...a }, l) => {
|
|
666
|
+
const i = r || "div", d = xt(a), c = vt(a);
|
|
602
667
|
return /* @__PURE__ */ s(
|
|
603
668
|
i,
|
|
604
669
|
{
|
|
@@ -610,13 +675,13 @@ const xt = ({ as: r, className: e, style: t, children: o, testId: n, ...a }, l)
|
|
|
610
675
|
children: o
|
|
611
676
|
}
|
|
612
677
|
);
|
|
613
|
-
},
|
|
614
|
-
|
|
615
|
-
const
|
|
616
|
-
|
|
617
|
-
const
|
|
618
|
-
|
|
619
|
-
const
|
|
678
|
+
}, Ne = z(St);
|
|
679
|
+
Ne.displayName = "Stack";
|
|
680
|
+
const wt = (r, e) => /* @__PURE__ */ s(Ne, { ref: e, direction: "row", align: "center", ...r }), Ct = z(wt);
|
|
681
|
+
Ct.displayName = "HStack";
|
|
682
|
+
const zt = (r, e) => /* @__PURE__ */ s(Ne, { ref: e, direction: "column", ...r }), Mt = z(zt);
|
|
683
|
+
Mt.displayName = "VStack";
|
|
684
|
+
const It = [
|
|
620
685
|
"m",
|
|
621
686
|
"mx",
|
|
622
687
|
"my",
|
|
@@ -644,21 +709,21 @@ const Mt = [
|
|
|
644
709
|
"inline",
|
|
645
710
|
"testId"
|
|
646
711
|
];
|
|
647
|
-
function
|
|
712
|
+
function Tt(r) {
|
|
648
713
|
const e = { ...r };
|
|
649
|
-
for (const t of
|
|
714
|
+
for (const t of It)
|
|
650
715
|
delete e[t];
|
|
651
716
|
return e;
|
|
652
717
|
}
|
|
653
|
-
function
|
|
718
|
+
function Lt(r) {
|
|
654
719
|
const t = {
|
|
655
|
-
...
|
|
720
|
+
...Te(r),
|
|
656
721
|
display: r.inline ? "inline-grid" : "grid"
|
|
657
722
|
};
|
|
658
|
-
return r.columns !== void 0 && (t.gridTemplateColumns = typeof r.columns == "number" ? `repeat(${r.columns}, 1fr)` : r.columns), r.rows !== void 0 && (t.gridTemplateRows = typeof r.rows == "number" ? `repeat(${r.rows}, 1fr)` : r.rows), r.templateColumns && (t.gridTemplateColumns = r.templateColumns), r.templateRows && (t.gridTemplateRows = r.templateRows), r.gap !== void 0 ? t.gap =
|
|
723
|
+
return r.columns !== void 0 && (t.gridTemplateColumns = typeof r.columns == "number" ? `repeat(${r.columns}, 1fr)` : r.columns), r.rows !== void 0 && (t.gridTemplateRows = typeof r.rows == "number" ? `repeat(${r.rows}, 1fr)` : r.rows), r.templateColumns && (t.gridTemplateColumns = r.templateColumns), r.templateRows && (t.gridTemplateRows = r.templateRows), r.gap !== void 0 ? t.gap = Y(r.gap) : (r.gapX !== void 0 && (t.columnGap = Y(r.gapX)), r.gapY !== void 0 && (t.rowGap = Y(r.gapY))), r.align && (t.alignItems = r.align), r.justify && (t.justifyItems = r.justify), r.flow && (t.gridAutoFlow = r.flow), t;
|
|
659
724
|
}
|
|
660
|
-
const
|
|
661
|
-
const i = r || "div", d =
|
|
725
|
+
const Nt = ({ as: r, className: e, style: t, children: o, testId: n, ...a }, l) => {
|
|
726
|
+
const i = r || "div", d = Lt(a), c = Tt(a);
|
|
662
727
|
return /* @__PURE__ */ s(
|
|
663
728
|
i,
|
|
664
729
|
{
|
|
@@ -670,9 +735,9 @@ const Lt = ({ as: r, className: e, style: t, children: o, testId: n, ...a }, l)
|
|
|
670
735
|
children: o
|
|
671
736
|
}
|
|
672
737
|
);
|
|
673
|
-
},
|
|
674
|
-
|
|
675
|
-
const
|
|
738
|
+
}, $t = z(Nt);
|
|
739
|
+
$t.displayName = "Grid";
|
|
740
|
+
const Ht = ({
|
|
676
741
|
as: r,
|
|
677
742
|
className: e,
|
|
678
743
|
style: t,
|
|
@@ -698,9 +763,9 @@ const $t = ({
|
|
|
698
763
|
children: o
|
|
699
764
|
}
|
|
700
765
|
);
|
|
701
|
-
}, Wt = z(
|
|
766
|
+
}, Wt = z(Ht);
|
|
702
767
|
Wt.displayName = "GridItem";
|
|
703
|
-
const
|
|
768
|
+
const Dt = [
|
|
704
769
|
"m",
|
|
705
770
|
"mx",
|
|
706
771
|
"my",
|
|
@@ -720,22 +785,22 @@ const Ht = [
|
|
|
720
785
|
"padded",
|
|
721
786
|
"testId"
|
|
722
787
|
];
|
|
723
|
-
function
|
|
788
|
+
function Bt(r) {
|
|
724
789
|
const e = { ...r };
|
|
725
|
-
for (const t of
|
|
790
|
+
for (const t of Dt)
|
|
726
791
|
delete e[t];
|
|
727
792
|
return e;
|
|
728
793
|
}
|
|
729
|
-
function
|
|
730
|
-
const e =
|
|
794
|
+
function Et(r) {
|
|
795
|
+
const e = Te(r), t = r.size ?? "xl", o = nt[t], n = {
|
|
731
796
|
...e,
|
|
732
797
|
width: "100%",
|
|
733
798
|
maxWidth: typeof o == "number" ? `${o}px` : o
|
|
734
799
|
};
|
|
735
800
|
return r.centered !== !1 && (n.marginLeft = "auto", n.marginRight = "auto"), r.padded !== !1 && (n.paddingLeft = "var(--brycks-space-4)", n.paddingRight = "var(--brycks-space-4)"), n;
|
|
736
801
|
}
|
|
737
|
-
const
|
|
738
|
-
const i = r || "div", d =
|
|
802
|
+
const Rt = ({ as: r, className: e, style: t, children: o, testId: n, ...a }, l) => {
|
|
803
|
+
const i = r || "div", d = Et(a), c = Bt(a);
|
|
739
804
|
return /* @__PURE__ */ s(
|
|
740
805
|
i,
|
|
741
806
|
{
|
|
@@ -747,15 +812,15 @@ const Et = ({ as: r, className: e, style: t, children: o, testId: n, ...a }, l)
|
|
|
747
812
|
children: o
|
|
748
813
|
}
|
|
749
814
|
);
|
|
750
|
-
},
|
|
751
|
-
|
|
752
|
-
const
|
|
815
|
+
}, Ft = z(Rt);
|
|
816
|
+
Ft.displayName = "Container";
|
|
817
|
+
const At = {
|
|
753
818
|
none: 0,
|
|
754
819
|
sm: 12,
|
|
755
820
|
md: 16,
|
|
756
821
|
lg: 24,
|
|
757
822
|
xl: 32
|
|
758
|
-
},
|
|
823
|
+
}, jt = z(function({
|
|
759
824
|
variant: e = "elevated",
|
|
760
825
|
padding: t = "md",
|
|
761
826
|
interactive: o = !1,
|
|
@@ -770,7 +835,7 @@ const Ft = {
|
|
|
770
835
|
...(() => {
|
|
771
836
|
const y = {
|
|
772
837
|
borderRadius: "var(--brycks-radius-lg)",
|
|
773
|
-
transition: "
|
|
838
|
+
transition: "transform 150ms ease-out, box-shadow 150ms ease-out, border-color 150ms ease-out"
|
|
774
839
|
};
|
|
775
840
|
switch (e) {
|
|
776
841
|
case "elevated":
|
|
@@ -800,7 +865,7 @@ const Ft = {
|
|
|
800
865
|
};
|
|
801
866
|
}
|
|
802
867
|
})(),
|
|
803
|
-
padding:
|
|
868
|
+
padding: At[t],
|
|
804
869
|
display: "flex",
|
|
805
870
|
flexDirection: "column",
|
|
806
871
|
cursor: o ? "pointer" : void 0,
|
|
@@ -832,8 +897,8 @@ const Ft = {
|
|
|
832
897
|
}
|
|
833
898
|
);
|
|
834
899
|
});
|
|
835
|
-
|
|
836
|
-
const
|
|
900
|
+
jt.displayName = "Card";
|
|
901
|
+
const Vt = z(function({ divider: e = !1, className: t, style: o, children: n, ...a }, l) {
|
|
837
902
|
const i = {
|
|
838
903
|
display: "flex",
|
|
839
904
|
alignItems: "center",
|
|
@@ -846,16 +911,16 @@ const jt = z(function({ divider: e = !1, className: t, style: o, children: n, ..
|
|
|
846
911
|
};
|
|
847
912
|
return /* @__PURE__ */ s("div", { ref: l, className: M("brycks-card-header", t), style: i, ...a, children: n });
|
|
848
913
|
});
|
|
849
|
-
|
|
850
|
-
const
|
|
914
|
+
Vt.displayName = "CardHeader";
|
|
915
|
+
const Ot = z(function({ className: e, style: t, children: o, ...n }, a) {
|
|
851
916
|
const l = {
|
|
852
917
|
flex: 1,
|
|
853
918
|
...t
|
|
854
919
|
};
|
|
855
920
|
return /* @__PURE__ */ s("div", { ref: a, className: M("brycks-card-body", e), style: l, ...n, children: o });
|
|
856
921
|
});
|
|
857
|
-
|
|
858
|
-
const
|
|
922
|
+
Ot.displayName = "CardBody";
|
|
923
|
+
const Pt = z(function({ divider: e = !1, align: t = "right", className: o, style: n, children: a, ...l }, i) {
|
|
859
924
|
const c = {
|
|
860
925
|
display: "flex",
|
|
861
926
|
alignItems: "center",
|
|
@@ -873,14 +938,14 @@ const Vt = z(function({ divider: e = !1, align: t = "right", className: o, style
|
|
|
873
938
|
};
|
|
874
939
|
return /* @__PURE__ */ s("div", { ref: i, className: M("brycks-card-footer", o), style: c, ...l, children: a });
|
|
875
940
|
});
|
|
876
|
-
|
|
877
|
-
const
|
|
941
|
+
Pt.displayName = "CardFooter";
|
|
942
|
+
const De = {
|
|
878
943
|
none: 0,
|
|
879
944
|
sm: 16,
|
|
880
945
|
md: 24,
|
|
881
946
|
lg: 32,
|
|
882
947
|
xl: 48
|
|
883
|
-
},
|
|
948
|
+
}, Xt = z(function({
|
|
884
949
|
title: e,
|
|
885
950
|
description: t,
|
|
886
951
|
titleLevel: o = "h2",
|
|
@@ -897,8 +962,8 @@ const He = {
|
|
|
897
962
|
display: "flex",
|
|
898
963
|
flexDirection: "column",
|
|
899
964
|
gap: 16,
|
|
900
|
-
paddingTop: a ?
|
|
901
|
-
marginTop:
|
|
965
|
+
paddingTop: a ? De[n] : 0,
|
|
966
|
+
marginTop: De[n],
|
|
902
967
|
borderTop: a ? "1px solid var(--brycks-border-muted)" : void 0,
|
|
903
968
|
...d
|
|
904
969
|
}, g = {
|
|
@@ -951,8 +1016,8 @@ const He = {
|
|
|
951
1016
|
}
|
|
952
1017
|
);
|
|
953
1018
|
});
|
|
954
|
-
|
|
955
|
-
const
|
|
1019
|
+
Xt.displayName = "Section";
|
|
1020
|
+
const Yt = z(function({
|
|
956
1021
|
size: e,
|
|
957
1022
|
customSize: t,
|
|
958
1023
|
flex: o = !1,
|
|
@@ -961,7 +1026,7 @@ const Xt = z(function({
|
|
|
961
1026
|
style: l,
|
|
962
1027
|
...i
|
|
963
1028
|
}, d) {
|
|
964
|
-
const c = t ?? (e ?
|
|
1029
|
+
const c = t ?? (e ? D[e] : void 0), u = {
|
|
965
1030
|
flex: o ? 1 : void 0,
|
|
966
1031
|
width: n === "horizontal" ? c ?? (o ? void 0 : 0) : void 0,
|
|
967
1032
|
height: n === "vertical" ? c ?? (o ? void 0 : 0) : void 0,
|
|
@@ -981,21 +1046,21 @@ const Xt = z(function({
|
|
|
981
1046
|
}
|
|
982
1047
|
);
|
|
983
1048
|
});
|
|
984
|
-
|
|
985
|
-
const
|
|
1049
|
+
Yt.displayName = "Spacer";
|
|
1050
|
+
const Kt = {
|
|
986
1051
|
start: "flex-start",
|
|
987
1052
|
end: "flex-end",
|
|
988
1053
|
center: "center",
|
|
989
1054
|
between: "space-between",
|
|
990
1055
|
around: "space-around",
|
|
991
1056
|
evenly: "space-evenly"
|
|
992
|
-
},
|
|
1057
|
+
}, Be = {
|
|
993
1058
|
start: "flex-start",
|
|
994
1059
|
end: "flex-end",
|
|
995
1060
|
center: "center",
|
|
996
1061
|
baseline: "baseline",
|
|
997
1062
|
stretch: "stretch"
|
|
998
|
-
},
|
|
1063
|
+
}, Gt = z(function({
|
|
999
1064
|
direction: e = "row",
|
|
1000
1065
|
wrap: t = "nowrap",
|
|
1001
1066
|
justify: o = "start",
|
|
@@ -1017,11 +1082,11 @@ const Yt = {
|
|
|
1017
1082
|
display: d ? "inline-flex" : "flex",
|
|
1018
1083
|
flexDirection: e,
|
|
1019
1084
|
flexWrap: t,
|
|
1020
|
-
justifyContent:
|
|
1021
|
-
alignItems:
|
|
1022
|
-
gap: a ?
|
|
1023
|
-
rowGap: l ?
|
|
1024
|
-
columnGap: i ?
|
|
1085
|
+
justifyContent: Kt[o],
|
|
1086
|
+
alignItems: Be[n],
|
|
1087
|
+
gap: a ? D[a] : void 0,
|
|
1088
|
+
rowGap: l ? D[l] : void 0,
|
|
1089
|
+
columnGap: i ? D[i] : void 0,
|
|
1025
1090
|
flexGrow: c,
|
|
1026
1091
|
flexShrink: u,
|
|
1027
1092
|
flexBasis: m,
|
|
@@ -1039,8 +1104,8 @@ const Yt = {
|
|
|
1039
1104
|
}
|
|
1040
1105
|
);
|
|
1041
1106
|
});
|
|
1042
|
-
|
|
1043
|
-
const
|
|
1107
|
+
Gt.displayName = "Flex";
|
|
1108
|
+
const qt = z(function({
|
|
1044
1109
|
grow: e,
|
|
1045
1110
|
shrink: t,
|
|
1046
1111
|
basis: o,
|
|
@@ -1056,7 +1121,7 @@ const Gt = z(function({
|
|
|
1056
1121
|
flexGrow: e,
|
|
1057
1122
|
flexShrink: t,
|
|
1058
1123
|
flexBasis: o,
|
|
1059
|
-
alignSelf: n ?
|
|
1124
|
+
alignSelf: n ? Be[n] : void 0,
|
|
1060
1125
|
order: a,
|
|
1061
1126
|
...d
|
|
1062
1127
|
};
|
|
@@ -1072,28 +1137,28 @@ const Gt = z(function({
|
|
|
1072
1137
|
}
|
|
1073
1138
|
);
|
|
1074
1139
|
});
|
|
1075
|
-
|
|
1076
|
-
const
|
|
1077
|
-
body: { element: "p", styles:
|
|
1078
|
-
bodyLarge: { element: "p", styles:
|
|
1079
|
-
bodySmall: { element: "p", styles:
|
|
1080
|
-
label: { element: "span", styles:
|
|
1081
|
-
caption: { element: "span", styles:
|
|
1082
|
-
overline: { element: "span", styles:
|
|
1083
|
-
code: { element: "code", styles:
|
|
1140
|
+
qt.displayName = "FlexItem";
|
|
1141
|
+
const Ee = {
|
|
1142
|
+
body: { element: "p", styles: le.bodyDefault },
|
|
1143
|
+
bodyLarge: { element: "p", styles: le.bodyLarge },
|
|
1144
|
+
bodySmall: { element: "p", styles: le.bodySmall },
|
|
1145
|
+
label: { element: "span", styles: le.label },
|
|
1146
|
+
caption: { element: "span", styles: le.caption },
|
|
1147
|
+
overline: { element: "span", styles: le.overline },
|
|
1148
|
+
code: { element: "code", styles: le.code }
|
|
1084
1149
|
};
|
|
1085
|
-
function
|
|
1086
|
-
const e = r.variant ?? "body", t =
|
|
1150
|
+
function _t(r) {
|
|
1151
|
+
const e = r.variant ?? "body", t = Ee[e].styles, o = {
|
|
1087
1152
|
fontFamily: t.fontFamily,
|
|
1088
|
-
fontSize: r.size ?
|
|
1089
|
-
fontWeight: r.weight ?
|
|
1090
|
-
lineHeight: r.leading ?
|
|
1153
|
+
fontSize: r.size ? me[r.size] : t.fontSize,
|
|
1154
|
+
fontWeight: r.weight ? Se[r.weight] : t.fontWeight,
|
|
1155
|
+
lineHeight: r.leading ? ze[r.leading] : t.lineHeight,
|
|
1091
1156
|
letterSpacing: t.letterSpacing
|
|
1092
1157
|
};
|
|
1093
1158
|
return "textTransform" in t && (o.textTransform = t.textTransform), r.align && (o.textAlign = r.align), r.color && (o.color = r.color), r.truncate && (o.overflow = "hidden", o.textOverflow = "ellipsis", o.whiteSpace = "nowrap"), r.lineClamp && (o.display = "-webkit-box", o.WebkitLineClamp = r.lineClamp, o.WebkitBoxOrient = "vertical", o.overflow = "hidden"), o;
|
|
1094
1159
|
}
|
|
1095
|
-
const
|
|
1096
|
-
const d = r ||
|
|
1160
|
+
const Ut = ({ as: r, variant: e = "body", className: t, style: o, children: n, testId: a, ...l }, i) => {
|
|
1161
|
+
const d = r || Ee[e].element, c = _t({ variant: e, ...l }), {
|
|
1097
1162
|
size: u,
|
|
1098
1163
|
weight: m,
|
|
1099
1164
|
leading: h,
|
|
@@ -1114,24 +1179,24 @@ const _t = ({ as: r, variant: e = "body", className: t, style: o, children: n, t
|
|
|
1114
1179
|
children: n
|
|
1115
1180
|
}
|
|
1116
1181
|
);
|
|
1117
|
-
},
|
|
1118
|
-
|
|
1119
|
-
const
|
|
1120
|
-
|
|
1182
|
+
}, Re = z(Ut);
|
|
1183
|
+
Re.displayName = "Text";
|
|
1184
|
+
const Zt = (r, e) => /* @__PURE__ */ s(
|
|
1185
|
+
Re,
|
|
1121
1186
|
{
|
|
1122
1187
|
...r,
|
|
1123
1188
|
ref: e,
|
|
1124
1189
|
variant: "code",
|
|
1125
1190
|
style: {
|
|
1126
1191
|
backgroundColor: "var(--brycks-background-muted)",
|
|
1127
|
-
padding: `${
|
|
1192
|
+
padding: `${D[0.5]}px ${D[1.5]}px`,
|
|
1128
1193
|
borderRadius: "var(--brycks-radius-sm)",
|
|
1129
1194
|
...r.style
|
|
1130
1195
|
}
|
|
1131
1196
|
}
|
|
1132
|
-
),
|
|
1133
|
-
|
|
1134
|
-
const
|
|
1197
|
+
), Qt = z(Zt);
|
|
1198
|
+
Qt.displayName = "Code";
|
|
1199
|
+
const Jt = {
|
|
1135
1200
|
1: "h1",
|
|
1136
1201
|
2: "h2",
|
|
1137
1202
|
3: "h3",
|
|
@@ -1142,19 +1207,19 @@ const Qt = {
|
|
|
1142
1207
|
displayLarge: "displayLarge",
|
|
1143
1208
|
displaySmall: "displaySmall"
|
|
1144
1209
|
};
|
|
1145
|
-
function
|
|
1146
|
-
const e = r.level ?? 2, t = r.size ?? e, o =
|
|
1210
|
+
function er(r) {
|
|
1211
|
+
const e = r.level ?? 2, t = r.size ?? e, o = Jt[t], n = le[o], a = {
|
|
1147
1212
|
fontFamily: n.fontFamily,
|
|
1148
1213
|
fontSize: n.fontSize,
|
|
1149
|
-
fontWeight: r.weight ?
|
|
1214
|
+
fontWeight: r.weight ? Se[r.weight] : n.fontWeight,
|
|
1150
1215
|
lineHeight: n.lineHeight,
|
|
1151
1216
|
letterSpacing: n.letterSpacing,
|
|
1152
1217
|
margin: 0
|
|
1153
1218
|
};
|
|
1154
1219
|
return r.align && (a.textAlign = r.align), r.color && (a.color = r.color), r.truncate && (a.overflow = "hidden", a.textOverflow = "ellipsis", a.whiteSpace = "nowrap"), a;
|
|
1155
1220
|
}
|
|
1156
|
-
const
|
|
1157
|
-
const d = r || `h${e}`, c =
|
|
1221
|
+
const tr = ({ as: r, level: e = 2, className: t, style: o, children: n, testId: a, ...l }, i) => {
|
|
1222
|
+
const d = r || `h${e}`, c = er({ level: e, ...l }), {
|
|
1158
1223
|
size: u,
|
|
1159
1224
|
weight: m,
|
|
1160
1225
|
align: h,
|
|
@@ -1173,52 +1238,52 @@ const er = ({ as: r, level: e = 2, className: t, style: o, children: n, testId:
|
|
|
1173
1238
|
children: n
|
|
1174
1239
|
}
|
|
1175
1240
|
);
|
|
1176
|
-
},
|
|
1177
|
-
|
|
1178
|
-
const
|
|
1179
|
-
|
|
1180
|
-
const
|
|
1241
|
+
}, Fe = z(tr);
|
|
1242
|
+
Fe.displayName = "Heading";
|
|
1243
|
+
const rr = ({ size: r = "display", ...e }, t) => /* @__PURE__ */ s(Fe, { ref: t, level: 1, size: r, ...e }), or = z(rr);
|
|
1244
|
+
or.displayName = "Display";
|
|
1245
|
+
const Ae = {
|
|
1181
1246
|
xs: {
|
|
1182
|
-
height:
|
|
1183
|
-
paddingX:
|
|
1184
|
-
fontSize:
|
|
1185
|
-
iconSize:
|
|
1247
|
+
height: ce.xs,
|
|
1248
|
+
paddingX: de.xs,
|
|
1249
|
+
fontSize: K.xs,
|
|
1250
|
+
iconSize: we.xs,
|
|
1186
1251
|
gap: ae.xs,
|
|
1187
1252
|
radius: "var(--brycks-radius-md)"
|
|
1188
1253
|
},
|
|
1189
1254
|
sm: {
|
|
1190
|
-
height:
|
|
1191
|
-
paddingX:
|
|
1192
|
-
fontSize:
|
|
1193
|
-
iconSize:
|
|
1255
|
+
height: ce.sm,
|
|
1256
|
+
paddingX: de.sm,
|
|
1257
|
+
fontSize: K.sm,
|
|
1258
|
+
iconSize: we.sm,
|
|
1194
1259
|
gap: ae.sm,
|
|
1195
1260
|
radius: "var(--brycks-radius-md)"
|
|
1196
1261
|
},
|
|
1197
1262
|
md: {
|
|
1198
|
-
height:
|
|
1199
|
-
paddingX:
|
|
1200
|
-
fontSize:
|
|
1201
|
-
iconSize:
|
|
1263
|
+
height: ce.md,
|
|
1264
|
+
paddingX: de.md,
|
|
1265
|
+
fontSize: K.md,
|
|
1266
|
+
iconSize: we.md,
|
|
1202
1267
|
gap: ae.md,
|
|
1203
1268
|
radius: "var(--brycks-radius-default)"
|
|
1204
1269
|
},
|
|
1205
1270
|
lg: {
|
|
1206
|
-
height:
|
|
1207
|
-
paddingX:
|
|
1208
|
-
fontSize:
|
|
1209
|
-
iconSize:
|
|
1271
|
+
height: ce.lg,
|
|
1272
|
+
paddingX: de.lg,
|
|
1273
|
+
fontSize: K.lg,
|
|
1274
|
+
iconSize: we.lg,
|
|
1210
1275
|
gap: ae.md,
|
|
1211
1276
|
radius: "var(--brycks-radius-lg)"
|
|
1212
1277
|
},
|
|
1213
1278
|
xl: {
|
|
1214
|
-
height:
|
|
1215
|
-
paddingX:
|
|
1216
|
-
fontSize:
|
|
1217
|
-
iconSize:
|
|
1279
|
+
height: ce.xl,
|
|
1280
|
+
paddingX: de.xl,
|
|
1281
|
+
fontSize: K.xl,
|
|
1282
|
+
iconSize: we.xl,
|
|
1218
1283
|
gap: ae.lg,
|
|
1219
1284
|
radius: "var(--brycks-radius-xl)"
|
|
1220
1285
|
}
|
|
1221
|
-
},
|
|
1286
|
+
}, nr = {
|
|
1222
1287
|
primary: {
|
|
1223
1288
|
solid: {
|
|
1224
1289
|
bg: "var(--brycks-primary-default)",
|
|
@@ -1376,8 +1441,8 @@ const Fe = {
|
|
|
1376
1441
|
}
|
|
1377
1442
|
}
|
|
1378
1443
|
};
|
|
1379
|
-
function
|
|
1380
|
-
const { variant: e, intent: t, size: o, fullWidth: n, isIconOnly: a } = r, l =
|
|
1444
|
+
function sr(r) {
|
|
1445
|
+
const { variant: e, intent: t, size: o, fullWidth: n, isIconOnly: a } = r, l = Ae[o], i = nr[t][e], d = {
|
|
1381
1446
|
display: "inline-flex",
|
|
1382
1447
|
alignItems: "center",
|
|
1383
1448
|
justifyContent: "center",
|
|
@@ -1396,7 +1461,7 @@ function nr(r) {
|
|
|
1396
1461
|
cursor: "pointer",
|
|
1397
1462
|
userSelect: "none",
|
|
1398
1463
|
textDecoration: "none",
|
|
1399
|
-
transition:
|
|
1464
|
+
transition: he.quick,
|
|
1400
1465
|
WebkitTapHighlightColor: "transparent"
|
|
1401
1466
|
};
|
|
1402
1467
|
switch (e) {
|
|
@@ -1473,14 +1538,14 @@ function nr(r) {
|
|
|
1473
1538
|
}
|
|
1474
1539
|
}
|
|
1475
1540
|
const u = {
|
|
1476
|
-
transform: e !== "link" ? `scale(${
|
|
1541
|
+
transform: e !== "link" ? `scale(${ge.pressed})` : void 0
|
|
1477
1542
|
};
|
|
1478
1543
|
if (e === "solid") {
|
|
1479
1544
|
const y = i;
|
|
1480
1545
|
u.backgroundColor = y.activeBg, u.boxShadow = "var(--brycks-shadow-xs)";
|
|
1481
1546
|
}
|
|
1482
1547
|
const m = {
|
|
1483
|
-
opacity:
|
|
1548
|
+
opacity: Ie.disabled,
|
|
1484
1549
|
cursor: "not-allowed",
|
|
1485
1550
|
pointerEvents: "none"
|
|
1486
1551
|
};
|
|
@@ -1489,7 +1554,7 @@ function nr(r) {
|
|
|
1489
1554
|
pointerEvents: "none"
|
|
1490
1555
|
} };
|
|
1491
1556
|
}
|
|
1492
|
-
function
|
|
1557
|
+
function ar({ size: r }) {
|
|
1493
1558
|
return /* @__PURE__ */ S(
|
|
1494
1559
|
"svg",
|
|
1495
1560
|
{
|
|
@@ -1538,7 +1603,7 @@ function sr({ size: r }) {
|
|
|
1538
1603
|
}
|
|
1539
1604
|
);
|
|
1540
1605
|
}
|
|
1541
|
-
const
|
|
1606
|
+
const ir = ({
|
|
1542
1607
|
as: r,
|
|
1543
1608
|
variant: e = "solid",
|
|
1544
1609
|
intent: t = "primary",
|
|
@@ -1559,28 +1624,28 @@ const ar = ({
|
|
|
1559
1624
|
onMouseUp: k,
|
|
1560
1625
|
...x
|
|
1561
1626
|
}, v) => {
|
|
1562
|
-
const C = r || "button", [N, p] =
|
|
1627
|
+
const C = r || "button", [N, p] = B(!1), [I, w] = B(!1), T = l || a, $ = sr({
|
|
1563
1628
|
variant: e,
|
|
1564
1629
|
intent: t,
|
|
1565
1630
|
size: o,
|
|
1566
1631
|
fullWidth: n,
|
|
1567
1632
|
isIconOnly: c
|
|
1568
1633
|
}), L = {
|
|
1569
|
-
|
|
1570
|
-
...N && !T ?
|
|
1571
|
-
...I && !T ?
|
|
1572
|
-
...T ?
|
|
1573
|
-
...a ?
|
|
1634
|
+
...$.base,
|
|
1635
|
+
...N && !T ? $.hover : {},
|
|
1636
|
+
...I && !T ? $.active : {},
|
|
1637
|
+
...T ? $.disabled : {},
|
|
1638
|
+
...a ? $.loading : {},
|
|
1574
1639
|
...m
|
|
1575
|
-
},
|
|
1576
|
-
p(!0), f == null || f(
|
|
1577
|
-
},
|
|
1578
|
-
p(!1), w(!1), g == null || g(
|
|
1579
|
-
},
|
|
1580
|
-
w(!0), b == null || b(
|
|
1581
|
-
},
|
|
1582
|
-
w(!1), k == null || k(
|
|
1583
|
-
},
|
|
1640
|
+
}, E = Ae[o], W = (_) => {
|
|
1641
|
+
p(!0), f == null || f(_);
|
|
1642
|
+
}, q = (_) => {
|
|
1643
|
+
p(!1), w(!1), g == null || g(_);
|
|
1644
|
+
}, P = (_) => {
|
|
1645
|
+
w(!0), b == null || b(_);
|
|
1646
|
+
}, H = (_) => {
|
|
1647
|
+
w(!1), k == null || k(_);
|
|
1648
|
+
}, R = M(
|
|
1584
1649
|
"brycks-button",
|
|
1585
1650
|
`brycks-button--${e}`,
|
|
1586
1651
|
`brycks-button--${t}`,
|
|
@@ -1590,7 +1655,7 @@ const ar = ({
|
|
|
1590
1655
|
a && "brycks-button--loading",
|
|
1591
1656
|
T && "brycks-button--disabled",
|
|
1592
1657
|
u
|
|
1593
|
-
),
|
|
1658
|
+
), J = C === "button" || r === void 0 ? {
|
|
1594
1659
|
type: x.type ?? "button",
|
|
1595
1660
|
disabled: T
|
|
1596
1661
|
} : {
|
|
@@ -1602,14 +1667,14 @@ const ar = ({
|
|
|
1602
1667
|
C,
|
|
1603
1668
|
{
|
|
1604
1669
|
ref: v,
|
|
1605
|
-
className:
|
|
1670
|
+
className: R,
|
|
1606
1671
|
style: L,
|
|
1607
1672
|
"data-testid": y,
|
|
1608
|
-
onMouseEnter:
|
|
1609
|
-
onMouseLeave:
|
|
1610
|
-
onMouseDown:
|
|
1611
|
-
onMouseUp:
|
|
1612
|
-
...
|
|
1673
|
+
onMouseEnter: W,
|
|
1674
|
+
onMouseLeave: q,
|
|
1675
|
+
onMouseDown: P,
|
|
1676
|
+
onMouseUp: H,
|
|
1677
|
+
...J,
|
|
1613
1678
|
...x,
|
|
1614
1679
|
children: [
|
|
1615
1680
|
a && /* @__PURE__ */ s(
|
|
@@ -1619,7 +1684,7 @@ const ar = ({
|
|
|
1619
1684
|
display: "inline-flex",
|
|
1620
1685
|
position: c ? "absolute" : "relative"
|
|
1621
1686
|
},
|
|
1622
|
-
children: /* @__PURE__ */ s(
|
|
1687
|
+
children: /* @__PURE__ */ s(ar, { size: E.iconSize })
|
|
1623
1688
|
}
|
|
1624
1689
|
),
|
|
1625
1690
|
!a && i && /* @__PURE__ */ s(
|
|
@@ -1627,8 +1692,8 @@ const ar = ({
|
|
|
1627
1692
|
{
|
|
1628
1693
|
style: {
|
|
1629
1694
|
display: "inline-flex",
|
|
1630
|
-
width:
|
|
1631
|
-
height:
|
|
1695
|
+
width: E.iconSize,
|
|
1696
|
+
height: E.iconSize
|
|
1632
1697
|
},
|
|
1633
1698
|
children: i
|
|
1634
1699
|
}
|
|
@@ -1647,8 +1712,8 @@ const ar = ({
|
|
|
1647
1712
|
{
|
|
1648
1713
|
style: {
|
|
1649
1714
|
display: "inline-flex",
|
|
1650
|
-
width:
|
|
1651
|
-
height:
|
|
1715
|
+
width: E.iconSize,
|
|
1716
|
+
height: E.iconSize
|
|
1652
1717
|
},
|
|
1653
1718
|
children: d
|
|
1654
1719
|
}
|
|
@@ -1657,18 +1722,18 @@ const ar = ({
|
|
|
1657
1722
|
]
|
|
1658
1723
|
}
|
|
1659
1724
|
);
|
|
1660
|
-
},
|
|
1661
|
-
|
|
1662
|
-
const
|
|
1663
|
-
|
|
1664
|
-
const
|
|
1725
|
+
}, je = z(ir);
|
|
1726
|
+
je.displayName = "Button";
|
|
1727
|
+
const lr = (r, e) => /* @__PURE__ */ s(je, { ref: e, isIconOnly: !0, ...r }), cr = z(lr);
|
|
1728
|
+
cr.displayName = "IconButton";
|
|
1729
|
+
const dr = {
|
|
1665
1730
|
xs: 12,
|
|
1666
1731
|
sm: 14,
|
|
1667
1732
|
md: 16,
|
|
1668
1733
|
lg: 20,
|
|
1669
1734
|
xl: 24,
|
|
1670
1735
|
"2xl": 32
|
|
1671
|
-
},
|
|
1736
|
+
}, ur = z(function({
|
|
1672
1737
|
size: e = "md",
|
|
1673
1738
|
customSize: t,
|
|
1674
1739
|
color: o,
|
|
@@ -1683,7 +1748,7 @@ const cr = {
|
|
|
1683
1748
|
children: h,
|
|
1684
1749
|
...y
|
|
1685
1750
|
}, f) {
|
|
1686
|
-
const g = t ??
|
|
1751
|
+
const g = t ?? dr[e], b = {
|
|
1687
1752
|
width: g,
|
|
1688
1753
|
height: g,
|
|
1689
1754
|
minWidth: g,
|
|
@@ -1711,8 +1776,8 @@ const cr = {
|
|
|
1711
1776
|
}
|
|
1712
1777
|
);
|
|
1713
1778
|
});
|
|
1714
|
-
|
|
1715
|
-
const
|
|
1779
|
+
ur.displayName = "Icon";
|
|
1780
|
+
const jn = {
|
|
1716
1781
|
close: "M18 6L6 18M6 6l12 12",
|
|
1717
1782
|
check: "M20 6L9 17l-5-5",
|
|
1718
1783
|
chevronDown: "M6 9l6 6 6-6",
|
|
@@ -1765,27 +1830,31 @@ const Nn = {
|
|
|
1765
1830
|
moon: "M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z",
|
|
1766
1831
|
grip: "M4 6a2 2 0 114 0 2 2 0 01-4 0zM10 6a2 2 0 114 0 2 2 0 01-4 0zM16 6a2 2 0 114 0 2 2 0 01-4 0zM4 12a2 2 0 114 0 2 2 0 01-4 0zM10 12a2 2 0 114 0 2 2 0 01-4 0zM16 12a2 2 0 114 0 2 2 0 01-4 0zM4 18a2 2 0 114 0 2 2 0 01-4 0zM10 18a2 2 0 114 0 2 2 0 01-4 0zM16 18a2 2 0 114 0 2 2 0 01-4 0z",
|
|
1767
1832
|
moreHorizontal: "M5 12h.01M12 12h.01M19 12h.01M6 12a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0z",
|
|
1768
|
-
moreVertical: "M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"
|
|
1769
|
-
|
|
1833
|
+
moreVertical: "M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z",
|
|
1834
|
+
layout: "M4 5a1 1 0 011-1h14a1 1 0 011 1v2a1 1 0 01-1 1H5a1 1 0 01-1-1V5zM4 13a1 1 0 011-1h6a1 1 0 011 1v6a1 1 0 01-1 1H5a1 1 0 01-1-1v-6zM16 13a1 1 0 011-1h2a1 1 0 011 1v6a1 1 0 01-1 1h-2a1 1 0 01-1-1v-6z",
|
|
1835
|
+
car: "M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9L18 10l-1.6-3.2c-.4-.8-1.2-1.3-2.1-1.3H9.7c-.9 0-1.7.5-2.1 1.3L6 10l-2.5 1.1C2.7 11.3 2 12.1 2 13v3c0 .6.4 1 1 1h2M7 17h10M7 17a2 2 0 11-4 0 2 2 0 014 0zm12 0a2 2 0 11-4 0 2 2 0 014 0z",
|
|
1836
|
+
page: "M4 4a2 2 0 012-2h8l6 6v12a2 2 0 01-2 2H6a2 2 0 01-2-2V4zm10 0v6h6",
|
|
1837
|
+
gridVertical: "M9 4a1 1 0 110 2 1 1 0 010-2zm6 0a1 1 0 110 2 1 1 0 010-2zm-6 5a1 1 0 110 2 1 1 0 010-2zm6 0a1 1 0 110 2 1 1 0 010-2zm-6 5a1 1 0 110 2 1 1 0 010-2zm6 0a1 1 0 110 2 1 1 0 010-2zm-6 5a1 1 0 110 2 1 1 0 010-2zm6 0a1 1 0 110 2 1 1 0 010-2z"
|
|
1838
|
+
}, yr = {
|
|
1770
1839
|
sm: {
|
|
1771
|
-
height:
|
|
1772
|
-
fontSize:
|
|
1773
|
-
paddingX:
|
|
1840
|
+
height: ce.sm,
|
|
1841
|
+
fontSize: K.sm,
|
|
1842
|
+
paddingX: de.sm,
|
|
1774
1843
|
radius: "var(--brycks-radius-md)"
|
|
1775
1844
|
},
|
|
1776
1845
|
md: {
|
|
1777
|
-
height:
|
|
1778
|
-
fontSize:
|
|
1779
|
-
paddingX:
|
|
1846
|
+
height: ce.md,
|
|
1847
|
+
fontSize: K.md,
|
|
1848
|
+
paddingX: de.md,
|
|
1780
1849
|
radius: "var(--brycks-radius-default)"
|
|
1781
1850
|
},
|
|
1782
1851
|
lg: {
|
|
1783
|
-
height:
|
|
1784
|
-
fontSize:
|
|
1785
|
-
paddingX:
|
|
1852
|
+
height: ce.lg,
|
|
1853
|
+
fontSize: K.lg,
|
|
1854
|
+
paddingX: de.lg,
|
|
1786
1855
|
radius: "var(--brycks-radius-lg)"
|
|
1787
1856
|
}
|
|
1788
|
-
},
|
|
1857
|
+
}, Ve = z(function({
|
|
1789
1858
|
size: e = "md",
|
|
1790
1859
|
variant: t = "outline",
|
|
1791
1860
|
isInvalid: o,
|
|
@@ -1799,7 +1868,7 @@ const Nn = {
|
|
|
1799
1868
|
onBlur: m,
|
|
1800
1869
|
...h
|
|
1801
1870
|
}, y) {
|
|
1802
|
-
const [f, g] =
|
|
1871
|
+
const [f, g] = B(!1), b = yr[e], k = () => {
|
|
1803
1872
|
const p = {
|
|
1804
1873
|
display: "flex",
|
|
1805
1874
|
alignItems: "center",
|
|
@@ -1807,14 +1876,14 @@ const Nn = {
|
|
|
1807
1876
|
position: "relative",
|
|
1808
1877
|
height: b.height,
|
|
1809
1878
|
borderRadius: b.radius,
|
|
1810
|
-
transition:
|
|
1879
|
+
transition: he.default
|
|
1811
1880
|
};
|
|
1812
1881
|
switch (t) {
|
|
1813
1882
|
case "outline":
|
|
1814
1883
|
Object.assign(p, {
|
|
1815
1884
|
backgroundColor: "var(--brycks-background-app)",
|
|
1816
1885
|
border: `1px solid ${o ? "var(--brycks-error-default)" : f ? "var(--brycks-border-focus)" : "var(--brycks-border-default)"}`,
|
|
1817
|
-
boxShadow: f ? o ?
|
|
1886
|
+
boxShadow: f ? o ? ue.error : ue.default : ue.none
|
|
1818
1887
|
});
|
|
1819
1888
|
break;
|
|
1820
1889
|
case "filled":
|
|
@@ -1833,7 +1902,7 @@ const Nn = {
|
|
|
1833
1902
|
break;
|
|
1834
1903
|
}
|
|
1835
1904
|
return c && Object.assign(p, {
|
|
1836
|
-
opacity:
|
|
1905
|
+
opacity: Ie.disabled,
|
|
1837
1906
|
cursor: "not-allowed"
|
|
1838
1907
|
}), p;
|
|
1839
1908
|
}, x = {
|
|
@@ -1849,7 +1918,7 @@ const Nn = {
|
|
|
1849
1918
|
paddingLeft: n ? ae.md : b.paddingX,
|
|
1850
1919
|
paddingRight: a ? ae.md : b.paddingX,
|
|
1851
1920
|
cursor: c ? "not-allowed" : "text",
|
|
1852
|
-
transition:
|
|
1921
|
+
transition: he.default
|
|
1853
1922
|
}, v = (p) => {
|
|
1854
1923
|
g(!0), u == null || u(p);
|
|
1855
1924
|
}, C = (p) => {
|
|
@@ -1908,8 +1977,8 @@ const Nn = {
|
|
|
1908
1977
|
}
|
|
1909
1978
|
);
|
|
1910
1979
|
});
|
|
1911
|
-
|
|
1912
|
-
const
|
|
1980
|
+
Ve.displayName = "Input";
|
|
1981
|
+
const fr = z(function({
|
|
1913
1982
|
label: e,
|
|
1914
1983
|
helperText: t,
|
|
1915
1984
|
errorMessage: o,
|
|
@@ -1921,7 +1990,7 @@ const yr = z(function({
|
|
|
1921
1990
|
testId: c,
|
|
1922
1991
|
...u
|
|
1923
1992
|
}, m) {
|
|
1924
|
-
const h =
|
|
1993
|
+
const h = st(), y = i ?? h, f = `${y}-helper`, g = `${y}-error`, b = !!o || l, k = [b && g, t && f].filter(Boolean).join(" "), x = {
|
|
1925
1994
|
display: "block",
|
|
1926
1995
|
marginBottom: 6,
|
|
1927
1996
|
fontSize: 13,
|
|
@@ -1973,7 +2042,7 @@ const yr = z(function({
|
|
|
1973
2042
|
)
|
|
1974
2043
|
] }),
|
|
1975
2044
|
/* @__PURE__ */ s(
|
|
1976
|
-
|
|
2045
|
+
Ve,
|
|
1977
2046
|
{
|
|
1978
2047
|
ref: m,
|
|
1979
2048
|
id: y,
|
|
@@ -1989,13 +2058,13 @@ const yr = z(function({
|
|
|
1989
2058
|
}
|
|
1990
2059
|
);
|
|
1991
2060
|
});
|
|
1992
|
-
|
|
1993
|
-
const
|
|
2061
|
+
fr.displayName = "TextField";
|
|
2062
|
+
const br = {
|
|
1994
2063
|
sm: { height: 32, fontSize: 13, padding: 10 },
|
|
1995
2064
|
md: { height: 40, fontSize: 14, padding: 12 },
|
|
1996
2065
|
lg: { height: 48, fontSize: 15, padding: 14 }
|
|
1997
2066
|
};
|
|
1998
|
-
function
|
|
2067
|
+
function mr() {
|
|
1999
2068
|
return /* @__PURE__ */ s("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ s(
|
|
2000
2069
|
"path",
|
|
2001
2070
|
{
|
|
@@ -2007,7 +2076,7 @@ function br() {
|
|
|
2007
2076
|
}
|
|
2008
2077
|
) });
|
|
2009
2078
|
}
|
|
2010
|
-
const
|
|
2079
|
+
const gr = z(function({
|
|
2011
2080
|
size: e = "md",
|
|
2012
2081
|
variant: t = "outline",
|
|
2013
2082
|
isInvalid: o,
|
|
@@ -2022,7 +2091,7 @@ const mr = z(function({
|
|
|
2022
2091
|
value: h,
|
|
2023
2092
|
...y
|
|
2024
2093
|
}, f) {
|
|
2025
|
-
const [g, b] =
|
|
2094
|
+
const [g, b] = B(!1), k = br[e], x = h !== void 0 && h !== "", v = {
|
|
2026
2095
|
position: "relative",
|
|
2027
2096
|
display: "inline-flex",
|
|
2028
2097
|
width: "100%"
|
|
@@ -2091,13 +2160,13 @@ const mr = z(function({
|
|
|
2091
2160
|
]
|
|
2092
2161
|
}
|
|
2093
2162
|
),
|
|
2094
|
-
/* @__PURE__ */ s("span", { style: N, children: /* @__PURE__ */ s(
|
|
2163
|
+
/* @__PURE__ */ s("span", { style: N, children: /* @__PURE__ */ s(mr, {}) })
|
|
2095
2164
|
]
|
|
2096
2165
|
}
|
|
2097
2166
|
);
|
|
2098
2167
|
});
|
|
2099
|
-
|
|
2100
|
-
function
|
|
2168
|
+
gr.displayName = "Select";
|
|
2169
|
+
function hr({ size: r }) {
|
|
2101
2170
|
return /* @__PURE__ */ s("svg", { width: r, height: r, viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ s(
|
|
2102
2171
|
"path",
|
|
2103
2172
|
{
|
|
@@ -2109,7 +2178,7 @@ function gr({ size: r }) {
|
|
|
2109
2178
|
}
|
|
2110
2179
|
) });
|
|
2111
2180
|
}
|
|
2112
|
-
function
|
|
2181
|
+
function pr({ size: r }) {
|
|
2113
2182
|
return /* @__PURE__ */ s("svg", { width: r, height: r, viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ s(
|
|
2114
2183
|
"path",
|
|
2115
2184
|
{
|
|
@@ -2120,7 +2189,7 @@ function hr({ size: r }) {
|
|
|
2120
2189
|
}
|
|
2121
2190
|
) });
|
|
2122
2191
|
}
|
|
2123
|
-
const
|
|
2192
|
+
const kr = z(function({
|
|
2124
2193
|
size: e = "md",
|
|
2125
2194
|
label: t,
|
|
2126
2195
|
description: o,
|
|
@@ -2134,12 +2203,12 @@ const pr = z(function({
|
|
|
2134
2203
|
onChange: m,
|
|
2135
2204
|
...h
|
|
2136
2205
|
}, y) {
|
|
2137
|
-
const [f, g] =
|
|
2206
|
+
const [f, g] = B(!1), [b, k] = B(!1), [x, v] = B(!1), C = ct[e], N = K[e], p = u || a, I = {
|
|
2138
2207
|
display: "inline-flex",
|
|
2139
2208
|
alignItems: "flex-start",
|
|
2140
2209
|
gap: ae.lg,
|
|
2141
2210
|
cursor: c ? "not-allowed" : "pointer",
|
|
2142
|
-
opacity: c ?
|
|
2211
|
+
opacity: c ? Ie.disabled : 1
|
|
2143
2212
|
}, w = {
|
|
2144
2213
|
position: "relative",
|
|
2145
2214
|
width: C.box,
|
|
@@ -2147,9 +2216,9 @@ const pr = z(function({
|
|
|
2147
2216
|
borderRadius: "var(--brycks-radius-sm)",
|
|
2148
2217
|
border: `1.5px solid ${n ? "var(--brycks-error-default)" : p ? "var(--brycks-primary-default)" : f ? "var(--brycks-border-focus)" : "var(--brycks-border-default)"}`,
|
|
2149
2218
|
backgroundColor: p ? "var(--brycks-primary-default)" : b ? "var(--brycks-background-subtle)" : "var(--brycks-background-app)",
|
|
2150
|
-
transition:
|
|
2151
|
-
transform: x ? `scale(${
|
|
2152
|
-
boxShadow: f ?
|
|
2219
|
+
transition: he.quick,
|
|
2220
|
+
transform: x ? `scale(${ge.controlPressed})` : `scale(${ge.normal})`,
|
|
2221
|
+
boxShadow: f ? ue.default : ue.none,
|
|
2153
2222
|
display: "flex",
|
|
2154
2223
|
alignItems: "center",
|
|
2155
2224
|
justifyContent: "center",
|
|
@@ -2157,9 +2226,9 @@ const pr = z(function({
|
|
|
2157
2226
|
}, T = {
|
|
2158
2227
|
color: "var(--brycks-primary-foreground)",
|
|
2159
2228
|
opacity: p ? 1 : 0,
|
|
2160
|
-
transform: p ? `scale(${
|
|
2161
|
-
transition:
|
|
2162
|
-
},
|
|
2229
|
+
transform: p ? `scale(${ge.normal})` : `scale(${ge.hidden})`,
|
|
2230
|
+
transition: he.quick
|
|
2231
|
+
}, $ = {
|
|
2163
2232
|
position: "absolute",
|
|
2164
2233
|
width: "100%",
|
|
2165
2234
|
height: "100%",
|
|
@@ -2171,12 +2240,12 @@ const pr = z(function({
|
|
|
2171
2240
|
flexDirection: "column",
|
|
2172
2241
|
gap: ae.xs,
|
|
2173
2242
|
paddingTop: (C.box - N) / 2
|
|
2174
|
-
},
|
|
2243
|
+
}, E = {
|
|
2175
2244
|
fontSize: N,
|
|
2176
2245
|
lineHeight: U.snug,
|
|
2177
2246
|
color: "var(--brycks-foreground-default)",
|
|
2178
2247
|
userSelect: "none"
|
|
2179
|
-
},
|
|
2248
|
+
}, W = {
|
|
2180
2249
|
fontSize: N - 1,
|
|
2181
2250
|
lineHeight: U.snug,
|
|
2182
2251
|
color: "var(--brycks-foreground-muted)",
|
|
@@ -2208,7 +2277,7 @@ const pr = z(function({
|
|
|
2208
2277
|
{
|
|
2209
2278
|
ref: y,
|
|
2210
2279
|
type: "checkbox",
|
|
2211
|
-
style:
|
|
2280
|
+
style: $,
|
|
2212
2281
|
checked: u,
|
|
2213
2282
|
disabled: c,
|
|
2214
2283
|
"aria-invalid": n,
|
|
@@ -2218,18 +2287,18 @@ const pr = z(function({
|
|
|
2218
2287
|
...h
|
|
2219
2288
|
}
|
|
2220
2289
|
),
|
|
2221
|
-
/* @__PURE__ */ s("span", { style: T, children: a ? /* @__PURE__ */ s(
|
|
2290
|
+
/* @__PURE__ */ s("span", { style: T, children: a ? /* @__PURE__ */ s(pr, { size: C.icon }) : /* @__PURE__ */ s(hr, { size: C.icon }) })
|
|
2222
2291
|
] }),
|
|
2223
2292
|
(t || o) && /* @__PURE__ */ S("span", { style: L, children: [
|
|
2224
|
-
t && /* @__PURE__ */ s("span", { style:
|
|
2225
|
-
o && /* @__PURE__ */ s("span", { style:
|
|
2293
|
+
t && /* @__PURE__ */ s("span", { style: E, children: t }),
|
|
2294
|
+
o && /* @__PURE__ */ s("span", { style: W, children: o })
|
|
2226
2295
|
] })
|
|
2227
2296
|
]
|
|
2228
2297
|
}
|
|
2229
2298
|
);
|
|
2230
2299
|
});
|
|
2231
|
-
|
|
2232
|
-
const
|
|
2300
|
+
kr.displayName = "Checkbox";
|
|
2301
|
+
const vr = z(function({
|
|
2233
2302
|
size: e = "md",
|
|
2234
2303
|
label: t,
|
|
2235
2304
|
description: o,
|
|
@@ -2241,12 +2310,12 @@ const kr = z(function({
|
|
|
2241
2310
|
onChange: c,
|
|
2242
2311
|
...u
|
|
2243
2312
|
}, m) {
|
|
2244
|
-
const [h, y] =
|
|
2313
|
+
const [h, y] = B(!1), [f, g] = B(!1), b = dt[e], k = K[e], x = (b.height - b.thumb) / 2, v = b.width - b.thumb - x * 2, C = {
|
|
2245
2314
|
display: "inline-flex",
|
|
2246
2315
|
alignItems: "flex-start",
|
|
2247
2316
|
gap: ae.xl,
|
|
2248
2317
|
cursor: i ? "not-allowed" : "pointer",
|
|
2249
|
-
opacity: i ?
|
|
2318
|
+
opacity: i ? Ie.disabled : 1
|
|
2250
2319
|
}, N = {
|
|
2251
2320
|
position: "relative",
|
|
2252
2321
|
width: b.width,
|
|
@@ -2254,8 +2323,8 @@ const kr = z(function({
|
|
|
2254
2323
|
borderRadius: b.height / 2,
|
|
2255
2324
|
backgroundColor: d ? "var(--brycks-primary-default)" : "var(--brycks-background-muted)",
|
|
2256
2325
|
border: `1px solid ${d ? "var(--brycks-primary-default)" : "var(--brycks-border-default)"}`,
|
|
2257
|
-
transition:
|
|
2258
|
-
boxShadow: h ?
|
|
2326
|
+
transition: he.spring,
|
|
2327
|
+
boxShadow: h ? ue.default : "inset 0 1px 2px rgba(0,0,0,0.05)",
|
|
2259
2328
|
flexShrink: 0
|
|
2260
2329
|
}, p = {
|
|
2261
2330
|
position: "absolute",
|
|
@@ -2266,8 +2335,8 @@ const kr = z(function({
|
|
|
2266
2335
|
borderRadius: b.thumb / 2,
|
|
2267
2336
|
backgroundColor: "var(--brycks-background-elevated)",
|
|
2268
2337
|
boxShadow: "var(--brycks-shadow-sm)",
|
|
2269
|
-
transition:
|
|
2270
|
-
transform: f ? `scale(${
|
|
2338
|
+
transition: he.spring,
|
|
2339
|
+
transform: f ? `scale(${ge.pressedStrong})` : `scale(${ge.normal})`
|
|
2271
2340
|
}, I = {
|
|
2272
2341
|
position: "absolute",
|
|
2273
2342
|
width: "100%",
|
|
@@ -2285,7 +2354,7 @@ const kr = z(function({
|
|
|
2285
2354
|
lineHeight: U.snug,
|
|
2286
2355
|
color: "var(--brycks-foreground-default)",
|
|
2287
2356
|
userSelect: "none"
|
|
2288
|
-
},
|
|
2357
|
+
}, $ = {
|
|
2289
2358
|
fontSize: k - 1,
|
|
2290
2359
|
lineHeight: U.snug,
|
|
2291
2360
|
color: "var(--brycks-foreground-muted)",
|
|
@@ -2328,18 +2397,18 @@ const kr = z(function({
|
|
|
2328
2397
|
] }),
|
|
2329
2398
|
(t || o) && /* @__PURE__ */ S("span", { style: w, children: [
|
|
2330
2399
|
t && /* @__PURE__ */ s("span", { style: T, children: t }),
|
|
2331
|
-
o && /* @__PURE__ */ s("span", { style:
|
|
2400
|
+
o && /* @__PURE__ */ s("span", { style: $, children: o })
|
|
2332
2401
|
] })
|
|
2333
2402
|
]
|
|
2334
2403
|
}
|
|
2335
2404
|
);
|
|
2336
2405
|
});
|
|
2337
|
-
|
|
2338
|
-
const
|
|
2406
|
+
vr.displayName = "Switch";
|
|
2407
|
+
const xr = {
|
|
2339
2408
|
sm: { fontSize: 13, padding: 10, lineHeight: 1.5 },
|
|
2340
2409
|
md: { fontSize: 14, padding: 12, lineHeight: 1.5 },
|
|
2341
2410
|
lg: { fontSize: 15, padding: 14, lineHeight: 1.5 }
|
|
2342
|
-
},
|
|
2411
|
+
}, Sr = z(function({
|
|
2343
2412
|
size: e = "md",
|
|
2344
2413
|
variant: t = "outline",
|
|
2345
2414
|
isInvalid: o,
|
|
@@ -2359,27 +2428,27 @@ const vr = {
|
|
|
2359
2428
|
onBlur: k,
|
|
2360
2429
|
...x
|
|
2361
2430
|
}, v) {
|
|
2362
|
-
const [C, N] =
|
|
2363
|
-
const
|
|
2364
|
-
if (!
|
|
2365
|
-
|
|
2366
|
-
const
|
|
2367
|
-
|
|
2368
|
-
}, [n,
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
}, [y,
|
|
2372
|
-
const
|
|
2373
|
-
I(
|
|
2431
|
+
const [C, N] = B(!1), [p, I] = B(0), w = Q(null), T = v || w, $ = xr[e], L = $.fontSize * $.lineHeight, E = L * a + $.padding * 2, W = L * l + $.padding * 2, q = j(() => {
|
|
2432
|
+
const F = T.current;
|
|
2433
|
+
if (!F || !n) return;
|
|
2434
|
+
F.style.height = "auto";
|
|
2435
|
+
const V = F.scrollHeight, ee = Math.min(Math.max(V, E), W);
|
|
2436
|
+
F.style.height = `${ee}px`;
|
|
2437
|
+
}, [n, E, W, T]);
|
|
2438
|
+
X(() => {
|
|
2439
|
+
q();
|
|
2440
|
+
}, [y, q]), X(() => {
|
|
2441
|
+
const F = String(y ?? f ?? "");
|
|
2442
|
+
I(F.length);
|
|
2374
2443
|
}, [y, f]);
|
|
2375
|
-
const
|
|
2376
|
-
const
|
|
2444
|
+
const P = () => {
|
|
2445
|
+
const F = {
|
|
2377
2446
|
width: "100%",
|
|
2378
|
-
minHeight:
|
|
2379
|
-
maxHeight: n ?
|
|
2380
|
-
padding:
|
|
2381
|
-
fontSize:
|
|
2382
|
-
lineHeight:
|
|
2447
|
+
minHeight: E,
|
|
2448
|
+
maxHeight: n ? W : void 0,
|
|
2449
|
+
padding: $.padding,
|
|
2450
|
+
fontSize: $.fontSize,
|
|
2451
|
+
lineHeight: $.lineHeight,
|
|
2383
2452
|
fontFamily: "var(--brycks-font-sans)",
|
|
2384
2453
|
color: "var(--brycks-foreground-default)",
|
|
2385
2454
|
backgroundColor: t === "filled" ? "var(--brycks-background-muted)" : "var(--brycks-background-app)",
|
|
@@ -2390,11 +2459,11 @@ const vr = {
|
|
|
2390
2459
|
transition: "all 200ms ease-out",
|
|
2391
2460
|
boxShadow: C ? o ? "0 0 0 3px rgba(239, 68, 68, 0.15)" : "0 0 0 3px rgba(85, 120, 244, 0.15)" : "none"
|
|
2392
2461
|
};
|
|
2393
|
-
return h && (
|
|
2394
|
-
},
|
|
2462
|
+
return h && (F.opacity = 0.5, F.cursor = "not-allowed", F.resize = "none"), F;
|
|
2463
|
+
}, H = {
|
|
2395
2464
|
position: "relative",
|
|
2396
2465
|
width: "100%"
|
|
2397
|
-
},
|
|
2466
|
+
}, R = {
|
|
2398
2467
|
position: "absolute",
|
|
2399
2468
|
bottom: 8,
|
|
2400
2469
|
right: 12,
|
|
@@ -2402,12 +2471,12 @@ const vr = {
|
|
|
2402
2471
|
color: p >= (d ?? 1 / 0) ? "var(--brycks-error-default)" : "var(--brycks-foreground-muted)",
|
|
2403
2472
|
pointerEvents: "none",
|
|
2404
2473
|
transition: "color 150ms ease-out"
|
|
2405
|
-
},
|
|
2406
|
-
I(
|
|
2407
|
-
},
|
|
2408
|
-
N(!0), b == null || b(
|
|
2409
|
-
},
|
|
2410
|
-
N(!1), k == null || k(
|
|
2474
|
+
}, A = (F) => {
|
|
2475
|
+
I(F.target.value.length), g == null || g(F);
|
|
2476
|
+
}, J = (F) => {
|
|
2477
|
+
N(!0), b == null || b(F);
|
|
2478
|
+
}, _ = (F) => {
|
|
2479
|
+
N(!1), k == null || k(F);
|
|
2411
2480
|
};
|
|
2412
2481
|
return /* @__PURE__ */ S(
|
|
2413
2482
|
"div",
|
|
@@ -2420,27 +2489,27 @@ const vr = {
|
|
|
2420
2489
|
h && "brycks-textarea-wrapper--disabled",
|
|
2421
2490
|
c
|
|
2422
2491
|
),
|
|
2423
|
-
style: { ...
|
|
2492
|
+
style: { ...H, ...u },
|
|
2424
2493
|
children: [
|
|
2425
2494
|
/* @__PURE__ */ s(
|
|
2426
2495
|
"textarea",
|
|
2427
2496
|
{
|
|
2428
2497
|
ref: T,
|
|
2429
2498
|
className: "brycks-textarea",
|
|
2430
|
-
style:
|
|
2499
|
+
style: P(),
|
|
2431
2500
|
disabled: h,
|
|
2432
2501
|
"aria-invalid": o,
|
|
2433
2502
|
"data-testid": m,
|
|
2434
2503
|
value: y,
|
|
2435
2504
|
defaultValue: f,
|
|
2436
2505
|
maxLength: d,
|
|
2437
|
-
onChange:
|
|
2438
|
-
onFocus:
|
|
2439
|
-
onBlur:
|
|
2506
|
+
onChange: A,
|
|
2507
|
+
onFocus: J,
|
|
2508
|
+
onBlur: _,
|
|
2440
2509
|
...x
|
|
2441
2510
|
}
|
|
2442
2511
|
),
|
|
2443
|
-
i && /* @__PURE__ */ S("span", { style:
|
|
2512
|
+
i && /* @__PURE__ */ S("span", { style: R, children: [
|
|
2444
2513
|
p,
|
|
2445
2514
|
d ? `/${d}` : ""
|
|
2446
2515
|
] })
|
|
@@ -2448,12 +2517,12 @@ const vr = {
|
|
|
2448
2517
|
}
|
|
2449
2518
|
);
|
|
2450
2519
|
});
|
|
2451
|
-
|
|
2452
|
-
const
|
|
2520
|
+
Sr.displayName = "Textarea";
|
|
2521
|
+
const wr = {
|
|
2453
2522
|
sm: { radio: 16, dot: 6, fontSize: 13, gap: 8 },
|
|
2454
2523
|
md: { radio: 20, dot: 8, fontSize: 14, gap: 10 },
|
|
2455
2524
|
lg: { radio: 24, dot: 10, fontSize: 16, gap: 12 }
|
|
2456
|
-
},
|
|
2525
|
+
}, Cr = z(function({
|
|
2457
2526
|
size: e = "md",
|
|
2458
2527
|
label: t,
|
|
2459
2528
|
description: o,
|
|
@@ -2465,7 +2534,7 @@ const Sr = {
|
|
|
2465
2534
|
checked: c,
|
|
2466
2535
|
...u
|
|
2467
2536
|
}, m) {
|
|
2468
|
-
const [h, y] =
|
|
2537
|
+
const [h, y] = B(!1), [f, g] = B(!1), b = wr[e], k = {
|
|
2469
2538
|
display: "inline-flex",
|
|
2470
2539
|
alignItems: "flex-start",
|
|
2471
2540
|
gap: b.gap,
|
|
@@ -2552,8 +2621,8 @@ const Sr = {
|
|
|
2552
2621
|
}
|
|
2553
2622
|
);
|
|
2554
2623
|
});
|
|
2555
|
-
|
|
2556
|
-
function
|
|
2624
|
+
Cr.displayName = "Radio";
|
|
2625
|
+
function zr({
|
|
2557
2626
|
name: r,
|
|
2558
2627
|
value: e,
|
|
2559
2628
|
defaultValue: t,
|
|
@@ -2566,7 +2635,7 @@ function Cr({
|
|
|
2566
2635
|
className: c,
|
|
2567
2636
|
style: u
|
|
2568
2637
|
}) {
|
|
2569
|
-
const [m, h] =
|
|
2638
|
+
const [m, h] = B(t ?? ""), y = e ?? m, f = (k) => {
|
|
2570
2639
|
e === void 0 && h(k), o == null || o(k);
|
|
2571
2640
|
}, g = {
|
|
2572
2641
|
display: "flex",
|
|
@@ -2602,12 +2671,12 @@ function Cr({
|
|
|
2602
2671
|
}
|
|
2603
2672
|
);
|
|
2604
2673
|
}
|
|
2605
|
-
|
|
2606
|
-
const
|
|
2674
|
+
zr.displayName = "RadioGroup";
|
|
2675
|
+
const Mr = {
|
|
2607
2676
|
sm: { track: 4, thumb: 14, fontSize: 12 },
|
|
2608
2677
|
md: { track: 6, thumb: 18, fontSize: 14 },
|
|
2609
2678
|
lg: { track: 8, thumb: 22, fontSize: 16 }
|
|
2610
|
-
},
|
|
2679
|
+
}, Ir = z(function({
|
|
2611
2680
|
size: e = "md",
|
|
2612
2681
|
min: t = 0,
|
|
2613
2682
|
max: o = 100,
|
|
@@ -2624,65 +2693,65 @@ const zr = {
|
|
|
2624
2693
|
testId: f,
|
|
2625
2694
|
...g
|
|
2626
2695
|
}, b) {
|
|
2627
|
-
const [k, x] =
|
|
2628
|
-
(
|
|
2629
|
-
const
|
|
2630
|
-
a === void 0 && x(
|
|
2696
|
+
const [k, x] = B(l), [v, C] = B(!1), [N, p] = B(!1), I = Q(null), w = a ?? k, T = Mr[e], $ = (w - t) / (o - t) * 100, L = j(
|
|
2697
|
+
(F) => {
|
|
2698
|
+
const V = Math.max(t, Math.min(o, F));
|
|
2699
|
+
a === void 0 && x(V), i == null || i(V);
|
|
2631
2700
|
},
|
|
2632
2701
|
[a, t, o, i]
|
|
2633
2702
|
);
|
|
2634
|
-
|
|
2635
|
-
const
|
|
2636
|
-
if (!
|
|
2637
|
-
const
|
|
2638
|
-
const
|
|
2639
|
-
L(parseFloat(
|
|
2703
|
+
X(() => {
|
|
2704
|
+
const F = I.current;
|
|
2705
|
+
if (!F) return;
|
|
2706
|
+
const V = (ee) => {
|
|
2707
|
+
const ke = ee.target;
|
|
2708
|
+
L(parseFloat(ke.value));
|
|
2640
2709
|
};
|
|
2641
|
-
return
|
|
2710
|
+
return F.addEventListener("input", V), () => F.removeEventListener("input", V);
|
|
2642
2711
|
}, [L]);
|
|
2643
|
-
const
|
|
2712
|
+
const E = {
|
|
2644
2713
|
display: "flex",
|
|
2645
2714
|
flexDirection: "column",
|
|
2646
2715
|
gap: 8,
|
|
2647
2716
|
opacity: m ? 0.5 : 1,
|
|
2648
2717
|
...y
|
|
2649
|
-
},
|
|
2718
|
+
}, W = {
|
|
2650
2719
|
display: "flex",
|
|
2651
2720
|
alignItems: "center",
|
|
2652
2721
|
justifyContent: "space-between",
|
|
2653
2722
|
gap: 12
|
|
2654
|
-
},
|
|
2723
|
+
}, q = {
|
|
2655
2724
|
fontSize: T.fontSize,
|
|
2656
2725
|
fontWeight: 500,
|
|
2657
2726
|
color: "var(--brycks-foreground-default)"
|
|
2658
|
-
},
|
|
2727
|
+
}, P = {
|
|
2659
2728
|
fontSize: T.fontSize,
|
|
2660
2729
|
fontWeight: 500,
|
|
2661
2730
|
color: "var(--brycks-foreground-muted)",
|
|
2662
2731
|
fontVariantNumeric: "tabular-nums"
|
|
2663
|
-
},
|
|
2732
|
+
}, H = {
|
|
2664
2733
|
position: "relative",
|
|
2665
2734
|
display: "flex",
|
|
2666
2735
|
alignItems: "center",
|
|
2667
2736
|
height: T.thumb,
|
|
2668
2737
|
cursor: m ? "not-allowed" : "pointer"
|
|
2669
|
-
},
|
|
2738
|
+
}, R = {
|
|
2670
2739
|
position: "absolute",
|
|
2671
2740
|
width: "100%",
|
|
2672
2741
|
height: T.track,
|
|
2673
2742
|
borderRadius: T.track / 2,
|
|
2674
2743
|
backgroundColor: "var(--brycks-background-muted)"
|
|
2675
|
-
},
|
|
2744
|
+
}, A = {
|
|
2676
2745
|
position: "absolute",
|
|
2677
2746
|
left: 0,
|
|
2678
2747
|
height: T.track,
|
|
2679
|
-
width: `${
|
|
2748
|
+
width: `${$}%`,
|
|
2680
2749
|
borderRadius: T.track / 2,
|
|
2681
2750
|
backgroundColor: m ? "var(--brycks-foreground-muted)" : "var(--brycks-primary-default)",
|
|
2682
2751
|
transition: v ? "none" : "width 100ms ease-out"
|
|
2683
|
-
},
|
|
2752
|
+
}, J = {
|
|
2684
2753
|
position: "absolute",
|
|
2685
|
-
left: `calc(${
|
|
2754
|
+
left: `calc(${$}% - ${T.thumb / 2}px)`,
|
|
2686
2755
|
width: T.thumb,
|
|
2687
2756
|
height: T.thumb,
|
|
2688
2757
|
borderRadius: "50%",
|
|
@@ -2692,7 +2761,7 @@ const zr = {
|
|
|
2692
2761
|
transform: v ? "scale(1.1)" : "scale(1)",
|
|
2693
2762
|
transition: v ? "transform 100ms ease-out, box-shadow 100ms ease-out" : "all 100ms ease-out",
|
|
2694
2763
|
pointerEvents: "none"
|
|
2695
|
-
},
|
|
2764
|
+
}, _ = {
|
|
2696
2765
|
position: "absolute",
|
|
2697
2766
|
width: "100%",
|
|
2698
2767
|
height: T.thumb,
|
|
@@ -2701,26 +2770,26 @@ const zr = {
|
|
|
2701
2770
|
opacity: 0,
|
|
2702
2771
|
cursor: m ? "not-allowed" : "pointer"
|
|
2703
2772
|
};
|
|
2704
|
-
return /* @__PURE__ */ S("div", { className: M("brycks-slider", `brycks-slider--${e}`, h), style:
|
|
2705
|
-
(u || d) && /* @__PURE__ */ S("div", { style:
|
|
2706
|
-
u && /* @__PURE__ */ s("span", { style:
|
|
2707
|
-
d && /* @__PURE__ */ s("span", { style:
|
|
2773
|
+
return /* @__PURE__ */ S("div", { className: M("brycks-slider", `brycks-slider--${e}`, h), style: E, children: [
|
|
2774
|
+
(u || d) && /* @__PURE__ */ S("div", { style: W, children: [
|
|
2775
|
+
u && /* @__PURE__ */ s("span", { style: q, children: u }),
|
|
2776
|
+
d && /* @__PURE__ */ s("span", { style: P, children: c(w) })
|
|
2708
2777
|
] }),
|
|
2709
2778
|
/* @__PURE__ */ S(
|
|
2710
2779
|
"div",
|
|
2711
2780
|
{
|
|
2712
|
-
style:
|
|
2781
|
+
style: H,
|
|
2713
2782
|
onMouseEnter: () => p(!0),
|
|
2714
2783
|
onMouseLeave: () => p(!1),
|
|
2715
2784
|
children: [
|
|
2716
|
-
/* @__PURE__ */ s("div", { style:
|
|
2717
|
-
/* @__PURE__ */ s("div", { style:
|
|
2718
|
-
/* @__PURE__ */ s("div", { style:
|
|
2785
|
+
/* @__PURE__ */ s("div", { style: R }),
|
|
2786
|
+
/* @__PURE__ */ s("div", { style: A }),
|
|
2787
|
+
/* @__PURE__ */ s("div", { style: J }),
|
|
2719
2788
|
/* @__PURE__ */ s(
|
|
2720
2789
|
"input",
|
|
2721
2790
|
{
|
|
2722
|
-
ref: (
|
|
2723
|
-
I.current =
|
|
2791
|
+
ref: (F) => {
|
|
2792
|
+
I.current = F, typeof b == "function" ? b(F) : b && (b.current = F);
|
|
2724
2793
|
},
|
|
2725
2794
|
type: "range",
|
|
2726
2795
|
min: t,
|
|
@@ -2728,7 +2797,7 @@ const zr = {
|
|
|
2728
2797
|
step: n,
|
|
2729
2798
|
value: w,
|
|
2730
2799
|
disabled: m,
|
|
2731
|
-
style:
|
|
2800
|
+
style: _,
|
|
2732
2801
|
onMouseDown: () => C(!0),
|
|
2733
2802
|
onMouseUp: () => C(!1),
|
|
2734
2803
|
onTouchStart: () => C(!0),
|
|
@@ -2742,12 +2811,12 @@ const zr = {
|
|
|
2742
2811
|
)
|
|
2743
2812
|
] });
|
|
2744
2813
|
});
|
|
2745
|
-
|
|
2746
|
-
const
|
|
2814
|
+
Ir.displayName = "Slider";
|
|
2815
|
+
const Tr = {
|
|
2747
2816
|
sm: { height: 32, fontSize: 13, padding: 10, iconSize: 14 },
|
|
2748
2817
|
md: { height: 40, fontSize: 14, padding: 12, iconSize: 16 },
|
|
2749
2818
|
lg: { height: 48, fontSize: 16, padding: 14, iconSize: 18 }
|
|
2750
|
-
},
|
|
2819
|
+
}, Lr = z(function({
|
|
2751
2820
|
size: e = "md",
|
|
2752
2821
|
variant: t = "outline",
|
|
2753
2822
|
type: o = "date",
|
|
@@ -2762,7 +2831,7 @@ const Ir = {
|
|
|
2762
2831
|
testId: h,
|
|
2763
2832
|
...y
|
|
2764
2833
|
}, f) {
|
|
2765
|
-
const [g, b] =
|
|
2834
|
+
const [g, b] = B(!1), [k, x] = B(!1), v = Tr[e], C = i || !!l, N = {
|
|
2766
2835
|
display: "flex",
|
|
2767
2836
|
flexDirection: "column",
|
|
2768
2837
|
gap: 6,
|
|
@@ -2814,7 +2883,7 @@ const Ir = {
|
|
|
2814
2883
|
width: v.iconSize,
|
|
2815
2884
|
height: v.iconSize,
|
|
2816
2885
|
pointerEvents: "none"
|
|
2817
|
-
},
|
|
2886
|
+
}, $ = {
|
|
2818
2887
|
fontSize: v.fontSize - 2,
|
|
2819
2888
|
color: C ? "var(--brycks-error-default)" : "var(--brycks-foreground-muted)"
|
|
2820
2889
|
};
|
|
@@ -2849,21 +2918,21 @@ const Ir = {
|
|
|
2849
2918
|
]
|
|
2850
2919
|
}
|
|
2851
2920
|
),
|
|
2852
|
-
(a || l) && /* @__PURE__ */ s("span", { style:
|
|
2921
|
+
(a || l) && /* @__PURE__ */ s("span", { style: $, children: l || a })
|
|
2853
2922
|
]
|
|
2854
2923
|
}
|
|
2855
2924
|
);
|
|
2856
2925
|
});
|
|
2857
|
-
|
|
2858
|
-
const
|
|
2926
|
+
Lr.displayName = "DateInput";
|
|
2927
|
+
const Nr = {
|
|
2859
2928
|
sm: { height: 80, fontSize: 12, padding: 16, iconSize: 24 },
|
|
2860
2929
|
md: { height: 120, fontSize: 14, padding: 24, iconSize: 32 },
|
|
2861
2930
|
lg: { height: 160, fontSize: 16, padding: 32, iconSize: 40 }
|
|
2862
2931
|
};
|
|
2863
|
-
function
|
|
2932
|
+
function $r({ size: r }) {
|
|
2864
2933
|
return /* @__PURE__ */ s("svg", { width: r, height: r, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ s("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12" }) });
|
|
2865
2934
|
}
|
|
2866
|
-
const
|
|
2935
|
+
const Hr = z(function({
|
|
2867
2936
|
size: e = "md",
|
|
2868
2937
|
variant: t = "dropzone",
|
|
2869
2938
|
accept: o,
|
|
@@ -2881,46 +2950,46 @@ const $r = z(function({
|
|
|
2881
2950
|
testId: g,
|
|
2882
2951
|
...b
|
|
2883
2952
|
}, k) {
|
|
2884
|
-
const [x, v] =
|
|
2885
|
-
(
|
|
2886
|
-
if (!
|
|
2887
|
-
let
|
|
2888
|
-
a && (
|
|
2953
|
+
const [x, v] = B(!1), [C, N] = B(!1), p = Q(null), I = Nr[e], w = c || !!d, T = j(
|
|
2954
|
+
(O) => {
|
|
2955
|
+
if (!O || O.length === 0) return;
|
|
2956
|
+
let oe = Array.from(O);
|
|
2957
|
+
a && (oe = oe.filter((be) => be.size <= a)), !n && oe.length > 1 && (oe = [oe[0]]), u == null || u(oe);
|
|
2889
2958
|
},
|
|
2890
2959
|
[a, n, u]
|
|
2891
|
-
),
|
|
2892
|
-
|
|
2893
|
-
}, [h]), L =
|
|
2894
|
-
|
|
2895
|
-
}, []),
|
|
2896
|
-
(
|
|
2897
|
-
|
|
2960
|
+
), $ = j((O) => {
|
|
2961
|
+
O.preventDefault(), O.stopPropagation(), h || v(!0);
|
|
2962
|
+
}, [h]), L = j((O) => {
|
|
2963
|
+
O.preventDefault(), O.stopPropagation(), v(!1);
|
|
2964
|
+
}, []), E = j(
|
|
2965
|
+
(O) => {
|
|
2966
|
+
O.preventDefault(), O.stopPropagation(), v(!1), h || T(O.dataTransfer.files);
|
|
2898
2967
|
},
|
|
2899
2968
|
[h, T]
|
|
2900
|
-
),
|
|
2901
|
-
(
|
|
2902
|
-
T(
|
|
2969
|
+
), W = j(
|
|
2970
|
+
(O) => {
|
|
2971
|
+
T(O.target.files), p.current && (p.current.value = "");
|
|
2903
2972
|
},
|
|
2904
2973
|
[T]
|
|
2905
|
-
),
|
|
2906
|
-
var
|
|
2907
|
-
h || (
|
|
2908
|
-
}, [h]),
|
|
2909
|
-
(
|
|
2910
|
-
var
|
|
2911
|
-
(
|
|
2974
|
+
), q = j(() => {
|
|
2975
|
+
var O;
|
|
2976
|
+
h || (O = p.current) == null || O.click();
|
|
2977
|
+
}, [h]), P = j(
|
|
2978
|
+
(O) => {
|
|
2979
|
+
var oe;
|
|
2980
|
+
(O.key === "Enter" || O.key === " ") && !h && (O.preventDefault(), (oe = p.current) == null || oe.click());
|
|
2912
2981
|
},
|
|
2913
2982
|
[h]
|
|
2914
|
-
),
|
|
2983
|
+
), H = {
|
|
2915
2984
|
display: "flex",
|
|
2916
2985
|
flexDirection: "column",
|
|
2917
2986
|
gap: 6,
|
|
2918
2987
|
...f
|
|
2919
|
-
},
|
|
2988
|
+
}, R = {
|
|
2920
2989
|
fontSize: I.fontSize,
|
|
2921
2990
|
fontWeight: 500,
|
|
2922
2991
|
color: "var(--brycks-foreground-default)"
|
|
2923
|
-
},
|
|
2992
|
+
}, A = {
|
|
2924
2993
|
display: "flex",
|
|
2925
2994
|
flexDirection: "column",
|
|
2926
2995
|
alignItems: "center",
|
|
@@ -2935,74 +3004,74 @@ const $r = z(function({
|
|
|
2935
3004
|
opacity: h ? 0.5 : 1,
|
|
2936
3005
|
transition: "all 150ms ease-out",
|
|
2937
3006
|
outline: "none"
|
|
2938
|
-
},
|
|
3007
|
+
}, J = {
|
|
2939
3008
|
color: x ? "var(--brycks-primary-default)" : "var(--brycks-foreground-muted)",
|
|
2940
3009
|
transition: "color 150ms ease-out"
|
|
2941
|
-
},
|
|
3010
|
+
}, _ = {
|
|
2942
3011
|
display: "flex",
|
|
2943
3012
|
flexDirection: "column",
|
|
2944
3013
|
alignItems: "center",
|
|
2945
3014
|
gap: 4,
|
|
2946
3015
|
textAlign: "center"
|
|
2947
|
-
},
|
|
3016
|
+
}, F = {
|
|
2948
3017
|
fontSize: I.fontSize,
|
|
2949
3018
|
fontWeight: 500,
|
|
2950
3019
|
color: "var(--brycks-foreground-default)"
|
|
2951
|
-
},
|
|
3020
|
+
}, V = {
|
|
2952
3021
|
fontSize: I.fontSize - 2,
|
|
2953
3022
|
color: "var(--brycks-foreground-muted)"
|
|
2954
|
-
},
|
|
3023
|
+
}, ee = {
|
|
2955
3024
|
color: "var(--brycks-primary-default)",
|
|
2956
3025
|
fontWeight: 500
|
|
2957
|
-
},
|
|
3026
|
+
}, ke = {
|
|
2958
3027
|
fontSize: I.fontSize - 2,
|
|
2959
3028
|
color: "var(--brycks-error-default)"
|
|
2960
|
-
},
|
|
3029
|
+
}, se = n ? "Drag files here or click to browse" : "Drag a file here or click to browse";
|
|
2961
3030
|
return /* @__PURE__ */ S(
|
|
2962
3031
|
"div",
|
|
2963
3032
|
{
|
|
2964
3033
|
className: M("brycks-file-input", `brycks-file-input--${e}`, `brycks-file-input--${t}`, y),
|
|
2965
|
-
style:
|
|
3034
|
+
style: H,
|
|
2966
3035
|
children: [
|
|
2967
|
-
l && /* @__PURE__ */ s("label", { style:
|
|
3036
|
+
l && /* @__PURE__ */ s("label", { style: R, children: l }),
|
|
2968
3037
|
/* @__PURE__ */ S(
|
|
2969
3038
|
"div",
|
|
2970
3039
|
{
|
|
2971
|
-
style:
|
|
2972
|
-
onDragOver:
|
|
3040
|
+
style: A,
|
|
3041
|
+
onDragOver: $,
|
|
2973
3042
|
onDragLeave: L,
|
|
2974
|
-
onDrop:
|
|
2975
|
-
onClick:
|
|
2976
|
-
onKeyDown:
|
|
3043
|
+
onDrop: E,
|
|
3044
|
+
onClick: q,
|
|
3045
|
+
onKeyDown: P,
|
|
2977
3046
|
onFocus: () => N(!0),
|
|
2978
3047
|
onBlur: () => N(!1),
|
|
2979
3048
|
tabIndex: h ? -1 : 0,
|
|
2980
3049
|
role: "button",
|
|
2981
|
-
"aria-label": String(i) ||
|
|
3050
|
+
"aria-label": String(i) || se,
|
|
2982
3051
|
children: [
|
|
2983
|
-
/* @__PURE__ */ s("div", { style:
|
|
2984
|
-
/* @__PURE__ */ S("div", { style:
|
|
2985
|
-
/* @__PURE__ */ s("span", { style:
|
|
2986
|
-
/* @__PURE__ */ s("span", { style:
|
|
3052
|
+
/* @__PURE__ */ s("div", { style: J, children: m || /* @__PURE__ */ s($r, { size: I.iconSize }) }),
|
|
3053
|
+
/* @__PURE__ */ S("div", { style: _, children: [
|
|
3054
|
+
/* @__PURE__ */ s("span", { style: F, children: x ? "Drop files here" : /* @__PURE__ */ S(te, { children: [
|
|
3055
|
+
/* @__PURE__ */ s("span", { style: ee, children: "Click to browse" }),
|
|
2987
3056
|
" or drag files here"
|
|
2988
3057
|
] }) }),
|
|
2989
|
-
i && /* @__PURE__ */ s("span", { style:
|
|
3058
|
+
i && /* @__PURE__ */ s("span", { style: V, children: i })
|
|
2990
3059
|
] })
|
|
2991
3060
|
]
|
|
2992
3061
|
}
|
|
2993
3062
|
),
|
|
2994
|
-
d && /* @__PURE__ */ s("span", { style:
|
|
3063
|
+
d && /* @__PURE__ */ s("span", { style: ke, children: d }),
|
|
2995
3064
|
/* @__PURE__ */ s(
|
|
2996
3065
|
"input",
|
|
2997
3066
|
{
|
|
2998
|
-
ref: (
|
|
2999
|
-
p.current =
|
|
3067
|
+
ref: (O) => {
|
|
3068
|
+
p.current = O, typeof k == "function" ? k(O) : k && (k.current = O);
|
|
3000
3069
|
},
|
|
3001
3070
|
type: "file",
|
|
3002
3071
|
accept: o,
|
|
3003
3072
|
multiple: n,
|
|
3004
3073
|
disabled: h,
|
|
3005
|
-
onChange:
|
|
3074
|
+
onChange: W,
|
|
3006
3075
|
style: { display: "none" },
|
|
3007
3076
|
"data-testid": g,
|
|
3008
3077
|
...b
|
|
@@ -3012,28 +3081,28 @@ const $r = z(function({
|
|
|
3012
3081
|
}
|
|
3013
3082
|
);
|
|
3014
3083
|
});
|
|
3015
|
-
|
|
3084
|
+
Hr.displayName = "FileInput";
|
|
3016
3085
|
let Wr = 0;
|
|
3017
|
-
function
|
|
3086
|
+
function Me(r) {
|
|
3018
3087
|
return `${r}-${++Wr}`;
|
|
3019
3088
|
}
|
|
3020
|
-
function
|
|
3021
|
-
const [e, t] =
|
|
3022
|
-
return
|
|
3023
|
-
t(
|
|
3024
|
-
}, [r]), e ||
|
|
3089
|
+
function Dr(r = "brycks") {
|
|
3090
|
+
const [e, t] = B("");
|
|
3091
|
+
return X(() => {
|
|
3092
|
+
t(Me(r));
|
|
3093
|
+
}, [r]), e || Me(r);
|
|
3025
3094
|
}
|
|
3026
|
-
function
|
|
3027
|
-
const [t, o] =
|
|
3028
|
-
return
|
|
3029
|
-
o(Array.from({ length: r }, () =>
|
|
3030
|
-
}, [r, e]), t.length ? t : Array.from({ length: r }, () =>
|
|
3095
|
+
function Vn(r, e = "brycks") {
|
|
3096
|
+
const [t, o] = B([]);
|
|
3097
|
+
return X(() => {
|
|
3098
|
+
o(Array.from({ length: r }, () => Me(e)));
|
|
3099
|
+
}, [r, e]), t.length ? t : Array.from({ length: r }, () => Me(e));
|
|
3031
3100
|
}
|
|
3032
|
-
const
|
|
3101
|
+
const Br = {
|
|
3033
3102
|
sm: { labelSize: 12, helperSize: 11, gap: 4 },
|
|
3034
3103
|
md: { labelSize: 14, helperSize: 12, gap: 6 },
|
|
3035
3104
|
lg: { labelSize: 16, helperSize: 14, gap: 8 }
|
|
3036
|
-
},
|
|
3105
|
+
}, Er = z(function({
|
|
3037
3106
|
size: e = "md",
|
|
3038
3107
|
label: t,
|
|
3039
3108
|
required: o = !1,
|
|
@@ -3050,7 +3119,7 @@ const Dr = {
|
|
|
3050
3119
|
testId: f,
|
|
3051
3120
|
...g
|
|
3052
3121
|
}, b) {
|
|
3053
|
-
const k =
|
|
3122
|
+
const k = Dr("field"), x = d || k, v = `${x}-helper`, C = `${x}-error`, N = Br[e], p = l || !!a, I = {
|
|
3054
3123
|
display: "flex",
|
|
3055
3124
|
flexDirection: c === "horizontal" ? "row" : "column",
|
|
3056
3125
|
gap: c === "horizontal" ? 16 : N.gap,
|
|
@@ -3071,7 +3140,7 @@ const Dr = {
|
|
|
3071
3140
|
fontWeight: 500,
|
|
3072
3141
|
color: i ? "var(--brycks-foreground-muted)" : "var(--brycks-foreground-default)",
|
|
3073
3142
|
lineHeight: 1.4
|
|
3074
|
-
},
|
|
3143
|
+
}, $ = {
|
|
3075
3144
|
color: "var(--brycks-error-default)",
|
|
3076
3145
|
marginLeft: 2
|
|
3077
3146
|
}, L = {
|
|
@@ -3079,11 +3148,11 @@ const Dr = {
|
|
|
3079
3148
|
flexDirection: "column",
|
|
3080
3149
|
gap: N.gap,
|
|
3081
3150
|
flex: 1
|
|
3082
|
-
},
|
|
3151
|
+
}, E = {
|
|
3083
3152
|
fontSize: N.helperSize,
|
|
3084
3153
|
color: p ? "var(--brycks-error-default)" : "var(--brycks-foreground-muted)",
|
|
3085
3154
|
lineHeight: 1.4
|
|
3086
|
-
},
|
|
3155
|
+
}, W = {
|
|
3087
3156
|
id: x,
|
|
3088
3157
|
"aria-describedby": n || a ? a ? C : v : void 0,
|
|
3089
3158
|
"aria-invalid": p ? !0 : void 0
|
|
@@ -3099,15 +3168,15 @@ const Dr = {
|
|
|
3099
3168
|
children: [
|
|
3100
3169
|
t && /* @__PURE__ */ s("div", { style: w, children: /* @__PURE__ */ S("label", { htmlFor: x, style: T, children: [
|
|
3101
3170
|
t,
|
|
3102
|
-
o && /* @__PURE__ */ s("span", { style:
|
|
3171
|
+
o && /* @__PURE__ */ s("span", { style: $, "aria-hidden": "true", children: "*" })
|
|
3103
3172
|
] }) }),
|
|
3104
3173
|
/* @__PURE__ */ S("div", { style: L, children: [
|
|
3105
|
-
typeof y == "function" ? y(
|
|
3174
|
+
typeof y == "function" ? y(W) : y,
|
|
3106
3175
|
(n || a) && /* @__PURE__ */ s(
|
|
3107
3176
|
"span",
|
|
3108
3177
|
{
|
|
3109
3178
|
id: a ? C : v,
|
|
3110
|
-
style:
|
|
3179
|
+
style: E,
|
|
3111
3180
|
role: a ? "alert" : void 0,
|
|
3112
3181
|
children: a || n
|
|
3113
3182
|
}
|
|
@@ -3117,13 +3186,13 @@ const Dr = {
|
|
|
3117
3186
|
}
|
|
3118
3187
|
);
|
|
3119
3188
|
});
|
|
3120
|
-
|
|
3121
|
-
const
|
|
3189
|
+
Er.displayName = "FormField";
|
|
3190
|
+
const Rr = {
|
|
3122
3191
|
sm: { fontSize: 11, iconSize: 12, gap: 4 },
|
|
3123
3192
|
md: { fontSize: 12, iconSize: 14, gap: 6 },
|
|
3124
3193
|
lg: { fontSize: 14, iconSize: 16, gap: 8 }
|
|
3125
3194
|
};
|
|
3126
|
-
function
|
|
3195
|
+
function Fr({ size: r }) {
|
|
3127
3196
|
return /* @__PURE__ */ s(
|
|
3128
3197
|
"svg",
|
|
3129
3198
|
{
|
|
@@ -3145,7 +3214,7 @@ function Rr({ size: r }) {
|
|
|
3145
3214
|
}
|
|
3146
3215
|
);
|
|
3147
3216
|
}
|
|
3148
|
-
const
|
|
3217
|
+
const Ar = z(function({
|
|
3149
3218
|
size: e = "md",
|
|
3150
3219
|
children: t,
|
|
3151
3220
|
showIcon: o = !0,
|
|
@@ -3155,7 +3224,7 @@ const Fr = z(function({
|
|
|
3155
3224
|
testId: i,
|
|
3156
3225
|
...d
|
|
3157
3226
|
}, c) {
|
|
3158
|
-
const u =
|
|
3227
|
+
const u = Rr[e], m = {
|
|
3159
3228
|
display: "inline-flex",
|
|
3160
3229
|
alignItems: "center",
|
|
3161
3230
|
gap: u.gap,
|
|
@@ -3181,21 +3250,21 @@ const Fr = z(function({
|
|
|
3181
3250
|
"data-testid": i,
|
|
3182
3251
|
...d,
|
|
3183
3252
|
children: [
|
|
3184
|
-
o && /* @__PURE__ */ s("span", { style: h, children: n || /* @__PURE__ */ s(
|
|
3253
|
+
o && /* @__PURE__ */ s("span", { style: h, children: n || /* @__PURE__ */ s(Fr, { size: u.iconSize }) }),
|
|
3185
3254
|
t
|
|
3186
3255
|
]
|
|
3187
3256
|
}
|
|
3188
3257
|
) : null;
|
|
3189
3258
|
});
|
|
3190
|
-
|
|
3191
|
-
const
|
|
3259
|
+
Ar.displayName = "FieldError";
|
|
3260
|
+
const jr = {
|
|
3192
3261
|
sm: "400px",
|
|
3193
3262
|
md: "500px",
|
|
3194
3263
|
lg: "640px",
|
|
3195
3264
|
xl: "800px",
|
|
3196
3265
|
full: "calc(100vw - 48px)"
|
|
3197
3266
|
};
|
|
3198
|
-
function
|
|
3267
|
+
function Vr() {
|
|
3199
3268
|
return /* @__PURE__ */ s("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ s(
|
|
3200
3269
|
"path",
|
|
3201
3270
|
{
|
|
@@ -3206,7 +3275,7 @@ function jr() {
|
|
|
3206
3275
|
}
|
|
3207
3276
|
) });
|
|
3208
3277
|
}
|
|
3209
|
-
const
|
|
3278
|
+
const Or = z(function({
|
|
3210
3279
|
isOpen: e,
|
|
3211
3280
|
onClose: t,
|
|
3212
3281
|
size: o = "md",
|
|
@@ -3222,29 +3291,29 @@ const Pr = z(function({
|
|
|
3222
3291
|
...y
|
|
3223
3292
|
}, f) {
|
|
3224
3293
|
const g = Q(null), b = Q(null);
|
|
3225
|
-
|
|
3294
|
+
X(() => {
|
|
3226
3295
|
if (!e) return;
|
|
3227
3296
|
b.current = document.activeElement;
|
|
3228
3297
|
const L = g.current;
|
|
3229
3298
|
L && L.focus();
|
|
3230
|
-
const
|
|
3231
|
-
if (
|
|
3299
|
+
const E = (W) => {
|
|
3300
|
+
if (W.key === "Escape" && i) {
|
|
3232
3301
|
t();
|
|
3233
3302
|
return;
|
|
3234
3303
|
}
|
|
3235
|
-
if (
|
|
3236
|
-
const
|
|
3304
|
+
if (W.key === "Tab" && L) {
|
|
3305
|
+
const q = L.querySelectorAll(
|
|
3237
3306
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
3238
|
-
),
|
|
3239
|
-
|
|
3307
|
+
), P = q[0], H = q[q.length - 1];
|
|
3308
|
+
W.shiftKey && document.activeElement === P ? (W.preventDefault(), H == null || H.focus()) : !W.shiftKey && document.activeElement === H && (W.preventDefault(), P == null || P.focus());
|
|
3240
3309
|
}
|
|
3241
3310
|
};
|
|
3242
|
-
return document.addEventListener("keydown",
|
|
3243
|
-
var
|
|
3244
|
-
document.removeEventListener("keydown",
|
|
3311
|
+
return document.addEventListener("keydown", E), document.body.style.overflow = "hidden", () => {
|
|
3312
|
+
var W;
|
|
3313
|
+
document.removeEventListener("keydown", E), document.body.style.overflow = "", (W = b.current) == null || W.focus();
|
|
3245
3314
|
};
|
|
3246
3315
|
}, [e, i, t]);
|
|
3247
|
-
const k =
|
|
3316
|
+
const k = j(
|
|
3248
3317
|
(L) => {
|
|
3249
3318
|
L.target === L.currentTarget && l && t();
|
|
3250
3319
|
},
|
|
@@ -3265,7 +3334,7 @@ const Pr = z(function({
|
|
|
3265
3334
|
}, v = {
|
|
3266
3335
|
position: "relative",
|
|
3267
3336
|
width: "100%",
|
|
3268
|
-
maxWidth:
|
|
3337
|
+
maxWidth: jr[o],
|
|
3269
3338
|
maxHeight: o === "full" ? "calc(100vh - 48px)" : "85vh",
|
|
3270
3339
|
backgroundColor: "var(--brycks-background-elevated)",
|
|
3271
3340
|
borderRadius: "var(--brycks-radius-xl)",
|
|
@@ -3311,7 +3380,7 @@ const Pr = z(function({
|
|
|
3311
3380
|
flex: 1,
|
|
3312
3381
|
overflow: "auto",
|
|
3313
3382
|
padding: 24
|
|
3314
|
-
},
|
|
3383
|
+
}, $ = /* @__PURE__ */ S(te, { children: [
|
|
3315
3384
|
/* @__PURE__ */ s("style", { children: `
|
|
3316
3385
|
@keyframes brycks-fade-in {
|
|
3317
3386
|
from { opacity: 0; }
|
|
@@ -3364,7 +3433,7 @@ const Pr = z(function({
|
|
|
3364
3433
|
onMouseLeave: (L) => {
|
|
3365
3434
|
L.currentTarget.style.backgroundColor = "transparent", L.currentTarget.style.color = "var(--brycks-foreground-muted)";
|
|
3366
3435
|
},
|
|
3367
|
-
children: /* @__PURE__ */ s(
|
|
3436
|
+
children: /* @__PURE__ */ s(Vr, {})
|
|
3368
3437
|
}
|
|
3369
3438
|
)
|
|
3370
3439
|
] }),
|
|
@@ -3375,10 +3444,10 @@ const Pr = z(function({
|
|
|
3375
3444
|
}
|
|
3376
3445
|
)
|
|
3377
3446
|
] });
|
|
3378
|
-
return
|
|
3447
|
+
return pe($, document.body);
|
|
3379
3448
|
});
|
|
3380
|
-
|
|
3381
|
-
const
|
|
3449
|
+
Or.displayName = "Modal";
|
|
3450
|
+
const Pr = {
|
|
3382
3451
|
info: {
|
|
3383
3452
|
icon: /* @__PURE__ */ S("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", children: [
|
|
3384
3453
|
/* @__PURE__ */ s("circle", { cx: "9", cy: "9", r: "7.5", stroke: "currentColor", strokeWidth: "1.5" }),
|
|
@@ -3473,7 +3542,7 @@ const Vr = {
|
|
|
3473
3542
|
}
|
|
3474
3543
|
}
|
|
3475
3544
|
}
|
|
3476
|
-
},
|
|
3545
|
+
}, Xr = z(function({
|
|
3477
3546
|
intent: e = "info",
|
|
3478
3547
|
variant: t = "subtle",
|
|
3479
3548
|
title: o,
|
|
@@ -3488,7 +3557,7 @@ const Vr = {
|
|
|
3488
3557
|
children: h,
|
|
3489
3558
|
...y
|
|
3490
3559
|
}, f) {
|
|
3491
|
-
const g =
|
|
3560
|
+
const g = Pr[e], b = g.colors[t], k = {
|
|
3492
3561
|
display: "flex",
|
|
3493
3562
|
alignItems: "flex-start",
|
|
3494
3563
|
gap: 12,
|
|
@@ -3574,8 +3643,8 @@ const Vr = {
|
|
|
3574
3643
|
}
|
|
3575
3644
|
);
|
|
3576
3645
|
});
|
|
3577
|
-
|
|
3578
|
-
const
|
|
3646
|
+
Xr.displayName = "Alert";
|
|
3647
|
+
const Yr = z(function({
|
|
3579
3648
|
content: e,
|
|
3580
3649
|
placement: t = "top",
|
|
3581
3650
|
delay: o = 200,
|
|
@@ -3585,28 +3654,28 @@ const Xr = z(function({
|
|
|
3585
3654
|
children: i,
|
|
3586
3655
|
...d
|
|
3587
3656
|
}, c) {
|
|
3588
|
-
const [u, m] =
|
|
3657
|
+
const [u, m] = B(!1), [h, y] = B({ top: 0, left: 0 }), f = Q(null), g = Q(null), b = Q(null), k = j(() => {
|
|
3589
3658
|
if (!f.current || !g.current) return;
|
|
3590
3659
|
const I = f.current.getBoundingClientRect(), w = g.current.getBoundingClientRect(), T = 8;
|
|
3591
|
-
let
|
|
3660
|
+
let $ = 0, L = 0;
|
|
3592
3661
|
switch (t) {
|
|
3593
3662
|
case "top":
|
|
3594
|
-
|
|
3663
|
+
$ = I.top - w.height - T, L = I.left + (I.width - w.width) / 2;
|
|
3595
3664
|
break;
|
|
3596
3665
|
case "bottom":
|
|
3597
|
-
|
|
3666
|
+
$ = I.bottom + T, L = I.left + (I.width - w.width) / 2;
|
|
3598
3667
|
break;
|
|
3599
3668
|
case "left":
|
|
3600
|
-
|
|
3669
|
+
$ = I.top + (I.height - w.height) / 2, L = I.left - w.width - T;
|
|
3601
3670
|
break;
|
|
3602
3671
|
case "right":
|
|
3603
|
-
|
|
3672
|
+
$ = I.top + (I.height - w.height) / 2, L = I.right + T;
|
|
3604
3673
|
break;
|
|
3605
3674
|
}
|
|
3606
|
-
const
|
|
3607
|
-
L = Math.max(
|
|
3675
|
+
const E = 8;
|
|
3676
|
+
L = Math.max(E, Math.min(L, window.innerWidth - w.width - E)), $ = Math.max(E, Math.min($, window.innerHeight - w.height - E)), y({ top: $, left: L });
|
|
3608
3677
|
}, [t]);
|
|
3609
|
-
|
|
3678
|
+
X(() => (u && (k(), window.addEventListener("scroll", k, !0), window.addEventListener("resize", k)), () => {
|
|
3610
3679
|
window.removeEventListener("scroll", k, !0), window.removeEventListener("resize", k);
|
|
3611
3680
|
}), [u, k]);
|
|
3612
3681
|
const x = () => {
|
|
@@ -3616,7 +3685,7 @@ const Xr = z(function({
|
|
|
3616
3685
|
}, v = () => {
|
|
3617
3686
|
b.current && clearTimeout(b.current), m(!1);
|
|
3618
3687
|
};
|
|
3619
|
-
|
|
3688
|
+
X(() => () => {
|
|
3620
3689
|
b.current && clearTimeout(b.current);
|
|
3621
3690
|
}, []);
|
|
3622
3691
|
const C = {
|
|
@@ -3648,7 +3717,7 @@ const Xr = z(function({
|
|
|
3648
3717
|
...t === "left" && { right: -4, top: "50%", marginTop: -4 },
|
|
3649
3718
|
...t === "right" && { left: -4, top: "50%", marginTop: -4 }
|
|
3650
3719
|
};
|
|
3651
|
-
return /* @__PURE__ */ S(
|
|
3720
|
+
return /* @__PURE__ */ S(te, { children: [
|
|
3652
3721
|
/* @__PURE__ */ s(
|
|
3653
3722
|
"div",
|
|
3654
3723
|
{
|
|
@@ -3661,8 +3730,8 @@ const Xr = z(function({
|
|
|
3661
3730
|
children: i
|
|
3662
3731
|
}
|
|
3663
3732
|
),
|
|
3664
|
-
u &&
|
|
3665
|
-
/* @__PURE__ */ S(
|
|
3733
|
+
u && pe(
|
|
3734
|
+
/* @__PURE__ */ S(te, { children: [
|
|
3666
3735
|
/* @__PURE__ */ s("style", { children: `
|
|
3667
3736
|
@keyframes brycks-tooltip-in {
|
|
3668
3737
|
from { opacity: 0; transform: scale(0.95); }
|
|
@@ -3691,8 +3760,8 @@ const Xr = z(function({
|
|
|
3691
3760
|
)
|
|
3692
3761
|
] });
|
|
3693
3762
|
});
|
|
3694
|
-
|
|
3695
|
-
const
|
|
3763
|
+
Yr.displayName = "Tooltip";
|
|
3764
|
+
const Kr = {
|
|
3696
3765
|
info: {
|
|
3697
3766
|
bg: "var(--brycks-info-50)",
|
|
3698
3767
|
border: "var(--brycks-info-200)",
|
|
@@ -3714,7 +3783,7 @@ const Yr = {
|
|
|
3714
3783
|
icon: "var(--brycks-error-default)"
|
|
3715
3784
|
}
|
|
3716
3785
|
};
|
|
3717
|
-
function
|
|
3786
|
+
function Gr({ intent: r }) {
|
|
3718
3787
|
return /* @__PURE__ */ s("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ s("path", { d: {
|
|
3719
3788
|
info: "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z",
|
|
3720
3789
|
success: "M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z",
|
|
@@ -3722,10 +3791,10 @@ function Kr({ intent: r }) {
|
|
|
3722
3791
|
error: "M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
3723
3792
|
}[r] }) });
|
|
3724
3793
|
}
|
|
3725
|
-
function
|
|
3794
|
+
function qr() {
|
|
3726
3795
|
return /* @__PURE__ */ s("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ s("path", { d: "M4 4l8 8M12 4l-8 8", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }) });
|
|
3727
3796
|
}
|
|
3728
|
-
const
|
|
3797
|
+
const Oe = z(function({
|
|
3729
3798
|
intent: e = "info",
|
|
3730
3799
|
title: t,
|
|
3731
3800
|
description: o,
|
|
@@ -3740,23 +3809,23 @@ const Pe = z(function({
|
|
|
3740
3809
|
testId: h,
|
|
3741
3810
|
...y
|
|
3742
3811
|
}, f) {
|
|
3743
|
-
const [g, b] =
|
|
3744
|
-
if (
|
|
3812
|
+
const [g, b] = B(n), [k, x] = B(!1);
|
|
3813
|
+
if (X(() => {
|
|
3745
3814
|
if (n)
|
|
3746
3815
|
b(!0), x(!1);
|
|
3747
3816
|
else {
|
|
3748
3817
|
x(!0);
|
|
3749
|
-
const
|
|
3750
|
-
return () => clearTimeout(
|
|
3818
|
+
const $ = setTimeout(() => b(!1), 200);
|
|
3819
|
+
return () => clearTimeout($);
|
|
3751
3820
|
}
|
|
3752
|
-
}, [n]),
|
|
3821
|
+
}, [n]), X(() => {
|
|
3753
3822
|
if (!n || a === 0) return;
|
|
3754
|
-
const
|
|
3823
|
+
const $ = setTimeout(() => {
|
|
3755
3824
|
l == null || l();
|
|
3756
3825
|
}, a);
|
|
3757
|
-
return () => clearTimeout(
|
|
3826
|
+
return () => clearTimeout($);
|
|
3758
3827
|
}, [n, a, l]), !g) return null;
|
|
3759
|
-
const v =
|
|
3828
|
+
const v = Kr[e], C = {
|
|
3760
3829
|
display: "flex",
|
|
3761
3830
|
alignItems: "flex-start",
|
|
3762
3831
|
gap: 12,
|
|
@@ -3798,7 +3867,7 @@ const Pe = z(function({
|
|
|
3798
3867
|
flexShrink: 0,
|
|
3799
3868
|
marginLeft: "auto"
|
|
3800
3869
|
};
|
|
3801
|
-
return /* @__PURE__ */ S(
|
|
3870
|
+
return /* @__PURE__ */ S(te, { children: [
|
|
3802
3871
|
/* @__PURE__ */ s("style", { children: `
|
|
3803
3872
|
@keyframes brycks-toast-in {
|
|
3804
3873
|
from { opacity: 0; transform: translateY(-8px) scale(0.95); }
|
|
@@ -3820,7 +3889,7 @@ const Pe = z(function({
|
|
|
3820
3889
|
"data-testid": h,
|
|
3821
3890
|
...y,
|
|
3822
3891
|
children: [
|
|
3823
|
-
/* @__PURE__ */ s("span", { style: N, children: c || /* @__PURE__ */ s(
|
|
3892
|
+
/* @__PURE__ */ s("span", { style: N, children: c || /* @__PURE__ */ s(Gr, { intent: e }) }),
|
|
3824
3893
|
/* @__PURE__ */ S("div", { style: p, children: [
|
|
3825
3894
|
t && /* @__PURE__ */ s("span", { style: I, children: t }),
|
|
3826
3895
|
o && /* @__PURE__ */ s("span", { style: w, children: o }),
|
|
@@ -3833,13 +3902,13 @@ const Pe = z(function({
|
|
|
3833
3902
|
style: T,
|
|
3834
3903
|
onClick: l,
|
|
3835
3904
|
"aria-label": "Close toast",
|
|
3836
|
-
onMouseEnter: (
|
|
3837
|
-
|
|
3905
|
+
onMouseEnter: ($) => {
|
|
3906
|
+
$.currentTarget.style.backgroundColor = "var(--brycks-background-muted)";
|
|
3838
3907
|
},
|
|
3839
|
-
onMouseLeave: (
|
|
3840
|
-
|
|
3908
|
+
onMouseLeave: ($) => {
|
|
3909
|
+
$.currentTarget.style.backgroundColor = "transparent";
|
|
3841
3910
|
},
|
|
3842
|
-
children: /* @__PURE__ */ s(
|
|
3911
|
+
children: /* @__PURE__ */ s(qr, {})
|
|
3843
3912
|
}
|
|
3844
3913
|
)
|
|
3845
3914
|
]
|
|
@@ -3847,15 +3916,15 @@ const Pe = z(function({
|
|
|
3847
3916
|
)
|
|
3848
3917
|
] });
|
|
3849
3918
|
});
|
|
3850
|
-
|
|
3851
|
-
const
|
|
3852
|
-
function
|
|
3853
|
-
const r =
|
|
3919
|
+
Oe.displayName = "Toast";
|
|
3920
|
+
const Pe = ye(null);
|
|
3921
|
+
function On() {
|
|
3922
|
+
const r = fe(Pe);
|
|
3854
3923
|
if (!r)
|
|
3855
3924
|
throw new Error("useToast must be used within a ToastProvider");
|
|
3856
3925
|
return r;
|
|
3857
3926
|
}
|
|
3858
|
-
const
|
|
3927
|
+
const _r = {
|
|
3859
3928
|
"top-left": { top: 16, left: 16 },
|
|
3860
3929
|
"top-center": { top: 16, left: "50%", transform: "translateX(-50%)" },
|
|
3861
3930
|
"top-right": { top: 16, right: 16 },
|
|
@@ -3863,28 +3932,28 @@ const qr = {
|
|
|
3863
3932
|
"bottom-center": { bottom: 16, left: "50%", transform: "translateX(-50%)" },
|
|
3864
3933
|
"bottom-right": { bottom: 16, right: 16 }
|
|
3865
3934
|
};
|
|
3866
|
-
let
|
|
3867
|
-
function
|
|
3935
|
+
let Ur = 0;
|
|
3936
|
+
function Pn({
|
|
3868
3937
|
children: r,
|
|
3869
3938
|
position: e = "top-right",
|
|
3870
3939
|
maxToasts: t = 5
|
|
3871
3940
|
}) {
|
|
3872
|
-
const [o, n] =
|
|
3873
|
-
|
|
3941
|
+
const [o, n] = B([]), [a, l] = B(!1);
|
|
3942
|
+
X(() => {
|
|
3874
3943
|
l(!0);
|
|
3875
3944
|
}, []);
|
|
3876
|
-
const i =
|
|
3945
|
+
const i = j(
|
|
3877
3946
|
(h) => {
|
|
3878
|
-
const y = `toast-${++
|
|
3947
|
+
const y = `toast-${++Ur}`;
|
|
3879
3948
|
return n((f) => {
|
|
3880
3949
|
const g = [...f, { id: y, props: h }];
|
|
3881
3950
|
return g.length > t ? g.slice(-t) : g;
|
|
3882
3951
|
}), y;
|
|
3883
3952
|
},
|
|
3884
3953
|
[t]
|
|
3885
|
-
), d =
|
|
3954
|
+
), d = j((h) => {
|
|
3886
3955
|
n((y) => y.filter((f) => f.id !== h));
|
|
3887
|
-
}, []), c =
|
|
3956
|
+
}, []), c = j(() => {
|
|
3888
3957
|
n([]);
|
|
3889
3958
|
}, []), u = {
|
|
3890
3959
|
position: "fixed",
|
|
@@ -3893,29 +3962,29 @@ function Hn({
|
|
|
3893
3962
|
flexDirection: "column",
|
|
3894
3963
|
gap: 8,
|
|
3895
3964
|
pointerEvents: "none",
|
|
3896
|
-
...
|
|
3965
|
+
..._r[e]
|
|
3897
3966
|
}, m = {
|
|
3898
3967
|
pointerEvents: "auto"
|
|
3899
3968
|
};
|
|
3900
|
-
return /* @__PURE__ */ S(
|
|
3969
|
+
return /* @__PURE__ */ S(Pe.Provider, { value: { toasts: o, addToast: i, removeToast: d, removeAll: c }, children: [
|
|
3901
3970
|
r,
|
|
3902
|
-
a &&
|
|
3903
|
-
/* @__PURE__ */ s("div", { className: "brycks-toast-container", style: u, children: o.map(({ id: h, props: y }) => /* @__PURE__ */ s("div", { style: m, children: /* @__PURE__ */ s(
|
|
3971
|
+
a && pe(
|
|
3972
|
+
/* @__PURE__ */ s("div", { className: "brycks-toast-container", style: u, children: o.map(({ id: h, props: y }) => /* @__PURE__ */ s("div", { style: m, children: /* @__PURE__ */ s(Oe, { ...y, isOpen: !0, onClose: () => d(h) }) }, h)) }),
|
|
3904
3973
|
document.body
|
|
3905
3974
|
)
|
|
3906
3975
|
] });
|
|
3907
3976
|
}
|
|
3908
|
-
const
|
|
3977
|
+
const Zr = {
|
|
3909
3978
|
sm: "320px",
|
|
3910
3979
|
md: "400px",
|
|
3911
3980
|
lg: "560px",
|
|
3912
3981
|
xl: "720px",
|
|
3913
3982
|
full: "100%"
|
|
3914
3983
|
};
|
|
3915
|
-
function
|
|
3984
|
+
function Qr() {
|
|
3916
3985
|
return /* @__PURE__ */ s("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ s("path", { d: "M4 4l8 8M12 4l-8 8", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }) });
|
|
3917
3986
|
}
|
|
3918
|
-
const
|
|
3987
|
+
const Jr = z(function({
|
|
3919
3988
|
isOpen: e,
|
|
3920
3989
|
onClose: t,
|
|
3921
3990
|
placement: o = "right",
|
|
@@ -3932,36 +4001,36 @@ const Qr = z(function({
|
|
|
3932
4001
|
...f
|
|
3933
4002
|
}, g) {
|
|
3934
4003
|
const b = Q(null), k = Q(null);
|
|
3935
|
-
|
|
4004
|
+
X(() => {
|
|
3936
4005
|
if (!e) return;
|
|
3937
4006
|
k.current = document.activeElement;
|
|
3938
|
-
const
|
|
3939
|
-
|
|
3940
|
-
const
|
|
3941
|
-
if (
|
|
4007
|
+
const W = b.current;
|
|
4008
|
+
W && W.focus();
|
|
4009
|
+
const q = (P) => {
|
|
4010
|
+
if (P.key === "Escape" && i) {
|
|
3942
4011
|
t();
|
|
3943
4012
|
return;
|
|
3944
4013
|
}
|
|
3945
|
-
if (
|
|
3946
|
-
const
|
|
4014
|
+
if (P.key === "Tab" && W) {
|
|
4015
|
+
const H = W.querySelectorAll(
|
|
3947
4016
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
3948
|
-
),
|
|
3949
|
-
|
|
4017
|
+
), R = H[0], A = H[H.length - 1];
|
|
4018
|
+
P.shiftKey && document.activeElement === R ? (P.preventDefault(), A == null || A.focus()) : !P.shiftKey && document.activeElement === A && (P.preventDefault(), R == null || R.focus());
|
|
3950
4019
|
}
|
|
3951
4020
|
};
|
|
3952
|
-
return document.addEventListener("keydown",
|
|
3953
|
-
var
|
|
3954
|
-
document.removeEventListener("keydown",
|
|
4021
|
+
return document.addEventListener("keydown", q), document.body.style.overflow = "hidden", () => {
|
|
4022
|
+
var P;
|
|
4023
|
+
document.removeEventListener("keydown", q), document.body.style.overflow = "", (P = k.current) == null || P.focus();
|
|
3955
4024
|
};
|
|
3956
4025
|
}, [e, i, t]);
|
|
3957
|
-
const x =
|
|
3958
|
-
(
|
|
3959
|
-
|
|
4026
|
+
const x = j(
|
|
4027
|
+
(W) => {
|
|
4028
|
+
W.target === W.currentTarget && l && t();
|
|
3960
4029
|
},
|
|
3961
4030
|
[l, t]
|
|
3962
4031
|
);
|
|
3963
4032
|
if (!e) return null;
|
|
3964
|
-
const v = o === "left" || o === "right", C =
|
|
4033
|
+
const v = o === "left" || o === "right", C = Zr[n], N = {
|
|
3965
4034
|
position: "fixed",
|
|
3966
4035
|
inset: 0,
|
|
3967
4036
|
zIndex: "var(--brycks-z-drawer)",
|
|
@@ -3970,7 +4039,7 @@ const Qr = z(function({
|
|
|
3970
4039
|
animation: "brycks-drawer-overlay-in 200ms ease-out"
|
|
3971
4040
|
}, I = {
|
|
3972
4041
|
...(() => {
|
|
3973
|
-
const
|
|
4042
|
+
const W = {
|
|
3974
4043
|
position: "absolute",
|
|
3975
4044
|
backgroundColor: "var(--brycks-background-elevated)",
|
|
3976
4045
|
boxShadow: "var(--brycks-shadow-2xl)",
|
|
@@ -3979,14 +4048,14 @@ const Qr = z(function({
|
|
|
3979
4048
|
overflow: "hidden"
|
|
3980
4049
|
};
|
|
3981
4050
|
return v ? {
|
|
3982
|
-
...
|
|
4051
|
+
...W,
|
|
3983
4052
|
top: 0,
|
|
3984
4053
|
bottom: 0,
|
|
3985
4054
|
[o]: 0,
|
|
3986
4055
|
width: C,
|
|
3987
4056
|
maxWidth: "100vw"
|
|
3988
4057
|
} : {
|
|
3989
|
-
...
|
|
4058
|
+
...W,
|
|
3990
4059
|
left: 0,
|
|
3991
4060
|
right: 0,
|
|
3992
4061
|
[o]: 0,
|
|
@@ -4009,7 +4078,7 @@ const Qr = z(function({
|
|
|
4009
4078
|
fontWeight: 600,
|
|
4010
4079
|
color: "var(--brycks-foreground-default)",
|
|
4011
4080
|
margin: 0
|
|
4012
|
-
},
|
|
4081
|
+
}, $ = {
|
|
4013
4082
|
display: "flex",
|
|
4014
4083
|
alignItems: "center",
|
|
4015
4084
|
justifyContent: "center",
|
|
@@ -4022,7 +4091,7 @@ const Qr = z(function({
|
|
|
4022
4091
|
flex: 1,
|
|
4023
4092
|
overflow: "auto",
|
|
4024
4093
|
padding: 20
|
|
4025
|
-
},
|
|
4094
|
+
}, E = /* @__PURE__ */ S(te, { children: [
|
|
4026
4095
|
/* @__PURE__ */ s("style", { children: `
|
|
4027
4096
|
@keyframes brycks-drawer-overlay-in {
|
|
4028
4097
|
from { opacity: 0; }
|
|
@@ -4055,8 +4124,8 @@ const Qr = z(function({
|
|
|
4055
4124
|
children: /* @__PURE__ */ S(
|
|
4056
4125
|
"div",
|
|
4057
4126
|
{
|
|
4058
|
-
ref: (
|
|
4059
|
-
b.current =
|
|
4127
|
+
ref: (W) => {
|
|
4128
|
+
b.current = W, typeof g == "function" ? g(W) : g && (g.current = W);
|
|
4060
4129
|
},
|
|
4061
4130
|
role: "dialog",
|
|
4062
4131
|
"aria-modal": "true",
|
|
@@ -4074,16 +4143,16 @@ const Qr = z(function({
|
|
|
4074
4143
|
{
|
|
4075
4144
|
type: "button",
|
|
4076
4145
|
className: "brycks-drawer-close",
|
|
4077
|
-
style:
|
|
4146
|
+
style: $,
|
|
4078
4147
|
onClick: t,
|
|
4079
4148
|
"aria-label": "Close drawer",
|
|
4080
|
-
onMouseEnter: (
|
|
4081
|
-
|
|
4149
|
+
onMouseEnter: (W) => {
|
|
4150
|
+
W.currentTarget.style.backgroundColor = "var(--brycks-background-muted)", W.currentTarget.style.color = "var(--brycks-foreground-default)";
|
|
4082
4151
|
},
|
|
4083
|
-
onMouseLeave: (
|
|
4084
|
-
|
|
4152
|
+
onMouseLeave: (W) => {
|
|
4153
|
+
W.currentTarget.style.backgroundColor = "transparent", W.currentTarget.style.color = "var(--brycks-foreground-muted)";
|
|
4085
4154
|
},
|
|
4086
|
-
children: /* @__PURE__ */ s(
|
|
4155
|
+
children: /* @__PURE__ */ s(Qr, {})
|
|
4087
4156
|
}
|
|
4088
4157
|
)
|
|
4089
4158
|
] }),
|
|
@@ -4094,12 +4163,12 @@ const Qr = z(function({
|
|
|
4094
4163
|
}
|
|
4095
4164
|
)
|
|
4096
4165
|
] });
|
|
4097
|
-
return
|
|
4166
|
+
return pe(E, document.body);
|
|
4098
4167
|
});
|
|
4099
|
-
|
|
4100
|
-
function
|
|
4168
|
+
Jr.displayName = "Drawer";
|
|
4169
|
+
function eo(r, e = {}) {
|
|
4101
4170
|
const { enabled: t = !0, eventType: o = "mousedown" } = e, n = Q(null);
|
|
4102
|
-
return
|
|
4171
|
+
return X(() => {
|
|
4103
4172
|
if (!t) return;
|
|
4104
4173
|
const a = (l) => {
|
|
4105
4174
|
const i = n.current;
|
|
@@ -4110,7 +4179,7 @@ function Jr(r, e = {}) {
|
|
|
4110
4179
|
};
|
|
4111
4180
|
}, [r, t, o]), n;
|
|
4112
4181
|
}
|
|
4113
|
-
const
|
|
4182
|
+
const to = z(function({
|
|
4114
4183
|
content: e,
|
|
4115
4184
|
children: t,
|
|
4116
4185
|
placement: o = "bottom",
|
|
@@ -4128,102 +4197,102 @@ const eo = z(function({
|
|
|
4128
4197
|
testId: g,
|
|
4129
4198
|
...b
|
|
4130
4199
|
}, k) {
|
|
4131
|
-
const [x, v] =
|
|
4132
|
-
(
|
|
4133
|
-
a === void 0 && v(
|
|
4200
|
+
const [x, v] = B(l), [C, N] = B({ top: 0, left: 0 }), [p, I] = B(!1), w = Q(null), T = Q(null), $ = Q(null), L = Q(null), E = a ?? x, W = j(
|
|
4201
|
+
(V) => {
|
|
4202
|
+
a === void 0 && v(V), i == null || i(V);
|
|
4134
4203
|
},
|
|
4135
4204
|
[a, i]
|
|
4136
|
-
),
|
|
4137
|
-
m && n === "click" &&
|
|
4138
|
-
}, { enabled:
|
|
4139
|
-
|
|
4140
|
-
if (!
|
|
4141
|
-
const
|
|
4142
|
-
const
|
|
4143
|
-
if (!
|
|
4144
|
-
const
|
|
4145
|
-
let
|
|
4205
|
+
), q = eo(() => {
|
|
4206
|
+
m && n === "click" && E && W(!1);
|
|
4207
|
+
}, { enabled: E && n === "click" });
|
|
4208
|
+
X(() => (I(!0), () => I(!1)), []), X(() => {
|
|
4209
|
+
if (!E || !w.current || !p) return;
|
|
4210
|
+
const V = () => {
|
|
4211
|
+
const ee = w.current, ke = T.current;
|
|
4212
|
+
if (!ee || !ke) return;
|
|
4213
|
+
const se = ee.getBoundingClientRect(), O = ke.getBoundingClientRect(), oe = window.scrollX, be = window.scrollY;
|
|
4214
|
+
let ve = 0, xe = 0;
|
|
4146
4215
|
switch (o) {
|
|
4147
4216
|
case "top":
|
|
4148
4217
|
case "top-start":
|
|
4149
4218
|
case "top-end":
|
|
4150
|
-
|
|
4219
|
+
ve = se.top + be - O.height - d;
|
|
4151
4220
|
break;
|
|
4152
4221
|
case "bottom":
|
|
4153
4222
|
case "bottom-start":
|
|
4154
4223
|
case "bottom-end":
|
|
4155
|
-
|
|
4224
|
+
ve = se.bottom + be + d;
|
|
4156
4225
|
break;
|
|
4157
4226
|
case "left":
|
|
4158
4227
|
case "left-start":
|
|
4159
4228
|
case "left-end":
|
|
4160
|
-
|
|
4229
|
+
xe = se.left + oe - O.width - d;
|
|
4161
4230
|
break;
|
|
4162
4231
|
case "right":
|
|
4163
4232
|
case "right-start":
|
|
4164
4233
|
case "right-end":
|
|
4165
|
-
|
|
4234
|
+
xe = se.right + oe + d;
|
|
4166
4235
|
break;
|
|
4167
4236
|
}
|
|
4168
4237
|
switch (o) {
|
|
4169
4238
|
case "top":
|
|
4170
4239
|
case "bottom":
|
|
4171
|
-
|
|
4240
|
+
xe = se.left + oe + (se.width - O.width) / 2;
|
|
4172
4241
|
break;
|
|
4173
4242
|
case "top-start":
|
|
4174
4243
|
case "bottom-start":
|
|
4175
|
-
|
|
4244
|
+
xe = se.left + oe;
|
|
4176
4245
|
break;
|
|
4177
4246
|
case "top-end":
|
|
4178
4247
|
case "bottom-end":
|
|
4179
|
-
|
|
4248
|
+
xe = se.right + oe - O.width;
|
|
4180
4249
|
break;
|
|
4181
4250
|
case "left":
|
|
4182
4251
|
case "right":
|
|
4183
|
-
|
|
4252
|
+
ve = se.top + be + (se.height - O.height) / 2;
|
|
4184
4253
|
break;
|
|
4185
4254
|
case "left-start":
|
|
4186
4255
|
case "right-start":
|
|
4187
|
-
|
|
4256
|
+
ve = se.top + be;
|
|
4188
4257
|
break;
|
|
4189
4258
|
case "left-end":
|
|
4190
4259
|
case "right-end":
|
|
4191
|
-
|
|
4260
|
+
ve = se.bottom + be - O.height;
|
|
4192
4261
|
break;
|
|
4193
4262
|
}
|
|
4194
|
-
N({ top:
|
|
4263
|
+
N({ top: ve, left: xe });
|
|
4195
4264
|
};
|
|
4196
|
-
return
|
|
4197
|
-
window.removeEventListener("resize",
|
|
4265
|
+
return V(), window.addEventListener("resize", V), window.addEventListener("scroll", V, !0), () => {
|
|
4266
|
+
window.removeEventListener("resize", V), window.removeEventListener("scroll", V, !0);
|
|
4198
4267
|
};
|
|
4199
|
-
}, [
|
|
4200
|
-
|
|
4268
|
+
}, [E, o, d, p]), X(() => () => {
|
|
4269
|
+
$.current && clearTimeout($.current), L.current && clearTimeout(L.current);
|
|
4201
4270
|
}, []);
|
|
4202
|
-
const
|
|
4203
|
-
L.current && clearTimeout(L.current), n === "hover" ?
|
|
4204
|
-
}, [n, c,
|
|
4205
|
-
|
|
4206
|
-
}, [n, u,
|
|
4207
|
-
|
|
4208
|
-
}, [
|
|
4271
|
+
const P = j(() => {
|
|
4272
|
+
L.current && clearTimeout(L.current), n === "hover" ? $.current = setTimeout(() => W(!0), c) : W(!0);
|
|
4273
|
+
}, [n, c, W]), H = j(() => {
|
|
4274
|
+
$.current && clearTimeout($.current), n === "hover" ? L.current = setTimeout(() => W(!1), u) : W(!1);
|
|
4275
|
+
}, [n, u, W]), R = j(() => {
|
|
4276
|
+
E ? H() : P();
|
|
4277
|
+
}, [E, P, H]), A = t.props, J = Le(t, {
|
|
4209
4278
|
ref: w,
|
|
4210
4279
|
...n === "click" && {
|
|
4211
|
-
onClick: (
|
|
4212
|
-
var
|
|
4213
|
-
(
|
|
4280
|
+
onClick: (V) => {
|
|
4281
|
+
var ee;
|
|
4282
|
+
(ee = A.onClick) == null || ee.call(A, V), R();
|
|
4214
4283
|
}
|
|
4215
4284
|
},
|
|
4216
4285
|
...n === "hover" && {
|
|
4217
|
-
onMouseEnter: (
|
|
4218
|
-
var
|
|
4219
|
-
(
|
|
4286
|
+
onMouseEnter: (V) => {
|
|
4287
|
+
var ee;
|
|
4288
|
+
(ee = A.onMouseEnter) == null || ee.call(A, V), P();
|
|
4220
4289
|
},
|
|
4221
|
-
onMouseLeave: (
|
|
4222
|
-
var
|
|
4223
|
-
(
|
|
4290
|
+
onMouseLeave: (V) => {
|
|
4291
|
+
var ee;
|
|
4292
|
+
(ee = A.onMouseLeave) == null || ee.call(A, V), H();
|
|
4224
4293
|
}
|
|
4225
4294
|
}
|
|
4226
|
-
}),
|
|
4295
|
+
}), _ = {
|
|
4227
4296
|
position: "absolute",
|
|
4228
4297
|
top: C.top,
|
|
4229
4298
|
left: C.left,
|
|
@@ -4236,7 +4305,7 @@ const eo = z(function({
|
|
|
4236
4305
|
minWidth: 120,
|
|
4237
4306
|
animation: "brycks-popover-in 150ms ease-out",
|
|
4238
4307
|
...f
|
|
4239
|
-
},
|
|
4308
|
+
}, F = E && p && /* @__PURE__ */ S(te, { children: [
|
|
4240
4309
|
/* @__PURE__ */ s("style", { children: `
|
|
4241
4310
|
@keyframes brycks-popover-in {
|
|
4242
4311
|
from { opacity: 0; transform: scale(0.95); }
|
|
@@ -4246,42 +4315,42 @@ const eo = z(function({
|
|
|
4246
4315
|
/* @__PURE__ */ s(
|
|
4247
4316
|
"div",
|
|
4248
4317
|
{
|
|
4249
|
-
ref: (
|
|
4250
|
-
T.current =
|
|
4318
|
+
ref: (V) => {
|
|
4319
|
+
T.current = V, q.current = V, typeof k == "function" ? k(V) : k && (k.current = V);
|
|
4251
4320
|
},
|
|
4252
4321
|
className: M("brycks-popover", y),
|
|
4253
|
-
style:
|
|
4322
|
+
style: _,
|
|
4254
4323
|
role: "dialog",
|
|
4255
4324
|
"data-testid": g,
|
|
4256
|
-
onMouseEnter: n === "hover" ?
|
|
4257
|
-
onMouseLeave: n === "hover" ?
|
|
4325
|
+
onMouseEnter: n === "hover" ? P : void 0,
|
|
4326
|
+
onMouseLeave: n === "hover" ? H : void 0,
|
|
4258
4327
|
...b,
|
|
4259
4328
|
children: e
|
|
4260
4329
|
}
|
|
4261
4330
|
)
|
|
4262
4331
|
] });
|
|
4263
|
-
return /* @__PURE__ */ S(
|
|
4264
|
-
|
|
4265
|
-
p &&
|
|
4332
|
+
return /* @__PURE__ */ S(te, { children: [
|
|
4333
|
+
J,
|
|
4334
|
+
p && pe(F, document.body)
|
|
4266
4335
|
] });
|
|
4267
4336
|
});
|
|
4268
|
-
|
|
4269
|
-
const
|
|
4337
|
+
to.displayName = "Popover";
|
|
4338
|
+
const ro = {
|
|
4270
4339
|
xs: 4,
|
|
4271
4340
|
sm: 6,
|
|
4272
4341
|
md: 8,
|
|
4273
4342
|
lg: 12
|
|
4274
|
-
},
|
|
4343
|
+
}, oo = {
|
|
4275
4344
|
xs: { size: 24, strokeWidth: 3 },
|
|
4276
4345
|
sm: { size: 32, strokeWidth: 3 },
|
|
4277
4346
|
md: { size: 48, strokeWidth: 4 },
|
|
4278
4347
|
lg: { size: 64, strokeWidth: 5 }
|
|
4279
|
-
},
|
|
4348
|
+
}, no = {
|
|
4280
4349
|
primary: "var(--brycks-primary-default)",
|
|
4281
4350
|
success: "var(--brycks-success-default)",
|
|
4282
4351
|
warning: "var(--brycks-warning-default)",
|
|
4283
4352
|
error: "var(--brycks-error-default)"
|
|
4284
|
-
},
|
|
4353
|
+
}, so = z(function({
|
|
4285
4354
|
value: e = 0,
|
|
4286
4355
|
max: t = 100,
|
|
4287
4356
|
size: o = "md",
|
|
@@ -4296,42 +4365,42 @@ const to = {
|
|
|
4296
4365
|
testId: h,
|
|
4297
4366
|
...y
|
|
4298
4367
|
}, f) {
|
|
4299
|
-
const g = Math.min(100, Math.max(0, e / t * 100)), b =
|
|
4368
|
+
const g = Math.min(100, Math.max(0, e / t * 100)), b = no[a];
|
|
4300
4369
|
if (n === "circular") {
|
|
4301
|
-
const w =
|
|
4370
|
+
const w = oo[o], T = (w.size - w.strokeWidth) / 2, $ = 2 * Math.PI * T, L = $ - g / 100 * $, E = {
|
|
4302
4371
|
display: "inline-flex",
|
|
4303
4372
|
flexDirection: "column",
|
|
4304
4373
|
alignItems: "center",
|
|
4305
4374
|
gap: 8,
|
|
4306
4375
|
...m
|
|
4307
|
-
},
|
|
4376
|
+
}, W = {
|
|
4308
4377
|
transform: "rotate(-90deg)",
|
|
4309
4378
|
width: w.size,
|
|
4310
4379
|
height: w.size
|
|
4311
|
-
},
|
|
4380
|
+
}, q = {
|
|
4312
4381
|
fill: "none",
|
|
4313
4382
|
stroke: "var(--brycks-background-muted)",
|
|
4314
4383
|
strokeWidth: w.strokeWidth
|
|
4315
|
-
},
|
|
4384
|
+
}, P = {
|
|
4316
4385
|
fill: "none",
|
|
4317
4386
|
stroke: b,
|
|
4318
4387
|
strokeWidth: w.strokeWidth,
|
|
4319
4388
|
strokeLinecap: "round",
|
|
4320
|
-
strokeDasharray:
|
|
4321
|
-
strokeDashoffset: i ?
|
|
4389
|
+
strokeDasharray: $,
|
|
4390
|
+
strokeDashoffset: i ? $ * 0.75 : L,
|
|
4322
4391
|
transition: i ? "none" : "stroke-dashoffset 300ms ease-out",
|
|
4323
4392
|
animation: i ? "brycks-progress-circular-spin 1s linear infinite" : void 0,
|
|
4324
4393
|
transformOrigin: "center"
|
|
4325
|
-
},
|
|
4394
|
+
}, H = {
|
|
4326
4395
|
position: "absolute",
|
|
4327
4396
|
fontSize: o === "xs" ? 8 : o === "sm" ? 10 : o === "md" ? 12 : 14,
|
|
4328
4397
|
fontWeight: 600,
|
|
4329
4398
|
color: "var(--brycks-foreground-default)"
|
|
4330
|
-
},
|
|
4399
|
+
}, R = {
|
|
4331
4400
|
fontSize: o === "xs" ? 10 : o === "sm" ? 11 : o === "md" ? 12 : 14,
|
|
4332
4401
|
color: "var(--brycks-foreground-muted)"
|
|
4333
4402
|
};
|
|
4334
|
-
return /* @__PURE__ */ S(
|
|
4403
|
+
return /* @__PURE__ */ S(te, { children: [
|
|
4335
4404
|
/* @__PURE__ */ s("style", { children: `
|
|
4336
4405
|
@keyframes brycks-progress-circular-spin {
|
|
4337
4406
|
from { transform: rotate(0deg); }
|
|
@@ -4343,7 +4412,7 @@ const to = {
|
|
|
4343
4412
|
{
|
|
4344
4413
|
ref: f,
|
|
4345
4414
|
className: M("brycks-progress", "brycks-progress--circular", `brycks-progress--${o}`, u),
|
|
4346
|
-
style:
|
|
4415
|
+
style: E,
|
|
4347
4416
|
role: "progressbar",
|
|
4348
4417
|
"aria-valuenow": i ? void 0 : e,
|
|
4349
4418
|
"aria-valuemin": 0,
|
|
@@ -4353,19 +4422,19 @@ const to = {
|
|
|
4353
4422
|
...y,
|
|
4354
4423
|
children: [
|
|
4355
4424
|
/* @__PURE__ */ S("div", { style: { position: "relative", display: "flex", alignItems: "center", justifyContent: "center" }, children: [
|
|
4356
|
-
/* @__PURE__ */ S("svg", { style:
|
|
4357
|
-
/* @__PURE__ */ s("circle", { cx: w.size / 2, cy: w.size / 2, r: T, style:
|
|
4358
|
-
/* @__PURE__ */ s("circle", { cx: w.size / 2, cy: w.size / 2, r: T, style:
|
|
4425
|
+
/* @__PURE__ */ S("svg", { style: W, children: [
|
|
4426
|
+
/* @__PURE__ */ s("circle", { cx: w.size / 2, cy: w.size / 2, r: T, style: q }),
|
|
4427
|
+
/* @__PURE__ */ s("circle", { cx: w.size / 2, cy: w.size / 2, r: T, style: P })
|
|
4359
4428
|
] }),
|
|
4360
|
-
l && !i && o !== "xs" && /* @__PURE__ */ s("span", { style:
|
|
4429
|
+
l && !i && o !== "xs" && /* @__PURE__ */ s("span", { style: H, children: d(e, t) })
|
|
4361
4430
|
] }),
|
|
4362
|
-
c && /* @__PURE__ */ s("span", { style:
|
|
4431
|
+
c && /* @__PURE__ */ s("span", { style: R, children: c })
|
|
4363
4432
|
]
|
|
4364
4433
|
}
|
|
4365
4434
|
)
|
|
4366
4435
|
] });
|
|
4367
4436
|
}
|
|
4368
|
-
const k =
|
|
4437
|
+
const k = ro[o], x = {
|
|
4369
4438
|
display: "flex",
|
|
4370
4439
|
flexDirection: "column",
|
|
4371
4440
|
gap: 6,
|
|
@@ -4399,7 +4468,7 @@ const to = {
|
|
|
4399
4468
|
transition: i ? "none" : "width 300ms ease-out",
|
|
4400
4469
|
animation: i ? "brycks-progress-linear-indeterminate 1.5s ease-in-out infinite" : void 0
|
|
4401
4470
|
};
|
|
4402
|
-
return /* @__PURE__ */ S(
|
|
4471
|
+
return /* @__PURE__ */ S(te, { children: [
|
|
4403
4472
|
/* @__PURE__ */ s("style", { children: `
|
|
4404
4473
|
@keyframes brycks-progress-linear-indeterminate {
|
|
4405
4474
|
0% { transform: translateX(-100%); }
|
|
@@ -4430,15 +4499,15 @@ const to = {
|
|
|
4430
4499
|
)
|
|
4431
4500
|
] });
|
|
4432
4501
|
});
|
|
4433
|
-
|
|
4434
|
-
const
|
|
4435
|
-
function
|
|
4436
|
-
const r =
|
|
4502
|
+
so.displayName = "Progress";
|
|
4503
|
+
const Xe = ye(null);
|
|
4504
|
+
function $e() {
|
|
4505
|
+
const r = fe(Xe);
|
|
4437
4506
|
if (!r)
|
|
4438
4507
|
throw new Error("Tabs components must be used within a Tabs");
|
|
4439
4508
|
return r;
|
|
4440
4509
|
}
|
|
4441
|
-
const
|
|
4510
|
+
const ao = z(function({
|
|
4442
4511
|
value: e,
|
|
4443
4512
|
defaultValue: t = "",
|
|
4444
4513
|
onChange: o,
|
|
@@ -4451,7 +4520,7 @@ const so = z(function({
|
|
|
4451
4520
|
testId: u,
|
|
4452
4521
|
...m
|
|
4453
4522
|
}, h) {
|
|
4454
|
-
const [y, f] =
|
|
4523
|
+
const [y, f] = B(t), g = e ?? y, b = j(
|
|
4455
4524
|
(x) => {
|
|
4456
4525
|
e === void 0 && f(x), o == null || o(x);
|
|
4457
4526
|
},
|
|
@@ -4462,7 +4531,7 @@ const so = z(function({
|
|
|
4462
4531
|
gap: l === "vertical" ? 24 : 0,
|
|
4463
4532
|
...d
|
|
4464
4533
|
};
|
|
4465
|
-
return /* @__PURE__ */ s(
|
|
4534
|
+
return /* @__PURE__ */ s(Xe.Provider, { value: { value: g, onChange: b, size: n, variant: a, orientation: l }, children: /* @__PURE__ */ s(
|
|
4466
4535
|
"div",
|
|
4467
4536
|
{
|
|
4468
4537
|
ref: h,
|
|
@@ -4474,9 +4543,9 @@ const so = z(function({
|
|
|
4474
4543
|
}
|
|
4475
4544
|
) });
|
|
4476
4545
|
});
|
|
4477
|
-
|
|
4478
|
-
const
|
|
4479
|
-
const { orientation: l, variant: i } =
|
|
4546
|
+
ao.displayName = "Tabs";
|
|
4547
|
+
const io = z(function({ className: e, style: t, children: o, ...n }, a) {
|
|
4548
|
+
const { orientation: l, variant: i } = $e(), d = {
|
|
4480
4549
|
display: "flex",
|
|
4481
4550
|
flexDirection: l === "vertical" ? "column" : "row",
|
|
4482
4551
|
gap: i === "enclosed" || l === "vertical" ? 4 : 0,
|
|
@@ -4502,13 +4571,13 @@ const ao = z(function({ className: e, style: t, children: o, ...n }, a) {
|
|
|
4502
4571
|
}
|
|
4503
4572
|
);
|
|
4504
4573
|
});
|
|
4505
|
-
|
|
4506
|
-
const
|
|
4574
|
+
io.displayName = "TabList";
|
|
4575
|
+
const lo = {
|
|
4507
4576
|
sm: { fontSize: 13, padding: "6px 12px", height: 32 },
|
|
4508
4577
|
md: { fontSize: 14, padding: "8px 16px", height: 40 },
|
|
4509
4578
|
lg: { fontSize: 16, padding: "10px 20px", height: 48 }
|
|
4510
|
-
},
|
|
4511
|
-
const { value: c, onChange: u, size: m, variant: h, orientation: y } =
|
|
4579
|
+
}, co = z(function({ value: e, disabled: t = !1, icon: o, className: n, style: a, children: l, ...i }, d) {
|
|
4580
|
+
const { value: c, onChange: u, size: m, variant: h, orientation: y } = $e(), f = c === e, g = lo[m], b = () => {
|
|
4512
4581
|
t || u(e);
|
|
4513
4582
|
}, k = (v) => {
|
|
4514
4583
|
var I, w, T;
|
|
@@ -4578,24 +4647,24 @@ const io = {
|
|
|
4578
4647
|
}
|
|
4579
4648
|
);
|
|
4580
4649
|
});
|
|
4581
|
-
|
|
4582
|
-
const
|
|
4650
|
+
co.displayName = "Tab";
|
|
4651
|
+
const uo = z(function({ className: e, style: t, children: o, ...n }, a) {
|
|
4583
4652
|
const l = {
|
|
4584
4653
|
flex: 1,
|
|
4585
4654
|
...t
|
|
4586
4655
|
};
|
|
4587
4656
|
return /* @__PURE__ */ s("div", { ref: a, className: M("brycks-tab-panels", e), style: l, ...n, children: o });
|
|
4588
4657
|
});
|
|
4589
|
-
|
|
4590
|
-
const
|
|
4591
|
-
const { value: i } =
|
|
4658
|
+
uo.displayName = "TabPanels";
|
|
4659
|
+
const yo = z(function({ value: e, className: t, style: o, children: n, ...a }, l) {
|
|
4660
|
+
const { value: i } = $e();
|
|
4592
4661
|
if (!(i === e)) return null;
|
|
4593
4662
|
const c = {
|
|
4594
4663
|
padding: "16px 0",
|
|
4595
4664
|
animation: "brycks-tab-panel-in 200ms ease-out",
|
|
4596
4665
|
...o
|
|
4597
4666
|
};
|
|
4598
|
-
return /* @__PURE__ */ S(
|
|
4667
|
+
return /* @__PURE__ */ S(te, { children: [
|
|
4599
4668
|
/* @__PURE__ */ s("style", { children: `
|
|
4600
4669
|
@keyframes brycks-tab-panel-in {
|
|
4601
4670
|
from { opacity: 0; }
|
|
@@ -4616,15 +4685,15 @@ const uo = z(function({ value: e, className: t, style: o, children: n, ...a }, l
|
|
|
4616
4685
|
)
|
|
4617
4686
|
] });
|
|
4618
4687
|
});
|
|
4619
|
-
|
|
4620
|
-
const
|
|
4621
|
-
function
|
|
4622
|
-
const r =
|
|
4688
|
+
yo.displayName = "TabPanel";
|
|
4689
|
+
const Ye = ye(null);
|
|
4690
|
+
function Ke() {
|
|
4691
|
+
const r = fe(Ye);
|
|
4623
4692
|
if (!r)
|
|
4624
4693
|
throw new Error("AccordionItem must be used within an Accordion");
|
|
4625
4694
|
return r;
|
|
4626
4695
|
}
|
|
4627
|
-
const
|
|
4696
|
+
const fo = z(function({
|
|
4628
4697
|
value: e,
|
|
4629
4698
|
defaultValue: t = [],
|
|
4630
4699
|
onChange: o,
|
|
@@ -4636,7 +4705,7 @@ const yo = z(function({
|
|
|
4636
4705
|
testId: c,
|
|
4637
4706
|
...u
|
|
4638
4707
|
}, m) {
|
|
4639
|
-
const [h, y] =
|
|
4708
|
+
const [h, y] = B(t), f = e ?? h, g = j(
|
|
4640
4709
|
(k) => {
|
|
4641
4710
|
const x = f.includes(k);
|
|
4642
4711
|
let v;
|
|
@@ -4649,7 +4718,7 @@ const yo = z(function({
|
|
|
4649
4718
|
gap: a === "separated" ? 8 : 0,
|
|
4650
4719
|
...i
|
|
4651
4720
|
};
|
|
4652
|
-
return /* @__PURE__ */ s(
|
|
4721
|
+
return /* @__PURE__ */ s(Ye.Provider, { value: { expandedItems: f, toggleItem: g, allowMultiple: n, variant: a }, children: /* @__PURE__ */ s(
|
|
4653
4722
|
"div",
|
|
4654
4723
|
{
|
|
4655
4724
|
ref: m,
|
|
@@ -4661,23 +4730,23 @@ const yo = z(function({
|
|
|
4661
4730
|
}
|
|
4662
4731
|
) });
|
|
4663
4732
|
});
|
|
4664
|
-
|
|
4665
|
-
const
|
|
4666
|
-
function
|
|
4667
|
-
const r =
|
|
4733
|
+
fo.displayName = "Accordion";
|
|
4734
|
+
const Ge = ye(null);
|
|
4735
|
+
function qe() {
|
|
4736
|
+
const r = fe(Ge);
|
|
4668
4737
|
if (!r)
|
|
4669
4738
|
throw new Error("AccordionTrigger/AccordionContent must be used within an AccordionItem");
|
|
4670
4739
|
return r;
|
|
4671
4740
|
}
|
|
4672
|
-
const
|
|
4673
|
-
const { expandedItems: d, variant: c } =
|
|
4741
|
+
const bo = z(function({ value: e, disabled: t = !1, className: o, style: n, children: a, ...l }, i) {
|
|
4742
|
+
const { expandedItems: d, variant: c } = Ke(), u = d.includes(e), m = {
|
|
4674
4743
|
borderBottom: c === "default" ? "1px solid var(--brycks-border-muted)" : void 0,
|
|
4675
4744
|
border: c === "bordered" || c === "separated" ? "1px solid var(--brycks-border-default)" : void 0,
|
|
4676
4745
|
borderRadius: c === "separated" ? "var(--brycks-radius-lg)" : void 0,
|
|
4677
4746
|
overflow: "hidden",
|
|
4678
4747
|
...n
|
|
4679
4748
|
};
|
|
4680
|
-
return c === "bordered" && !u && (m.borderBottom = "1px solid var(--brycks-border-default)"), /* @__PURE__ */ s(
|
|
4749
|
+
return c === "bordered" && !u && (m.borderBottom = "1px solid var(--brycks-border-default)"), /* @__PURE__ */ s(Ge.Provider, { value: { value: e, isExpanded: u, disabled: t }, children: /* @__PURE__ */ s(
|
|
4681
4750
|
"div",
|
|
4682
4751
|
{
|
|
4683
4752
|
ref: i,
|
|
@@ -4688,8 +4757,8 @@ const fo = z(function({ value: e, disabled: t = !1, className: o, style: n, chil
|
|
|
4688
4757
|
}
|
|
4689
4758
|
) });
|
|
4690
4759
|
});
|
|
4691
|
-
|
|
4692
|
-
function
|
|
4760
|
+
bo.displayName = "AccordionItem";
|
|
4761
|
+
function mo({ isExpanded: r }) {
|
|
4693
4762
|
return /* @__PURE__ */ s(
|
|
4694
4763
|
"svg",
|
|
4695
4764
|
{
|
|
@@ -4714,8 +4783,8 @@ function bo({ isExpanded: r }) {
|
|
|
4714
4783
|
}
|
|
4715
4784
|
);
|
|
4716
4785
|
}
|
|
4717
|
-
const
|
|
4718
|
-
const { toggleItem: i } =
|
|
4786
|
+
const go = z(function({ icon: e, className: t, style: o, children: n, ...a }, l) {
|
|
4787
|
+
const { toggleItem: i } = Ke(), { value: d, isExpanded: c, disabled: u } = qe(), m = () => {
|
|
4719
4788
|
u || i(d);
|
|
4720
4789
|
}, h = {
|
|
4721
4790
|
display: "flex",
|
|
@@ -4754,14 +4823,14 @@ const mo = z(function({ icon: e, className: t, style: o, children: n, ...a }, l)
|
|
|
4754
4823
|
...a,
|
|
4755
4824
|
children: [
|
|
4756
4825
|
n,
|
|
4757
|
-
/* @__PURE__ */ s("span", { style: { color: "var(--brycks-foreground-muted)", flexShrink: 0, marginLeft: 12 }, children: e ?? /* @__PURE__ */ s(
|
|
4826
|
+
/* @__PURE__ */ s("span", { style: { color: "var(--brycks-foreground-muted)", flexShrink: 0, marginLeft: 12 }, children: e ?? /* @__PURE__ */ s(mo, { isExpanded: c }) })
|
|
4758
4827
|
]
|
|
4759
4828
|
}
|
|
4760
4829
|
);
|
|
4761
4830
|
});
|
|
4762
|
-
|
|
4763
|
-
const
|
|
4764
|
-
const { isExpanded: l } =
|
|
4831
|
+
go.displayName = "AccordionTrigger";
|
|
4832
|
+
const ho = z(function({ className: e, style: t, children: o, ...n }, a) {
|
|
4833
|
+
const { isExpanded: l } = qe(), i = {
|
|
4765
4834
|
overflow: "hidden",
|
|
4766
4835
|
transition: "max-height 200ms ease-out, opacity 200ms ease-out",
|
|
4767
4836
|
maxHeight: l ? "1000px" : "0",
|
|
@@ -4786,15 +4855,15 @@ const go = z(function({ className: e, style: t, children: o, ...n }, a) {
|
|
|
4786
4855
|
}
|
|
4787
4856
|
);
|
|
4788
4857
|
});
|
|
4789
|
-
|
|
4790
|
-
const
|
|
4791
|
-
function
|
|
4792
|
-
const r =
|
|
4858
|
+
ho.displayName = "AccordionContent";
|
|
4859
|
+
const _e = ye(null);
|
|
4860
|
+
function po() {
|
|
4861
|
+
const r = fe(_e);
|
|
4793
4862
|
if (!r)
|
|
4794
4863
|
throw new Error("Dropdown components must be used within a Dropdown");
|
|
4795
4864
|
return r;
|
|
4796
4865
|
}
|
|
4797
|
-
const
|
|
4866
|
+
const ko = z(function({
|
|
4798
4867
|
trigger: e,
|
|
4799
4868
|
isOpen: t,
|
|
4800
4869
|
defaultOpen: o = !1,
|
|
@@ -4808,93 +4877,93 @@ const po = z(function({
|
|
|
4808
4877
|
testId: m,
|
|
4809
4878
|
...h
|
|
4810
4879
|
}, y) {
|
|
4811
|
-
var
|
|
4812
|
-
const [f, g] =
|
|
4813
|
-
|
|
4814
|
-
const T =
|
|
4815
|
-
(
|
|
4816
|
-
t === void 0 && g(
|
|
4880
|
+
var P;
|
|
4881
|
+
const [f, g] = B(o), [b, k] = B({ top: 0, left: 0 }), [x, v] = B(-1), [C, N] = B(!1), p = Q(null), I = Q(null), w = t ?? f;
|
|
4882
|
+
X(() => (N(!0), () => N(!1)), []);
|
|
4883
|
+
const T = j(
|
|
4884
|
+
(H) => {
|
|
4885
|
+
t === void 0 && g(H), n == null || n(H), H || v(-1);
|
|
4817
4886
|
},
|
|
4818
4887
|
[t, n]
|
|
4819
|
-
),
|
|
4820
|
-
|
|
4888
|
+
), $ = j(() => T(!1), [T]);
|
|
4889
|
+
X(() => {
|
|
4821
4890
|
if (!w || !p.current || !C) return;
|
|
4822
|
-
const
|
|
4823
|
-
const
|
|
4824
|
-
if (!
|
|
4825
|
-
const
|
|
4826
|
-
let
|
|
4827
|
-
a.startsWith("bottom") ?
|
|
4891
|
+
const H = () => {
|
|
4892
|
+
const R = p.current;
|
|
4893
|
+
if (!R) return;
|
|
4894
|
+
const A = R.getBoundingClientRect(), J = window.scrollX, _ = window.scrollY;
|
|
4895
|
+
let F = 0, V = 0;
|
|
4896
|
+
a.startsWith("bottom") ? F = A.bottom + _ + l : F = A.top + _ - l, a.endsWith("start") ? V = A.left + J : V = A.right + J, k({ top: F, left: V });
|
|
4828
4897
|
};
|
|
4829
|
-
return
|
|
4830
|
-
window.removeEventListener("resize",
|
|
4898
|
+
return H(), window.addEventListener("resize", H), window.addEventListener("scroll", H, !0), () => {
|
|
4899
|
+
window.removeEventListener("resize", H), window.removeEventListener("scroll", H, !0);
|
|
4831
4900
|
};
|
|
4832
|
-
}, [w, a, l, C]),
|
|
4901
|
+
}, [w, a, l, C]), X(() => {
|
|
4833
4902
|
if (!w) return;
|
|
4834
|
-
const
|
|
4835
|
-
var
|
|
4836
|
-
(
|
|
4903
|
+
const H = (R) => {
|
|
4904
|
+
var A, J;
|
|
4905
|
+
(A = p.current) != null && A.contains(R.target) || (J = I.current) != null && J.contains(R.target) || T(!1);
|
|
4837
4906
|
};
|
|
4838
|
-
return document.addEventListener("mousedown",
|
|
4907
|
+
return document.addEventListener("mousedown", H), () => document.removeEventListener("mousedown", H);
|
|
4839
4908
|
}, [w, T]);
|
|
4840
|
-
const L =
|
|
4841
|
-
(
|
|
4842
|
-
var
|
|
4909
|
+
const L = j(
|
|
4910
|
+
(H) => {
|
|
4911
|
+
var A, J, _;
|
|
4843
4912
|
if (!w) {
|
|
4844
|
-
(
|
|
4913
|
+
(H.key === "ArrowDown" || H.key === "Enter" || H.key === " ") && (H.preventDefault(), T(!0));
|
|
4845
4914
|
return;
|
|
4846
4915
|
}
|
|
4847
|
-
const
|
|
4848
|
-
if (
|
|
4849
|
-
switch (
|
|
4916
|
+
const R = (A = I.current) == null ? void 0 : A.querySelectorAll('[role="menuitem"]:not([aria-disabled="true"])');
|
|
4917
|
+
if (R != null && R.length)
|
|
4918
|
+
switch (H.key) {
|
|
4850
4919
|
case "ArrowDown":
|
|
4851
|
-
|
|
4920
|
+
H.preventDefault(), v((F) => (F + 1) % R.length);
|
|
4852
4921
|
break;
|
|
4853
4922
|
case "ArrowUp":
|
|
4854
|
-
|
|
4923
|
+
H.preventDefault(), v((F) => (F - 1 + R.length) % R.length);
|
|
4855
4924
|
break;
|
|
4856
4925
|
case "Home":
|
|
4857
|
-
|
|
4926
|
+
H.preventDefault(), v(0);
|
|
4858
4927
|
break;
|
|
4859
4928
|
case "End":
|
|
4860
|
-
|
|
4929
|
+
H.preventDefault(), v(R.length - 1);
|
|
4861
4930
|
break;
|
|
4862
4931
|
case "Escape":
|
|
4863
|
-
|
|
4932
|
+
H.preventDefault(), T(!1), (J = p.current) == null || J.focus();
|
|
4864
4933
|
break;
|
|
4865
4934
|
case "Enter":
|
|
4866
4935
|
case " ":
|
|
4867
|
-
|
|
4936
|
+
H.preventDefault(), x >= 0 && ((_ = R[x]) == null || _.click());
|
|
4868
4937
|
break;
|
|
4869
4938
|
}
|
|
4870
4939
|
},
|
|
4871
4940
|
[w, x, T]
|
|
4872
4941
|
);
|
|
4873
|
-
|
|
4874
|
-
var
|
|
4942
|
+
X(() => {
|
|
4943
|
+
var R, A;
|
|
4875
4944
|
if (!w || x < 0) return;
|
|
4876
|
-
const
|
|
4877
|
-
(
|
|
4945
|
+
const H = (R = I.current) == null ? void 0 : R.querySelectorAll('[role="menuitem"]:not([aria-disabled="true"])');
|
|
4946
|
+
(A = H == null ? void 0 : H[x]) == null || A.focus();
|
|
4878
4947
|
}, [w, x]);
|
|
4879
|
-
const
|
|
4948
|
+
const E = e.props, W = Le(e, {
|
|
4880
4949
|
ref: p,
|
|
4881
4950
|
"aria-haspopup": "menu",
|
|
4882
4951
|
"aria-expanded": w,
|
|
4883
|
-
onClick: (
|
|
4884
|
-
var
|
|
4885
|
-
(
|
|
4952
|
+
onClick: (H) => {
|
|
4953
|
+
var R;
|
|
4954
|
+
(R = E.onClick) == null || R.call(E, H), T(!w);
|
|
4886
4955
|
},
|
|
4887
|
-
onKeyDown: (
|
|
4888
|
-
var
|
|
4889
|
-
(
|
|
4956
|
+
onKeyDown: (H) => {
|
|
4957
|
+
var R;
|
|
4958
|
+
(R = E.onKeyDown) == null || R.call(E, H), L(H);
|
|
4890
4959
|
}
|
|
4891
|
-
}),
|
|
4960
|
+
}), q = {
|
|
4892
4961
|
position: "absolute",
|
|
4893
4962
|
top: b.top,
|
|
4894
4963
|
left: a.endsWith("end") ? "auto" : b.left,
|
|
4895
4964
|
right: a.endsWith("end") ? window.innerWidth - b.left : "auto",
|
|
4896
4965
|
zIndex: "var(--brycks-z-dropdown)",
|
|
4897
|
-
minWidth: ((
|
|
4966
|
+
minWidth: ((P = p.current) == null ? void 0 : P.offsetWidth) ?? 160,
|
|
4898
4967
|
backgroundColor: "var(--brycks-background-elevated)",
|
|
4899
4968
|
border: "1px solid var(--brycks-border-default)",
|
|
4900
4969
|
borderRadius: "var(--brycks-radius-lg)",
|
|
@@ -4904,7 +4973,7 @@ const po = z(function({
|
|
|
4904
4973
|
outline: "none",
|
|
4905
4974
|
...c
|
|
4906
4975
|
};
|
|
4907
|
-
return /* @__PURE__ */ s(
|
|
4976
|
+
return /* @__PURE__ */ s(_e.Provider, { value: { isOpen: w, close: i ? $ : () => {
|
|
4908
4977
|
}, activeIndex: x, setActiveIndex: v }, children: /* @__PURE__ */ S(
|
|
4909
4978
|
"div",
|
|
4910
4979
|
{
|
|
@@ -4914,9 +4983,9 @@ const po = z(function({
|
|
|
4914
4983
|
"data-testid": m,
|
|
4915
4984
|
...h,
|
|
4916
4985
|
children: [
|
|
4917
|
-
|
|
4918
|
-
w && C &&
|
|
4919
|
-
/* @__PURE__ */ S(
|
|
4986
|
+
W,
|
|
4987
|
+
w && C && pe(
|
|
4988
|
+
/* @__PURE__ */ S(te, { children: [
|
|
4920
4989
|
/* @__PURE__ */ s("style", { children: `
|
|
4921
4990
|
@keyframes brycks-dropdown-in {
|
|
4922
4991
|
from { opacity: 0; transform: translateY(-4px); }
|
|
@@ -4928,7 +4997,7 @@ const po = z(function({
|
|
|
4928
4997
|
{
|
|
4929
4998
|
ref: I,
|
|
4930
4999
|
role: "menu",
|
|
4931
|
-
style:
|
|
5000
|
+
style: q,
|
|
4932
5001
|
onKeyDown: L,
|
|
4933
5002
|
tabIndex: -1,
|
|
4934
5003
|
children: u
|
|
@@ -4941,9 +5010,9 @@ const po = z(function({
|
|
|
4941
5010
|
}
|
|
4942
5011
|
) });
|
|
4943
5012
|
});
|
|
4944
|
-
|
|
4945
|
-
const
|
|
4946
|
-
const { close: m } =
|
|
5013
|
+
ko.displayName = "Dropdown";
|
|
5014
|
+
const vo = z(function({ disabled: e = !1, icon: t, shortcut: o, destructive: n = !1, className: a, style: l, children: i, onClick: d, ...c }, u) {
|
|
5015
|
+
const { close: m } = po(), h = (b) => {
|
|
4947
5016
|
e || (d == null || d(b), m());
|
|
4948
5017
|
}, y = {
|
|
4949
5018
|
display: "flex",
|
|
@@ -5000,8 +5069,8 @@ const ko = z(function({ disabled: e = !1, icon: t, shortcut: o, destructive: n =
|
|
|
5000
5069
|
}
|
|
5001
5070
|
);
|
|
5002
5071
|
});
|
|
5003
|
-
|
|
5004
|
-
const
|
|
5072
|
+
vo.displayName = "DropdownItem";
|
|
5073
|
+
const xo = z(function({ className: e, style: t, ...o }, n) {
|
|
5005
5074
|
const a = {
|
|
5006
5075
|
height: 1,
|
|
5007
5076
|
backgroundColor: "var(--brycks-border-muted)",
|
|
@@ -5019,8 +5088,8 @@ const vo = z(function({ className: e, style: t, ...o }, n) {
|
|
|
5019
5088
|
}
|
|
5020
5089
|
);
|
|
5021
5090
|
});
|
|
5022
|
-
|
|
5023
|
-
const
|
|
5091
|
+
xo.displayName = "DropdownDivider";
|
|
5092
|
+
const So = z(function({ className: e, style: t, children: o, ...n }, a) {
|
|
5024
5093
|
const l = {
|
|
5025
5094
|
padding: "8px 12px 4px 12px",
|
|
5026
5095
|
fontSize: 11,
|
|
@@ -5041,15 +5110,15 @@ const xo = z(function({ className: e, style: t, children: o, ...n }, a) {
|
|
|
5041
5110
|
}
|
|
5042
5111
|
);
|
|
5043
5112
|
});
|
|
5044
|
-
|
|
5045
|
-
const
|
|
5046
|
-
function
|
|
5047
|
-
const r =
|
|
5113
|
+
So.displayName = "DropdownLabel";
|
|
5114
|
+
const Ue = ye(null);
|
|
5115
|
+
function Ze() {
|
|
5116
|
+
const r = fe(Ue);
|
|
5048
5117
|
if (!r)
|
|
5049
5118
|
throw new Error("Menu components must be used within a Menu");
|
|
5050
5119
|
return r;
|
|
5051
5120
|
}
|
|
5052
|
-
const
|
|
5121
|
+
const wo = z(function({
|
|
5053
5122
|
activeItem: e,
|
|
5054
5123
|
onChange: t,
|
|
5055
5124
|
size: o = "md",
|
|
@@ -5060,7 +5129,7 @@ const So = z(function({
|
|
|
5060
5129
|
testId: d,
|
|
5061
5130
|
...c
|
|
5062
5131
|
}, u) {
|
|
5063
|
-
const [m, h] =
|
|
5132
|
+
const [m, h] = B(null), y = e !== void 0 ? e : m, f = (b) => {
|
|
5064
5133
|
e === void 0 && h(b), t == null || t(b);
|
|
5065
5134
|
}, g = {
|
|
5066
5135
|
display: "flex",
|
|
@@ -5069,7 +5138,7 @@ const So = z(function({
|
|
|
5069
5138
|
padding: 8,
|
|
5070
5139
|
...l
|
|
5071
5140
|
};
|
|
5072
|
-
return /* @__PURE__ */ s(
|
|
5141
|
+
return /* @__PURE__ */ s(Ue.Provider, { value: { size: o, activeItem: y, setActiveItem: f, collapsed: n }, children: /* @__PURE__ */ s(
|
|
5073
5142
|
"nav",
|
|
5074
5143
|
{
|
|
5075
5144
|
ref: u,
|
|
@@ -5081,13 +5150,13 @@ const So = z(function({
|
|
|
5081
5150
|
}
|
|
5082
5151
|
) });
|
|
5083
5152
|
});
|
|
5084
|
-
|
|
5085
|
-
const
|
|
5153
|
+
wo.displayName = "Menu";
|
|
5154
|
+
const Co = {
|
|
5086
5155
|
sm: { height: 32, fontSize: 13, iconSize: 16, padding: 10 },
|
|
5087
5156
|
md: { height: 40, fontSize: 14, iconSize: 18, padding: 12 },
|
|
5088
5157
|
lg: { height: 48, fontSize: 16, iconSize: 20, padding: 14 }
|
|
5089
|
-
},
|
|
5090
|
-
const { size: m, activeItem: h, setActiveItem: y, collapsed: f } =
|
|
5158
|
+
}, zo = z(function({ value: e, icon: t, badge: o, disabled: n = !1, onClick: a, className: l, style: i, children: d, ...c }, u) {
|
|
5159
|
+
const { size: m, activeItem: h, setActiveItem: y, collapsed: f } = Ze(), g = h === e, b = Co[m], k = () => {
|
|
5091
5160
|
n || (y(e), a == null || a(e));
|
|
5092
5161
|
}, x = {
|
|
5093
5162
|
display: "flex",
|
|
@@ -5143,9 +5212,9 @@ const wo = {
|
|
|
5143
5212
|
}
|
|
5144
5213
|
);
|
|
5145
5214
|
});
|
|
5146
|
-
|
|
5147
|
-
const
|
|
5148
|
-
const { collapsed: i } =
|
|
5215
|
+
zo.displayName = "MenuItem";
|
|
5216
|
+
const Mo = z(function({ label: e, className: t, style: o, children: n, ...a }, l) {
|
|
5217
|
+
const { collapsed: i } = Ze(), d = {
|
|
5149
5218
|
display: "flex",
|
|
5150
5219
|
flexDirection: "column",
|
|
5151
5220
|
gap: 2,
|
|
@@ -5163,8 +5232,8 @@ const zo = z(function({ label: e, className: t, style: o, children: n, ...a }, l
|
|
|
5163
5232
|
n
|
|
5164
5233
|
] });
|
|
5165
5234
|
});
|
|
5166
|
-
|
|
5167
|
-
const
|
|
5235
|
+
Mo.displayName = "MenuGroup";
|
|
5236
|
+
const Io = z(function({ className: e, style: t, ...o }, n) {
|
|
5168
5237
|
const a = {
|
|
5169
5238
|
height: 1,
|
|
5170
5239
|
backgroundColor: "var(--brycks-border-muted)",
|
|
@@ -5182,22 +5251,22 @@ const Mo = z(function({ className: e, style: t, ...o }, n) {
|
|
|
5182
5251
|
}
|
|
5183
5252
|
);
|
|
5184
5253
|
});
|
|
5185
|
-
|
|
5186
|
-
const
|
|
5254
|
+
Io.displayName = "MenuDivider";
|
|
5255
|
+
const To = {
|
|
5187
5256
|
sm: { height: 28, fontSize: 12, gap: 4, minWidth: 28 },
|
|
5188
5257
|
md: { height: 36, fontSize: 14, gap: 6, minWidth: 36 },
|
|
5189
5258
|
lg: { height: 44, fontSize: 16, gap: 8, minWidth: 44 }
|
|
5190
5259
|
};
|
|
5191
|
-
function
|
|
5260
|
+
function Lo() {
|
|
5192
5261
|
return /* @__PURE__ */ s("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ s("path", { d: "M10 12L6 8l4-4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
5193
5262
|
}
|
|
5194
|
-
function
|
|
5263
|
+
function No() {
|
|
5195
5264
|
return /* @__PURE__ */ s("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ s("path", { d: "M6 4l4 4-4 4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
5196
5265
|
}
|
|
5197
|
-
function
|
|
5266
|
+
function $o() {
|
|
5198
5267
|
return /* @__PURE__ */ s("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ s("path", { d: "M11 12l-4-4 4-4M7 12l-4-4 4-4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
5199
5268
|
}
|
|
5200
|
-
function
|
|
5269
|
+
function Ho() {
|
|
5201
5270
|
return /* @__PURE__ */ s("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ s("path", { d: "M5 4l4 4-4 4M9 4l4 4-4 4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
5202
5271
|
}
|
|
5203
5272
|
const Wo = z(function({
|
|
@@ -5215,12 +5284,12 @@ const Wo = z(function({
|
|
|
5215
5284
|
testId: h,
|
|
5216
5285
|
...y
|
|
5217
5286
|
}, f) {
|
|
5218
|
-
const g =
|
|
5287
|
+
const g = To[n], b = at(() => {
|
|
5219
5288
|
if (a === "minimal" || a === "simple")
|
|
5220
5289
|
return [];
|
|
5221
|
-
const p = [], I = Math.max(e - l, 1), w = Math.min(e + l, t), T = I > 2,
|
|
5290
|
+
const p = [], I = Math.max(e - l, 1), w = Math.min(e + l, t), T = I > 2, $ = w < t - 1;
|
|
5222
5291
|
if (T)
|
|
5223
|
-
if (
|
|
5292
|
+
if ($) {
|
|
5224
5293
|
p.push(1), p.push("ellipsis");
|
|
5225
5294
|
for (let L = I; L <= w; L++)
|
|
5226
5295
|
p.push(L);
|
|
@@ -5233,7 +5302,7 @@ const Wo = z(function({
|
|
|
5233
5302
|
else {
|
|
5234
5303
|
for (let L = 1; L <= Math.min(3 + l, t); L++)
|
|
5235
5304
|
p.push(L);
|
|
5236
|
-
|
|
5305
|
+
$ && (p.push("ellipsis"), p.push(t));
|
|
5237
5306
|
}
|
|
5238
5307
|
return p;
|
|
5239
5308
|
}, [e, t, l, a]), k = {
|
|
@@ -5297,7 +5366,7 @@ const Wo = z(function({
|
|
|
5297
5366
|
onMouseLeave: (p) => {
|
|
5298
5367
|
p.currentTarget.style.backgroundColor = "transparent";
|
|
5299
5368
|
},
|
|
5300
|
-
children: /* @__PURE__ */ s(
|
|
5369
|
+
children: /* @__PURE__ */ s($o, {})
|
|
5301
5370
|
}
|
|
5302
5371
|
),
|
|
5303
5372
|
d && /* @__PURE__ */ s(
|
|
@@ -5314,7 +5383,7 @@ const Wo = z(function({
|
|
|
5314
5383
|
onMouseLeave: (p) => {
|
|
5315
5384
|
p.currentTarget.style.backgroundColor = "transparent";
|
|
5316
5385
|
},
|
|
5317
|
-
children: /* @__PURE__ */ s(
|
|
5386
|
+
children: /* @__PURE__ */ s(Lo, {})
|
|
5318
5387
|
}
|
|
5319
5388
|
),
|
|
5320
5389
|
a === "simple" || a === "minimal" ? /* @__PURE__ */ s("span", { style: C, children: a === "minimal" ? `${e} / ${t}` : `Page ${e} of ${t}` }) : b.map(
|
|
@@ -5352,7 +5421,7 @@ const Wo = z(function({
|
|
|
5352
5421
|
onMouseLeave: (p) => {
|
|
5353
5422
|
p.currentTarget.style.backgroundColor = "transparent";
|
|
5354
5423
|
},
|
|
5355
|
-
children: /* @__PURE__ */ s(
|
|
5424
|
+
children: /* @__PURE__ */ s(No, {})
|
|
5356
5425
|
}
|
|
5357
5426
|
),
|
|
5358
5427
|
i && a !== "minimal" && /* @__PURE__ */ s(
|
|
@@ -5369,7 +5438,7 @@ const Wo = z(function({
|
|
|
5369
5438
|
onMouseLeave: (p) => {
|
|
5370
5439
|
p.currentTarget.style.backgroundColor = "transparent";
|
|
5371
5440
|
},
|
|
5372
|
-
children: /* @__PURE__ */ s(
|
|
5441
|
+
children: /* @__PURE__ */ s(Ho, {})
|
|
5373
5442
|
}
|
|
5374
5443
|
)
|
|
5375
5444
|
]
|
|
@@ -5377,15 +5446,15 @@ const Wo = z(function({
|
|
|
5377
5446
|
);
|
|
5378
5447
|
});
|
|
5379
5448
|
Wo.displayName = "Pagination";
|
|
5380
|
-
const
|
|
5449
|
+
const Qe = {
|
|
5381
5450
|
sm: { fontSize: 12, gap: 6, iconSize: 12 },
|
|
5382
5451
|
md: { fontSize: 14, gap: 8, iconSize: 14 },
|
|
5383
5452
|
lg: { fontSize: 16, gap: 10, iconSize: 16 }
|
|
5384
5453
|
};
|
|
5385
|
-
function
|
|
5454
|
+
function Do({ size: r }) {
|
|
5386
5455
|
return /* @__PURE__ */ s("svg", { width: r, height: r, viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ s("path", { d: "M6 4l4 4-4 4", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
5387
5456
|
}
|
|
5388
|
-
const
|
|
5457
|
+
const Bo = z(function({
|
|
5389
5458
|
separator: e,
|
|
5390
5459
|
size: t = "md",
|
|
5391
5460
|
maxItems: o,
|
|
@@ -5395,7 +5464,7 @@ const Do = z(function({
|
|
|
5395
5464
|
testId: i,
|
|
5396
5465
|
...d
|
|
5397
5466
|
}, c) {
|
|
5398
|
-
const u =
|
|
5467
|
+
const u = Qe[t], m = it.toArray(l).filter(lt);
|
|
5399
5468
|
let h = m, y = !1;
|
|
5400
5469
|
if (o && m.length > o) {
|
|
5401
5470
|
const v = Math.floor((o - 1) / 2);
|
|
@@ -5424,7 +5493,7 @@ const Do = z(function({
|
|
|
5424
5493
|
alignItems: "center",
|
|
5425
5494
|
color: "var(--brycks-foreground-muted)",
|
|
5426
5495
|
fontSize: u.fontSize
|
|
5427
|
-
}, x = () => /* @__PURE__ */ s("span", { style: b, "aria-hidden": "true", children: e ?? /* @__PURE__ */ s(
|
|
5496
|
+
}, x = () => /* @__PURE__ */ s("span", { style: b, "aria-hidden": "true", children: e ?? /* @__PURE__ */ s(Do, { size: u.iconSize }) });
|
|
5428
5497
|
return /* @__PURE__ */ s(
|
|
5429
5498
|
"nav",
|
|
5430
5499
|
{
|
|
@@ -5437,11 +5506,11 @@ const Do = z(function({
|
|
|
5437
5506
|
children: /* @__PURE__ */ s("ol", { style: g, children: h.map((v, C) => {
|
|
5438
5507
|
const N = C === h.length - 1, p = !N, I = y && C === Math.floor((o - 1) / 2) - 1;
|
|
5439
5508
|
return /* @__PURE__ */ S("li", { style: { display: "flex", alignItems: "center", gap: u.gap }, children: [
|
|
5440
|
-
|
|
5509
|
+
Le(v, {
|
|
5441
5510
|
isCurrentPage: N,
|
|
5442
5511
|
size: t
|
|
5443
5512
|
}),
|
|
5444
|
-
I && /* @__PURE__ */ S(
|
|
5513
|
+
I && /* @__PURE__ */ S(te, { children: [
|
|
5445
5514
|
x(),
|
|
5446
5515
|
/* @__PURE__ */ s("span", { style: k, children: "..." })
|
|
5447
5516
|
] }),
|
|
@@ -5451,8 +5520,8 @@ const Do = z(function({
|
|
|
5451
5520
|
}
|
|
5452
5521
|
);
|
|
5453
5522
|
});
|
|
5454
|
-
|
|
5455
|
-
const
|
|
5523
|
+
Bo.displayName = "Breadcrumb";
|
|
5524
|
+
const Eo = z(function({
|
|
5456
5525
|
as: e = "a",
|
|
5457
5526
|
href: t,
|
|
5458
5527
|
icon: o,
|
|
@@ -5463,7 +5532,7 @@ const Bo = z(function({
|
|
|
5463
5532
|
children: d,
|
|
5464
5533
|
...c
|
|
5465
5534
|
}, u) {
|
|
5466
|
-
const m =
|
|
5535
|
+
const m = Qe[a], h = {
|
|
5467
5536
|
display: "inline-flex",
|
|
5468
5537
|
alignItems: "center",
|
|
5469
5538
|
gap: 6,
|
|
@@ -5505,16 +5574,16 @@ const Bo = z(function({
|
|
|
5505
5574
|
}
|
|
5506
5575
|
);
|
|
5507
5576
|
});
|
|
5508
|
-
|
|
5509
|
-
const
|
|
5510
|
-
function
|
|
5511
|
-
return
|
|
5577
|
+
Eo.displayName = "BreadcrumbItem";
|
|
5578
|
+
const Je = ye({ size: "md", variant: "default" });
|
|
5579
|
+
function He() {
|
|
5580
|
+
return fe(Je);
|
|
5512
5581
|
}
|
|
5513
5582
|
const We = {
|
|
5514
5583
|
sm: { fontSize: 13, padding: "8px 12px", headerPadding: "8px 12px" },
|
|
5515
5584
|
md: { fontSize: 14, padding: "12px 16px", headerPadding: "12px 16px" },
|
|
5516
5585
|
lg: { fontSize: 15, padding: "16px 20px", headerPadding: "14px 20px" }
|
|
5517
|
-
},
|
|
5586
|
+
}, Ro = z(function({
|
|
5518
5587
|
size: e = "md",
|
|
5519
5588
|
variant: t = "default",
|
|
5520
5589
|
stickyHeader: o = !1,
|
|
@@ -5538,7 +5607,7 @@ const We = {
|
|
|
5538
5607
|
opacity: n ? 0.6 : 1,
|
|
5539
5608
|
transition: "opacity 150ms ease-out"
|
|
5540
5609
|
};
|
|
5541
|
-
return /* @__PURE__ */ s(
|
|
5610
|
+
return /* @__PURE__ */ s(Je.Provider, { value: { size: e, variant: t }, children: /* @__PURE__ */ s("div", { className: "brycks-table-container", style: m, children: /* @__PURE__ */ s(
|
|
5542
5611
|
"table",
|
|
5543
5612
|
{
|
|
5544
5613
|
ref: u,
|
|
@@ -5550,8 +5619,8 @@ const We = {
|
|
|
5550
5619
|
}
|
|
5551
5620
|
) }) });
|
|
5552
5621
|
});
|
|
5553
|
-
|
|
5554
|
-
const
|
|
5622
|
+
Ro.displayName = "Table";
|
|
5623
|
+
const Fo = z(function({ sticky: e = !1, className: t, style: o, children: n, ...a }, l) {
|
|
5555
5624
|
const i = {
|
|
5556
5625
|
backgroundColor: "var(--brycks-background-muted)",
|
|
5557
5626
|
position: e ? "sticky" : void 0,
|
|
@@ -5570,8 +5639,8 @@ const Ro = z(function({ sticky: e = !1, className: t, style: o, children: n, ...
|
|
|
5570
5639
|
}
|
|
5571
5640
|
);
|
|
5572
5641
|
});
|
|
5573
|
-
|
|
5574
|
-
const
|
|
5642
|
+
Fo.displayName = "TableHead";
|
|
5643
|
+
const Ao = z(function({ className: e, style: t, children: o, ...n }, a) {
|
|
5575
5644
|
const l = {
|
|
5576
5645
|
...t
|
|
5577
5646
|
};
|
|
@@ -5586,9 +5655,9 @@ const Fo = z(function({ className: e, style: t, children: o, ...n }, a) {
|
|
|
5586
5655
|
}
|
|
5587
5656
|
);
|
|
5588
5657
|
});
|
|
5589
|
-
|
|
5590
|
-
const
|
|
5591
|
-
const { variant: d } =
|
|
5658
|
+
Ao.displayName = "TableBody";
|
|
5659
|
+
const jo = z(function({ selected: e = !1, clickable: t = !1, className: o, style: n, children: a, ...l }, i) {
|
|
5660
|
+
const { variant: d } = He(), c = {
|
|
5592
5661
|
backgroundColor: e ? "var(--brycks-primary-50)" : "transparent",
|
|
5593
5662
|
borderBottom: d !== "bordered" ? "1px solid var(--brycks-border-muted)" : void 0,
|
|
5594
5663
|
cursor: t ? "pointer" : void 0,
|
|
@@ -5617,14 +5686,14 @@ const Ao = z(function({ selected: e = !1, clickable: t = !1, className: o, style
|
|
|
5617
5686
|
}
|
|
5618
5687
|
);
|
|
5619
5688
|
});
|
|
5620
|
-
|
|
5621
|
-
function
|
|
5689
|
+
jo.displayName = "TableRow";
|
|
5690
|
+
function Vo({ direction: r }) {
|
|
5622
5691
|
return r ? /* @__PURE__ */ s("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", children: r === "asc" ? /* @__PURE__ */ s("path", { d: "M7 3L10 6H4L7 3Z", fill: "currentColor" }) : /* @__PURE__ */ s("path", { d: "M7 11L4 8H10L7 11Z", fill: "currentColor" }) }) : /* @__PURE__ */ S("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", style: { opacity: 0.4 }, children: [
|
|
5623
5692
|
/* @__PURE__ */ s("path", { d: "M7 3L10 6H4L7 3Z", fill: "currentColor" }),
|
|
5624
5693
|
/* @__PURE__ */ s("path", { d: "M7 11L4 8H10L7 11Z", fill: "currentColor" })
|
|
5625
5694
|
] });
|
|
5626
5695
|
}
|
|
5627
|
-
const
|
|
5696
|
+
const Oo = z(function({
|
|
5628
5697
|
sortable: e = !1,
|
|
5629
5698
|
sortDirection: t = null,
|
|
5630
5699
|
onSort: o,
|
|
@@ -5634,7 +5703,7 @@ const Po = z(function({
|
|
|
5634
5703
|
children: i,
|
|
5635
5704
|
...d
|
|
5636
5705
|
}, c) {
|
|
5637
|
-
const { size: u } =
|
|
5706
|
+
const { size: u } = He(), h = {
|
|
5638
5707
|
padding: We[u].headerPadding,
|
|
5639
5708
|
fontWeight: 600,
|
|
5640
5709
|
color: "var(--brycks-foreground-muted)",
|
|
@@ -5668,14 +5737,14 @@ const Po = z(function({
|
|
|
5668
5737
|
...d,
|
|
5669
5738
|
children: /* @__PURE__ */ S("span", { style: y, children: [
|
|
5670
5739
|
i,
|
|
5671
|
-
e && /* @__PURE__ */ s(
|
|
5740
|
+
e && /* @__PURE__ */ s(Vo, { direction: t })
|
|
5672
5741
|
] })
|
|
5673
5742
|
}
|
|
5674
5743
|
);
|
|
5675
5744
|
});
|
|
5676
|
-
|
|
5677
|
-
const
|
|
5678
|
-
const { size: d, variant: c } =
|
|
5745
|
+
Oo.displayName = "TableHeader";
|
|
5746
|
+
const Po = z(function({ align: e = "left", truncate: t = !1, className: o, style: n, children: a, ...l }, i) {
|
|
5747
|
+
const { size: d, variant: c } = He(), m = {
|
|
5679
5748
|
padding: We[d].padding,
|
|
5680
5749
|
color: "var(--brycks-foreground-default)",
|
|
5681
5750
|
textAlign: e,
|
|
@@ -5699,8 +5768,8 @@ const Vo = z(function({ align: e = "left", truncate: t = !1, className: o, style
|
|
|
5699
5768
|
}
|
|
5700
5769
|
);
|
|
5701
5770
|
});
|
|
5702
|
-
|
|
5703
|
-
const
|
|
5771
|
+
Po.displayName = "TableCell";
|
|
5772
|
+
const Xo = z(function({ className: e, style: t, children: o, ...n }, a) {
|
|
5704
5773
|
const l = {
|
|
5705
5774
|
backgroundColor: "var(--brycks-background-muted)",
|
|
5706
5775
|
fontWeight: 500,
|
|
@@ -5717,8 +5786,8 @@ const Oo = z(function({ className: e, style: t, children: o, ...n }, a) {
|
|
|
5717
5786
|
}
|
|
5718
5787
|
);
|
|
5719
5788
|
});
|
|
5720
|
-
|
|
5721
|
-
const
|
|
5789
|
+
Xo.displayName = "TableFoot";
|
|
5790
|
+
const Yo = z(function({ placement: e = "bottom", className: t, style: o, children: n, ...a }, l) {
|
|
5722
5791
|
const i = {
|
|
5723
5792
|
captionSide: e,
|
|
5724
5793
|
padding: "12px 16px",
|
|
@@ -5738,12 +5807,12 @@ const Xo = z(function({ placement: e = "bottom", className: t, style: o, childre
|
|
|
5738
5807
|
}
|
|
5739
5808
|
);
|
|
5740
5809
|
});
|
|
5741
|
-
|
|
5742
|
-
const
|
|
5743
|
-
function
|
|
5744
|
-
return
|
|
5810
|
+
Yo.displayName = "TableCaption";
|
|
5811
|
+
const et = ye({ size: "md", variant: "default" });
|
|
5812
|
+
function Ko() {
|
|
5813
|
+
return fe(et);
|
|
5745
5814
|
}
|
|
5746
|
-
const
|
|
5815
|
+
const Go = z(function({
|
|
5747
5816
|
size: e = "md",
|
|
5748
5817
|
variant: t = "default",
|
|
5749
5818
|
interactive: o = !1,
|
|
@@ -5765,7 +5834,7 @@ const Ko = z(function({
|
|
|
5765
5834
|
overflow: t === "bordered" ? "hidden" : void 0,
|
|
5766
5835
|
...a
|
|
5767
5836
|
};
|
|
5768
|
-
return /* @__PURE__ */ s(
|
|
5837
|
+
return /* @__PURE__ */ s(et.Provider, { value: { size: e, variant: t }, children: /* @__PURE__ */ s(
|
|
5769
5838
|
"ul",
|
|
5770
5839
|
{
|
|
5771
5840
|
ref: c,
|
|
@@ -5783,12 +5852,12 @@ const Ko = z(function({
|
|
|
5783
5852
|
}
|
|
5784
5853
|
) });
|
|
5785
5854
|
});
|
|
5786
|
-
|
|
5787
|
-
const
|
|
5855
|
+
Go.displayName = "List";
|
|
5856
|
+
const qo = {
|
|
5788
5857
|
sm: { padding: "8px 12px", fontSize: 13, secondarySize: 12, gap: 10, minHeight: 40 },
|
|
5789
5858
|
md: { padding: "12px 16px", fontSize: 14, secondarySize: 13, gap: 12, minHeight: 52 },
|
|
5790
5859
|
lg: { padding: "16px 20px", fontSize: 16, secondarySize: 14, gap: 14, minHeight: 64 }
|
|
5791
|
-
},
|
|
5860
|
+
}, _o = z(function({
|
|
5792
5861
|
leftElement: e,
|
|
5793
5862
|
rightElement: t,
|
|
5794
5863
|
secondary: o,
|
|
@@ -5800,7 +5869,7 @@ const Go = {
|
|
|
5800
5869
|
children: c,
|
|
5801
5870
|
...u
|
|
5802
5871
|
}, m) {
|
|
5803
|
-
const { size: h, variant: y } =
|
|
5872
|
+
const { size: h, variant: y } = Ko(), f = qo[h], g = {
|
|
5804
5873
|
display: "flex",
|
|
5805
5874
|
alignItems: "center",
|
|
5806
5875
|
gap: f.gap,
|
|
@@ -5865,8 +5934,8 @@ const Go = {
|
|
|
5865
5934
|
}
|
|
5866
5935
|
);
|
|
5867
5936
|
});
|
|
5868
|
-
|
|
5869
|
-
const
|
|
5937
|
+
_o.displayName = "ListItem";
|
|
5938
|
+
const Uo = z(function({ className: e, style: t, ...o }, n) {
|
|
5870
5939
|
const a = {
|
|
5871
5940
|
height: 1,
|
|
5872
5941
|
backgroundColor: "var(--brycks-border-muted)",
|
|
@@ -5884,8 +5953,8 @@ const _o = z(function({ className: e, style: t, ...o }, n) {
|
|
|
5884
5953
|
}
|
|
5885
5954
|
);
|
|
5886
5955
|
});
|
|
5887
|
-
|
|
5888
|
-
const
|
|
5956
|
+
Uo.displayName = "ListDivider";
|
|
5957
|
+
const Zo = z(function({ className: e, style: t, children: o, ...n }, a) {
|
|
5889
5958
|
const l = {
|
|
5890
5959
|
padding: "12px 16px 8px 16px",
|
|
5891
5960
|
fontSize: 11,
|
|
@@ -5906,12 +5975,12 @@ const Uo = z(function({ className: e, style: t, children: o, ...n }, a) {
|
|
|
5906
5975
|
}
|
|
5907
5976
|
);
|
|
5908
5977
|
});
|
|
5909
|
-
|
|
5910
|
-
const
|
|
5978
|
+
Zo.displayName = "ListHeader";
|
|
5979
|
+
const Qo = {
|
|
5911
5980
|
sm: { fontSize: 10, padding: "2px 6px", height: 18 },
|
|
5912
5981
|
md: { fontSize: 11, padding: "3px 8px", height: 22 },
|
|
5913
5982
|
lg: { fontSize: 12, padding: "4px 10px", height: 26 }
|
|
5914
|
-
},
|
|
5983
|
+
}, Jo = {
|
|
5915
5984
|
neutral: {
|
|
5916
5985
|
solid: { backgroundColor: "var(--brycks-foreground-default)", color: "var(--brycks-background-app)" },
|
|
5917
5986
|
subtle: { backgroundColor: "var(--brycks-background-muted)", color: "var(--brycks-foreground-default)" },
|
|
@@ -5919,35 +5988,35 @@ const Zo = {
|
|
|
5919
5988
|
},
|
|
5920
5989
|
primary: {
|
|
5921
5990
|
solid: { backgroundColor: "var(--brycks-primary-default)", color: "var(--brycks-primary-foreground)" },
|
|
5922
|
-
subtle: { backgroundColor: "var(--brycks-primary-muted)", color: "var(--brycks-primary-
|
|
5991
|
+
subtle: { backgroundColor: "var(--brycks-primary-muted)", color: "var(--brycks-primary-hover)" },
|
|
5923
5992
|
outline: { backgroundColor: "transparent", color: "var(--brycks-primary-default)", borderColor: "var(--brycks-primary-default)" }
|
|
5924
5993
|
},
|
|
5925
5994
|
accent: {
|
|
5926
5995
|
solid: { backgroundColor: "var(--brycks-accent-default)", color: "var(--brycks-accent-foreground)" },
|
|
5927
|
-
subtle: { backgroundColor: "var(--brycks-accent-muted)", color: "var(--brycks-accent-
|
|
5996
|
+
subtle: { backgroundColor: "var(--brycks-accent-muted)", color: "var(--brycks-accent-hover)" },
|
|
5928
5997
|
outline: { backgroundColor: "transparent", color: "var(--brycks-accent-default)", borderColor: "var(--brycks-accent-default)" }
|
|
5929
5998
|
},
|
|
5930
5999
|
success: {
|
|
5931
6000
|
solid: { backgroundColor: "var(--brycks-success-default)", color: "var(--brycks-success-foreground)" },
|
|
5932
|
-
subtle: { backgroundColor: "var(--brycks-success-muted)", color: "var(--brycks-success-
|
|
6001
|
+
subtle: { backgroundColor: "var(--brycks-success-muted)", color: "var(--brycks-success-on-muted)" },
|
|
5933
6002
|
outline: { backgroundColor: "transparent", color: "var(--brycks-success-default)", borderColor: "var(--brycks-success-default)" }
|
|
5934
6003
|
},
|
|
5935
6004
|
warning: {
|
|
5936
6005
|
solid: { backgroundColor: "var(--brycks-warning-default)", color: "var(--brycks-warning-foreground)" },
|
|
5937
|
-
subtle: { backgroundColor: "var(--brycks-warning-muted)", color: "var(--brycks-warning-
|
|
6006
|
+
subtle: { backgroundColor: "var(--brycks-warning-muted)", color: "var(--brycks-warning-on-muted)" },
|
|
5938
6007
|
outline: { backgroundColor: "transparent", color: "var(--brycks-warning-default)", borderColor: "var(--brycks-warning-default)" }
|
|
5939
6008
|
},
|
|
5940
6009
|
error: {
|
|
5941
6010
|
solid: { backgroundColor: "var(--brycks-error-default)", color: "var(--brycks-error-foreground)" },
|
|
5942
|
-
subtle: { backgroundColor: "var(--brycks-error-muted)", color: "var(--brycks-error-
|
|
6011
|
+
subtle: { backgroundColor: "var(--brycks-error-muted)", color: "var(--brycks-error-on-muted)" },
|
|
5943
6012
|
outline: { backgroundColor: "transparent", color: "var(--brycks-error-default)", borderColor: "var(--brycks-error-default)" }
|
|
5944
6013
|
},
|
|
5945
6014
|
info: {
|
|
5946
6015
|
solid: { backgroundColor: "var(--brycks-info-default)", color: "var(--brycks-info-foreground)" },
|
|
5947
|
-
subtle: { backgroundColor: "var(--brycks-info-muted)", color: "var(--brycks-info-
|
|
6016
|
+
subtle: { backgroundColor: "var(--brycks-info-muted)", color: "var(--brycks-info-on-muted)" },
|
|
5948
6017
|
outline: { backgroundColor: "transparent", color: "var(--brycks-info-default)", borderColor: "var(--brycks-info-default)" }
|
|
5949
6018
|
}
|
|
5950
|
-
},
|
|
6019
|
+
}, en = z(function({
|
|
5951
6020
|
variant: e = "subtle",
|
|
5952
6021
|
intent: t = "neutral",
|
|
5953
6022
|
size: o = "md",
|
|
@@ -5957,7 +6026,7 @@ const Zo = {
|
|
|
5957
6026
|
children: i,
|
|
5958
6027
|
...d
|
|
5959
6028
|
}, c) {
|
|
5960
|
-
const u =
|
|
6029
|
+
const u = Qo[o], m = Jo[t][e], h = {
|
|
5961
6030
|
display: "inline-flex",
|
|
5962
6031
|
alignItems: "center",
|
|
5963
6032
|
justifyContent: "center",
|
|
@@ -5989,15 +6058,15 @@ const Zo = {
|
|
|
5989
6058
|
}
|
|
5990
6059
|
);
|
|
5991
6060
|
});
|
|
5992
|
-
|
|
5993
|
-
const
|
|
6061
|
+
en.displayName = "Badge";
|
|
6062
|
+
const tn = {
|
|
5994
6063
|
xs: 14,
|
|
5995
6064
|
sm: 18,
|
|
5996
6065
|
md: 24,
|
|
5997
6066
|
lg: 32,
|
|
5998
6067
|
xl: 48
|
|
5999
6068
|
};
|
|
6000
|
-
function
|
|
6069
|
+
function rn({ size: r, color: e }) {
|
|
6001
6070
|
return /* @__PURE__ */ S(
|
|
6002
6071
|
"svg",
|
|
6003
6072
|
{
|
|
@@ -6032,7 +6101,7 @@ function tn({ size: r, color: e }) {
|
|
|
6032
6101
|
}
|
|
6033
6102
|
);
|
|
6034
6103
|
}
|
|
6035
|
-
function
|
|
6104
|
+
function on({ size: r, color: e }) {
|
|
6036
6105
|
const t = r / 4, o = r / 6;
|
|
6037
6106
|
return /* @__PURE__ */ s(
|
|
6038
6107
|
"div",
|
|
@@ -6060,7 +6129,7 @@ function rn({ size: r, color: e }) {
|
|
|
6060
6129
|
}
|
|
6061
6130
|
);
|
|
6062
6131
|
}
|
|
6063
|
-
function
|
|
6132
|
+
function nn({ size: r, color: e }) {
|
|
6064
6133
|
return /* @__PURE__ */ s(
|
|
6065
6134
|
"span",
|
|
6066
6135
|
{
|
|
@@ -6075,7 +6144,7 @@ function on({ size: r, color: e }) {
|
|
|
6075
6144
|
}
|
|
6076
6145
|
);
|
|
6077
6146
|
}
|
|
6078
|
-
const
|
|
6147
|
+
const tt = z(function({
|
|
6079
6148
|
size: e = "md",
|
|
6080
6149
|
variant: t = "spinner",
|
|
6081
6150
|
color: o = "var(--brycks-primary-default)",
|
|
@@ -6085,7 +6154,7 @@ const et = z(function({
|
|
|
6085
6154
|
testId: i,
|
|
6086
6155
|
...d
|
|
6087
6156
|
}, c) {
|
|
6088
|
-
const u =
|
|
6157
|
+
const u = tn[e], m = {
|
|
6089
6158
|
display: "inline-flex",
|
|
6090
6159
|
alignItems: "center",
|
|
6091
6160
|
justifyContent: "center",
|
|
@@ -6093,14 +6162,14 @@ const et = z(function({
|
|
|
6093
6162
|
}, h = () => {
|
|
6094
6163
|
switch (t) {
|
|
6095
6164
|
case "dots":
|
|
6096
|
-
return /* @__PURE__ */ s(rn, { size: u, color: o });
|
|
6097
|
-
case "pulse":
|
|
6098
6165
|
return /* @__PURE__ */ s(on, { size: u, color: o });
|
|
6166
|
+
case "pulse":
|
|
6167
|
+
return /* @__PURE__ */ s(nn, { size: u, color: o });
|
|
6099
6168
|
default:
|
|
6100
|
-
return /* @__PURE__ */ s(
|
|
6169
|
+
return /* @__PURE__ */ s(rn, { size: u, color: o });
|
|
6101
6170
|
}
|
|
6102
6171
|
};
|
|
6103
|
-
return /* @__PURE__ */ S(
|
|
6172
|
+
return /* @__PURE__ */ S(te, { children: [
|
|
6104
6173
|
/* @__PURE__ */ s("style", { children: `
|
|
6105
6174
|
@keyframes brycks-spin {
|
|
6106
6175
|
from { transform: rotate(0deg); }
|
|
@@ -6154,8 +6223,8 @@ const et = z(function({
|
|
|
6154
6223
|
)
|
|
6155
6224
|
] });
|
|
6156
6225
|
});
|
|
6157
|
-
|
|
6158
|
-
const
|
|
6226
|
+
tt.displayName = "Loader";
|
|
6227
|
+
const Xn = tt, rt = z(function({
|
|
6159
6228
|
variant: e = "rectangular",
|
|
6160
6229
|
width: t,
|
|
6161
6230
|
height: o,
|
|
@@ -6196,7 +6265,7 @@ const Dn = et, tt = z(function({
|
|
|
6196
6265
|
background: "linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%)",
|
|
6197
6266
|
animation: a ? "brycks-shimmer 1.5s infinite" : "none"
|
|
6198
6267
|
};
|
|
6199
|
-
return /* @__PURE__ */ S(
|
|
6268
|
+
return /* @__PURE__ */ S(te, { children: [
|
|
6200
6269
|
a && /* @__PURE__ */ s("style", { children: `
|
|
6201
6270
|
@keyframes brycks-shimmer {
|
|
6202
6271
|
0% { transform: translateX(-100%); }
|
|
@@ -6222,8 +6291,8 @@ const Dn = et, tt = z(function({
|
|
|
6222
6291
|
)
|
|
6223
6292
|
] });
|
|
6224
6293
|
});
|
|
6225
|
-
|
|
6226
|
-
function
|
|
6294
|
+
rt.displayName = "Skeleton";
|
|
6295
|
+
function sn({
|
|
6227
6296
|
lines: r = 3,
|
|
6228
6297
|
gap: e = 8,
|
|
6229
6298
|
lastLineWidth: t = "80%",
|
|
@@ -6235,7 +6304,7 @@ function nn({
|
|
|
6235
6304
|
className: M("brycks-skeleton-text", o),
|
|
6236
6305
|
style: { display: "flex", flexDirection: "column", gap: e },
|
|
6237
6306
|
children: Array.from({ length: r }).map((n, a) => /* @__PURE__ */ s(
|
|
6238
|
-
|
|
6307
|
+
rt,
|
|
6239
6308
|
{
|
|
6240
6309
|
variant: "text",
|
|
6241
6310
|
width: a === r - 1 ? t : "100%"
|
|
@@ -6245,8 +6314,8 @@ function nn({
|
|
|
6245
6314
|
}
|
|
6246
6315
|
);
|
|
6247
6316
|
}
|
|
6248
|
-
|
|
6249
|
-
const
|
|
6317
|
+
sn.displayName = "SkeletonText";
|
|
6318
|
+
const an = z(function({
|
|
6250
6319
|
orientation: e = "horizontal",
|
|
6251
6320
|
variant: t = "solid",
|
|
6252
6321
|
label: o,
|
|
@@ -6325,8 +6394,8 @@ const sn = z(function({
|
|
|
6325
6394
|
}
|
|
6326
6395
|
);
|
|
6327
6396
|
});
|
|
6328
|
-
|
|
6329
|
-
const
|
|
6397
|
+
an.displayName = "Divider";
|
|
6398
|
+
const ln = z(function({
|
|
6330
6399
|
icon: e,
|
|
6331
6400
|
title: t,
|
|
6332
6401
|
description: o,
|
|
@@ -6387,8 +6456,8 @@ const an = z(function({
|
|
|
6387
6456
|
}
|
|
6388
6457
|
);
|
|
6389
6458
|
});
|
|
6390
|
-
|
|
6391
|
-
function
|
|
6459
|
+
ln.displayName = "EmptyState";
|
|
6460
|
+
function cn({ size: r = 64 }) {
|
|
6392
6461
|
return /* @__PURE__ */ S(
|
|
6393
6462
|
"svg",
|
|
6394
6463
|
{
|
|
@@ -6449,19 +6518,19 @@ function ln({ size: r = 64 }) {
|
|
|
6449
6518
|
}
|
|
6450
6519
|
);
|
|
6451
6520
|
}
|
|
6452
|
-
|
|
6453
|
-
function
|
|
6454
|
-
const [o, n] =
|
|
6455
|
-
return
|
|
6521
|
+
cn.displayName = "EmptyStateIcon";
|
|
6522
|
+
function ot({ children: r, container: e, disabled: t = !1 }) {
|
|
6523
|
+
const [o, n] = B(!1), [a, l] = B(null);
|
|
6524
|
+
return X(() => {
|
|
6456
6525
|
if (n(!0), typeof e == "string") {
|
|
6457
6526
|
const i = document.querySelector(e);
|
|
6458
6527
|
l(i);
|
|
6459
6528
|
} else l(e || document.body);
|
|
6460
6529
|
return () => n(!1);
|
|
6461
|
-
}, [e]), t ? /* @__PURE__ */ s(
|
|
6530
|
+
}, [e]), t ? /* @__PURE__ */ s(te, { children: r }) : !o || !a ? null : pe(r, a);
|
|
6462
6531
|
}
|
|
6463
|
-
|
|
6464
|
-
const
|
|
6532
|
+
ot.displayName = "Portal";
|
|
6533
|
+
const dn = [
|
|
6465
6534
|
"button:not([disabled])",
|
|
6466
6535
|
"[href]",
|
|
6467
6536
|
"input:not([disabled])",
|
|
@@ -6469,21 +6538,21 @@ const cn = [
|
|
|
6469
6538
|
"textarea:not([disabled])",
|
|
6470
6539
|
'[tabindex]:not([tabindex="-1"])'
|
|
6471
6540
|
].join(", ");
|
|
6472
|
-
function
|
|
6541
|
+
function un(r = {}) {
|
|
6473
6542
|
const {
|
|
6474
6543
|
enabled: e = !0,
|
|
6475
6544
|
autoFocus: t = !0,
|
|
6476
6545
|
restoreFocus: o = !0,
|
|
6477
6546
|
initialFocus: n
|
|
6478
|
-
} = r, a = Q(null), l = Q(null), i =
|
|
6547
|
+
} = r, a = Q(null), l = Q(null), i = j(() => a.current ? Array.from(a.current.querySelectorAll(dn)) : [], []), d = j(() => {
|
|
6479
6548
|
var m;
|
|
6480
6549
|
(m = i()[0]) == null || m.focus();
|
|
6481
|
-
}, [i]), c =
|
|
6550
|
+
}, [i]), c = j(() => {
|
|
6482
6551
|
var m;
|
|
6483
6552
|
const u = i();
|
|
6484
6553
|
(m = u[u.length - 1]) == null || m.focus();
|
|
6485
6554
|
}, [i]);
|
|
6486
|
-
return
|
|
6555
|
+
return X(() => {
|
|
6487
6556
|
if (e) {
|
|
6488
6557
|
if (l.current = document.activeElement, t) {
|
|
6489
6558
|
const u = a.current;
|
|
@@ -6498,7 +6567,7 @@ function dn(r = {}) {
|
|
|
6498
6567
|
o && l.current && l.current.focus();
|
|
6499
6568
|
};
|
|
6500
6569
|
}
|
|
6501
|
-
}, [e, t, o, n, d]),
|
|
6570
|
+
}, [e, t, o, n, d]), X(() => {
|
|
6502
6571
|
if (!e) return;
|
|
6503
6572
|
const u = (m) => {
|
|
6504
6573
|
if (m.key !== "Tab" || !a.current) return;
|
|
@@ -6514,7 +6583,7 @@ function dn(r = {}) {
|
|
|
6514
6583
|
focusLast: c
|
|
6515
6584
|
};
|
|
6516
6585
|
}
|
|
6517
|
-
const
|
|
6586
|
+
const yn = z(function({
|
|
6518
6587
|
children: e,
|
|
6519
6588
|
enabled: t = !0,
|
|
6520
6589
|
autoFocus: o = !0,
|
|
@@ -6523,7 +6592,7 @@ const un = z(function({
|
|
|
6523
6592
|
className: l,
|
|
6524
6593
|
style: i
|
|
6525
6594
|
}, d) {
|
|
6526
|
-
const { ref: c } =
|
|
6595
|
+
const { ref: c } = un({
|
|
6527
6596
|
enabled: t,
|
|
6528
6597
|
autoFocus: o,
|
|
6529
6598
|
restoreFocus: n,
|
|
@@ -6541,8 +6610,8 @@ const un = z(function({
|
|
|
6541
6610
|
}
|
|
6542
6611
|
);
|
|
6543
6612
|
});
|
|
6544
|
-
|
|
6545
|
-
const
|
|
6613
|
+
yn.displayName = "FocusTrap";
|
|
6614
|
+
const fn = z(function({
|
|
6546
6615
|
isOpen: e,
|
|
6547
6616
|
onClose: t,
|
|
6548
6617
|
closeOnClick: o = !0,
|
|
@@ -6569,7 +6638,7 @@ const yn = z(function({
|
|
|
6569
6638
|
WebkitBackdropFilter: n ? `blur(${a}px)` : void 0,
|
|
6570
6639
|
animation: "brycks-overlay-fade-in 200ms ease-out",
|
|
6571
6640
|
...u
|
|
6572
|
-
}, k = /* @__PURE__ */ S(
|
|
6641
|
+
}, k = /* @__PURE__ */ S(te, { children: [
|
|
6573
6642
|
/* @__PURE__ */ s("style", { children: `
|
|
6574
6643
|
@keyframes brycks-overlay-fade-in {
|
|
6575
6644
|
from { opacity: 0; }
|
|
@@ -6590,38 +6659,38 @@ const yn = z(function({
|
|
|
6590
6659
|
}
|
|
6591
6660
|
)
|
|
6592
6661
|
] });
|
|
6593
|
-
return i ? /* @__PURE__ */ s(
|
|
6662
|
+
return i ? /* @__PURE__ */ s(ot, { children: k }) : k;
|
|
6594
6663
|
});
|
|
6595
|
-
|
|
6596
|
-
function
|
|
6597
|
-
const [e, t] =
|
|
6598
|
-
return
|
|
6664
|
+
fn.displayName = "Overlay";
|
|
6665
|
+
function Ce(r) {
|
|
6666
|
+
const [e, t] = B(() => typeof window > "u" ? !1 : window.matchMedia(r).matches);
|
|
6667
|
+
return X(() => {
|
|
6599
6668
|
if (typeof window > "u") return;
|
|
6600
6669
|
const o = window.matchMedia(r), n = (a) => t(a.matches);
|
|
6601
6670
|
return t(o.matches), o.addEventListener("change", n), () => o.removeEventListener("change", n);
|
|
6602
6671
|
}, [r]), e;
|
|
6603
6672
|
}
|
|
6604
|
-
function
|
|
6605
|
-
return
|
|
6673
|
+
function Yn() {
|
|
6674
|
+
return Ce("(max-width: 639px)");
|
|
6606
6675
|
}
|
|
6607
|
-
function
|
|
6608
|
-
return
|
|
6676
|
+
function Kn() {
|
|
6677
|
+
return Ce("(min-width: 640px) and (max-width: 1023px)");
|
|
6609
6678
|
}
|
|
6610
|
-
function
|
|
6611
|
-
return
|
|
6679
|
+
function Gn() {
|
|
6680
|
+
return Ce("(min-width: 1024px)");
|
|
6612
6681
|
}
|
|
6613
|
-
function
|
|
6614
|
-
return
|
|
6682
|
+
function qn() {
|
|
6683
|
+
return Ce("(prefers-reduced-motion: reduce)");
|
|
6615
6684
|
}
|
|
6616
|
-
function
|
|
6617
|
-
return
|
|
6685
|
+
function _n() {
|
|
6686
|
+
return Ce("(prefers-color-scheme: dark)");
|
|
6618
6687
|
}
|
|
6619
|
-
function
|
|
6620
|
-
const { defaultIsOpen: e = !1, onOpen: t, onClose: o } = r, [n, a] =
|
|
6688
|
+
function Un(r = {}) {
|
|
6689
|
+
const { defaultIsOpen: e = !1, onOpen: t, onClose: o } = r, [n, a] = B(e), l = j(() => {
|
|
6621
6690
|
a(!0), t == null || t();
|
|
6622
|
-
}, [t]), i =
|
|
6691
|
+
}, [t]), i = j(() => {
|
|
6623
6692
|
a(!1), o == null || o();
|
|
6624
|
-
}, [o]), d =
|
|
6693
|
+
}, [o]), d = j(() => {
|
|
6625
6694
|
const c = !n;
|
|
6626
6695
|
a(c), c ? t == null || t() : o == null || o();
|
|
6627
6696
|
}, [n, t, o]);
|
|
@@ -6633,7 +6702,7 @@ function jn(r = {}) {
|
|
|
6633
6702
|
setIsOpen: a
|
|
6634
6703
|
};
|
|
6635
6704
|
}
|
|
6636
|
-
function
|
|
6705
|
+
function Zn(r) {
|
|
6637
6706
|
const {
|
|
6638
6707
|
itemCount: e,
|
|
6639
6708
|
initialIndex: t = 0,
|
|
@@ -6641,12 +6710,12 @@ function Pn(r) {
|
|
|
6641
6710
|
orientation: n = "vertical",
|
|
6642
6711
|
onIndexChange: a,
|
|
6643
6712
|
onSelect: l
|
|
6644
|
-
} = r, [i, d] =
|
|
6713
|
+
} = r, [i, d] = B(t), c = j(
|
|
6645
6714
|
(y) => {
|
|
6646
6715
|
d(y), a == null || a(y);
|
|
6647
6716
|
},
|
|
6648
6717
|
[a]
|
|
6649
|
-
), u =
|
|
6718
|
+
), u = j(
|
|
6650
6719
|
(y) => {
|
|
6651
6720
|
let f;
|
|
6652
6721
|
switch (y) {
|
|
@@ -6666,7 +6735,7 @@ function Pn(r) {
|
|
|
6666
6735
|
c(f);
|
|
6667
6736
|
},
|
|
6668
6737
|
[i, e, o, c]
|
|
6669
|
-
), m =
|
|
6738
|
+
), m = j(
|
|
6670
6739
|
(y) => {
|
|
6671
6740
|
const { key: f } = y, g = n === "vertical" || n === "both", b = n === "horizontal" || n === "both";
|
|
6672
6741
|
switch (f) {
|
|
@@ -6695,7 +6764,7 @@ function Pn(r) {
|
|
|
6695
6764
|
}
|
|
6696
6765
|
},
|
|
6697
6766
|
[n, u, l, i]
|
|
6698
|
-
), h =
|
|
6767
|
+
), h = j(
|
|
6699
6768
|
(y) => ({
|
|
6700
6769
|
tabIndex: y === i ? 0 : -1,
|
|
6701
6770
|
"data-focused": y === i,
|
|
@@ -6710,14 +6779,14 @@ function Pn(r) {
|
|
|
6710
6779
|
getItemProps: h
|
|
6711
6780
|
};
|
|
6712
6781
|
}
|
|
6713
|
-
function
|
|
6782
|
+
function Qn(r) {
|
|
6714
6783
|
const { value: e, defaultValue: t, onChange: o } = r, n = e !== void 0, a = Q(n);
|
|
6715
|
-
|
|
6784
|
+
X(() => {
|
|
6716
6785
|
a.current !== n && console.warn(
|
|
6717
6786
|
"Component is switching between controlled and uncontrolled modes. This is not recommended and may cause unexpected behavior."
|
|
6718
6787
|
), a.current = n;
|
|
6719
6788
|
}, [n]);
|
|
6720
|
-
const [l, i] =
|
|
6789
|
+
const [l, i] = B(t), d = n ? e : l, c = j(
|
|
6721
6790
|
(u) => {
|
|
6722
6791
|
const m = typeof u == "function" ? u(d) : u;
|
|
6723
6792
|
n || i(m), o == null || o(m);
|
|
@@ -6731,172 +6800,181 @@ function Vn(r) {
|
|
|
6731
6800
|
};
|
|
6732
6801
|
}
|
|
6733
6802
|
export {
|
|
6734
|
-
|
|
6735
|
-
|
|
6736
|
-
|
|
6737
|
-
|
|
6738
|
-
|
|
6739
|
-
|
|
6740
|
-
|
|
6741
|
-
|
|
6742
|
-
|
|
6743
|
-
|
|
6744
|
-
|
|
6745
|
-
|
|
6746
|
-
|
|
6747
|
-
|
|
6748
|
-
|
|
6749
|
-
|
|
6750
|
-
|
|
6751
|
-
|
|
6752
|
-
|
|
6753
|
-
|
|
6754
|
-
|
|
6755
|
-
|
|
6756
|
-
|
|
6757
|
-
|
|
6758
|
-
|
|
6759
|
-
|
|
6760
|
-
|
|
6761
|
-
|
|
6762
|
-
|
|
6763
|
-
|
|
6764
|
-
|
|
6765
|
-
|
|
6766
|
-
|
|
6767
|
-
|
|
6803
|
+
fo as Accordion,
|
|
6804
|
+
ho as AccordionContent,
|
|
6805
|
+
bo as AccordionItem,
|
|
6806
|
+
go as AccordionTrigger,
|
|
6807
|
+
Xr as Alert,
|
|
6808
|
+
en as Badge,
|
|
6809
|
+
pt as Box,
|
|
6810
|
+
Bo as Breadcrumb,
|
|
6811
|
+
Eo as BreadcrumbItem,
|
|
6812
|
+
je as Button,
|
|
6813
|
+
jt as Card,
|
|
6814
|
+
Ot as CardBody,
|
|
6815
|
+
Pt as CardFooter,
|
|
6816
|
+
Vt as CardHeader,
|
|
6817
|
+
kr as Checkbox,
|
|
6818
|
+
Qt as Code,
|
|
6819
|
+
Ft as Container,
|
|
6820
|
+
Lr as DateInput,
|
|
6821
|
+
or as Display,
|
|
6822
|
+
an as Divider,
|
|
6823
|
+
Jr as Drawer,
|
|
6824
|
+
ko as Dropdown,
|
|
6825
|
+
xo as DropdownDivider,
|
|
6826
|
+
vo as DropdownItem,
|
|
6827
|
+
So as DropdownLabel,
|
|
6828
|
+
ln as EmptyState,
|
|
6829
|
+
cn as EmptyStateIcon,
|
|
6830
|
+
Ar as FieldError,
|
|
6831
|
+
Hr as FileInput,
|
|
6832
|
+
Gt as Flex,
|
|
6833
|
+
qt as FlexItem,
|
|
6834
|
+
yn as FocusTrap,
|
|
6835
|
+
Er as FormField,
|
|
6836
|
+
$t as Grid,
|
|
6768
6837
|
Wt as GridItem,
|
|
6769
|
-
|
|
6770
|
-
|
|
6771
|
-
|
|
6772
|
-
|
|
6773
|
-
|
|
6774
|
-
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
|
|
6778
|
-
|
|
6779
|
-
|
|
6780
|
-
|
|
6781
|
-
|
|
6782
|
-
|
|
6783
|
-
|
|
6784
|
-
|
|
6838
|
+
Ct as HStack,
|
|
6839
|
+
Fe as Heading,
|
|
6840
|
+
ur as Icon,
|
|
6841
|
+
cr as IconButton,
|
|
6842
|
+
Ve as Input,
|
|
6843
|
+
Go as List,
|
|
6844
|
+
Uo as ListDivider,
|
|
6845
|
+
Zo as ListHeader,
|
|
6846
|
+
_o as ListItem,
|
|
6847
|
+
tt as Loader,
|
|
6848
|
+
wo as Menu,
|
|
6849
|
+
Io as MenuDivider,
|
|
6850
|
+
Mo as MenuGroup,
|
|
6851
|
+
zo as MenuItem,
|
|
6852
|
+
Or as Modal,
|
|
6853
|
+
fn as Overlay,
|
|
6785
6854
|
Wo as Pagination,
|
|
6786
|
-
|
|
6787
|
-
|
|
6788
|
-
|
|
6789
|
-
|
|
6790
|
-
|
|
6791
|
-
|
|
6792
|
-
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
|
|
6796
|
-
|
|
6797
|
-
|
|
6798
|
-
|
|
6799
|
-
|
|
6800
|
-
|
|
6801
|
-
|
|
6802
|
-
|
|
6803
|
-
|
|
6804
|
-
|
|
6805
|
-
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
|
-
|
|
6810
|
-
|
|
6811
|
-
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
|
|
6816
|
-
|
|
6817
|
-
|
|
6818
|
-
|
|
6819
|
-
|
|
6820
|
-
|
|
6821
|
-
|
|
6822
|
-
|
|
6823
|
-
|
|
6824
|
-
|
|
6825
|
-
|
|
6826
|
-
|
|
6827
|
-
|
|
6828
|
-
|
|
6855
|
+
to as Popover,
|
|
6856
|
+
ot as Portal,
|
|
6857
|
+
so as Progress,
|
|
6858
|
+
Cr as Radio,
|
|
6859
|
+
zr as RadioGroup,
|
|
6860
|
+
Xt as Section,
|
|
6861
|
+
gr as Select,
|
|
6862
|
+
rt as Skeleton,
|
|
6863
|
+
sn as SkeletonText,
|
|
6864
|
+
Ir as Slider,
|
|
6865
|
+
Yt as Spacer,
|
|
6866
|
+
Xn as Spinner,
|
|
6867
|
+
Ne as Stack,
|
|
6868
|
+
vr as Switch,
|
|
6869
|
+
co as Tab,
|
|
6870
|
+
io as TabList,
|
|
6871
|
+
yo as TabPanel,
|
|
6872
|
+
uo as TabPanels,
|
|
6873
|
+
Ro as Table,
|
|
6874
|
+
Ao as TableBody,
|
|
6875
|
+
Yo as TableCaption,
|
|
6876
|
+
Po as TableCell,
|
|
6877
|
+
Xo as TableFoot,
|
|
6878
|
+
Fo as TableHead,
|
|
6879
|
+
Oo as TableHeader,
|
|
6880
|
+
jo as TableRow,
|
|
6881
|
+
ao as Tabs,
|
|
6882
|
+
Re as Text,
|
|
6883
|
+
fr as TextField,
|
|
6884
|
+
Sr as Textarea,
|
|
6885
|
+
Cs as ThemeProvider,
|
|
6886
|
+
Oe as Toast,
|
|
6887
|
+
Pn as ToastProvider,
|
|
6888
|
+
Yr as Tooltip,
|
|
6889
|
+
Mt as VStack,
|
|
6890
|
+
ts as accent,
|
|
6891
|
+
ds as animations,
|
|
6892
|
+
Nn as avatarSizes,
|
|
6893
|
+
us as borderStyles,
|
|
6894
|
+
ys as borderWidths,
|
|
6895
|
+
fs as breakpoints,
|
|
6896
|
+
Te as buildSpacingStyles,
|
|
6897
|
+
rs as colors,
|
|
6898
|
+
K as componentFontSize,
|
|
6829
6899
|
re as componentFontWeight,
|
|
6830
6900
|
ae as componentGap,
|
|
6831
|
-
|
|
6901
|
+
ce as componentHeights,
|
|
6832
6902
|
U as componentLineHeight,
|
|
6833
|
-
|
|
6834
|
-
|
|
6835
|
-
|
|
6836
|
-
|
|
6837
|
-
|
|
6838
|
-
|
|
6903
|
+
de as componentPaddingX,
|
|
6904
|
+
pn as componentPaddingY,
|
|
6905
|
+
In as componentTypography,
|
|
6906
|
+
nt as containers,
|
|
6907
|
+
Wn as contentPadding,
|
|
6908
|
+
ct as controlSizes,
|
|
6909
|
+
zs as cssVar,
|
|
6839
6910
|
M as cx,
|
|
6840
|
-
|
|
6841
|
-
|
|
6911
|
+
Ms as darkTheme,
|
|
6912
|
+
Cn as duration,
|
|
6842
6913
|
Z as durations,
|
|
6843
|
-
|
|
6844
|
-
|
|
6845
|
-
|
|
6846
|
-
|
|
6847
|
-
|
|
6848
|
-
|
|
6849
|
-
|
|
6850
|
-
|
|
6851
|
-
|
|
6852
|
-
|
|
6853
|
-
|
|
6854
|
-
|
|
6855
|
-
|
|
6856
|
-
Ln as
|
|
6857
|
-
|
|
6858
|
-
|
|
6859
|
-
|
|
6860
|
-
|
|
6861
|
-
|
|
6862
|
-
|
|
6863
|
-
|
|
6864
|
-
|
|
6865
|
-
|
|
6866
|
-
|
|
6867
|
-
|
|
6868
|
-
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
|
|
6872
|
-
|
|
6873
|
-
|
|
6874
|
-
|
|
6875
|
-
|
|
6876
|
-
|
|
6877
|
-
|
|
6878
|
-
|
|
6879
|
-
|
|
6880
|
-
|
|
6881
|
-
|
|
6882
|
-
|
|
6883
|
-
|
|
6884
|
-
|
|
6885
|
-
|
|
6886
|
-
|
|
6887
|
-
|
|
6888
|
-
|
|
6889
|
-
|
|
6890
|
-
|
|
6891
|
-
|
|
6892
|
-
|
|
6893
|
-
|
|
6894
|
-
|
|
6895
|
-
|
|
6896
|
-
|
|
6897
|
-
|
|
6898
|
-
|
|
6899
|
-
|
|
6900
|
-
|
|
6914
|
+
zn as easing,
|
|
6915
|
+
G as easings,
|
|
6916
|
+
os as error,
|
|
6917
|
+
ue as focusRing,
|
|
6918
|
+
xn as focusRingOffset,
|
|
6919
|
+
bs as focusRings,
|
|
6920
|
+
Sn as focusStyles,
|
|
6921
|
+
ne as fontFamilies,
|
|
6922
|
+
me as fontSizes,
|
|
6923
|
+
Se as fontWeights,
|
|
6924
|
+
Fn as generateId,
|
|
6925
|
+
Rn as getSpacingValue,
|
|
6926
|
+
ms as glows,
|
|
6927
|
+
Ln as headerSizes,
|
|
6928
|
+
An as hexToRgba,
|
|
6929
|
+
$n as iconButtonSizes,
|
|
6930
|
+
jn as iconPaths,
|
|
6931
|
+
we as iconSizes,
|
|
6932
|
+
ns as info,
|
|
6933
|
+
Mn as keyframes,
|
|
6934
|
+
gs as letterSpacings,
|
|
6935
|
+
Is as lightTheme,
|
|
6936
|
+
ze as lineHeights,
|
|
6937
|
+
hs as mediaQueries,
|
|
6938
|
+
kn as modalWidths,
|
|
6939
|
+
ss as neutrals,
|
|
6940
|
+
ie as opacity,
|
|
6941
|
+
Dn as pageHeaderSpacing,
|
|
6942
|
+
vn as popoverSizing,
|
|
6943
|
+
as as primary,
|
|
6944
|
+
Hn as quickActionSizes,
|
|
6945
|
+
ps as radii,
|
|
6946
|
+
ge as scale,
|
|
6947
|
+
Bn as searchInputSizes,
|
|
6948
|
+
ks as semanticSpacing,
|
|
6949
|
+
vs as shadows,
|
|
6950
|
+
Tn as sidebarSizes,
|
|
6951
|
+
D as spacing,
|
|
6952
|
+
Y as spacingToCss,
|
|
6953
|
+
En as statCardSizes,
|
|
6954
|
+
Ie as stateOpacity,
|
|
6955
|
+
is as success,
|
|
6956
|
+
dt as switchSizes,
|
|
6957
|
+
le as textStyles,
|
|
6958
|
+
he as transition,
|
|
6959
|
+
wn as transitionProperties,
|
|
6960
|
+
xs as transitions,
|
|
6961
|
+
eo as useClickOutside,
|
|
6962
|
+
Qn as useControllable,
|
|
6963
|
+
Un as useDisclosure,
|
|
6964
|
+
un as useFocusTrap,
|
|
6965
|
+
Dr as useId,
|
|
6966
|
+
Vn as useIds,
|
|
6967
|
+
Gn as useIsDesktop,
|
|
6968
|
+
Yn as useIsMobile,
|
|
6969
|
+
Kn as useIsTablet,
|
|
6970
|
+
Zn as useKeyboardNavigation,
|
|
6971
|
+
Ce as useMediaQuery,
|
|
6972
|
+
_n as usePrefersDarkMode,
|
|
6973
|
+
qn as usePrefersReducedMotion,
|
|
6974
|
+
Ts as useTheme,
|
|
6975
|
+
Ls as useThemeColors,
|
|
6976
|
+
On as useToast,
|
|
6977
|
+
ls as warning,
|
|
6978
|
+
Ss as zIndex
|
|
6901
6979
|
};
|
|
6902
6980
|
//# sourceMappingURL=index.js.map
|