@adamosuiteservices/ui 2.18.6 → 2.19.1
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/accordion.cjs +1 -1
- package/dist/accordion.js +1 -1
- 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 +3 -4
- package/dist/breadcrumb.js +17 -18
- package/dist/button-CPm4-98H.cjs +87 -0
- package/dist/button-D4ddrxyp.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-Dorq3-wv.cjs → calendar-DXq90PYV.cjs} +20 -22
- package/dist/{calendar-xBaFu2sB.js → calendar-DgfO9zab.js} +239 -240
- 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-CIzBdqN7.cjs +24 -0
- package/dist/{checkbox-DL_jFvgl.js → checkbox-DPlUjwLi.js} +54 -52
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/colors.css +1 -1
- package/dist/combobox-DG9u4g84.js +692 -0
- package/dist/combobox-DylTjGrw.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 +37 -38
- 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 +206 -173
- 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 +75 -60
- package/dist/file-upload.cjs +11 -5
- package/dist/file-upload.js +118 -110
- package/dist/full-screen-loader.cjs +1 -1
- package/dist/full-screen-loader.js +1 -1
- package/dist/{icon-B7joBr0A.cjs → icon-C5Q2b1Am.cjs} +1 -1
- package/dist/{icon-BFQz1tQC.js → icon-t4jt1Z2h.js} +1 -1
- package/dist/icon.cjs +1 -1
- package/dist/icon.js +1 -1
- 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-BLffLxyg.cjs +86 -0
- package/dist/input-group-DmevJAqa.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 +66 -63
- package/dist/select.cjs +18 -16
- package/dist/select.js +18 -16
- 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-Cnq7TCzu.cjs → sheet-Cp6JGhWC.cjs} +10 -10
- package/dist/{sheet-C9vce0ut.js → sheet-hWerE8S1.js} +9 -6
- 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/{spinner-C7q7NthY.cjs → spinner-DUZ2vcus.cjs} +1 -1
- package/dist/{spinner-DQ5JLL3U.js → spinner-_-J3zJ_g.js} +1 -1
- package/dist/spinner.cjs +1 -1
- package/dist/spinner.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/switch.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./jsx-runtime-BB_1_6y_.cjs"),T=require("react"),
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./jsx-runtime-BB_1_6y_.cjs"),T=require("react"),k=require("./index-BWaO7kQK.cjs"),j=require("./index-_XxjJPRD.cjs"),M=require("./index-cwZN7ZY3.cjs"),B=require("./index-DYxWvftI.cjs"),D=require("./index-bSPhqlcX.cjs"),C=require("./index-CocSS1YK.cjs"),R=require("./index-DoxiiusW.cjs");function I(t){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(s,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return s.default=t,Object.freeze(s)}const n=I(T);var x="Switch",[$]=M.createContextScope(x),[F,z]=$(x),y=n.forwardRef((t,s)=>{const{__scopeSwitch:e,name:r,checked:a,defaultChecked:o,required:u,disabled:i,value:c="on",onCheckedChange:d,form:m,...v}=t,[p,f]=n.useState(null),w=j.useComposedRefs(s,h=>f(h)),S=n.useRef(!1),g=p?m||!!p.closest("form"):!0,[b,N]=k.useControllableState({prop:a,defaultProp:o??!1,onChange:d,caller:x});return l.jsxRuntimeExports.jsxs(F,{scope:e,checked:b,disabled:i,children:[l.jsxRuntimeExports.jsx(C.Primitive.button,{type:"button",role:"switch","aria-checked":b,"aria-required":u,"data-state":q(b),"data-disabled":i?"":void 0,disabled:i,value:c,...v,ref:w,onClick:k.composeEventHandlers(t.onClick,h=>{N(O=>!O),g&&(S.current=h.isPropagationStopped(),S.current||h.stopPropagation())})}),g&&l.jsxRuntimeExports.jsx(_,{control:p,bubbles:!S.current,name:r,value:c,checked:b,required:u,disabled:i,form:m,style:{transform:"translateX(-100%)"}})]})});y.displayName=x;var E="SwitchThumb",P=n.forwardRef((t,s)=>{const{__scopeSwitch:e,...r}=t,a=z(E,e);return l.jsxRuntimeExports.jsx(C.Primitive.span,{"data-state":q(a.checked),"data-disabled":a.disabled?"":void 0,...r,ref:s})});P.displayName=E;var H="SwitchBubbleInput",_=n.forwardRef(({__scopeSwitch:t,control:s,checked:e,bubbles:r=!0,...a},o)=>{const u=n.useRef(null),i=j.useComposedRefs(u,o),c=B.usePrevious(e),d=D.useSize(s);return n.useEffect(()=>{const m=u.current;if(!m)return;const v=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(v,"checked").set;if(c!==e&&f){const w=new Event("click",{bubbles:r});f.call(m,e),m.dispatchEvent(w)}},[c,e,r]),l.jsxRuntimeExports.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:e,...a,tabIndex:-1,ref:i,style:{...a.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=H;function q(t){return t?"checked":"unchecked"}var A=y,U=P;function L({className:t,disabled:s,...e}){const[r,a]=n.useState(!1),o=n.useRef(null);n.useEffect(()=>{const i=()=>{if(o.current){const d=o.current.closest("fieldset");a(d?.disabled??!1)}};i();const c=new MutationObserver(i);if(o.current){const d=o.current.closest("fieldset");d&&c.observe(d,{attributes:!0,attributeFilter:["disabled"]})}return()=>c.disconnect()},[]);const u=s||r;return l.jsxRuntimeExports.jsx(A,{ref:o,"data-slot":"switch",disabled:u,className:R.cn(`
|
|
2
2
|
adm:peer adm:inline-flex adm:h-5 adm:w-8 adm:shrink-0 adm:items-center
|
|
3
3
|
adm:rounded-full adm:border adm:border-transparent adm:shadow-xs
|
|
4
4
|
adm:transition-all adm:outline-none
|
|
@@ -10,9 +10,7 @@
|
|
|
10
10
|
adm:dark:data-[state=unchecked]:bg-input/80
|
|
11
11
|
`,t),...e,children:l.jsxRuntimeExports.jsx(U,{"data-slot":"switch-thumb",className:R.cn(`
|
|
12
12
|
adm:pointer-events-none adm:block adm:size-4 adm:rounded-full
|
|
13
|
-
adm:bg-
|
|
13
|
+
adm:bg-neutrals-0 adm:ring-0 adm:transition-transform
|
|
14
14
|
adm:data-[state=checked]:translate-x-[calc(100%-2px)]
|
|
15
15
|
adm:data-[state=unchecked]:translate-x-0
|
|
16
|
-
adm:dark:data-[state=checked]:bg-primary-foreground
|
|
17
|
-
adm:dark:data-[state=unchecked]:bg-foreground
|
|
18
16
|
`)})})}exports.Switch=L;
|
package/dist/switch.js
CHANGED
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { j as
|
|
2
|
+
import { j as u } from "./jsx-runtime-BzflLqGi.js";
|
|
3
3
|
import * as t from "react";
|
|
4
4
|
import { u as I, c as T } from "./index-C0UREtMP.js";
|
|
5
|
-
import { u as
|
|
5
|
+
import { u as g } from "./index-DLcqcWxM.js";
|
|
6
6
|
import { c as M } from "./index-FxyLF8MY.js";
|
|
7
7
|
import { u as D } from "./index-BZPx6jYI.js";
|
|
8
8
|
import { u as F } from "./index-BGQepRFJ.js";
|
|
9
|
-
import { P
|
|
10
|
-
import { c as
|
|
11
|
-
var
|
|
12
|
-
(
|
|
9
|
+
import { P } from "./index-BMWt1NBG.js";
|
|
10
|
+
import { c as C } from "./index-CRiPKpXj.js";
|
|
11
|
+
var v = "Switch", [H] = M(v), [z, A] = H(v), R = t.forwardRef(
|
|
12
|
+
(s, d) => {
|
|
13
13
|
const {
|
|
14
14
|
__scopeSwitch: e,
|
|
15
15
|
name: n,
|
|
16
|
-
checked:
|
|
16
|
+
checked: a,
|
|
17
17
|
defaultChecked: r,
|
|
18
|
-
required:
|
|
18
|
+
required: l,
|
|
19
19
|
disabled: o,
|
|
20
|
-
value:
|
|
21
|
-
onCheckedChange:
|
|
20
|
+
value: i = "on",
|
|
21
|
+
onCheckedChange: c,
|
|
22
22
|
form: m,
|
|
23
|
-
...
|
|
24
|
-
} =
|
|
25
|
-
prop:
|
|
23
|
+
...w
|
|
24
|
+
} = s, [f, p] = t.useState(null), k = g(d, (b) => p(b)), S = t.useRef(!1), x = f ? m || !!f.closest("form") : !0, [h, N] = I({
|
|
25
|
+
prop: a,
|
|
26
26
|
defaultProp: r ?? !1,
|
|
27
|
-
onChange:
|
|
28
|
-
caller:
|
|
27
|
+
onChange: c,
|
|
28
|
+
caller: v
|
|
29
29
|
});
|
|
30
|
-
return /* @__PURE__ */
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
-
|
|
30
|
+
return /* @__PURE__ */ u.jsxs(z, { scope: e, checked: h, disabled: o, children: [
|
|
31
|
+
/* @__PURE__ */ u.jsx(
|
|
32
|
+
P.button,
|
|
33
33
|
{
|
|
34
34
|
type: "button",
|
|
35
35
|
role: "switch",
|
|
36
36
|
"aria-checked": h,
|
|
37
|
-
"aria-required":
|
|
37
|
+
"aria-required": l,
|
|
38
38
|
"data-state": _(h),
|
|
39
39
|
"data-disabled": o ? "" : void 0,
|
|
40
40
|
disabled: o,
|
|
41
|
-
value:
|
|
42
|
-
...
|
|
43
|
-
ref:
|
|
44
|
-
onClick: T(
|
|
45
|
-
N((B) => !B),
|
|
41
|
+
value: i,
|
|
42
|
+
...w,
|
|
43
|
+
ref: k,
|
|
44
|
+
onClick: T(s.onClick, (b) => {
|
|
45
|
+
N((B) => !B), x && (S.current = b.isPropagationStopped(), S.current || b.stopPropagation());
|
|
46
46
|
})
|
|
47
47
|
}
|
|
48
48
|
),
|
|
49
|
-
|
|
49
|
+
x && /* @__PURE__ */ u.jsx(
|
|
50
50
|
j,
|
|
51
51
|
{
|
|
52
52
|
control: f,
|
|
53
53
|
bubbles: !S.current,
|
|
54
54
|
name: n,
|
|
55
|
-
value:
|
|
55
|
+
value: i,
|
|
56
56
|
checked: h,
|
|
57
|
-
required:
|
|
57
|
+
required: l,
|
|
58
58
|
disabled: o,
|
|
59
59
|
form: m,
|
|
60
60
|
style: { transform: "translateX(-100%)" }
|
|
@@ -63,54 +63,54 @@ var k = "Switch", [H] = M(k), [z, A] = H(k), P = t.forwardRef(
|
|
|
63
63
|
] });
|
|
64
64
|
}
|
|
65
65
|
);
|
|
66
|
-
|
|
67
|
-
var
|
|
68
|
-
(
|
|
69
|
-
const { __scopeSwitch: e, ...n } =
|
|
70
|
-
return /* @__PURE__ */
|
|
71
|
-
|
|
66
|
+
R.displayName = v;
|
|
67
|
+
var y = "SwitchThumb", E = t.forwardRef(
|
|
68
|
+
(s, d) => {
|
|
69
|
+
const { __scopeSwitch: e, ...n } = s, a = A(y, e);
|
|
70
|
+
return /* @__PURE__ */ u.jsx(
|
|
71
|
+
P.span,
|
|
72
72
|
{
|
|
73
|
-
"data-state": _(
|
|
74
|
-
"data-disabled":
|
|
73
|
+
"data-state": _(a.checked),
|
|
74
|
+
"data-disabled": a.disabled ? "" : void 0,
|
|
75
75
|
...n,
|
|
76
|
-
ref:
|
|
76
|
+
ref: d
|
|
77
77
|
}
|
|
78
78
|
);
|
|
79
79
|
}
|
|
80
80
|
);
|
|
81
|
-
E.displayName =
|
|
81
|
+
E.displayName = y;
|
|
82
82
|
var O = "SwitchBubbleInput", j = t.forwardRef(
|
|
83
83
|
({
|
|
84
|
-
__scopeSwitch:
|
|
85
|
-
control:
|
|
84
|
+
__scopeSwitch: s,
|
|
85
|
+
control: d,
|
|
86
86
|
checked: e,
|
|
87
87
|
bubbles: n = !0,
|
|
88
|
-
...
|
|
88
|
+
...a
|
|
89
89
|
}, r) => {
|
|
90
|
-
const
|
|
90
|
+
const l = t.useRef(null), o = g(l, r), i = D(e), c = F(d);
|
|
91
91
|
return t.useEffect(() => {
|
|
92
|
-
const m =
|
|
92
|
+
const m = l.current;
|
|
93
93
|
if (!m) return;
|
|
94
|
-
const
|
|
95
|
-
|
|
94
|
+
const w = window.HTMLInputElement.prototype, p = Object.getOwnPropertyDescriptor(
|
|
95
|
+
w,
|
|
96
96
|
"checked"
|
|
97
97
|
).set;
|
|
98
|
-
if (
|
|
99
|
-
const
|
|
100
|
-
p.call(m, e), m.dispatchEvent(
|
|
98
|
+
if (i !== e && p) {
|
|
99
|
+
const k = new Event("click", { bubbles: n });
|
|
100
|
+
p.call(m, e), m.dispatchEvent(k);
|
|
101
101
|
}
|
|
102
|
-
}, [
|
|
102
|
+
}, [i, e, n]), /* @__PURE__ */ u.jsx(
|
|
103
103
|
"input",
|
|
104
104
|
{
|
|
105
105
|
type: "checkbox",
|
|
106
106
|
"aria-hidden": !0,
|
|
107
107
|
defaultChecked: e,
|
|
108
|
-
...
|
|
108
|
+
...a,
|
|
109
109
|
tabIndex: -1,
|
|
110
110
|
ref: o,
|
|
111
111
|
style: {
|
|
112
|
-
...
|
|
113
|
-
...
|
|
112
|
+
...a.style,
|
|
113
|
+
...c,
|
|
114
114
|
position: "absolute",
|
|
115
115
|
pointerEvents: "none",
|
|
116
116
|
opacity: 0,
|
|
@@ -121,39 +121,39 @@ var O = "SwitchBubbleInput", j = t.forwardRef(
|
|
|
121
121
|
}
|
|
122
122
|
);
|
|
123
123
|
j.displayName = O;
|
|
124
|
-
function _(
|
|
125
|
-
return
|
|
124
|
+
function _(s) {
|
|
125
|
+
return s ? "checked" : "unchecked";
|
|
126
126
|
}
|
|
127
|
-
var U =
|
|
127
|
+
var U = R, q = E;
|
|
128
128
|
function V({
|
|
129
|
-
className:
|
|
130
|
-
disabled:
|
|
129
|
+
className: s,
|
|
130
|
+
disabled: d,
|
|
131
131
|
...e
|
|
132
132
|
}) {
|
|
133
|
-
const [n,
|
|
133
|
+
const [n, a] = t.useState(!1), r = t.useRef(null);
|
|
134
134
|
t.useEffect(() => {
|
|
135
135
|
const o = () => {
|
|
136
136
|
if (r.current) {
|
|
137
|
-
const
|
|
138
|
-
|
|
137
|
+
const c = r.current.closest("fieldset");
|
|
138
|
+
a(c?.disabled ?? !1);
|
|
139
139
|
}
|
|
140
140
|
};
|
|
141
141
|
o();
|
|
142
|
-
const
|
|
142
|
+
const i = new MutationObserver(o);
|
|
143
143
|
if (r.current) {
|
|
144
|
-
const
|
|
145
|
-
|
|
144
|
+
const c = r.current.closest("fieldset");
|
|
145
|
+
c && i.observe(c, { attributes: !0, attributeFilter: ["disabled"] });
|
|
146
146
|
}
|
|
147
|
-
return () =>
|
|
147
|
+
return () => i.disconnect();
|
|
148
148
|
}, []);
|
|
149
|
-
const
|
|
150
|
-
return /* @__PURE__ */
|
|
149
|
+
const l = d || n;
|
|
150
|
+
return /* @__PURE__ */ u.jsx(
|
|
151
151
|
U,
|
|
152
152
|
{
|
|
153
153
|
ref: r,
|
|
154
154
|
"data-slot": "switch",
|
|
155
|
-
disabled:
|
|
156
|
-
className:
|
|
155
|
+
disabled: l,
|
|
156
|
+
className: C(
|
|
157
157
|
`
|
|
158
158
|
adm:peer adm:inline-flex adm:h-5 adm:w-8 adm:shrink-0 adm:items-center
|
|
159
159
|
adm:rounded-full adm:border adm:border-transparent adm:shadow-xs
|
|
@@ -165,21 +165,19 @@ function V({
|
|
|
165
165
|
adm:data-[state=unchecked]:bg-input
|
|
166
166
|
adm:dark:data-[state=unchecked]:bg-input/80
|
|
167
167
|
`,
|
|
168
|
-
|
|
168
|
+
s
|
|
169
169
|
),
|
|
170
170
|
...e,
|
|
171
|
-
children: /* @__PURE__ */
|
|
171
|
+
children: /* @__PURE__ */ u.jsx(
|
|
172
172
|
q,
|
|
173
173
|
{
|
|
174
174
|
"data-slot": "switch-thumb",
|
|
175
|
-
className:
|
|
175
|
+
className: C(
|
|
176
176
|
`
|
|
177
177
|
adm:pointer-events-none adm:block adm:size-4 adm:rounded-full
|
|
178
|
-
adm:bg-
|
|
178
|
+
adm:bg-neutrals-0 adm:ring-0 adm:transition-transform
|
|
179
179
|
adm:data-[state=checked]:translate-x-[calc(100%-2px)]
|
|
180
180
|
adm:data-[state=unchecked]:translate-x-0
|
|
181
|
-
adm:dark:data-[state=checked]:bg-primary-foreground
|
|
182
|
-
adm:dark:data-[state=unchecked]:bg-foreground
|
|
183
181
|
`
|
|
184
182
|
)
|
|
185
183
|
}
|
package/dist/table.cjs
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./jsx-runtime-BB_1_6y_.cjs"),d=require("./index-DoxiiusW.cjs");require("react");function o({className:e
|
|
2
|
-
adm:relative adm:w-full adm:overflow-x-auto adm:rounded-
|
|
3
|
-
`,children:t.jsxRuntimeExports.jsx("table",{"data-slot":"table",className:d.cn("adm:w-full adm:caption-bottom adm:text-sm",
|
|
4
|
-
adm:border-t adm:bg-muted
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./jsx-runtime-BB_1_6y_.cjs"),d=require("./index-DoxiiusW.cjs");require("react");function o({className:a,...e}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"table-container",className:`
|
|
2
|
+
adm:relative adm:w-full adm:overflow-x-auto adm:rounded-2xl adm:border
|
|
3
|
+
`,children:t.jsxRuntimeExports.jsx("table",{"data-slot":"table",className:d.cn("adm:w-full adm:caption-bottom adm:text-sm",a),...e})})}function r({className:a,...e}){return t.jsxRuntimeExports.jsx("thead",{"data-slot":"table-header",className:d.cn("adm:[&_tr]:border-b",a),...e})}function l({className:a,...e}){return t.jsxRuntimeExports.jsx("tbody",{"data-slot":"table-body",className:d.cn("adm:[&_tr:last-child]:border-0",a),...e})}function s({className:a,...e}){return t.jsxRuntimeExports.jsx("tfoot",{"data-slot":"table-footer",className:d.cn(`
|
|
4
|
+
adm:border-t adm:bg-muted adm:font-medium
|
|
5
5
|
adm:[&>tr]:last:border-b-0
|
|
6
|
-
`,
|
|
7
|
-
adm:border-b adm:border-
|
|
6
|
+
`,a),...e})}function m({className:a,...e}){return t.jsxRuntimeExports.jsx("tr",{"data-slot":"table-row",className:d.cn(`
|
|
7
|
+
adm:h-16 adm:border-b adm:border-divider adm:transition-colors
|
|
8
8
|
adm:hover:bg-muted/50
|
|
9
9
|
adm:data-[state=selected]:bg-muted
|
|
10
|
-
`,
|
|
11
|
-
adm:h-
|
|
10
|
+
`,a),...e})}function n({className:a,...e}){return t.jsxRuntimeExports.jsx("th",{"data-slot":"table-head",className:d.cn(`
|
|
11
|
+
adm:h-16 adm:bg-muted adm:p-4 adm:text-left adm:align-middle
|
|
12
12
|
adm:text-xs adm:font-semibold adm:whitespace-nowrap
|
|
13
|
-
adm:text-
|
|
13
|
+
adm:text-foreground adm:uppercase
|
|
14
14
|
adm:[&:has([role=checkbox])]:pr-0
|
|
15
|
-
adm
|
|
16
|
-
`,
|
|
15
|
+
adm:**:[&>[role=checkbox]]:translate-y-[2px]
|
|
16
|
+
`,a),...e})}function b({className:a,...e}){return t.jsxRuntimeExports.jsx("td",{"data-slot":"table-cell",className:d.cn(`
|
|
17
17
|
adm:p-4 adm:align-middle adm:text-sm adm:whitespace-nowrap
|
|
18
|
-
adm:text-
|
|
18
|
+
adm:text-foreground
|
|
19
19
|
adm:[&:has([role=checkbox])]:pr-0
|
|
20
|
-
adm
|
|
21
|
-
`,
|
|
20
|
+
adm:**:[&>[role=checkbox]]:translate-y-[2px]
|
|
21
|
+
`,a),...e})}function c({className:a,...e}){return t.jsxRuntimeExports.jsx("caption",{"data-slot":"table-caption",className:d.cn("adm:my-4 adm:text-sm adm:text-muted-foreground",a),...e})}exports.Table=o;exports.TableBody=l;exports.TableCaption=c;exports.TableCell=b;exports.TableFooter=s;exports.TableHead=n;exports.TableHeader=r;exports.TableRow=m;
|
package/dist/table.js
CHANGED
|
@@ -8,7 +8,7 @@ function l({ className: a, ...t }) {
|
|
|
8
8
|
{
|
|
9
9
|
"data-slot": "table-container",
|
|
10
10
|
className: `
|
|
11
|
-
adm:relative adm:w-full adm:overflow-x-auto adm:rounded-
|
|
11
|
+
adm:relative adm:w-full adm:overflow-x-auto adm:rounded-2xl adm:border
|
|
12
12
|
`,
|
|
13
13
|
children: /* @__PURE__ */ e.jsx(
|
|
14
14
|
"table",
|
|
@@ -48,7 +48,7 @@ function b({ className: a, ...t }) {
|
|
|
48
48
|
"data-slot": "table-footer",
|
|
49
49
|
className: d(
|
|
50
50
|
`
|
|
51
|
-
adm:border-t adm:bg-muted
|
|
51
|
+
adm:border-t adm:bg-muted adm:font-medium
|
|
52
52
|
adm:[&>tr]:last:border-b-0
|
|
53
53
|
`,
|
|
54
54
|
a
|
|
@@ -64,7 +64,7 @@ function c({ className: a, ...t }) {
|
|
|
64
64
|
"data-slot": "table-row",
|
|
65
65
|
className: d(
|
|
66
66
|
`
|
|
67
|
-
adm:border-b adm:border-
|
|
67
|
+
adm:h-16 adm:border-b adm:border-divider adm:transition-colors
|
|
68
68
|
adm:hover:bg-muted/50
|
|
69
69
|
adm:data-[state=selected]:bg-muted
|
|
70
70
|
`,
|
|
@@ -74,18 +74,18 @@ function c({ className: a, ...t }) {
|
|
|
74
74
|
}
|
|
75
75
|
);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function i({ className: a, ...t }) {
|
|
78
78
|
return /* @__PURE__ */ e.jsx(
|
|
79
79
|
"th",
|
|
80
80
|
{
|
|
81
81
|
"data-slot": "table-head",
|
|
82
82
|
className: d(
|
|
83
83
|
`
|
|
84
|
-
adm:h-
|
|
84
|
+
adm:h-16 adm:bg-muted adm:p-4 adm:text-left adm:align-middle
|
|
85
85
|
adm:text-xs adm:font-semibold adm:whitespace-nowrap
|
|
86
|
-
adm:text-
|
|
86
|
+
adm:text-foreground adm:uppercase
|
|
87
87
|
adm:[&:has([role=checkbox])]:pr-0
|
|
88
|
-
adm
|
|
88
|
+
adm:**:[&>[role=checkbox]]:translate-y-[2px]
|
|
89
89
|
`,
|
|
90
90
|
a
|
|
91
91
|
),
|
|
@@ -93,7 +93,7 @@ function u({ className: a, ...t }) {
|
|
|
93
93
|
}
|
|
94
94
|
);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function u({ className: a, ...t }) {
|
|
97
97
|
return /* @__PURE__ */ e.jsx(
|
|
98
98
|
"td",
|
|
99
99
|
{
|
|
@@ -101,9 +101,9 @@ function i({ className: a, ...t }) {
|
|
|
101
101
|
className: d(
|
|
102
102
|
`
|
|
103
103
|
adm:p-4 adm:align-middle adm:text-sm adm:whitespace-nowrap
|
|
104
|
-
adm:text-
|
|
104
|
+
adm:text-foreground
|
|
105
105
|
adm:[&:has([role=checkbox])]:pr-0
|
|
106
|
-
adm
|
|
106
|
+
adm:**:[&>[role=checkbox]]:translate-y-[2px]
|
|
107
107
|
`,
|
|
108
108
|
a
|
|
109
109
|
),
|
|
@@ -128,9 +128,9 @@ export {
|
|
|
128
128
|
l as Table,
|
|
129
129
|
n as TableBody,
|
|
130
130
|
x as TableCaption,
|
|
131
|
-
|
|
131
|
+
u as TableCell,
|
|
132
132
|
b as TableFooter,
|
|
133
|
-
|
|
133
|
+
i as TableHead,
|
|
134
134
|
s as TableHeader,
|
|
135
135
|
c as TableRow
|
|
136
136
|
};
|
package/dist/tabs-underline.cjs
CHANGED
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
adm:inline-flex adm:h-
|
|
3
|
-
adm:p-
|
|
4
|
-
`,t),...
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./jsx-runtime-BB_1_6y_.cjs"),s=require("./index-i5lLg35-.cjs"),n=require("./index-DoxiiusW.cjs");require("react");function i({className:t,...e}){return a.jsxRuntimeExports.jsx(s.Root2,{"data-slot":"tabs",className:n.cn("adm:flex adm:flex-col adm:gap-6",t),...e})}function d({className:t,...e}){return a.jsxRuntimeExports.jsx(s.List,{"data-slot":"tabs-list",className:n.cn(`
|
|
2
|
+
adm:inline-flex adm:h-12 adm:w-fit adm:items-center adm:justify-center
|
|
3
|
+
adm:p-px adm:text-muted-foreground
|
|
4
|
+
`,t),...e})}function r({className:t,...e}){return a.jsxRuntimeExports.jsx(s.Trigger,{"data-slot":"tabs-trigger",className:n.cn(`
|
|
5
5
|
adm:inline-flex adm:h-[calc(100%-1px)] adm:flex-1 adm:items-center
|
|
6
|
-
adm:justify-center adm:gap-
|
|
6
|
+
adm:justify-center adm:gap-2 adm:border-b-2 adm:px-3 adm:py-2.5
|
|
7
7
|
adm:text-sm adm:font-semibold adm:whitespace-nowrap
|
|
8
|
-
adm:text-
|
|
9
|
-
adm:focus-visible:border-ring adm:focus-visible:ring-
|
|
10
|
-
adm:focus-visible:ring-
|
|
8
|
+
adm:text-foreground adm:transition-shadow
|
|
9
|
+
adm:focus-visible:border-ring adm:focus-visible:ring-4
|
|
10
|
+
adm:focus-visible:ring-primary/10 adm:focus-visible:outline-1
|
|
11
11
|
adm:focus-visible:outline-ring
|
|
12
12
|
adm:disabled:pointer-events-none adm:disabled:opacity-50
|
|
13
|
+
adm:**:data-[slot=icon]:pointer-events-none
|
|
14
|
+
adm:**:data-[slot=icon]:shrink-0
|
|
13
15
|
adm:data-[state=active]:border-b-primary
|
|
14
16
|
adm:data-[state=active]:text-primary
|
|
15
|
-
adm:dark:text-muted-foreground
|
|
16
|
-
adm:dark:data-[state=active]:border-input
|
|
17
|
-
adm:dark:data-[state=active]:bg-input/30
|
|
18
|
-
adm:dark:data-[state=active]:text-foreground
|
|
19
|
-
adm:[&_[data-slot=icon]]:pointer-events-none
|
|
20
|
-
adm:[&_[data-slot=icon]]:shrink-0
|
|
21
17
|
adm:[&_[data-slot=icon]:not([class*=text-])]:text-lg
|
|
22
18
|
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
23
19
|
adm:[&_svg:not([class*=size-])]:size-4
|
|
24
|
-
`,t),...
|
|
20
|
+
`,t),...e})}function o({className:t,...e}){return a.jsxRuntimeExports.jsx(s.Content,{"data-slot":"tabs-content",className:n.cn("adm:flex-1 adm:outline-none",t),...e})}exports.Tabs=i;exports.TabsContent=o;exports.TabsList=d;exports.TabsTrigger=r;
|
package/dist/tabs-underline.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as e } from "./jsx-runtime-BzflLqGi.js";
|
|
3
|
-
import { R as
|
|
3
|
+
import { R as i, L as n, T as d, C as m } from "./index-B76LQ4E5.js";
|
|
4
4
|
import { c as s } from "./index-CRiPKpXj.js";
|
|
5
5
|
import "react";
|
|
6
|
-
function
|
|
6
|
+
function f({
|
|
7
7
|
className: a,
|
|
8
8
|
...t
|
|
9
9
|
}) {
|
|
10
10
|
return /* @__PURE__ */ e.jsx(
|
|
11
|
-
|
|
11
|
+
i,
|
|
12
12
|
{
|
|
13
13
|
"data-slot": "tabs",
|
|
14
14
|
className: s("adm:flex adm:flex-col adm:gap-6", a),
|
|
@@ -16,18 +16,18 @@ function u({
|
|
|
16
16
|
}
|
|
17
17
|
);
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function u({
|
|
20
20
|
className: a,
|
|
21
21
|
...t
|
|
22
22
|
}) {
|
|
23
23
|
return /* @__PURE__ */ e.jsx(
|
|
24
|
-
|
|
24
|
+
n,
|
|
25
25
|
{
|
|
26
26
|
"data-slot": "tabs-list",
|
|
27
27
|
className: s(
|
|
28
28
|
`
|
|
29
|
-
adm:inline-flex adm:h-
|
|
30
|
-
adm:p-
|
|
29
|
+
adm:inline-flex adm:h-12 adm:w-fit adm:items-center adm:justify-center
|
|
30
|
+
adm:p-px adm:text-muted-foreground
|
|
31
31
|
`,
|
|
32
32
|
a
|
|
33
33
|
),
|
|
@@ -35,32 +35,28 @@ function f({
|
|
|
35
35
|
}
|
|
36
36
|
);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function p({
|
|
39
39
|
className: a,
|
|
40
40
|
...t
|
|
41
41
|
}) {
|
|
42
42
|
return /* @__PURE__ */ e.jsx(
|
|
43
|
-
|
|
43
|
+
d,
|
|
44
44
|
{
|
|
45
45
|
"data-slot": "tabs-trigger",
|
|
46
46
|
className: s(
|
|
47
47
|
`
|
|
48
48
|
adm:inline-flex adm:h-[calc(100%-1px)] adm:flex-1 adm:items-center
|
|
49
|
-
adm:justify-center adm:gap-
|
|
49
|
+
adm:justify-center adm:gap-2 adm:border-b-2 adm:px-3 adm:py-2.5
|
|
50
50
|
adm:text-sm adm:font-semibold adm:whitespace-nowrap
|
|
51
|
-
adm:text-
|
|
52
|
-
adm:focus-visible:border-ring adm:focus-visible:ring-
|
|
53
|
-
adm:focus-visible:ring-
|
|
51
|
+
adm:text-foreground adm:transition-shadow
|
|
52
|
+
adm:focus-visible:border-ring adm:focus-visible:ring-4
|
|
53
|
+
adm:focus-visible:ring-primary/10 adm:focus-visible:outline-1
|
|
54
54
|
adm:focus-visible:outline-ring
|
|
55
55
|
adm:disabled:pointer-events-none adm:disabled:opacity-50
|
|
56
|
+
adm:**:data-[slot=icon]:pointer-events-none
|
|
57
|
+
adm:**:data-[slot=icon]:shrink-0
|
|
56
58
|
adm:data-[state=active]:border-b-primary
|
|
57
59
|
adm:data-[state=active]:text-primary
|
|
58
|
-
adm:dark:text-muted-foreground
|
|
59
|
-
adm:dark:data-[state=active]:border-input
|
|
60
|
-
adm:dark:data-[state=active]:bg-input/30
|
|
61
|
-
adm:dark:data-[state=active]:text-foreground
|
|
62
|
-
adm:[&_[data-slot=icon]]:pointer-events-none
|
|
63
|
-
adm:[&_[data-slot=icon]]:shrink-0
|
|
64
60
|
adm:[&_[data-slot=icon]:not([class*=text-])]:text-lg
|
|
65
61
|
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
66
62
|
adm:[&_svg:not([class*=size-])]:size-4
|
|
@@ -71,7 +67,7 @@ function x({
|
|
|
71
67
|
}
|
|
72
68
|
);
|
|
73
69
|
}
|
|
74
|
-
function
|
|
70
|
+
function x({
|
|
75
71
|
className: a,
|
|
76
72
|
...t
|
|
77
73
|
}) {
|
|
@@ -85,8 +81,8 @@ function b({
|
|
|
85
81
|
);
|
|
86
82
|
}
|
|
87
83
|
export {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
84
|
+
f as Tabs,
|
|
85
|
+
x as TabsContent,
|
|
86
|
+
u as TabsList,
|
|
87
|
+
p as TabsTrigger
|
|
92
88
|
};
|
package/dist/tabs.cjs
CHANGED
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-BB_1_6y_.cjs"),s=require("./index-i5lLg35-.cjs"),
|
|
2
|
-
adm:inline-flex adm:h-
|
|
3
|
-
adm:
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-BB_1_6y_.cjs"),s=require("./index-i5lLg35-.cjs"),n=require("./index-DoxiiusW.cjs");require("react");function d({className:t,...a}){return e.jsxRuntimeExports.jsx(s.Root2,{"data-slot":"tabs",className:n.cn("adm:flex adm:flex-col adm:gap-6",t),...a})}function i({className:t,...a}){return e.jsxRuntimeExports.jsx(s.List,{"data-slot":"tabs-list",className:n.cn(`
|
|
2
|
+
adm:inline-flex adm:h-12 adm:w-fit adm:items-center adm:justify-center
|
|
3
|
+
adm:gap-1 adm:rounded-2xl adm:bg-accent adm:p-1
|
|
4
4
|
adm:text-muted-foreground
|
|
5
|
-
`,t),...a})}function
|
|
5
|
+
`,t),...a})}function o({className:t,...a}){return e.jsxRuntimeExports.jsx(s.Trigger,{"data-slot":"tabs-trigger",className:n.cn(`
|
|
6
6
|
adm:inline-flex adm:h-full adm:flex-1 adm:items-center
|
|
7
|
-
adm:justify-center adm:gap-2 adm:rounded-[
|
|
7
|
+
adm:justify-center adm:gap-2 adm:rounded-[12px] adm:px-3 adm:py-2.5
|
|
8
8
|
adm:text-sm adm:font-semibold adm:whitespace-nowrap
|
|
9
|
-
adm:text-
|
|
10
|
-
adm:focus-visible:ring-
|
|
9
|
+
adm:text-foreground adm:transition-shadow
|
|
10
|
+
adm:focus-visible:ring-4 adm:focus-visible:ring-primary/10
|
|
11
11
|
adm:focus-visible:outline-none
|
|
12
12
|
adm:disabled:pointer-events-none adm:disabled:opacity-50
|
|
13
13
|
adm:**:data-[slot=icon]:pointer-events-none
|
|
14
14
|
adm:**:data-[slot=icon]:shrink-0
|
|
15
|
-
adm:data-[state=active]:
|
|
16
|
-
adm:data-[state=active]:
|
|
17
|
-
adm:data-[state=active]:shadow-sm
|
|
18
|
-
adm:dark:text-muted-foreground
|
|
19
|
-
adm:dark:data-[state=active]:bg-input/30
|
|
20
|
-
adm:dark:data-[state=active]:text-foreground
|
|
15
|
+
adm:data-[state=active]:border adm:data-[state=active]:border-input
|
|
16
|
+
adm:data-[state=active]:bg-background
|
|
21
17
|
adm:[&_[data-slot=icon]:not([class*=text-])]:text-lg
|
|
22
18
|
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
23
19
|
adm:[&_svg:not([class*=size-])]:size-4
|
|
24
|
-
`,t),...a})}function
|
|
20
|
+
`,t),...a})}function m({className:t,...a}){return e.jsxRuntimeExports.jsx(s.Content,{"data-slot":"tabs-content",className:n.cn("adm:flex-1 adm:outline-none",t),...a})}exports.Tabs=d;exports.TabsContent=m;exports.TabsList=i;exports.TabsTrigger=o;
|