@clasing/ui 2.1.0 → 2.1.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/dist/{badge-Ds17GJH4.js → badge-Cprh3bik.js} +24 -32
- package/dist/badge-Da_xHgvC.cjs +1 -0
- package/dist/button-B4yT3Gcz.cjs +1 -0
- package/dist/button-CUrfGF3Y.js +232 -0
- package/dist/{card-Dj2wgH-P.cjs → card-COFAc2zN.cjs} +1 -1
- package/dist/{card-BNTyYiyA.js → card-CbF9kVVs.js} +1 -1
- package/dist/chip-B7Mqq278.js +89 -0
- package/dist/chip-BG4NEZUv.cjs +1 -0
- package/dist/command-CrtCQpi_.cjs +1 -0
- package/dist/{command-CGUB58ej.js → command-ev4m9IoQ.js} +18 -24
- package/dist/components/accordion.cjs.js +1 -1
- package/dist/components/accordion.es.js +24 -30
- package/dist/components/alert-dialog.cjs.js +1 -1
- package/dist/components/alert-dialog.es.js +3 -3
- package/dist/components/alert.cjs.js +1 -1
- package/dist/components/alert.d.ts +3 -4
- package/dist/components/alert.es.js +38 -39
- package/dist/components/avatar.cjs.js +1 -1
- package/dist/components/avatar.es.js +1 -1
- package/dist/components/badge.cjs.js +1 -1
- package/dist/components/badge.d.ts +2 -6
- package/dist/components/badge.es.js +1 -1
- package/dist/components/blocks/interactive-card.cjs.js +1 -1
- package/dist/components/blocks/interactive-card.d.ts +2 -4
- package/dist/components/blocks/interactive-card.es.js +65 -80
- package/dist/components/blocks/selectable-chips.cjs.js +1 -1
- package/dist/components/blocks/selectable-chips.es.js +19 -16
- package/dist/components/breadcrumb.cjs.js +1 -1
- package/dist/components/breadcrumb.es.js +22 -22
- package/dist/components/button.cjs.js +1 -1
- package/dist/components/button.d.ts +4 -13
- package/dist/components/button.es.js +1 -1
- package/dist/components/calendar.cjs.js +1 -1
- package/dist/components/calendar.es.js +33 -54
- package/dist/components/card.cjs.js +1 -1
- package/dist/components/card.es.js +1 -1
- package/dist/components/chart.cjs.js +1 -1
- package/dist/components/chart.es.js +1 -1
- package/dist/components/checkbox.cjs.js +1 -1
- package/dist/components/checkbox.es.js +6 -6
- package/dist/components/chip.cjs.js +1 -1
- package/dist/components/chip.d.ts +1 -10
- package/dist/components/chip.es.js +1 -1
- package/dist/components/collapsible.cjs.js +1 -1
- package/dist/components/collapsible.es.js +1 -1
- package/dist/components/command.cjs.js +1 -1
- package/dist/components/command.es.js +1 -1
- package/dist/components/context-menu.cjs.js +1 -1
- package/dist/components/context-menu.es.js +42 -48
- package/dist/components/dialog.cjs.js +1 -1
- package/dist/components/dialog.es.js +1 -1
- package/dist/components/divider.cjs.js +1 -1
- package/dist/components/divider.es.js +1 -1
- package/dist/components/drawer.cjs.js +1 -1
- package/dist/components/drawer.es.js +1 -1
- package/dist/components/dropdown-menu.cjs.js +1 -1
- package/dist/components/dropdown-menu.es.js +40 -46
- package/dist/components/form.cjs.js +1 -1
- package/dist/components/form.es.js +2 -2
- package/dist/components/hover-card.cjs.js +1 -1
- package/dist/components/hover-card.es.js +1 -1
- package/dist/components/input-otp.cjs.js +1 -1
- package/dist/components/input-otp.es.js +16 -16
- package/dist/components/input.cjs.js +1 -1
- package/dist/components/input.d.ts +2 -6
- package/dist/components/input.es.js +1 -1
- package/dist/components/label.cjs.js +1 -1
- package/dist/components/label.es.js +1 -1
- package/dist/components/menubar.cjs.js +1 -1
- package/dist/components/menubar.es.js +66 -72
- package/dist/components/multi-select.cjs.js +1 -1
- package/dist/components/multi-select.es.js +77 -96
- package/dist/components/navigation-menu.cjs.js +1 -1
- package/dist/components/navigation-menu.es.js +10 -11
- package/dist/components/phone-input.cjs.js +1 -1
- package/dist/components/phone-input.es.js +77 -79
- package/dist/components/popover.cjs.js +1 -1
- package/dist/components/popover.es.js +1 -1
- package/dist/components/progress.cjs.js +1 -1
- package/dist/components/progress.es.js +1 -1
- package/dist/components/resizable.cjs.js +1 -1
- package/dist/components/resizable.es.js +3 -3
- package/dist/components/scroll-area.cjs.js +1 -1
- package/dist/components/scroll-area.es.js +1 -1
- package/dist/components/select.cjs.js +1 -1
- package/dist/components/select.es.js +47 -53
- package/dist/components/sheet.cjs.js +1 -1
- package/dist/components/sheet.es.js +29 -29
- package/dist/components/skeleton.cjs.js +1 -1
- package/dist/components/skeleton.es.js +1 -1
- package/dist/components/slider.cjs.js +1 -1
- package/dist/components/slider.es.js +1 -1
- package/dist/components/sonner.cjs.js +1 -1
- package/dist/components/sonner.es.js +1 -1
- package/dist/components/switch.cjs.js +1 -1
- package/dist/components/switch.es.js +2 -2
- package/dist/components/table.cjs.js +1 -1
- package/dist/components/table.es.js +1 -1
- package/dist/components/textarea.cjs.js +1 -1
- package/dist/components/textarea.d.ts +2 -6
- package/dist/components/textarea.es.js +28 -36
- package/dist/components/toggle-group.cjs.js +1 -1
- package/dist/components/toggle-group.es.js +2 -2
- package/dist/components/toggle.cjs.js +1 -1
- package/dist/components/toggle.d.ts +1 -1
- package/dist/components/toggle.es.js +1 -1
- package/dist/components/tooltip.cjs.js +1 -1
- package/dist/components/tooltip.es.js +1 -1
- package/dist/{dialog-CEttcpWT.js → dialog-CXbzQHxn.js} +9 -9
- package/dist/dialog-DHZARK1o.cjs +1 -0
- package/dist/index-9HRzXEQf.cjs +6 -0
- package/dist/{index-DBpnlzOP.js → index-D5lmpham.js} +677 -664
- package/dist/{index-CwXB7YIx.js → index-DN28Pf0m.js} +1 -1
- package/dist/{index-BVmT9wZC.cjs → index-ECyCsPX0.cjs} +1 -1
- package/dist/input-C144z_Is.cjs +1 -0
- package/dist/{input-B5HLfVv0.js → input-fvzEG6zH.js} +33 -47
- package/dist/{label-eHraXPfy.cjs → label-D3iN3bzS.cjs} +1 -1
- package/dist/{label-Bp4qkqFq.js → label-DDxTPxHk.js} +1 -1
- package/dist/{popover-Dvf9oQaX.js → popover-BdDS9aoy.js} +1 -1
- package/dist/{popover-DifOajI4.cjs → popover-CeOAAwBQ.cjs} +1 -1
- package/dist/{scroll-area-CJpVshOm.cjs → scroll-area-D74XszlE.cjs} +1 -1
- package/dist/{scroll-area-Dj0Szbw6.js → scroll-area-oS6ZJIMN.js} +1 -1
- package/dist/{toggle-owj9AHVO.js → toggle-BNzrNg1r.js} +2 -2
- package/dist/{toggle-CJLDdFRo.cjs → toggle-CtoQhQby.cjs} +1 -1
- package/dist/{tooltip-C9FWg102.cjs → tooltip-BccdAn4x.cjs} +1 -1
- package/dist/{tooltip-CGSL9pFZ.js → tooltip-rv-jVOxy.js} +1 -1
- package/package.json +352 -357
- package/dist/badge-oQqEF2X5.cjs +0 -1
- package/dist/button-B-JHlR-n.cjs +0 -1
- package/dist/button-ozL8afps.js +0 -573
- package/dist/chip-CK2VBBsV.js +0 -126
- package/dist/chip-DVKpteyL.cjs +0 -1
- package/dist/command-CHisYTN-.cjs +0 -1
- package/dist/components/icon-component.cjs.js +0 -1
- package/dist/components/icon-component.d.ts +0 -12
- package/dist/components/icon-component.es.js +0 -4
- package/dist/dialog-Chh5qAxR.cjs +0 -1
- package/dist/entries/icon-component.d.ts +0 -2
- package/dist/icon-component-DGImZz3K.js +0 -49
- package/dist/icon-component-DTlgy__B.cjs +0 -1
- package/dist/index-DSjHHn1r.cjs +0 -22
- package/dist/input-BqT_fuUN.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const O=require("./index-
|
|
1
|
+
"use strict";const O=require("./index-9HRzXEQf.cjs"),m=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,y=O.clsx,b=(t,l)=>n=>{var u;if(l?.variants==null)return y(t,n?.class,n?.className);const{variants:o,defaultVariants:d}=l,V=Object.keys(o).map(e=>{const a=n?.[e],s=d?.[e];if(a===null)return null;const i=m(a)||m(s);return o[e][i]}),v=n&&Object.entries(n).reduce((e,a)=>{let[s,i]=a;return i===void 0||(e[s]=i),e},{}),N=l==null||(u=l.compoundVariants)===null||u===void 0?void 0:u.reduce((e,a)=>{let{class:s,className:i,...C}=a;return Object.entries(C).every(f=>{let[c,r]=f;return Array.isArray(r)?r.includes({...d,...v}[c]):{...d,...v}[c]===r})?[...e,s,i]:e},[]);return y(t,V,N,n?.class,n?.className)};exports.cva=b;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("./index-9HRzXEQf.cjs"),o=require("@phosphor-icons/react"),c=require("./index-ECyCsPX0.cjs"),x=require("react"),b=require("./button-B4yT3Gcz.cjs");function f(i){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const s in i)if(s!=="default"){const t=Object.getOwnPropertyDescriptor(i,s);Object.defineProperty(e,s,t.get?t:{enumerable:!0,get:()=>i[s]})}}return e.default=i,Object.freeze(e)}const g=f(x),d=c.cva("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input file:paragraph-sm flex w-full min-w-0 rounded-md border bg-transparent transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{xs:"label-sm h-7 px-2 py-1",sm:"label-md h-8 px-2 py-1",md:"label-lg h-12 px-3 py-1",lg:"label-xl h-16 px-4 py-2"}},defaultVariants:{size:"md"}});function m({className:i,type:e,size:s,icon:t,iconPosition:a="left",...l}){const[n,u]=g.useState(!1),p=()=>{u(!n)};return!t&&e!=="password"?r.jsxRuntimeExports.jsx("input",{type:e,"data-slot":"input",className:r.cn(d({size:s}),"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",i),...l}):r.jsxRuntimeExports.jsxs("div",{className:"relative w-full",children:[t&&a==="left"&&r.jsxRuntimeExports.jsx("span",{className:"text-muted-foreground absolute top-1/2 left-3 -translate-y-1/2",children:t}),r.jsxRuntimeExports.jsx("input",{type:e==="password"?n?"text":"password":e,"data-slot":"input",className:r.cn(d({size:s}),"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",t&&a==="left"?"pl-10":"",t&&a==="right"||e==="password"?"pr-10":"",i),...l}),e==="password"&&r.jsxRuntimeExports.jsx(b.Button,{variant:"inverse",type:"button",size:s==="xs"||s==="sm"?"xs":"md",tabIndex:-1,"aria-label":n?"Hide password":"Show password",className:"absolute top-1/2 right-3 -translate-y-1/2",onClick:p,children:n?r.jsxRuntimeExports.jsx(o.EyeSlashIcon,{}):r.jsxRuntimeExports.jsx(o.EyeIcon,{})}),t&&a==="right"&&e!=="password"&&r.jsxRuntimeExports.jsx("span",{className:"text-muted-foreground absolute top-1/2 right-3 -translate-y-1/2",children:t})]})}exports.Input=m;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
1
|
+
import { j as e, c as n } from "./index-D5lmpham.js";
|
|
2
|
+
import { EyeSlashIcon as f, EyeIcon as b } from "@phosphor-icons/react";
|
|
3
|
+
import { c as m } from "./index-DN28Pf0m.js";
|
|
3
4
|
import * as x from "react";
|
|
4
|
-
import { B as
|
|
5
|
-
|
|
6
|
-
const m = b(
|
|
5
|
+
import { B as c } from "./button-CUrfGF3Y.js";
|
|
6
|
+
const o = m(
|
|
7
7
|
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input file:paragraph-sm flex w-full min-w-0 rounded-md border bg-transparent transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
@@ -19,78 +19,64 @@ const m = b(
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
);
|
|
22
|
-
function
|
|
23
|
-
className:
|
|
24
|
-
type:
|
|
22
|
+
function j({
|
|
23
|
+
className: l,
|
|
24
|
+
type: r,
|
|
25
25
|
size: a,
|
|
26
|
-
|
|
27
|
-
iconPosition:
|
|
26
|
+
icon: s,
|
|
27
|
+
iconPosition: t = "left",
|
|
28
28
|
...d
|
|
29
29
|
}) {
|
|
30
|
-
const [
|
|
31
|
-
|
|
30
|
+
const [i, u] = x.useState(!1), p = () => {
|
|
31
|
+
u(!i);
|
|
32
32
|
};
|
|
33
|
-
return !
|
|
33
|
+
return !s && r !== "password" ? /* @__PURE__ */ e.jsx(
|
|
34
34
|
"input",
|
|
35
35
|
{
|
|
36
|
-
type:
|
|
36
|
+
type: r,
|
|
37
37
|
"data-slot": "input",
|
|
38
|
-
className:
|
|
39
|
-
|
|
38
|
+
className: n(
|
|
39
|
+
o({ size: a }),
|
|
40
40
|
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
41
41
|
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
42
|
-
|
|
42
|
+
l
|
|
43
43
|
),
|
|
44
44
|
...d
|
|
45
45
|
}
|
|
46
|
-
) : /* @__PURE__ */
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
{
|
|
50
|
-
iconName: e.name,
|
|
51
|
-
stroke: e.stroke,
|
|
52
|
-
size: 20
|
|
53
|
-
}
|
|
54
|
-
) }),
|
|
55
|
-
/* @__PURE__ */ r.jsx(
|
|
46
|
+
) : /* @__PURE__ */ e.jsxs("div", { className: "relative w-full", children: [
|
|
47
|
+
s && t === "left" && /* @__PURE__ */ e.jsx("span", { className: "text-muted-foreground absolute top-1/2 left-3 -translate-y-1/2", children: s }),
|
|
48
|
+
/* @__PURE__ */ e.jsx(
|
|
56
49
|
"input",
|
|
57
50
|
{
|
|
58
|
-
type:
|
|
51
|
+
type: r === "password" ? i ? "text" : "password" : r,
|
|
59
52
|
"data-slot": "input",
|
|
60
|
-
className:
|
|
61
|
-
|
|
53
|
+
className: n(
|
|
54
|
+
o({ size: a }),
|
|
62
55
|
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
63
56
|
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
57
|
+
s && t === "left" ? "pl-10" : "",
|
|
58
|
+
s && t === "right" || r === "password" ? "pr-10" : "",
|
|
59
|
+
l
|
|
67
60
|
),
|
|
68
61
|
...d
|
|
69
62
|
}
|
|
70
63
|
),
|
|
71
|
-
|
|
72
|
-
|
|
64
|
+
r === "password" && /* @__PURE__ */ e.jsx(
|
|
65
|
+
c,
|
|
73
66
|
{
|
|
74
67
|
variant: "inverse",
|
|
75
68
|
type: "button",
|
|
76
69
|
size: a === "xs" || a === "sm" ? "xs" : "md",
|
|
77
70
|
tabIndex: -1,
|
|
78
|
-
"aria-label":
|
|
71
|
+
"aria-label": i ? "Hide password" : "Show password",
|
|
79
72
|
className: "absolute top-1/2 right-3 -translate-y-1/2",
|
|
80
|
-
onClick:
|
|
81
|
-
|
|
73
|
+
onClick: p,
|
|
74
|
+
children: i ? /* @__PURE__ */ e.jsx(f, {}) : /* @__PURE__ */ e.jsx(b, {})
|
|
82
75
|
}
|
|
83
76
|
),
|
|
84
|
-
|
|
85
|
-
p,
|
|
86
|
-
{
|
|
87
|
-
iconName: e.name,
|
|
88
|
-
stroke: e.stroke,
|
|
89
|
-
size: 20
|
|
90
|
-
}
|
|
91
|
-
) })
|
|
77
|
+
s && t === "right" && r !== "password" && /* @__PURE__ */ e.jsx("span", { className: "text-muted-foreground absolute top-1/2 right-3 -translate-y-1/2", children: s })
|
|
92
78
|
] });
|
|
93
79
|
}
|
|
94
80
|
export {
|
|
95
|
-
|
|
81
|
+
j as I
|
|
96
82
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("./index-
|
|
1
|
+
"use strict";const a=require("./index-9HRzXEQf.cjs"),o=require("@radix-ui/react-label");function i(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const l=i(o);function s({className:e,...t}){return a.jsxRuntimeExports.jsx(l.Root,{"data-slot":"label",className:a.cn("label-lg flex items-center gap-2 leading-none font-semibold select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}exports.Label=s;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./index-
|
|
1
|
+
"use strict";const e=require("./index-9HRzXEQf.cjs"),s=require("@radix-ui/react-popover");function d(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const i=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(r,o,i.get?i:{enumerable:!0,get:()=>t[o]})}}return r.default=t,Object.freeze(r)}const n=d(s);function p({...t}){return e.jsxRuntimeExports.jsx(n.Root,{"data-slot":"popover",...t})}function c({...t}){return e.jsxRuntimeExports.jsx(n.Trigger,{"data-slot":"popover-trigger",...t})}function u({className:t,align:r="center",sideOffset:o=4,collisionPadding:i=24,...a}){return e.jsxRuntimeExports.jsx(n.Portal,{children:e.jsxRuntimeExports.jsx(n.Content,{"data-slot":"popover-content",align:r,sideOffset:o,className:e.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",t),...a})})}function l({...t}){return e.jsxRuntimeExports.jsx(n.Anchor,{"data-slot":"popover-anchor",...t})}exports.Popover=p;exports.PopoverAnchor=l;exports.PopoverContent=u;exports.PopoverTrigger=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const l=require("./index-
|
|
1
|
+
"use strict";const l=require("./index-9HRzXEQf.cjs"),n=require("@radix-ui/react-scroll-area");function c(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,s.get?s:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const o=c(n);function i({className:r,children:e,...t}){return l.jsxRuntimeExports.jsxs(o.Root,{"data-slot":"scroll-area",className:l.cn("relative",r),...t,children:[l.jsxRuntimeExports.jsx(o.Viewport,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:e}),l.jsxRuntimeExports.jsx(a,{}),l.jsxRuntimeExports.jsx(o.Corner,{})]})}function a({className:r,orientation:e="vertical",...t}){return l.jsxRuntimeExports.jsx(o.ScrollAreaScrollbar,{"data-slot":"scroll-area-scrollbar",orientation:e,className:l.cn("flex touch-none p-px transition-colors select-none",e==="vertical"&&"h-full w-2.5 border-l border-l-transparent",e==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",r),...t,children:l.jsxRuntimeExports.jsx(o.ScrollAreaThumb,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}exports.ScrollArea=i;exports.ScrollBar=a;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as n, c as r } from "./index-
|
|
1
|
+
import { j as n, c as r } from "./index-D5lmpham.js";
|
|
2
2
|
import * as s from "@radix-ui/react-toggle";
|
|
3
|
-
import { c as o } from "./index-
|
|
3
|
+
import { c as o } from "./index-DN28Pf0m.js";
|
|
4
4
|
const l = o(
|
|
5
5
|
"hover:bg-muted hover:text-muted-foreground data-[state=on]:bg-accent data-[state=on]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive paragraph-sm inline-flex items-center justify-center gap-2 rounded-md font-semibold whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
6
6
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("./index-
|
|
1
|
+
"use strict";const r=require("./index-9HRzXEQf.cjs"),o=require("@radix-ui/react-toggle"),s=require("./index-ECyCsPX0.cjs");function l(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const c=l(o),a=s.cva("hover:bg-muted hover:text-muted-foreground data-[state=on]:bg-accent data-[state=on]:text-accent-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive paragraph-sm inline-flex items-center justify-center gap-2 rounded-md font-semibold whitespace-nowrap transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-transparent",outline:"border-input hover:bg-accent hover:text-accent-foreground border bg-transparent shadow-xs"},size:{xs:'label-sm h-7 min-w-7 px-1.5 [&_svg:not([class*="size-"])]:size-3.5',sm:"label-md h-8 min-w-8 px-2",md:"label-lg h-12 min-w-12 px-3",lg:"label-xl h-16 min-w-16 px-4"}},defaultVariants:{variant:"default",size:"md"}});function d({className:e,variant:n,size:t,...i}){return r.jsxRuntimeExports.jsx(c.Root,{"data-slot":"toggle",className:r.cn(a({variant:n,size:t,className:e})),...i})}exports.Toggle=d;exports.toggleVariants=a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("./index-
|
|
1
|
+
"use strict";const o=require("./index-9HRzXEQf.cjs"),l=require("@radix-ui/react-tooltip");function d(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const i=d(l);function s({delayDuration:t=0,...e}){return o.jsxRuntimeExports.jsx(i.Provider,{"data-slot":"tooltip-provider",delayDuration:t,...e})}function p({...t}){return o.jsxRuntimeExports.jsx(s,{children:o.jsxRuntimeExports.jsx(i.Root,{"data-slot":"tooltip",...t})})}function c({...t}){return o.jsxRuntimeExports.jsx(i.Trigger,{"data-slot":"tooltip-trigger",...t})}function u({className:t,sideOffset:e=0,collisionPadding:r=24,children:n,...a}){return o.jsxRuntimeExports.jsx(i.Portal,{children:o.jsxRuntimeExports.jsxs(i.Content,{"data-slot":"tooltip-content",sideOffset:e,className:o.cn("text-neutral-1000 animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 paragraph-sm z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-lg bg-white px-3 py-1.5 text-balance shadow-sm",t),...a,children:[n,o.jsxRuntimeExports.jsx(i.Arrow,{className:"z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-white fill-white"})]})})}exports.Tooltip=p;exports.TooltipContent=u;exports.TooltipProvider=s;exports.TooltipTrigger=c;
|