@rafal.lemieszewski/tide-ui 0.87.7 → 0.87.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/fundamental/alert-dialog.cjs +1 -1
- package/dist/cjs/components/fundamental/alert.cjs +1 -1
- package/dist/cjs/components/fundamental/avatar.cjs +1 -1
- package/dist/cjs/components/fundamental/badge.cjs +1 -1
- package/dist/cjs/components/fundamental/breadcrumb.cjs +1 -1
- package/dist/cjs/components/fundamental/button-group.cjs +1 -1
- package/dist/cjs/components/fundamental/button.cjs +1 -1
- package/dist/cjs/components/fundamental/calendar.cjs +1 -1
- package/dist/cjs/components/fundamental/card.cjs +1 -1
- package/dist/cjs/components/fundamental/chart.cjs +1 -1
- package/dist/cjs/components/fundamental/checkbox.cjs +1 -1
- package/dist/cjs/components/fundamental/command.cjs +1 -1
- package/dist/cjs/components/fundamental/dialog.cjs +1 -1
- package/dist/cjs/components/fundamental/drawer.cjs +1 -1
- package/dist/cjs/components/fundamental/dropdown-menu.cjs +1 -1
- package/dist/cjs/components/fundamental/file-upload.cjs +1 -1
- package/dist/cjs/components/fundamental/hover-card.cjs +1 -1
- package/dist/cjs/components/fundamental/input-group.cjs +1 -1
- package/dist/cjs/components/fundamental/input.cjs +1 -1
- package/dist/cjs/components/fundamental/kbd.cjs +1 -1
- package/dist/cjs/components/fundamental/month-picker.cjs +1 -1
- package/dist/cjs/components/fundamental/popover.cjs +1 -1
- package/dist/cjs/components/fundamental/resizable.cjs +1 -1
- package/dist/cjs/components/fundamental/select.cjs +1 -1
- package/dist/cjs/components/fundamental/sheet.cjs +1 -1
- package/dist/cjs/components/fundamental/sidebar.cjs +1 -1
- package/dist/cjs/components/fundamental/skeleton.cjs +1 -1
- package/dist/cjs/components/fundamental/slider.cjs +1 -1
- package/dist/cjs/components/fundamental/spinner.cjs +1 -1
- package/dist/cjs/components/fundamental/switch.cjs +1 -1
- package/dist/cjs/components/fundamental/tabs.cjs +1 -1
- package/dist/cjs/components/fundamental/tag.cjs +3 -3
- package/dist/cjs/components/fundamental/textarea.cjs +1 -1
- package/dist/cjs/components/fundamental/toast.cjs +1 -1
- package/dist/cjs/components/fundamental/toggle.cjs +1 -1
- package/dist/cjs/components/fundamental/tooltip.cjs +1 -1
- package/dist/cjs/components/fundamental/tree.cjs +1 -1
- package/dist/cjs/components/product/activity-log.cjs +1 -1
- package/dist/cjs/components/product/app-frame.cjs +1 -1
- package/dist/cjs/components/product/attributes-list.cjs +1 -1
- package/dist/cjs/components/product/bookmarks.cjs +1 -1
- package/dist/cjs/components/product/data-table-settings-menu.cjs +1 -1
- package/dist/cjs/components/product/data-table.cjs +1 -1
- package/dist/cjs/components/product/filters.cjs +1 -1
- package/dist/cjs/components/product/linked-chart.cjs +1 -1
- package/dist/es/components/fundamental/alert-dialog.js +10 -10
- package/dist/es/components/fundamental/alert.js +1 -1
- package/dist/es/components/fundamental/avatar.js +23 -23
- package/dist/es/components/fundamental/badge.js +1 -1
- package/dist/es/components/fundamental/breadcrumb.js +23 -23
- package/dist/es/components/fundamental/button-group.js +14 -14
- package/dist/es/components/fundamental/button.js +28 -28
- package/dist/es/components/fundamental/calendar.js +20 -20
- package/dist/es/components/fundamental/card.js +26 -26
- package/dist/es/components/fundamental/chart.js +1 -1
- package/dist/es/components/fundamental/checkbox.js +3 -3
- package/dist/es/components/fundamental/command.js +36 -36
- package/dist/es/components/fundamental/dialog.js +7 -7
- package/dist/es/components/fundamental/drawer.js +1 -1
- package/dist/es/components/fundamental/dropdown-menu.js +111 -111
- package/dist/es/components/fundamental/file-upload.js +2 -2
- package/dist/es/components/fundamental/hover-card.js +6 -6
- package/dist/es/components/fundamental/input-group.js +2 -2
- package/dist/es/components/fundamental/input.js +1 -1
- package/dist/es/components/fundamental/kbd.js +5 -5
- package/dist/es/components/fundamental/month-picker.js +21 -21
- package/dist/es/components/fundamental/popover.js +7 -7
- package/dist/es/components/fundamental/resizable.js +1 -1
- package/dist/es/components/fundamental/select.js +21 -21
- package/dist/es/components/fundamental/sheet.js +40 -40
- package/dist/es/components/fundamental/sidebar.js +45 -45
- package/dist/es/components/fundamental/skeleton.js +19 -19
- package/dist/es/components/fundamental/slider.js +1 -1
- package/dist/es/components/fundamental/spinner.js +11 -11
- package/dist/es/components/fundamental/switch.js +7 -7
- package/dist/es/components/fundamental/tabs.js +30 -30
- package/dist/es/components/fundamental/tag.js +28 -28
- package/dist/es/components/fundamental/textarea.js +9 -9
- package/dist/es/components/fundamental/toast.js +11 -11
- package/dist/es/components/fundamental/toggle.js +7 -7
- package/dist/es/components/fundamental/tooltip.js +4 -4
- package/dist/es/components/fundamental/tree.js +17 -17
- package/dist/es/components/product/activity-log.js +41 -41
- package/dist/es/components/product/app-frame.js +3 -3
- package/dist/es/components/product/attributes-list.js +68 -68
- package/dist/es/components/product/bookmarks.js +148 -148
- package/dist/es/components/product/data-table-settings-menu.js +45 -45
- package/dist/es/components/product/data-table.js +375 -375
- package/dist/es/components/product/filters.js +5 -5
- package/dist/es/components/product/linked-chart.js +24 -24
- package/dist/es/style.css +1 -1
- package/package.json +1 -1
|
@@ -17,7 +17,7 @@ function E() {
|
|
|
17
17
|
}
|
|
18
18
|
const J = /* @__PURE__ */ t.forwardRef(
|
|
19
19
|
({ defaultOpen: r = !0, open: e, onOpenChange: a, className: o, style: i, children: l, ...u }, f) => {
|
|
20
|
-
const [
|
|
20
|
+
const [v, m] = t.useState(r), [p, h] = t.useState(!1), [y, R] = t.useState(!1), g = e ?? v, w = t.useCallback(
|
|
21
21
|
(n) => {
|
|
22
22
|
const c = typeof n == "function" ? n(g) : n;
|
|
23
23
|
a ? a(c) : m(c), typeof document < "u" && (document.cookie = `${V}=${c}; path=/; max-age=${q}`);
|
|
@@ -41,11 +41,11 @@ const J = /* @__PURE__ */ t.forwardRef(
|
|
|
41
41
|
open: g,
|
|
42
42
|
setOpen: w,
|
|
43
43
|
isMobile: y,
|
|
44
|
-
openMobile:
|
|
44
|
+
openMobile: p,
|
|
45
45
|
setOpenMobile: h,
|
|
46
46
|
toggleSidebar: b
|
|
47
47
|
}),
|
|
48
|
-
[N, g, w, y,
|
|
48
|
+
[N, g, w, y, p, h, b]
|
|
49
49
|
);
|
|
50
50
|
return /* @__PURE__ */ d(G.Provider, { value: S, children: /* @__PURE__ */ d(_.Provider, { delayDuration: 0, children: /* @__PURE__ */ d(
|
|
51
51
|
"div",
|
|
@@ -76,7 +76,7 @@ const Q = /* @__PURE__ */ t.forwardRef(
|
|
|
76
76
|
children: i,
|
|
77
77
|
...l
|
|
78
78
|
}, u) => {
|
|
79
|
-
const { isMobile: f, state:
|
|
79
|
+
const { isMobile: f, state: v, openMobile: m, setOpenMobile: p } = E();
|
|
80
80
|
return e === "none" ? /* @__PURE__ */ d(
|
|
81
81
|
"div",
|
|
82
82
|
{
|
|
@@ -88,7 +88,7 @@ const Q = /* @__PURE__ */ t.forwardRef(
|
|
|
88
88
|
...l,
|
|
89
89
|
children: i
|
|
90
90
|
}
|
|
91
|
-
) : f ? /* @__PURE__ */ d(I.Root, { open: m, onOpenChange:
|
|
91
|
+
) : f ? /* @__PURE__ */ d(I.Root, { open: m, onOpenChange: p, modal: !1, children: /* @__PURE__ */ C(I.Portal, { children: [
|
|
92
92
|
/* @__PURE__ */ d(I.Overlay, { className: "fixed inset-0 z-40 bg-black/80" }),
|
|
93
93
|
/* @__PURE__ */ d(
|
|
94
94
|
I.Content,
|
|
@@ -96,7 +96,7 @@ const Q = /* @__PURE__ */ t.forwardRef(
|
|
|
96
96
|
ref: u,
|
|
97
97
|
"data-sidebar": "sidebar",
|
|
98
98
|
"data-mobile": "true",
|
|
99
|
-
className: "fixed inset-y-0 z-50 h-auto w-[var(--sidebar-width-mobile)] bg-[var(--color-surface-primary)] p-0 text-[var(--color-text-primary)] shadow-
|
|
99
|
+
className: "fixed inset-y-0 z-50 h-auto w-[var(--sidebar-width-mobile)] bg-[var(--color-surface-primary)] p-0 text-[var(--color-text-primary)] shadow-[var(--shadow-300)] transition ease-in-out data-[state=open]:duration-300 data-[state=closed]:duration-200 data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left",
|
|
100
100
|
style: {
|
|
101
101
|
"--sidebar-width": X
|
|
102
102
|
},
|
|
@@ -109,8 +109,8 @@ const Q = /* @__PURE__ */ t.forwardRef(
|
|
|
109
109
|
{
|
|
110
110
|
ref: u,
|
|
111
111
|
className: "group peer hidden md:block text-[var(--color-text-primary)]",
|
|
112
|
-
"data-state":
|
|
113
|
-
"data-collapsible":
|
|
112
|
+
"data-state": v,
|
|
113
|
+
"data-collapsible": v === "collapsed" ? e : "",
|
|
114
114
|
"data-variant": r,
|
|
115
115
|
"data-side": a,
|
|
116
116
|
children: /* @__PURE__ */ d(
|
|
@@ -120,8 +120,8 @@ const Q = /* @__PURE__ */ t.forwardRef(
|
|
|
120
120
|
"duration-200 relative h-svh w-[var(--sidebar-width)] bg-[var(--color-surface-primary)] border-r border-[var(--color-border-primary-subtle)] transition-[width] ease-linear",
|
|
121
121
|
"group-data-[collapsible=offcanvas]:w-0",
|
|
122
122
|
"group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)]",
|
|
123
|
-
r === "floating" && "m-[var(--space-s)] rounded-m border border-[var(--color-border-primary-subtle)] shadow-
|
|
124
|
-
r === "inset" && "m-[var(--space-s)] ml-0 rounded-r-m border-r border-[var(--color-border-primary-subtle)]",
|
|
123
|
+
r === "floating" && "m-[var(--space-s)] rounded-[var(--border-radius-m)] border border-[var(--color-border-primary-subtle)] shadow-[var(--shadow-300)]",
|
|
124
|
+
r === "inset" && "m-[var(--space-s)] ml-0 rounded-r-[var(--border-radius-m)] border-r border-[var(--color-border-primary-subtle)]",
|
|
125
125
|
o
|
|
126
126
|
),
|
|
127
127
|
...l,
|
|
@@ -193,7 +193,7 @@ const ee = /* @__PURE__ */ t.forwardRef(({ className: r, ...e }, a) => /* @__PUR
|
|
|
193
193
|
ref: a,
|
|
194
194
|
className: s(
|
|
195
195
|
"relative flex flex-1 flex-col min-w-0 bg-[var(--color-surface-base)]",
|
|
196
|
-
"peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-
|
|
196
|
+
"peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-[var(--border-radius-xl)] md:peer-data-[variant=inset]:shadow-[var(--shadow-200)]",
|
|
197
197
|
r
|
|
198
198
|
),
|
|
199
199
|
...e
|
|
@@ -206,7 +206,7 @@ const re = /* @__PURE__ */ t.forwardRef(({ className: r, ...e }, a) => /* @__PUR
|
|
|
206
206
|
ref: a,
|
|
207
207
|
"data-sidebar": "input",
|
|
208
208
|
className: s(
|
|
209
|
-
"flex h-8 w-full rounded-l border border-[var(--color-interaction-border-input)] bg-[var(--color-surface-primary)] px-[var(--space-m)] py-[var(--space-s)] text-sm text-[var(--color-text-primary)] ring-offset-[var(--color-surface-primary)] file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-[var(--color-text-tertiary)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-border-focused)] focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
209
|
+
"flex h-8 w-full rounded-[var(--border-radius-l)] border border-[var(--color-interaction-border-input)] bg-[var(--color-surface-primary)] px-[var(--space-m)] py-[var(--space-s)] text-sm text-[var(--color-text-primary)] ring-offset-[var(--color-surface-primary)] file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-[var(--color-text-tertiary)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-border-focused)] focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
210
210
|
r
|
|
211
211
|
),
|
|
212
212
|
...e
|
|
@@ -219,7 +219,7 @@ const ae = /* @__PURE__ */ t.forwardRef(({ className: r, children: e, onOpenChan
|
|
|
219
219
|
ref: l,
|
|
220
220
|
"data-sidebar": "search-button",
|
|
221
221
|
className: s(
|
|
222
|
-
"text-body-md flex h-8 w-full cursor-pointer items-center rounded-m border border-[var(--color-border-primary-subtle)] bg-[var(--color-surface-primary)] px-3 py-1 pr-20 pl-8 text-left text-[var(--color-text-tertiary)] transition-colors hover:border-[var(--color-border-primary-medium)] hover:bg-[var(--color-background-neutral-subtlest-hovered)] focus:border-[var(--color-border-brand-bold)] focus:ring-2 focus:ring-[var(--color-border-brand-bold)] focus:ring-offset-2 focus:outline-none active:border-[var(--color-border-primary-medium)] group-data-[collapsible=icon]:hidden",
|
|
222
|
+
"text-body-md flex h-8 w-full cursor-pointer items-center rounded-[var(--border-radius-m)] border border-[var(--color-border-primary-subtle)] bg-[var(--color-surface-primary)] px-3 py-1 pr-20 pl-8 text-left text-[var(--color-text-tertiary)] transition-colors hover:border-[var(--color-border-primary-medium)] hover:bg-[var(--color-background-neutral-subtlest-hovered)] focus:border-[var(--color-border-brand-bold)] focus:ring-2 focus:ring-[var(--color-border-brand-bold)] focus:ring-offset-2 focus:outline-none active:border-[var(--color-border-primary-medium)] group-data-[collapsible=icon]:hidden",
|
|
223
223
|
r
|
|
224
224
|
),
|
|
225
225
|
onClick: () => a?.(!0),
|
|
@@ -305,7 +305,7 @@ const ne = /* @__PURE__ */ t.forwardRef(({ className: r, asChild: e = !1, ...a }
|
|
|
305
305
|
ref: o,
|
|
306
306
|
"data-sidebar": "group-label",
|
|
307
307
|
className: s(
|
|
308
|
-
"duration-200 flex h-8 shrink-0 items-center rounded-m px-2 [&]:text-body-medium-sm text-[var(--color-text-tertiary)] outline-none ring-[var(--color-border-focused)] transition-opacity ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
308
|
+
"duration-200 flex h-8 shrink-0 items-center rounded-[var(--border-radius-m)] px-2 [&]:text-body-medium-sm text-[var(--color-text-tertiary)] outline-none ring-[var(--color-border-focused)] transition-opacity ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
309
309
|
"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
|
|
310
310
|
r
|
|
311
311
|
),
|
|
@@ -319,7 +319,7 @@ const ce = /* @__PURE__ */ t.forwardRef(({ className: r, asChild: e = !1, ...a }
|
|
|
319
319
|
ref: o,
|
|
320
320
|
"data-sidebar": "group-action",
|
|
321
321
|
className: s(
|
|
322
|
-
"absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-m p-0 text-[var(--color-text-secondary)] outline-none ring-[var(--color-border-focused)] transition-transform hover:bg-[var(--color-background-neutral-subtlest)] focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
322
|
+
"absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-[var(--border-radius-m)] p-0 text-[var(--color-text-secondary)] outline-none ring-[var(--color-border-focused)] transition-transform hover:bg-[var(--color-background-neutral-subtlest)] focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
323
323
|
"after:absolute after:-inset-2 after:md:hidden",
|
|
324
324
|
"group-data-[collapsible=icon]:hidden",
|
|
325
325
|
r
|
|
@@ -348,7 +348,7 @@ const be = /* @__PURE__ */ t.forwardRef(({ className: r, ...e }, a) => /* @__PUR
|
|
|
348
348
|
}
|
|
349
349
|
));
|
|
350
350
|
be.displayName = "SidebarMenu";
|
|
351
|
-
const
|
|
351
|
+
const ve = /* @__PURE__ */ t.forwardRef(({ className: r, ...e }, a) => /* @__PURE__ */ d(
|
|
352
352
|
"li",
|
|
353
353
|
{
|
|
354
354
|
ref: a,
|
|
@@ -357,9 +357,9 @@ const pe = /* @__PURE__ */ t.forwardRef(({ className: r, ...e }, a) => /* @__PUR
|
|
|
357
357
|
...e
|
|
358
358
|
}
|
|
359
359
|
));
|
|
360
|
-
|
|
361
|
-
const
|
|
362
|
-
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-m px-2 py-1.5 text-left text-body-medium-md outline-none ring-[var(--color-border-focused)] transition-all duration-150 ease-in-out focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-[var(--color-background-blue-subtle-selected)] data-[active=true]:text-[var(--color-text-brand-bold-selected)] data-[state=open]:bg-[var(--color-surface-secondary)] group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 group-data-[collapsible=icon]:justify-center [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 data-[active=true]:[&>svg]:text-[var(--color-text-brand-bold-selected)] cursor-pointer",
|
|
360
|
+
ve.displayName = "SidebarMenuItem";
|
|
361
|
+
const pe = P(
|
|
362
|
+
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-[var(--border-radius-m)] px-2 py-1.5 text-left text-body-medium-md outline-none ring-[var(--color-border-focused)] transition-all duration-150 ease-in-out focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-[var(--color-background-blue-subtle-selected)] data-[active=true]:text-[var(--color-text-brand-bold-selected)] data-[state=open]:bg-[var(--color-surface-secondary)] group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 group-data-[collapsible=icon]:justify-center [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 data-[active=true]:[&>svg]:text-[var(--color-text-brand-bold-selected)] cursor-pointer",
|
|
363
363
|
{
|
|
364
364
|
variants: {
|
|
365
365
|
variant: {
|
|
@@ -387,18 +387,18 @@ const ve = P(
|
|
|
387
387
|
enhancedHover: l = !0,
|
|
388
388
|
preserveActiveOnFocus: u = !0,
|
|
389
389
|
className: f,
|
|
390
|
-
onMouseEnter:
|
|
390
|
+
onMouseEnter: v,
|
|
391
391
|
onMouseLeave: m,
|
|
392
|
-
onFocus:
|
|
392
|
+
onFocus: p,
|
|
393
393
|
onBlur: h,
|
|
394
394
|
onMouseDown: y,
|
|
395
395
|
...R
|
|
396
396
|
}, g) => {
|
|
397
397
|
const w = r ? "span" : "button", { isMobile: b, state: N } = E(), [S, n] = t.useState(!1), [c, z] = t.useState(!1), M = t.useRef(!1), B = t.useCallback(
|
|
398
398
|
(k) => {
|
|
399
|
-
l && n(!0),
|
|
399
|
+
l && n(!0), v?.(k);
|
|
400
400
|
},
|
|
401
|
-
[l,
|
|
401
|
+
[l, v]
|
|
402
402
|
), D = t.useCallback(
|
|
403
403
|
(k) => {
|
|
404
404
|
l && n(!1), m?.(k);
|
|
@@ -411,17 +411,17 @@ const ve = P(
|
|
|
411
411
|
[y]
|
|
412
412
|
), j = t.useCallback(
|
|
413
413
|
(k) => {
|
|
414
|
-
l && !M.current && z(!0), M.current = !1,
|
|
414
|
+
l && !M.current && z(!0), M.current = !1, p?.(k);
|
|
415
415
|
},
|
|
416
|
-
[l,
|
|
416
|
+
[l, p]
|
|
417
417
|
), K = t.useCallback(
|
|
418
418
|
(k) => {
|
|
419
419
|
l && z(!1), h?.(k);
|
|
420
420
|
},
|
|
421
421
|
[l, h]
|
|
422
|
-
), L = t.useMemo(() => a !== "enhanced" ?
|
|
422
|
+
), L = t.useMemo(() => a !== "enhanced" ? pe({ variant: "default", size: o }) : s(
|
|
423
423
|
// Base button styles
|
|
424
|
-
"relative peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-m px-2 py-1.5 text-left text-body-medium-md outline-none ring-[var(--color-border-focused)] transition-all duration-150 ease-in-out focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 cursor-pointer z-2",
|
|
424
|
+
"relative peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-[var(--border-radius-m)] px-2 py-1.5 text-left text-body-medium-md outline-none ring-[var(--color-border-focused)] transition-all duration-150 ease-in-out focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 cursor-pointer z-2",
|
|
425
425
|
// Size variants
|
|
426
426
|
o === "s" && "h-7 text-body-sm py-1",
|
|
427
427
|
o === "default" && "h-8",
|
|
@@ -464,10 +464,10 @@ const ve = P(
|
|
|
464
464
|
"data-size": o,
|
|
465
465
|
"data-active": e,
|
|
466
466
|
className: s(L, f),
|
|
467
|
-
onMouseEnter: l ? B :
|
|
467
|
+
onMouseEnter: l ? B : v,
|
|
468
468
|
onMouseLeave: l ? D : m,
|
|
469
469
|
onMouseDown: l ? x : y,
|
|
470
|
-
onFocus: l ? j :
|
|
470
|
+
onFocus: l ? j : p,
|
|
471
471
|
onBlur: l ? K : h,
|
|
472
472
|
...R
|
|
473
473
|
}
|
|
@@ -482,7 +482,7 @@ const ve = P(
|
|
|
482
482
|
side: "right",
|
|
483
483
|
align: "center",
|
|
484
484
|
hidden: N !== "collapsed" || b,
|
|
485
|
-
className: "z-50 overflow-hidden rounded-m bg-[var(--color-surface-primary)] px-3 py-1.5 text-xs text-[var(--color-text-primary)] border border-[var(--color-border-primary-subtle)] shadow-
|
|
485
|
+
className: "z-50 overflow-hidden rounded-[var(--border-radius-m)] bg-[var(--color-surface-primary)] px-3 py-1.5 text-xs text-[var(--color-text-primary)] border border-[var(--color-border-primary-subtle)] shadow-[var(--shadow-300)] animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
486
486
|
...i
|
|
487
487
|
}
|
|
488
488
|
)
|
|
@@ -499,7 +499,7 @@ const me = /* @__PURE__ */ t.forwardRef(({ className: r, showOnHover: e = !1, si
|
|
|
499
499
|
size: "s",
|
|
500
500
|
className: s(
|
|
501
501
|
// Base positioning and styling - Fixed inconsistencies
|
|
502
|
-
"absolute right-1 flex aspect-square items-center justify-center rounded-m p-0",
|
|
502
|
+
"absolute right-1 flex aspect-square items-center justify-center rounded-[var(--border-radius-m)] p-0",
|
|
503
503
|
"text-[var(--color-text-secondary)] outline-none transition-all duration-150 ease-in-out",
|
|
504
504
|
"hover:bg-[var(--color-background-neutral-subtlest-hovered)] hover:text-[var(--color-text-primary)]",
|
|
505
505
|
"focus-visible:ring-2 focus-visible:ring-[var(--color-border-focused)]",
|
|
@@ -537,7 +537,7 @@ const ge = /* @__PURE__ */ t.forwardRef(({ className: r, ...e }, a) => /* @__PUR
|
|
|
537
537
|
ref: a,
|
|
538
538
|
"data-sidebar": "menu-badge",
|
|
539
539
|
className: s(
|
|
540
|
-
"absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-m px-1 text-xs font-medium tabular-nums text-[var(--color-text-on-action)] select-none pointer-events-none",
|
|
540
|
+
"absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-[var(--border-radius-m)] px-1 text-xs font-medium tabular-nums text-[var(--color-text-on-action)] select-none pointer-events-none",
|
|
541
541
|
"peer-hover/menu-button:text-[var(--color-text-brand-bold-selected)] peer-data-[active=true]/menu-button:text-[var(--color-text-brand-bold-selected)]",
|
|
542
542
|
"peer-data-[size=s]/menu-button:top-1",
|
|
543
543
|
"peer-data-[size=default]/menu-button:top-1.5",
|
|
@@ -556,14 +556,14 @@ const xe = /* @__PURE__ */ t.forwardRef(({ className: r, showIcon: e = !1, ...a
|
|
|
556
556
|
{
|
|
557
557
|
ref: o,
|
|
558
558
|
"data-sidebar": "menu-skeleton",
|
|
559
|
-
className: s("rounded-m h-8 flex gap-2 px-2 items-center", r),
|
|
559
|
+
className: s("rounded-[var(--border-radius-m)] h-8 flex gap-2 px-2 items-center", r),
|
|
560
560
|
...a,
|
|
561
561
|
children: [
|
|
562
|
-
e && /* @__PURE__ */ d("div", { className: "rounded-m bg-[var(--color-surface-secondary)] size-4 animate-pulse" }),
|
|
562
|
+
e && /* @__PURE__ */ d("div", { className: "rounded-[var(--border-radius-m)] bg-[var(--color-surface-secondary)] size-4 animate-pulse" }),
|
|
563
563
|
/* @__PURE__ */ d(
|
|
564
564
|
"div",
|
|
565
565
|
{
|
|
566
|
-
className: "h-4 flex-1 max-w-[--skeleton-width] bg-[var(--color-surface-secondary)] rounded-m animate-pulse",
|
|
566
|
+
className: "h-4 flex-1 max-w-[--skeleton-width] bg-[var(--color-surface-secondary)] rounded-[var(--border-radius-m)] animate-pulse",
|
|
567
567
|
style: {
|
|
568
568
|
"--skeleton-width": i
|
|
569
569
|
}
|
|
@@ -599,9 +599,9 @@ const we = /* @__PURE__ */ t.forwardRef(({
|
|
|
599
599
|
className: l,
|
|
600
600
|
onMouseEnter: u,
|
|
601
601
|
onMouseLeave: f,
|
|
602
|
-
onFocus:
|
|
602
|
+
onFocus: v,
|
|
603
603
|
onBlur: m,
|
|
604
|
-
onMouseDown:
|
|
604
|
+
onMouseDown: p,
|
|
605
605
|
...h
|
|
606
606
|
}, y) => {
|
|
607
607
|
const R = r ? "span" : "button", [g, w] = t.useState(!1), [b, N] = t.useState(!1), S = t.useRef(!1), n = t.useCallback(
|
|
@@ -616,14 +616,14 @@ const we = /* @__PURE__ */ t.forwardRef(({
|
|
|
616
616
|
[o, f]
|
|
617
617
|
), z = t.useCallback(
|
|
618
618
|
(x) => {
|
|
619
|
-
S.current = !0,
|
|
619
|
+
S.current = !0, p?.(x);
|
|
620
620
|
},
|
|
621
|
-
[
|
|
621
|
+
[p]
|
|
622
622
|
), M = t.useCallback(
|
|
623
623
|
(x) => {
|
|
624
|
-
o && !S.current && N(!0), S.current = !1,
|
|
624
|
+
o && !S.current && N(!0), S.current = !1, v?.(x);
|
|
625
625
|
},
|
|
626
|
-
[o,
|
|
626
|
+
[o, v]
|
|
627
627
|
), B = t.useCallback(
|
|
628
628
|
(x) => {
|
|
629
629
|
o && N(!1), m?.(x);
|
|
@@ -631,7 +631,7 @@ const we = /* @__PURE__ */ t.forwardRef(({
|
|
|
631
631
|
[o, m]
|
|
632
632
|
), D = t.useMemo(() => s(
|
|
633
633
|
// Base submenu button styles
|
|
634
|
-
"relative flex w-full justify-start h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-m px-2 text-[var(--color-text-secondary)] outline-none ring-[var(--color-border-focused)] transition-all duration-150 ease-in-out disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 cursor-pointer [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-[var(--color-text-secondary)] z-2",
|
|
634
|
+
"relative flex w-full justify-start h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-[var(--border-radius-m)] px-2 text-[var(--color-text-secondary)] outline-none ring-[var(--color-border-focused)] transition-all duration-150 ease-in-out disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 cursor-pointer [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-[var(--color-text-secondary)] z-2",
|
|
635
635
|
// Size variants
|
|
636
636
|
e === "s" && "text-body-sm px-1.5 py-0.5",
|
|
637
637
|
e === "m" && "text-body-md",
|
|
@@ -672,8 +672,8 @@ const we = /* @__PURE__ */ t.forwardRef(({
|
|
|
672
672
|
type: r ? void 0 : "button",
|
|
673
673
|
onMouseEnter: o ? n : u,
|
|
674
674
|
onMouseLeave: o ? c : f,
|
|
675
|
-
onMouseDown: o ? z :
|
|
676
|
-
onFocus: o ? M :
|
|
675
|
+
onMouseDown: o ? z : p,
|
|
676
|
+
onFocus: o ? M : v,
|
|
677
677
|
onBlur: o ? B : m,
|
|
678
678
|
...h
|
|
679
679
|
}
|
|
@@ -695,7 +695,7 @@ export {
|
|
|
695
695
|
me as SidebarMenuAction,
|
|
696
696
|
ge as SidebarMenuBadge,
|
|
697
697
|
fe as SidebarMenuButton,
|
|
698
|
-
|
|
698
|
+
ve as SidebarMenuItem,
|
|
699
699
|
xe as SidebarMenuSkeleton,
|
|
700
700
|
he as SidebarMenuSub,
|
|
701
701
|
we as SidebarMenuSubButton,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx as e, jsxs as p } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
2
|
+
import * as n from "react";
|
|
3
3
|
import { cn as m } from "../../lib/utils.js";
|
|
4
|
-
import { cva as
|
|
5
|
-
const g =
|
|
4
|
+
import { cva as S } from "class-variance-authority";
|
|
5
|
+
const g = S(
|
|
6
6
|
"animate-pulse bg-[var(--grey-alpha-50)] rounded",
|
|
7
7
|
{
|
|
8
8
|
variants: {
|
|
9
9
|
variant: {
|
|
10
10
|
default: "",
|
|
11
11
|
circle: "rounded-full",
|
|
12
|
-
rectangular: "rounded-s"
|
|
12
|
+
rectangular: "rounded-[var(--border-radius-s)]"
|
|
13
13
|
},
|
|
14
14
|
size: {
|
|
15
15
|
s: "h-4",
|
|
@@ -23,19 +23,19 @@ const g = b(
|
|
|
23
23
|
size: "m"
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
), o = /* @__PURE__ */
|
|
26
|
+
), o = /* @__PURE__ */ n.forwardRef(
|
|
27
27
|
({
|
|
28
28
|
className: s,
|
|
29
29
|
variant: t,
|
|
30
30
|
size: a,
|
|
31
31
|
width: r,
|
|
32
32
|
height: l,
|
|
33
|
-
randomWidth:
|
|
33
|
+
randomWidth: d = !1,
|
|
34
34
|
lines: i = 1,
|
|
35
35
|
style: u,
|
|
36
36
|
...f
|
|
37
37
|
}, y) => {
|
|
38
|
-
const h =
|
|
38
|
+
const h = n.useMemo(() => d ? `${Math.floor(Math.random() * 40) + 50}%` : void 0, [d]), w = n.useMemo(() => {
|
|
39
39
|
const c = { ...u };
|
|
40
40
|
return r !== void 0 ? c.width = typeof r == "number" ? `${r}px` : r : h && (c.width = h), l !== void 0 && (c.height = typeof l == "number" ? `${l}px` : l), c;
|
|
41
41
|
}, [u, r, l, h]);
|
|
@@ -52,9 +52,9 @@ const g = b(
|
|
|
52
52
|
g({ variant: t, size: a }),
|
|
53
53
|
"w-full",
|
|
54
54
|
// Last line is often shorter in real text
|
|
55
|
-
v === i - 1 &&
|
|
55
|
+
v === i - 1 && d && "max-w-[75%]"
|
|
56
56
|
),
|
|
57
|
-
style: v === i - 1 &&
|
|
57
|
+
style: v === i - 1 && d ? { width: `${Math.floor(Math.random() * 25) + 50}%` } : d ? { width: h } : w,
|
|
58
58
|
"aria-hidden": "true"
|
|
59
59
|
},
|
|
60
60
|
v
|
|
@@ -73,7 +73,7 @@ const g = b(
|
|
|
73
73
|
}
|
|
74
74
|
);
|
|
75
75
|
o.displayName = "Skeleton";
|
|
76
|
-
const N = /* @__PURE__ */
|
|
76
|
+
const N = /* @__PURE__ */ n.forwardRef(({ size: s = "m", className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
77
77
|
o,
|
|
78
78
|
{
|
|
79
79
|
ref: r,
|
|
@@ -88,7 +88,7 @@ const N = /* @__PURE__ */ d.forwardRef(({ size: s = "m", className: t, ...a }, r
|
|
|
88
88
|
}
|
|
89
89
|
));
|
|
90
90
|
N.displayName = "SkeletonAvatar";
|
|
91
|
-
const
|
|
91
|
+
const b = /* @__PURE__ */ n.forwardRef(({ size: s = "m", className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
92
92
|
o,
|
|
93
93
|
{
|
|
94
94
|
ref: r,
|
|
@@ -101,13 +101,13 @@ const S = /* @__PURE__ */ d.forwardRef(({ size: s = "m", className: t, ...a }, r
|
|
|
101
101
|
...a
|
|
102
102
|
}
|
|
103
103
|
));
|
|
104
|
-
|
|
105
|
-
const k = /* @__PURE__ */
|
|
104
|
+
b.displayName = "SkeletonButton";
|
|
105
|
+
const k = /* @__PURE__ */ n.forwardRef(({ className: s, ...t }, a) => /* @__PURE__ */ p(
|
|
106
106
|
"div",
|
|
107
107
|
{
|
|
108
108
|
ref: a,
|
|
109
109
|
className: m(
|
|
110
|
-
"rounded-l border border-[var(--color-border-primary-subtle)] p-[var(--space-l)] space-y-[var(--space-m)]",
|
|
110
|
+
"rounded-[var(--border-radius-l)] border border-[var(--color-border-primary-subtle)] p-[var(--space-l)] space-y-[var(--space-m)]",
|
|
111
111
|
s
|
|
112
112
|
),
|
|
113
113
|
...t,
|
|
@@ -121,21 +121,21 @@ const k = /* @__PURE__ */ d.forwardRef(({ className: s, ...t }, a) => /* @__PURE
|
|
|
121
121
|
/* @__PURE__ */ e(N, { size: "s" }),
|
|
122
122
|
/* @__PURE__ */ e(o, { height: 16, width: "80px" })
|
|
123
123
|
] }),
|
|
124
|
-
/* @__PURE__ */ e(
|
|
124
|
+
/* @__PURE__ */ e(b, { size: "s" })
|
|
125
125
|
] })
|
|
126
126
|
]
|
|
127
127
|
}
|
|
128
128
|
));
|
|
129
129
|
k.displayName = "SkeletonCard";
|
|
130
|
-
const $ = /* @__PURE__ */
|
|
130
|
+
const $ = /* @__PURE__ */ n.forwardRef(({ className: s, rows: t = 5, columns: a = 4, ...r }, l) => /* @__PURE__ */ p(
|
|
131
131
|
"div",
|
|
132
132
|
{
|
|
133
133
|
ref: l,
|
|
134
134
|
className: m("space-y-[var(--space-m)]", s),
|
|
135
135
|
...r,
|
|
136
136
|
children: [
|
|
137
|
-
/* @__PURE__ */ e("div", { className: "grid gap-[var(--space-m)]", style: { gridTemplateColumns: `repeat(${a}, 1fr)` }, children: Array.from({ length: a }).map((
|
|
138
|
-
Array.from({ length: t }).map((
|
|
137
|
+
/* @__PURE__ */ e("div", { className: "grid gap-[var(--space-m)]", style: { gridTemplateColumns: `repeat(${a}, 1fr)` }, children: Array.from({ length: a }).map((d, i) => /* @__PURE__ */ e(o, { height: 20, width: "70%" }, `header-${i}`)) }),
|
|
138
|
+
Array.from({ length: t }).map((d, i) => /* @__PURE__ */ e(
|
|
139
139
|
"div",
|
|
140
140
|
{
|
|
141
141
|
className: "grid gap-[var(--space-m)]",
|
|
@@ -151,7 +151,7 @@ $.displayName = "SkeletonTable";
|
|
|
151
151
|
export {
|
|
152
152
|
o as Skeleton,
|
|
153
153
|
N as SkeletonAvatar,
|
|
154
|
-
|
|
154
|
+
b as SkeletonButton,
|
|
155
155
|
k as SkeletonCard,
|
|
156
156
|
$ as SkeletonTable,
|
|
157
157
|
g as skeletonVariants
|
|
@@ -21,7 +21,7 @@ const u = /* @__PURE__ */ c.forwardRef(({ className: l, value: a, defaultValue:
|
|
|
21
21
|
Array.from({ length: i }).map((f, t) => /* @__PURE__ */ o(
|
|
22
22
|
r.Thumb,
|
|
23
23
|
{
|
|
24
|
-
className: "block h-[var(--size-xs)] w-[var(--size-xs)] rounded-full border border-[var(--color-border-brand-bold)] bg-[var(--color-surface-primary)] shadow-
|
|
24
|
+
className: "block h-[var(--size-xs)] w-[var(--size-xs)] rounded-full border border-[var(--color-border-brand-bold)] bg-[var(--color-surface-primary)] shadow-[var(--shadow-200)] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring-color)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--color-surface-primary)] data-[disabled]:!cursor-not-allowed data-[disabled]:pointer-events-auto data-[disabled]:border-[var(--grey-300)] data-[disabled]:ring-0 z-10 relative"
|
|
25
25
|
},
|
|
26
26
|
t
|
|
27
27
|
))
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as b, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import * as d from "react";
|
|
3
3
|
import { cn as c } from "../../lib/utils.js";
|
|
4
|
-
import { cva as
|
|
4
|
+
import { cva as p } from "class-variance-authority";
|
|
5
5
|
import { Icon as v } from "./icon.js";
|
|
6
|
-
const x =
|
|
6
|
+
const x = p(
|
|
7
7
|
"animate-spin",
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
@@ -38,7 +38,7 @@ const x = b(
|
|
|
38
38
|
speed: "normal"
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
),
|
|
41
|
+
), f = /* @__PURE__ */ d.forwardRef(
|
|
42
42
|
({
|
|
43
43
|
className: o,
|
|
44
44
|
size: r,
|
|
@@ -48,7 +48,7 @@ const x = b(
|
|
|
48
48
|
showLabel: n = !1,
|
|
49
49
|
loadingText: t = "Loading...",
|
|
50
50
|
...i
|
|
51
|
-
}, u) => /* @__PURE__ */
|
|
51
|
+
}, u) => /* @__PURE__ */ b(
|
|
52
52
|
"div",
|
|
53
53
|
{
|
|
54
54
|
ref: u,
|
|
@@ -70,7 +70,7 @@ const x = b(
|
|
|
70
70
|
}
|
|
71
71
|
)
|
|
72
72
|
);
|
|
73
|
-
|
|
73
|
+
f.displayName = "Spinner";
|
|
74
74
|
const y = /* @__PURE__ */ d.forwardRef(
|
|
75
75
|
({
|
|
76
76
|
className: o,
|
|
@@ -87,7 +87,7 @@ const y = /* @__PURE__ */ d.forwardRef(
|
|
|
87
87
|
medium: "bg-[var(--color-surface-primary)]/80",
|
|
88
88
|
heavy: "bg-[var(--color-surface-primary)]/95"
|
|
89
89
|
}[a];
|
|
90
|
-
return /* @__PURE__ */
|
|
90
|
+
return /* @__PURE__ */ b(
|
|
91
91
|
"div",
|
|
92
92
|
{
|
|
93
93
|
ref: i,
|
|
@@ -98,7 +98,7 @@ const y = /* @__PURE__ */ d.forwardRef(
|
|
|
98
98
|
),
|
|
99
99
|
...t,
|
|
100
100
|
children: [
|
|
101
|
-
/* @__PURE__ */ l(
|
|
101
|
+
/* @__PURE__ */ l(f, { size: s, variant: "primary" }),
|
|
102
102
|
/* @__PURE__ */ l("p", { className: "mt-3 text-body-sm text-[var(--color-text-secondary)]", children: e }),
|
|
103
103
|
n
|
|
104
104
|
]
|
|
@@ -118,9 +118,9 @@ const g = /* @__PURE__ */ d.forwardRef(
|
|
|
118
118
|
}, t) => {
|
|
119
119
|
const i = {
|
|
120
120
|
none: "rounded-none",
|
|
121
|
-
s: "rounded-s",
|
|
121
|
+
s: "rounded-[var(--border-radius-s)]",
|
|
122
122
|
m: "rounded",
|
|
123
|
-
l: "rounded-l",
|
|
123
|
+
l: "rounded-[var(--border-radius-l)]",
|
|
124
124
|
full: "rounded-full"
|
|
125
125
|
}[s];
|
|
126
126
|
return /* @__PURE__ */ l(
|
|
@@ -220,6 +220,6 @@ export {
|
|
|
220
220
|
h as ProgressDots,
|
|
221
221
|
w as Pulse,
|
|
222
222
|
g as Skeleton,
|
|
223
|
-
|
|
223
|
+
f as Spinner,
|
|
224
224
|
x as spinnerVariants
|
|
225
225
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import * as i from "react";
|
|
3
3
|
import * as e from "@radix-ui/react-switch";
|
|
4
|
-
import { cn as
|
|
5
|
-
const c = /* @__PURE__ */ i.forwardRef(({ className: s, ...o }, r) => /* @__PURE__ */
|
|
4
|
+
import { cn as t } from "../../lib/utils.js";
|
|
5
|
+
const c = /* @__PURE__ */ i.forwardRef(({ className: s, ...o }, r) => /* @__PURE__ */ a(
|
|
6
6
|
e.Root,
|
|
7
7
|
{
|
|
8
|
-
className:
|
|
8
|
+
className: t(
|
|
9
9
|
"peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full p-[2px] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#669fb6] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--color-surface-primary)] disabled:cursor-not-allowed data-[state=checked]:bg-[#005f85] data-[state=unchecked]:bg-[#c0c3c9] hover:data-[state=checked]:bg-[#004764] hover:data-[state=unchecked]:bg-[#9fa5ac] disabled:data-[state=checked]:bg-[#ccdfe7] disabled:data-[state=unchecked]:bg-[rgba(85,95,109,0.1)]",
|
|
10
10
|
s
|
|
11
11
|
),
|
|
12
12
|
...o,
|
|
13
13
|
ref: r,
|
|
14
|
-
children: /* @__PURE__ */
|
|
14
|
+
children: /* @__PURE__ */ a(
|
|
15
15
|
e.Thumb,
|
|
16
16
|
{
|
|
17
|
-
className:
|
|
18
|
-
"pointer-events-none block h-4 w-4 rounded-full bg-white shadow-
|
|
17
|
+
className: t(
|
|
18
|
+
"pointer-events-none block h-4 w-4 rounded-full bg-white shadow-[var(--shadow-200)] ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"
|
|
19
19
|
)
|
|
20
20
|
}
|
|
21
21
|
)
|