@clasing/ui 2.0.4 → 2.0.5
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-B_J-uqVk.js → badge-DgjaD6g5.js} +5 -5
- package/dist/{badge-BMe7WNGM.cjs → badge-DuEEk3J_.cjs} +1 -1
- package/dist/{button-DPbsJTTm.js → button-D8hlW1CJ.js} +103 -103
- package/dist/button-U1793OQ4.cjs +1 -0
- package/dist/{card-DiFJZ6gb.cjs → card-BJMc0row.cjs} +1 -1
- package/dist/{card-3-vRPTXr.js → card-DPaMJS2f.js} +1 -1
- package/dist/{chip-wy9RL5iU.js → chip-C5OWe3FG.js} +16 -16
- package/dist/chip-CXa6E8Cf.cjs +1 -0
- package/dist/command-B7wbtmbM.cjs +1 -0
- package/dist/{command-DTwO6Xc5.js → command-RWDkdfba.js} +64 -64
- package/dist/components/accordion.cjs.js +1 -1
- package/dist/components/accordion.es.js +15 -15
- 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.es.js +20 -20
- package/dist/components/avatar.cjs.js +1 -1
- package/dist/components/avatar.es.js +9 -9
- package/dist/components/badge.cjs.js +1 -1
- package/dist/components/badge.es.js +1 -1
- package/dist/components/blocks/interactive-card.cjs.js +1 -1
- package/dist/components/blocks/interactive-card.es.js +37 -37
- package/dist/components/blocks/selectable-chips.cjs.js +1 -1
- package/dist/components/blocks/selectable-chips.es.js +10 -10
- package/dist/components/breadcrumb.cjs.js +1 -1
- package/dist/components/breadcrumb.es.js +6 -6
- package/dist/components/button.cjs.js +1 -1
- package/dist/components/button.es.js +1 -1
- package/dist/components/calendar.cjs.js +1 -1
- package/dist/components/calendar.es.js +5 -5
- package/dist/components/card.cjs.js +1 -1
- package/dist/components/card.es.js +1 -1
- package/dist/components/chart.cjs.js +2 -2
- package/dist/components/chart.es.js +2 -2
- package/dist/components/checkbox.cjs.js +1 -1
- package/dist/components/checkbox.es.js +1 -1
- package/dist/components/chip.cjs.js +1 -1
- package/dist/components/chip.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 +7 -7
- package/dist/components/dialog.cjs.js +1 -1
- package/dist/components/dialog.es.js +1 -1
- package/dist/components/drawer.cjs.js +1 -1
- package/dist/components/drawer.es.js +30 -30
- package/dist/components/dropdown-menu.cjs.js +1 -1
- package/dist/components/dropdown-menu.es.js +7 -7
- package/dist/components/form.cjs.js +1 -1
- package/dist/components/form.es.js +3 -3
- package/dist/components/icon-component.cjs.js +1 -1
- package/dist/components/icon-component.es.js +1 -1
- package/dist/components/input-otp.cjs.js +1 -1
- package/dist/components/input-otp.es.js +2 -2
- package/dist/components/input.cjs.js +1 -1
- 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 +8 -8
- package/dist/components/multi-select.cjs.js +1 -1
- package/dist/components/multi-select.es.js +8 -8
- package/dist/components/navigation-menu.cjs.js +1 -1
- package/dist/components/navigation-menu.es.js +3 -3
- package/dist/components/phone-input.cjs.js +1 -1
- package/dist/components/phone-input.es.js +39 -39
- package/dist/components/resizable.cjs.js +1 -1
- package/dist/components/resizable.es.js +1 -1
- package/dist/components/select.cjs.js +1 -1
- package/dist/components/select.es.js +7 -7
- package/dist/components/sheet.cjs.js +1 -1
- package/dist/components/sheet.es.js +2 -2
- package/dist/components/table.cjs.js +1 -1
- package/dist/components/table.es.js +28 -28
- package/dist/components/textarea.cjs.js +1 -1
- package/dist/components/textarea.es.js +17 -17
- package/dist/components/toggle-group.cjs.js +1 -1
- package/dist/components/toggle-group.es.js +1 -1
- 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-D9ZObHR9.js → dialog-BSEMFrzb.js} +7 -7
- package/dist/{dialog-CMSUa1RD.cjs → dialog-aYmcf_6q.cjs} +1 -1
- package/dist/icon-component-4lyl8wE_.cjs +1 -0
- package/dist/{icon-component-CxQsODCa.js → icon-component-Db_44zX2.js} +2 -2
- package/dist/{input-C71fsEVP.js → input-CUpmfQgR.js} +24 -24
- package/dist/input-belq5zLm.cjs +1 -0
- package/dist/label-CKObiJEl.js +22 -0
- package/dist/{label-U5GnYvFO.cjs → label-RxaHfl3U.cjs} +1 -1
- package/dist/{toggle-BE4UelY4.js → toggle-DkQSX3ux.js} +5 -5
- package/dist/toggle-v18XjPC4.cjs +1 -0
- package/dist/{tooltip-Bxh10S4Q.js → tooltip-DgWl3klK.js} +1 -1
- package/dist/tooltip-__VfWmJD.cjs +1 -0
- package/dist/ui.css +692 -688
- package/package.json +357 -357
- package/dist/button-DcyXjceS.cjs +0 -1
- package/dist/chip-BCFqRgCq.cjs +0 -1
- package/dist/command-KZ-02POP.cjs +0 -1
- package/dist/icon-component-D5YssRbR.cjs +0 -1
- package/dist/input-B_INrEy1.cjs +0 -1
- package/dist/label-_kG7WBoJ.js +0 -22
- package/dist/toggle-BEGyyGWY.cjs +0 -1
- package/dist/tooltip-BRSR0-4n.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../tooltip-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../tooltip-__VfWmJD.cjs");exports.Tooltip=o.Tooltip;exports.TooltipContent=o.TooltipContent;exports.TooltipProvider=o.TooltipProvider;exports.TooltipTrigger=o.TooltipTrigger;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as t } from "./jsx-runtime-DywqP_6a.js";
|
|
2
2
|
import * as e from "@radix-ui/react-dialog";
|
|
3
3
|
import { c as s } from "./index-CRiPKpXj.js";
|
|
4
|
-
import { I as l } from "./icon-component-
|
|
4
|
+
import { I as l } from "./icon-component-Db_44zX2.js";
|
|
5
5
|
function f({
|
|
6
6
|
...a
|
|
7
7
|
}) {
|
|
@@ -17,7 +17,7 @@ function r({
|
|
|
17
17
|
}) {
|
|
18
18
|
return /* @__PURE__ */ t.jsx(e.Portal, { "data-slot": "dialog-portal", ...a });
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function p({
|
|
21
21
|
...a
|
|
22
22
|
}) {
|
|
23
23
|
return /* @__PURE__ */ t.jsx(e.Close, { "data-slot": "dialog-close", ...a });
|
|
@@ -38,7 +38,7 @@ function d({
|
|
|
38
38
|
}
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function x({
|
|
42
42
|
className: a,
|
|
43
43
|
children: o,
|
|
44
44
|
showCloseButton: n = !0,
|
|
@@ -104,7 +104,7 @@ function v({
|
|
|
104
104
|
e.Title,
|
|
105
105
|
{
|
|
106
106
|
"data-slot": "dialog-title",
|
|
107
|
-
className: s("
|
|
107
|
+
className: s("label-2xl font-semibold", a),
|
|
108
108
|
...o
|
|
109
109
|
}
|
|
110
110
|
);
|
|
@@ -117,15 +117,15 @@ function b({
|
|
|
117
117
|
e.Description,
|
|
118
118
|
{
|
|
119
119
|
"data-slot": "dialog-description",
|
|
120
|
-
className: s("text-muted-foreground
|
|
120
|
+
className: s("text-muted-foreground paragraph-md", a),
|
|
121
121
|
...o
|
|
122
122
|
}
|
|
123
123
|
);
|
|
124
124
|
}
|
|
125
125
|
export {
|
|
126
126
|
f as D,
|
|
127
|
-
|
|
128
|
-
|
|
127
|
+
p as a,
|
|
128
|
+
x as b,
|
|
129
129
|
b as c,
|
|
130
130
|
D as d,
|
|
131
131
|
j as e,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("./jsx-runtime-BuHQgaKs.cjs"),d=require("@radix-ui/react-dialog"),n=require("./index-DoxiiusW.cjs"),c=require("./icon-component-
|
|
1
|
+
"use strict";const o=require("./jsx-runtime-BuHQgaKs.cjs"),d=require("@radix-ui/react-dialog"),n=require("./index-DoxiiusW.cjs"),c=require("./icon-component-4lyl8wE_.cjs");function u(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const i=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>t[s]})}}return e.default=t,Object.freeze(e)}const a=u(d);function g({...t}){return o.jsxRuntimeExports.jsx(a.Root,{"data-slot":"dialog",...t})}function x({...t}){return o.jsxRuntimeExports.jsx(a.Trigger,{"data-slot":"dialog-trigger",...t})}function r({...t}){return o.jsxRuntimeExports.jsx(a.Portal,{"data-slot":"dialog-portal",...t})}function p({...t}){return o.jsxRuntimeExports.jsx(a.Close,{"data-slot":"dialog-close",...t})}function l({className:t,...e}){return o.jsxRuntimeExports.jsx(a.Overlay,{"data-slot":"dialog-overlay",className:n.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...e})}function m({className:t,children:e,showCloseButton:s=!0,...i}){return o.jsxRuntimeExports.jsxs(r,{"data-slot":"dialog-portal",children:[o.jsxRuntimeExports.jsx(l,{}),o.jsxRuntimeExports.jsxs(a.Content,{"data-slot":"dialog-content",className:n.cn("bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...i,children:[e,s&&o.jsxRuntimeExports.jsxs(a.Close,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[o.jsxRuntimeExports.jsx(c.IconComponent,{iconName:"IconX"}),o.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function f({className:t,...e}){return o.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-header",className:n.cn("flex flex-col gap-2 text-left",t),...e})}function j({className:t,...e}){return o.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-footer",className:n.cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...e})}function D({className:t,...e}){return o.jsxRuntimeExports.jsx(a.Title,{"data-slot":"dialog-title",className:n.cn("label-2xl font-semibold",t),...e})}function b({className:t,...e}){return o.jsxRuntimeExports.jsx(a.Description,{"data-slot":"dialog-description",className:n.cn("text-muted-foreground paragraph-md",t),...e})}exports.Dialog=g;exports.DialogClose=p;exports.DialogContent=m;exports.DialogDescription=b;exports.DialogFooter=j;exports.DialogHeader=f;exports.DialogOverlay=l;exports.DialogPortal=r;exports.DialogTitle=D;exports.DialogTrigger=x;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const c=require("./jsx-runtime-BuHQgaKs.cjs"),i=require("./index-DoxiiusW.cjs"),m=require("@tabler/icons-react"),p=require("react");function f(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=f(m),u=p.forwardRef(({iconName:e,iconText:n,stroke:t="1.5",onClick:r,size:o=24,...l},a)=>{if(e){const s=d[e];return c.jsxRuntimeExports.jsx(s,{role:"img",ref:a,stroke:t,onClick:r,size:o,className:i.cn("pointer-events-none",l.className),...l})}else if(n){const s=n.slice(0,2).toUpperCase();return c.jsxRuntimeExports.jsx("div",{ref:a,className:"pointer-events-none flex items-center justify-center",style:{width:o,height:o},role:"img",children:c.jsxRuntimeExports.jsx("p",{className:i.cn({"label-sm":o<=16,"label-md":o>16}),children:s})})}else return console.error(`Icon ${e} not found`),null});u.displayName="IconComponent";const j=u;exports.IconComponent=j;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { j as r } from "./jsx-runtime-DywqP_6a.js";
|
|
2
2
|
import { c as p } from "./index-CRiPKpXj.js";
|
|
3
|
-
import { c as
|
|
4
|
-
import * as
|
|
5
|
-
import { B as g } from "./button-
|
|
6
|
-
import { I as u } from "./icon-component-
|
|
7
|
-
const m =
|
|
8
|
-
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input file:
|
|
3
|
+
import { c as b } from "./index-BqtVL8d-.js";
|
|
4
|
+
import * as x from "react";
|
|
5
|
+
import { B as g } from "./button-D8hlW1CJ.js";
|
|
6
|
+
import { I as u } from "./icon-component-Db_44zX2.js";
|
|
7
|
+
const m = b(
|
|
8
|
+
"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",
|
|
9
9
|
{
|
|
10
10
|
variants: {
|
|
11
11
|
size: {
|
|
12
|
-
xs: "
|
|
13
|
-
sm: "
|
|
14
|
-
md: "
|
|
15
|
-
lg: "
|
|
12
|
+
xs: "label-sm h-7 px-2 py-1",
|
|
13
|
+
sm: "label-md h-8 px-2 py-1",
|
|
14
|
+
md: "label-lg h-12 px-3 py-1",
|
|
15
|
+
lg: "label-xl h-16 px-4 py-2"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
defaultVariants: {
|
|
@@ -23,13 +23,13 @@ const m = x(
|
|
|
23
23
|
function k({
|
|
24
24
|
className: n,
|
|
25
25
|
type: s,
|
|
26
|
-
size:
|
|
26
|
+
size: a,
|
|
27
27
|
iconName: l,
|
|
28
|
-
iconPosition:
|
|
28
|
+
iconPosition: i = "left",
|
|
29
29
|
...d
|
|
30
30
|
}) {
|
|
31
|
-
const [
|
|
32
|
-
c(!
|
|
31
|
+
const [t, c] = x.useState(!1), e = l ? ((o) => typeof o == "string" ? { name: o } : o)(l) : void 0, f = () => {
|
|
32
|
+
c(!t);
|
|
33
33
|
};
|
|
34
34
|
return !e && s !== "password" ? /* @__PURE__ */ r.jsx(
|
|
35
35
|
"input",
|
|
@@ -37,7 +37,7 @@ function k({
|
|
|
37
37
|
type: s,
|
|
38
38
|
"data-slot": "input",
|
|
39
39
|
className: p(
|
|
40
|
-
m({ size:
|
|
40
|
+
m({ size: a }),
|
|
41
41
|
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
42
42
|
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
43
43
|
n
|
|
@@ -45,7 +45,7 @@ function k({
|
|
|
45
45
|
...d
|
|
46
46
|
}
|
|
47
47
|
) : /* @__PURE__ */ r.jsxs("div", { className: "relative w-full", children: [
|
|
48
|
-
e &&
|
|
48
|
+
e && i === "left" && /* @__PURE__ */ r.jsx("span", { className: "text-muted-foreground absolute top-1/2 left-3 -translate-y-1/2", children: /* @__PURE__ */ r.jsx(
|
|
49
49
|
u,
|
|
50
50
|
{
|
|
51
51
|
iconName: e.name,
|
|
@@ -56,14 +56,14 @@ function k({
|
|
|
56
56
|
/* @__PURE__ */ r.jsx(
|
|
57
57
|
"input",
|
|
58
58
|
{
|
|
59
|
-
type: s === "password" ?
|
|
59
|
+
type: s === "password" ? t ? "text" : "password" : s,
|
|
60
60
|
"data-slot": "input",
|
|
61
61
|
className: p(
|
|
62
|
-
m({ size:
|
|
62
|
+
m({ size: a }),
|
|
63
63
|
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
64
64
|
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
65
|
-
e &&
|
|
66
|
-
e &&
|
|
65
|
+
e && i === "left" ? "pl-10" : "",
|
|
66
|
+
e && i === "right" || s === "password" ? "pr-10" : "",
|
|
67
67
|
n
|
|
68
68
|
),
|
|
69
69
|
...d
|
|
@@ -74,15 +74,15 @@ function k({
|
|
|
74
74
|
{
|
|
75
75
|
variant: "inverse",
|
|
76
76
|
type: "button",
|
|
77
|
-
size:
|
|
77
|
+
size: a === "xs" || a === "sm" ? "xs" : "md",
|
|
78
78
|
tabIndex: -1,
|
|
79
|
-
"aria-label":
|
|
79
|
+
"aria-label": t ? "Hide password" : "Show password",
|
|
80
80
|
className: "absolute top-1/2 right-3 -translate-y-1/2",
|
|
81
81
|
onClick: f,
|
|
82
|
-
iconName:
|
|
82
|
+
iconName: t ? "IconEyeOff" : "IconEye"
|
|
83
83
|
}
|
|
84
84
|
),
|
|
85
|
-
e &&
|
|
85
|
+
e && i === "right" && s !== "password" && /* @__PURE__ */ r.jsx("span", { className: "text-muted-foreground absolute top-1/2 right-3 -translate-y-1/2", children: /* @__PURE__ */ r.jsx(
|
|
86
86
|
u,
|
|
87
87
|
{
|
|
88
88
|
iconName: e.name,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("./jsx-runtime-BuHQgaKs.cjs"),u=require("./index-DoxiiusW.cjs"),f=require("./index-C8P6Mn4U.cjs"),b=require("react"),g=require("./button-U1793OQ4.cjs"),c=require("./icon-component-4lyl8wE_.cjs");function v(s){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const t in s)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(s,t);Object.defineProperty(e,t,i.get?i:{enumerable:!0,get:()=>s[t]})}}return e.default=s,Object.freeze(e)}const j=v(b),p=f.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 w({className:s,type:e,size:t,iconName:i,iconPosition:a="left",...d}){const[o,x]=j.useState(!1),r=i?(l=>typeof l=="string"?{name:l}:l)(i):void 0,m=()=>{x(!o)};return!r&&e!=="password"?n.jsxRuntimeExports.jsx("input",{type:e,"data-slot":"input",className:u.cn(p({size:t}),"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",s),...d}):n.jsxRuntimeExports.jsxs("div",{className:"relative w-full",children:[r&&a==="left"&&n.jsxRuntimeExports.jsx("span",{className:"text-muted-foreground absolute top-1/2 left-3 -translate-y-1/2",children:n.jsxRuntimeExports.jsx(c.IconComponent,{iconName:r.name,stroke:r.stroke,size:20})}),n.jsxRuntimeExports.jsx("input",{type:e==="password"?o?"text":"password":e,"data-slot":"input",className:u.cn(p({size:t}),"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",r&&a==="left"?"pl-10":"",r&&a==="right"||e==="password"?"pr-10":"",s),...d}),e==="password"&&n.jsxRuntimeExports.jsx(g.Button,{variant:"inverse",type:"button",size:t==="xs"||t==="sm"?"xs":"md",tabIndex:-1,"aria-label":o?"Hide password":"Show password",className:"absolute top-1/2 right-3 -translate-y-1/2",onClick:m,iconName:o?"IconEyeOff":"IconEye"}),r&&a==="right"&&e!=="password"&&n.jsxRuntimeExports.jsx("span",{className:"text-muted-foreground absolute top-1/2 right-3 -translate-y-1/2",children:n.jsxRuntimeExports.jsx(c.IconComponent,{iconName:r.name,stroke:r.stroke,size:20})})]})}exports.Input=w;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { j as o } from "./jsx-runtime-DywqP_6a.js";
|
|
2
|
+
import * as t from "@radix-ui/react-label";
|
|
3
|
+
import { c as r } from "./index-CRiPKpXj.js";
|
|
4
|
+
function i({
|
|
5
|
+
className: e,
|
|
6
|
+
...a
|
|
7
|
+
}) {
|
|
8
|
+
return /* @__PURE__ */ o.jsx(
|
|
9
|
+
t.Root,
|
|
10
|
+
{
|
|
11
|
+
"data-slot": "label",
|
|
12
|
+
className: r(
|
|
13
|
+
"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",
|
|
14
|
+
e
|
|
15
|
+
),
|
|
16
|
+
...a
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
i as L
|
|
22
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("./jsx-runtime-BuHQgaKs.cjs"),o=require("@radix-ui/react-label"),i=require("./index-DoxiiusW.cjs");function l(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 s=l(o);function c({className:e,...t}){return a.jsxRuntimeExports.jsx(s.Root,{"data-slot":"label",className:i.cn("
|
|
1
|
+
"use strict";const a=require("./jsx-runtime-BuHQgaKs.cjs"),o=require("@radix-ui/react-label"),i=require("./index-DoxiiusW.cjs");function l(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 s=l(o);function c({className:e,...t}){return a.jsxRuntimeExports.jsx(s.Root,{"data-slot":"label",className:i.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=c;
|
|
@@ -3,7 +3,7 @@ import * as n from "@radix-ui/react-toggle";
|
|
|
3
3
|
import { c as s } from "./index-BqtVL8d-.js";
|
|
4
4
|
import { c as o } from "./index-CRiPKpXj.js";
|
|
5
5
|
const l = s(
|
|
6
|
-
"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
|
|
6
|
+
"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",
|
|
7
7
|
{
|
|
8
8
|
variants: {
|
|
9
9
|
variant: {
|
|
@@ -11,10 +11,10 @@ const l = s(
|
|
|
11
11
|
outline: "border-input hover:bg-accent hover:text-accent-foreground border bg-transparent shadow-xs"
|
|
12
12
|
},
|
|
13
13
|
size: {
|
|
14
|
-
xs: '
|
|
15
|
-
sm: "
|
|
16
|
-
md: "
|
|
17
|
-
lg: "
|
|
14
|
+
xs: 'label-sm h-7 min-w-7 px-1.5 [&_svg:not([class*="size-"])]:size-3.5',
|
|
15
|
+
sm: "label-md h-8 min-w-8 px-2",
|
|
16
|
+
md: "label-lg h-12 min-w-12 px-3",
|
|
17
|
+
lg: "label-xl h-16 min-w-16 px-4"
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
defaultVariants: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("./jsx-runtime-BuHQgaKs.cjs"),o=require("@radix-ui/react-toggle"),s=require("./index-C8P6Mn4U.cjs"),l=require("./index-DoxiiusW.cjs");function c(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 d=c(o),r=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 g({className:e,variant:n,size:t,...i}){return a.jsxRuntimeExports.jsx(d.Root,{"data-slot":"toggle",className:l.cn(r({variant:n,size:t,className:e})),...i})}exports.Toggle=g;exports.toggleVariants=r;
|
|
@@ -36,7 +36,7 @@ function c({
|
|
|
36
36
|
"data-slot": "tooltip-content",
|
|
37
37
|
sideOffset: a,
|
|
38
38
|
className: s(
|
|
39
|
-
"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
|
|
39
|
+
"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",
|
|
40
40
|
t
|
|
41
41
|
),
|
|
42
42
|
...r,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./jsx-runtime-BuHQgaKs.cjs"),a=require("./index-DoxiiusW.cjs"),l=require("@radix-ui/react-tooltip");function d(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(o,i,n.get?n:{enumerable:!0,get:()=>t[i]})}}return o.default=t,Object.freeze(o)}const r=d(l);function s({delayDuration:t=0,...o}){return e.jsxRuntimeExports.jsx(r.Provider,{"data-slot":"tooltip-provider",delayDuration:t,...o})}function p({...t}){return e.jsxRuntimeExports.jsx(s,{children:e.jsxRuntimeExports.jsx(r.Root,{"data-slot":"tooltip",...t})})}function u({...t}){return e.jsxRuntimeExports.jsx(r.Trigger,{"data-slot":"tooltip-trigger",...t})}function c({className:t,sideOffset:o=0,children:i,...n}){return e.jsxRuntimeExports.jsx(r.Portal,{children:e.jsxRuntimeExports.jsxs(r.Content,{"data-slot":"tooltip-content",sideOffset:o,className:a.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),...n,children:[i,e.jsxRuntimeExports.jsx(r.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=c;exports.TooltipProvider=s;exports.TooltipTrigger=u;
|