@adamosuiteservices/ui 2.18.6 → 2.19.0
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/README.md +1 -1
- package/dist/accordion-rounded.cjs +8 -8
- package/dist/accordion-rounded.js +12 -12
- package/dist/alert.cjs +32 -23
- package/dist/alert.js +53 -43
- package/dist/amount-input.cjs +8 -0
- package/dist/amount-input.js +191 -0
- package/dist/avatar.cjs +7 -7
- package/dist/avatar.js +18 -18
- package/dist/badge.cjs +24 -28
- package/dist/badge.js +45 -42
- package/dist/breadcrumb.cjs +2 -3
- package/dist/breadcrumb.js +16 -17
- package/dist/button-CXFZVTXF.cjs +87 -0
- package/dist/button-dT8nqgU3.js +156 -0
- package/dist/button-group.cjs +1 -1
- package/dist/button-group.js +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/{calendar-xBaFu2sB.js → calendar-6NvJv-sP.js} +238 -239
- package/dist/{calendar-Dorq3-wv.cjs → calendar-B8S5a0TG.cjs} +20 -22
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.js +1 -1
- package/dist/card.cjs +3 -3
- package/dist/card.js +4 -4
- package/dist/checkbox-BBlvCoB1.cjs +24 -0
- package/dist/{checkbox-DL_jFvgl.js → checkbox-BuzBXARX.js} +54 -52
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/colors.css +1 -1
- package/dist/combobox-B002BLsg.js +692 -0
- package/dist/combobox-B2BkUl7v.cjs +57 -0
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.js +1 -1
- package/dist/components/layout/sidebar/sidebar.d.ts +2 -1
- package/dist/components/layout/toaster/toaster.d.ts +1 -1
- package/dist/components/ui/alert/alert.d.ts +1 -1
- package/dist/components/ui/amount-input/amount-input.d.ts +32 -0
- package/dist/components/ui/amount-input/index.d.ts +1 -0
- package/dist/components/ui/badge/badge.d.ts +3 -2
- package/dist/components/ui/calendar/calendar.d.ts +1 -1
- package/dist/components/ui/combobox/combobox.d.ts +3 -1
- package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +3 -1
- package/dist/components/ui/selectable-card/index.d.ts +1 -0
- package/dist/components/ui/selectable-card/selectable-card.d.ts +22 -0
- package/dist/components/ui/timeline/index.d.ts +1 -0
- package/dist/components/ui/timeline/timeline.d.ts +30 -0
- package/dist/components/ui/typography/typography.d.ts +1 -1
- package/dist/context-menu.cjs +18 -19
- package/dist/context-menu.js +36 -37
- package/dist/date-picker-selector.cjs +1 -1
- package/dist/date-picker-selector.js +3 -3
- package/dist/dialog.cjs +7 -9
- package/dist/dialog.js +36 -38
- package/dist/dropdown-menu.cjs +57 -36
- package/dist/dropdown-menu.js +205 -172
- package/dist/field.cjs +12 -7
- package/dist/field.js +51 -45
- package/dist/file-upload-v2.cjs +11 -5
- package/dist/file-upload-v2.js +74 -59
- package/dist/file-upload.cjs +11 -5
- package/dist/file-upload.js +117 -109
- package/dist/index-BBT2EGq8.js +18 -0
- package/dist/index-DCsgSkBj.cjs +1 -0
- package/dist/input-8sEO5zwD.js +44 -0
- package/dist/input-AONeSXcs.cjs +22 -0
- package/dist/input-group-13VFVAxD.cjs +86 -0
- package/dist/input-group-D4S18xiq.js +240 -0
- package/dist/input-group.cjs +1 -84
- package/dist/input-group.js +7 -234
- package/dist/input-otp.cjs +5 -7
- package/dist/input-otp.js +58 -60
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/kbd.cjs +6 -7
- package/dist/kbd.js +14 -15
- package/dist/{label-DqfX9cHc.cjs → label-B7Z1D5-Q.cjs} +5 -4
- package/dist/{label-C6zVnc3d.js → label-_BWRIH7C.js} +14 -13
- package/dist/label.cjs +1 -1
- package/dist/label.js +1 -1
- package/dist/pagination.cjs +5 -5
- package/dist/pagination.js +18 -18
- package/dist/radio-group.cjs +12 -9
- package/dist/radio-group.js +65 -62
- package/dist/select.cjs +18 -16
- package/dist/select.js +17 -15
- package/dist/selectable-card.cjs +29 -0
- package/dist/selectable-card.js +129 -0
- package/dist/separator-DXdc7LcC.cjs +7 -0
- package/dist/{separator-CsaqP20m.js → separator-DZfXXbNt.js} +1 -1
- package/dist/separator.cjs +1 -1
- package/dist/separator.js +1 -1
- package/dist/{sheet-C9vce0ut.js → sheet-DNwg4a6M.js} +8 -5
- package/dist/{sheet-Cnq7TCzu.cjs → sheet-va7o2x0w.cjs} +10 -10
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.js +1 -1
- package/dist/sidebar.cjs +10 -10
- package/dist/sidebar.js +83 -92
- package/dist/slider.cjs +1 -1
- package/dist/slider.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/switch.cjs +2 -4
- package/dist/switch.js +71 -73
- package/dist/table.cjs +14 -14
- package/dist/table.js +12 -12
- package/dist/tabs-underline.cjs +11 -15
- package/dist/tabs-underline.js +20 -24
- package/dist/tabs.cjs +10 -14
- package/dist/tabs.js +20 -24
- package/dist/tailwind-colors.css +1 -1
- package/dist/tailwind-theme.css +1 -1
- package/dist/textarea-BSooGyp-.cjs +18 -0
- package/dist/textarea-D_sj6ivo.js +39 -0
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.js +1 -1
- package/dist/themes.css +1 -1
- package/dist/timeline.cjs +4 -0
- package/dist/timeline.js +189 -0
- package/dist/toaster.cjs +5 -4
- package/dist/toaster.js +33 -32
- package/dist/toggle.cjs +4 -4
- package/dist/toggle.js +17 -17
- package/dist/tooltip.cjs +5 -6
- package/dist/tooltip.js +4 -5
- package/docs/components/layout/sidebar.md +81 -53
- package/docs/components/layout/toaster.md +35 -55
- package/docs/components/ui/accordion-rounded.md +12 -11
- package/docs/components/ui/alert.md +66 -36
- package/docs/components/ui/amount-input.md +229 -0
- package/docs/components/ui/avatar.md +28 -32
- package/docs/components/ui/badge.md +85 -32
- package/docs/components/ui/breadcrumb.md +5 -7
- package/docs/components/ui/button-group.md +16 -16
- package/docs/components/ui/button.md +23 -36
- package/docs/components/ui/calendar.md +54 -27
- package/docs/components/ui/card.md +5 -4
- package/docs/components/ui/checkbox.md +3 -3
- package/docs/components/ui/combobox.md +35 -1
- package/docs/components/ui/command.md +7 -7
- package/docs/components/ui/context-menu.md +14 -15
- package/docs/components/ui/date-picker-selector.md +31 -31
- package/docs/components/ui/dialog.md +47 -49
- package/docs/components/ui/dropdown-menu.md +34 -37
- package/docs/components/ui/field.md +25 -31
- package/docs/components/ui/file-upload-v2.md +11 -0
- package/docs/components/ui/file-upload.md +105 -108
- package/docs/components/ui/hover-card.md +28 -6
- package/docs/components/ui/icon.md +10 -9
- package/docs/components/ui/input-group.md +9 -9
- package/docs/components/ui/input.md +30 -33
- package/docs/components/ui/kbd.md +10 -9
- package/docs/components/ui/label.md +6 -6
- package/docs/components/ui/pagination.md +3 -3
- package/docs/components/ui/popover.md +1 -0
- package/docs/components/ui/progress.md +3 -3
- package/docs/components/ui/radio-group.md +18 -6
- package/docs/components/ui/scroll-area.md +4 -4
- package/docs/components/ui/select.md +14 -12
- package/docs/components/ui/selectable-card.md +204 -0
- package/docs/components/ui/separator.md +4 -4
- package/docs/components/ui/sheet.md +21 -3
- package/docs/components/ui/slider.md +3 -3
- package/docs/components/ui/switch.md +7 -7
- package/docs/components/ui/table.md +7 -4
- package/docs/components/ui/tabs-underline.md +36 -36
- package/docs/components/ui/tabs.md +6 -4
- package/docs/components/ui/textarea.md +6 -4
- package/docs/components/ui/timeline.md +214 -0
- package/docs/components/ui/toggle.md +1 -1
- package/docs/components/ui/tooltip.md +3 -3
- package/llm.txt +7 -4
- package/package.json +13 -1
- package/dist/button-BnUlAtuD.js +0 -132
- package/dist/button-CFJs0esR.cjs +0 -63
- package/dist/checkbox-3RIZX2HF.cjs +0 -22
- package/dist/combobox-MkeJiTXj.js +0 -637
- package/dist/combobox-jJRxvUsB.cjs +0 -40
- package/dist/input-BCiOr4Fy.js +0 -44
- package/dist/input-Bz5k4w94.cjs +0 -22
- package/dist/separator-CCGaTo09.cjs +0 -7
- package/dist/textarea-BRCnIxdB.js +0 -33
- package/dist/textarea-DkFUS_oS.cjs +0 -14
package/dist/avatar.js
CHANGED
|
@@ -7,7 +7,7 @@ import { u as U } from "./index-0ioNhtNM.js";
|
|
|
7
7
|
import { u as A } from "./index-CCKe-Mpx.js";
|
|
8
8
|
import { P as O } from "./index-BMWt1NBG.js";
|
|
9
9
|
import { c as w } from "./index-CRiPKpXj.js";
|
|
10
|
-
var h = { exports: {} },
|
|
10
|
+
var h = { exports: {} }, L = {};
|
|
11
11
|
/**
|
|
12
12
|
* @license React
|
|
13
13
|
* use-sync-external-store-shim.production.js
|
|
@@ -19,7 +19,7 @@ var h = { exports: {} }, y = {};
|
|
|
19
19
|
*/
|
|
20
20
|
var I;
|
|
21
21
|
function q() {
|
|
22
|
-
if (I) return
|
|
22
|
+
if (I) return L;
|
|
23
23
|
I = 1;
|
|
24
24
|
var e = j;
|
|
25
25
|
function t(n, c) {
|
|
@@ -56,7 +56,7 @@ function q() {
|
|
|
56
56
|
return c();
|
|
57
57
|
}
|
|
58
58
|
var E = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? v : l;
|
|
59
|
-
return
|
|
59
|
+
return L.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : E, L;
|
|
60
60
|
}
|
|
61
61
|
var x = {};
|
|
62
62
|
/**
|
|
@@ -68,9 +68,9 @@ var x = {};
|
|
|
68
68
|
* This source code is licensed under the MIT license found in the
|
|
69
69
|
* LICENSE file in the root directory of this source tree.
|
|
70
70
|
*/
|
|
71
|
-
var
|
|
71
|
+
var b;
|
|
72
72
|
function B() {
|
|
73
|
-
return
|
|
73
|
+
return b || (b = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
74
74
|
function e(a, u) {
|
|
75
75
|
return a === u && (a !== 0 || 1 / a === 1 / u) || a !== a && u !== u;
|
|
76
76
|
}
|
|
@@ -88,16 +88,16 @@ function B() {
|
|
|
88
88
|
S = m({
|
|
89
89
|
inst: { value: s, getSnapshot: u }
|
|
90
90
|
});
|
|
91
|
-
var p = S[0].inst,
|
|
91
|
+
var p = S[0].inst, y = S[1];
|
|
92
92
|
return f(
|
|
93
93
|
function() {
|
|
94
|
-
p.value = s, p.getSnapshot = u, i(p) &&
|
|
94
|
+
p.value = s, p.getSnapshot = u, i(p) && y({ inst: p });
|
|
95
95
|
},
|
|
96
96
|
[a, s, u]
|
|
97
97
|
), l(
|
|
98
98
|
function() {
|
|
99
|
-
return i(p) &&
|
|
100
|
-
i(p) &&
|
|
99
|
+
return i(p) && y({ inst: p }), a(function() {
|
|
100
|
+
i(p) && y({ inst: p });
|
|
101
101
|
});
|
|
102
102
|
},
|
|
103
103
|
[a]
|
|
@@ -121,9 +121,9 @@ function B() {
|
|
|
121
121
|
x.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : c, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
122
122
|
})()), x;
|
|
123
123
|
}
|
|
124
|
-
var
|
|
124
|
+
var C;
|
|
125
125
|
function K() {
|
|
126
|
-
return
|
|
126
|
+
return C || (C = 1, process.env.NODE_ENV === "production" ? h.exports = q() : h.exports = B()), h.exports;
|
|
127
127
|
}
|
|
128
128
|
var $ = K();
|
|
129
129
|
function F() {
|
|
@@ -176,15 +176,15 @@ var V = "AvatarFallback", M = _.forwardRef(
|
|
|
176
176
|
}
|
|
177
177
|
);
|
|
178
178
|
M.displayName = V;
|
|
179
|
-
function
|
|
179
|
+
function T(e, t) {
|
|
180
180
|
return e ? t ? (e.src !== t && (e.src = t), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
181
181
|
}
|
|
182
182
|
function Y(e, { referrerPolicy: t, crossOrigin: i }) {
|
|
183
183
|
const d = F(), o = _.useRef(null), r = d ? (o.current || (o.current = new window.Image()), o.current) : null, [m, l] = _.useState(
|
|
184
|
-
() =>
|
|
184
|
+
() => T(r, e)
|
|
185
185
|
);
|
|
186
186
|
return A(() => {
|
|
187
|
-
l(
|
|
187
|
+
l(T(r, e));
|
|
188
188
|
}, [r, e]), A(() => {
|
|
189
189
|
const f = (n) => () => {
|
|
190
190
|
l(n);
|
|
@@ -208,7 +208,7 @@ function ue({
|
|
|
208
208
|
className: w(
|
|
209
209
|
`
|
|
210
210
|
adm:relative adm:flex adm:size-8 adm:shrink-0 adm:overflow-hidden
|
|
211
|
-
adm:rounded-
|
|
211
|
+
adm:rounded-xl
|
|
212
212
|
`,
|
|
213
213
|
e
|
|
214
214
|
),
|
|
@@ -224,7 +224,7 @@ function se({
|
|
|
224
224
|
Q,
|
|
225
225
|
{
|
|
226
226
|
"data-slot": "avatar-image",
|
|
227
|
-
className: w("adm:aspect-square adm:size-full", e),
|
|
227
|
+
className: w("adm:aspect-square adm:size-full adm:object-cover", e),
|
|
228
228
|
...t
|
|
229
229
|
}
|
|
230
230
|
);
|
|
@@ -240,8 +240,8 @@ function ie({
|
|
|
240
240
|
className: w(
|
|
241
241
|
`
|
|
242
242
|
adm:flex adm:size-full adm:items-center adm:justify-center
|
|
243
|
-
adm:rounded-
|
|
244
|
-
adm
|
|
243
|
+
adm:rounded-xl adm:bg-primary-100 adm:font-bold adm:text-primary
|
|
244
|
+
adm:*:data-[slot=icon]:text-lg adm:*:data-[slot=icon]:text-current
|
|
245
245
|
adm:[&>svg]:size-4 adm:[&>svg]:text-current
|
|
246
246
|
`,
|
|
247
247
|
e
|
package/dist/badge.cjs
CHANGED
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./jsx-runtime-BB_1_6y_.cjs"),o=require("./index-CjyiloO7.cjs"),g=require("./index-DoxiiusW.cjs"),u=require("./index-BTzZJcis.cjs");require("react");const a=u.cva(`
|
|
2
2
|
adm:inline-flex adm:w-fit adm:shrink-0 adm:items-center adm:justify-center
|
|
3
3
|
adm:gap-1 adm:overflow-hidden adm:rounded-md adm:border adm:px-2 adm:py-0.5
|
|
4
4
|
adm:text-xs adm:font-medium adm:whitespace-nowrap
|
|
5
5
|
adm:transition-[color,box-shadow]
|
|
6
|
-
adm:focus-visible:border-ring adm:focus-visible:ring-
|
|
7
|
-
adm:focus-visible:ring-
|
|
6
|
+
adm:focus-visible:border-ring adm:focus-visible:ring-4
|
|
7
|
+
adm:focus-visible:ring-primary/10
|
|
8
8
|
adm:aria-invalid:border-destructive adm:aria-invalid:ring-destructive/20
|
|
9
|
-
adm:dark:aria-invalid:ring-destructive/40
|
|
10
9
|
adm:[&>[data-slot=icon]]:text-sm
|
|
11
10
|
adm:[&>svg]:pointer-events-none adm:[&>svg]:size-3
|
|
12
11
|
`,{variants:{variant:{default:`
|
|
13
12
|
adm:border-transparent adm:bg-primary adm:text-primary-foreground
|
|
14
13
|
adm:[a&]:hover:bg-primary/90
|
|
15
14
|
`,"default-medium":`
|
|
16
|
-
adm:border-transparent adm:bg-primary-50 adm:text-
|
|
15
|
+
adm:border-transparent adm:bg-primary-50 adm:text-foreground
|
|
17
16
|
adm:focus-visible:ring-primary/10
|
|
18
|
-
adm:dark:bg-primary-200 adm:dark:text-primary-800
|
|
19
|
-
adm:dark:focus-visible:ring-primary/20
|
|
20
17
|
adm:[&>[data-slot=icon]]:text-primary
|
|
21
18
|
adm:[&>svg]:text-primary
|
|
22
19
|
adm:[a&]:hover:bg-primary-100
|
|
@@ -24,10 +21,8 @@
|
|
|
24
21
|
adm:border-transparent adm:bg-waiting adm:text-waiting-foreground
|
|
25
22
|
adm:[a&]:hover:bg-waiting/90
|
|
26
23
|
`,"waiting-medium":`
|
|
27
|
-
adm:border-transparent adm:bg-waiting-50 adm:text-
|
|
24
|
+
adm:border-transparent adm:bg-waiting-50 adm:text-foreground
|
|
28
25
|
adm:focus-visible:ring-waiting/10
|
|
29
|
-
adm:dark:bg-waiting-200 adm:dark:text-waiting-800
|
|
30
|
-
adm:dark:focus-visible:ring-waiting/20
|
|
31
26
|
adm:[&>[data-slot=icon]]:text-waiting
|
|
32
27
|
adm:[&>svg]:text-waiting
|
|
33
28
|
adm:[a&]:hover:bg-waiting-100
|
|
@@ -36,50 +31,51 @@
|
|
|
36
31
|
adm:text-secondary-foreground
|
|
37
32
|
adm:[a&]:hover:bg-secondary/90
|
|
38
33
|
`,"success-medium":`
|
|
39
|
-
adm:border-transparent adm:bg-success-
|
|
34
|
+
adm:border-transparent adm:bg-success-25 adm:text-foreground
|
|
40
35
|
adm:focus-visible:ring-success/10
|
|
41
|
-
adm:dark:bg-success-200 adm:dark:text-success-800
|
|
42
|
-
adm:dark:focus-visible:ring-success/20
|
|
43
36
|
adm:[&>[data-slot=icon]]:text-success
|
|
44
37
|
adm:[&>svg]:text-success
|
|
45
38
|
adm:[a&]:hover:bg-success-100
|
|
46
39
|
`,success:`
|
|
47
|
-
adm:border-transparent adm:bg-success adm:text-
|
|
40
|
+
adm:border-transparent adm:bg-success adm:text-success-foreground
|
|
48
41
|
adm:focus-visible:ring-success/20
|
|
49
|
-
adm:dark:bg-success/60 adm:dark:focus-visible:ring-success/40
|
|
50
42
|
adm:[a&]:hover:bg-success/90
|
|
51
43
|
`,"warning-medium":`
|
|
52
|
-
adm:border-transparent adm:bg-warning-50 adm:text-
|
|
44
|
+
adm:border-transparent adm:bg-warning-50 adm:text-foreground
|
|
53
45
|
adm:focus-visible:ring-warning/10
|
|
54
|
-
adm:dark:bg-warning-200 adm:dark:text-warning-800
|
|
55
|
-
adm:dark:focus-visible:ring-warning/20
|
|
56
46
|
adm:[&>[data-slot=icon]]:text-warning
|
|
57
47
|
adm:[&>svg]:text-warning
|
|
58
48
|
adm:[a&]:hover:bg-warning-100
|
|
59
49
|
`,warning:`
|
|
60
|
-
adm:border-transparent adm:bg-warning adm:text-
|
|
50
|
+
adm:border-transparent adm:bg-warning adm:text-warning-foreground
|
|
61
51
|
adm:focus-visible:ring-warning/20
|
|
62
|
-
adm:dark:bg-warning/60 adm:dark:focus-visible:ring-warning/40
|
|
63
52
|
adm:[a&]:hover:bg-warning/90
|
|
64
53
|
`,"destructive-medium":`
|
|
65
|
-
adm:border-transparent adm:bg-destructive-50 adm:text-
|
|
54
|
+
adm:border-transparent adm:bg-destructive-50 adm:text-foreground
|
|
66
55
|
adm:focus-visible:ring-destructive/10
|
|
67
|
-
adm:dark:bg-destructive-200 adm:dark:text-destructive-800
|
|
68
|
-
adm:dark:focus-visible:ring-destructive/20
|
|
69
56
|
adm:[&>[data-slot=icon]]:text-destructive
|
|
70
57
|
adm:[&>svg]:text-destructive
|
|
71
58
|
adm:[a&]:hover:bg-destructive-100
|
|
72
59
|
`,destructive:`
|
|
73
|
-
adm:border-transparent adm:bg-destructive
|
|
60
|
+
adm:border-transparent adm:bg-destructive
|
|
61
|
+
adm:text-destructive-foreground
|
|
74
62
|
adm:focus-visible:ring-destructive/20
|
|
75
|
-
adm:dark:bg-destructive/60
|
|
76
|
-
adm:dark:focus-visible:ring-destructive/40
|
|
77
63
|
adm:[a&]:hover:bg-destructive/90
|
|
64
|
+
`,"info-medium":`
|
|
65
|
+
adm:border-transparent adm:bg-muted adm:text-foreground
|
|
66
|
+
adm:[&>[data-slot=icon]]:text-neutrals-500
|
|
67
|
+
adm:[&>svg]:text-neutrals-500
|
|
68
|
+
adm:[a&]:hover:bg-neutrals-100
|
|
69
|
+
`,info:`
|
|
70
|
+
adm:border-transparent adm:bg-neutrals-500 adm:text-neutrals-0
|
|
71
|
+
adm:[a&]:hover:bg-neutrals-600
|
|
78
72
|
`,muted:`
|
|
79
73
|
adm:border-transparent adm:bg-muted adm:text-muted-foreground
|
|
80
74
|
adm:focus-visible:ring-muted/20
|
|
81
|
-
adm:dark:bg-muted/60 adm:dark:focus-visible:ring-muted/40
|
|
82
75
|
adm:[a&]:hover:bg-muted/90
|
|
76
|
+
`,white:`
|
|
77
|
+
adm:border-transparent adm:bg-background adm:text-foreground
|
|
78
|
+
adm:[a&]:hover:bg-subtle
|
|
83
79
|
`,outline:`
|
|
84
80
|
adm:text-foreground
|
|
85
81
|
adm:[a&]:hover:bg-accent adm:[a&]:hover:text-accent-foreground
|
|
@@ -87,4 +83,4 @@
|
|
|
87
83
|
adm:gap-2 adm:rounded-lg adm:px-2 adm:py-1 adm:text-sm
|
|
88
84
|
adm:[&>[data-slot=icon]]:text-xl
|
|
89
85
|
adm:[&>svg]:size-4
|
|
90
|
-
`}},defaultVariants:{variant:"default"}});function c({className:
|
|
86
|
+
`},shape:{pill:"adm:rounded-full"}},defaultVariants:{variant:"default"}});function c({className:e,variant:r,size:d,shape:t,asChild:n=!1,...m}){const i=n?o.Slot:"span";return s.jsxRuntimeExports.jsx(i,{"data-slot":"badge",className:g.cn(a({variant:r,size:d,shape:t}),e),...m})}exports.Badge=c;exports.badgeVariants=a;
|
package/dist/badge.js
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { j as
|
|
3
|
-
import { S as
|
|
4
|
-
import { c as
|
|
5
|
-
import { c as
|
|
2
|
+
import { j as s } from "./jsx-runtime-BzflLqGi.js";
|
|
3
|
+
import { S as i } from "./index-BvLQnI56.js";
|
|
4
|
+
import { c as o } from "./index-CRiPKpXj.js";
|
|
5
|
+
import { c as g } from "./index-BqtVL8d-.js";
|
|
6
6
|
import "react";
|
|
7
|
-
const
|
|
7
|
+
const u = g(
|
|
8
8
|
`
|
|
9
9
|
adm:inline-flex adm:w-fit adm:shrink-0 adm:items-center adm:justify-center
|
|
10
10
|
adm:gap-1 adm:overflow-hidden adm:rounded-md adm:border adm:px-2 adm:py-0.5
|
|
11
11
|
adm:text-xs adm:font-medium adm:whitespace-nowrap
|
|
12
12
|
adm:transition-[color,box-shadow]
|
|
13
|
-
adm:focus-visible:border-ring adm:focus-visible:ring-
|
|
14
|
-
adm:focus-visible:ring-
|
|
13
|
+
adm:focus-visible:border-ring adm:focus-visible:ring-4
|
|
14
|
+
adm:focus-visible:ring-primary/10
|
|
15
15
|
adm:aria-invalid:border-destructive adm:aria-invalid:ring-destructive/20
|
|
16
|
-
adm:dark:aria-invalid:ring-destructive/40
|
|
17
16
|
adm:[&>[data-slot=icon]]:text-sm
|
|
18
17
|
adm:[&>svg]:pointer-events-none adm:[&>svg]:size-3
|
|
19
18
|
`,
|
|
@@ -25,10 +24,8 @@ const g = o(
|
|
|
25
24
|
adm:[a&]:hover:bg-primary/90
|
|
26
25
|
`,
|
|
27
26
|
"default-medium": `
|
|
28
|
-
adm:border-transparent adm:bg-primary-50 adm:text-
|
|
27
|
+
adm:border-transparent adm:bg-primary-50 adm:text-foreground
|
|
29
28
|
adm:focus-visible:ring-primary/10
|
|
30
|
-
adm:dark:bg-primary-200 adm:dark:text-primary-800
|
|
31
|
-
adm:dark:focus-visible:ring-primary/20
|
|
32
29
|
adm:[&>[data-slot=icon]]:text-primary
|
|
33
30
|
adm:[&>svg]:text-primary
|
|
34
31
|
adm:[a&]:hover:bg-primary-100
|
|
@@ -38,10 +35,8 @@ const g = o(
|
|
|
38
35
|
adm:[a&]:hover:bg-waiting/90
|
|
39
36
|
`,
|
|
40
37
|
"waiting-medium": `
|
|
41
|
-
adm:border-transparent adm:bg-waiting-50 adm:text-
|
|
38
|
+
adm:border-transparent adm:bg-waiting-50 adm:text-foreground
|
|
42
39
|
adm:focus-visible:ring-waiting/10
|
|
43
|
-
adm:dark:bg-waiting-200 adm:dark:text-waiting-800
|
|
44
|
-
adm:dark:focus-visible:ring-waiting/20
|
|
45
40
|
adm:[&>[data-slot=icon]]:text-waiting
|
|
46
41
|
adm:[&>svg]:text-waiting
|
|
47
42
|
adm:[a&]:hover:bg-waiting-100
|
|
@@ -52,57 +47,61 @@ const g = o(
|
|
|
52
47
|
adm:[a&]:hover:bg-secondary/90
|
|
53
48
|
`,
|
|
54
49
|
"success-medium": `
|
|
55
|
-
adm:border-transparent adm:bg-success-
|
|
50
|
+
adm:border-transparent adm:bg-success-25 adm:text-foreground
|
|
56
51
|
adm:focus-visible:ring-success/10
|
|
57
|
-
adm:dark:bg-success-200 adm:dark:text-success-800
|
|
58
|
-
adm:dark:focus-visible:ring-success/20
|
|
59
52
|
adm:[&>[data-slot=icon]]:text-success
|
|
60
53
|
adm:[&>svg]:text-success
|
|
61
54
|
adm:[a&]:hover:bg-success-100
|
|
62
55
|
`,
|
|
63
56
|
success: `
|
|
64
|
-
adm:border-transparent adm:bg-success adm:text-
|
|
57
|
+
adm:border-transparent adm:bg-success adm:text-success-foreground
|
|
65
58
|
adm:focus-visible:ring-success/20
|
|
66
|
-
adm:dark:bg-success/60 adm:dark:focus-visible:ring-success/40
|
|
67
59
|
adm:[a&]:hover:bg-success/90
|
|
68
60
|
`,
|
|
69
61
|
"warning-medium": `
|
|
70
|
-
adm:border-transparent adm:bg-warning-50 adm:text-
|
|
62
|
+
adm:border-transparent adm:bg-warning-50 adm:text-foreground
|
|
71
63
|
adm:focus-visible:ring-warning/10
|
|
72
|
-
adm:dark:bg-warning-200 adm:dark:text-warning-800
|
|
73
|
-
adm:dark:focus-visible:ring-warning/20
|
|
74
64
|
adm:[&>[data-slot=icon]]:text-warning
|
|
75
65
|
adm:[&>svg]:text-warning
|
|
76
66
|
adm:[a&]:hover:bg-warning-100
|
|
77
67
|
`,
|
|
78
68
|
warning: `
|
|
79
|
-
adm:border-transparent adm:bg-warning adm:text-
|
|
69
|
+
adm:border-transparent adm:bg-warning adm:text-warning-foreground
|
|
80
70
|
adm:focus-visible:ring-warning/20
|
|
81
|
-
adm:dark:bg-warning/60 adm:dark:focus-visible:ring-warning/40
|
|
82
71
|
adm:[a&]:hover:bg-warning/90
|
|
83
72
|
`,
|
|
84
73
|
"destructive-medium": `
|
|
85
|
-
adm:border-transparent adm:bg-destructive-50 adm:text-
|
|
74
|
+
adm:border-transparent adm:bg-destructive-50 adm:text-foreground
|
|
86
75
|
adm:focus-visible:ring-destructive/10
|
|
87
|
-
adm:dark:bg-destructive-200 adm:dark:text-destructive-800
|
|
88
|
-
adm:dark:focus-visible:ring-destructive/20
|
|
89
76
|
adm:[&>[data-slot=icon]]:text-destructive
|
|
90
77
|
adm:[&>svg]:text-destructive
|
|
91
78
|
adm:[a&]:hover:bg-destructive-100
|
|
92
79
|
`,
|
|
93
80
|
destructive: `
|
|
94
|
-
adm:border-transparent adm:bg-destructive
|
|
81
|
+
adm:border-transparent adm:bg-destructive
|
|
82
|
+
adm:text-destructive-foreground
|
|
95
83
|
adm:focus-visible:ring-destructive/20
|
|
96
|
-
adm:dark:bg-destructive/60
|
|
97
|
-
adm:dark:focus-visible:ring-destructive/40
|
|
98
84
|
adm:[a&]:hover:bg-destructive/90
|
|
99
85
|
`,
|
|
86
|
+
"info-medium": `
|
|
87
|
+
adm:border-transparent adm:bg-muted adm:text-foreground
|
|
88
|
+
adm:[&>[data-slot=icon]]:text-neutrals-500
|
|
89
|
+
adm:[&>svg]:text-neutrals-500
|
|
90
|
+
adm:[a&]:hover:bg-neutrals-100
|
|
91
|
+
`,
|
|
92
|
+
info: `
|
|
93
|
+
adm:border-transparent adm:bg-neutrals-500 adm:text-neutrals-0
|
|
94
|
+
adm:[a&]:hover:bg-neutrals-600
|
|
95
|
+
`,
|
|
100
96
|
muted: `
|
|
101
97
|
adm:border-transparent adm:bg-muted adm:text-muted-foreground
|
|
102
98
|
adm:focus-visible:ring-muted/20
|
|
103
|
-
adm:dark:bg-muted/60 adm:dark:focus-visible:ring-muted/40
|
|
104
99
|
adm:[a&]:hover:bg-muted/90
|
|
105
100
|
`,
|
|
101
|
+
white: `
|
|
102
|
+
adm:border-transparent adm:bg-background adm:text-foreground
|
|
103
|
+
adm:[a&]:hover:bg-subtle
|
|
104
|
+
`,
|
|
106
105
|
outline: `
|
|
107
106
|
adm:text-foreground
|
|
108
107
|
adm:[a&]:hover:bg-accent adm:[a&]:hover:text-accent-foreground
|
|
@@ -114,6 +113,9 @@ const g = o(
|
|
|
114
113
|
adm:[&>[data-slot=icon]]:text-xl
|
|
115
114
|
adm:[&>svg]:size-4
|
|
116
115
|
`
|
|
116
|
+
},
|
|
117
|
+
shape: {
|
|
118
|
+
pill: "adm:rounded-full"
|
|
117
119
|
}
|
|
118
120
|
},
|
|
119
121
|
defaultVariants: {
|
|
@@ -121,24 +123,25 @@ const g = o(
|
|
|
121
123
|
}
|
|
122
124
|
}
|
|
123
125
|
);
|
|
124
|
-
function
|
|
126
|
+
function p({
|
|
125
127
|
className: a,
|
|
126
|
-
variant:
|
|
128
|
+
variant: e,
|
|
127
129
|
size: r,
|
|
128
|
-
|
|
129
|
-
|
|
130
|
+
shape: d,
|
|
131
|
+
asChild: t = !1,
|
|
132
|
+
...m
|
|
130
133
|
}) {
|
|
131
|
-
const
|
|
132
|
-
return /* @__PURE__ */
|
|
133
|
-
|
|
134
|
+
const n = t ? i : "span";
|
|
135
|
+
return /* @__PURE__ */ s.jsx(
|
|
136
|
+
n,
|
|
134
137
|
{
|
|
135
138
|
"data-slot": "badge",
|
|
136
|
-
className:
|
|
137
|
-
...
|
|
139
|
+
className: o(u({ variant: e, size: r, shape: d }), a),
|
|
140
|
+
...m
|
|
138
141
|
}
|
|
139
142
|
);
|
|
140
143
|
}
|
|
141
144
|
export {
|
|
142
|
-
|
|
143
|
-
|
|
145
|
+
p as Badge,
|
|
146
|
+
u as badgeVariants
|
|
144
147
|
};
|
package/dist/breadcrumb.cjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./jsx-runtime-BB_1_6y_.cjs"),m=require("./index-CjyiloO7.cjs"),d=require("./icon-B7joBr0A.cjs"),t=require("./index-DoxiiusW.cjs");require("react");function i({...e}){return a.jsxRuntimeExports.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function o({className:e,...r}){return a.jsxRuntimeExports.jsx("ol",{"data-slot":"breadcrumb-list",className:t.cn(`
|
|
2
|
-
adm:flex adm:flex-wrap adm:items-center adm:gap-
|
|
2
|
+
adm:flex adm:flex-wrap adm:items-center adm:gap-2 adm:text-sm
|
|
3
3
|
adm:break-words adm:text-foreground
|
|
4
|
-
|
|
5
|
-
`,e),...r})}function u({className:e,...r}){return a.jsxRuntimeExports.jsx("li",{"data-slot":"breadcrumb-item",className:t.cn("adm:inline-flex adm:items-center adm:gap-1.5",e),...r})}function c({asChild:e,className:r,...s}){const n=e?m.Slot:"a";return a.jsxRuntimeExports.jsx(n,{"data-slot":"breadcrumb-link",className:t.cn(`
|
|
4
|
+
`,e),...r})}function u({className:e,...r}){return a.jsxRuntimeExports.jsx("li",{"data-slot":"breadcrumb-item",className:t.cn("adm:inline-flex adm:items-center adm:gap-2",e),...r})}function c({asChild:e,className:r,...s}){const n=e?m.Slot:"a";return a.jsxRuntimeExports.jsx(n,{"data-slot":"breadcrumb-link",className:t.cn(`
|
|
6
5
|
adm:transition-colors
|
|
7
6
|
adm:hover:text-foreground adm:hover:underline
|
|
8
7
|
`,r),...s})}function l({className:e,...r}){return a.jsxRuntimeExports.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:t.cn("adm:font-normal adm:text-foreground",e),...r})}function x({children:e,className:r,...s}){return a.jsxRuntimeExports.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:t.cn(`
|
package/dist/breadcrumb.js
CHANGED
|
@@ -7,16 +7,15 @@ import "react";
|
|
|
7
7
|
function b({ ...a }) {
|
|
8
8
|
return /* @__PURE__ */ e.jsx("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...a });
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function x({ className: a, ...r }) {
|
|
11
11
|
return /* @__PURE__ */ e.jsx(
|
|
12
12
|
"ol",
|
|
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-
|
|
17
|
+
adm:flex adm:flex-wrap adm:items-center adm:gap-2 adm:text-sm
|
|
18
18
|
adm:break-words adm:text-foreground
|
|
19
|
-
adm:sm:gap-2.5
|
|
20
19
|
`,
|
|
21
20
|
a
|
|
22
21
|
),
|
|
@@ -24,12 +23,12 @@ function p({ className: a, ...r }) {
|
|
|
24
23
|
}
|
|
25
24
|
);
|
|
26
25
|
}
|
|
27
|
-
function
|
|
26
|
+
function p({ className: a, ...r }) {
|
|
28
27
|
return /* @__PURE__ */ e.jsx(
|
|
29
28
|
"li",
|
|
30
29
|
{
|
|
31
30
|
"data-slot": "breadcrumb-item",
|
|
32
|
-
className: t("adm:inline-flex adm:items-center adm:gap-
|
|
31
|
+
className: t("adm:inline-flex adm:items-center adm:gap-2", a),
|
|
33
32
|
...r
|
|
34
33
|
}
|
|
35
34
|
);
|
|
@@ -37,22 +36,22 @@ function x({ className: a, ...r }) {
|
|
|
37
36
|
function f({
|
|
38
37
|
asChild: a,
|
|
39
38
|
className: r,
|
|
40
|
-
...
|
|
39
|
+
...s
|
|
41
40
|
}) {
|
|
42
|
-
const
|
|
41
|
+
const m = a ? d : "a";
|
|
43
42
|
return /* @__PURE__ */ e.jsx(
|
|
44
|
-
|
|
43
|
+
m,
|
|
45
44
|
{
|
|
46
45
|
"data-slot": "breadcrumb-link",
|
|
47
46
|
className: t(`
|
|
48
47
|
adm:transition-colors
|
|
49
48
|
adm:hover:text-foreground adm:hover:underline
|
|
50
49
|
`, r),
|
|
51
|
-
...
|
|
50
|
+
...s
|
|
52
51
|
}
|
|
53
52
|
);
|
|
54
53
|
}
|
|
55
|
-
function
|
|
54
|
+
function j({ className: a, ...r }) {
|
|
56
55
|
return /* @__PURE__ */ e.jsx(
|
|
57
56
|
"span",
|
|
58
57
|
{
|
|
@@ -65,10 +64,10 @@ function g({ className: a, ...r }) {
|
|
|
65
64
|
}
|
|
66
65
|
);
|
|
67
66
|
}
|
|
68
|
-
function
|
|
67
|
+
function g({
|
|
69
68
|
children: a,
|
|
70
69
|
className: r,
|
|
71
|
-
...
|
|
70
|
+
...s
|
|
72
71
|
}) {
|
|
73
72
|
return /* @__PURE__ */ e.jsx(
|
|
74
73
|
"li",
|
|
@@ -84,7 +83,7 @@ function j({
|
|
|
84
83
|
`,
|
|
85
84
|
r
|
|
86
85
|
),
|
|
87
|
-
...
|
|
86
|
+
...s,
|
|
88
87
|
children: a ?? "/"
|
|
89
88
|
}
|
|
90
89
|
);
|
|
@@ -111,9 +110,9 @@ function h({
|
|
|
111
110
|
export {
|
|
112
111
|
b as Breadcrumb,
|
|
113
112
|
h as BreadcrumbEllipsis,
|
|
114
|
-
|
|
113
|
+
p as BreadcrumbItem,
|
|
115
114
|
f as BreadcrumbLink,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
115
|
+
x as BreadcrumbList,
|
|
116
|
+
j as BreadcrumbPage,
|
|
117
|
+
g as BreadcrumbSeparator
|
|
119
118
|
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use client";"use strict";const a=require("./jsx-runtime-BB_1_6y_.cjs"),l=require("./index-CjyiloO7.cjs"),u=require("./spinner-C7q7NthY.cjs"),g=require("./index-DoxiiusW.cjs"),x=require("./index-BTzZJcis.cjs");require("react");const i=x.cva(`
|
|
2
|
+
adm:inline-flex adm:items-center adm:justify-center adm:gap-2
|
|
3
|
+
adm:rounded-[12px] adm:text-sm adm:font-semibold adm:whitespace-nowrap
|
|
4
|
+
adm:transition-all adm:outline-none
|
|
5
|
+
adm:focus-visible:ring-[3px] adm:focus-visible:ring-ring/50
|
|
6
|
+
adm:disabled:pointer-events-none adm:disabled:opacity-50
|
|
7
|
+
adm:disabled:*:text-inherit
|
|
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-5
|
|
12
|
+
adm:[&>[data-slot=icon]]:shrink-0 adm:[&>[data-slot=icon]]:text-2xl
|
|
13
|
+
`,{variants:{variant:{default:`
|
|
14
|
+
adm:bg-primary adm:text-primary-foreground
|
|
15
|
+
adm:hover:bg-primary-600
|
|
16
|
+
adm:active:bg-primary-700
|
|
17
|
+
adm:disabled:bg-disabled adm:disabled:text-disabled-foreground
|
|
18
|
+
adm:disabled:opacity-100
|
|
19
|
+
`,success:`
|
|
20
|
+
adm:bg-success-500 adm:text-success-foreground
|
|
21
|
+
adm:hover:bg-success-600
|
|
22
|
+
adm:active:bg-success-700
|
|
23
|
+
adm:disabled:bg-disabled adm:disabled:text-disabled-foreground
|
|
24
|
+
adm:disabled:opacity-100
|
|
25
|
+
`,"success-medium":`
|
|
26
|
+
adm:bg-success-50 adm:text-success-foreground-subtle
|
|
27
|
+
adm:hover:bg-success-100
|
|
28
|
+
adm:active:bg-success-200
|
|
29
|
+
adm:disabled:bg-disabled adm:disabled:text-disabled-foreground
|
|
30
|
+
adm:disabled:opacity-100
|
|
31
|
+
`,warning:`
|
|
32
|
+
adm:bg-warning-500 adm:text-warning-foreground
|
|
33
|
+
adm:hover:bg-warning-600
|
|
34
|
+
adm:active:bg-warning-700
|
|
35
|
+
adm:disabled:bg-disabled adm:disabled:text-disabled-foreground
|
|
36
|
+
adm:disabled:opacity-100
|
|
37
|
+
`,"warning-medium":`
|
|
38
|
+
adm:bg-warning-50 adm:text-warning-foreground-subtle
|
|
39
|
+
adm:hover:bg-warning-100
|
|
40
|
+
adm:active:bg-warning-200
|
|
41
|
+
adm:disabled:bg-disabled adm:disabled:text-disabled-foreground
|
|
42
|
+
adm:disabled:opacity-100
|
|
43
|
+
`,destructive:`
|
|
44
|
+
adm:bg-destructive adm:text-destructive-foreground
|
|
45
|
+
adm:hover:bg-destructive-600
|
|
46
|
+
adm:active:bg-destructive-700
|
|
47
|
+
adm:disabled:bg-disabled adm:disabled:text-disabled-foreground
|
|
48
|
+
adm:disabled:opacity-100
|
|
49
|
+
`,"destructive-medium":`
|
|
50
|
+
adm:bg-destructive-50 adm:text-destructive-foreground-subtle
|
|
51
|
+
adm:hover:bg-destructive-100
|
|
52
|
+
adm:active:bg-destructive-200
|
|
53
|
+
adm:disabled:bg-disabled adm:disabled:text-disabled-foreground
|
|
54
|
+
adm:disabled:opacity-100
|
|
55
|
+
`,outline:`
|
|
56
|
+
adm:border adm:border-border adm:bg-background adm:text-foreground
|
|
57
|
+
adm:hover:bg-subtle
|
|
58
|
+
adm:active:bg-muted
|
|
59
|
+
adm:disabled:bg-disabled adm:disabled:text-disabled-foreground
|
|
60
|
+
adm:disabled:opacity-100
|
|
61
|
+
`,secondary:`
|
|
62
|
+
adm:bg-secondary adm:text-secondary-foreground
|
|
63
|
+
adm:hover:bg-primary-200
|
|
64
|
+
adm:active:bg-primary-300
|
|
65
|
+
adm:disabled:bg-disabled adm:disabled:text-disabled-foreground
|
|
66
|
+
adm:disabled:opacity-100
|
|
67
|
+
`,ghost:`
|
|
68
|
+
adm:text-primary
|
|
69
|
+
adm:hover:bg-primary-50
|
|
70
|
+
adm:active:bg-primary-100
|
|
71
|
+
adm:disabled:text-disabled-foreground adm:disabled:opacity-100
|
|
72
|
+
`,"ghost-neutral":`
|
|
73
|
+
adm:text-foreground-secondary
|
|
74
|
+
adm:hover:bg-subtle adm:hover:text-foreground
|
|
75
|
+
adm:active:bg-accent adm:active:text-accent-foreground
|
|
76
|
+
adm:disabled:text-disabled-foreground adm:disabled:opacity-100
|
|
77
|
+
`,link:`
|
|
78
|
+
adm:font-normal adm:text-primary
|
|
79
|
+
adm:hover:text-primary-600
|
|
80
|
+
adm:active:text-primary-700
|
|
81
|
+
adm:disabled:text-disabled-foreground adm:disabled:opacity-100
|
|
82
|
+
`,"link-neutral":`
|
|
83
|
+
adm:font-normal adm:text-foreground-secondary
|
|
84
|
+
adm:hover:text-foreground
|
|
85
|
+
adm:active:text-accent-foreground
|
|
86
|
+
adm:disabled:text-disabled-foreground adm:disabled:opacity-100
|
|
87
|
+
`},size:{default:"adm:h-10 adm:px-3",sm:"adm:h-9 adm:px-3",lg:"adm:h-11 adm:px-6",icon:"adm:size-10","icon-sm":"adm:size-9","icon-lg":"adm:size-11"}},defaultVariants:{variant:"default",size:"default"}});function v({className:r,variant:s,size:m,asChild:e=!1,loading:d=!1,children:t,disabled:o,...n}){const b=e&&!d?l.Slot:"button",c=a.jsxRuntimeExports.jsxs(a.jsxRuntimeExports.Fragment,{children:[d&&a.jsxRuntimeExports.jsx(u.Spinner,{className:"adm:text-base"}),t]});return a.jsxRuntimeExports.jsx(b,{"data-slot":"button",className:g.cn(i({variant:s,size:m,className:r})),disabled:o||d,...n,children:e&&!d?t:c})}exports.Button=v;exports.buttonVariants=i;
|