@adamosuiteservices/ui 1.7.12 → 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 +302 -253
- 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
package/dist/breadcrumb.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
-
import "react";
|
|
3
2
|
import { S as d } from "./index-BvLQnI56.js";
|
|
4
3
|
import { c as t } from "./index-CRiPKpXj.js";
|
|
4
|
+
import "react";
|
|
5
5
|
import { C as n } from "./chevron-right-Cnc2tB4-.js";
|
|
6
6
|
import { E as o } from "./ellipsis-CryjZKZn.js";
|
|
7
7
|
function f({ ...a }) {
|
|
@@ -13,7 +13,11 @@ function x({ className: a, ...r }) {
|
|
|
13
13
|
{
|
|
14
14
|
"data-slot": "breadcrumb-list",
|
|
15
15
|
className: t(
|
|
16
|
-
|
|
16
|
+
`
|
|
17
|
+
adm:flex adm:flex-wrap adm:items-center adm:gap-1.5 adm:text-sm
|
|
18
|
+
adm:break-words adm:text-muted-foreground
|
|
19
|
+
adm:sm:gap-2.5
|
|
20
|
+
`,
|
|
17
21
|
a
|
|
18
22
|
),
|
|
19
23
|
...r
|
|
@@ -40,7 +44,10 @@ function g({
|
|
|
40
44
|
m,
|
|
41
45
|
{
|
|
42
46
|
"data-slot": "breadcrumb-link",
|
|
43
|
-
className: t(
|
|
47
|
+
className: t(`
|
|
48
|
+
adm:transition-colors
|
|
49
|
+
adm:hover:text-foreground
|
|
50
|
+
`, r),
|
|
44
51
|
...s
|
|
45
52
|
}
|
|
46
53
|
);
|
|
@@ -53,7 +60,7 @@ function h({ className: a, ...r }) {
|
|
|
53
60
|
role: "link",
|
|
54
61
|
"aria-disabled": "true",
|
|
55
62
|
"aria-current": "page",
|
|
56
|
-
className: t("adm:
|
|
63
|
+
className: t("adm:font-normal adm:text-foreground", a),
|
|
57
64
|
...r
|
|
58
65
|
}
|
|
59
66
|
);
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { j as m } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
+
import { S as t } from "./index-BvLQnI56.js";
|
|
3
|
+
import { c as n } from "./index-CRiPKpXj.js";
|
|
4
|
+
import { c as o } from "./index-BqtVL8d-.js";
|
|
5
|
+
import "react";
|
|
6
|
+
const c = o(
|
|
7
|
+
`
|
|
8
|
+
adm:inline-flex adm:shrink-0 adm:items-center adm:justify-center adm:gap-2
|
|
9
|
+
adm:rounded-md adm:text-sm adm:font-semibold adm:whitespace-nowrap
|
|
10
|
+
adm:transition-all adm:outline-none
|
|
11
|
+
adm:focus-visible:border-ring adm:focus-visible:ring-[3px]
|
|
12
|
+
adm:focus-visible:ring-ring/50
|
|
13
|
+
adm:disabled:pointer-events-none adm:disabled:opacity-50
|
|
14
|
+
adm:aria-invalid:border-destructive adm:aria-invalid:ring-destructive/20
|
|
15
|
+
adm:dark:aria-invalid:ring-destructive/40
|
|
16
|
+
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
17
|
+
adm:[&_svg:not([class*=size-])]:size-4
|
|
18
|
+
`,
|
|
19
|
+
{
|
|
20
|
+
variants: {
|
|
21
|
+
variant: {
|
|
22
|
+
default: `
|
|
23
|
+
adm:bg-primary adm:text-primary-foreground
|
|
24
|
+
adm:hover:bg-primary-700
|
|
25
|
+
`,
|
|
26
|
+
success: `
|
|
27
|
+
adm:bg-success adm:text-white
|
|
28
|
+
adm:hover:bg-success-700
|
|
29
|
+
adm:focus-visible:ring-success/20
|
|
30
|
+
adm:dark:bg-success/60 adm:dark:focus-visible:ring-success/40
|
|
31
|
+
`,
|
|
32
|
+
"success-medium": `
|
|
33
|
+
adm:bg-success-50 adm:text-success
|
|
34
|
+
adm:hover:bg-success/20
|
|
35
|
+
adm:focus-visible:ring-success/20
|
|
36
|
+
adm:dark:bg-success-50/60 adm:dark:focus-visible:ring-success/40
|
|
37
|
+
`,
|
|
38
|
+
warning: `
|
|
39
|
+
adm:bg-warning adm:text-white
|
|
40
|
+
adm:hover:bg-warning-700
|
|
41
|
+
adm:focus-visible:ring-warning/20
|
|
42
|
+
adm:dark:bg-warning/60 adm:dark:focus-visible:ring-warning/40
|
|
43
|
+
`,
|
|
44
|
+
"warning-medium": `
|
|
45
|
+
adm:bg-warning-50 adm:text-warning
|
|
46
|
+
adm:hover:bg-warning/20
|
|
47
|
+
adm:focus-visible:ring-warning/20
|
|
48
|
+
adm:dark:bg-warning-50/60 adm:dark:focus-visible:ring-warning/40
|
|
49
|
+
`,
|
|
50
|
+
destructive: `
|
|
51
|
+
adm:bg-destructive adm:text-white
|
|
52
|
+
adm:hover:bg-destructive-700
|
|
53
|
+
adm:focus-visible:ring-destructive/20
|
|
54
|
+
adm:dark:bg-destructive/60
|
|
55
|
+
adm:dark:focus-visible:ring-destructive/40
|
|
56
|
+
`,
|
|
57
|
+
"destructive-medium": `
|
|
58
|
+
adm:bg-destructive-50 adm:text-destructive
|
|
59
|
+
adm:hover:bg-destructive/20
|
|
60
|
+
adm:focus-visible:ring-destructive/20
|
|
61
|
+
adm:dark:bg-destructive-50/60
|
|
62
|
+
adm:dark:focus-visible:ring-destructive/40
|
|
63
|
+
`,
|
|
64
|
+
outline: `
|
|
65
|
+
adm:border adm:bg-background adm:shadow-xs
|
|
66
|
+
adm:hover:bg-accent adm:hover:text-accent-foreground
|
|
67
|
+
adm:dark:border-input adm:dark:bg-input/30
|
|
68
|
+
adm:dark:hover:bg-input/50
|
|
69
|
+
`,
|
|
70
|
+
secondary: `
|
|
71
|
+
adm:bg-secondary adm:text-secondary-foreground
|
|
72
|
+
adm:hover:bg-primary-200
|
|
73
|
+
`,
|
|
74
|
+
ghost: `
|
|
75
|
+
adm:hover:bg-accent adm:hover:text-accent-foreground
|
|
76
|
+
adm:dark:hover:bg-accent/50
|
|
77
|
+
`,
|
|
78
|
+
link: `
|
|
79
|
+
adm:text-primary adm:underline-offset-4
|
|
80
|
+
adm:hover:underline
|
|
81
|
+
`
|
|
82
|
+
},
|
|
83
|
+
size: {
|
|
84
|
+
default: `
|
|
85
|
+
adm:h-9 adm:px-4 adm:py-2
|
|
86
|
+
adm:has-[>svg]:px-3
|
|
87
|
+
`,
|
|
88
|
+
sm: `
|
|
89
|
+
adm:h-8 adm:gap-1.5 adm:rounded-md adm:px-3
|
|
90
|
+
adm:has-[>svg]:px-2.5
|
|
91
|
+
`,
|
|
92
|
+
lg: `
|
|
93
|
+
adm:h-10 adm:rounded-md adm:px-6
|
|
94
|
+
adm:has-[>svg]:px-4
|
|
95
|
+
`,
|
|
96
|
+
icon: "adm:size-9",
|
|
97
|
+
"icon-sm": "adm:size-8",
|
|
98
|
+
"icon-lg": "adm:size-10"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
defaultVariants: {
|
|
102
|
+
variant: "default",
|
|
103
|
+
size: "default"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
);
|
|
107
|
+
function f({
|
|
108
|
+
className: a,
|
|
109
|
+
variant: d,
|
|
110
|
+
size: e,
|
|
111
|
+
asChild: r = !1,
|
|
112
|
+
...i
|
|
113
|
+
}) {
|
|
114
|
+
const s = r ? t : "button";
|
|
115
|
+
return /* @__PURE__ */ m.jsx(
|
|
116
|
+
s,
|
|
117
|
+
{
|
|
118
|
+
"data-slot": "button",
|
|
119
|
+
className: n(c({ variant: d, size: e, className: a })),
|
|
120
|
+
...i
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
export {
|
|
125
|
+
f as B,
|
|
126
|
+
c as b
|
|
127
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";const n=require("./jsx-runtime-BB_1_6y_.cjs"),m=require("./index-CjyiloO7.cjs"),c=require("./index-DoxiiusW.cjs"),o=require("./index-BTzZJcis.cjs");require("react");const a=o.cva(`
|
|
2
|
+
adm:inline-flex adm:shrink-0 adm:items-center adm:justify-center adm:gap-2
|
|
3
|
+
adm:rounded-md adm:text-sm adm:font-semibold adm:whitespace-nowrap
|
|
4
|
+
adm:transition-all adm:outline-none
|
|
5
|
+
adm:focus-visible:border-ring adm:focus-visible:ring-[3px]
|
|
6
|
+
adm:focus-visible:ring-ring/50
|
|
7
|
+
adm:disabled:pointer-events-none adm:disabled:opacity-50
|
|
8
|
+
adm:aria-invalid:border-destructive adm:aria-invalid:ring-destructive/20
|
|
9
|
+
adm:dark:aria-invalid:ring-destructive/40
|
|
10
|
+
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
11
|
+
adm:[&_svg:not([class*=size-])]:size-4
|
|
12
|
+
`,{variants:{variant:{default:`
|
|
13
|
+
adm:bg-primary adm:text-primary-foreground
|
|
14
|
+
adm:hover:bg-primary-700
|
|
15
|
+
`,success:`
|
|
16
|
+
adm:bg-success adm:text-white
|
|
17
|
+
adm:hover:bg-success-700
|
|
18
|
+
adm:focus-visible:ring-success/20
|
|
19
|
+
adm:dark:bg-success/60 adm:dark:focus-visible:ring-success/40
|
|
20
|
+
`,"success-medium":`
|
|
21
|
+
adm:bg-success-50 adm:text-success
|
|
22
|
+
adm:hover:bg-success/20
|
|
23
|
+
adm:focus-visible:ring-success/20
|
|
24
|
+
adm:dark:bg-success-50/60 adm:dark:focus-visible:ring-success/40
|
|
25
|
+
`,warning:`
|
|
26
|
+
adm:bg-warning adm:text-white
|
|
27
|
+
adm:hover:bg-warning-700
|
|
28
|
+
adm:focus-visible:ring-warning/20
|
|
29
|
+
adm:dark:bg-warning/60 adm:dark:focus-visible:ring-warning/40
|
|
30
|
+
`,"warning-medium":`
|
|
31
|
+
adm:bg-warning-50 adm:text-warning
|
|
32
|
+
adm:hover:bg-warning/20
|
|
33
|
+
adm:focus-visible:ring-warning/20
|
|
34
|
+
adm:dark:bg-warning-50/60 adm:dark:focus-visible:ring-warning/40
|
|
35
|
+
`,destructive:`
|
|
36
|
+
adm:bg-destructive adm:text-white
|
|
37
|
+
adm:hover:bg-destructive-700
|
|
38
|
+
adm:focus-visible:ring-destructive/20
|
|
39
|
+
adm:dark:bg-destructive/60
|
|
40
|
+
adm:dark:focus-visible:ring-destructive/40
|
|
41
|
+
`,"destructive-medium":`
|
|
42
|
+
adm:bg-destructive-50 adm:text-destructive
|
|
43
|
+
adm:hover:bg-destructive/20
|
|
44
|
+
adm:focus-visible:ring-destructive/20
|
|
45
|
+
adm:dark:bg-destructive-50/60
|
|
46
|
+
adm:dark:focus-visible:ring-destructive/40
|
|
47
|
+
`,outline:`
|
|
48
|
+
adm:border adm:bg-background adm:shadow-xs
|
|
49
|
+
adm:hover:bg-accent adm:hover:text-accent-foreground
|
|
50
|
+
adm:dark:border-input adm:dark:bg-input/30
|
|
51
|
+
adm:dark:hover:bg-input/50
|
|
52
|
+
`,secondary:`
|
|
53
|
+
adm:bg-secondary adm:text-secondary-foreground
|
|
54
|
+
adm:hover:bg-primary-200
|
|
55
|
+
`,ghost:`
|
|
56
|
+
adm:hover:bg-accent adm:hover:text-accent-foreground
|
|
57
|
+
adm:dark:hover:bg-accent/50
|
|
58
|
+
`,link:`
|
|
59
|
+
adm:text-primary adm:underline-offset-4
|
|
60
|
+
adm:hover:underline
|
|
61
|
+
`},size:{default:`
|
|
62
|
+
adm:h-9 adm:px-4 adm:py-2
|
|
63
|
+
adm:has-[>svg]:px-3
|
|
64
|
+
`,sm:`
|
|
65
|
+
adm:h-8 adm:gap-1.5 adm:rounded-md adm:px-3
|
|
66
|
+
adm:has-[>svg]:px-2.5
|
|
67
|
+
`,lg:`
|
|
68
|
+
adm:h-10 adm:rounded-md adm:px-6
|
|
69
|
+
adm:has-[>svg]:px-4
|
|
70
|
+
`,icon:"adm:size-9","icon-sm":"adm:size-8","icon-lg":"adm:size-10"}},defaultVariants:{variant:"default",size:"default"}});function u({className:d,variant:e,size:i,asChild:r=!1,...s}){const t=r?m.Slot:"button";return n.jsxRuntimeExports.jsx(t,{"data-slot":"button",className:c.cn(a({variant:e,size:i,className:d})),...s})}exports.Button=u;exports.buttonVariants=a;
|
package/dist/button-group.cjs
CHANGED
|
@@ -1 +1,25 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./jsx-runtime-BB_1_6y_.cjs"),s=require("./index-CjyiloO7.cjs"),i=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./jsx-runtime-BB_1_6y_.cjs"),s=require("./index-CjyiloO7.cjs"),i=require("./separator-Brpax0EI.cjs"),r=require("./index-DoxiiusW.cjs"),u=require("./index-BTzZJcis.cjs"),n=u.cva(`
|
|
2
|
+
adm:flex adm:w-fit adm:items-stretch
|
|
3
|
+
adm:has-[>[data-slot=button-group]]:gap-2
|
|
4
|
+
adm:[&>*]:focus-visible:relative adm:[&>*]:focus-visible:z-10
|
|
5
|
+
adm:has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md
|
|
6
|
+
adm:[&>[data-slot=select-trigger]:not([class*=w-])]:w-fit
|
|
7
|
+
adm:[&>input]:flex-1
|
|
8
|
+
`,{variants:{orientation:{horizontal:`
|
|
9
|
+
adm:[&>*:not(:first-child)]:rounded-l-none
|
|
10
|
+
adm:[&>*:not(:first-child)]:border-l-0
|
|
11
|
+
adm:[&>*:not(:last-child)]:rounded-r-none
|
|
12
|
+
`,vertical:`
|
|
13
|
+
adm:flex-col
|
|
14
|
+
adm:[&>*:not(:first-child)]:rounded-t-none
|
|
15
|
+
adm:[&>*:not(:first-child)]:border-t-0
|
|
16
|
+
adm:[&>*:not(:last-child)]:rounded-b-none
|
|
17
|
+
`}},defaultVariants:{orientation:"horizontal"}});function m({className:a,orientation:t,...e}){return o.jsxRuntimeExports.jsx("div",{role:"group","data-slot":"button-group","data-orientation":t,className:r.cn(n({orientation:t}),a),...e})}function l({className:a,asChild:t=!1,...e}){const d=t?s.Slot:"div";return o.jsxRuntimeExports.jsx(d,{className:r.cn(`
|
|
18
|
+
adm:flex adm:items-center adm:gap-2 adm:rounded-md adm:border
|
|
19
|
+
adm:bg-muted adm:px-4 adm:text-sm adm:font-medium adm:shadow-xs
|
|
20
|
+
adm:[&_svg]:pointer-events-none
|
|
21
|
+
adm:[&_svg:not([class*=size-])]:size-4
|
|
22
|
+
`,a),...e})}function c({className:a,orientation:t="vertical",...e}){return o.jsxRuntimeExports.jsx(i.Separator,{"data-slot":"button-group-separator",orientation:t,className:r.cn(`
|
|
23
|
+
adm:relative adm:!m-0 adm:self-stretch adm:bg-input
|
|
24
|
+
adm:data-[orientation=vertical]:h-auto
|
|
25
|
+
`,a),...e})}exports.ButtonGroup=m;exports.ButtonGroupSeparator=c;exports.ButtonGroupText=l;exports.buttonGroupVariants=n;
|
package/dist/button-group.js
CHANGED
|
@@ -1,15 +1,31 @@
|
|
|
1
1
|
import { j as r } from "./jsx-runtime-BzflLqGi.js";
|
|
2
2
|
import { S as n } from "./index-BvLQnI56.js";
|
|
3
|
-
import {
|
|
3
|
+
import { S as s } from "./separator-DVypR3Qf.js";
|
|
4
4
|
import { c as d } from "./index-CRiPKpXj.js";
|
|
5
|
-
import {
|
|
6
|
-
const i =
|
|
7
|
-
|
|
5
|
+
import { c as m } from "./index-BqtVL8d-.js";
|
|
6
|
+
const i = m(
|
|
7
|
+
`
|
|
8
|
+
adm:flex adm:w-fit adm:items-stretch
|
|
9
|
+
adm:has-[>[data-slot=button-group]]:gap-2
|
|
10
|
+
adm:[&>*]:focus-visible:relative adm:[&>*]:focus-visible:z-10
|
|
11
|
+
adm:has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md
|
|
12
|
+
adm:[&>[data-slot=select-trigger]:not([class*=w-])]:w-fit
|
|
13
|
+
adm:[&>input]:flex-1
|
|
14
|
+
`,
|
|
8
15
|
{
|
|
9
16
|
variants: {
|
|
10
17
|
orientation: {
|
|
11
|
-
horizontal:
|
|
12
|
-
|
|
18
|
+
horizontal: `
|
|
19
|
+
adm:[&>*:not(:first-child)]:rounded-l-none
|
|
20
|
+
adm:[&>*:not(:first-child)]:border-l-0
|
|
21
|
+
adm:[&>*:not(:last-child)]:rounded-r-none
|
|
22
|
+
`,
|
|
23
|
+
vertical: `
|
|
24
|
+
adm:flex-col
|
|
25
|
+
adm:[&>*:not(:first-child)]:rounded-t-none
|
|
26
|
+
adm:[&>*:not(:first-child)]:border-t-0
|
|
27
|
+
adm:[&>*:not(:last-child)]:rounded-b-none
|
|
28
|
+
`
|
|
13
29
|
}
|
|
14
30
|
},
|
|
15
31
|
defaultVariants: {
|
|
@@ -43,7 +59,12 @@ function g({
|
|
|
43
59
|
e,
|
|
44
60
|
{
|
|
45
61
|
className: d(
|
|
46
|
-
|
|
62
|
+
`
|
|
63
|
+
adm:flex adm:items-center adm:gap-2 adm:rounded-md adm:border
|
|
64
|
+
adm:bg-muted adm:px-4 adm:text-sm adm:font-medium adm:shadow-xs
|
|
65
|
+
adm:[&_svg]:pointer-events-none
|
|
66
|
+
adm:[&_svg:not([class*=size-])]:size-4
|
|
67
|
+
`,
|
|
47
68
|
a
|
|
48
69
|
),
|
|
49
70
|
...o
|
|
@@ -56,12 +77,15 @@ function v({
|
|
|
56
77
|
...o
|
|
57
78
|
}) {
|
|
58
79
|
return /* @__PURE__ */ r.jsx(
|
|
59
|
-
|
|
80
|
+
s,
|
|
60
81
|
{
|
|
61
82
|
"data-slot": "button-group-separator",
|
|
62
83
|
orientation: t,
|
|
63
84
|
className: d(
|
|
64
|
-
|
|
85
|
+
`
|
|
86
|
+
adm:relative adm:!m-0 adm:self-stretch adm:bg-input
|
|
87
|
+
adm:data-[orientation=vertical]:h-auto
|
|
88
|
+
`,
|
|
65
89
|
a
|
|
66
90
|
),
|
|
67
91
|
...o
|
package/dist/button.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./button-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./button-D-qFRXiM.cjs");exports.Button=t.Button;exports.buttonVariants=t.buttonVariants;
|
package/dist/button.js
CHANGED