@clasing/ui 2.0.3 → 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-CJxUpkWv.js → badge-DgjaD6g5.js} +24 -24
- package/dist/{badge-DknEN5GE.cjs → badge-DuEEk3J_.cjs} +1 -1
- package/dist/{button-C5IBh3Tr.js → button-D8hlW1CJ.js} +123 -123
- package/dist/button-U1793OQ4.cjs +1 -0
- package/dist/{card-D0D_gMHR.cjs → card-BJMc0row.cjs} +1 -1
- package/dist/{card-9-UcGdV0.js → card-DPaMJS2f.js} +1 -1
- package/dist/{chip-D12iiF8O.js → chip-C5OWe3FG.js} +21 -21
- package/dist/chip-CXa6E8Cf.cjs +1 -0
- package/dist/command-B7wbtmbM.cjs +1 -0
- package/dist/command-RWDkdfba.js +176 -0
- package/dist/components/accordion.cjs.js +1 -1
- package/dist/components/accordion.es.js +23 -23
- 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 +35 -35
- 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 +10 -10
- 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 +8 -8
- 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/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 +39 -39
- 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 +15 -15
- 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 +4 -4
- 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 +42 -42
- 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 +7 -7
- 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 +112 -154
- 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 +30 -27
- 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.d.ts +1 -1
- package/dist/components/textarea.es.js +19 -19
- 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-DIua9sAl.js → dialog-BSEMFrzb.js} +37 -37
- package/dist/{dialog-C15HjAtO.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-Bs18T-Y3.js → input-CUpmfQgR.js} +29 -29
- 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-nsKZaKsW.js → toggle-DkQSX3ux.js} +13 -13
- 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-BnSM-lrr.cjs +0 -1
- package/dist/chip-DePZ5IYA.cjs +0 -1
- package/dist/command-C4Y6Ixrp.cjs +0 -1
- package/dist/command-pED95x7-.js +0 -176
- package/dist/icon-component-D5YssRbR.cjs +0 -1
- package/dist/input-wSGCWBH-.cjs +0 -1
- package/dist/label-_kG7WBoJ.js +0 -22
- package/dist/toggle-B9JMLYVf.cjs +0 -1
- package/dist/tooltip-BRSR0-4n.cjs +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as s } from "./jsx-runtime-DywqP_6a.js";
|
|
2
|
-
import { c as
|
|
3
|
-
import { c } from "./index-BqtVL8d-.js";
|
|
4
|
-
import { forwardRef as
|
|
5
|
-
import { I as
|
|
6
|
-
const
|
|
2
|
+
import { c as p } from "./index-CRiPKpXj.js";
|
|
3
|
+
import { c as g } from "./index-BqtVL8d-.js";
|
|
4
|
+
import { forwardRef as c } from "react";
|
|
5
|
+
import { I as a } from "./icon-component-Db_44zX2.js";
|
|
6
|
+
const x = g(
|
|
7
7
|
"focus-visible:ring-ring-default inline-flex items-center gap-1 rounded-full border px-3 py-1.5 transition-colors focus-visible:ring-[1.5px] focus-visible:ring-offset-1 focus-visible:outline-hidden disabled:cursor-default disabled:border-neutral-100 disabled:bg-neutral-100 disabled:text-neutral-700 disabled:lg:hover:bg-neutral-100",
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
@@ -15,9 +15,9 @@ const f = c(
|
|
|
15
15
|
error: ["bg-error-light border-error-main text-muted-foreground"]
|
|
16
16
|
},
|
|
17
17
|
size: {
|
|
18
|
-
sm: "
|
|
19
|
-
md: "
|
|
20
|
-
lg: "
|
|
18
|
+
sm: "paragraph-xs",
|
|
19
|
+
md: "paragraph-sm",
|
|
20
|
+
lg: "paragraph-md"
|
|
21
21
|
},
|
|
22
22
|
weight: {
|
|
23
23
|
light: "font-light",
|
|
@@ -32,9 +32,9 @@ const f = c(
|
|
|
32
32
|
weight: "regular"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
), N =
|
|
35
|
+
), N = c(
|
|
36
36
|
({
|
|
37
|
-
className:
|
|
37
|
+
className: t,
|
|
38
38
|
intent: l,
|
|
39
39
|
size: o,
|
|
40
40
|
weight: n,
|
|
@@ -43,20 +43,20 @@ const f = c(
|
|
|
43
43
|
iconRight: r,
|
|
44
44
|
notification: m,
|
|
45
45
|
onClick: d,
|
|
46
|
-
disabled:
|
|
46
|
+
disabled: f,
|
|
47
47
|
...u
|
|
48
48
|
}, b) => (typeof e == "string" && (e = { name: e }), typeof r == "string" && (r = { name: r }), d ? /* @__PURE__ */ s.jsxs(
|
|
49
49
|
"button",
|
|
50
50
|
{
|
|
51
51
|
ref: b,
|
|
52
|
-
className: x(
|
|
52
|
+
className: p(x({ intent: l, size: o, weight: n, className: t })),
|
|
53
53
|
type: "button",
|
|
54
|
-
disabled:
|
|
54
|
+
disabled: f,
|
|
55
55
|
onClick: d,
|
|
56
56
|
...u,
|
|
57
57
|
children: [
|
|
58
58
|
e && /* @__PURE__ */ s.jsx(
|
|
59
|
-
|
|
59
|
+
a,
|
|
60
60
|
{
|
|
61
61
|
iconName: e?.name,
|
|
62
62
|
stroke: e?.stroke,
|
|
@@ -65,7 +65,7 @@ const f = c(
|
|
|
65
65
|
),
|
|
66
66
|
i,
|
|
67
67
|
r && /* @__PURE__ */ s.jsx(
|
|
68
|
-
|
|
68
|
+
a,
|
|
69
69
|
{
|
|
70
70
|
iconName: r?.name,
|
|
71
71
|
stroke: r?.stroke,
|
|
@@ -74,7 +74,7 @@ const f = c(
|
|
|
74
74
|
}
|
|
75
75
|
),
|
|
76
76
|
m && /* @__PURE__ */ s.jsx(
|
|
77
|
-
|
|
77
|
+
a,
|
|
78
78
|
{
|
|
79
79
|
iconName: "IconCircleFilled",
|
|
80
80
|
size: 4,
|
|
@@ -87,11 +87,11 @@ const f = c(
|
|
|
87
87
|
"div",
|
|
88
88
|
{
|
|
89
89
|
ref: b,
|
|
90
|
-
className: x(
|
|
90
|
+
className: p(x({ intent: l, size: o, weight: n, className: t })),
|
|
91
91
|
...u,
|
|
92
92
|
children: [
|
|
93
93
|
e && /* @__PURE__ */ s.jsx(
|
|
94
|
-
|
|
94
|
+
a,
|
|
95
95
|
{
|
|
96
96
|
iconName: e?.name,
|
|
97
97
|
stroke: e?.stroke,
|
|
@@ -100,7 +100,7 @@ const f = c(
|
|
|
100
100
|
),
|
|
101
101
|
i,
|
|
102
102
|
r && /* @__PURE__ */ s.jsx(
|
|
103
|
-
|
|
103
|
+
a,
|
|
104
104
|
{
|
|
105
105
|
iconName: r?.name,
|
|
106
106
|
stroke: r?.stroke,
|
|
@@ -109,7 +109,7 @@ const f = c(
|
|
|
109
109
|
}
|
|
110
110
|
),
|
|
111
111
|
m && /* @__PURE__ */ s.jsx(
|
|
112
|
-
|
|
112
|
+
a,
|
|
113
113
|
{
|
|
114
114
|
iconName: "IconCircleFilled",
|
|
115
115
|
size: 4,
|
|
@@ -123,5 +123,5 @@ const f = c(
|
|
|
123
123
|
N.displayName = "Chip";
|
|
124
124
|
export {
|
|
125
125
|
N as C,
|
|
126
|
-
|
|
126
|
+
x as c
|
|
127
127
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("./jsx-runtime-BuHQgaKs.cjs"),b=require("./index-DoxiiusW.cjs"),j=require("./index-C8P6Mn4U.cjs"),f=require("react"),n=require("./icon-component-4lyl8wE_.cjs"),t=j.cva("focus-visible:ring-ring-default inline-flex items-center gap-1 rounded-full border px-3 py-1.5 transition-colors focus-visible:ring-[1.5px] focus-visible:ring-offset-1 focus-visible:outline-hidden disabled:cursor-default disabled:border-neutral-100 disabled:bg-neutral-100 disabled:text-neutral-700 disabled:lg:hover:bg-neutral-100",{variants:{intent:{selected:["bg-blue-050 border-blue-800 font-semibold text-blue-800"],unselected:["text-neutral-1000 lg:hover:bg-neutral-000 border-neutral-500 bg-white"],error:["bg-error-light border-error-main text-muted-foreground"]},size:{sm:"paragraph-xs",md:"paragraph-sm",lg:"paragraph-md"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{intent:"unselected",size:"md",weight:"regular"}}),c=f.forwardRef(({className:o,intent:a,size:i,weight:l,children:m,iconLeft:e,iconRight:r,notification:u,onClick:d,disabled:g,...x},p)=>(typeof e=="string"&&(e={name:e}),typeof r=="string"&&(r={name:r}),d?s.jsxRuntimeExports.jsxs("button",{ref:p,className:b.cn(t({intent:a,size:i,weight:l,className:o})),type:"button",disabled:g,onClick:d,...x,children:[e&&s.jsxRuntimeExports.jsx(n.IconComponent,{iconName:e?.name,stroke:e?.stroke,size:16}),m,r&&s.jsxRuntimeExports.jsx(n.IconComponent,{iconName:r?.name,stroke:r?.stroke,size:20,className:"min-w-5"}),u&&s.jsxRuntimeExports.jsx(n.IconComponent,{iconName:"IconCircleFilled",size:4,className:"text-error-main min-w-1"})]}):s.jsxRuntimeExports.jsxs("div",{ref:p,className:b.cn(t({intent:a,size:i,weight:l,className:o})),...x,children:[e&&s.jsxRuntimeExports.jsx(n.IconComponent,{iconName:e?.name,stroke:e?.stroke,size:16}),m,r&&s.jsxRuntimeExports.jsx(n.IconComponent,{iconName:r?.name,stroke:r?.stroke,size:20,className:"min-w-5"}),u&&s.jsxRuntimeExports.jsx(n.IconComponent,{iconName:"IconCircleFilled",size:4,className:"text-error-main min-w-1"})]})));c.displayName="Chip";exports.ChipComponent=c;exports.chipStyles=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("./jsx-runtime-BuHQgaKs.cjs"),a=require("cmdk"),m=require("./dialog-aYmcf_6q.cjs"),n=require("./index-DoxiiusW.cjs"),p=require("./icon-component-4lyl8wE_.cjs");function r({className:e,...o}){return t.jsxRuntimeExports.jsx(a.Command,{"data-slot":"command",className:n.cn("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...o})}function u({title:e="Command Palette",description:o="Search for a command to run...",children:s,className:d,showCloseButton:i=!0,...c}){return t.jsxRuntimeExports.jsxs(m.Dialog,{...c,children:[t.jsxRuntimeExports.jsxs(m.DialogHeader,{className:"sr-only",children:[t.jsxRuntimeExports.jsx(m.DialogTitle,{children:e}),t.jsxRuntimeExports.jsx(m.DialogDescription,{children:o})]}),t.jsxRuntimeExports.jsx(m.DialogContent,{className:n.cn("overflow-hidden p-0",d),showCloseButton:i,children:t.jsxRuntimeExports.jsx(r,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-semibold [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:s})})]})}function l({className:e,...o}){return t.jsxRuntimeExports.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[t.jsxRuntimeExports.jsx(p.IconComponent,{iconName:"IconSearch",className:"size-4 shrink-0 opacity-50"}),t.jsxRuntimeExports.jsx(a.Command.Input,{"data-slot":"command-input",className:n.cn("placeholder:text-muted-foreground paragraph-sm flex h-10 w-full rounded-md bg-transparent py-3 outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...o})]})}function x({className:e,...o}){return t.jsxRuntimeExports.jsx(a.Command.List,{"data-slot":"command-list",className:n.cn("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...o})}function g({...e}){return t.jsxRuntimeExports.jsx(a.Command.Empty,{"data-slot":"command-empty",className:"paragraph-sm py-6 text-center",...e})}function h({className:e,...o}){return t.jsxRuntimeExports.jsx(a.Command.Group,{"data-slot":"command-group",className:n.cn("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:paragraph-xs overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:font-semibold",e),...o})}function f({className:e,...o}){return t.jsxRuntimeExports.jsx(a.Command.Separator,{"data-slot":"command-separator",className:n.cn("bg-border -mx-1 h-px",e),...o})}function j({className:e,...o}){return t.jsxRuntimeExports.jsx(a.Command.Item,{"data-slot":"command-item",className:n.cn("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground paragraph-sm relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...o})}function C({className:e,...o}){return t.jsxRuntimeExports.jsx("span",{"data-slot":"command-shortcut",className:n.cn("text-muted-foreground paragraph-xs ml-auto tracking-widest",e),...o})}exports.Command=r;exports.CommandDialog=u;exports.CommandEmpty=g;exports.CommandGroup=h;exports.CommandInput=l;exports.CommandItem=j;exports.CommandList=x;exports.CommandSeparator=f;exports.CommandShortcut=C;
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { j as e } from "./jsx-runtime-DywqP_6a.js";
|
|
2
|
+
import { Command as r } from "cmdk";
|
|
3
|
+
import { D as c, e as p, h as i, c as l, b as u } from "./dialog-BSEMFrzb.js";
|
|
4
|
+
import { c as t } from "./index-CRiPKpXj.js";
|
|
5
|
+
import { I as g } from "./icon-component-Db_44zX2.js";
|
|
6
|
+
function x({
|
|
7
|
+
className: a,
|
|
8
|
+
...o
|
|
9
|
+
}) {
|
|
10
|
+
return /* @__PURE__ */ e.jsx(
|
|
11
|
+
r,
|
|
12
|
+
{
|
|
13
|
+
"data-slot": "command",
|
|
14
|
+
className: t(
|
|
15
|
+
"bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
|
|
16
|
+
a
|
|
17
|
+
),
|
|
18
|
+
...o
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
function j({
|
|
23
|
+
title: a = "Command Palette",
|
|
24
|
+
description: o = "Search for a command to run...",
|
|
25
|
+
children: n,
|
|
26
|
+
className: d,
|
|
27
|
+
showCloseButton: s = !0,
|
|
28
|
+
...m
|
|
29
|
+
}) {
|
|
30
|
+
return /* @__PURE__ */ e.jsxs(c, { ...m, children: [
|
|
31
|
+
/* @__PURE__ */ e.jsxs(p, { className: "sr-only", children: [
|
|
32
|
+
/* @__PURE__ */ e.jsx(i, { children: a }),
|
|
33
|
+
/* @__PURE__ */ e.jsx(l, { children: o })
|
|
34
|
+
] }),
|
|
35
|
+
/* @__PURE__ */ e.jsx(
|
|
36
|
+
u,
|
|
37
|
+
{
|
|
38
|
+
className: t("overflow-hidden p-0", d),
|
|
39
|
+
showCloseButton: s,
|
|
40
|
+
children: /* @__PURE__ */ e.jsx(x, { className: "[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-semibold [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: n })
|
|
41
|
+
}
|
|
42
|
+
)
|
|
43
|
+
] });
|
|
44
|
+
}
|
|
45
|
+
function b({
|
|
46
|
+
className: a,
|
|
47
|
+
...o
|
|
48
|
+
}) {
|
|
49
|
+
return /* @__PURE__ */ e.jsxs(
|
|
50
|
+
"div",
|
|
51
|
+
{
|
|
52
|
+
"data-slot": "command-input-wrapper",
|
|
53
|
+
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
54
|
+
children: [
|
|
55
|
+
/* @__PURE__ */ e.jsx(
|
|
56
|
+
g,
|
|
57
|
+
{
|
|
58
|
+
iconName: "IconSearch",
|
|
59
|
+
className: "size-4 shrink-0 opacity-50"
|
|
60
|
+
}
|
|
61
|
+
),
|
|
62
|
+
/* @__PURE__ */ e.jsx(
|
|
63
|
+
r.Input,
|
|
64
|
+
{
|
|
65
|
+
"data-slot": "command-input",
|
|
66
|
+
className: t(
|
|
67
|
+
"placeholder:text-muted-foreground paragraph-sm flex h-10 w-full rounded-md bg-transparent py-3 outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
68
|
+
a
|
|
69
|
+
),
|
|
70
|
+
...o
|
|
71
|
+
}
|
|
72
|
+
)
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
function w({
|
|
78
|
+
className: a,
|
|
79
|
+
...o
|
|
80
|
+
}) {
|
|
81
|
+
return /* @__PURE__ */ e.jsx(
|
|
82
|
+
r.List,
|
|
83
|
+
{
|
|
84
|
+
"data-slot": "command-list",
|
|
85
|
+
className: t(
|
|
86
|
+
"max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",
|
|
87
|
+
a
|
|
88
|
+
),
|
|
89
|
+
...o
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
function C({
|
|
94
|
+
...a
|
|
95
|
+
}) {
|
|
96
|
+
return /* @__PURE__ */ e.jsx(
|
|
97
|
+
r.Empty,
|
|
98
|
+
{
|
|
99
|
+
"data-slot": "command-empty",
|
|
100
|
+
className: "paragraph-sm py-6 text-center",
|
|
101
|
+
...a
|
|
102
|
+
}
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
function y({
|
|
106
|
+
className: a,
|
|
107
|
+
...o
|
|
108
|
+
}) {
|
|
109
|
+
return /* @__PURE__ */ e.jsx(
|
|
110
|
+
r.Group,
|
|
111
|
+
{
|
|
112
|
+
"data-slot": "command-group",
|
|
113
|
+
className: t(
|
|
114
|
+
"text-foreground [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:paragraph-xs overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:font-semibold",
|
|
115
|
+
a
|
|
116
|
+
),
|
|
117
|
+
...o
|
|
118
|
+
}
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
function N({
|
|
122
|
+
className: a,
|
|
123
|
+
...o
|
|
124
|
+
}) {
|
|
125
|
+
return /* @__PURE__ */ e.jsx(
|
|
126
|
+
r.Separator,
|
|
127
|
+
{
|
|
128
|
+
"data-slot": "command-separator",
|
|
129
|
+
className: t("bg-border -mx-1 h-px", a),
|
|
130
|
+
...o
|
|
131
|
+
}
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
function D({
|
|
135
|
+
className: a,
|
|
136
|
+
...o
|
|
137
|
+
}) {
|
|
138
|
+
return /* @__PURE__ */ e.jsx(
|
|
139
|
+
r.Item,
|
|
140
|
+
{
|
|
141
|
+
"data-slot": "command-item",
|
|
142
|
+
className: t(
|
|
143
|
+
"data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground paragraph-sm relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
144
|
+
a
|
|
145
|
+
),
|
|
146
|
+
...o
|
|
147
|
+
}
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
function I({
|
|
151
|
+
className: a,
|
|
152
|
+
...o
|
|
153
|
+
}) {
|
|
154
|
+
return /* @__PURE__ */ e.jsx(
|
|
155
|
+
"span",
|
|
156
|
+
{
|
|
157
|
+
"data-slot": "command-shortcut",
|
|
158
|
+
className: t(
|
|
159
|
+
"text-muted-foreground paragraph-xs ml-auto tracking-widest",
|
|
160
|
+
a
|
|
161
|
+
),
|
|
162
|
+
...o
|
|
163
|
+
}
|
|
164
|
+
);
|
|
165
|
+
}
|
|
166
|
+
export {
|
|
167
|
+
x as C,
|
|
168
|
+
j as a,
|
|
169
|
+
C as b,
|
|
170
|
+
y as c,
|
|
171
|
+
b as d,
|
|
172
|
+
D as e,
|
|
173
|
+
w as f,
|
|
174
|
+
N as g,
|
|
175
|
+
I as h
|
|
176
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../jsx-runtime-BuHQgaKs.cjs"),c=require("@radix-ui/react-accordion"),i=require("../index-DoxiiusW.cjs"),a=require("../icon-component-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../jsx-runtime-BuHQgaKs.cjs"),c=require("@radix-ui/react-accordion"),i=require("../index-DoxiiusW.cjs"),a=require("../icon-component-4lyl8wE_.cjs");function d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const r=d(c);function u({...e}){return o.jsxRuntimeExports.jsx(r.Root,{"data-slot":"accordion",...e})}function l({className:e,...t}){return o.jsxRuntimeExports.jsx(r.Item,{"data-slot":"accordion-item",className:i.cn("border-b last:border-b-0",e),...t})}function m({className:e,children:t,...n}){return o.jsxRuntimeExports.jsx(r.Header,{className:"flex",children:o.jsxRuntimeExports.jsxs(r.Trigger,{"data-slot":"accordion-trigger",className:i.cn("focus-visible:border-ring focus-visible:ring-ring/50 paragraph-sm flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left font-semibold transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,o.jsxRuntimeExports.jsx(a.IconComponent,{iconName:"IconChevronDown",className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"})]})})}function p({className:e,children:t,...n}){return o.jsxRuntimeExports.jsx(r.Content,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down paragraph-sm overflow-hidden",...n,children:o.jsxRuntimeExports.jsx("div",{className:i.cn("pt-0 pb-4",e),children:t})})}exports.Accordion=u;exports.AccordionContent=p;exports.AccordionItem=l;exports.AccordionTrigger=m;
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as e } from "../jsx-runtime-DywqP_6a.js";
|
|
2
2
|
import * as n from "@radix-ui/react-accordion";
|
|
3
|
-
import { c as
|
|
4
|
-
import { I as
|
|
3
|
+
import { c as a } from "../index-CRiPKpXj.js";
|
|
4
|
+
import { I as i } from "../icon-component-Db_44zX2.js";
|
|
5
5
|
function l({
|
|
6
6
|
...o
|
|
7
7
|
}) {
|
|
8
|
-
return /* @__PURE__ */
|
|
8
|
+
return /* @__PURE__ */ e.jsx(n.Root, { "data-slot": "accordion", ...o });
|
|
9
9
|
}
|
|
10
10
|
function m({
|
|
11
11
|
className: o,
|
|
12
|
-
...
|
|
12
|
+
...t
|
|
13
13
|
}) {
|
|
14
|
-
return /* @__PURE__ */
|
|
14
|
+
return /* @__PURE__ */ e.jsx(
|
|
15
15
|
n.Item,
|
|
16
16
|
{
|
|
17
17
|
"data-slot": "accordion-item",
|
|
18
|
-
className:
|
|
19
|
-
...
|
|
18
|
+
className: a("border-b last:border-b-0", o),
|
|
19
|
+
...t
|
|
20
20
|
}
|
|
21
21
|
);
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function p({
|
|
24
24
|
className: o,
|
|
25
|
-
children:
|
|
25
|
+
children: t,
|
|
26
26
|
...r
|
|
27
27
|
}) {
|
|
28
|
-
return /* @__PURE__ */
|
|
28
|
+
return /* @__PURE__ */ e.jsx(n.Header, { className: "flex", children: /* @__PURE__ */ e.jsxs(
|
|
29
29
|
n.Trigger,
|
|
30
30
|
{
|
|
31
31
|
"data-slot": "accordion-trigger",
|
|
32
|
-
className:
|
|
33
|
-
"focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left
|
|
32
|
+
className: a(
|
|
33
|
+
"focus-visible:border-ring focus-visible:ring-ring/50 paragraph-sm flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left font-semibold transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
|
|
34
34
|
o
|
|
35
35
|
),
|
|
36
36
|
...r,
|
|
37
37
|
children: [
|
|
38
|
-
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
|
|
38
|
+
t,
|
|
39
|
+
/* @__PURE__ */ e.jsx(
|
|
40
|
+
i,
|
|
41
41
|
{
|
|
42
42
|
iconName: "IconChevronDown",
|
|
43
43
|
className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"
|
|
@@ -47,24 +47,24 @@ function f({
|
|
|
47
47
|
}
|
|
48
48
|
) });
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function f({
|
|
51
51
|
className: o,
|
|
52
|
-
children:
|
|
52
|
+
children: t,
|
|
53
53
|
...r
|
|
54
54
|
}) {
|
|
55
|
-
return /* @__PURE__ */
|
|
55
|
+
return /* @__PURE__ */ e.jsx(
|
|
56
56
|
n.Content,
|
|
57
57
|
{
|
|
58
58
|
"data-slot": "accordion-content",
|
|
59
|
-
className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden
|
|
59
|
+
className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down paragraph-sm overflow-hidden",
|
|
60
60
|
...r,
|
|
61
|
-
children: /* @__PURE__ */
|
|
61
|
+
children: /* @__PURE__ */ e.jsx("div", { className: a("pt-0 pb-4", o), children: t })
|
|
62
62
|
}
|
|
63
63
|
);
|
|
64
64
|
}
|
|
65
65
|
export {
|
|
66
66
|
l as Accordion,
|
|
67
|
-
|
|
67
|
+
f as AccordionContent,
|
|
68
68
|
m as AccordionItem,
|
|
69
|
-
|
|
69
|
+
p as AccordionTrigger
|
|
70
70
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../jsx-runtime-BuHQgaKs.cjs"),u=require("@radix-ui/react-alert-dialog"),i=require("../button-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../jsx-runtime-BuHQgaKs.cjs"),u=require("@radix-ui/react-alert-dialog"),i=require("../button-U1793OQ4.cjs"),l=require("../index-DoxiiusW.cjs");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 o=d(u);function g({...t}){return a.jsxRuntimeExports.jsx(o.Root,{"data-slot":"alert-dialog",...t})}function x({...t}){return a.jsxRuntimeExports.jsx(o.Trigger,{"data-slot":"alert-dialog-trigger",...t})}function s({...t}){return a.jsxRuntimeExports.jsx(o.Portal,{"data-slot":"alert-dialog-portal",...t})}function c({className:t,...e}){return a.jsxRuntimeExports.jsx(o.Overlay,{"data-slot":"alert-dialog-overlay",className:l.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,...e}){return a.jsxRuntimeExports.jsxs(s,{children:[a.jsxRuntimeExports.jsx(c,{}),a.jsxRuntimeExports.jsx(o.Content,{"data-slot":"alert-dialog-content",className:l.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),...e})]})}function f({className:t,...e}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"alert-dialog-header",className:l.cn("flex flex-col gap-2 text-left",t),...e})}function p({className:t,...e}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"alert-dialog-footer",className:l.cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...e})}function j({className:t,...e}){return a.jsxRuntimeExports.jsx(o.Title,{"data-slot":"alert-dialog-title",className:l.cn("label-2xl font-semibold",t),...e})}function D({className:t,...e}){return a.jsxRuntimeExports.jsx(o.Description,{"data-slot":"alert-dialog-description",className:l.cn("text-muted-foreground paragraph-md",t),...e})}function A({className:t,...e}){return a.jsxRuntimeExports.jsx(o.Action,{className:l.cn(i.buttonStyles(),t),...e})}function b({className:t,...e}){return a.jsxRuntimeExports.jsx(o.Cancel,{className:l.cn(i.buttonStyles({variant:"outline"}),t),...e})}exports.AlertDialog=g;exports.AlertDialogAction=A;exports.AlertDialogCancel=b;exports.AlertDialogContent=m;exports.AlertDialogDescription=D;exports.AlertDialogFooter=p;exports.AlertDialogHeader=f;exports.AlertDialogOverlay=c;exports.AlertDialogPortal=s;exports.AlertDialogTitle=j;exports.AlertDialogTrigger=x;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as e } from "../jsx-runtime-DywqP_6a.js";
|
|
2
2
|
import * as o from "@radix-ui/react-alert-dialog";
|
|
3
|
-
import { c as r } from "../button-
|
|
3
|
+
import { c as r } from "../button-D8hlW1CJ.js";
|
|
4
4
|
import { c as l } from "../index-CRiPKpXj.js";
|
|
5
5
|
function g({
|
|
6
6
|
...t
|
|
@@ -12,12 +12,12 @@ function u({
|
|
|
12
12
|
}) {
|
|
13
13
|
return /* @__PURE__ */ e.jsx(o.Trigger, { "data-slot": "alert-dialog-trigger", ...t });
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function i({
|
|
16
16
|
...t
|
|
17
17
|
}) {
|
|
18
18
|
return /* @__PURE__ */ e.jsx(o.Portal, { "data-slot": "alert-dialog-portal", ...t });
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function n({
|
|
21
21
|
className: t,
|
|
22
22
|
...a
|
|
23
23
|
}) {
|
|
@@ -33,12 +33,12 @@ function s({
|
|
|
33
33
|
}
|
|
34
34
|
);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function f({
|
|
37
37
|
className: t,
|
|
38
38
|
...a
|
|
39
39
|
}) {
|
|
40
|
-
return /* @__PURE__ */ e.jsxs(
|
|
41
|
-
/* @__PURE__ */ e.jsx(
|
|
40
|
+
return /* @__PURE__ */ e.jsxs(i, { children: [
|
|
41
|
+
/* @__PURE__ */ e.jsx(n, {}),
|
|
42
42
|
/* @__PURE__ */ e.jsx(
|
|
43
43
|
o.Content,
|
|
44
44
|
{
|
|
@@ -52,7 +52,7 @@ function m({
|
|
|
52
52
|
)
|
|
53
53
|
] });
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function m({
|
|
56
56
|
className: t,
|
|
57
57
|
...a
|
|
58
58
|
}) {
|
|
@@ -60,7 +60,7 @@ function f({
|
|
|
60
60
|
"div",
|
|
61
61
|
{
|
|
62
62
|
"data-slot": "alert-dialog-header",
|
|
63
|
-
className: l("flex flex-col gap-2 text-
|
|
63
|
+
className: l("flex flex-col gap-2 text-left", t),
|
|
64
64
|
...a
|
|
65
65
|
}
|
|
66
66
|
);
|
|
@@ -89,7 +89,7 @@ function p({
|
|
|
89
89
|
o.Title,
|
|
90
90
|
{
|
|
91
91
|
"data-slot": "alert-dialog-title",
|
|
92
|
-
className: l("
|
|
92
|
+
className: l("label-2xl font-semibold", t),
|
|
93
93
|
...a
|
|
94
94
|
}
|
|
95
95
|
);
|
|
@@ -102,7 +102,7 @@ function j({
|
|
|
102
102
|
o.Description,
|
|
103
103
|
{
|
|
104
104
|
"data-slot": "alert-dialog-description",
|
|
105
|
-
className: l("text-muted-foreground
|
|
105
|
+
className: l("text-muted-foreground paragraph-md", t),
|
|
106
106
|
...a
|
|
107
107
|
}
|
|
108
108
|
);
|
|
@@ -135,12 +135,12 @@ export {
|
|
|
135
135
|
g as AlertDialog,
|
|
136
136
|
A as AlertDialogAction,
|
|
137
137
|
D as AlertDialogCancel,
|
|
138
|
-
|
|
138
|
+
f as AlertDialogContent,
|
|
139
139
|
j as AlertDialogDescription,
|
|
140
140
|
x as AlertDialogFooter,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
m as AlertDialogHeader,
|
|
142
|
+
n as AlertDialogOverlay,
|
|
143
|
+
i as AlertDialogPortal,
|
|
144
144
|
p as AlertDialogTitle,
|
|
145
145
|
u as AlertDialogTrigger
|
|
146
146
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../jsx-runtime-BuHQgaKs.cjs"),n=require("../index-DoxiiusW.cjs"),g=require("../index-C8P6Mn4U.cjs"),d=require("../icon-component-4lyl8wE_.cjs"),m=g.cva("paragraph-sm text-foreground relative grid w-full grid-cols-[0_1fr] items-start gap-y-2 rounded-2xl px-6 py-6 has-[>svg]:grid-cols-[calc(var(--spacing)*5)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-5 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{info:"bg-blue-050",success:"bg-success-light",warning:"bg-warning-light",error:"bg-error-light",neutral:"bg-neutral-000"}},defaultVariants:{variant:"neutral"}}),p={info:"IconInfoCircleFilled",success:"IconCircleCheckFilled",warning:"IconAlertTriangleFilled",error:"IconAlertCircleFilled",neutral:"IconHelpCircleFilled"},j={info:"text-blue-800",success:"text-success-main",warning:"text-warning-main",error:"text-error-main",neutral:"text-black"};function f({className:t,title:r,content:i,variant:s="neutral",showIcon:c,iconName:o,children:u,...x}){return e.jsxRuntimeExports.jsxs("div",{"data-slot":"alert",role:"alert",className:n.cn(m({variant:s}),t),...x,children:[c&&s&&e.jsxRuntimeExports.jsx(d.IconComponent,{className:n.cn("max-w-5 min-w-5",j[s]),iconName:o??p[s],size:20}),r&&e.jsxRuntimeExports.jsx(l,{children:e.jsxRuntimeExports.jsx("p",{className:"label-lg font-semibold",children:r})}),i&&e.jsxRuntimeExports.jsx(a,{children:e.jsxRuntimeExports.jsx("p",{className:"paragraph-sm",children:i})}),u]})}function l({className:t,...r}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"alert-title",className:n.cn("label-lg col-start-2 font-semibold",t),...r})}function a({className:t,...r}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"alert-description",className:n.cn("paragraph-sm col-start-2 grid justify-items-start gap-1",t),...r})}exports.Alert=f;exports.AlertDescription=a;exports.AlertTitle=l;
|