@clasing/ui 2.6.0 → 2.7.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-DK9gdPpu.cjs +91 -0
- package/dist/badge-aFyTFGVU.js +173 -0
- package/dist/button-2VesFn_C.js +256 -0
- package/dist/button-DWBp81pk.cjs +70 -0
- package/dist/card-DkYKwjsA.cjs +12 -0
- package/dist/{card-Cv2M4wv8.js → card-aAzRmGVH.js} +19 -5
- package/dist/chip-BlWb6w16.cjs +17 -0
- package/dist/chip-BmqvnZuy.js +116 -0
- package/dist/{clasing-icon-Bym32_-4.cjs → clasing-icon-CHt2Otn8.cjs} +1 -1
- package/dist/{clasing-icon-BIYMLc8o.js → clasing-icon-CJQQN554.js} +1 -1
- package/dist/command-DNjJookC.cjs +35 -0
- package/dist/command-peXi2dFX.js +209 -0
- package/dist/components/accordion.cjs.js +20 -1
- package/dist/components/accordion.es.js +38 -16
- package/dist/components/alert-dialog.cjs.js +17 -1
- package/dist/components/alert-dialog.es.js +23 -7
- package/dist/components/alert.cjs.js +6 -1
- package/dist/components/alert.d.ts +1 -2
- package/dist/components/alert.es.js +54 -50
- 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 +1 -1
- package/dist/components/badge.es.js +1 -1
- package/dist/components/blocks/interactive-card.cjs.js +5 -1
- package/dist/components/blocks/interactive-card.es.js +60 -56
- package/dist/components/blocks/selectable-chips.cjs.js +1 -1
- package/dist/components/blocks/selectable-chips.d.ts +6 -6
- package/dist/components/blocks/selectable-chips.es.js +88 -55
- package/dist/components/breadcrumb.cjs.js +1 -1
- package/dist/components/breadcrumb.es.js +1 -1
- package/dist/components/button-group.cjs.js +1 -1
- package/dist/components/button-group.es.js +3 -3
- package/dist/components/button.cjs.js +1 -1
- package/dist/components/button.d.ts +8 -17
- package/dist/components/button.es.js +2 -4
- package/dist/components/calendar.cjs.js +73 -1
- package/dist/components/calendar.es.js +120 -42
- package/dist/components/card.cjs.js +1 -1
- package/dist/components/card.es.js +1 -1
- package/dist/components/chart.cjs.js +27 -2
- package/dist/components/chart.es.js +38 -7
- package/dist/components/checkbox.cjs.js +15 -1
- package/dist/components/checkbox.es.js +28 -14
- package/dist/components/chip.cjs.js +1 -1
- package/dist/components/chip.d.ts +3 -3
- package/dist/components/chip.es.js +1 -1
- package/dist/components/clasing-icon.cjs.js +1 -1
- package/dist/components/clasing-icon.es.js +1 -1
- package/dist/components/collapsible.cjs.js +10 -1
- package/dist/components/collapsible.es.js +17 -8
- package/dist/components/command.cjs.js +1 -1
- package/dist/components/command.es.js +1 -1
- package/dist/components/context-menu.cjs.js +70 -1
- package/dist/components/context-menu.es.js +95 -14
- 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 +42 -1
- package/dist/components/drawer.es.js +63 -17
- package/dist/components/dropdown-menu.cjs.js +70 -1
- package/dist/components/dropdown-menu.es.js +133 -52
- package/dist/components/form.cjs.js +1 -1
- package/dist/components/form.es.js +21 -21
- package/dist/components/hover-card.cjs.js +13 -1
- package/dist/components/hover-card.es.js +14 -2
- package/dist/components/input-otp.cjs.js +19 -1
- package/dist/components/input-otp.es.js +49 -25
- package/dist/components/input.cjs.js +1 -1
- package/dist/components/input.es.js +1 -1
- package/dist/components/kbd.cjs.js +9 -1
- package/dist/components/kbd.es.js +11 -3
- package/dist/components/label.cjs.js +1 -1
- package/dist/components/label.es.js +1 -1
- package/dist/components/menubar.cjs.js +74 -1
- package/dist/components/menubar.es.js +121 -36
- package/dist/components/multi-select.cjs.js +22 -1
- package/dist/components/multi-select.es.js +54 -27
- package/dist/components/navigation-menu.cjs.js +70 -1
- package/dist/components/navigation-menu.es.js +85 -11
- package/dist/components/phone-input.cjs.js +21 -1
- package/dist/components/phone-input.es.js +267 -174
- 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 +3 -3
- package/dist/components/resizable.cjs.js +22 -1
- package/dist/components/resizable.d.ts +1 -1
- package/dist/components/resizable.es.js +52 -17
- package/dist/components/scroll-area.cjs.js +1 -1
- package/dist/components/scroll-area.es.js +1 -1
- package/dist/components/select.cjs.js +56 -1
- package/dist/components/select.d.ts +2 -1
- package/dist/components/select.es.js +86 -27
- package/dist/components/sheet.cjs.js +36 -1
- package/dist/components/sheet.es.js +75 -34
- package/dist/components/skeleton.cjs.js +1 -1
- package/dist/components/skeleton.es.js +1 -1
- package/dist/components/slider.cjs.js +23 -1
- package/dist/components/slider.es.js +46 -24
- package/dist/components/sonner.cjs.js +15 -1
- package/dist/components/sonner.es.js +67 -41
- package/dist/components/switch.cjs.js +19 -1
- package/dist/components/switch.es.js +29 -11
- package/dist/components/table.cjs.js +20 -1
- package/dist/components/table.es.js +56 -34
- package/dist/components/textarea.cjs.js +22 -1
- package/dist/components/textarea.es.js +46 -25
- package/dist/components/toggle-group.cjs.js +12 -1
- package/dist/components/toggle-group.es.js +15 -4
- package/dist/components/toggle.cjs.js +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-BUaX7IId.cjs +28 -0
- package/dist/{dialog-CH4VxKX4.js → dialog-CdmsVmRe.js} +41 -14
- package/dist/divider-D4EfIlt3.cjs +1 -0
- package/dist/{divider-BMxVoyPg.js → divider-DumyhJI_.js} +6 -6
- package/dist/entries/button.d.ts +2 -2
- package/dist/index-Bfismeyo.cjs +6 -0
- package/dist/{index-ECyCsPX0.cjs → index-BmhzhLcV.cjs} +1 -1
- package/dist/{index-DEha_UuN.js → index-CnqageB2.js} +1 -1
- package/dist/{index-BCEGphus.js → index-CwFDnnd3.js} +678 -519
- package/dist/input-kOA9xJIa.js +122 -0
- package/dist/input-u-OTHOPe.cjs +28 -0
- package/dist/label-BteX4MEt.js +27 -0
- package/dist/label-O3mSiGyx.cjs +7 -0
- package/dist/popover-A1-x5q-F.cjs +13 -0
- package/dist/{popover-BzUZg2od.js → popover-eQq2Is-I.js} +14 -2
- package/dist/{scroll-area-CxpVQq0v.js → scroll-area-CJy_EOqT.js} +10 -5
- package/dist/scroll-area-DFyIQG6Z.cjs +6 -0
- package/dist/toggle-BdWGPLza.cjs +21 -0
- package/dist/toggle-DuhnqdDT.js +63 -0
- package/dist/tooltip-BYeLeBei.js +74 -0
- package/dist/tooltip-BZWEHWmU.cjs +14 -0
- package/dist/ui.css +210 -210
- package/package.json +32 -28
- package/dist/badge-C29hQNIG.js +0 -84
- package/dist/badge-Da_xHgvC.cjs +0 -1
- package/dist/button-BIGg5o8m.js +0 -213
- package/dist/button-BsQuxg6u.cjs +0 -1
- package/dist/card-COFAc2zN.cjs +0 -1
- package/dist/chip-C_Uh7fe6.cjs +0 -1
- package/dist/chip-ZryYiiU1.js +0 -89
- package/dist/command-CGrOI2Z9.js +0 -169
- package/dist/command-CrtCQpi_.cjs +0 -1
- package/dist/dialog-DHZARK1o.cjs +0 -1
- package/dist/divider-BcIwJzm7.cjs +0 -1
- package/dist/index-9HRzXEQf.cjs +0 -6
- package/dist/input-BdGPpUZ8.js +0 -82
- package/dist/input-DDgYyRSP.cjs +0 -1
- package/dist/label-Bl6V6esj.js +0 -21
- package/dist/label-D3iN3bzS.cjs +0 -1
- package/dist/popover-Cj78cvz1.cjs +0 -1
- package/dist/scroll-area-D74XszlE.cjs +0 -1
- package/dist/toggle-99EXLQgX.js +0 -43
- package/dist/toggle-CtoQhQby.cjs +0 -1
- package/dist/tooltip-CHBabriJ.js +0 -56
- package/dist/tooltip-Dd6ylN0m.cjs +0 -1
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { j as r, c as o } from "./index-CwFDnnd3.js";
|
|
2
|
+
import { EyeSlashIcon as f, EyeIcon as g } from "@phosphor-icons/react";
|
|
3
|
+
import { c as b } from "./index-CnqageB2.js";
|
|
4
|
+
import * as m from "react";
|
|
5
|
+
import { B as c } from "./button-2VesFn_C.js";
|
|
6
|
+
const d = b(
|
|
7
|
+
`
|
|
8
|
+
flex w-full min-w-0 rounded-md border border-input bg-transparent
|
|
9
|
+
transition-[color,box-shadow] outline-none
|
|
10
|
+
selection:bg-primary selection:text-primary-foreground
|
|
11
|
+
file:inline-flex file:h-7 file:border-0 file:bg-transparent
|
|
12
|
+
file:paragraph-sm file:font-medium file:text-foreground
|
|
13
|
+
placeholder:text-muted-foreground
|
|
14
|
+
disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50
|
|
15
|
+
dark:bg-input/30
|
|
16
|
+
`,
|
|
17
|
+
{
|
|
18
|
+
variants: {
|
|
19
|
+
size: {
|
|
20
|
+
xs: "h-7 px-2 py-1 label-sm",
|
|
21
|
+
sm: "h-8 px-2 py-1 label-md",
|
|
22
|
+
md: "h-12 px-3 py-1 label-lg",
|
|
23
|
+
lg: "h-16 px-4 py-2 label-xl"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
defaultVariants: {
|
|
27
|
+
size: "md"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
function y({
|
|
32
|
+
className: l,
|
|
33
|
+
type: e,
|
|
34
|
+
size: a,
|
|
35
|
+
icon: s,
|
|
36
|
+
iconPosition: t = "left",
|
|
37
|
+
...n
|
|
38
|
+
}) {
|
|
39
|
+
const [i, u] = m.useState(!1), p = () => {
|
|
40
|
+
u(!i);
|
|
41
|
+
};
|
|
42
|
+
return !s && e !== "password" ? /* @__PURE__ */ r.jsx(
|
|
43
|
+
"input",
|
|
44
|
+
{
|
|
45
|
+
type: e,
|
|
46
|
+
"data-slot": "input",
|
|
47
|
+
className: o(
|
|
48
|
+
d({ size: a }),
|
|
49
|
+
`
|
|
50
|
+
focus-visible:border-ring focus-visible:ring-[3px]
|
|
51
|
+
focus-visible:ring-ring
|
|
52
|
+
`,
|
|
53
|
+
`
|
|
54
|
+
aria-invalid:border-destructive-foreground
|
|
55
|
+
aria-invalid:ring-destructive-foreground/20
|
|
56
|
+
dark:aria-invalid:ring-destructive-foreground/40
|
|
57
|
+
`,
|
|
58
|
+
l
|
|
59
|
+
),
|
|
60
|
+
...n
|
|
61
|
+
}
|
|
62
|
+
) : /* @__PURE__ */ r.jsxs("div", { className: "relative w-full", children: [
|
|
63
|
+
s && t === "left" && /* @__PURE__ */ r.jsx(
|
|
64
|
+
"span",
|
|
65
|
+
{
|
|
66
|
+
className: `\r
|
|
67
|
+
absolute top-1/2 left-3 -translate-y-1/2 text-muted-foreground\r
|
|
68
|
+
`,
|
|
69
|
+
children: s
|
|
70
|
+
}
|
|
71
|
+
),
|
|
72
|
+
/* @__PURE__ */ r.jsx(
|
|
73
|
+
"input",
|
|
74
|
+
{
|
|
75
|
+
type: e === "password" ? i ? "text" : "password" : e,
|
|
76
|
+
"data-slot": "input",
|
|
77
|
+
className: o(
|
|
78
|
+
d({ size: a }),
|
|
79
|
+
`
|
|
80
|
+
focus-visible:border-ring focus-visible:ring-[3px]
|
|
81
|
+
focus-visible:ring-ring/50
|
|
82
|
+
`,
|
|
83
|
+
`
|
|
84
|
+
aria-invalid:border-destructive-foreground
|
|
85
|
+
aria-invalid:ring-destructive-foreground/20
|
|
86
|
+
dark:aria-invalid:ring-destructive-foreground/40
|
|
87
|
+
`,
|
|
88
|
+
s && t === "left" ? "pl-10" : "",
|
|
89
|
+
s && t === "right" || e === "password" ? "pr-10" : "",
|
|
90
|
+
l
|
|
91
|
+
),
|
|
92
|
+
...n
|
|
93
|
+
}
|
|
94
|
+
),
|
|
95
|
+
e === "password" && /* @__PURE__ */ r.jsx(
|
|
96
|
+
c,
|
|
97
|
+
{
|
|
98
|
+
variant: "secondary",
|
|
99
|
+
type: "button",
|
|
100
|
+
iconOnly: !0,
|
|
101
|
+
size: a === "xs" || a === "sm" ? "xs" : "md",
|
|
102
|
+
tabIndex: -1,
|
|
103
|
+
"aria-label": i ? "Hide password" : "Show password",
|
|
104
|
+
className: "absolute top-1/2 right-3 -translate-y-1/2",
|
|
105
|
+
onClick: p,
|
|
106
|
+
children: i ? /* @__PURE__ */ r.jsx(f, {}) : /* @__PURE__ */ r.jsx(g, {})
|
|
107
|
+
}
|
|
108
|
+
),
|
|
109
|
+
s && t === "right" && e !== "password" && /* @__PURE__ */ r.jsx(
|
|
110
|
+
"span",
|
|
111
|
+
{
|
|
112
|
+
className: `\r
|
|
113
|
+
absolute top-1/2 right-3 -translate-y-1/2 text-muted-foreground\r
|
|
114
|
+
`,
|
|
115
|
+
children: s
|
|
116
|
+
}
|
|
117
|
+
)
|
|
118
|
+
] });
|
|
119
|
+
}
|
|
120
|
+
export {
|
|
121
|
+
y as I
|
|
122
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";const t=require("./index-Bfismeyo.cjs"),l=require("@phosphor-icons/react"),p=require("./index-BmhzhLcV.cjs"),x=require("react"),f=require("./button-DWBp81pk.cjs");function g(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const s in n)if(s!=="default"){const r=Object.getOwnPropertyDescriptor(n,s);Object.defineProperty(e,s,r.get?r:{enumerable:!0,get:()=>n[s]})}}return e.default=n,Object.freeze(e)}const b=g(x),d=p.cva(`
|
|
2
|
+
flex w-full min-w-0 rounded-md border border-input bg-transparent
|
|
3
|
+
transition-[color,box-shadow] outline-none
|
|
4
|
+
selection:bg-primary selection:text-primary-foreground
|
|
5
|
+
file:inline-flex file:h-7 file:border-0 file:bg-transparent
|
|
6
|
+
file:paragraph-sm file:font-medium file:text-foreground
|
|
7
|
+
placeholder:text-muted-foreground
|
|
8
|
+
disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50
|
|
9
|
+
dark:bg-input/30
|
|
10
|
+
`,{variants:{size:{xs:"h-7 px-2 py-1 label-sm",sm:"h-8 px-2 py-1 label-md",md:"h-12 px-3 py-1 label-lg",lg:"h-16 px-4 py-2 label-xl"}},defaultVariants:{size:"md"}});function m({className:n,type:e,size:s,icon:r,iconPosition:i="left",...o}){const[a,u]=b.useState(!1),c=()=>{u(!a)};return!r&&e!=="password"?t.jsxRuntimeExports.jsx("input",{type:e,"data-slot":"input",className:t.cn(d({size:s}),`
|
|
11
|
+
focus-visible:border-ring focus-visible:ring-[3px]
|
|
12
|
+
focus-visible:ring-ring
|
|
13
|
+
`,`
|
|
14
|
+
aria-invalid:border-destructive-foreground
|
|
15
|
+
aria-invalid:ring-destructive-foreground/20
|
|
16
|
+
dark:aria-invalid:ring-destructive-foreground/40
|
|
17
|
+
`,n),...o}):t.jsxRuntimeExports.jsxs("div",{className:"relative w-full",children:[r&&i==="left"&&t.jsxRuntimeExports.jsx("span",{className:`\r
|
|
18
|
+
absolute top-1/2 left-3 -translate-y-1/2 text-muted-foreground\r
|
|
19
|
+
`,children:r}),t.jsxRuntimeExports.jsx("input",{type:e==="password"?a?"text":"password":e,"data-slot":"input",className:t.cn(d({size:s}),`
|
|
20
|
+
focus-visible:border-ring focus-visible:ring-[3px]
|
|
21
|
+
focus-visible:ring-ring/50
|
|
22
|
+
`,`
|
|
23
|
+
aria-invalid:border-destructive-foreground
|
|
24
|
+
aria-invalid:ring-destructive-foreground/20
|
|
25
|
+
dark:aria-invalid:ring-destructive-foreground/40
|
|
26
|
+
`,r&&i==="left"?"pl-10":"",r&&i==="right"||e==="password"?"pr-10":"",n),...o}),e==="password"&&t.jsxRuntimeExports.jsx(f.Button,{variant:"secondary",type:"button",iconOnly:!0,size:s==="xs"||s==="sm"?"xs":"md",tabIndex:-1,"aria-label":a?"Hide password":"Show password",className:"absolute top-1/2 right-3 -translate-y-1/2",onClick:c,children:a?t.jsxRuntimeExports.jsx(l.EyeSlashIcon,{}):t.jsxRuntimeExports.jsx(l.EyeIcon,{})}),r&&i==="right"&&e!=="password"&&t.jsxRuntimeExports.jsx("span",{className:`\r
|
|
27
|
+
absolute top-1/2 right-3 -translate-y-1/2 text-muted-foreground\r
|
|
28
|
+
`,children:r})]})}exports.Input=m;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { j as a, c as o } from "./index-CwFDnnd3.js";
|
|
2
|
+
import * as r from "@radix-ui/react-label";
|
|
3
|
+
function s({
|
|
4
|
+
className: e,
|
|
5
|
+
...t
|
|
6
|
+
}) {
|
|
7
|
+
return /* @__PURE__ */ a.jsx(
|
|
8
|
+
r.Root,
|
|
9
|
+
{
|
|
10
|
+
"data-slot": "label",
|
|
11
|
+
className: o(
|
|
12
|
+
`
|
|
13
|
+
flex items-center gap-2 label-lg leading-none font-semibold
|
|
14
|
+
text-foreground select-none
|
|
15
|
+
group-data-[disabled=true]:pointer-events-none
|
|
16
|
+
group-data-[disabled=true]:opacity-50
|
|
17
|
+
peer-disabled:cursor-not-allowed peer-disabled:opacity-50
|
|
18
|
+
`,
|
|
19
|
+
e
|
|
20
|
+
),
|
|
21
|
+
...t
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
s as L
|
|
27
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";const o=require("./index-Bfismeyo.cjs"),a=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(a);function s({className:e,...t}){return o.jsxRuntimeExports.jsx(l.Root,{"data-slot":"label",className:o.cn(`
|
|
2
|
+
flex items-center gap-2 label-lg leading-none font-semibold
|
|
3
|
+
text-foreground select-none
|
|
4
|
+
group-data-[disabled=true]:pointer-events-none
|
|
5
|
+
group-data-[disabled=true]:opacity-50
|
|
6
|
+
peer-disabled:cursor-not-allowed peer-disabled:opacity-50
|
|
7
|
+
`,e),...t})}exports.Label=s;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";const o=require("./index-Bfismeyo.cjs"),s=require("@radix-ui/react-popover");function d(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const a=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,a.get?a:{enumerable:!0,get:()=>t[e]})}}return r.default=t,Object.freeze(r)}const n=d(s);function p({...t}){return o.jsxRuntimeExports.jsx(n.Root,{"data-slot":"popover",...t})}function c({...t}){return o.jsxRuntimeExports.jsx(n.Trigger,{"data-slot":"popover-trigger",...t})}function u({className:t,align:r="center",sideOffset:e=4,collisionPadding:a=24,...i}){return o.jsxRuntimeExports.jsx(n.Portal,{children:o.jsxRuntimeExports.jsx(n.Content,{"data-slot":"popover-content",align:r,sideOffset:e,className:o.cn(`
|
|
2
|
+
z-50 w-72 origin-(--radix-popover-content-transform-origin)
|
|
3
|
+
rounded-md border bg-popover p-4 text-popover-foreground shadow-md
|
|
4
|
+
outline-hidden
|
|
5
|
+
data-[side=bottom]:slide-in-from-top-2
|
|
6
|
+
data-[side=left]:slide-in-from-right-2
|
|
7
|
+
data-[side=right]:slide-in-from-left-2
|
|
8
|
+
data-[side=top]:slide-in-from-bottom-2
|
|
9
|
+
data-[state=closed]:animate-out data-[state=closed]:fade-out-0
|
|
10
|
+
data-[state=closed]:zoom-out-95
|
|
11
|
+
data-[state=open]:animate-in data-[state=open]:fade-in-0
|
|
12
|
+
data-[state=open]:zoom-in-95
|
|
13
|
+
`,t),collisionPadding:a,...i})})}function l({...t}){return o.jsxRuntimeExports.jsx(n.Anchor,{"data-slot":"popover-anchor",...t})}exports.Popover=p;exports.PopoverAnchor=l;exports.PopoverContent=u;exports.PopoverTrigger=c;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as t, c as s } from "./index-
|
|
1
|
+
import { j as t, c as s } from "./index-CwFDnnd3.js";
|
|
2
2
|
import * as e from "@radix-ui/react-popover";
|
|
3
3
|
function p({
|
|
4
4
|
...o
|
|
@@ -24,7 +24,19 @@ function c({
|
|
|
24
24
|
align: a,
|
|
25
25
|
sideOffset: r,
|
|
26
26
|
className: s(
|
|
27
|
-
|
|
27
|
+
`
|
|
28
|
+
z-50 w-72 origin-(--radix-popover-content-transform-origin)
|
|
29
|
+
rounded-md border bg-popover p-4 text-popover-foreground shadow-md
|
|
30
|
+
outline-hidden
|
|
31
|
+
data-[side=bottom]:slide-in-from-top-2
|
|
32
|
+
data-[side=left]:slide-in-from-right-2
|
|
33
|
+
data-[side=right]:slide-in-from-left-2
|
|
34
|
+
data-[side=top]:slide-in-from-bottom-2
|
|
35
|
+
data-[state=closed]:animate-out data-[state=closed]:fade-out-0
|
|
36
|
+
data-[state=closed]:zoom-out-95
|
|
37
|
+
data-[state=open]:animate-in data-[state=open]:fade-in-0
|
|
38
|
+
data-[state=open]:zoom-in-95
|
|
39
|
+
`,
|
|
28
40
|
o
|
|
29
41
|
),
|
|
30
42
|
collisionPadding: n,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as r, c as s } from "./index-
|
|
1
|
+
import { j as r, c as s } from "./index-CwFDnnd3.js";
|
|
2
2
|
import * as o from "@radix-ui/react-scroll-area";
|
|
3
|
-
function
|
|
3
|
+
function c({
|
|
4
4
|
className: e,
|
|
5
5
|
children: l,
|
|
6
6
|
...a
|
|
@@ -16,7 +16,12 @@ function i({
|
|
|
16
16
|
o.Viewport,
|
|
17
17
|
{
|
|
18
18
|
"data-slot": "scroll-area-viewport",
|
|
19
|
-
className:
|
|
19
|
+
className: `\r
|
|
20
|
+
size-full rounded-[inherit] text-foreground\r
|
|
21
|
+
transition-[color,box-shadow] outline-none\r
|
|
22
|
+
focus-visible:ring-[3px] focus-visible:ring-ring/50\r
|
|
23
|
+
focus-visible:outline-1\r
|
|
24
|
+
`,
|
|
20
25
|
children: l
|
|
21
26
|
}
|
|
22
27
|
),
|
|
@@ -47,13 +52,13 @@ function t({
|
|
|
47
52
|
o.ScrollAreaThumb,
|
|
48
53
|
{
|
|
49
54
|
"data-slot": "scroll-area-thumb",
|
|
50
|
-
className: "
|
|
55
|
+
className: "relative flex-1 rounded-full bg-border"
|
|
51
56
|
}
|
|
52
57
|
)
|
|
53
58
|
}
|
|
54
59
|
);
|
|
55
60
|
}
|
|
56
61
|
export {
|
|
57
|
-
|
|
62
|
+
c as S,
|
|
58
63
|
t as a
|
|
59
64
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";const l=require("./index-Bfismeyo.cjs"),a=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 n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const o=c(a);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:`\r
|
|
2
|
+
size-full rounded-[inherit] text-foreground\r
|
|
3
|
+
transition-[color,box-shadow] outline-none\r
|
|
4
|
+
focus-visible:ring-[3px] focus-visible:ring-ring/50\r
|
|
5
|
+
focus-visible:outline-1\r
|
|
6
|
+
`,children:e}),l.jsxRuntimeExports.jsx(s,{}),l.jsxRuntimeExports.jsx(o.Corner,{})]})}function s({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:"relative flex-1 rounded-full bg-border"})})}exports.ScrollArea=i;exports.ScrollBar=s;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";const i=require("./index-Bfismeyo.cjs"),a=require("@radix-ui/react-toggle"),s=require("./index-BmhzhLcV.cjs");function l(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const d=l(a),o=s.cva(`
|
|
2
|
+
inline-flex items-center justify-center gap-2 rounded-md paragraph-sm
|
|
3
|
+
font-semibold whitespace-nowrap text-foreground
|
|
4
|
+
transition-[color,box-shadow] outline-none
|
|
5
|
+
hover:bg-muted hover:text-muted-foreground
|
|
6
|
+
focus-visible:border-ring focus-visible:ring-[3px]
|
|
7
|
+
focus-visible:ring-ring/50
|
|
8
|
+
disabled:pointer-events-none disabled:opacity-50
|
|
9
|
+
aria-invalid:border-destructive-foreground
|
|
10
|
+
aria-invalid:ring-destructive-foreground/20
|
|
11
|
+
data-[state=on]:bg-accent data-[state=on]:text-accent-foreground
|
|
12
|
+
dark:aria-invalid:ring-destructive-foreground/40
|
|
13
|
+
[&_svg]:pointer-events-none [&_svg]:shrink-0
|
|
14
|
+
[&_svg:not([class*='size-'])]:size-4
|
|
15
|
+
`,{variants:{variant:{default:"bg-transparent",outline:`
|
|
16
|
+
border border-input bg-transparent shadow-xs
|
|
17
|
+
hover:bg-accent hover:text-accent-foreground
|
|
18
|
+
`},size:{xs:`
|
|
19
|
+
h-7 min-w-7 px-1.5 label-sm
|
|
20
|
+
[&_svg:not([class*="size-"])]:size-3.5
|
|
21
|
+
`,sm:"h-8 min-w-8 px-2 label-md",md:"h-12 min-w-12 px-3 label-lg",lg:"h-16 min-w-16 px-4 label-xl"}},defaultVariants:{variant:"default",size:"md"}});function g({className:e,variant:n,size:t,...r}){return i.jsxRuntimeExports.jsx(d.Root,{"data-slot":"toggle",className:i.cn(o({variant:n,size:t,className:e})),...r})}exports.Toggle=g;exports.toggleVariants=o;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { j as n, c as i } from "./index-CwFDnnd3.js";
|
|
2
|
+
import * as o from "@radix-ui/react-toggle";
|
|
3
|
+
import { c as s } from "./index-CnqageB2.js";
|
|
4
|
+
const d = s(
|
|
5
|
+
`
|
|
6
|
+
inline-flex items-center justify-center gap-2 rounded-md paragraph-sm
|
|
7
|
+
font-semibold whitespace-nowrap text-foreground
|
|
8
|
+
transition-[color,box-shadow] outline-none
|
|
9
|
+
hover:bg-muted hover:text-muted-foreground
|
|
10
|
+
focus-visible:border-ring focus-visible:ring-[3px]
|
|
11
|
+
focus-visible:ring-ring/50
|
|
12
|
+
disabled:pointer-events-none disabled:opacity-50
|
|
13
|
+
aria-invalid:border-destructive-foreground
|
|
14
|
+
aria-invalid:ring-destructive-foreground/20
|
|
15
|
+
data-[state=on]:bg-accent data-[state=on]:text-accent-foreground
|
|
16
|
+
dark:aria-invalid:ring-destructive-foreground/40
|
|
17
|
+
[&_svg]:pointer-events-none [&_svg]:shrink-0
|
|
18
|
+
[&_svg:not([class*='size-'])]:size-4
|
|
19
|
+
`,
|
|
20
|
+
{
|
|
21
|
+
variants: {
|
|
22
|
+
variant: {
|
|
23
|
+
default: "bg-transparent",
|
|
24
|
+
outline: `
|
|
25
|
+
border border-input bg-transparent shadow-xs
|
|
26
|
+
hover:bg-accent hover:text-accent-foreground
|
|
27
|
+
`
|
|
28
|
+
},
|
|
29
|
+
size: {
|
|
30
|
+
xs: `
|
|
31
|
+
h-7 min-w-7 px-1.5 label-sm
|
|
32
|
+
[&_svg:not([class*="size-"])]:size-3.5
|
|
33
|
+
`,
|
|
34
|
+
sm: "h-8 min-w-8 px-2 label-md",
|
|
35
|
+
md: "h-12 min-w-12 px-3 label-lg",
|
|
36
|
+
lg: "h-16 min-w-16 px-4 label-xl"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
defaultVariants: {
|
|
40
|
+
variant: "default",
|
|
41
|
+
size: "md"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
function c({
|
|
46
|
+
className: e,
|
|
47
|
+
variant: t,
|
|
48
|
+
size: r,
|
|
49
|
+
...a
|
|
50
|
+
}) {
|
|
51
|
+
return /* @__PURE__ */ n.jsx(
|
|
52
|
+
o.Root,
|
|
53
|
+
{
|
|
54
|
+
"data-slot": "toggle",
|
|
55
|
+
className: i(d({ variant: t, size: r, className: e })),
|
|
56
|
+
...a
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
export {
|
|
61
|
+
c as T,
|
|
62
|
+
d as t
|
|
63
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { j as o, c as s } from "./index-CwFDnnd3.js";
|
|
2
|
+
import * as r from "@radix-ui/react-tooltip";
|
|
3
|
+
function d({
|
|
4
|
+
delayDuration: t = 0,
|
|
5
|
+
...a
|
|
6
|
+
}) {
|
|
7
|
+
return /* @__PURE__ */ o.jsx(
|
|
8
|
+
r.Provider,
|
|
9
|
+
{
|
|
10
|
+
"data-slot": "tooltip-provider",
|
|
11
|
+
delayDuration: t,
|
|
12
|
+
...a
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
function p({
|
|
17
|
+
...t
|
|
18
|
+
}) {
|
|
19
|
+
return /* @__PURE__ */ o.jsx(d, { children: /* @__PURE__ */ o.jsx(r.Root, { "data-slot": "tooltip", ...t }) });
|
|
20
|
+
}
|
|
21
|
+
function c({
|
|
22
|
+
...t
|
|
23
|
+
}) {
|
|
24
|
+
return /* @__PURE__ */ o.jsx(r.Trigger, { "data-slot": "tooltip-trigger", ...t });
|
|
25
|
+
}
|
|
26
|
+
function m({
|
|
27
|
+
className: t,
|
|
28
|
+
sideOffset: a = 0,
|
|
29
|
+
collisionPadding: i = 24,
|
|
30
|
+
children: e,
|
|
31
|
+
...n
|
|
32
|
+
}) {
|
|
33
|
+
return /* @__PURE__ */ o.jsx(r.Portal, { children: /* @__PURE__ */ o.jsxs(
|
|
34
|
+
r.Content,
|
|
35
|
+
{
|
|
36
|
+
"data-slot": "tooltip-content",
|
|
37
|
+
sideOffset: a,
|
|
38
|
+
className: s(
|
|
39
|
+
`
|
|
40
|
+
z-50 w-fit origin-(--radix-tooltip-content-transform-origin)
|
|
41
|
+
animate-in rounded-lg bg-foreground px-3 py-1.5 paragraph-sm
|
|
42
|
+
text-balance text-background shadow-sm fade-in-0 zoom-in-95
|
|
43
|
+
data-[side=bottom]:slide-in-from-top-2
|
|
44
|
+
data-[side=left]:slide-in-from-right-2
|
|
45
|
+
data-[side=right]:slide-in-from-left-2
|
|
46
|
+
data-[side=top]:slide-in-from-bottom-2
|
|
47
|
+
data-[state=closed]:animate-out data-[state=closed]:fade-out-0
|
|
48
|
+
data-[state=closed]:zoom-out-95
|
|
49
|
+
`,
|
|
50
|
+
t
|
|
51
|
+
),
|
|
52
|
+
collisionPadding: i,
|
|
53
|
+
...n,
|
|
54
|
+
children: [
|
|
55
|
+
e,
|
|
56
|
+
/* @__PURE__ */ o.jsx(
|
|
57
|
+
r.Arrow,
|
|
58
|
+
{
|
|
59
|
+
className: `\r
|
|
60
|
+
z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px]\r
|
|
61
|
+
bg-foreground fill-foreground\r
|
|
62
|
+
`
|
|
63
|
+
}
|
|
64
|
+
)
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
) });
|
|
68
|
+
}
|
|
69
|
+
export {
|
|
70
|
+
p as T,
|
|
71
|
+
m as a,
|
|
72
|
+
d as b,
|
|
73
|
+
c
|
|
74
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";const o=require("./index-Bfismeyo.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 u({...t}){return o.jsxRuntimeExports.jsx(i.Trigger,{"data-slot":"tooltip-trigger",...t})}function c({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(`
|
|
2
|
+
z-50 w-fit origin-(--radix-tooltip-content-transform-origin)
|
|
3
|
+
animate-in rounded-lg bg-foreground px-3 py-1.5 paragraph-sm
|
|
4
|
+
text-balance text-background shadow-sm fade-in-0 zoom-in-95
|
|
5
|
+
data-[side=bottom]:slide-in-from-top-2
|
|
6
|
+
data-[side=left]:slide-in-from-right-2
|
|
7
|
+
data-[side=right]:slide-in-from-left-2
|
|
8
|
+
data-[side=top]:slide-in-from-bottom-2
|
|
9
|
+
data-[state=closed]:animate-out data-[state=closed]:fade-out-0
|
|
10
|
+
data-[state=closed]:zoom-out-95
|
|
11
|
+
`,t),collisionPadding:r,...a,children:[n,o.jsxRuntimeExports.jsx(i.Arrow,{className:`\r
|
|
12
|
+
z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px]\r
|
|
13
|
+
bg-foreground fill-foreground\r
|
|
14
|
+
`})]})})}exports.Tooltip=p;exports.TooltipContent=c;exports.TooltipProvider=s;exports.TooltipTrigger=u;
|