@adamosuiteservices/ui 1.7.13 → 1.8.13
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/accordion-rounded.cjs +24 -2
- package/dist/accordion-rounded.js +46 -8
- package/dist/accordion.cjs +20 -1
- package/dist/accordion.js +29 -5
- package/dist/alert.cjs +26 -1
- package/dist/alert.js +33 -8
- package/dist/avatar.cjs +7 -1
- package/dist/avatar.js +8 -2
- package/dist/badge.cjs +83 -1
- package/dist/badge.js +106 -24
- package/dist/breadcrumb.cjs +8 -1
- package/dist/breadcrumb.js +11 -4
- package/dist/button-B7ZP4LZN.js +127 -0
- package/dist/button-D-qFRXiM.cjs +70 -0
- package/dist/button-group.cjs +25 -1
- package/dist/button-group.js +33 -9
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/calendar.cjs +74 -1
- package/dist/calendar.js +114 -35
- package/dist/card.cjs +35 -1
- package/dist/card.js +45 -11
- package/dist/{checkbox-YWAnswaW.cjs → checkbox-CdnZ8VFJ.cjs} +21 -1
- package/dist/{checkbox-Dr487kAg.js → checkbox-DhBcmKze.js} +34 -4
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/combobox.cjs +36 -2
- package/dist/combobox.js +62 -22
- package/dist/components/icons/account-balance-icon.d.ts +3 -0
- package/dist/components/icons/account-icon.d.ts +3 -0
- package/dist/components/icons/add-circle-icon.d.ts +3 -0
- package/dist/components/icons/alarm-icon.d.ts +3 -0
- package/dist/components/icons/archive-icon.d.ts +3 -0
- package/dist/components/icons/arrow-back-icon.d.ts +3 -0
- package/dist/components/icons/arrow-circle-up-icon.d.ts +3 -0
- package/dist/components/icons/arrow-forward-icon.d.ts +3 -0
- package/dist/components/icons/arrow-outward-icon.d.ts +3 -0
- package/dist/components/icons/article-icon.d.ts +3 -0
- package/dist/components/icons/attach-file-icon.d.ts +3 -0
- package/dist/components/icons/autorenew-icon.d.ts +3 -0
- package/dist/components/icons/bookmark-icon.d.ts +3 -0
- package/dist/components/icons/calculate-icon.d.ts +3 -0
- package/dist/components/icons/calendar-today-icon.d.ts +3 -0
- package/dist/components/icons/call-split-icon.d.ts +3 -0
- package/dist/components/icons/cancel-filled-icon.d.ts +3 -0
- package/dist/components/icons/cancel-icon.d.ts +3 -0
- package/dist/components/icons/check-circle-icon.d.ts +3 -0
- package/dist/components/icons/check-icon.d.ts +3 -0
- package/dist/components/icons/chevron-back-icon.d.ts +3 -0
- package/dist/components/icons/chevron-down-icon.d.ts +3 -0
- package/dist/components/icons/chevron-forward-icon.d.ts +3 -0
- package/dist/components/icons/chevron-up-icon.d.ts +3 -0
- package/dist/components/icons/clarify-icon.d.ts +3 -0
- package/dist/components/icons/clock-icon.d.ts +3 -0
- package/dist/components/icons/close-icon.d.ts +3 -0
- package/dist/components/icons/confirmation-number-icon.d.ts +3 -0
- package/dist/components/icons/contacts-icon.d.ts +3 -0
- package/dist/components/icons/contract-delete-icon.d.ts +3 -0
- package/dist/components/icons/copy-icon.d.ts +3 -0
- package/dist/components/icons/do-not-touch-icon.d.ts +3 -0
- package/dist/components/icons/download-icon.d.ts +3 -0
- package/dist/components/icons/dragger-icon.d.ts +3 -0
- package/dist/components/icons/edit-icon.d.ts +3 -0
- package/dist/components/icons/edit-square-icon.d.ts +3 -0
- package/dist/components/icons/exclamation-icon.d.ts +3 -0
- package/dist/components/icons/expand-circle-right-icon.d.ts +3 -0
- package/dist/components/icons/feature-search-icon.d.ts +3 -0
- package/dist/components/icons/filter-icon.d.ts +3 -0
- package/dist/components/icons/folder-icon.d.ts +3 -0
- package/dist/components/icons/folder-open-icon.d.ts +3 -0
- package/dist/components/icons/format-list-bulleted-icon.d.ts +3 -0
- package/dist/components/icons/hamburger-menu-icon.d.ts +3 -0
- package/dist/components/icons/help-icon.d.ts +3 -0
- package/dist/components/icons/hide-pass-icon.d.ts +3 -0
- package/dist/components/icons/home-icon.d.ts +3 -0
- package/dist/components/icons/id-card-icon.d.ts +3 -0
- package/dist/components/icons/index.d.ts +88 -0
- package/dist/components/icons/info-icon.d.ts +3 -0
- package/dist/components/icons/kid-star-icon.d.ts +3 -0
- package/dist/components/icons/language-icon.d.ts +3 -0
- package/dist/components/icons/last-page-icon.d.ts +3 -0
- package/dist/components/icons/layers-icon.d.ts +3 -0
- package/dist/components/icons/location-icon.d.ts +3 -0
- package/dist/components/icons/mail-icon.d.ts +3 -0
- package/dist/components/icons/manage-search-icon.d.ts +3 -0
- package/dist/components/icons/menu-icon.d.ts +3 -0
- package/dist/components/icons/message-icon.d.ts +3 -0
- package/dist/components/icons/metrics-icon.d.ts +3 -0
- package/dist/components/icons/mic-icon.d.ts +3 -0
- package/dist/components/icons/minus-icon.d.ts +3 -0
- package/dist/components/icons/mode-comment-icon.d.ts +3 -0
- package/dist/components/icons/money-icon.d.ts +3 -0
- package/dist/components/icons/monitoring-icon.d.ts +3 -0
- package/dist/components/icons/more-icon.d.ts +3 -0
- package/dist/components/icons/notifications-icon.d.ts +3 -0
- package/dist/components/icons/open-in-new-icon.d.ts +3 -0
- package/dist/components/icons/palette-icon.d.ts +3 -0
- package/dist/components/icons/password-icon.d.ts +3 -0
- package/dist/components/icons/pending-icon.d.ts +3 -0
- package/dist/components/icons/person-add-icon.d.ts +3 -0
- package/dist/components/icons/person-search-icon.d.ts +3 -0
- package/dist/components/icons/photo-icon.d.ts +3 -0
- package/dist/components/icons/plus-icon.d.ts +3 -0
- package/dist/components/icons/policy-icon.d.ts +3 -0
- package/dist/components/icons/publish-icon.d.ts +3 -0
- package/dist/components/icons/ready-icon.d.ts +3 -0
- package/dist/components/icons/receipt-icon.d.ts +3 -0
- package/dist/components/icons/receive-icon.d.ts +3 -0
- package/dist/components/icons/refresh-icon.d.ts +3 -0
- package/dist/components/icons/search-icon.d.ts +3 -0
- package/dist/components/icons/see-icon.d.ts +3 -0
- package/dist/components/icons/send-icon.d.ts +3 -0
- package/dist/components/icons/settings-icon.d.ts +3 -0
- package/dist/components/icons/shield-icon.d.ts +3 -0
- package/dist/components/icons/swap-horiz-icon.d.ts +3 -0
- package/dist/components/icons/tag-icon.d.ts +3 -0
- package/dist/components/icons/trash-icon.d.ts +3 -0
- package/dist/components/layout/toaster/toaster.d.ts +1 -1
- package/dist/components/layout/toaster/toaster.stories.d.ts +1 -1
- package/dist/components/ui/accordion/accordion.d.ts +1 -1
- package/dist/components/ui/accordion/accordion.stories.d.ts +1 -1
- package/dist/components/ui/accordion-rounded/accordion-rounded.d.ts +1 -1
- package/dist/components/ui/accordion-rounded/accordion-rounded.stories.d.ts +1 -1
- package/dist/components/ui/alert/alert.stories.d.ts +1 -1
- package/dist/components/ui/avatar/avatar.d.ts +1 -1
- package/dist/components/ui/avatar/avatar.stories.d.ts +1 -1
- package/dist/components/ui/badge/badge.stories.d.ts +1 -1
- package/dist/components/ui/breadcrumb/breadcrumb.stories.d.ts +1 -1
- package/dist/components/ui/button/button.stories.d.ts +1 -1
- package/dist/components/ui/button-group/button-group.d.ts +1 -1
- package/dist/components/ui/button-group/button-group.stories.d.ts +1 -1
- package/dist/components/ui/calendar/calendar.d.ts +1 -1
- package/dist/components/ui/calendar/calendar.stories.d.ts +1 -1
- package/dist/components/ui/card/card.stories.d.ts +1 -1
- package/dist/components/ui/checkbox/checkbox.d.ts +1 -1
- package/dist/components/ui/checkbox/checkbox.stories.d.ts +1 -1
- package/dist/components/ui/collapsible/collapsible.stories.d.ts +1 -1
- package/dist/components/ui/combobox/combobox.stories.d.ts +1 -1
- package/dist/components/ui/command/command.d.ts +1 -1
- package/dist/components/ui/context-menu/context-menu.d.ts +1 -1
- package/dist/components/ui/context-menu/context-menu.stories.d.ts +1 -1
- package/dist/components/ui/dialog/dialog.d.ts +1 -1
- package/dist/components/ui/dialog/dialog.stories.d.ts +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +1 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu.stories.d.ts +1 -1
- package/dist/components/ui/field/field.d.ts +1 -1
- package/dist/components/ui/field/field.stories.d.ts +1 -1
- package/dist/components/ui/hover-card/hover-card.d.ts +1 -1
- package/dist/components/ui/hover-card/hover-card.stories.d.ts +1 -1
- package/dist/components/ui/input/input.stories.d.ts +1 -1
- package/dist/components/ui/input-group/Input-group.stories.d.ts +1 -1
- package/dist/components/ui/input-group/input-group.d.ts +1 -1
- package/dist/components/ui/kbd/kbd.stories.d.ts +1 -1
- package/dist/components/ui/label/label.d.ts +1 -1
- package/dist/components/ui/label/label.stories.d.ts +1 -1
- package/dist/components/ui/pagination/pagination.stories.d.ts +1 -1
- package/dist/components/ui/popover/popover.d.ts +1 -1
- package/dist/components/ui/popover/popover.stories.d.ts +1 -1
- package/dist/components/ui/progress/progress.d.ts +1 -1
- package/dist/components/ui/progress/progress.stories.d.ts +1 -1
- package/dist/components/ui/radio-group/radio-group.d.ts +1 -1
- package/dist/components/ui/radio-group/radio-group.stories.d.ts +1 -1
- package/dist/components/ui/scroll-area/scroll-area.d.ts +1 -1
- package/dist/components/ui/scroll-area/scroll-area.stories.d.ts +1 -1
- package/dist/components/ui/select/select.d.ts +1 -1
- package/dist/components/ui/select/select.stories.d.ts +1 -1
- package/dist/components/ui/separator/separator.d.ts +1 -1
- package/dist/components/ui/separator/separator.stories.d.ts +1 -1
- package/dist/components/ui/sheet/sheet.d.ts +1 -1
- package/dist/components/ui/sheet/sheet.stories.d.ts +1 -1
- package/dist/components/ui/skeleton/skeleton.stories.d.ts +1 -1
- package/dist/components/ui/slider/slider.d.ts +1 -1
- package/dist/components/ui/slider/slider.stories.d.ts +1 -1
- package/dist/components/ui/spinner/spinner.stories.d.ts +1 -1
- package/dist/components/ui/switch/switch.d.ts +1 -1
- package/dist/components/ui/switch/switch.stories.d.ts +1 -1
- package/dist/components/ui/tabs/tabs.d.ts +1 -1
- package/dist/components/ui/tabs/tabs.stories.d.ts +1 -1
- package/dist/components/ui/tabs-underline/tabs-underline.d.ts +1 -1
- package/dist/components/ui/tabs-underline/tabs-underline.stories.d.ts +1 -1
- package/dist/components/ui/textarea/textarea.stories.d.ts +1 -1
- package/dist/components/ui/toggle/toggle.d.ts +1 -1
- package/dist/components/ui/toggle/toggle.stories.d.ts +1 -1
- package/dist/components/ui/tooltip/tooltip.d.ts +1 -1
- package/dist/components/ui/tooltip/tooltip.stories.d.ts +1 -1
- package/dist/context-menu.cjs +79 -1
- package/dist/context-menu.js +101 -11
- package/dist/custom-layered-styles.css +1 -1
- package/dist/dialog.cjs +30 -1
- package/dist/dialog.js +35 -6
- package/dist/dropdown-menu.cjs +79 -1
- package/dist/dropdown-menu.js +101 -11
- package/dist/field.cjs +66 -1
- package/dist/field.js +91 -26
- package/dist/hover-card.cjs +15 -1
- package/dist/hover-card.js +15 -1
- package/dist/icons.cjs +1 -0
- package/dist/icons.js +1507 -0
- package/dist/input-BQZUpTEY.js +42 -0
- package/dist/input-DSmxdfq5.cjs +21 -0
- package/dist/input-group.cjs +76 -1
- package/dist/input-group.js +99 -24
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/kbd.cjs +10 -1
- package/dist/kbd.js +11 -2
- package/dist/{label-CmwGvhy1.js → label-BJ8Yf6Ft.js} +7 -1
- package/dist/{label-BjXORCBM.cjs → label-CNGQhi5L.cjs} +7 -1
- package/dist/label.cjs +1 -1
- package/dist/label.js +1 -1
- package/dist/pagination.cjs +13 -1
- package/dist/pagination.js +30 -6
- package/dist/{popover-FCKBtFo-.cjs → popover-CYbik-H4.cjs} +15 -1
- package/dist/{popover-3rIoNCXs.js → popover-DAwH8jUh.js} +15 -1
- package/dist/popover.cjs +1 -1
- package/dist/popover.js +1 -1
- package/dist/radio-group.cjs +14 -1
- package/dist/radio-group.js +20 -2
- package/dist/select.cjs +68 -1
- package/dist/select.js +83 -10
- package/dist/{separator-BaZqZZ9R.cjs → separator-Brpax0EI.cjs} +7 -1
- package/dist/{separator-DR7lQjv9.js → separator-DVypR3Qf.js} +7 -1
- package/dist/separator.cjs +1 -1
- package/dist/separator.js +1 -1
- package/dist/sheet-CGahUP7F.cjs +41 -0
- package/dist/sheet-Q3dBOQG-.js +174 -0
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.js +1 -1
- package/dist/sidebar.cjs +20 -2
- package/dist/sidebar.js +58 -26
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.js +1 -1
- package/dist/slider.cjs +27 -1
- package/dist/slider.js +30 -4
- package/dist/space.css +1 -1
- package/dist/styles.css +1 -1
- package/dist/switch.cjs +18 -1
- package/dist/switch.js +19 -2
- package/dist/table.cjs +20 -1
- package/dist/table.js +26 -7
- package/dist/tabs-underline.cjs +21 -1
- package/dist/tabs-underline.js +23 -3
- package/dist/tabs.cjs +22 -1
- package/dist/tabs.js +24 -3
- package/dist/textarea-CG7iQcb3.cjs +14 -0
- package/dist/textarea-CUPWKl-S.js +32 -0
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +1 -1
- package/dist/toaster.cjs +4 -1
- package/dist/toaster.js +9 -6
- package/dist/toggle.cjs +17 -1
- package/dist/toggle.js +25 -9
- package/dist/tooltip.cjs +16 -1
- package/dist/tooltip.js +22 -2
- package/dist/typography.cjs +1 -1
- package/dist/typography.js +6 -6
- package/docs/AI-GUIDE.md +321 -321
- package/docs/components/layout/sidebar.md +404 -404
- package/docs/components/layout/toaster.md +436 -436
- package/docs/components/ui/accordion-rounded.md +583 -583
- package/docs/components/ui/accordion.md +267 -267
- package/docs/components/ui/alert.md +671 -671
- package/docs/components/ui/avatar.md +588 -588
- package/docs/components/ui/badge.md +1024 -1024
- package/docs/components/ui/button-group.md +1002 -1002
- package/docs/components/ui/button.md +1078 -1078
- package/docs/components/ui/calendar.md +1159 -1159
- package/docs/components/ui/card.md +1265 -1265
- package/docs/components/ui/checkbox.md +292 -292
- package/docs/components/ui/collapsible.md +320 -320
- package/docs/components/ui/command.md +454 -454
- package/docs/components/ui/context-menu.md +540 -540
- package/docs/components/ui/dialog.md +628 -628
- package/docs/components/ui/dropdown-menu.md +731 -731
- package/docs/components/ui/field.md +706 -706
- package/docs/components/ui/hover-card.md +446 -446
- package/docs/components/ui/input-group.md +509 -509
- package/docs/components/ui/input.md +362 -362
- package/docs/components/ui/kbd.md +434 -434
- package/docs/components/ui/label.md +359 -359
- package/docs/components/ui/pagination.md +650 -650
- package/docs/components/ui/popover.md +536 -536
- package/docs/components/ui/progress.md +182 -182
- package/docs/components/ui/radio-group.md +311 -311
- package/docs/components/ui/select.md +352 -352
- package/docs/components/ui/separator.md +214 -214
- package/docs/components/ui/sheet.md +142 -142
- package/docs/components/ui/skeleton.md +140 -140
- package/docs/components/ui/slider.md +341 -341
- package/docs/components/ui/spinner.md +170 -170
- package/docs/components/ui/switch.md +402 -402
- package/docs/components/ui/table.md +183 -183
- package/docs/components/ui/tabs-underline.md +106 -106
- package/docs/components/ui/tabs.md +122 -122
- package/docs/components/ui/textarea.md +243 -243
- package/docs/components/ui/toggle.md +243 -243
- package/docs/components/ui/tooltip.md +320 -320
- package/docs/components/ui/typography.md +191 -191
- package/package.json +7 -1
- package/dist/button-2GdKenQI.js +0 -58
- package/dist/button-DEQVHMrX.cjs +0 -1
- package/dist/input-BF73maXg.cjs +0 -1
- package/dist/input-C04hsVXE.js +0 -22
- package/dist/sheet-B-9YHdR5.js +0 -128
- package/dist/sheet-CU-sFSaJ.cjs +0 -1
- package/dist/textarea-3ZdbFRDN.cjs +0 -1
- package/dist/textarea-BZbcAAAu.js +0 -19
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { j as t } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
+
import { R as n, T as l, C as s, a as i, b as u, D as c, P as f, O as h } from "./index-DniCthJA.js";
|
|
3
|
+
import { c as d } from "./index-CRiPKpXj.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { X as g } from "./x-Dl66o_vF.js";
|
|
6
|
+
function v({ ...a }) {
|
|
7
|
+
return /* @__PURE__ */ t.jsx(n, { "data-slot": "sheet", ...a });
|
|
8
|
+
}
|
|
9
|
+
function C({
|
|
10
|
+
...a
|
|
11
|
+
}) {
|
|
12
|
+
return /* @__PURE__ */ t.jsx(l, { "data-slot": "sheet-trigger", ...a });
|
|
13
|
+
}
|
|
14
|
+
function w({
|
|
15
|
+
...a
|
|
16
|
+
}) {
|
|
17
|
+
return /* @__PURE__ */ t.jsx(s, { "data-slot": "sheet-close", ...a });
|
|
18
|
+
}
|
|
19
|
+
function p({
|
|
20
|
+
...a
|
|
21
|
+
}) {
|
|
22
|
+
return /* @__PURE__ */ t.jsx(f, { "data-slot": "sheet-portal", ...a });
|
|
23
|
+
}
|
|
24
|
+
function x({
|
|
25
|
+
className: a,
|
|
26
|
+
...e
|
|
27
|
+
}) {
|
|
28
|
+
return /* @__PURE__ */ t.jsx(
|
|
29
|
+
h,
|
|
30
|
+
{
|
|
31
|
+
"data-slot": "sheet-overlay",
|
|
32
|
+
className: d(
|
|
33
|
+
`
|
|
34
|
+
adm:fixed adm:inset-0 adm:z-50 adm:bg-black/50
|
|
35
|
+
adm:data-[state=closed]:animate-out adm:data-[state=closed]:fade-out-0
|
|
36
|
+
adm:data-[state=open]:animate-in adm:data-[state=open]:fade-in-0
|
|
37
|
+
`,
|
|
38
|
+
a
|
|
39
|
+
),
|
|
40
|
+
...e
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
function T({
|
|
45
|
+
className: a,
|
|
46
|
+
children: e,
|
|
47
|
+
side: o = "right",
|
|
48
|
+
showCloseButton: m = !0,
|
|
49
|
+
...r
|
|
50
|
+
}) {
|
|
51
|
+
return /* @__PURE__ */ t.jsxs(p, { children: [
|
|
52
|
+
/* @__PURE__ */ t.jsx(x, {}),
|
|
53
|
+
/* @__PURE__ */ t.jsxs(
|
|
54
|
+
i,
|
|
55
|
+
{
|
|
56
|
+
"data-slot": "sheet-content",
|
|
57
|
+
className: d(
|
|
58
|
+
`
|
|
59
|
+
adm:fixed adm:z-50 adm:flex adm:flex-col adm:gap-4 adm:bg-background
|
|
60
|
+
adm:shadow-xs adm:transition adm:ease-in-out
|
|
61
|
+
adm:data-[state=closed]:animate-out
|
|
62
|
+
adm:data-[state=closed]:duration-300
|
|
63
|
+
adm:data-[state=open]:animate-in adm:data-[state=open]:duration-500
|
|
64
|
+
`,
|
|
65
|
+
o === "right" && `
|
|
66
|
+
adm:inset-y-0 adm:right-0 adm:h-full adm:w-3/4 adm:rounded-tl-lg
|
|
67
|
+
adm:rounded-bl-lg adm:border-l
|
|
68
|
+
adm:data-[state=closed]:slide-out-to-right
|
|
69
|
+
adm:data-[state=open]:slide-in-from-right
|
|
70
|
+
adm:sm:max-w-sm
|
|
71
|
+
`,
|
|
72
|
+
o === "left" && `
|
|
73
|
+
adm:inset-y-0 adm:left-0 adm:h-full adm:w-3/4 adm:rounded-tr-lg
|
|
74
|
+
adm:rounded-br-lg adm:border-r
|
|
75
|
+
adm:data-[state=closed]:slide-out-to-left
|
|
76
|
+
adm:data-[state=open]:slide-in-from-left
|
|
77
|
+
adm:sm:max-w-sm
|
|
78
|
+
`,
|
|
79
|
+
o === "top" && `
|
|
80
|
+
adm:inset-x-0 adm:top-0 adm:h-auto adm:rounded-br-lg
|
|
81
|
+
adm:rounded-bl-lg adm:border-b
|
|
82
|
+
adm:data-[state=closed]:slide-out-to-top
|
|
83
|
+
adm:data-[state=open]:slide-in-from-top
|
|
84
|
+
`,
|
|
85
|
+
o === "bottom" && `
|
|
86
|
+
adm:inset-x-0 adm:bottom-0 adm:h-auto adm:rounded-tl-lg
|
|
87
|
+
adm:rounded-tr-lg adm:border-t
|
|
88
|
+
adm:data-[state=closed]:slide-out-to-bottom
|
|
89
|
+
adm:data-[state=open]:slide-in-from-bottom
|
|
90
|
+
`,
|
|
91
|
+
a
|
|
92
|
+
),
|
|
93
|
+
...r,
|
|
94
|
+
children: [
|
|
95
|
+
e,
|
|
96
|
+
m && /* @__PURE__ */ t.jsxs(
|
|
97
|
+
s,
|
|
98
|
+
{
|
|
99
|
+
className: `
|
|
100
|
+
adm:absolute adm:top-4 adm:right-4 adm:rounded-xs adm:opacity-70
|
|
101
|
+
adm:ring-offset-background adm:transition-opacity
|
|
102
|
+
adm:hover:opacity-100
|
|
103
|
+
adm:focus:ring-2 adm:focus:ring-ring adm:focus:ring-offset-2
|
|
104
|
+
adm:focus:outline-hidden
|
|
105
|
+
adm:disabled:pointer-events-none
|
|
106
|
+
adm:data-[state=open]:bg-secondary
|
|
107
|
+
`,
|
|
108
|
+
children: [
|
|
109
|
+
/* @__PURE__ */ t.jsx(g, { className: "adm:size-4" }),
|
|
110
|
+
/* @__PURE__ */ t.jsx("span", { className: "adm:sr-only", children: "Close" })
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
)
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
)
|
|
117
|
+
] });
|
|
118
|
+
}
|
|
119
|
+
function k({ className: a, ...e }) {
|
|
120
|
+
return /* @__PURE__ */ t.jsx(
|
|
121
|
+
"div",
|
|
122
|
+
{
|
|
123
|
+
"data-slot": "sheet-header",
|
|
124
|
+
className: d("adm:flex adm:flex-col adm:gap-1.5 adm:p-4", a),
|
|
125
|
+
...e
|
|
126
|
+
}
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
function z({ className: a, ...e }) {
|
|
130
|
+
return /* @__PURE__ */ t.jsx(
|
|
131
|
+
"div",
|
|
132
|
+
{
|
|
133
|
+
"data-slot": "sheet-footer",
|
|
134
|
+
className: d("adm:mt-auto adm:flex adm:flex-col adm:gap-2 adm:p-4", a),
|
|
135
|
+
...e
|
|
136
|
+
}
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
function D({
|
|
140
|
+
className: a,
|
|
141
|
+
...e
|
|
142
|
+
}) {
|
|
143
|
+
return /* @__PURE__ */ t.jsx(
|
|
144
|
+
u,
|
|
145
|
+
{
|
|
146
|
+
"data-slot": "sheet-title",
|
|
147
|
+
className: d("adm:font-semibold adm:text-foreground", a),
|
|
148
|
+
...e
|
|
149
|
+
}
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
function O({
|
|
153
|
+
className: a,
|
|
154
|
+
...e
|
|
155
|
+
}) {
|
|
156
|
+
return /* @__PURE__ */ t.jsx(
|
|
157
|
+
c,
|
|
158
|
+
{
|
|
159
|
+
"data-slot": "sheet-description",
|
|
160
|
+
className: d("adm:text-sm adm:text-muted-foreground", a),
|
|
161
|
+
...e
|
|
162
|
+
}
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
export {
|
|
166
|
+
v as S,
|
|
167
|
+
C as a,
|
|
168
|
+
w as b,
|
|
169
|
+
T as c,
|
|
170
|
+
k as d,
|
|
171
|
+
z as e,
|
|
172
|
+
D as f,
|
|
173
|
+
O as g
|
|
174
|
+
};
|
package/dist/sheet.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./sheet-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./sheet-CGahUP7F.cjs");exports.Sheet=e.Sheet;exports.SheetClose=e.SheetClose;exports.SheetContent=e.SheetContent;exports.SheetDescription=e.SheetDescription;exports.SheetFooter=e.SheetFooter;exports.SheetHeader=e.SheetHeader;exports.SheetTitle=e.SheetTitle;exports.SheetTrigger=e.SheetTrigger;
|
package/dist/sheet.js
CHANGED
package/dist/sidebar.cjs
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./jsx-runtime-BB_1_6y_.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./jsx-runtime-BB_1_6y_.cjs"),h=require("./index-Dbj9vHNq.cjs"),l=require("./index-CjyiloO7.cjs"),S=require("./index-BDs8lUfq.cjs"),f=require("./button-D-qFRXiM.cjs"),d=require("./sheet-CGahUP7F.cjs"),s=require("./index-DoxiiusW.cjs"),m=require("react"),j=require("./createLucideIcon-CAtnV-yz.cjs");function g(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const x=g(m);/**
|
|
2
2
|
* @license lucide-react v0.546.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
5
5
|
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const E=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],y=j.createLucideIcon("menu",E);function R(e){const t=x.useCallback(i=>{const o=window.matchMedia(e);return o.addEventListener("change",i),()=>{o.removeEventListener("change",i)}},[e]),a=()=>window.matchMedia(e).matches,n=()=>{throw Error("useMediaQuery is a client-only hook")};return x.useSyncExternalStore(t,a,n)}const b=m.createContext({});function w({children:e}){const[t,a]=m.useState(!1),[n,i]=m.useState("auto"),o=R("(min-width: 1280px)");return r.jsxRuntimeExports.jsx(b.Provider,{value:{isXl:o,sidebarHeight:n,setSidebarHeight:i,sheetOpen:t,setSheetOpen:a},children:r.jsxRuntimeExports.jsx("nav",{"data-slot":"sidebar",children:e})})}function v({className:e,children:t,...a}){const{isXl:n,setSidebarHeight:i,sheetOpen:o,setSheetOpen:p}=c();return r.jsxRuntimeExports.jsx(h.Portal,{children:r.jsxRuntimeExports.jsxs("div",{ref:u=>{u&&i(n?"auto":`${u.clientHeight}px`)},"data-slot":"sidebar-content",className:s.cn(
|
|
6
|
+
*/const E=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],y=j.createLucideIcon("menu",E);function R(e){const t=x.useCallback(i=>{const o=window.matchMedia(e);return o.addEventListener("change",i),()=>{o.removeEventListener("change",i)}},[e]),a=()=>window.matchMedia(e).matches,n=()=>{throw Error("useMediaQuery is a client-only hook")};return x.useSyncExternalStore(t,a,n)}const b=m.createContext({});function w({children:e}){const[t,a]=m.useState(!1),[n,i]=m.useState("auto"),o=R("(min-width: 1280px)");return r.jsxRuntimeExports.jsx(b.Provider,{value:{isXl:o,sidebarHeight:n,setSidebarHeight:i,sheetOpen:t,setSheetOpen:a},children:r.jsxRuntimeExports.jsx("nav",{"data-slot":"sidebar",children:e})})}function v({className:e,children:t,...a}){const{isXl:n,setSidebarHeight:i,sheetOpen:o,setSheetOpen:p}=c();return r.jsxRuntimeExports.jsx(h.Portal,{children:r.jsxRuntimeExports.jsxs("div",{ref:u=>{u&&i(n?"auto":`${u.clientHeight}px`)},"data-slot":"sidebar-content",className:s.cn(`
|
|
7
|
+
adm:fixed adm:bg-sidebar-primary adm:text-sidebar-primary-foreground
|
|
8
|
+
adm:xl:flex adm:xl:flex-col
|
|
9
|
+
`,"adm:top-0 adm:right-0 adm:left-0",`
|
|
10
|
+
adm:xl:top-0 adm:xl:bottom-0 adm:xl:left-0 adm:xl:h-auto
|
|
11
|
+
adm:xl:w-3xs
|
|
12
|
+
`,e),...a,children:[n&&t,r.jsxRuntimeExports.jsx(d.Sheet,{open:o,onOpenChange:p,children:r.jsxRuntimeExports.jsxs(d.SheetContent,{showCloseButton:!1,className:`
|
|
13
|
+
adm:rounded-none adm:border-sidebar-primary adm:bg-sidebar-primary
|
|
14
|
+
adm:text-sidebar-primary-foreground
|
|
15
|
+
`,children:[r.jsxRuntimeExports.jsx(S.VisuallyHidden,{children:r.jsxRuntimeExports.jsxs(d.SheetHeader,{children:[r.jsxRuntimeExports.jsx(d.SheetTitle,{children:"Sidebar"}),r.jsxRuntimeExports.jsx(d.SheetDescription,{children:"Sidebar"})]})}),t]})})]})})}function C({className:e,...t}){const{setSheetOpen:a}=c();return r.jsxRuntimeExports.jsx(f.Button,{"data-slot":"sidebar-trigger",className:s.cn("adm:xl:hidden",e),onClick:()=>a(n=>!n),...t,children:r.jsxRuntimeExports.jsx(y,{})})}function M({className:e,children:t,...a}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"sidebar-inset",className:s.cn(e,"adm:xl:mt-auto adm:xl:ml-[256px]"),...a,children:t})}function O({className:e,children:t,...a}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"sidebar-top-bar",className:s.cn(`
|
|
16
|
+
adm:sticky adm:top-0 adm:z-50 adm:flex adm:items-center
|
|
17
|
+
adm:justify-between adm:gap-2 adm:border-b adm:bg-background adm:p-4
|
|
18
|
+
`,e),...a,children:t})}function N({className:e,children:t,...a}){return r.jsxRuntimeExports.jsx("header",{"data-slot":"sidebar-header",className:s.cn(e,"adm:mt-12 adm:flex adm:flex-col"),...a,children:t})}function k({className:e,children:t,...a}){return r.jsxRuntimeExports.jsx("footer",{"data-slot":"sidebar-footer",className:s.cn(e,"adm:mt-auto adm:mb-12 adm:flex adm:flex-col"),...a,children:t})}function H({asChild:e,className:t,...a}){const n=e?l.Slot:"div";return r.jsxRuntimeExports.jsx(n,{"data-slot":"sidebar-menu",className:s.cn(t,`
|
|
19
|
+
adm:my-12 adm:flex adm:flex-col adm:gap-4 adm:overflow-y-auto adm:py-1
|
|
20
|
+
`),...a})}function q({asChild:e,className:t,...a}){const n=e?l.Slot:"button";return r.jsxRuntimeExports.jsx(n,{"data-slot":"sidebar-menu-item",className:s.cn(t,`
|
|
21
|
+
adm:mx-4 adm:flex adm:w-[stretch] adm:items-center adm:gap-4
|
|
22
|
+
adm:rounded-xl adm:p-4 adm:transition-all
|
|
23
|
+
adm:hover:bg-white/10
|
|
24
|
+
`),...a})}function c(){const e=m.useContext(b);if(!e)throw new Error("useSidebarContext must be used within a Sidebar component");return e}exports.Sidebar=w;exports.SidebarContent=v;exports.SidebarFooter=k;exports.SidebarHeader=N;exports.SidebarInset=M;exports.SidebarMenu=H;exports.SidebarMenuItem=q;exports.SidebarTopBar=O;exports.SidebarTrigger=C;exports.useSidebarContext=c;
|
package/dist/sidebar.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { j as r } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
-
import
|
|
3
|
-
import { createContext as b, useState as c, useContext as p } from "react";
|
|
4
|
-
import { P as f } from "./index-BX9hz-JD.js";
|
|
5
|
-
import { c as s } from "./index-CRiPKpXj.js";
|
|
6
|
-
import { S, c as g, d as j, f as w, g as y } from "./sheet-B-9YHdR5.js";
|
|
7
|
-
import { V as v } from "./index-PYkEXTqJ.js";
|
|
2
|
+
import { P as b } from "./index-BX9hz-JD.js";
|
|
8
3
|
import { S as l } from "./index-BvLQnI56.js";
|
|
9
|
-
import {
|
|
4
|
+
import { V as p } from "./index-PYkEXTqJ.js";
|
|
5
|
+
import { B as f } from "./button-B7ZP4LZN.js";
|
|
6
|
+
import { S, c as g, d as j, f as w, g as y } from "./sheet-Q3dBOQG-.js";
|
|
7
|
+
import { c as s } from "./index-CRiPKpXj.js";
|
|
8
|
+
import * as m from "react";
|
|
9
|
+
import { createContext as v, useState as c, useContext as C } from "react";
|
|
10
10
|
import { c as M } from "./createLucideIcon-B_8CJpcQ.js";
|
|
11
11
|
/**
|
|
12
12
|
* @license lucide-react v0.546.0 - ISC
|
|
@@ -33,14 +33,14 @@ function H(e) {
|
|
|
33
33
|
};
|
|
34
34
|
return m.useSyncExternalStore(t, a, d);
|
|
35
35
|
}
|
|
36
|
-
const u =
|
|
36
|
+
const u = v({});
|
|
37
37
|
function V({ children: e }) {
|
|
38
38
|
const [t, a] = c(!1), [d, o] = c("auto"), n = H("(min-width: 1280px)");
|
|
39
39
|
return /* @__PURE__ */ r.jsx(u.Provider, { value: { isXl: n, sidebarHeight: d, setSidebarHeight: o, sheetOpen: t, setSheetOpen: a }, children: /* @__PURE__ */ r.jsx("nav", { "data-slot": "sidebar", children: e }) });
|
|
40
40
|
}
|
|
41
41
|
function X({ className: e, children: t, ...a }) {
|
|
42
42
|
const { isXl: d, setSidebarHeight: o, sheetOpen: n, setSheetOpen: h } = x();
|
|
43
|
-
return /* @__PURE__ */ r.jsx(
|
|
43
|
+
return /* @__PURE__ */ r.jsx(b, { children: /* @__PURE__ */ r.jsxs(
|
|
44
44
|
"div",
|
|
45
45
|
{
|
|
46
46
|
ref: (i) => {
|
|
@@ -48,35 +48,51 @@ function X({ className: e, children: t, ...a }) {
|
|
|
48
48
|
},
|
|
49
49
|
"data-slot": "sidebar-content",
|
|
50
50
|
className: s(
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
`
|
|
52
|
+
adm:fixed adm:bg-sidebar-primary adm:text-sidebar-primary-foreground
|
|
53
|
+
adm:xl:flex adm:xl:flex-col
|
|
54
|
+
`,
|
|
55
|
+
"adm:top-0 adm:right-0 adm:left-0",
|
|
56
|
+
`
|
|
57
|
+
adm:xl:top-0 adm:xl:bottom-0 adm:xl:left-0 adm:xl:h-auto
|
|
58
|
+
adm:xl:w-3xs
|
|
59
|
+
`,
|
|
54
60
|
e
|
|
55
61
|
),
|
|
56
62
|
...a,
|
|
57
63
|
children: [
|
|
58
64
|
d && t,
|
|
59
|
-
/* @__PURE__ */ r.jsx(S, { open: n, onOpenChange: h, children: /* @__PURE__ */ r.jsxs(
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
65
|
+
/* @__PURE__ */ r.jsx(S, { open: n, onOpenChange: h, children: /* @__PURE__ */ r.jsxs(
|
|
66
|
+
g,
|
|
67
|
+
{
|
|
68
|
+
showCloseButton: !1,
|
|
69
|
+
className: `
|
|
70
|
+
adm:rounded-none adm:border-sidebar-primary adm:bg-sidebar-primary
|
|
71
|
+
adm:text-sidebar-primary-foreground
|
|
72
|
+
`,
|
|
73
|
+
children: [
|
|
74
|
+
/* @__PURE__ */ r.jsx(p, { children: /* @__PURE__ */ r.jsxs(j, { children: [
|
|
75
|
+
/* @__PURE__ */ r.jsx(w, { children: "Sidebar" }),
|
|
76
|
+
/* @__PURE__ */ r.jsx(y, { children: "Sidebar" })
|
|
77
|
+
] }) }),
|
|
78
|
+
t
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
) })
|
|
66
82
|
]
|
|
67
83
|
}
|
|
68
84
|
) });
|
|
69
85
|
}
|
|
70
86
|
function _({ className: e, ...t }) {
|
|
71
87
|
const { setSheetOpen: a } = x();
|
|
72
|
-
return /* @__PURE__ */ r.jsx(
|
|
88
|
+
return /* @__PURE__ */ r.jsx(f, { "data-slot": "sidebar-trigger", className: s("adm:xl:hidden", e), onClick: () => a((d) => !d), ...t, children: /* @__PURE__ */ r.jsx(k, {}) });
|
|
73
89
|
}
|
|
74
90
|
function z({ className: e, children: t, ...a }) {
|
|
75
91
|
return /* @__PURE__ */ r.jsx(
|
|
76
92
|
"div",
|
|
77
93
|
{
|
|
78
94
|
"data-slot": "sidebar-inset",
|
|
79
|
-
className: s(e, "adm:xl:
|
|
95
|
+
className: s(e, "adm:xl:mt-auto adm:xl:ml-[256px]"),
|
|
80
96
|
...a,
|
|
81
97
|
children: t
|
|
82
98
|
}
|
|
@@ -87,7 +103,10 @@ function D({ className: e, children: t, ...a }) {
|
|
|
87
103
|
"div",
|
|
88
104
|
{
|
|
89
105
|
"data-slot": "sidebar-top-bar",
|
|
90
|
-
className: s(
|
|
106
|
+
className: s(`
|
|
107
|
+
adm:sticky adm:top-0 adm:z-50 adm:flex adm:items-center
|
|
108
|
+
adm:justify-between adm:gap-2 adm:border-b adm:bg-background adm:p-4
|
|
109
|
+
`, e),
|
|
91
110
|
...a,
|
|
92
111
|
children: t
|
|
93
112
|
}
|
|
@@ -98,7 +117,7 @@ function F({ className: e, children: t, ...a }) {
|
|
|
98
117
|
"header",
|
|
99
118
|
{
|
|
100
119
|
"data-slot": "sidebar-header",
|
|
101
|
-
className: s(e, "adm:
|
|
120
|
+
className: s(e, "adm:mt-12 adm:flex adm:flex-col"),
|
|
102
121
|
...a,
|
|
103
122
|
children: t
|
|
104
123
|
}
|
|
@@ -121,17 +140,30 @@ function A({ asChild: e, className: t, ...a }) {
|
|
|
121
140
|
d,
|
|
122
141
|
{
|
|
123
142
|
"data-slot": "sidebar-menu",
|
|
124
|
-
className: s(t,
|
|
143
|
+
className: s(t, `
|
|
144
|
+
adm:my-12 adm:flex adm:flex-col adm:gap-4 adm:overflow-y-auto adm:py-1
|
|
145
|
+
`),
|
|
125
146
|
...a
|
|
126
147
|
}
|
|
127
148
|
);
|
|
128
149
|
}
|
|
129
150
|
function G({ asChild: e, className: t, ...a }) {
|
|
130
151
|
const d = e ? l : "button";
|
|
131
|
-
return /* @__PURE__ */ r.jsx(
|
|
152
|
+
return /* @__PURE__ */ r.jsx(
|
|
153
|
+
d,
|
|
154
|
+
{
|
|
155
|
+
"data-slot": "sidebar-menu-item",
|
|
156
|
+
className: s(t, `
|
|
157
|
+
adm:mx-4 adm:flex adm:w-[stretch] adm:items-center adm:gap-4
|
|
158
|
+
adm:rounded-xl adm:p-4 adm:transition-all
|
|
159
|
+
adm:hover:bg-white/10
|
|
160
|
+
`),
|
|
161
|
+
...a
|
|
162
|
+
}
|
|
163
|
+
);
|
|
132
164
|
}
|
|
133
165
|
function x() {
|
|
134
|
-
const e =
|
|
166
|
+
const e = C(u);
|
|
135
167
|
if (!e)
|
|
136
168
|
throw new Error("useSidebarContext must be used within a Sidebar component");
|
|
137
169
|
return e;
|
package/dist/skeleton.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./jsx-runtime-BB_1_6y_.cjs"),o=require("./index-DoxiiusW.cjs");function s({className:e,...t}){return n.jsxRuntimeExports.jsx("div",{"data-slot":"skeleton",className:o.cn("adm:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./jsx-runtime-BB_1_6y_.cjs"),o=require("./index-DoxiiusW.cjs");function s({className:e,...t}){return n.jsxRuntimeExports.jsx("div",{"data-slot":"skeleton",className:o.cn("adm:animate-pulse adm:rounded-md adm:bg-accent",e),...t})}exports.Skeleton=s;
|
package/dist/skeleton.js
CHANGED
package/dist/slider.cjs
CHANGED
|
@@ -1 +1,27 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./jsx-runtime-BB_1_6y_.cjs"),ce=require("react"),F=require("./index-C8ni3LLa.cjs"),P=require("./index-BWaO7kQK.cjs"),_=require("./index-_XxjJPRD.cjs"),ue=require("./index-cwZN7ZY3.cjs"),Y=require("./index-CzRiuk60.cjs"),me=require("./index-DYxWvftI.cjs"),fe=require("./index-bSPhqlcX.cjs"),I=require("./index-CocSS1YK.cjs"),N=require("./index-DoxiiusW.cjs");function pe(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const l=pe(ce);var X=["PageUp","PageDown"],G=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],W={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},C="Slider",[V,xe,Se]=Y.createCollection(C),[J]=ue.createContextScope(C,[Se]),[he,T]=J(C),Q=l.forwardRef((e,t)=>{const{name:n,min:o=0,max:r=100,step:d=1,orientation:i="horizontal",disabled:a=!1,minStepsBetweenThumbs:u=0,defaultValue:S=[o],value:h,onValueChange:s=()=>{},onValueCommit:m=()=>{},inverted:v=!1,form:w,...g}=e,p=l.useRef(new Set),f=l.useRef(0),b=i==="horizontal"?ge:ve,[x=[],M]=P.useControllableState({prop:h,defaultProp:S,onChange:R=>{[...p.current][f.current]?.focus(),s(R)}}),B=l.useRef(x);function k(R){const E=ye(x,R);A(R,E)}function de(R){A(R,f.current)}function le(){const R=B.current[f.current];x[f.current]!==R&&m(x)}function A(R,E,{commit:z}={commit:!1}){const L=_e(d),H=Ce(Math.round((R-o)/d)*d+o,L),K=F.clamp(H,[o,r]);M((D=[])=>{const y=we(D,K,E);if(De(y,u*d)){f.current=y.indexOf(K);const U=String(y)!==String(D);return U&&z&&m(y),U?y:D}else return D})}return c.jsxRuntimeExports.jsx(he,{scope:e.__scopeSlider,name:n,disabled:a,min:o,max:r,valueIndexToChangeRef:f,thumbs:p.current,values:x,orientation:i,form:w,children:c.jsxRuntimeExports.jsx(V.Provider,{scope:e.__scopeSlider,children:c.jsxRuntimeExports.jsx(V.Slot,{scope:e.__scopeSlider,children:c.jsxRuntimeExports.jsx(b,{"aria-disabled":a,"data-disabled":a?"":void 0,...g,ref:t,onPointerDown:P.composeEventHandlers(g.onPointerDown,()=>{a||(B.current=x)}),min:o,max:r,inverted:v,onSlideStart:a?void 0:k,onSlideMove:a?void 0:de,onSlideEnd:a?void 0:le,onHomeKeyDown:()=>!a&&A(o,0,{commit:!0}),onEndKeyDown:()=>!a&&A(r,x.length-1,{commit:!0}),onStepKeyDown:({event:R,direction:E})=>{if(!a){const H=X.includes(R.key)||R.shiftKey&&G.includes(R.key)?10:1,K=f.current,D=x[K],y=d*H*E;A(D+y,K,{commit:!0})}}})})})})});Q.displayName=C;var[Z,ee]=J(C,{startEdge:"left",endEdge:"right",size:"width",direction:1}),ge=l.forwardRef((e,t)=>{const{min:n,max:o,dir:r,inverted:d,onSlideStart:i,onSlideMove:a,onSlideEnd:u,onStepKeyDown:S,...h}=e,[s,m]=l.useState(null),v=_.useComposedRefs(t,b=>m(b)),w=l.useRef(void 0),g=Y.useDirection(r),p=g==="ltr",f=p&&!d||!p&&d;function j(b){const x=w.current||s.getBoundingClientRect(),M=[0,x.width],k=q(M,f?[n,o]:[o,n]);return w.current=x,k(b-x.left)}return c.jsxRuntimeExports.jsx(Z,{scope:e.__scopeSlider,startEdge:f?"left":"right",endEdge:f?"right":"left",direction:f?1:-1,size:"width",children:c.jsxRuntimeExports.jsx(te,{dir:g,"data-orientation":"horizontal",...h,ref:v,style:{...h.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:b=>{const x=j(b.clientX);i?.(x)},onSlideMove:b=>{const x=j(b.clientX);a?.(x)},onSlideEnd:()=>{w.current=void 0,u?.()},onStepKeyDown:b=>{const M=W[f?"from-left":"from-right"].includes(b.key);S?.({event:b,direction:M?-1:1})}})})}),ve=l.forwardRef((e,t)=>{const{min:n,max:o,inverted:r,onSlideStart:d,onSlideMove:i,onSlideEnd:a,onStepKeyDown:u,...S}=e,h=l.useRef(null),s=_.useComposedRefs(t,h),m=l.useRef(void 0),v=!r;function w(g){const p=m.current||h.current.getBoundingClientRect(),f=[0,p.height],b=q(f,v?[o,n]:[n,o]);return m.current=p,b(g-p.top)}return c.jsxRuntimeExports.jsx(Z,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:c.jsxRuntimeExports.jsx(te,{"data-orientation":"vertical",...S,ref:s,style:{...S.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:g=>{const p=w(g.clientY);d?.(p)},onSlideMove:g=>{const p=w(g.clientY);i?.(p)},onSlideEnd:()=>{m.current=void 0,a?.()},onStepKeyDown:g=>{const f=W[v?"from-bottom":"from-top"].includes(g.key);u?.({event:g,direction:f?-1:1})}})})}),te=l.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:o,onSlideMove:r,onSlideEnd:d,onHomeKeyDown:i,onEndKeyDown:a,onStepKeyDown:u,...S}=e,h=T(C,n);return c.jsxRuntimeExports.jsx(I.Primitive.span,{...S,ref:t,onKeyDown:P.composeEventHandlers(e.onKeyDown,s=>{s.key==="Home"?(i(s),s.preventDefault()):s.key==="End"?(a(s),s.preventDefault()):X.concat(G).includes(s.key)&&(u(s),s.preventDefault())}),onPointerDown:P.composeEventHandlers(e.onPointerDown,s=>{const m=s.target;m.setPointerCapture(s.pointerId),s.preventDefault(),h.thumbs.has(m)?m.focus():o(s)}),onPointerMove:P.composeEventHandlers(e.onPointerMove,s=>{s.target.hasPointerCapture(s.pointerId)&&r(s)}),onPointerUp:P.composeEventHandlers(e.onPointerUp,s=>{const m=s.target;m.hasPointerCapture(s.pointerId)&&(m.releasePointerCapture(s.pointerId),d(s))})})}),ne="SliderTrack",oe=l.forwardRef((e,t)=>{const{__scopeSlider:n,...o}=e,r=T(ne,n);return c.jsxRuntimeExports.jsx(I.Primitive.span,{"data-disabled":r.disabled?"":void 0,"data-orientation":r.orientation,...o,ref:t})});oe.displayName=ne;var O="SliderRange",re=l.forwardRef((e,t)=>{const{__scopeSlider:n,...o}=e,r=T(O,n),d=ee(O,n),i=l.useRef(null),a=_.useComposedRefs(t,i),u=r.values.length,S=r.values.map(m=>ae(m,r.min,r.max)),h=u>1?Math.min(...S):0,s=100-Math.max(...S);return c.jsxRuntimeExports.jsx(I.Primitive.span,{"data-orientation":r.orientation,"data-disabled":r.disabled?"":void 0,...o,ref:a,style:{...e.style,[d.startEdge]:h+"%",[d.endEdge]:s+"%"}})});re.displayName=O;var $="SliderThumb",ie=l.forwardRef((e,t)=>{const n=xe(e.__scopeSlider),[o,r]=l.useState(null),d=_.useComposedRefs(t,a=>r(a)),i=l.useMemo(()=>o?n().findIndex(a=>a.ref.current===o):-1,[n,o]);return c.jsxRuntimeExports.jsx(be,{...e,ref:d,index:i})}),be=l.forwardRef((e,t)=>{const{__scopeSlider:n,index:o,name:r,...d}=e,i=T($,n),a=ee($,n),[u,S]=l.useState(null),h=_.useComposedRefs(t,j=>S(j)),s=u?i.form||!!u.closest("form"):!0,m=fe.useSize(u),v=i.values[o],w=v===void 0?0:ae(v,i.min,i.max),g=Ee(o,i.values.length),p=m?.[a.size],f=p?Pe(p,w,a.direction):0;return l.useEffect(()=>{if(u)return i.thumbs.add(u),()=>{i.thumbs.delete(u)}},[u,i.thumbs]),c.jsxRuntimeExports.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${w}% + ${f}px)`},children:[c.jsxRuntimeExports.jsx(V.ItemSlot,{scope:e.__scopeSlider,children:c.jsxRuntimeExports.jsx(I.Primitive.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":i.min,"aria-valuenow":v,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...d,ref:h,style:v===void 0?{display:"none"}:e.style,onFocus:P.composeEventHandlers(e.onFocus,()=>{i.valueIndexToChangeRef.current=o})})}),s&&c.jsxRuntimeExports.jsx(se,{name:r??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:v},o)]})});ie.displayName=$;var Re="RadioBubbleInput",se=l.forwardRef(({__scopeSlider:e,value:t,...n},o)=>{const r=l.useRef(null),d=_.useComposedRefs(r,o),i=me.usePrevious(t);return l.useEffect(()=>{const a=r.current;if(!a)return;const u=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(u,"value").set;if(i!==t&&h){const s=new Event("input",{bubbles:!0});h.call(a,t),a.dispatchEvent(s)}},[i,t]),c.jsxRuntimeExports.jsx(I.Primitive.input,{style:{display:"none"},...n,ref:d,defaultValue:t})});se.displayName=Re;function we(e=[],t,n){const o=[...e];return o[n]=t,o.sort((r,d)=>r-d)}function ae(e,t,n){const d=100/(n-t)*(e-t);return F.clamp(d,[0,100])}function Ee(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function ye(e,t){if(e.length===1)return 0;const n=e.map(r=>Math.abs(r-t)),o=Math.min(...n);return n.indexOf(o)}function Pe(e,t,n){const o=e/2,d=q([0,50],[0,o]);return(o-d(t)*n)*n}function je(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function De(e,t){if(t>0){const n=je(e);return Math.min(...n)>=t}return!0}function q(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(n-e[0])}}function _e(e){return(String(e).split(".")[1]||"").length}function Ce(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var Me=Q,Ae=oe,Ke=re,Ie=ie;function Te({className:e,defaultValue:t,value:n,min:o=0,max:r=100,theme:d,...i}){const a=l.useMemo(()=>Array.isArray(n)?n:Array.isArray(t)?t:[o,r],[n,t,o,r]);return c.jsxRuntimeExports.jsxs(Me,{"data-slot":"slider","data-theme":d,defaultValue:t,value:n,min:o,max:r,className:N.cn("adm:relative adm:flex adm:w-full adm:touch-none adm:items-center adm:select-none adm:data-[disabled]:opacity-50 adm:data-[orientation=vertical]:h-full adm:data-[orientation=vertical]:min-h-44 adm:data-[orientation=vertical]:w-auto adm:data-[orientation=vertical]:flex-col",e),...i,children:[c.jsxRuntimeExports.jsx(Ae,{"data-slot":"slider-track",className:N.cn("adm:bg-muted adm:relative adm:grow adm:overflow-hidden adm:rounded-full adm:data-[orientation=horizontal]:h-1.5 adm:data-[orientation=horizontal]:w-full adm:data-[orientation=vertical]:h-full adm:data-[orientation=vertical]:w-1.5"),children:c.jsxRuntimeExports.jsx(Ke,{"data-slot":"slider-range",className:N.cn("adm:bg-primary adm:absolute adm:data-[orientation=horizontal]:h-full adm:data-[orientation=vertical]:w-full")})}),Array.from({length:a.length},(u,S)=>c.jsxRuntimeExports.jsx(Ie,{"data-slot":"slider-thumb",className:"adm:border-primary adm:ring-ring/50 adm:block adm:size-4 adm:shrink-0 adm:rounded-full adm:border adm:bg-white adm:shadow-sm adm:transition-[color,box-shadow] adm:hover:ring-4 adm:focus-visible:ring-4 adm:focus-visible:outline-hidden adm:disabled:pointer-events-none adm:disabled:opacity-50"},S))]})}exports.Slider=Te;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./jsx-runtime-BB_1_6y_.cjs"),ce=require("react"),F=require("./index-C8ni3LLa.cjs"),P=require("./index-BWaO7kQK.cjs"),_=require("./index-_XxjJPRD.cjs"),ue=require("./index-cwZN7ZY3.cjs"),Y=require("./index-CzRiuk60.cjs"),me=require("./index-DYxWvftI.cjs"),fe=require("./index-bSPhqlcX.cjs"),I=require("./index-CocSS1YK.cjs"),N=require("./index-DoxiiusW.cjs");function pe(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const l=pe(ce);var X=["PageUp","PageDown"],G=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],W={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},C="Slider",[V,xe,Se]=Y.createCollection(C),[J]=ue.createContextScope(C,[Se]),[he,T]=J(C),Q=l.forwardRef((e,t)=>{const{name:n,min:o=0,max:r=100,step:d=1,orientation:i="horizontal",disabled:a=!1,minStepsBetweenThumbs:u=0,defaultValue:S=[o],value:h,onValueChange:s=()=>{},onValueCommit:m=()=>{},inverted:v=!1,form:w,...g}=e,p=l.useRef(new Set),f=l.useRef(0),b=i==="horizontal"?ge:ve,[x=[],M]=P.useControllableState({prop:h,defaultProp:S,onChange:R=>{[...p.current][f.current]?.focus(),s(R)}}),B=l.useRef(x);function k(R){const E=ye(x,R);A(R,E)}function de(R){A(R,f.current)}function le(){const R=B.current[f.current];x[f.current]!==R&&m(x)}function A(R,E,{commit:z}={commit:!1}){const L=_e(d),H=Ce(Math.round((R-o)/d)*d+o,L),K=F.clamp(H,[o,r]);M((D=[])=>{const y=we(D,K,E);if(De(y,u*d)){f.current=y.indexOf(K);const U=String(y)!==String(D);return U&&z&&m(y),U?y:D}else return D})}return c.jsxRuntimeExports.jsx(he,{scope:e.__scopeSlider,name:n,disabled:a,min:o,max:r,valueIndexToChangeRef:f,thumbs:p.current,values:x,orientation:i,form:w,children:c.jsxRuntimeExports.jsx(V.Provider,{scope:e.__scopeSlider,children:c.jsxRuntimeExports.jsx(V.Slot,{scope:e.__scopeSlider,children:c.jsxRuntimeExports.jsx(b,{"aria-disabled":a,"data-disabled":a?"":void 0,...g,ref:t,onPointerDown:P.composeEventHandlers(g.onPointerDown,()=>{a||(B.current=x)}),min:o,max:r,inverted:v,onSlideStart:a?void 0:k,onSlideMove:a?void 0:de,onSlideEnd:a?void 0:le,onHomeKeyDown:()=>!a&&A(o,0,{commit:!0}),onEndKeyDown:()=>!a&&A(r,x.length-1,{commit:!0}),onStepKeyDown:({event:R,direction:E})=>{if(!a){const H=X.includes(R.key)||R.shiftKey&&G.includes(R.key)?10:1,K=f.current,D=x[K],y=d*H*E;A(D+y,K,{commit:!0})}}})})})})});Q.displayName=C;var[Z,ee]=J(C,{startEdge:"left",endEdge:"right",size:"width",direction:1}),ge=l.forwardRef((e,t)=>{const{min:n,max:o,dir:r,inverted:d,onSlideStart:i,onSlideMove:a,onSlideEnd:u,onStepKeyDown:S,...h}=e,[s,m]=l.useState(null),v=_.useComposedRefs(t,b=>m(b)),w=l.useRef(void 0),g=Y.useDirection(r),p=g==="ltr",f=p&&!d||!p&&d;function j(b){const x=w.current||s.getBoundingClientRect(),M=[0,x.width],k=q(M,f?[n,o]:[o,n]);return w.current=x,k(b-x.left)}return c.jsxRuntimeExports.jsx(Z,{scope:e.__scopeSlider,startEdge:f?"left":"right",endEdge:f?"right":"left",direction:f?1:-1,size:"width",children:c.jsxRuntimeExports.jsx(te,{dir:g,"data-orientation":"horizontal",...h,ref:v,style:{...h.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:b=>{const x=j(b.clientX);i?.(x)},onSlideMove:b=>{const x=j(b.clientX);a?.(x)},onSlideEnd:()=>{w.current=void 0,u?.()},onStepKeyDown:b=>{const M=W[f?"from-left":"from-right"].includes(b.key);S?.({event:b,direction:M?-1:1})}})})}),ve=l.forwardRef((e,t)=>{const{min:n,max:o,inverted:r,onSlideStart:d,onSlideMove:i,onSlideEnd:a,onStepKeyDown:u,...S}=e,h=l.useRef(null),s=_.useComposedRefs(t,h),m=l.useRef(void 0),v=!r;function w(g){const p=m.current||h.current.getBoundingClientRect(),f=[0,p.height],b=q(f,v?[o,n]:[n,o]);return m.current=p,b(g-p.top)}return c.jsxRuntimeExports.jsx(Z,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:c.jsxRuntimeExports.jsx(te,{"data-orientation":"vertical",...S,ref:s,style:{...S.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:g=>{const p=w(g.clientY);d?.(p)},onSlideMove:g=>{const p=w(g.clientY);i?.(p)},onSlideEnd:()=>{m.current=void 0,a?.()},onStepKeyDown:g=>{const f=W[v?"from-bottom":"from-top"].includes(g.key);u?.({event:g,direction:f?-1:1})}})})}),te=l.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:o,onSlideMove:r,onSlideEnd:d,onHomeKeyDown:i,onEndKeyDown:a,onStepKeyDown:u,...S}=e,h=T(C,n);return c.jsxRuntimeExports.jsx(I.Primitive.span,{...S,ref:t,onKeyDown:P.composeEventHandlers(e.onKeyDown,s=>{s.key==="Home"?(i(s),s.preventDefault()):s.key==="End"?(a(s),s.preventDefault()):X.concat(G).includes(s.key)&&(u(s),s.preventDefault())}),onPointerDown:P.composeEventHandlers(e.onPointerDown,s=>{const m=s.target;m.setPointerCapture(s.pointerId),s.preventDefault(),h.thumbs.has(m)?m.focus():o(s)}),onPointerMove:P.composeEventHandlers(e.onPointerMove,s=>{s.target.hasPointerCapture(s.pointerId)&&r(s)}),onPointerUp:P.composeEventHandlers(e.onPointerUp,s=>{const m=s.target;m.hasPointerCapture(s.pointerId)&&(m.releasePointerCapture(s.pointerId),d(s))})})}),ne="SliderTrack",oe=l.forwardRef((e,t)=>{const{__scopeSlider:n,...o}=e,r=T(ne,n);return c.jsxRuntimeExports.jsx(I.Primitive.span,{"data-disabled":r.disabled?"":void 0,"data-orientation":r.orientation,...o,ref:t})});oe.displayName=ne;var O="SliderRange",re=l.forwardRef((e,t)=>{const{__scopeSlider:n,...o}=e,r=T(O,n),d=ee(O,n),i=l.useRef(null),a=_.useComposedRefs(t,i),u=r.values.length,S=r.values.map(m=>ae(m,r.min,r.max)),h=u>1?Math.min(...S):0,s=100-Math.max(...S);return c.jsxRuntimeExports.jsx(I.Primitive.span,{"data-orientation":r.orientation,"data-disabled":r.disabled?"":void 0,...o,ref:a,style:{...e.style,[d.startEdge]:h+"%",[d.endEdge]:s+"%"}})});re.displayName=O;var $="SliderThumb",ie=l.forwardRef((e,t)=>{const n=xe(e.__scopeSlider),[o,r]=l.useState(null),d=_.useComposedRefs(t,a=>r(a)),i=l.useMemo(()=>o?n().findIndex(a=>a.ref.current===o):-1,[n,o]);return c.jsxRuntimeExports.jsx(be,{...e,ref:d,index:i})}),be=l.forwardRef((e,t)=>{const{__scopeSlider:n,index:o,name:r,...d}=e,i=T($,n),a=ee($,n),[u,S]=l.useState(null),h=_.useComposedRefs(t,j=>S(j)),s=u?i.form||!!u.closest("form"):!0,m=fe.useSize(u),v=i.values[o],w=v===void 0?0:ae(v,i.min,i.max),g=Ee(o,i.values.length),p=m?.[a.size],f=p?Pe(p,w,a.direction):0;return l.useEffect(()=>{if(u)return i.thumbs.add(u),()=>{i.thumbs.delete(u)}},[u,i.thumbs]),c.jsxRuntimeExports.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${w}% + ${f}px)`},children:[c.jsxRuntimeExports.jsx(V.ItemSlot,{scope:e.__scopeSlider,children:c.jsxRuntimeExports.jsx(I.Primitive.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":i.min,"aria-valuenow":v,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...d,ref:h,style:v===void 0?{display:"none"}:e.style,onFocus:P.composeEventHandlers(e.onFocus,()=>{i.valueIndexToChangeRef.current=o})})}),s&&c.jsxRuntimeExports.jsx(se,{name:r??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:v},o)]})});ie.displayName=$;var Re="RadioBubbleInput",se=l.forwardRef(({__scopeSlider:e,value:t,...n},o)=>{const r=l.useRef(null),d=_.useComposedRefs(r,o),i=me.usePrevious(t);return l.useEffect(()=>{const a=r.current;if(!a)return;const u=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(u,"value").set;if(i!==t&&h){const s=new Event("input",{bubbles:!0});h.call(a,t),a.dispatchEvent(s)}},[i,t]),c.jsxRuntimeExports.jsx(I.Primitive.input,{style:{display:"none"},...n,ref:d,defaultValue:t})});se.displayName=Re;function we(e=[],t,n){const o=[...e];return o[n]=t,o.sort((r,d)=>r-d)}function ae(e,t,n){const d=100/(n-t)*(e-t);return F.clamp(d,[0,100])}function Ee(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function ye(e,t){if(e.length===1)return 0;const n=e.map(r=>Math.abs(r-t)),o=Math.min(...n);return n.indexOf(o)}function Pe(e,t,n){const o=e/2,d=q([0,50],[0,o]);return(o-d(t)*n)*n}function je(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function De(e,t){if(t>0){const n=je(e);return Math.min(...n)>=t}return!0}function q(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(n-e[0])}}function _e(e){return(String(e).split(".")[1]||"").length}function Ce(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var Me=Q,Ae=oe,Ke=re,Ie=ie;function Te({className:e,defaultValue:t,value:n,min:o=0,max:r=100,theme:d,...i}){const a=l.useMemo(()=>Array.isArray(n)?n:Array.isArray(t)?t:[o,r],[n,t,o,r]);return c.jsxRuntimeExports.jsxs(Me,{"data-slot":"slider","data-theme":d,defaultValue:t,value:n,min:o,max:r,className:N.cn(`
|
|
2
|
+
adm:relative adm:flex adm:w-full adm:touch-none adm:items-center
|
|
3
|
+
adm:select-none
|
|
4
|
+
adm:data-[disabled]:opacity-50
|
|
5
|
+
adm:data-[orientation=vertical]:h-full
|
|
6
|
+
adm:data-[orientation=vertical]:min-h-44
|
|
7
|
+
adm:data-[orientation=vertical]:w-auto
|
|
8
|
+
adm:data-[orientation=vertical]:flex-col
|
|
9
|
+
`,e),...i,children:[c.jsxRuntimeExports.jsx(Ae,{"data-slot":"slider-track",className:N.cn(`
|
|
10
|
+
adm:relative adm:grow adm:overflow-hidden adm:rounded-full
|
|
11
|
+
adm:bg-muted
|
|
12
|
+
adm:data-[orientation=horizontal]:h-1.5
|
|
13
|
+
adm:data-[orientation=horizontal]:w-full
|
|
14
|
+
adm:data-[orientation=vertical]:h-full
|
|
15
|
+
adm:data-[orientation=vertical]:w-1.5
|
|
16
|
+
`),children:c.jsxRuntimeExports.jsx(Ke,{"data-slot":"slider-range",className:N.cn(`
|
|
17
|
+
adm:absolute adm:bg-primary
|
|
18
|
+
adm:data-[orientation=horizontal]:h-full
|
|
19
|
+
adm:data-[orientation=vertical]:w-full
|
|
20
|
+
`)})}),Array.from({length:a.length},(u,S)=>c.jsxRuntimeExports.jsx(Ie,{"data-slot":"slider-thumb",className:`
|
|
21
|
+
adm:block adm:size-4 adm:shrink-0 adm:rounded-full adm:border
|
|
22
|
+
adm:border-primary adm:bg-white adm:shadow-sm adm:ring-ring/50
|
|
23
|
+
adm:transition-[color,box-shadow]
|
|
24
|
+
adm:hover:ring-4
|
|
25
|
+
adm:focus-visible:ring-4 adm:focus-visible:outline-hidden
|
|
26
|
+
adm:disabled:pointer-events-none adm:disabled:opacity-50
|
|
27
|
+
`},S))]})}exports.Slider=Te;
|
package/dist/slider.js
CHANGED
|
@@ -446,7 +446,15 @@ function Fe({
|
|
|
446
446
|
min: n,
|
|
447
447
|
max: r,
|
|
448
448
|
className: N(
|
|
449
|
-
|
|
449
|
+
`
|
|
450
|
+
adm:relative adm:flex adm:w-full adm:touch-none adm:items-center
|
|
451
|
+
adm:select-none
|
|
452
|
+
adm:data-[disabled]:opacity-50
|
|
453
|
+
adm:data-[orientation=vertical]:h-full
|
|
454
|
+
adm:data-[orientation=vertical]:min-h-44
|
|
455
|
+
adm:data-[orientation=vertical]:w-auto
|
|
456
|
+
adm:data-[orientation=vertical]:flex-col
|
|
457
|
+
`,
|
|
450
458
|
e
|
|
451
459
|
),
|
|
452
460
|
...i,
|
|
@@ -456,14 +464,25 @@ function Fe({
|
|
|
456
464
|
{
|
|
457
465
|
"data-slot": "slider-track",
|
|
458
466
|
className: N(
|
|
459
|
-
|
|
467
|
+
`
|
|
468
|
+
adm:relative adm:grow adm:overflow-hidden adm:rounded-full
|
|
469
|
+
adm:bg-muted
|
|
470
|
+
adm:data-[orientation=horizontal]:h-1.5
|
|
471
|
+
adm:data-[orientation=horizontal]:w-full
|
|
472
|
+
adm:data-[orientation=vertical]:h-full
|
|
473
|
+
adm:data-[orientation=vertical]:w-1.5
|
|
474
|
+
`
|
|
460
475
|
),
|
|
461
476
|
children: /* @__PURE__ */ c.jsx(
|
|
462
477
|
Ke,
|
|
463
478
|
{
|
|
464
479
|
"data-slot": "slider-range",
|
|
465
480
|
className: N(
|
|
466
|
-
|
|
481
|
+
`
|
|
482
|
+
adm:absolute adm:bg-primary
|
|
483
|
+
adm:data-[orientation=horizontal]:h-full
|
|
484
|
+
adm:data-[orientation=vertical]:w-full
|
|
485
|
+
`
|
|
467
486
|
)
|
|
468
487
|
}
|
|
469
488
|
)
|
|
@@ -473,7 +492,14 @@ function Fe({
|
|
|
473
492
|
Ie,
|
|
474
493
|
{
|
|
475
494
|
"data-slot": "slider-thumb",
|
|
476
|
-
className:
|
|
495
|
+
className: `
|
|
496
|
+
adm:block adm:size-4 adm:shrink-0 adm:rounded-full adm:border
|
|
497
|
+
adm:border-primary adm:bg-white adm:shadow-sm adm:ring-ring/50
|
|
498
|
+
adm:transition-[color,box-shadow]
|
|
499
|
+
adm:hover:ring-4
|
|
500
|
+
adm:focus-visible:ring-4 adm:focus-visible:outline-hidden
|
|
501
|
+
adm:disabled:pointer-events-none adm:disabled:opacity-50
|
|
502
|
+
`
|
|
477
503
|
},
|
|
478
504
|
S
|
|
479
505
|
))
|
package/dist/space.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--space: .
|
|
1
|
+
:root{--space: .25rem}
|