@clasing/ui 2.0.2 → 2.0.4
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-DknEN5GE.cjs → badge-BMe7WNGM.cjs} +1 -1
- package/dist/{badge-CJxUpkWv.js → badge-B_J-uqVk.js} +22 -22
- package/dist/{button-C5IBh3Tr.js → button-DPbsJTTm.js} +81 -81
- package/dist/button-DcyXjceS.cjs +1 -0
- package/dist/{card-9-UcGdV0.js → card-3-vRPTXr.js} +1 -1
- package/dist/{card-D0D_gMHR.cjs → card-DiFJZ6gb.cjs} +1 -1
- package/dist/chip-BCFqRgCq.cjs +1 -0
- package/dist/{chip-D12iiF8O.js → chip-wy9RL5iU.js} +11 -11
- package/dist/{command-pED95x7-.js → command-DTwO6Xc5.js} +53 -53
- package/dist/command-KZ-02POP.cjs +1 -0
- package/dist/components/accordion.cjs.js +1 -1
- package/dist/components/accordion.es.js +12 -12
- package/dist/components/alert-dialog.cjs.js +1 -1
- package/dist/components/alert-dialog.es.js +14 -14
- package/dist/components/alert.cjs.js +1 -1
- package/dist/components/alert.es.js +33 -33
- 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 +2 -2
- package/dist/components/blocks/selectable-chips.cjs.js +1 -1
- package/dist/components/blocks/selectable-chips.es.js +1 -1
- package/dist/components/breadcrumb.cjs.js +1 -1
- package/dist/components/breadcrumb.es.js +5 -5
- 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 +3 -3
- package/dist/components/chart.es.js +24 -24
- 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 +38 -38
- 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 +1 -1
- package/dist/components/dropdown-menu.cjs.js +1 -1
- package/dist/components/dropdown-menu.es.js +14 -14
- package/dist/components/input-otp.cjs.js +1 -1
- package/dist/components/input-otp.es.js +3 -3
- package/dist/components/input.cjs.js +1 -1
- package/dist/components/input.es.js +1 -1
- package/dist/components/menubar.cjs.js +1 -1
- package/dist/components/menubar.es.js +41 -41
- package/dist/components/multi-select.cjs.js +1 -1
- package/dist/components/multi-select.es.js +2 -2
- package/dist/components/navigation-menu.cjs.js +1 -1
- package/dist/components/navigation-menu.es.js +6 -6
- package/dist/components/phone-input.cjs.js +1 -1
- package/dist/components/phone-input.d.ts +0 -5
- package/dist/components/phone-input.es.js +118 -161
- package/dist/components/select.cjs.js +1 -1
- package/dist/components/select.es.js +25 -22
- package/dist/components/sheet.cjs.js +1 -1
- package/dist/components/sheet.es.js +1 -1
- package/dist/components/table.cjs.js +1 -1
- package/dist/components/table.es.js +2 -2
- package/dist/components/textarea.cjs.js +1 -1
- package/dist/components/textarea.d.ts +1 -1
- package/dist/components/textarea.es.js +4 -4
- 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/{dialog-C15HjAtO.cjs → dialog-CMSUa1RD.cjs} +1 -1
- package/dist/{dialog-DIua9sAl.js → dialog-D9ZObHR9.js} +32 -32
- package/dist/input-B_INrEy1.cjs +1 -0
- package/dist/{input-Bs18T-Y3.js → input-C71fsEVP.js} +11 -11
- package/dist/{toggle-nsKZaKsW.js → toggle-BE4UelY4.js} +9 -9
- package/dist/toggle-BEGyyGWY.cjs +1 -0
- package/dist/ui.css +1 -1
- package/package.json +357 -357
- package/dist/button-BnSM-lrr.cjs +0 -1
- package/dist/chip-DePZ5IYA.cjs +0 -1
- package/dist/command-C4Y6Ixrp.cjs +0 -1
- package/dist/input-wSGCWBH-.cjs +0 -1
- package/dist/toggle-B9JMLYVf.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../jsx-runtime-BuHQgaKs.cjs"),o=require("../index-DoxiiusW.cjs");function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../jsx-runtime-BuHQgaKs.cjs"),o=require("../index-DoxiiusW.cjs");function r({className:t,...e}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:a.jsxRuntimeExports.jsx("table",{"data-slot":"table",className:o.cn("text-paragraph-sm w-full caption-bottom",t),...e})})}function l({className:t,...e}){return a.jsxRuntimeExports.jsx("thead",{"data-slot":"table-header",className:o.cn("[&_tr]:border-b",t),...e})}function s({className:t,...e}){return a.jsxRuntimeExports.jsx("tbody",{"data-slot":"table-body",className:o.cn("[&_tr:last-child]:border-0",t),...e})}function n({className:t,...e}){return a.jsxRuntimeExports.jsx("tfoot",{"data-slot":"table-footer",className:o.cn("bg-muted/50 border-t font-semibold [&>tr]:last:border-b-0",t),...e})}function b({className:t,...e}){return a.jsxRuntimeExports.jsx("tr",{"data-slot":"table-row",className:o.cn("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",t),...e})}function c({className:t,...e}){return a.jsxRuntimeExports.jsx("th",{"data-slot":"table-head",className:o.cn("text-foreground h-10 px-2 text-left align-middle font-semibold whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),...e})}function d({className:t,...e}){return a.jsxRuntimeExports.jsx("td",{"data-slot":"table-cell",className:o.cn("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),...e})}function i({className:t,...e}){return a.jsxRuntimeExports.jsx("caption",{"data-slot":"table-caption",className:o.cn("text-muted-foreground text-paragraph-sm mt-4",t),...e})}exports.Table=r;exports.TableBody=s;exports.TableCaption=i;exports.TableCell=d;exports.TableFooter=n;exports.TableHead=c;exports.TableHeader=l;exports.TableRow=b;
|
|
@@ -10,7 +10,7 @@ function s({ className: t, ...e }) {
|
|
|
10
10
|
"table",
|
|
11
11
|
{
|
|
12
12
|
"data-slot": "table",
|
|
13
|
-
className: o("w-full caption-bottom
|
|
13
|
+
className: o("text-paragraph-sm w-full caption-bottom", t),
|
|
14
14
|
...e
|
|
15
15
|
}
|
|
16
16
|
)
|
|
@@ -97,7 +97,7 @@ function u({
|
|
|
97
97
|
"caption",
|
|
98
98
|
{
|
|
99
99
|
"data-slot": "table-caption",
|
|
100
|
-
className: o("text-muted-foreground mt-4
|
|
100
|
+
className: o("text-muted-foreground text-paragraph-sm mt-4", t),
|
|
101
101
|
...e
|
|
102
102
|
}
|
|
103
103
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../jsx-runtime-BuHQgaKs.cjs"),a=require("../index-DoxiiusW.cjs"),v=require("../index-C8P6Mn4U.cjs"),p=require("../icon-component-D5YssRbR.cjs"),x=v.cva("placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex w-full min-w-0 rounded-md border bg-transparent transition-[color,box-shadow] outline-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{xs:"text-label-sm min-h-16 px-2 py-1",sm:"text-label-md min-h-20 px-2 py-1",md:"text-label-lg min-h-24 px-3 py-2",lg:"text-label-xl min-h-32 px-4 py-3"},resize:{none:"resize-none",vertical:"resize-y",horizontal:"resize-x",both:"resize"}},defaultVariants:{size:"md",resize:"vertical"}});function b({className:o,size:l,resize:d,iconName:u,maxLength:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../jsx-runtime-BuHQgaKs.cjs"),a=require("../index-DoxiiusW.cjs"),v=require("../index-C8P6Mn4U.cjs"),p=require("../icon-component-D5YssRbR.cjs"),x=v.cva("placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex w-full min-w-0 rounded-md border bg-transparent transition-[color,box-shadow] outline-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{xs:"text-label-sm min-h-16 px-2 py-1",sm:"text-label-md min-h-20 px-2 py-1",md:"text-label-lg min-h-24 px-3 py-2",lg:"text-label-xl min-h-32 px-4 py-3"},resize:{none:"resize-none",vertical:"resize-y",horizontal:"resize-x",both:"resize"}},defaultVariants:{size:"md",resize:"vertical"}});function b({className:o,size:l,resize:d,iconName:u,maxLength:r,showCharacterCount:m=!1,...i}){const t=u?(n=>typeof n=="string"?{name:n}:n)(u):void 0,s=i.value?String(i.value).length:0,c=m||r;return!t&&!c?e.jsxRuntimeExports.jsx("textarea",{"data-slot":"textarea",maxLength:r,className:a.cn(x({size:l,resize:d}),"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",o),...i}):e.jsxRuntimeExports.jsxs("div",{className:"space-y-2",children:[e.jsxRuntimeExports.jsxs("div",{className:"relative w-full",children:[e.jsxRuntimeExports.jsx("textarea",{"data-slot":"textarea",maxLength:r,className:a.cn(x({size:l,resize:d}),"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?"pr-10":"",o),...i}),t&&e.jsxRuntimeExports.jsx("span",{className:"text-muted-foreground absolute top-3 right-3",children:e.jsxRuntimeExports.jsx(p.IconComponent,{iconName:t.name,stroke:t.stroke,size:20})})]}),c&&e.jsxRuntimeExports.jsx("div",{className:"flex justify-end",children:e.jsxRuntimeExports.jsx("span",{className:a.cn("text-paragraph-xs text-muted-foreground",{"text-destructive":r&&s>r}),children:r?`${s}/${r}`:s})})]})}exports.Textarea=b;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
import { TablerIconName } from './icon-component';
|
|
4
4
|
declare const textareaStyles: (props?: ({
|
|
5
5
|
size?: "lg" | "md" | "sm" | "xs" | null | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as e } from "../jsx-runtime-DywqP_6a.js";
|
|
2
2
|
import { c as n } from "../index-CRiPKpXj.js";
|
|
3
3
|
import { c as v } from "../index-BqtVL8d-.js";
|
|
4
|
-
import { I as
|
|
4
|
+
import { I as p } from "../icon-component-CxQsODCa.js";
|
|
5
5
|
const x = v(
|
|
6
6
|
"placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex w-full min-w-0 rounded-md border bg-transparent transition-[color,box-shadow] outline-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
7
7
|
{
|
|
@@ -65,8 +65,8 @@ function j({
|
|
|
65
65
|
...t
|
|
66
66
|
}
|
|
67
67
|
),
|
|
68
|
-
i && /* @__PURE__ */ e.jsx("span", { className: "absolute top-3 right-3
|
|
69
|
-
|
|
68
|
+
i && /* @__PURE__ */ e.jsx("span", { className: "text-muted-foreground absolute top-3 right-3", children: /* @__PURE__ */ e.jsx(
|
|
69
|
+
p,
|
|
70
70
|
{
|
|
71
71
|
iconName: i.name,
|
|
72
72
|
stroke: i.stroke,
|
|
@@ -77,7 +77,7 @@ function j({
|
|
|
77
77
|
u && /* @__PURE__ */ e.jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ e.jsx(
|
|
78
78
|
"span",
|
|
79
79
|
{
|
|
80
|
-
className: n("text-xs text-muted-foreground", {
|
|
80
|
+
className: n("text-paragraph-xs text-muted-foreground", {
|
|
81
81
|
"text-destructive": r && a > r
|
|
82
82
|
}),
|
|
83
83
|
children: r ? `${a}/${r}` : a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../jsx-runtime-BuHQgaKs.cjs"),g=require("@radix-ui/react-toggle-group"),m=require("react"),p=require("../toggle-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../jsx-runtime-BuHQgaKs.cjs"),g=require("@radix-ui/react-toggle-group"),m=require("react"),p=require("../toggle-BEGyyGWY.cjs"),s=require("../index-DoxiiusW.cjs");function u(t){const o=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(o,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return o.default=t,Object.freeze(o)}const l=u(g),c=u(m),d=c.createContext({size:"md",variant:"default"});function f({className:t,variant:o,size:e,children:r,...a}){return i.jsxRuntimeExports.jsx(l.Root,{"data-slot":"toggle-group","data-variant":o,"data-size":e,className:s.cn("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",t),...a,children:i.jsxRuntimeExports.jsx(d.Provider,{value:{variant:o,size:e},children:r})})}function x({className:t,children:o,variant:e,size:r,...a}){const n=c.useContext(d);return i.jsxRuntimeExports.jsx(l.Item,{"data-slot":"toggle-group-item","data-variant":n.variant||e,"data-size":n.size||r,className:s.cn(p.toggleVariants({variant:n.variant||e,size:n.size||r}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",t),...a,children:o})}exports.ToggleGroup=f;exports.ToggleGroupItem=x;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as n } from "../jsx-runtime-DywqP_6a.js";
|
|
2
2
|
import * as s from "@radix-ui/react-toggle-group";
|
|
3
3
|
import * as d from "react";
|
|
4
|
-
import { t as m } from "../toggle-
|
|
4
|
+
import { t as m } from "../toggle-BE4UelY4.js";
|
|
5
5
|
import { c as l } from "../index-CRiPKpXj.js";
|
|
6
6
|
const u = d.createContext({
|
|
7
7
|
size: "md",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../toggle-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../toggle-BEGyyGWY.cjs");exports.Toggle=e.Toggle;exports.toggleVariants=e.toggleVariants;
|
|
@@ -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-D5YssRbR.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
|
|
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-D5YssRbR.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("text-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 text-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;
|
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
import { j as
|
|
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
4
|
import { I as l } from "./icon-component-CxQsODCa.js";
|
|
5
5
|
function f({
|
|
6
|
-
...
|
|
6
|
+
...a
|
|
7
7
|
}) {
|
|
8
|
-
return /* @__PURE__ */
|
|
8
|
+
return /* @__PURE__ */ t.jsx(e.Root, { "data-slot": "dialog", ...a });
|
|
9
9
|
}
|
|
10
10
|
function m({
|
|
11
|
-
...
|
|
11
|
+
...a
|
|
12
12
|
}) {
|
|
13
|
-
return /* @__PURE__ */
|
|
13
|
+
return /* @__PURE__ */ t.jsx(e.Trigger, { "data-slot": "dialog-trigger", ...a });
|
|
14
14
|
}
|
|
15
15
|
function r({
|
|
16
|
-
...
|
|
16
|
+
...a
|
|
17
17
|
}) {
|
|
18
|
-
return /* @__PURE__ */
|
|
18
|
+
return /* @__PURE__ */ t.jsx(e.Portal, { "data-slot": "dialog-portal", ...a });
|
|
19
19
|
}
|
|
20
20
|
function x({
|
|
21
|
-
...
|
|
21
|
+
...a
|
|
22
22
|
}) {
|
|
23
|
-
return /* @__PURE__ */
|
|
23
|
+
return /* @__PURE__ */ t.jsx(e.Close, { "data-slot": "dialog-close", ...a });
|
|
24
24
|
}
|
|
25
25
|
function d({
|
|
26
|
-
className:
|
|
26
|
+
className: a,
|
|
27
27
|
...o
|
|
28
28
|
}) {
|
|
29
|
-
return /* @__PURE__ */
|
|
29
|
+
return /* @__PURE__ */ t.jsx(
|
|
30
30
|
e.Overlay,
|
|
31
31
|
{
|
|
32
32
|
"data-slot": "dialog-overlay",
|
|
33
33
|
className: s(
|
|
34
34
|
"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",
|
|
35
|
-
|
|
35
|
+
a
|
|
36
36
|
),
|
|
37
37
|
...o
|
|
38
38
|
}
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
41
|
function p({
|
|
42
|
-
className:
|
|
42
|
+
className: a,
|
|
43
43
|
children: o,
|
|
44
44
|
showCloseButton: n = !0,
|
|
45
45
|
...i
|
|
46
46
|
}) {
|
|
47
|
-
return /* @__PURE__ */
|
|
48
|
-
/* @__PURE__ */
|
|
49
|
-
/* @__PURE__ */
|
|
47
|
+
return /* @__PURE__ */ t.jsxs(r, { "data-slot": "dialog-portal", children: [
|
|
48
|
+
/* @__PURE__ */ t.jsx(d, {}),
|
|
49
|
+
/* @__PURE__ */ t.jsxs(
|
|
50
50
|
e.Content,
|
|
51
51
|
{
|
|
52
52
|
"data-slot": "dialog-content",
|
|
53
53
|
className: s(
|
|
54
54
|
"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",
|
|
55
|
-
|
|
55
|
+
a
|
|
56
56
|
),
|
|
57
57
|
...i,
|
|
58
58
|
children: [
|
|
59
59
|
o,
|
|
60
|
-
n && /* @__PURE__ */
|
|
60
|
+
n && /* @__PURE__ */ t.jsxs(
|
|
61
61
|
e.Close,
|
|
62
62
|
{
|
|
63
63
|
"data-slot": "dialog-close",
|
|
64
64
|
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",
|
|
65
65
|
children: [
|
|
66
|
-
/* @__PURE__ */
|
|
67
|
-
/* @__PURE__ */
|
|
66
|
+
/* @__PURE__ */ t.jsx(l, { iconName: "IconX" }),
|
|
67
|
+
/* @__PURE__ */ t.jsx("span", { className: "sr-only", children: "Close" })
|
|
68
68
|
]
|
|
69
69
|
}
|
|
70
70
|
)
|
|
@@ -73,51 +73,51 @@ function p({
|
|
|
73
73
|
)
|
|
74
74
|
] });
|
|
75
75
|
}
|
|
76
|
-
function j({ className:
|
|
77
|
-
return /* @__PURE__ */
|
|
76
|
+
function j({ className: a, ...o }) {
|
|
77
|
+
return /* @__PURE__ */ t.jsx(
|
|
78
78
|
"div",
|
|
79
79
|
{
|
|
80
80
|
"data-slot": "dialog-header",
|
|
81
|
-
className: s("flex flex-col gap-2 text-
|
|
81
|
+
className: s("flex flex-col gap-2 text-left", a),
|
|
82
82
|
...o
|
|
83
83
|
}
|
|
84
84
|
);
|
|
85
85
|
}
|
|
86
|
-
function D({ className:
|
|
87
|
-
return /* @__PURE__ */
|
|
86
|
+
function D({ className: a, ...o }) {
|
|
87
|
+
return /* @__PURE__ */ t.jsx(
|
|
88
88
|
"div",
|
|
89
89
|
{
|
|
90
90
|
"data-slot": "dialog-footer",
|
|
91
91
|
className: s(
|
|
92
92
|
"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
93
|
-
|
|
93
|
+
a
|
|
94
94
|
),
|
|
95
95
|
...o
|
|
96
96
|
}
|
|
97
97
|
);
|
|
98
98
|
}
|
|
99
99
|
function v({
|
|
100
|
-
className:
|
|
100
|
+
className: a,
|
|
101
101
|
...o
|
|
102
102
|
}) {
|
|
103
|
-
return /* @__PURE__ */
|
|
103
|
+
return /* @__PURE__ */ t.jsx(
|
|
104
104
|
e.Title,
|
|
105
105
|
{
|
|
106
106
|
"data-slot": "dialog-title",
|
|
107
|
-
className: s("text-
|
|
107
|
+
className: s("text-label-2xl font-semibold", a),
|
|
108
108
|
...o
|
|
109
109
|
}
|
|
110
110
|
);
|
|
111
111
|
}
|
|
112
112
|
function b({
|
|
113
|
-
className:
|
|
113
|
+
className: a,
|
|
114
114
|
...o
|
|
115
115
|
}) {
|
|
116
|
-
return /* @__PURE__ */
|
|
116
|
+
return /* @__PURE__ */ t.jsx(
|
|
117
117
|
e.Description,
|
|
118
118
|
{
|
|
119
119
|
"data-slot": "dialog-description",
|
|
120
|
-
className: s("text-muted-foreground text-
|
|
120
|
+
className: s("text-muted-foreground text-paragraph-md", a),
|
|
121
121
|
...o
|
|
122
122
|
}
|
|
123
123
|
);
|
|
@@ -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-DcyXjceS.cjs"),c=require("./icon-component-D5YssRbR.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:text-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:"text-label-sm h-7 px-2 py-1",sm:"text-label-md h-8 px-2 py-1",md:"text-label-lg h-12 px-3 py-1",lg:"text-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;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { j as r } from "./jsx-runtime-DywqP_6a.js";
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as p } from "./index-CRiPKpXj.js";
|
|
3
3
|
import { c as x } from "./index-BqtVL8d-.js";
|
|
4
4
|
import * as b from "react";
|
|
5
|
-
import { B as g } from "./button-
|
|
6
|
-
import { I as
|
|
7
|
-
const
|
|
8
|
-
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input 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:
|
|
5
|
+
import { B as g } from "./button-DPbsJTTm.js";
|
|
6
|
+
import { I as u } from "./icon-component-CxQsODCa.js";
|
|
7
|
+
const m = x(
|
|
8
|
+
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input file:text-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: {
|
|
@@ -36,8 +36,8 @@ function k({
|
|
|
36
36
|
{
|
|
37
37
|
type: s,
|
|
38
38
|
"data-slot": "input",
|
|
39
|
-
className:
|
|
40
|
-
|
|
39
|
+
className: p(
|
|
40
|
+
m({ size: t }),
|
|
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
|
|
@@ -46,7 +46,7 @@ function k({
|
|
|
46
46
|
}
|
|
47
47
|
) : /* @__PURE__ */ r.jsxs("div", { className: "relative w-full", children: [
|
|
48
48
|
e && a === "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,
|
|
52
52
|
stroke: e.stroke,
|
|
@@ -58,8 +58,8 @@ function k({
|
|
|
58
58
|
{
|
|
59
59
|
type: s === "password" ? i ? "text" : "password" : s,
|
|
60
60
|
"data-slot": "input",
|
|
61
|
-
className:
|
|
62
|
-
|
|
61
|
+
className: p(
|
|
62
|
+
m({ size: t }),
|
|
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
65
|
e && a === "left" ? "pl-10" : "",
|
|
@@ -83,7 +83,7 @@ function k({
|
|
|
83
83
|
}
|
|
84
84
|
),
|
|
85
85
|
e && a === "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,
|
|
89
89
|
stroke: e.stroke,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import * as
|
|
1
|
+
import { j as r } from "./jsx-runtime-DywqP_6a.js";
|
|
2
|
+
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 inline-flex items-center justify-center gap-2 rounded-md
|
|
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 text-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: {
|
|
@@ -26,15 +26,15 @@ const l = s(
|
|
|
26
26
|
function m({
|
|
27
27
|
className: e,
|
|
28
28
|
variant: t,
|
|
29
|
-
size:
|
|
30
|
-
...
|
|
29
|
+
size: a,
|
|
30
|
+
...i
|
|
31
31
|
}) {
|
|
32
|
-
return /* @__PURE__ */
|
|
33
|
-
|
|
32
|
+
return /* @__PURE__ */ r.jsx(
|
|
33
|
+
n.Root,
|
|
34
34
|
{
|
|
35
35
|
"data-slot": "toggle",
|
|
36
|
-
className: o(l({ variant: t, size:
|
|
37
|
-
...
|
|
36
|
+
className: o(l({ variant: t, size: a, className: e })),
|
|
37
|
+
...i
|
|
38
38
|
}
|
|
39
39
|
);
|
|
40
40
|
}
|
|
@@ -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 text-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:'text-label-sm h-7 min-w-7 px-1.5 [&_svg:not([class*="size-"])]:size-3.5',sm:"text-label-md h-8 min-w-8 px-2",md:"text-label-lg h-12 min-w-12 px-3",lg:"text-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;
|
package/dist/ui.css
CHANGED
|
@@ -280,7 +280,7 @@
|
|
|
280
280
|
--warning: var(--color-warning-main);
|
|
281
281
|
--info: var(--color-info-main);
|
|
282
282
|
--success: var(--color-success-main);
|
|
283
|
-
--border: var(--color-neutral-
|
|
283
|
+
--border: var(--color-neutral-050);
|
|
284
284
|
--input: var(--color-neutral-050);
|
|
285
285
|
--ring: var(--color-blue-800);
|
|
286
286
|
--chart-1: var(--color-blue-300);
|