@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,42 @@
|
|
|
1
|
+
import { j as i } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
+
import { c as r } from "./index-CRiPKpXj.js";
|
|
3
|
+
import "react";
|
|
4
|
+
function o({ className: a, type: d, ...e }) {
|
|
5
|
+
return /* @__PURE__ */ i.jsx(
|
|
6
|
+
"input",
|
|
7
|
+
{
|
|
8
|
+
type: d,
|
|
9
|
+
"data-slot": "input",
|
|
10
|
+
className: r(
|
|
11
|
+
`
|
|
12
|
+
adm:h-9 adm:w-full adm:min-w-0 adm:rounded-md adm:border
|
|
13
|
+
adm:border-input adm:bg-transparent adm:px-3 adm:py-1 adm:text-base
|
|
14
|
+
adm:shadow-xs adm:transition-[color,box-shadow] adm:outline-none
|
|
15
|
+
adm:selection:bg-primary adm:selection:text-primary-foreground
|
|
16
|
+
adm:file:inline-flex adm:file:h-7 adm:file:border-0
|
|
17
|
+
adm:file:bg-transparent adm:file:text-sm adm:file:font-medium
|
|
18
|
+
adm:file:text-foreground
|
|
19
|
+
adm:placeholder:text-muted-foreground
|
|
20
|
+
adm:disabled:pointer-events-none adm:disabled:cursor-not-allowed
|
|
21
|
+
adm:disabled:opacity-50
|
|
22
|
+
adm:md:text-sm
|
|
23
|
+
adm:dark:bg-input/30
|
|
24
|
+
`,
|
|
25
|
+
`
|
|
26
|
+
adm:focus-visible:border-ring adm:focus-visible:ring-[3px]
|
|
27
|
+
adm:focus-visible:ring-ring/50
|
|
28
|
+
`,
|
|
29
|
+
`
|
|
30
|
+
adm:aria-invalid:border-destructive
|
|
31
|
+
adm:aria-invalid:ring-destructive/20
|
|
32
|
+
adm:dark:aria-invalid:ring-destructive/40
|
|
33
|
+
`,
|
|
34
|
+
a
|
|
35
|
+
),
|
|
36
|
+
...e
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
o as I
|
|
42
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";const i=require("./jsx-runtime-BB_1_6y_.cjs"),r=require("./index-DoxiiusW.cjs");require("react");function t({className:d,type:a,...e}){return i.jsxRuntimeExports.jsx("input",{type:a,"data-slot":"input",className:r.cn(`
|
|
2
|
+
adm:h-9 adm:w-full adm:min-w-0 adm:rounded-md adm:border
|
|
3
|
+
adm:border-input adm:bg-transparent adm:px-3 adm:py-1 adm:text-base
|
|
4
|
+
adm:shadow-xs adm:transition-[color,box-shadow] adm:outline-none
|
|
5
|
+
adm:selection:bg-primary adm:selection:text-primary-foreground
|
|
6
|
+
adm:file:inline-flex adm:file:h-7 adm:file:border-0
|
|
7
|
+
adm:file:bg-transparent adm:file:text-sm adm:file:font-medium
|
|
8
|
+
adm:file:text-foreground
|
|
9
|
+
adm:placeholder:text-muted-foreground
|
|
10
|
+
adm:disabled:pointer-events-none adm:disabled:cursor-not-allowed
|
|
11
|
+
adm:disabled:opacity-50
|
|
12
|
+
adm:md:text-sm
|
|
13
|
+
adm:dark:bg-input/30
|
|
14
|
+
`,`
|
|
15
|
+
adm:focus-visible:border-ring adm:focus-visible:ring-[3px]
|
|
16
|
+
adm:focus-visible:ring-ring/50
|
|
17
|
+
`,`
|
|
18
|
+
adm:aria-invalid:border-destructive
|
|
19
|
+
adm:aria-invalid:ring-destructive/20
|
|
20
|
+
adm:dark:aria-invalid:ring-destructive/40
|
|
21
|
+
`,d),...e})}exports.Input=t;
|
package/dist/input-group.cjs
CHANGED
|
@@ -1 +1,76 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./jsx-runtime-BB_1_6y_.cjs")
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./jsx-runtime-BB_1_6y_.cjs"),u=require("./button-D-qFRXiM.cjs"),m=require("./input-DSmxdfq5.cjs"),i=require("./textarea-CG7iQcb3.cjs"),n=require("./index-DoxiiusW.cjs"),s=require("./index-BTzZJcis.cjs");require("react");function p({className:t,...a}){return d.jsxRuntimeExports.jsx("div",{"data-slot":"input-group",role:"group",className:n.cn(`
|
|
2
|
+
adm:group/input-group adm:relative adm:flex adm:w-full
|
|
3
|
+
adm:items-center adm:rounded-md adm:border adm:border-input
|
|
4
|
+
adm:shadow-xs adm:transition-[color,box-shadow] adm:outline-none
|
|
5
|
+
adm:dark:bg-input/30
|
|
6
|
+
`,`
|
|
7
|
+
adm:h-9 adm:min-w-0
|
|
8
|
+
adm:has-[>textarea]:h-auto
|
|
9
|
+
`,"adm:has-[>[data-align=inline-start]]:[&>input]:pl-2","adm:has-[>[data-align=inline-end]]:[&>input]:pr-2",`
|
|
10
|
+
adm:has-[>[data-align=block-start]]:h-auto
|
|
11
|
+
adm:has-[>[data-align=block-start]]:flex-col
|
|
12
|
+
adm:has-[>[data-align=block-start]]:[&>input]:pb-3
|
|
13
|
+
`,`
|
|
14
|
+
adm:has-[>[data-align=block-end]]:h-auto
|
|
15
|
+
adm:has-[>[data-align=block-end]]:flex-col
|
|
16
|
+
adm:has-[>[data-align=block-end]]:[&>input]:pt-3
|
|
17
|
+
`,`
|
|
18
|
+
adm:has-[[data-slot=input-group-control]:focus-visible]:border-ring
|
|
19
|
+
adm:has-[[data-slot=input-group-control]:focus-visible]:ring-[3px]
|
|
20
|
+
adm:has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50
|
|
21
|
+
`,`
|
|
22
|
+
adm:has-[[data-slot][aria-invalid=true]]:border-destructive
|
|
23
|
+
adm:has-[[data-slot][aria-invalid=true]]:ring-destructive/20
|
|
24
|
+
adm:dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40
|
|
25
|
+
`,t),...a})}const l=s.cva(`
|
|
26
|
+
adm:flex adm:h-auto adm:cursor-text adm:items-center adm:justify-center
|
|
27
|
+
adm:gap-2 adm:py-1.5 adm:text-sm adm:font-medium adm:text-muted-foreground
|
|
28
|
+
adm:select-none
|
|
29
|
+
adm:group-data-[disabled=true]/input-group:opacity-50
|
|
30
|
+
adm:[&>kbd]:rounded-[calc(var(--radius)-5px)]
|
|
31
|
+
adm:[&>svg:not([class*=size-])]:size-4
|
|
32
|
+
`,{variants:{align:{"inline-start":`
|
|
33
|
+
adm:order-first adm:pl-3
|
|
34
|
+
adm:has-[>button]:ml-[-0.45rem]
|
|
35
|
+
adm:has-[>kbd]:ml-[-0.35rem]
|
|
36
|
+
`,"inline-end":`
|
|
37
|
+
adm:order-last adm:pr-3
|
|
38
|
+
adm:has-[>button]:mr-[-0.45rem]
|
|
39
|
+
adm:has-[>kbd]:mr-[-0.35rem]
|
|
40
|
+
`,"block-start":`
|
|
41
|
+
adm:order-first adm:w-full adm:justify-start adm:px-3 adm:pt-3
|
|
42
|
+
adm:group-has-[>input]/input-group:pt-2.5
|
|
43
|
+
adm:[.border-b]:pb-3
|
|
44
|
+
`,"block-end":`
|
|
45
|
+
adm:order-last adm:w-full adm:justify-start adm:px-3 adm:pb-3
|
|
46
|
+
adm:group-has-[>input]/input-group:pb-2.5
|
|
47
|
+
adm:[.border-t]:pt-3
|
|
48
|
+
`}},defaultVariants:{align:"inline-start"}});function c({className:t,align:a="inline-start",...e}){return d.jsxRuntimeExports.jsx("div",{role:"group","data-slot":"input-group-addon","data-align":a,className:n.cn(l({align:a}),t),onClick:r=>{r.target.closest("button")||r.currentTarget.parentElement?.querySelector("input")?.focus()},...e})}const g=s.cva("adm:flex adm:items-center adm:gap-2 adm:text-sm adm:shadow-none",{variants:{size:{xs:`
|
|
49
|
+
adm:h-6 adm:gap-1 adm:rounded-[calc(var(--radius)-5px)] adm:px-2
|
|
50
|
+
adm:has-[>svg]:px-2
|
|
51
|
+
adm:[&>svg:not([class*=size-])]:size-3.5
|
|
52
|
+
`,sm:`
|
|
53
|
+
adm:h-8 adm:gap-1.5 adm:rounded-md adm:px-2.5
|
|
54
|
+
adm:has-[>svg]:px-2.5
|
|
55
|
+
`,"icon-xs":`
|
|
56
|
+
adm:size-6 adm:rounded-[calc(var(--radius)-5px)] adm:p-0
|
|
57
|
+
adm:has-[>svg]:p-0
|
|
58
|
+
`,"icon-sm":`
|
|
59
|
+
adm:size-8 adm:p-0
|
|
60
|
+
adm:has-[>svg]:p-0
|
|
61
|
+
`}},defaultVariants:{size:"xs"}});function x({className:t,type:a="button",variant:e="ghost",size:r="xs",...o}){return d.jsxRuntimeExports.jsx(u.Button,{type:a,"data-size":r,variant:e,className:n.cn(g({size:r}),t),...o})}function b({className:t,...a}){return d.jsxRuntimeExports.jsx("span",{className:n.cn(`
|
|
62
|
+
adm:flex adm:items-center adm:gap-2 adm:text-sm
|
|
63
|
+
adm:text-muted-foreground
|
|
64
|
+
adm:[&_svg]:pointer-events-none
|
|
65
|
+
adm:[&_svg:not([class*=size-])]:size-4
|
|
66
|
+
`,t),...a})}function h({className:t,...a}){return d.jsxRuntimeExports.jsx(m.Input,{"data-slot":"input-group-control",className:n.cn(`
|
|
67
|
+
adm:flex-1 adm:rounded-none adm:border-0 adm:bg-transparent
|
|
68
|
+
adm:shadow-none
|
|
69
|
+
adm:focus-visible:ring-0
|
|
70
|
+
adm:dark:bg-transparent
|
|
71
|
+
`,t),...a})}function f({className:t,...a}){return d.jsxRuntimeExports.jsx(i.Textarea,{"data-slot":"input-group-control",className:n.cn(`
|
|
72
|
+
adm:flex-1 adm:resize-none adm:rounded-none adm:border-0
|
|
73
|
+
adm:bg-transparent adm:py-3 adm:shadow-none
|
|
74
|
+
adm:focus-visible:ring-0
|
|
75
|
+
adm:dark:bg-transparent
|
|
76
|
+
`,t),...a})}exports.InputGroup=p;exports.InputGroupAddon=c;exports.InputGroupButton=x;exports.InputGroupInput=h;exports.InputGroupText=b;exports.InputGroupTextarea=f;
|
package/dist/input-group.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { j as d } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
2
|
+
import { B as e } from "./button-B7ZP4LZN.js";
|
|
3
|
+
import { I as i } from "./input-BQZUpTEY.js";
|
|
4
|
+
import { T as u } from "./textarea-CUPWKl-S.js";
|
|
4
5
|
import { c as r } from "./index-CRiPKpXj.js";
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import { T as u } from "./textarea-BZbcAAAu.js";
|
|
6
|
+
import { c as m } from "./index-BqtVL8d-.js";
|
|
7
|
+
import "react";
|
|
8
8
|
function k({ className: t, ...a }) {
|
|
9
9
|
return /* @__PURE__ */ d.jsx(
|
|
10
10
|
"div",
|
|
@@ -12,17 +12,41 @@ function k({ className: t, ...a }) {
|
|
|
12
12
|
"data-slot": "input-group",
|
|
13
13
|
role: "group",
|
|
14
14
|
className: r(
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
`
|
|
16
|
+
adm:group/input-group adm:relative adm:flex adm:w-full
|
|
17
|
+
adm:items-center adm:rounded-md adm:border adm:border-input
|
|
18
|
+
adm:shadow-xs adm:transition-[color,box-shadow] adm:outline-none
|
|
19
|
+
adm:dark:bg-input/30
|
|
20
|
+
`,
|
|
21
|
+
`
|
|
22
|
+
adm:h-9 adm:min-w-0
|
|
23
|
+
adm:has-[>textarea]:h-auto
|
|
24
|
+
`,
|
|
17
25
|
// Variants based on alignment.
|
|
18
26
|
"adm:has-[>[data-align=inline-start]]:[&>input]:pl-2",
|
|
19
27
|
"adm:has-[>[data-align=inline-end]]:[&>input]:pr-2",
|
|
20
|
-
|
|
21
|
-
|
|
28
|
+
`
|
|
29
|
+
adm:has-[>[data-align=block-start]]:h-auto
|
|
30
|
+
adm:has-[>[data-align=block-start]]:flex-col
|
|
31
|
+
adm:has-[>[data-align=block-start]]:[&>input]:pb-3
|
|
32
|
+
`,
|
|
33
|
+
`
|
|
34
|
+
adm:has-[>[data-align=block-end]]:h-auto
|
|
35
|
+
adm:has-[>[data-align=block-end]]:flex-col
|
|
36
|
+
adm:has-[>[data-align=block-end]]:[&>input]:pt-3
|
|
37
|
+
`,
|
|
22
38
|
// Focus state.
|
|
23
|
-
|
|
39
|
+
`
|
|
40
|
+
adm:has-[[data-slot=input-group-control]:focus-visible]:border-ring
|
|
41
|
+
adm:has-[[data-slot=input-group-control]:focus-visible]:ring-[3px]
|
|
42
|
+
adm:has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50
|
|
43
|
+
`,
|
|
24
44
|
// Error state.
|
|
25
|
-
|
|
45
|
+
`
|
|
46
|
+
adm:has-[[data-slot][aria-invalid=true]]:border-destructive
|
|
47
|
+
adm:has-[[data-slot][aria-invalid=true]]:ring-destructive/20
|
|
48
|
+
adm:dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40
|
|
49
|
+
`,
|
|
26
50
|
t
|
|
27
51
|
),
|
|
28
52
|
...a
|
|
@@ -30,14 +54,37 @@ function k({ className: t, ...a }) {
|
|
|
30
54
|
);
|
|
31
55
|
}
|
|
32
56
|
const p = m(
|
|
33
|
-
|
|
57
|
+
`
|
|
58
|
+
adm:flex adm:h-auto adm:cursor-text adm:items-center adm:justify-center
|
|
59
|
+
adm:gap-2 adm:py-1.5 adm:text-sm adm:font-medium adm:text-muted-foreground
|
|
60
|
+
adm:select-none
|
|
61
|
+
adm:group-data-[disabled=true]/input-group:opacity-50
|
|
62
|
+
adm:[&>kbd]:rounded-[calc(var(--radius)-5px)]
|
|
63
|
+
adm:[&>svg:not([class*=size-])]:size-4
|
|
64
|
+
`,
|
|
34
65
|
{
|
|
35
66
|
variants: {
|
|
36
67
|
align: {
|
|
37
|
-
"inline-start":
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
68
|
+
"inline-start": `
|
|
69
|
+
adm:order-first adm:pl-3
|
|
70
|
+
adm:has-[>button]:ml-[-0.45rem]
|
|
71
|
+
adm:has-[>kbd]:ml-[-0.35rem]
|
|
72
|
+
`,
|
|
73
|
+
"inline-end": `
|
|
74
|
+
adm:order-last adm:pr-3
|
|
75
|
+
adm:has-[>button]:mr-[-0.45rem]
|
|
76
|
+
adm:has-[>kbd]:mr-[-0.35rem]
|
|
77
|
+
`,
|
|
78
|
+
"block-start": `
|
|
79
|
+
adm:order-first adm:w-full adm:justify-start adm:px-3 adm:pt-3
|
|
80
|
+
adm:group-has-[>input]/input-group:pt-2.5
|
|
81
|
+
adm:[.border-b]:pb-3
|
|
82
|
+
`,
|
|
83
|
+
"block-end": `
|
|
84
|
+
adm:order-last adm:w-full adm:justify-start adm:px-3 adm:pb-3
|
|
85
|
+
adm:group-has-[>input]/input-group:pb-2.5
|
|
86
|
+
adm:[.border-t]:pt-3
|
|
87
|
+
`
|
|
41
88
|
}
|
|
42
89
|
},
|
|
43
90
|
defaultVariants: {
|
|
@@ -65,14 +112,27 @@ function j({
|
|
|
65
112
|
);
|
|
66
113
|
}
|
|
67
114
|
const l = m(
|
|
68
|
-
"adm:
|
|
115
|
+
"adm:flex adm:items-center adm:gap-2 adm:text-sm adm:shadow-none",
|
|
69
116
|
{
|
|
70
117
|
variants: {
|
|
71
118
|
size: {
|
|
72
|
-
xs:
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
119
|
+
xs: `
|
|
120
|
+
adm:h-6 adm:gap-1 adm:rounded-[calc(var(--radius)-5px)] adm:px-2
|
|
121
|
+
adm:has-[>svg]:px-2
|
|
122
|
+
adm:[&>svg:not([class*=size-])]:size-3.5
|
|
123
|
+
`,
|
|
124
|
+
sm: `
|
|
125
|
+
adm:h-8 adm:gap-1.5 adm:rounded-md adm:px-2.5
|
|
126
|
+
adm:has-[>svg]:px-2.5
|
|
127
|
+
`,
|
|
128
|
+
"icon-xs": `
|
|
129
|
+
adm:size-6 adm:rounded-[calc(var(--radius)-5px)] adm:p-0
|
|
130
|
+
adm:has-[>svg]:p-0
|
|
131
|
+
`,
|
|
132
|
+
"icon-sm": `
|
|
133
|
+
adm:size-8 adm:p-0
|
|
134
|
+
adm:has-[>svg]:p-0
|
|
135
|
+
`
|
|
76
136
|
}
|
|
77
137
|
},
|
|
78
138
|
defaultVariants: {
|
|
@@ -103,7 +163,12 @@ function w({ className: t, ...a }) {
|
|
|
103
163
|
"span",
|
|
104
164
|
{
|
|
105
165
|
className: r(
|
|
106
|
-
|
|
166
|
+
`
|
|
167
|
+
adm:flex adm:items-center adm:gap-2 adm:text-sm
|
|
168
|
+
adm:text-muted-foreground
|
|
169
|
+
adm:[&_svg]:pointer-events-none
|
|
170
|
+
adm:[&_svg:not([class*=size-])]:size-4
|
|
171
|
+
`,
|
|
107
172
|
t
|
|
108
173
|
),
|
|
109
174
|
...a
|
|
@@ -119,7 +184,12 @@ function I({
|
|
|
119
184
|
{
|
|
120
185
|
"data-slot": "input-group-control",
|
|
121
186
|
className: r(
|
|
122
|
-
|
|
187
|
+
`
|
|
188
|
+
adm:flex-1 adm:rounded-none adm:border-0 adm:bg-transparent
|
|
189
|
+
adm:shadow-none
|
|
190
|
+
adm:focus-visible:ring-0
|
|
191
|
+
adm:dark:bg-transparent
|
|
192
|
+
`,
|
|
123
193
|
t
|
|
124
194
|
),
|
|
125
195
|
...a
|
|
@@ -135,7 +205,12 @@ function G({
|
|
|
135
205
|
{
|
|
136
206
|
"data-slot": "input-group-control",
|
|
137
207
|
className: r(
|
|
138
|
-
|
|
208
|
+
`
|
|
209
|
+
adm:flex-1 adm:resize-none adm:rounded-none adm:border-0
|
|
210
|
+
adm:bg-transparent adm:py-3 adm:shadow-none
|
|
211
|
+
adm:focus-visible:ring-0
|
|
212
|
+
adm:dark:bg-transparent
|
|
213
|
+
`,
|
|
139
214
|
t
|
|
140
215
|
),
|
|
141
216
|
...a
|
package/dist/input.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./input-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./input-DSmxdfq5.cjs");exports.Input=t.Input;
|
package/dist/input.js
CHANGED
package/dist/kbd.cjs
CHANGED
|
@@ -1 +1,10 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./jsx-runtime-BB_1_6y_.cjs"),a=require("./index-DoxiiusW.cjs");function n({className:t,...e}){return d.jsxRuntimeExports.jsx("kbd",{"data-slot":"kbd",className:a.cn(
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./jsx-runtime-BB_1_6y_.cjs"),a=require("./index-DoxiiusW.cjs");function n({className:t,...e}){return d.jsxRuntimeExports.jsx("kbd",{"data-slot":"kbd",className:a.cn(`
|
|
2
|
+
adm:pointer-events-none adm:inline-flex adm:h-5 adm:w-fit adm:min-w-5
|
|
3
|
+
adm:items-center adm:justify-center adm:gap-1 adm:rounded-sm
|
|
4
|
+
adm:bg-muted adm:px-1 adm:font-sans adm:text-xs adm:font-medium
|
|
5
|
+
adm:text-muted-foreground adm:select-none
|
|
6
|
+
`,"adm:[&_svg:not([class*=size-])]:size-3",`
|
|
7
|
+
adm:[[data-slot=tooltip-content]_&]:bg-background/20
|
|
8
|
+
adm:[[data-slot=tooltip-content]_&]:text-background
|
|
9
|
+
adm:dark:[[data-slot=tooltip-content]_&]:bg-background/10
|
|
10
|
+
`,t),...e})}function o({className:t,...e}){return d.jsxRuntimeExports.jsx("kbd",{"data-slot":"kbd-group",className:a.cn("adm:inline-flex adm:items-center adm:gap-1",t),...e})}exports.Kbd=n;exports.KbdGroup=o;
|
package/dist/kbd.js
CHANGED
|
@@ -6,9 +6,18 @@ function o({ className: t, ...a }) {
|
|
|
6
6
|
{
|
|
7
7
|
"data-slot": "kbd",
|
|
8
8
|
className: e(
|
|
9
|
-
|
|
9
|
+
`
|
|
10
|
+
adm:pointer-events-none adm:inline-flex adm:h-5 adm:w-fit adm:min-w-5
|
|
11
|
+
adm:items-center adm:justify-center adm:gap-1 adm:rounded-sm
|
|
12
|
+
adm:bg-muted adm:px-1 adm:font-sans adm:text-xs adm:font-medium
|
|
13
|
+
adm:text-muted-foreground adm:select-none
|
|
14
|
+
`,
|
|
10
15
|
"adm:[&_svg:not([class*=size-])]:size-3",
|
|
11
|
-
|
|
16
|
+
`
|
|
17
|
+
adm:[[data-slot=tooltip-content]_&]:bg-background/20
|
|
18
|
+
adm:[[data-slot=tooltip-content]_&]:text-background
|
|
19
|
+
adm:dark:[[data-slot=tooltip-content]_&]:bg-background/10
|
|
20
|
+
`,
|
|
12
21
|
t
|
|
13
22
|
),
|
|
14
23
|
...a
|
|
@@ -23,7 +23,13 @@ function c({
|
|
|
23
23
|
{
|
|
24
24
|
"data-slot": "label",
|
|
25
25
|
className: s(
|
|
26
|
-
|
|
26
|
+
`
|
|
27
|
+
adm:flex adm:items-center adm:gap-2 adm:text-sm adm:leading-none
|
|
28
|
+
adm:font-medium adm:select-none
|
|
29
|
+
adm:group-data-[disabled=true]:pointer-events-none
|
|
30
|
+
adm:group-data-[disabled=true]:opacity-50
|
|
31
|
+
adm:peer-disabled:cursor-not-allowed adm:peer-disabled:opacity-50
|
|
32
|
+
`,
|
|
27
33
|
e
|
|
28
34
|
),
|
|
29
35
|
...t
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
"use strict";const n=require("./jsx-runtime-BB_1_6y_.cjs"),s=require("react"),i=require("./index-CocSS1YK.cjs"),d=require("./index-DoxiiusW.cjs");function l(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const u=l(s);var c="Label",o=u.forwardRef((e,a)=>n.jsxRuntimeExports.jsx(i.Primitive.label,{...e,ref:a,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));o.displayName=c;var m=o;function f({className:e,...a}){return n.jsxRuntimeExports.jsx(m,{"data-slot":"label",className:d.cn(
|
|
1
|
+
"use strict";const n=require("./jsx-runtime-BB_1_6y_.cjs"),s=require("react"),i=require("./index-CocSS1YK.cjs"),d=require("./index-DoxiiusW.cjs");function l(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const u=l(s);var c="Label",o=u.forwardRef((e,a)=>n.jsxRuntimeExports.jsx(i.Primitive.label,{...e,ref:a,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));o.displayName=c;var m=o;function f({className:e,...a}){return n.jsxRuntimeExports.jsx(m,{"data-slot":"label",className:d.cn(`
|
|
2
|
+
adm:flex adm:items-center adm:gap-2 adm:text-sm adm:leading-none
|
|
3
|
+
adm:font-medium adm:select-none
|
|
4
|
+
adm:group-data-[disabled=true]:pointer-events-none
|
|
5
|
+
adm:group-data-[disabled=true]:opacity-50
|
|
6
|
+
adm:peer-disabled:cursor-not-allowed adm:peer-disabled:opacity-50
|
|
7
|
+
`,e),...a})}exports.Label=f;
|
package/dist/label.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./label-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./label-CNGQhi5L.cjs");exports.Label=e.Label;
|
package/dist/label.js
CHANGED
package/dist/pagination.cjs
CHANGED
|
@@ -1 +1,13 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./jsx-runtime-BB_1_6y_.cjs")
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./jsx-runtime-BB_1_6y_.cjs"),r=require("./button-D-qFRXiM.cjs"),i=require("./index-DoxiiusW.cjs");require("react");const m=require("./chevron-left-B8QsBNvc.cjs"),l=require("./chevron-right-BpzggHsr.cjs"),u=require("./ellipsis-Ct9VTDOG.cjs");function x({className:a,...n}){return t.jsxRuntimeExports.jsx("nav",{role:"navigation","aria-label":"pagination","data-slot":"pagination",className:i.cn("adm:mx-auto adm:flex adm:w-full adm:justify-center",a),...n})}function c({className:a,...n}){return t.jsxRuntimeExports.jsx("ul",{"data-slot":"pagination-content",className:i.cn("adm:flex adm:flex-row adm:items-center adm:gap-1",a),...n})}function d({...a}){return t.jsxRuntimeExports.jsx("li",{"data-slot":"pagination-item",...a})}function s({className:a,isActive:n,size:e="icon",...o}){return t.jsxRuntimeExports.jsx("a",{"aria-current":n?"page":void 0,"data-slot":"pagination-link","data-active":n,className:i.cn(r.buttonVariants({variant:n?"outline":"ghost",size:e}),a),...o})}function p({className:a,children:n,...e}){return t.jsxRuntimeExports.jsxs(s,{"aria-label":"Go to previous page",size:"default",className:i.cn(`
|
|
2
|
+
adm:gap-1 adm:px-2.5
|
|
3
|
+
adm:sm:pl-2.5
|
|
4
|
+
`,a),...e,children:[t.jsxRuntimeExports.jsx(m.ChevronLeft,{}),t.jsxRuntimeExports.jsx("span",{className:`
|
|
5
|
+
adm:hidden
|
|
6
|
+
adm:sm:block
|
|
7
|
+
`,children:n??"Previous"})]})}function g({className:a,children:n,...e}){return t.jsxRuntimeExports.jsxs(s,{"aria-label":"Go to next page",size:"default",className:i.cn(`
|
|
8
|
+
adm:gap-1 adm:px-2.5
|
|
9
|
+
adm:sm:pr-2.5
|
|
10
|
+
`,a),...e,children:[t.jsxRuntimeExports.jsx("span",{className:`
|
|
11
|
+
adm:hidden
|
|
12
|
+
adm:sm:block
|
|
13
|
+
`,children:n??"Next"}),t.jsxRuntimeExports.jsx(l.ChevronRight,{})]})}function j({className:a,...n}){return t.jsxRuntimeExports.jsxs("span",{"aria-hidden":!0,"data-slot":"pagination-ellipsis",className:i.cn("adm:flex adm:size-9 adm:items-center adm:justify-center",a),...n,children:[t.jsxRuntimeExports.jsx(u.Ellipsis,{className:"adm:size-4"}),t.jsxRuntimeExports.jsx("span",{className:"adm:sr-only",children:"More pages"})]})}exports.Pagination=x;exports.PaginationContent=c;exports.PaginationEllipsis=j;exports.PaginationItem=d;exports.PaginationLink=s;exports.PaginationNext=g;exports.PaginationPrevious=p;
|
package/dist/pagination.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as i } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
-
import "
|
|
2
|
+
import { b as r } from "./button-B7ZP4LZN.js";
|
|
3
3
|
import { c as t } from "./index-CRiPKpXj.js";
|
|
4
|
-
import
|
|
4
|
+
import "react";
|
|
5
5
|
import { C as m } from "./chevron-left-Eal-WYLp.js";
|
|
6
6
|
import { C as l } from "./chevron-right-Cnc2tB4-.js";
|
|
7
7
|
import { E as d } from "./ellipsis-CryjZKZn.js";
|
|
@@ -66,11 +66,23 @@ function v({
|
|
|
66
66
|
{
|
|
67
67
|
"aria-label": "Go to previous page",
|
|
68
68
|
size: "default",
|
|
69
|
-
className: t(
|
|
69
|
+
className: t(`
|
|
70
|
+
adm:gap-1 adm:px-2.5
|
|
71
|
+
adm:sm:pl-2.5
|
|
72
|
+
`, a),
|
|
70
73
|
...s,
|
|
71
74
|
children: [
|
|
72
75
|
/* @__PURE__ */ i.jsx(m, {}),
|
|
73
|
-
/* @__PURE__ */ i.jsx(
|
|
76
|
+
/* @__PURE__ */ i.jsx(
|
|
77
|
+
"span",
|
|
78
|
+
{
|
|
79
|
+
className: `
|
|
80
|
+
adm:hidden
|
|
81
|
+
adm:sm:block
|
|
82
|
+
`,
|
|
83
|
+
children: n ?? "Previous"
|
|
84
|
+
}
|
|
85
|
+
)
|
|
74
86
|
]
|
|
75
87
|
}
|
|
76
88
|
);
|
|
@@ -85,10 +97,22 @@ function b({
|
|
|
85
97
|
{
|
|
86
98
|
"aria-label": "Go to next page",
|
|
87
99
|
size: "default",
|
|
88
|
-
className: t(
|
|
100
|
+
className: t(`
|
|
101
|
+
adm:gap-1 adm:px-2.5
|
|
102
|
+
adm:sm:pr-2.5
|
|
103
|
+
`, a),
|
|
89
104
|
...s,
|
|
90
105
|
children: [
|
|
91
|
-
/* @__PURE__ */ i.jsx(
|
|
106
|
+
/* @__PURE__ */ i.jsx(
|
|
107
|
+
"span",
|
|
108
|
+
{
|
|
109
|
+
className: `
|
|
110
|
+
adm:hidden
|
|
111
|
+
adm:sm:block
|
|
112
|
+
`,
|
|
113
|
+
children: n ?? "Next"
|
|
114
|
+
}
|
|
115
|
+
),
|
|
92
116
|
/* @__PURE__ */ i.jsx(l, {})
|
|
93
117
|
]
|
|
94
118
|
}
|
|
@@ -1 +1,15 @@
|
|
|
1
|
-
"use strict";const c=require("./jsx-runtime-BB_1_6y_.cjs"),k=require("react"),g=require("./index-BWaO7kQK.cjs"),j=require("./index-_XxjJPRD.cjs"),q=require("./index-cwZN7ZY3.cjs"),H=require("./index-BeWgla7c.cjs"),h=require("./index-DMs8RL3E.cjs"),V=require("./index-WIv2ndLu.cjs"),m=require("./index-BcGMAmWE.cjs"),L=require("./index-Dbj9vHNq.cjs"),A=require("./index-Bd0gQB0k.cjs"),_=require("./index-CocSS1YK.cjs"),W=require("./index-DoxiiusW.cjs");function z(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const a=z(k);function G(e){const t=B(e),o=a.forwardRef((n,r)=>{const{children:s,...i}=n,p=a.Children.toArray(s),u=p.find(Z);if(u){const l=u.props.children,v=p.map(f=>f===u?a.Children.count(l)>1?a.Children.only(null):a.isValidElement(l)?l.props.children:null:f);return c.jsxRuntimeExports.jsx(t,{...i,ref:r,children:a.isValidElement(l)?a.cloneElement(l,void 0,v):null})}return c.jsxRuntimeExports.jsx(t,{...i,ref:r,children:s})});return o.displayName=`${e}.Slot`,o}function B(e){const t=a.forwardRef((o,n)=>{const{children:r,...s}=o;if(a.isValidElement(r)){const i=J(r),p=U(s,r.props);return r.type!==a.Fragment&&(p.ref=n?j.composeRefs(n,i):i),a.cloneElement(r,p)}return a.Children.count(r)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var K=Symbol("radix.slottable");function Z(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===K}function U(e,t){const o={...t};for(const n in t){const r=e[n],s=t[n];/^on[A-Z]/.test(n)?r&&s?o[n]=(...p)=>{const u=s(...p);return r(...p),u}:r&&(o[n]=r):n==="style"?o[n]={...r,...s}:n==="className"&&(o[n]=[r,s].filter(Boolean).join(" "))}return{...e,...o}}function J(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var C="Popover",[b]=q.createContextScope(C,[m.createPopperScope]),R=m.createPopperScope(),[Q,d]=b(C),y=e=>{const{__scopePopover:t,children:o,open:n,defaultOpen:r,onOpenChange:s,modal:i=!1}=e,p=R(t),u=a.useRef(null),[l,v]=a.useState(!1),[f,x]=g.useControllableState({prop:n,defaultProp:r??!1,onChange:s,caller:C});return c.jsxRuntimeExports.jsx(m.Root2,{...p,children:c.jsxRuntimeExports.jsx(Q,{scope:t,contentId:V.useId(),triggerRef:u,open:f,onOpenChange:x,onOpenToggle:a.useCallback(()=>x(E=>!E),[x]),hasCustomAnchor:l,onCustomAnchorAdd:a.useCallback(()=>v(!0),[]),onCustomAnchorRemove:a.useCallback(()=>v(!1),[]),modal:i,children:o})})};y.displayName=C;var S="PopoverAnchor",w=a.forwardRef((e,t)=>{const{__scopePopover:o,...n}=e,r=d(S,o),s=R(o),{onCustomAnchorAdd:i,onCustomAnchorRemove:p}=r;return a.useEffect(()=>(i(),()=>p()),[i,p]),c.jsxRuntimeExports.jsx(m.Anchor,{...s,...n,ref:t})});w.displayName=S;var N="PopoverTrigger",F=a.forwardRef((e,t)=>{const{__scopePopover:o,...n}=e,r=d(N,o),s=R(o),i=j.useComposedRefs(t,r.triggerRef),p=c.jsxRuntimeExports.jsx(_.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":$(r.open),...n,ref:i,onClick:g.composeEventHandlers(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?p:c.jsxRuntimeExports.jsx(m.Anchor,{asChild:!0,...s,children:p})});F.displayName=N;var O="PopoverPortal",[X,Y]=b(O,{forceMount:void 0}),D=e=>{const{__scopePopover:t,forceMount:o,children:n,container:r}=e,s=d(O,t);return c.jsxRuntimeExports.jsx(X,{scope:t,forceMount:o,children:c.jsxRuntimeExports.jsx(A.Presence,{present:o||s.open,children:c.jsxRuntimeExports.jsx(L.Portal,{asChild:!0,container:r,children:n})})})};D.displayName=O;var P="PopoverContent",T=a.forwardRef((e,t)=>{const o=Y(P,e.__scopePopover),{forceMount:n=o.forceMount,...r}=e,s=d(P,e.__scopePopover);return c.jsxRuntimeExports.jsx(A.Presence,{present:n||s.open,children:s.modal?c.jsxRuntimeExports.jsx(oe,{...r,ref:t}):c.jsxRuntimeExports.jsx(te,{...r,ref:t})})});T.displayName=P;var ee=G("PopoverContent.RemoveScroll"),oe=a.forwardRef((e,t)=>{const o=d(P,e.__scopePopover),n=a.useRef(null),r=j.useComposedRefs(t,n),s=a.useRef(!1);return a.useEffect(()=>{const i=n.current;if(i)return h.hideOthers(i)},[]),c.jsxRuntimeExports.jsx(h.ReactRemoveScroll,{as:ee,allowPinchZoom:!0,children:c.jsxRuntimeExports.jsx(I,{...e,ref:r,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:g.composeEventHandlers(e.onCloseAutoFocus,i=>{i.preventDefault(),s.current||o.triggerRef.current?.focus()}),onPointerDownOutside:g.composeEventHandlers(e.onPointerDownOutside,i=>{const p=i.detail.originalEvent,u=p.button===0&&p.ctrlKey===!0,l=p.button===2||u;s.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:g.composeEventHandlers(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),te=a.forwardRef((e,t)=>{const o=d(P,e.__scopePopover),n=a.useRef(!1),r=a.useRef(!1);return c.jsxRuntimeExports.jsx(I,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(n.current||o.triggerRef.current?.focus(),s.preventDefault()),n.current=!1,r.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(n.current=!0,s.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const i=s.target;o.triggerRef.current?.contains(i)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&r.current&&s.preventDefault()}})}),I=a.forwardRef((e,t)=>{const{__scopePopover:o,trapFocus:n,onOpenAutoFocus:r,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEscapeKeyDown:p,onPointerDownOutside:u,onFocusOutside:l,onInteractOutside:v,...f}=e,x=d(P,o),E=R(o);return h.useFocusGuards(),c.jsxRuntimeExports.jsx(h.FocusScope,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:r,onUnmountAutoFocus:s,children:c.jsxRuntimeExports.jsx(H.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:v,onEscapeKeyDown:p,onPointerDownOutside:u,onFocusOutside:l,onDismiss:()=>x.onOpenChange(!1),children:c.jsxRuntimeExports.jsx(m.Content,{"data-state":$(x.open),role:"dialog",id:x.contentId,...E,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),M="PopoverClose",re=a.forwardRef((e,t)=>{const{__scopePopover:o,...n}=e,r=d(M,o);return c.jsxRuntimeExports.jsx(_.Primitive.button,{type:"button",...n,ref:t,onClick:g.composeEventHandlers(e.onClick,()=>r.onOpenChange(!1))})});re.displayName=M;var ne="PopoverArrow",se=a.forwardRef((e,t)=>{const{__scopePopover:o,...n}=e,r=R(o);return c.jsxRuntimeExports.jsx(m.Arrow,{...r,...n,ref:t})});se.displayName=ne;function $(e){return e?"open":"closed"}var ae=y,ie=w,ce=F,pe=D,ue=T;function le({...e}){return c.jsxRuntimeExports.jsx(ae,{"data-slot":"popover",...e})}function de({...e}){return c.jsxRuntimeExports.jsx(ce,{"data-slot":"popover-trigger",...e})}function fe({className:e,align:t="center",sideOffset:o=4,...n}){return c.jsxRuntimeExports.jsx(pe,{children:c.jsxRuntimeExports.jsx(ue,{"data-slot":"popover-content",align:t,sideOffset:o,className:W.cn(
|
|
1
|
+
"use strict";const c=require("./jsx-runtime-BB_1_6y_.cjs"),k=require("react"),g=require("./index-BWaO7kQK.cjs"),j=require("./index-_XxjJPRD.cjs"),q=require("./index-cwZN7ZY3.cjs"),H=require("./index-BeWgla7c.cjs"),h=require("./index-DMs8RL3E.cjs"),V=require("./index-WIv2ndLu.cjs"),m=require("./index-BcGMAmWE.cjs"),L=require("./index-Dbj9vHNq.cjs"),A=require("./index-Bd0gQB0k.cjs"),_=require("./index-CocSS1YK.cjs"),W=require("./index-DoxiiusW.cjs");function z(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const a=z(k);function G(e){const t=B(e),o=a.forwardRef((n,r)=>{const{children:s,...i}=n,p=a.Children.toArray(s),u=p.find(Z);if(u){const l=u.props.children,v=p.map(f=>f===u?a.Children.count(l)>1?a.Children.only(null):a.isValidElement(l)?l.props.children:null:f);return c.jsxRuntimeExports.jsx(t,{...i,ref:r,children:a.isValidElement(l)?a.cloneElement(l,void 0,v):null})}return c.jsxRuntimeExports.jsx(t,{...i,ref:r,children:s})});return o.displayName=`${e}.Slot`,o}function B(e){const t=a.forwardRef((o,n)=>{const{children:r,...s}=o;if(a.isValidElement(r)){const i=J(r),p=U(s,r.props);return r.type!==a.Fragment&&(p.ref=n?j.composeRefs(n,i):i),a.cloneElement(r,p)}return a.Children.count(r)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var K=Symbol("radix.slottable");function Z(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===K}function U(e,t){const o={...t};for(const n in t){const r=e[n],s=t[n];/^on[A-Z]/.test(n)?r&&s?o[n]=(...p)=>{const u=s(...p);return r(...p),u}:r&&(o[n]=r):n==="style"?o[n]={...r,...s}:n==="className"&&(o[n]=[r,s].filter(Boolean).join(" "))}return{...e,...o}}function J(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var C="Popover",[b]=q.createContextScope(C,[m.createPopperScope]),R=m.createPopperScope(),[Q,d]=b(C),y=e=>{const{__scopePopover:t,children:o,open:n,defaultOpen:r,onOpenChange:s,modal:i=!1}=e,p=R(t),u=a.useRef(null),[l,v]=a.useState(!1),[f,x]=g.useControllableState({prop:n,defaultProp:r??!1,onChange:s,caller:C});return c.jsxRuntimeExports.jsx(m.Root2,{...p,children:c.jsxRuntimeExports.jsx(Q,{scope:t,contentId:V.useId(),triggerRef:u,open:f,onOpenChange:x,onOpenToggle:a.useCallback(()=>x(E=>!E),[x]),hasCustomAnchor:l,onCustomAnchorAdd:a.useCallback(()=>v(!0),[]),onCustomAnchorRemove:a.useCallback(()=>v(!1),[]),modal:i,children:o})})};y.displayName=C;var S="PopoverAnchor",w=a.forwardRef((e,t)=>{const{__scopePopover:o,...n}=e,r=d(S,o),s=R(o),{onCustomAnchorAdd:i,onCustomAnchorRemove:p}=r;return a.useEffect(()=>(i(),()=>p()),[i,p]),c.jsxRuntimeExports.jsx(m.Anchor,{...s,...n,ref:t})});w.displayName=S;var N="PopoverTrigger",F=a.forwardRef((e,t)=>{const{__scopePopover:o,...n}=e,r=d(N,o),s=R(o),i=j.useComposedRefs(t,r.triggerRef),p=c.jsxRuntimeExports.jsx(_.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":$(r.open),...n,ref:i,onClick:g.composeEventHandlers(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?p:c.jsxRuntimeExports.jsx(m.Anchor,{asChild:!0,...s,children:p})});F.displayName=N;var O="PopoverPortal",[X,Y]=b(O,{forceMount:void 0}),D=e=>{const{__scopePopover:t,forceMount:o,children:n,container:r}=e,s=d(O,t);return c.jsxRuntimeExports.jsx(X,{scope:t,forceMount:o,children:c.jsxRuntimeExports.jsx(A.Presence,{present:o||s.open,children:c.jsxRuntimeExports.jsx(L.Portal,{asChild:!0,container:r,children:n})})})};D.displayName=O;var P="PopoverContent",T=a.forwardRef((e,t)=>{const o=Y(P,e.__scopePopover),{forceMount:n=o.forceMount,...r}=e,s=d(P,e.__scopePopover);return c.jsxRuntimeExports.jsx(A.Presence,{present:n||s.open,children:s.modal?c.jsxRuntimeExports.jsx(oe,{...r,ref:t}):c.jsxRuntimeExports.jsx(te,{...r,ref:t})})});T.displayName=P;var ee=G("PopoverContent.RemoveScroll"),oe=a.forwardRef((e,t)=>{const o=d(P,e.__scopePopover),n=a.useRef(null),r=j.useComposedRefs(t,n),s=a.useRef(!1);return a.useEffect(()=>{const i=n.current;if(i)return h.hideOthers(i)},[]),c.jsxRuntimeExports.jsx(h.ReactRemoveScroll,{as:ee,allowPinchZoom:!0,children:c.jsxRuntimeExports.jsx(I,{...e,ref:r,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:g.composeEventHandlers(e.onCloseAutoFocus,i=>{i.preventDefault(),s.current||o.triggerRef.current?.focus()}),onPointerDownOutside:g.composeEventHandlers(e.onPointerDownOutside,i=>{const p=i.detail.originalEvent,u=p.button===0&&p.ctrlKey===!0,l=p.button===2||u;s.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:g.composeEventHandlers(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),te=a.forwardRef((e,t)=>{const o=d(P,e.__scopePopover),n=a.useRef(!1),r=a.useRef(!1);return c.jsxRuntimeExports.jsx(I,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(n.current||o.triggerRef.current?.focus(),s.preventDefault()),n.current=!1,r.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(n.current=!0,s.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const i=s.target;o.triggerRef.current?.contains(i)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&r.current&&s.preventDefault()}})}),I=a.forwardRef((e,t)=>{const{__scopePopover:o,trapFocus:n,onOpenAutoFocus:r,onCloseAutoFocus:s,disableOutsidePointerEvents:i,onEscapeKeyDown:p,onPointerDownOutside:u,onFocusOutside:l,onInteractOutside:v,...f}=e,x=d(P,o),E=R(o);return h.useFocusGuards(),c.jsxRuntimeExports.jsx(h.FocusScope,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:r,onUnmountAutoFocus:s,children:c.jsxRuntimeExports.jsx(H.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:v,onEscapeKeyDown:p,onPointerDownOutside:u,onFocusOutside:l,onDismiss:()=>x.onOpenChange(!1),children:c.jsxRuntimeExports.jsx(m.Content,{"data-state":$(x.open),role:"dialog",id:x.contentId,...E,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),M="PopoverClose",re=a.forwardRef((e,t)=>{const{__scopePopover:o,...n}=e,r=d(M,o);return c.jsxRuntimeExports.jsx(_.Primitive.button,{type:"button",...n,ref:t,onClick:g.composeEventHandlers(e.onClick,()=>r.onOpenChange(!1))})});re.displayName=M;var ne="PopoverArrow",se=a.forwardRef((e,t)=>{const{__scopePopover:o,...n}=e,r=R(o);return c.jsxRuntimeExports.jsx(m.Arrow,{...r,...n,ref:t})});se.displayName=ne;function $(e){return e?"open":"closed"}var ae=y,ie=w,ce=F,pe=D,ue=T;function le({...e}){return c.jsxRuntimeExports.jsx(ae,{"data-slot":"popover",...e})}function de({...e}){return c.jsxRuntimeExports.jsx(ce,{"data-slot":"popover-trigger",...e})}function fe({className:e,align:t="center",sideOffset:o=4,...n}){return c.jsxRuntimeExports.jsx(pe,{children:c.jsxRuntimeExports.jsx(ue,{"data-slot":"popover-content",align:t,sideOffset:o,className:W.cn(`
|
|
2
|
+
adm:z-50 adm:w-72
|
|
3
|
+
adm:origin-(--radix-popover-content-transform-origin) adm:rounded-md
|
|
4
|
+
adm:border adm:bg-popover adm:p-4 adm:text-popover-foreground
|
|
5
|
+
adm:shadow-xs adm:outline-hidden
|
|
6
|
+
adm:data-[side=bottom]:slide-in-from-top-2
|
|
7
|
+
adm:data-[side=left]:slide-in-from-right-2
|
|
8
|
+
adm:data-[side=right]:slide-in-from-left-2
|
|
9
|
+
adm:data-[side=top]:slide-in-from-bottom-2
|
|
10
|
+
adm:data-[state=closed]:animate-out
|
|
11
|
+
adm:data-[state=closed]:fade-out-0
|
|
12
|
+
adm:data-[state=closed]:zoom-out-95
|
|
13
|
+
adm:data-[state=open]:animate-in adm:data-[state=open]:fade-in-0
|
|
14
|
+
adm:data-[state=open]:zoom-in-95
|
|
15
|
+
`,e),...n})})}function xe({...e}){return c.jsxRuntimeExports.jsx(ie,{"data-slot":"popover-anchor",...e})}exports.Popover=le;exports.PopoverAnchor=xe;exports.PopoverContent=fe;exports.PopoverTrigger=de;
|
|
@@ -286,7 +286,21 @@ function Fe({
|
|
|
286
286
|
align: r,
|
|
287
287
|
sideOffset: t,
|
|
288
288
|
className: Q(
|
|
289
|
-
|
|
289
|
+
`
|
|
290
|
+
adm:z-50 adm:w-72
|
|
291
|
+
adm:origin-(--radix-popover-content-transform-origin) adm:rounded-md
|
|
292
|
+
adm:border adm:bg-popover adm:p-4 adm:text-popover-foreground
|
|
293
|
+
adm:shadow-xs adm:outline-hidden
|
|
294
|
+
adm:data-[side=bottom]:slide-in-from-top-2
|
|
295
|
+
adm:data-[side=left]:slide-in-from-right-2
|
|
296
|
+
adm:data-[side=right]:slide-in-from-left-2
|
|
297
|
+
adm:data-[side=top]:slide-in-from-bottom-2
|
|
298
|
+
adm:data-[state=closed]:animate-out
|
|
299
|
+
adm:data-[state=closed]:fade-out-0
|
|
300
|
+
adm:data-[state=closed]:zoom-out-95
|
|
301
|
+
adm:data-[state=open]:animate-in adm:data-[state=open]:fade-in-0
|
|
302
|
+
adm:data-[state=open]:zoom-in-95
|
|
303
|
+
`,
|
|
290
304
|
e
|
|
291
305
|
),
|
|
292
306
|
...n
|
package/dist/popover.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./popover-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./popover-CYbik-H4.cjs");exports.Popover=o.Popover;exports.PopoverAnchor=o.PopoverAnchor;exports.PopoverContent=o.PopoverContent;exports.PopoverTrigger=o.PopoverTrigger;
|
package/dist/popover.js
CHANGED