@tomny-dev/uzi 0.1.9-pr.2.5.1.9b8d3dd → 0.1.9-pr.2.6.1.ba85af4
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/index.cjs +325 -225
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +166 -150
- package/dist/index.css.map +1 -1
- package/dist/index.js +325 -225
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -85,20 +85,20 @@ function cx(...values) {
|
|
|
85
85
|
// src/components/button/Button.tsx
|
|
86
86
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
87
87
|
var variantClass = {
|
|
88
|
-
default: "
|
|
89
|
-
primary: "
|
|
90
|
-
secondary: "
|
|
91
|
-
outline: "
|
|
92
|
-
ghost: "
|
|
93
|
-
destructive: "
|
|
94
|
-
link: "
|
|
88
|
+
default: "uziButtonVariantPrimary",
|
|
89
|
+
primary: "uziButtonVariantPrimary",
|
|
90
|
+
secondary: "uziButtonVariantSecondary",
|
|
91
|
+
outline: "uziButtonVariantOutline",
|
|
92
|
+
ghost: "uziButtonVariantGhost",
|
|
93
|
+
destructive: "uziButtonVariantDestructive",
|
|
94
|
+
link: "uziButtonVariantLink"
|
|
95
95
|
};
|
|
96
96
|
var sizeClass = {
|
|
97
|
-
default: "
|
|
98
|
-
sm: "
|
|
99
|
-
md: "
|
|
100
|
-
lg: "
|
|
101
|
-
icon: "
|
|
97
|
+
default: "uziButtonSizeMd",
|
|
98
|
+
sm: "uziButtonSizeSm",
|
|
99
|
+
md: "uziButtonSizeMd",
|
|
100
|
+
lg: "uziButtonSizeLg",
|
|
101
|
+
icon: "uziButtonSizeIcon"
|
|
102
102
|
};
|
|
103
103
|
function Button({
|
|
104
104
|
as,
|
|
@@ -110,7 +110,7 @@ function Button({
|
|
|
110
110
|
...rest
|
|
111
111
|
}) {
|
|
112
112
|
const classes = cx(
|
|
113
|
-
"
|
|
113
|
+
"uziButton",
|
|
114
114
|
variantClass[variant],
|
|
115
115
|
sizeClass[size],
|
|
116
116
|
className
|
|
@@ -141,16 +141,22 @@ function Button({
|
|
|
141
141
|
|
|
142
142
|
// src/components/avatar/Avatar.tsx
|
|
143
143
|
var AvatarPrimitive = __toESM(require("@radix-ui/react-avatar"), 1);
|
|
144
|
+
|
|
145
|
+
// src/components/avatar/avatar.module.css
|
|
146
|
+
var avatar_default = {};
|
|
147
|
+
|
|
148
|
+
// src/components/avatar/Avatar.tsx
|
|
144
149
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
145
150
|
function Avatar({
|
|
146
151
|
className,
|
|
147
152
|
size = "md",
|
|
148
153
|
...props
|
|
149
154
|
}) {
|
|
155
|
+
const sizeClass2 = size === "sm" ? avatar_default["size-sm"] : size === "lg" ? avatar_default["size-lg"] : avatar_default["size-md"];
|
|
150
156
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
151
157
|
AvatarPrimitive.Root,
|
|
152
158
|
{
|
|
153
|
-
className: cx(
|
|
159
|
+
className: cx(avatar_default.avatar, sizeClass2, className),
|
|
154
160
|
...props
|
|
155
161
|
}
|
|
156
162
|
);
|
|
@@ -162,7 +168,7 @@ function AvatarImage({
|
|
|
162
168
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
163
169
|
AvatarPrimitive.Image,
|
|
164
170
|
{
|
|
165
|
-
className: cx(
|
|
171
|
+
className: cx(avatar_default.image, className),
|
|
166
172
|
...props
|
|
167
173
|
}
|
|
168
174
|
);
|
|
@@ -174,12 +180,15 @@ function AvatarFallback({
|
|
|
174
180
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
175
181
|
AvatarPrimitive.Fallback,
|
|
176
182
|
{
|
|
177
|
-
className: cx(
|
|
183
|
+
className: cx(avatar_default.fallback, className),
|
|
178
184
|
...props
|
|
179
185
|
}
|
|
180
186
|
);
|
|
181
187
|
}
|
|
182
188
|
|
|
189
|
+
// src/components/card/card.module.css
|
|
190
|
+
var card_default = {};
|
|
191
|
+
|
|
183
192
|
// src/components/card/Card.tsx
|
|
184
193
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
185
194
|
function Card({
|
|
@@ -192,18 +201,21 @@ function Card({
|
|
|
192
201
|
...rest
|
|
193
202
|
}) {
|
|
194
203
|
const Component = as ?? "div";
|
|
195
|
-
const
|
|
204
|
+
const TONE_CLASS = { default: null, muted: "tone-muted", contrast: "tone-contrast" };
|
|
196
205
|
const PADDING_CLASS = { none: "padding-none", sm: "padding-sm", md: "padding-md", lg: "padding-lg" };
|
|
197
206
|
const classes = cx(
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
PADDING_CLASS[padding],
|
|
201
|
-
interactive &&
|
|
207
|
+
card_default.card,
|
|
208
|
+
TONE_CLASS[tone] ? card_default[TONE_CLASS[tone]] : null,
|
|
209
|
+
card_default[PADDING_CLASS[padding]],
|
|
210
|
+
interactive && card_default.interactive,
|
|
202
211
|
className
|
|
203
212
|
);
|
|
204
213
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Component, { className: classes, ...rest, children });
|
|
205
214
|
}
|
|
206
215
|
|
|
216
|
+
// src/components/pill/pill.module.css
|
|
217
|
+
var pill_default = {};
|
|
218
|
+
|
|
207
219
|
// src/components/pill/Pill.tsx
|
|
208
220
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
209
221
|
function Pill({
|
|
@@ -216,15 +228,20 @@ function Pill({
|
|
|
216
228
|
...rest
|
|
217
229
|
}) {
|
|
218
230
|
const Component = as ?? "span";
|
|
219
|
-
const classes = cx(
|
|
231
|
+
const classes = cx(pill_default.pill, pill_default[`tone-${tone}`], pill_default[`size-${size}`], className);
|
|
220
232
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(Component, { className: classes, ...rest, children: [
|
|
221
|
-
icon ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className:
|
|
222
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className:
|
|
233
|
+
icon ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: pill_default.icon, "aria-hidden": "true", children: icon }) : null,
|
|
234
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: pill_default.content, children })
|
|
223
235
|
] });
|
|
224
236
|
}
|
|
225
237
|
|
|
226
238
|
// src/components/modal/Modal.tsx
|
|
227
239
|
var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
240
|
+
|
|
241
|
+
// src/components/modal/modal.module.css
|
|
242
|
+
var modal_default = {};
|
|
243
|
+
|
|
244
|
+
// src/components/modal/Modal.tsx
|
|
228
245
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
229
246
|
function ModalOverlay({ open, onClose, className, children }) {
|
|
230
247
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
@@ -234,45 +251,47 @@ function ModalOverlay({ open, onClose, className, children }) {
|
|
|
234
251
|
onOpenChange: (nextOpen) => {
|
|
235
252
|
if (!nextOpen) onClose();
|
|
236
253
|
},
|
|
237
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DialogPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className:
|
|
238
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DialogPrimitive.Overlay, { className: cx(
|
|
239
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DialogPrimitive.Content, { className:
|
|
254
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DialogPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: modal_default.portalLayer, children: [
|
|
255
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DialogPrimitive.Overlay, { className: cx(modal_default.backdrop, className) }),
|
|
256
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DialogPrimitive.Content, { className: modal_default.overlayContent, children })
|
|
240
257
|
] }) })
|
|
241
258
|
}
|
|
242
259
|
);
|
|
243
260
|
}
|
|
244
261
|
function Modal({ open, onClose, title, subtitle, size = "md", children, footer }) {
|
|
245
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ModalOverlay, { open, onClose, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: cx(
|
|
246
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className:
|
|
247
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className:
|
|
248
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DialogPrimitive.Title, { className:
|
|
249
|
-
subtitle ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DialogPrimitive.Description, { className:
|
|
262
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ModalOverlay, { open, onClose, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: cx(modal_default.modal, modal_default[`size-${size}`]), children: [
|
|
263
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: modal_default.header, children: [
|
|
264
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: modal_default.titles, children: [
|
|
265
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DialogPrimitive.Title, { className: modal_default.title, children: title }),
|
|
266
|
+
subtitle ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DialogPrimitive.Description, { className: modal_default.subtitle, children: subtitle }) : null
|
|
250
267
|
] }),
|
|
251
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DialogPrimitive.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("button", { className:
|
|
268
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(DialogPrimitive.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("button", { className: modal_default.closeButton, "aria-label": "Close", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
252
269
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
|
|
253
270
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
254
271
|
] }) }) })
|
|
255
272
|
] }),
|
|
256
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className:
|
|
257
|
-
footer && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className:
|
|
273
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: modal_default.body, children }),
|
|
274
|
+
footer && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: modal_default.footer, children: footer })
|
|
258
275
|
] }) });
|
|
259
276
|
}
|
|
260
277
|
|
|
278
|
+
// src/components/alert/alert.module.css
|
|
279
|
+
var alert_default = {};
|
|
280
|
+
|
|
261
281
|
// src/components/alert/Alert.tsx
|
|
262
282
|
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
263
|
-
var TONE_CLASS = {
|
|
264
|
-
success: "success",
|
|
265
|
-
error: "error",
|
|
266
|
-
warning: "warning",
|
|
267
|
-
info: "info"
|
|
268
|
-
};
|
|
269
283
|
function Alert({ tone, children, className }) {
|
|
270
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: cx(
|
|
284
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: cx(alert_default.alert, alert_default[tone], className), role: "alert", children });
|
|
271
285
|
}
|
|
272
286
|
|
|
273
287
|
// src/components/toast/ToastContext.tsx
|
|
274
288
|
var import_react = require("react");
|
|
275
289
|
var ToastPrimitive = __toESM(require("@radix-ui/react-toast"), 1);
|
|
290
|
+
|
|
291
|
+
// src/components/toast/toast.module.css
|
|
292
|
+
var toast_default = {};
|
|
293
|
+
|
|
294
|
+
// src/components/toast/ToastContext.tsx
|
|
276
295
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
277
296
|
var DEFAULT_CONFIG = {
|
|
278
297
|
position: "top-right",
|
|
@@ -393,7 +412,7 @@ function ToastContainer({
|
|
|
393
412
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
394
413
|
ToastPrimitive.Viewport,
|
|
395
414
|
{
|
|
396
|
-
className: cx(
|
|
415
|
+
className: cx(toast_default.stack, toast_default[posClass]),
|
|
397
416
|
label: "Notifications",
|
|
398
417
|
onMouseEnter: () => pauseOnHover && onPauseChange(true),
|
|
399
418
|
onMouseLeave: () => pauseOnHover && onPauseChange(false)
|
|
@@ -470,13 +489,13 @@ function ToastItem({
|
|
|
470
489
|
if (!nextOpen) triggerDismiss();
|
|
471
490
|
},
|
|
472
491
|
duration: 2147483647,
|
|
473
|
-
className:
|
|
492
|
+
className: toast_default.toast,
|
|
474
493
|
style: styleVars,
|
|
475
494
|
children: [
|
|
476
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className:
|
|
477
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className:
|
|
478
|
-
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ToastPrimitive.Description, { className:
|
|
479
|
-
toast.action && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className:
|
|
495
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: toast_default.icon, "aria-hidden": true, children: icon }),
|
|
496
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: toast_default.body, children: [
|
|
497
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ToastPrimitive.Description, { className: toast_default.message, children: toast.message }),
|
|
498
|
+
toast.action && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: toast_default.actions, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
480
499
|
ToastPrimitive.Action,
|
|
481
500
|
{
|
|
482
501
|
asChild: true,
|
|
@@ -485,7 +504,7 @@ function ToastItem({
|
|
|
485
504
|
"button",
|
|
486
505
|
{
|
|
487
506
|
type: "button",
|
|
488
|
-
className:
|
|
507
|
+
className: toast_default.actionButton,
|
|
489
508
|
onClick: () => {
|
|
490
509
|
toast.action?.onClick();
|
|
491
510
|
triggerDismiss();
|
|
@@ -500,7 +519,7 @@ function ToastItem({
|
|
|
500
519
|
"button",
|
|
501
520
|
{
|
|
502
521
|
type: "button",
|
|
503
|
-
className:
|
|
522
|
+
className: toast_default.closeButton,
|
|
504
523
|
"aria-label": "Dismiss notification",
|
|
505
524
|
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", "aria-hidden": true, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
506
525
|
"path",
|
|
@@ -578,6 +597,11 @@ function getIcon(type) {
|
|
|
578
597
|
|
|
579
598
|
// src/components/input/Input.tsx
|
|
580
599
|
var React = __toESM(require("react"), 1);
|
|
600
|
+
|
|
601
|
+
// src/components/input/input.module.css
|
|
602
|
+
var input_default = {};
|
|
603
|
+
|
|
604
|
+
// src/components/input/Input.tsx
|
|
581
605
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
582
606
|
var Input = React.forwardRef(
|
|
583
607
|
({ className, type, ...props }, ref) => {
|
|
@@ -586,7 +610,7 @@ var Input = React.forwardRef(
|
|
|
586
610
|
{
|
|
587
611
|
ref,
|
|
588
612
|
type,
|
|
589
|
-
className: cx(
|
|
613
|
+
className: cx(input_default.input, className),
|
|
590
614
|
...props
|
|
591
615
|
}
|
|
592
616
|
);
|
|
@@ -596,14 +620,24 @@ Input.displayName = "Input";
|
|
|
596
620
|
|
|
597
621
|
// src/components/label/Label.tsx
|
|
598
622
|
var React2 = __toESM(require("react"), 1);
|
|
623
|
+
|
|
624
|
+
// src/components/label/label.module.css
|
|
625
|
+
var label_default = {};
|
|
626
|
+
|
|
627
|
+
// src/components/label/Label.tsx
|
|
599
628
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
600
629
|
var Label = React2.forwardRef(
|
|
601
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("label", { ref, className: cx(
|
|
630
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("label", { ref, className: cx(label_default.label, className), ...props })
|
|
602
631
|
);
|
|
603
632
|
Label.displayName = "Label";
|
|
604
633
|
|
|
605
634
|
// src/components/checkbox/Checkbox.tsx
|
|
606
635
|
var React3 = __toESM(require("react"), 1);
|
|
636
|
+
|
|
637
|
+
// src/components/checkbox/checkbox.module.css
|
|
638
|
+
var checkbox_default = {};
|
|
639
|
+
|
|
640
|
+
// src/components/checkbox/Checkbox.tsx
|
|
607
641
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
608
642
|
var Checkbox = React3.forwardRef(
|
|
609
643
|
({ className, ...props }, ref) => {
|
|
@@ -612,7 +646,7 @@ var Checkbox = React3.forwardRef(
|
|
|
612
646
|
{
|
|
613
647
|
ref,
|
|
614
648
|
type: "checkbox",
|
|
615
|
-
className: cx(
|
|
649
|
+
className: cx(checkbox_default.checkbox, className),
|
|
616
650
|
...props
|
|
617
651
|
}
|
|
618
652
|
);
|
|
@@ -662,29 +696,39 @@ var MultiSelect = React4.forwardRef(
|
|
|
662
696
|
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(DropdownMenuPrimitive.Root, { modal: false, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
663
697
|
"div",
|
|
664
698
|
{
|
|
665
|
-
className: cx(
|
|
699
|
+
className: cx(
|
|
700
|
+
"uziMultiSelectWrapper",
|
|
701
|
+
fullWidth && "uziMultiSelectWrapperFullWidth",
|
|
702
|
+
className
|
|
703
|
+
),
|
|
666
704
|
children: [
|
|
667
705
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(DropdownMenuPrimitive.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
668
706
|
"button",
|
|
669
707
|
{
|
|
670
708
|
ref,
|
|
671
709
|
type: "button",
|
|
672
|
-
className:
|
|
673
|
-
"trigger",
|
|
674
|
-
selectedOptions.length > 0 && "trigger-hasValue"
|
|
675
|
-
),
|
|
710
|
+
className: "uziMultiSelectTrigger",
|
|
676
711
|
"aria-label": ariaLabel,
|
|
677
712
|
"aria-labelledby": ariaLabelledBy,
|
|
678
713
|
disabled,
|
|
679
714
|
children: [
|
|
680
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "
|
|
681
|
-
visibleOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "
|
|
682
|
-
overflowCount > 0 ? /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
683
|
-
"
|
|
684
|
-
|
|
685
|
-
|
|
715
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "uziMultiSelectValue", children: selectedOptions.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "uziMultiSelectPlaceholder", children: placeholder }) : /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_jsx_runtime11.Fragment, { children: [
|
|
716
|
+
visibleOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "uziMultiSelectChip", children: option.label }, option.value)),
|
|
717
|
+
overflowCount > 0 ? /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
718
|
+
"span",
|
|
719
|
+
{
|
|
720
|
+
className: cx(
|
|
721
|
+
"uziMultiSelectChip",
|
|
722
|
+
"uziMultiSelectChipSummary"
|
|
723
|
+
),
|
|
724
|
+
children: [
|
|
725
|
+
"+",
|
|
726
|
+
overflowCount
|
|
727
|
+
]
|
|
728
|
+
}
|
|
729
|
+
) : null
|
|
686
730
|
] }) }),
|
|
687
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "
|
|
731
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "uziMultiSelectChevron", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
688
732
|
"svg",
|
|
689
733
|
{
|
|
690
734
|
viewBox: "0 0 10 10",
|
|
@@ -711,7 +755,7 @@ var MultiSelect = React4.forwardRef(
|
|
|
711
755
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
712
756
|
DropdownMenuPrimitive.Content,
|
|
713
757
|
{
|
|
714
|
-
className: "
|
|
758
|
+
className: "uziMultiSelectMenu",
|
|
715
759
|
sideOffset: 4,
|
|
716
760
|
align: "start",
|
|
717
761
|
children: options.map((option) => {
|
|
@@ -720,9 +764,9 @@ var MultiSelect = React4.forwardRef(
|
|
|
720
764
|
DropdownMenuPrimitive.CheckboxItem,
|
|
721
765
|
{
|
|
722
766
|
className: cx(
|
|
723
|
-
"
|
|
724
|
-
selected && "
|
|
725
|
-
option.disabled && "
|
|
767
|
+
"uziMultiSelectOption",
|
|
768
|
+
selected && "uziMultiSelectOptionSelected",
|
|
769
|
+
option.disabled && "uziMultiSelectOptionDisabled"
|
|
726
770
|
),
|
|
727
771
|
checked: selected,
|
|
728
772
|
disabled: option.disabled,
|
|
@@ -733,9 +777,9 @@ var MultiSelect = React4.forwardRef(
|
|
|
733
777
|
"span",
|
|
734
778
|
{
|
|
735
779
|
className: cx(
|
|
736
|
-
"
|
|
737
|
-
selected && "
|
|
738
|
-
option.disabled && "
|
|
780
|
+
"uziMultiSelectIndicator",
|
|
781
|
+
selected && "uziMultiSelectIndicatorSelected",
|
|
782
|
+
option.disabled && "uziMultiSelectIndicatorDisabled"
|
|
739
783
|
),
|
|
740
784
|
"aria-hidden": "true",
|
|
741
785
|
children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(DropdownMenuPrimitive.ItemIndicator, { forceMount: true, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
@@ -760,7 +804,7 @@ var MultiSelect = React4.forwardRef(
|
|
|
760
804
|
) })
|
|
761
805
|
}
|
|
762
806
|
),
|
|
763
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "
|
|
807
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "uziMultiSelectOptionLabel", children: option.label })
|
|
764
808
|
]
|
|
765
809
|
},
|
|
766
810
|
option.value
|
|
@@ -805,131 +849,154 @@ var Select = React5.forwardRef(
|
|
|
805
849
|
onFocus
|
|
806
850
|
}, ref) => {
|
|
807
851
|
const internalValue = value === "" && allowEmptyOption ? EMPTY_OPTION_VALUE : value;
|
|
808
|
-
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
809
|
-
|
|
852
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
853
|
+
"div",
|
|
810
854
|
{
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
"path",
|
|
855
|
+
className: cx(
|
|
856
|
+
"uziSelectWrapper",
|
|
857
|
+
fullWidth && "uziSelectWrapperFullWidth",
|
|
858
|
+
className
|
|
859
|
+
),
|
|
860
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
861
|
+
SelectPrimitive.Root,
|
|
862
|
+
{
|
|
863
|
+
value: internalValue,
|
|
864
|
+
onValueChange: (nextValue) => onChange(nextValue === EMPTY_OPTION_VALUE ? "" : nextValue),
|
|
865
|
+
name,
|
|
866
|
+
disabled,
|
|
867
|
+
required,
|
|
868
|
+
autoComplete,
|
|
869
|
+
children: [
|
|
870
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
871
|
+
SelectPrimitive.Trigger,
|
|
872
|
+
{
|
|
873
|
+
ref,
|
|
874
|
+
id,
|
|
875
|
+
className: "uziSelectTrigger",
|
|
876
|
+
form,
|
|
877
|
+
title,
|
|
878
|
+
"aria-label": ariaLabel,
|
|
879
|
+
"aria-labelledby": ariaLabelledBy,
|
|
880
|
+
onBlur,
|
|
881
|
+
onFocus,
|
|
882
|
+
children: [
|
|
883
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
884
|
+
SelectPrimitive.Value,
|
|
842
885
|
{
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
886
|
+
className: "uziSelectValue",
|
|
887
|
+
placeholder
|
|
888
|
+
}
|
|
889
|
+
),
|
|
890
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
891
|
+
SelectPrimitive.Icon,
|
|
892
|
+
{
|
|
893
|
+
className: "uziSelectChevron",
|
|
894
|
+
"aria-hidden": "true",
|
|
895
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
896
|
+
"svg",
|
|
897
|
+
{
|
|
898
|
+
viewBox: "0 0 10 10",
|
|
899
|
+
fill: "none",
|
|
900
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
901
|
+
width: "10",
|
|
902
|
+
height: "10",
|
|
903
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
904
|
+
"path",
|
|
905
|
+
{
|
|
906
|
+
d: "M2 3.5L5 6.5L8 3.5",
|
|
907
|
+
stroke: "currentColor",
|
|
908
|
+
strokeWidth: "1.5",
|
|
909
|
+
strokeLinecap: "round",
|
|
910
|
+
strokeLinejoin: "round"
|
|
911
|
+
}
|
|
912
|
+
)
|
|
913
|
+
}
|
|
914
|
+
)
|
|
848
915
|
}
|
|
849
916
|
)
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "indicator", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
870
|
-
"svg",
|
|
871
|
-
{
|
|
872
|
-
viewBox: "0 0 16 16",
|
|
873
|
-
width: "16",
|
|
874
|
-
height: "16",
|
|
875
|
-
"aria-hidden": "true",
|
|
876
|
-
className: "indicatorIcon",
|
|
877
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
878
|
-
"path",
|
|
917
|
+
]
|
|
918
|
+
}
|
|
919
|
+
),
|
|
920
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
921
|
+
SelectPrimitive.Content,
|
|
922
|
+
{
|
|
923
|
+
className: "uziSelectContent",
|
|
924
|
+
position: "popper",
|
|
925
|
+
sideOffset: 4,
|
|
926
|
+
align: "start",
|
|
927
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(SelectPrimitive.Viewport, { className: "uziSelectViewport", children: [
|
|
928
|
+
placeholder && allowEmptyOption ? /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
929
|
+
SelectPrimitive.Item,
|
|
930
|
+
{
|
|
931
|
+
value: EMPTY_OPTION_VALUE,
|
|
932
|
+
className: "uziSelectItem",
|
|
933
|
+
children: [
|
|
934
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "uziSelectIndicator", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
935
|
+
"svg",
|
|
879
936
|
{
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
937
|
+
viewBox: "0 0 16 16",
|
|
938
|
+
width: "16",
|
|
939
|
+
height: "16",
|
|
940
|
+
"aria-hidden": "true",
|
|
941
|
+
className: "uziSelectIndicatorIcon",
|
|
942
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
943
|
+
"path",
|
|
944
|
+
{
|
|
945
|
+
d: "M3.5 8.5 6.5 11.5 12.5 4.5",
|
|
946
|
+
fill: "none",
|
|
947
|
+
stroke: "currentColor",
|
|
948
|
+
strokeWidth: "1.8",
|
|
949
|
+
strokeLinecap: "round",
|
|
950
|
+
strokeLinejoin: "round"
|
|
951
|
+
}
|
|
952
|
+
)
|
|
886
953
|
}
|
|
887
|
-
)
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "indicator", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
902
|
-
"svg",
|
|
903
|
-
{
|
|
904
|
-
viewBox: "0 0 16 16",
|
|
905
|
-
width: "16",
|
|
906
|
-
height: "16",
|
|
907
|
-
"aria-hidden": "true",
|
|
908
|
-
className: "indicatorIcon",
|
|
909
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
910
|
-
"path",
|
|
954
|
+
) }) }),
|
|
955
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(SelectPrimitive.ItemText, { children: placeholder })
|
|
956
|
+
]
|
|
957
|
+
}
|
|
958
|
+
) : null,
|
|
959
|
+
options.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
960
|
+
SelectPrimitive.Item,
|
|
961
|
+
{
|
|
962
|
+
value: opt.value,
|
|
963
|
+
disabled: opt.disabled,
|
|
964
|
+
className: "uziSelectItem",
|
|
965
|
+
children: [
|
|
966
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "uziSelectIndicator", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
967
|
+
"svg",
|
|
911
968
|
{
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
969
|
+
viewBox: "0 0 16 16",
|
|
970
|
+
width: "16",
|
|
971
|
+
height: "16",
|
|
972
|
+
"aria-hidden": "true",
|
|
973
|
+
className: "uziSelectIndicatorIcon",
|
|
974
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
975
|
+
"path",
|
|
976
|
+
{
|
|
977
|
+
d: "M3.5 8.5 6.5 11.5 12.5 4.5",
|
|
978
|
+
fill: "none",
|
|
979
|
+
stroke: "currentColor",
|
|
980
|
+
strokeWidth: "1.8",
|
|
981
|
+
strokeLinecap: "round",
|
|
982
|
+
strokeLinejoin: "round"
|
|
983
|
+
}
|
|
984
|
+
)
|
|
918
985
|
}
|
|
919
|
-
)
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
986
|
+
) }) }),
|
|
987
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(SelectPrimitive.ItemText, { children: opt.label })
|
|
988
|
+
]
|
|
989
|
+
},
|
|
990
|
+
opt.value
|
|
991
|
+
))
|
|
992
|
+
] })
|
|
993
|
+
}
|
|
994
|
+
) })
|
|
995
|
+
]
|
|
996
|
+
}
|
|
997
|
+
)
|
|
931
998
|
}
|
|
932
|
-
)
|
|
999
|
+
);
|
|
933
1000
|
}
|
|
934
1001
|
);
|
|
935
1002
|
Select.displayName = "Select";
|
|
@@ -992,7 +1059,7 @@ function DropdownMenuContent({
|
|
|
992
1059
|
DropdownMenuPrimitive2.Content,
|
|
993
1060
|
{
|
|
994
1061
|
sideOffset,
|
|
995
|
-
className: cx("
|
|
1062
|
+
className: cx("uziDropdownMenuContent", className),
|
|
996
1063
|
...props
|
|
997
1064
|
}
|
|
998
1065
|
) });
|
|
@@ -1008,8 +1075,8 @@ function DropdownMenuItem({
|
|
|
1008
1075
|
{
|
|
1009
1076
|
"data-inset": inset ? "true" : void 0,
|
|
1010
1077
|
className: cx(
|
|
1011
|
-
"
|
|
1012
|
-
variant === "destructive" && "
|
|
1078
|
+
"uziDropdownMenuItem",
|
|
1079
|
+
variant === "destructive" && "uziDropdownMenuItemDestructive",
|
|
1013
1080
|
className
|
|
1014
1081
|
),
|
|
1015
1082
|
...props
|
|
@@ -1024,17 +1091,21 @@ function DropdownMenuCheckboxItem({
|
|
|
1024
1091
|
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
1025
1092
|
DropdownMenuPrimitive2.CheckboxItem,
|
|
1026
1093
|
{
|
|
1027
|
-
className: cx(
|
|
1094
|
+
className: cx(
|
|
1095
|
+
"uziDropdownMenuItem",
|
|
1096
|
+
"uziDropdownMenuInsetItem",
|
|
1097
|
+
className
|
|
1098
|
+
),
|
|
1028
1099
|
...props,
|
|
1029
1100
|
children: [
|
|
1030
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "
|
|
1101
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "uziDropdownMenuIndicator", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DropdownMenuPrimitive2.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1031
1102
|
"svg",
|
|
1032
1103
|
{
|
|
1033
1104
|
viewBox: "0 0 16 16",
|
|
1034
1105
|
width: "16",
|
|
1035
1106
|
height: "16",
|
|
1036
1107
|
"aria-hidden": "true",
|
|
1037
|
-
className: "
|
|
1108
|
+
className: "uziDropdownMenuIndicatorIcon",
|
|
1038
1109
|
children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1039
1110
|
"path",
|
|
1040
1111
|
{
|
|
@@ -1061,10 +1132,14 @@ function DropdownMenuRadioItem({
|
|
|
1061
1132
|
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
1062
1133
|
DropdownMenuPrimitive2.RadioItem,
|
|
1063
1134
|
{
|
|
1064
|
-
className: cx(
|
|
1135
|
+
className: cx(
|
|
1136
|
+
"uziDropdownMenuItem",
|
|
1137
|
+
"uziDropdownMenuInsetItem",
|
|
1138
|
+
className
|
|
1139
|
+
),
|
|
1065
1140
|
...props,
|
|
1066
1141
|
children: [
|
|
1067
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "
|
|
1142
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "uziDropdownMenuIndicator", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DropdownMenuPrimitive2.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "uziDropdownMenuRadioDot" }) }) }),
|
|
1068
1143
|
children
|
|
1069
1144
|
]
|
|
1070
1145
|
}
|
|
@@ -1079,7 +1154,7 @@ function DropdownMenuLabel({
|
|
|
1079
1154
|
DropdownMenuPrimitive2.Label,
|
|
1080
1155
|
{
|
|
1081
1156
|
"data-inset": inset ? "true" : void 0,
|
|
1082
|
-
className: cx("
|
|
1157
|
+
className: cx("uziDropdownMenuLabel", className),
|
|
1083
1158
|
...props
|
|
1084
1159
|
}
|
|
1085
1160
|
);
|
|
@@ -1091,7 +1166,7 @@ function DropdownMenuSeparator({
|
|
|
1091
1166
|
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1092
1167
|
DropdownMenuPrimitive2.Separator,
|
|
1093
1168
|
{
|
|
1094
|
-
className: cx("
|
|
1169
|
+
className: cx("uziDropdownMenuSeparator", className),
|
|
1095
1170
|
...props
|
|
1096
1171
|
}
|
|
1097
1172
|
);
|
|
@@ -1106,7 +1181,7 @@ function DropdownMenuSubTrigger({
|
|
|
1106
1181
|
DropdownMenuPrimitive2.SubTrigger,
|
|
1107
1182
|
{
|
|
1108
1183
|
"data-inset": inset ? "true" : void 0,
|
|
1109
|
-
className: cx("
|
|
1184
|
+
className: cx("uziDropdownMenuItem", className),
|
|
1110
1185
|
...props,
|
|
1111
1186
|
children: [
|
|
1112
1187
|
children,
|
|
@@ -1117,7 +1192,7 @@ function DropdownMenuSubTrigger({
|
|
|
1117
1192
|
width: "16",
|
|
1118
1193
|
height: "16",
|
|
1119
1194
|
"aria-hidden": "true",
|
|
1120
|
-
className: "
|
|
1195
|
+
className: "uziDropdownMenuChevron",
|
|
1121
1196
|
children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1122
1197
|
"path",
|
|
1123
1198
|
{
|
|
@@ -1142,7 +1217,7 @@ function DropdownMenuSubContent({
|
|
|
1142
1217
|
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1143
1218
|
DropdownMenuPrimitive2.SubContent,
|
|
1144
1219
|
{
|
|
1145
|
-
className: cx("
|
|
1220
|
+
className: cx("uziDropdownMenuContent", className),
|
|
1146
1221
|
...props
|
|
1147
1222
|
}
|
|
1148
1223
|
);
|
|
@@ -1264,6 +1339,9 @@ function useTheme() {
|
|
|
1264
1339
|
return context;
|
|
1265
1340
|
}
|
|
1266
1341
|
|
|
1342
|
+
// src/components/theme-toggle-button/theme-toggle-button.module.css
|
|
1343
|
+
var theme_toggle_button_default = {};
|
|
1344
|
+
|
|
1267
1345
|
// src/components/theme-toggle-button/ThemeToggleButton.tsx
|
|
1268
1346
|
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1269
1347
|
function MoonIcon() {
|
|
@@ -1308,7 +1386,7 @@ function ThemeToggleButton({
|
|
|
1308
1386
|
type: "button",
|
|
1309
1387
|
variant: "ghost",
|
|
1310
1388
|
size: showLabel ? "sm" : "icon",
|
|
1311
|
-
className: cx(showLabel &&
|
|
1389
|
+
className: cx(showLabel && theme_toggle_button_default.withLabel, className),
|
|
1312
1390
|
"aria-label": `Switch to ${nextThemeLabel.toLowerCase()}`,
|
|
1313
1391
|
title: `Switch to ${nextThemeLabel.toLowerCase()}`,
|
|
1314
1392
|
onClick: (event) => {
|
|
@@ -1469,7 +1547,11 @@ function AppShell({
|
|
|
1469
1547
|
sidebarOpen ? "appShellOpen" : "appShellCollapsed",
|
|
1470
1548
|
className
|
|
1471
1549
|
);
|
|
1472
|
-
const sidebarClasses = cx(
|
|
1550
|
+
const sidebarClasses = cx(
|
|
1551
|
+
"appShellSidebar",
|
|
1552
|
+
sidebarOpen && "appShellSidebarOpen",
|
|
1553
|
+
sidebarClassName
|
|
1554
|
+
);
|
|
1473
1555
|
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
1474
1556
|
"div",
|
|
1475
1557
|
{
|
|
@@ -1505,7 +1587,15 @@ function AppShell({
|
|
|
1505
1587
|
themeToggleProps
|
|
1506
1588
|
}
|
|
1507
1589
|
),
|
|
1508
|
-
!isDesktop && sidebarOpen && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1590
|
+
!isDesktop && sidebarOpen && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
1591
|
+
"div",
|
|
1592
|
+
{
|
|
1593
|
+
className: "appShellBackdrop",
|
|
1594
|
+
onClick: () => setSidebarOpen(false),
|
|
1595
|
+
onTouchStart: () => setSidebarOpen(false),
|
|
1596
|
+
"aria-hidden": "true"
|
|
1597
|
+
}
|
|
1598
|
+
),
|
|
1509
1599
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("aside", { ref: sidebarRef, id: sidebarId, className: sidebarClasses, "aria-label": "Sidebar navigation", children: sidebar }),
|
|
1510
1600
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("main", { ref: mainRef, className: cx("appShellMain", mainClassName), children })
|
|
1511
1601
|
]
|
|
@@ -1544,18 +1634,22 @@ function SidebarNav({
|
|
|
1544
1634
|
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
1545
1635
|
"nav",
|
|
1546
1636
|
{
|
|
1547
|
-
className: cx(
|
|
1637
|
+
className: cx(
|
|
1638
|
+
"sidebarNav",
|
|
1639
|
+
collapsed && "sidebarNavCollapsed",
|
|
1640
|
+
className
|
|
1641
|
+
),
|
|
1548
1642
|
"aria-label": ariaLabel,
|
|
1549
1643
|
style,
|
|
1550
1644
|
children: [
|
|
1551
|
-
header ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "
|
|
1552
|
-
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "
|
|
1645
|
+
header ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "header", children: header }) : null,
|
|
1646
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "sections", children: resolvedSections.map((section, sectionIndex) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
1553
1647
|
"div",
|
|
1554
1648
|
{
|
|
1555
|
-
className: cx("
|
|
1649
|
+
className: cx("section", sectionClassName),
|
|
1556
1650
|
children: [
|
|
1557
|
-
section.label && !collapsed ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "
|
|
1558
|
-
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "
|
|
1651
|
+
section.label && !collapsed ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "sectionLabel", children: section.label }) : null,
|
|
1652
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "sectionItems", children: section.items.map((item, itemIndex) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1559
1653
|
SidebarNavEntry,
|
|
1560
1654
|
{
|
|
1561
1655
|
item,
|
|
@@ -1570,7 +1664,7 @@ function SidebarNav({
|
|
|
1570
1664
|
},
|
|
1571
1665
|
section.id ?? `section-${sectionIndex}`
|
|
1572
1666
|
)) }),
|
|
1573
|
-
footer ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "
|
|
1667
|
+
footer ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "footer", children: footer }) : null
|
|
1574
1668
|
]
|
|
1575
1669
|
}
|
|
1576
1670
|
);
|
|
@@ -1585,20 +1679,20 @@ function SidebarNavEntry({
|
|
|
1585
1679
|
const rel = item.rel ?? (item.target === "_blank" ? "noreferrer" : void 0);
|
|
1586
1680
|
const title = item.title ?? (typeof item.label === "string" ? item.label : void 0);
|
|
1587
1681
|
const classes = cx(
|
|
1588
|
-
"
|
|
1589
|
-
active && "
|
|
1590
|
-
collapsed && "
|
|
1591
|
-
item.disabled && "
|
|
1682
|
+
"item",
|
|
1683
|
+
active && "itemActive",
|
|
1684
|
+
collapsed && "itemCollapsed",
|
|
1685
|
+
item.disabled && "itemDisabled",
|
|
1592
1686
|
itemClassName
|
|
1593
1687
|
);
|
|
1594
1688
|
const content = /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
|
|
1595
|
-
item.icon && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "
|
|
1596
|
-
!collapsed ? /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("span", { className: "
|
|
1597
|
-
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("span", { className: "
|
|
1598
|
-
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "
|
|
1599
|
-
item.badge && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "
|
|
1689
|
+
item.icon && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "icon", children: item.icon }),
|
|
1690
|
+
!collapsed ? /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("span", { className: "itemBody", children: [
|
|
1691
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("span", { className: "labelRow", children: [
|
|
1692
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "label", children: item.label }),
|
|
1693
|
+
item.badge && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "badge", children: item.badge })
|
|
1600
1694
|
] }),
|
|
1601
|
-
item.description ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "
|
|
1695
|
+
item.description ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "description", children: item.description }) : null
|
|
1602
1696
|
] }) : null
|
|
1603
1697
|
] });
|
|
1604
1698
|
const handleClick = () => {
|
|
@@ -1648,6 +1742,9 @@ function SidebarNavEntry({
|
|
|
1648
1742
|
);
|
|
1649
1743
|
}
|
|
1650
1744
|
|
|
1745
|
+
// src/components/skeleton/skeleton.module.css
|
|
1746
|
+
var skeleton_default = {};
|
|
1747
|
+
|
|
1651
1748
|
// src/components/skeleton/Skeleton.tsx
|
|
1652
1749
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
1653
1750
|
function Skeleton({
|
|
@@ -1661,7 +1758,7 @@ function Skeleton({
|
|
|
1661
1758
|
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1662
1759
|
"div",
|
|
1663
1760
|
{
|
|
1664
|
-
className: cx(
|
|
1761
|
+
className: cx(skeleton_default.skeleton, skeleton_default[`radius-${radius}`], className),
|
|
1665
1762
|
style: { width, height, ...style },
|
|
1666
1763
|
"aria-hidden": "true",
|
|
1667
1764
|
...rest
|
|
@@ -1669,6 +1766,9 @@ function Skeleton({
|
|
|
1669
1766
|
);
|
|
1670
1767
|
}
|
|
1671
1768
|
|
|
1769
|
+
// src/components/progress/progress.module.css
|
|
1770
|
+
var progress_default = {};
|
|
1771
|
+
|
|
1672
1772
|
// src/components/progress/Progress.tsx
|
|
1673
1773
|
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
1674
1774
|
function Progress({
|
|
@@ -1682,7 +1782,7 @@ function Progress({
|
|
|
1682
1782
|
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1683
1783
|
"div",
|
|
1684
1784
|
{
|
|
1685
|
-
className: cx(
|
|
1785
|
+
className: cx(progress_default.track, className),
|
|
1686
1786
|
role: "progressbar",
|
|
1687
1787
|
"aria-valuenow": clamped,
|
|
1688
1788
|
"aria-valuemin": 0,
|
|
@@ -1692,7 +1792,7 @@ function Progress({
|
|
|
1692
1792
|
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1693
1793
|
"div",
|
|
1694
1794
|
{
|
|
1695
|
-
className: cx(
|
|
1795
|
+
className: cx(progress_default.fill, progress_default[`tone-${tone}`]),
|
|
1696
1796
|
style: { width: `${clamped}%` }
|
|
1697
1797
|
}
|
|
1698
1798
|
)
|