@clasing/ui 2.0.6 → 2.0.7
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-DgjaD6g5.js → badge-B4oRxQ-G.js} +9 -10
- package/dist/badge-CS2XfLYQ.cjs +1 -0
- package/dist/{button-D8hlW1CJ.js → button-DiOH2ngV.js} +12 -13
- package/dist/button-t0WrANXO.cjs +1 -0
- package/dist/{card-DPaMJS2f.js → card-BNTyYiyA.js} +15 -16
- package/dist/card-Dj2wgH-P.cjs +1 -0
- package/dist/{chip-C5OWe3FG.js → chip-CK2VBBsV.js} +10 -11
- package/dist/chip-DVKpteyL.cjs +1 -0
- package/dist/{command-RWDkdfba.js → command-CGUB58ej.js} +43 -44
- package/dist/command-CHisYTN-.cjs +1 -0
- package/dist/components/accordion.cjs.js +1 -1
- package/dist/components/accordion.es.js +22 -23
- package/dist/components/alert-dialog.cjs.js +1 -1
- package/dist/components/alert-dialog.es.js +26 -27
- package/dist/components/alert.cjs.js +1 -1
- package/dist/components/alert.es.js +15 -16
- package/dist/components/avatar.cjs.js +1 -1
- package/dist/components/avatar.es.js +13 -14
- 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 +38 -39
- package/dist/components/blocks/selectable-chips.cjs.js +1 -1
- package/dist/components/blocks/selectable-chips.es.js +8 -9
- package/dist/components/breadcrumb.cjs.js +1 -1
- package/dist/components/breadcrumb.es.js +14 -15
- 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 -6
- 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 +11 -12
- package/dist/components/checkbox.cjs.js +1 -1
- package/dist/components/checkbox.es.js +4 -5
- package/dist/components/chip.cjs.js +1 -1
- package/dist/components/chip.es.js +1 -1
- package/dist/components/collapsible.cjs.js +1 -1
- package/dist/components/collapsible.d.ts +1 -1
- package/dist/components/collapsible.es.js +23 -18
- 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 +32 -33
- package/dist/components/dialog.cjs.js +1 -1
- package/dist/components/dialog.es.js +1 -1
- package/dist/components/divider.cjs.js +1 -1
- package/dist/components/divider.es.js +7 -8
- package/dist/components/drawer.cjs.js +1 -1
- package/dist/components/drawer.es.js +17 -18
- package/dist/components/dropdown-menu.cjs.js +1 -1
- package/dist/components/dropdown-menu.es.js +32 -33
- package/dist/components/form.cjs.js +1 -1
- package/dist/components/form.es.js +29 -30
- package/dist/components/hover-card.cjs.js +1 -1
- package/dist/components/hover-card.es.js +17 -18
- 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 +19 -20
- 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 +32 -33
- package/dist/components/multi-select.cjs.js +1 -1
- package/dist/components/multi-select.es.js +19 -20
- package/dist/components/navigation-menu.cjs.js +1 -1
- package/dist/components/navigation-menu.es.js +17 -18
- package/dist/components/phone-input.cjs.js +1 -1
- package/dist/components/phone-input.es.js +20 -21
- package/dist/components/popover.cjs.js +1 -1
- package/dist/components/popover.es.js +1 -1
- package/dist/components/progress.cjs.js +1 -1
- package/dist/components/progress.es.js +3 -4
- package/dist/components/resizable.cjs.js +1 -1
- package/dist/components/resizable.es.js +8 -9
- package/dist/components/scroll-area.cjs.js +1 -1
- package/dist/components/scroll-area.es.js +1 -1
- package/dist/components/select.cjs.js +1 -1
- package/dist/components/select.es.js +16 -17
- package/dist/components/sheet.cjs.js +1 -1
- package/dist/components/sheet.es.js +18 -19
- package/dist/components/skeleton.cjs.js +1 -1
- package/dist/components/skeleton.es.js +6 -7
- package/dist/components/slider.cjs.js +1 -1
- package/dist/components/slider.es.js +9 -10
- package/dist/components/sonner.cjs.js +1 -1
- package/dist/components/sonner.es.js +13 -14
- package/dist/components/switch.cjs.js +1 -1
- package/dist/components/switch.es.js +7 -8
- package/dist/components/table.cjs.js +1 -1
- package/dist/components/table.es.js +15 -16
- package/dist/components/textarea.cjs.js +1 -1
- package/dist/components/textarea.es.js +10 -11
- package/dist/components/toggle-group.cjs.js +1 -1
- package/dist/components/toggle-group.es.js +21 -22
- 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-BSEMFrzb.js → dialog-CEttcpWT.js} +16 -17
- package/dist/dialog-Chh5qAxR.cjs +1 -0
- package/dist/icon-component-DGImZz3K.js +49 -0
- package/dist/icon-component-DTlgy__B.cjs +1 -0
- package/dist/{index-C8P6Mn4U.cjs → index-BVmT9wZC.cjs} +1 -1
- package/dist/{index-BqtVL8d-.js → index-CwXB7YIx.js} +1 -1
- package/dist/{index-CRiPKpXj.js → index-DBpnlzOP.js} +759 -477
- package/dist/index-DSjHHn1r.cjs +22 -0
- package/dist/{input-CUpmfQgR.js → input-B6wjJM4O.js} +14 -15
- package/dist/input-Dpz3zGIU.cjs +1 -0
- package/dist/{label-CKObiJEl.js → label-Bp4qkqFq.js} +7 -8
- package/dist/label-eHraXPfy.cjs +1 -0
- package/dist/popover-BnLx2OY6.cjs +1 -0
- package/dist/{popover-CHAUhJda.js → popover-C6pozFVL.js} +13 -14
- package/dist/scroll-area-CJpVshOm.cjs +1 -0
- package/dist/{scroll-area-DwBiu3Jn.js → scroll-area-Dj0Szbw6.js} +3 -4
- package/dist/toggle-CJLDdFRo.cjs +1 -0
- package/dist/{toggle-DkQSX3ux.js → toggle-owj9AHVO.js} +9 -10
- package/dist/tooltip-BvdeurjC.cjs +1 -0
- package/dist/{tooltip-DgWl3klK.js → tooltip-CUaxcngn.js} +7 -8
- package/package.json +1 -1
- package/dist/badge-DuEEk3J_.cjs +0 -1
- package/dist/button-U1793OQ4.cjs +0 -1
- package/dist/card-BJMc0row.cjs +0 -1
- package/dist/chip-CXa6E8Cf.cjs +0 -1
- package/dist/command-B7wbtmbM.cjs +0 -1
- package/dist/dialog-aYmcf_6q.cjs +0 -1
- package/dist/icon-component-4lyl8wE_.cjs +0 -1
- package/dist/icon-component-Db_44zX2.js +0 -50
- package/dist/index-DoxiiusW.cjs +0 -1
- package/dist/input-belq5zLm.cjs +0 -1
- package/dist/jsx-runtime-BuHQgaKs.cjs +0 -22
- package/dist/jsx-runtime-DywqP_6a.js +0 -284
- package/dist/label-RxaHfl3U.cjs +0 -1
- package/dist/popover-4V87msIT.cjs +0 -1
- package/dist/scroll-area-hg-bGoRe.cjs +0 -1
- package/dist/toggle-v18XjPC4.cjs +0 -1
- package/dist/tooltip-__VfWmJD.cjs +0 -1
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import { j as e } from "../
|
|
1
|
+
import { j as e, c as l } from "../index-DBpnlzOP.js";
|
|
2
2
|
import * as o from "@radix-ui/react-alert-dialog";
|
|
3
|
-
import { c as r } from "../button-
|
|
4
|
-
|
|
5
|
-
function g({
|
|
3
|
+
import { c as r } from "../button-DiOH2ngV.js";
|
|
4
|
+
function c({
|
|
6
5
|
...t
|
|
7
6
|
}) {
|
|
8
7
|
return /* @__PURE__ */ e.jsx(o.Root, { "data-slot": "alert-dialog", ...t });
|
|
9
8
|
}
|
|
10
|
-
function
|
|
9
|
+
function g({
|
|
11
10
|
...t
|
|
12
11
|
}) {
|
|
13
12
|
return /* @__PURE__ */ e.jsx(o.Trigger, { "data-slot": "alert-dialog-trigger", ...t });
|
|
14
13
|
}
|
|
15
|
-
function
|
|
14
|
+
function n({
|
|
16
15
|
...t
|
|
17
16
|
}) {
|
|
18
17
|
return /* @__PURE__ */ e.jsx(o.Portal, { "data-slot": "alert-dialog-portal", ...t });
|
|
19
18
|
}
|
|
20
|
-
function
|
|
19
|
+
function i({
|
|
21
20
|
className: t,
|
|
22
21
|
...a
|
|
23
22
|
}) {
|
|
@@ -33,12 +32,12 @@ function n({
|
|
|
33
32
|
}
|
|
34
33
|
);
|
|
35
34
|
}
|
|
36
|
-
function
|
|
35
|
+
function u({
|
|
37
36
|
className: t,
|
|
38
37
|
...a
|
|
39
38
|
}) {
|
|
40
|
-
return /* @__PURE__ */ e.jsxs(
|
|
41
|
-
/* @__PURE__ */ e.jsx(
|
|
39
|
+
return /* @__PURE__ */ e.jsxs(n, { children: [
|
|
40
|
+
/* @__PURE__ */ e.jsx(i, {}),
|
|
42
41
|
/* @__PURE__ */ e.jsx(
|
|
43
42
|
o.Content,
|
|
44
43
|
{
|
|
@@ -52,7 +51,7 @@ function f({
|
|
|
52
51
|
)
|
|
53
52
|
] });
|
|
54
53
|
}
|
|
55
|
-
function
|
|
54
|
+
function f({
|
|
56
55
|
className: t,
|
|
57
56
|
...a
|
|
58
57
|
}) {
|
|
@@ -65,7 +64,7 @@ function m({
|
|
|
65
64
|
}
|
|
66
65
|
);
|
|
67
66
|
}
|
|
68
|
-
function
|
|
67
|
+
function m({
|
|
69
68
|
className: t,
|
|
70
69
|
...a
|
|
71
70
|
}) {
|
|
@@ -81,7 +80,7 @@ function x({
|
|
|
81
80
|
}
|
|
82
81
|
);
|
|
83
82
|
}
|
|
84
|
-
function
|
|
83
|
+
function x({
|
|
85
84
|
className: t,
|
|
86
85
|
...a
|
|
87
86
|
}) {
|
|
@@ -94,7 +93,7 @@ function p({
|
|
|
94
93
|
}
|
|
95
94
|
);
|
|
96
95
|
}
|
|
97
|
-
function
|
|
96
|
+
function p({
|
|
98
97
|
className: t,
|
|
99
98
|
...a
|
|
100
99
|
}) {
|
|
@@ -107,7 +106,7 @@ function j({
|
|
|
107
106
|
}
|
|
108
107
|
);
|
|
109
108
|
}
|
|
110
|
-
function
|
|
109
|
+
function j({
|
|
111
110
|
className: t,
|
|
112
111
|
...a
|
|
113
112
|
}) {
|
|
@@ -119,7 +118,7 @@ function A({
|
|
|
119
118
|
}
|
|
120
119
|
);
|
|
121
120
|
}
|
|
122
|
-
function
|
|
121
|
+
function A({
|
|
123
122
|
className: t,
|
|
124
123
|
...a
|
|
125
124
|
}) {
|
|
@@ -132,15 +131,15 @@ function D({
|
|
|
132
131
|
);
|
|
133
132
|
}
|
|
134
133
|
export {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
134
|
+
c as AlertDialog,
|
|
135
|
+
j as AlertDialogAction,
|
|
136
|
+
A as AlertDialogCancel,
|
|
137
|
+
u as AlertDialogContent,
|
|
138
|
+
p as AlertDialogDescription,
|
|
139
|
+
m as AlertDialogFooter,
|
|
140
|
+
f as AlertDialogHeader,
|
|
141
|
+
i as AlertDialogOverlay,
|
|
142
|
+
n as AlertDialogPortal,
|
|
143
|
+
x as AlertDialogTitle,
|
|
144
|
+
g as AlertDialogTrigger
|
|
146
145
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-DSjHHn1r.cjs"),x=require("../index-BVmT9wZC.cjs"),g=require("../icon-component-DTlgy__B.cjs"),d=x.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"},m={info:"text-blue-800",success:"text-success-main",warning:"text-warning-main",error:"text-error-main",neutral:"text-black"};function j({className:t,title:r,content:n,variant:s="neutral",showIcon:a,iconName:c,children:o,...u}){return e.jsxRuntimeExports.jsxs("div",{"data-slot":"alert",role:"alert",className:e.cn(d({variant:s}),t),...u,children:[a&&s&&e.jsxRuntimeExports.jsx(g.IconComponent,{className:e.cn("max-w-5 min-w-5",m[s]),iconName:c??p[s],size:20}),r&&e.jsxRuntimeExports.jsx(l,{children:e.jsxRuntimeExports.jsx("p",{className:"label-lg font-semibold",children:r})}),n&&e.jsxRuntimeExports.jsx(i,{children:e.jsxRuntimeExports.jsx("p",{className:"paragraph-sm",children:n})}),o]})}function l({className:t,...r}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"alert-title",className:e.cn("label-lg col-start-2 font-semibold",t),...r})}function i({className:t,...r}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"alert-description",className:e.cn("paragraph-sm col-start-2 grid justify-items-start gap-1",t),...r})}exports.Alert=j;exports.AlertDescription=i;exports.AlertTitle=l;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { j as r } from "../
|
|
2
|
-
import { c as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
const d = g(
|
|
1
|
+
import { j as r, c as t } from "../index-DBpnlzOP.js";
|
|
2
|
+
import { c as g } from "../index-CwXB7YIx.js";
|
|
3
|
+
import { I as d } from "../icon-component-DGImZz3K.js";
|
|
4
|
+
const m = g(
|
|
6
5
|
"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",
|
|
7
6
|
{
|
|
8
7
|
variants: {
|
|
@@ -18,26 +17,26 @@ const d = g(
|
|
|
18
17
|
variant: "neutral"
|
|
19
18
|
}
|
|
20
19
|
}
|
|
21
|
-
),
|
|
20
|
+
), u = {
|
|
22
21
|
info: "IconInfoCircleFilled",
|
|
23
22
|
success: "IconCircleCheckFilled",
|
|
24
23
|
warning: "IconAlertTriangleFilled",
|
|
25
24
|
error: "IconAlertCircleFilled",
|
|
26
25
|
neutral: "IconHelpCircleFilled"
|
|
27
|
-
},
|
|
26
|
+
}, p = {
|
|
28
27
|
info: "text-blue-800",
|
|
29
28
|
success: "text-success-main",
|
|
30
29
|
warning: "text-warning-main",
|
|
31
30
|
error: "text-error-main",
|
|
32
31
|
neutral: "text-black"
|
|
33
32
|
};
|
|
34
|
-
function
|
|
33
|
+
function v({
|
|
35
34
|
className: a,
|
|
36
35
|
title: e,
|
|
37
36
|
content: l,
|
|
38
37
|
variant: s = "neutral",
|
|
39
|
-
showIcon:
|
|
40
|
-
iconName:
|
|
38
|
+
showIcon: n,
|
|
39
|
+
iconName: i,
|
|
41
40
|
children: c,
|
|
42
41
|
...o
|
|
43
42
|
}) {
|
|
@@ -46,14 +45,14 @@ function w({
|
|
|
46
45
|
{
|
|
47
46
|
"data-slot": "alert",
|
|
48
47
|
role: "alert",
|
|
49
|
-
className: t(
|
|
48
|
+
className: t(m({ variant: s }), a),
|
|
50
49
|
...o,
|
|
51
50
|
children: [
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
n && s && /* @__PURE__ */ r.jsx(
|
|
52
|
+
d,
|
|
54
53
|
{
|
|
55
|
-
className: t("max-w-5 min-w-5",
|
|
56
|
-
iconName:
|
|
54
|
+
className: t("max-w-5 min-w-5", p[s]),
|
|
55
|
+
iconName: i ?? u[s],
|
|
57
56
|
size: 20
|
|
58
57
|
}
|
|
59
58
|
),
|
|
@@ -91,7 +90,7 @@ function f({
|
|
|
91
90
|
);
|
|
92
91
|
}
|
|
93
92
|
export {
|
|
94
|
-
|
|
93
|
+
v as Alert,
|
|
95
94
|
f as AlertDescription,
|
|
96
95
|
x as AlertTitle
|
|
97
96
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../index-DSjHHn1r.cjs"),s=require("@radix-ui/react-avatar");function i(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const l=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,l.get?l:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const n=i(s);function o({className:e,...t}){return a.jsxRuntimeExports.jsx(n.Root,{"data-slot":"avatar",className:a.cn("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),...t})}function c({className:e,...t}){return a.jsxRuntimeExports.jsx(n.Image,{"data-slot":"avatar-image",className:a.cn("aspect-square size-full",e),...t})}function u({className:e,...t}){return a.jsxRuntimeExports.jsx(n.Fallback,{"data-slot":"avatar-fallback",className:a.cn("bg-muted paragraph-sm flex size-full items-center justify-center rounded-full",e),...t})}exports.Avatar=o;exports.AvatarFallback=u;exports.AvatarImage=c;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { j as r } from "../
|
|
2
|
-
import * as
|
|
3
|
-
import { c as s } from "../index-CRiPKpXj.js";
|
|
1
|
+
import { j as e, c as r } from "../index-DBpnlzOP.js";
|
|
2
|
+
import * as s from "@radix-ui/react-avatar";
|
|
4
3
|
function i({
|
|
5
4
|
className: a,
|
|
6
5
|
...t
|
|
7
6
|
}) {
|
|
8
|
-
return /* @__PURE__ */
|
|
9
|
-
|
|
7
|
+
return /* @__PURE__ */ e.jsx(
|
|
8
|
+
s.Root,
|
|
10
9
|
{
|
|
11
10
|
"data-slot": "avatar",
|
|
12
|
-
className:
|
|
11
|
+
className: r(
|
|
13
12
|
"relative flex size-8 shrink-0 overflow-hidden rounded-full",
|
|
14
13
|
a
|
|
15
14
|
),
|
|
@@ -17,15 +16,15 @@ function i({
|
|
|
17
16
|
}
|
|
18
17
|
);
|
|
19
18
|
}
|
|
20
|
-
function
|
|
19
|
+
function o({
|
|
21
20
|
className: a,
|
|
22
21
|
...t
|
|
23
22
|
}) {
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
-
|
|
23
|
+
return /* @__PURE__ */ e.jsx(
|
|
24
|
+
s.Image,
|
|
26
25
|
{
|
|
27
26
|
"data-slot": "avatar-image",
|
|
28
|
-
className:
|
|
27
|
+
className: r("aspect-square size-full", a),
|
|
29
28
|
...t
|
|
30
29
|
}
|
|
31
30
|
);
|
|
@@ -34,11 +33,11 @@ function n({
|
|
|
34
33
|
className: a,
|
|
35
34
|
...t
|
|
36
35
|
}) {
|
|
37
|
-
return /* @__PURE__ */
|
|
38
|
-
|
|
36
|
+
return /* @__PURE__ */ e.jsx(
|
|
37
|
+
s.Fallback,
|
|
39
38
|
{
|
|
40
39
|
"data-slot": "avatar-fallback",
|
|
41
|
-
className:
|
|
40
|
+
className: r(
|
|
42
41
|
"bg-muted paragraph-sm flex size-full items-center justify-center rounded-full",
|
|
43
42
|
a
|
|
44
43
|
),
|
|
@@ -49,5 +48,5 @@ function n({
|
|
|
49
48
|
export {
|
|
50
49
|
i as Avatar,
|
|
51
50
|
n as AvatarFallback,
|
|
52
|
-
|
|
51
|
+
o as AvatarImage
|
|
53
52
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../badge-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../badge-CS2XfLYQ.cjs");exports.Badge=e.Badge;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../index-DSjHHn1r.cjs"),I=require("../../badge-CS2XfLYQ.cjs"),l=require("../../card-Dj2wgH-P.cjs"),p=require("../../icon-component-DTlgy__B.cjs"),x=require("../../tooltip-BvdeurjC.cjs"),q=require("../../index-BVmT9wZC.cjs"),w=require("react"),y=q.cva("focus-visible:border-ring focus-visible:ring-ring/50 transition-[color,box-shadow] focus-visible:ring-[3px]"),j=w.forwardRef(({className:g,isActive:n,title:u,text:m,helperText:d,badgeText:t,disabled:r,badgeVariant:h,badgeSize:f="xs",iconName:i,iconText:a,tooltipIconName:R="IconHelpCircleFilled",tooltipText:s,tooltipTitle:o,tooltipSide:b,tooltipSideOffset:C,tooltipAlign:E,children:N,...c},v)=>e.jsxRuntimeExports.jsxs(l.Card,{ref:v,className:e.cn(y({className:g}),{"bg-blue-050 border-blue-950":n,"border-neutral-100 bg-neutral-100":r,"cursor-pointer lg:active:bg-blue-100":c.onClick&&n&&!r,"lg:active:bg-blue-050 cursor-pointer":c.onClick&&!n&&!r}),role:"button",tabIndex:0,...c,children:[t||i||a?e.jsxRuntimeExports.jsxs(l.CardHeader,{className:"flex items-center justify-between gap-2",children:[i||a?e.jsxRuntimeExports.jsx("div",{className:e.cn("rounded-full p-1",{"bg-neutral-000 text-muted-foreground":!n,"bg-white text-blue-800":n,"bg-white text-neutral-700":r}),children:e.jsxRuntimeExports.jsx(p.IconComponent,{iconName:i,iconText:a,size:20})}):null,(t||s)&&e.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[t?e.jsxRuntimeExports.jsx(I.Badge,{variant:h,size:f,weight:"semibold",className:e.cn({"opacity-50":r}),children:t}):null,s&&e.jsxRuntimeExports.jsxs(x.Tooltip,{children:[e.jsxRuntimeExports.jsx(x.TooltipTrigger,{children:e.jsxRuntimeExports.jsx(p.IconComponent,{iconName:R??"IconHelpCircleFilled",size:20,className:"z-10 min-h-5 min-w-5"})}),e.jsxRuntimeExports.jsx(x.TooltipContent,{side:b,sideOffset:C,align:E,children:o||s&&e.jsxRuntimeExports.jsxs("div",{className:"text-neutral-1000 flex flex-col gap-1",children:[o&&e.jsxRuntimeExports.jsx("p",{className:"paragraph-md font-semibold",children:o}),s&&e.jsxRuntimeExports.jsx("p",{className:"paragraph-md",children:s})]})})]})]})]}):null,e.jsxRuntimeExports.jsxs(l.CardContent,{className:"flex flex-col gap-1",children:[u?e.jsxRuntimeExports.jsx("p",{className:e.cn("text-foreground label-xl font-semibold",{"text-neutral-700":r}),children:u}):null,m?e.jsxRuntimeExports.jsx("p",{className:e.cn("text-muted-foreground paragraph-md",{"text-neutral-700":r}),children:m}):null,N]}),d?e.jsxRuntimeExports.jsx(l.CardFooter,{children:e.jsxRuntimeExports.jsx("p",{className:e.cn("paragraph-sm text-neutral-800",{"text-neutral-700":r}),children:d})}):null]}));j.displayName="InteractiveCard";const z=j;exports.InteractiveCard=z;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { B as w } from "../../badge-
|
|
3
|
-
import { C as y, e as z, b as F, d as H } from "../../card-
|
|
4
|
-
import { I as x } from "../../icon-component-
|
|
5
|
-
import { T as k, c as B, a as R } from "../../tooltip-
|
|
6
|
-
import { c as
|
|
7
|
-
import { c as E } from "../../index-BqtVL8d-.js";
|
|
1
|
+
import { j as e, c as a } from "../../index-DBpnlzOP.js";
|
|
2
|
+
import { B as w } from "../../badge-B4oRxQ-G.js";
|
|
3
|
+
import { C as y, e as z, b as F, d as H } from "../../card-BNTyYiyA.js";
|
|
4
|
+
import { I as x } from "../../icon-component-DGImZz3K.js";
|
|
5
|
+
import { T as k, c as B, a as R } from "../../tooltip-CUaxcngn.js";
|
|
6
|
+
import { c as E } from "../../index-CwXB7YIx.js";
|
|
8
7
|
import { forwardRef as O } from "react";
|
|
9
8
|
const S = E(
|
|
10
9
|
"focus-visible:border-ring focus-visible:ring-ring/50 transition-[color,box-shadow] focus-visible:ring-[3px]"
|
|
@@ -16,67 +15,67 @@ const S = E(
|
|
|
16
15
|
text: d,
|
|
17
16
|
helperText: u,
|
|
18
17
|
badgeText: n,
|
|
19
|
-
disabled:
|
|
18
|
+
disabled: r,
|
|
20
19
|
badgeVariant: g,
|
|
21
20
|
badgeSize: h = "xs",
|
|
22
|
-
iconName:
|
|
23
|
-
iconText:
|
|
21
|
+
iconName: t,
|
|
22
|
+
iconText: c,
|
|
24
23
|
tooltipIconName: j = "IconHelpCircleFilled",
|
|
25
24
|
tooltipText: l,
|
|
26
|
-
tooltipTitle:
|
|
25
|
+
tooltipTitle: o,
|
|
27
26
|
tooltipSide: b,
|
|
28
27
|
tooltipSideOffset: C,
|
|
29
28
|
tooltipAlign: N,
|
|
30
29
|
children: v,
|
|
31
30
|
...i
|
|
32
|
-
}, I) => /* @__PURE__ */
|
|
31
|
+
}, I) => /* @__PURE__ */ e.jsxs(
|
|
33
32
|
y,
|
|
34
33
|
{
|
|
35
34
|
ref: I,
|
|
36
35
|
className: a(S({ className: f }), {
|
|
37
36
|
"bg-blue-050 border-blue-950": s,
|
|
38
|
-
"border-neutral-100 bg-neutral-100":
|
|
39
|
-
"cursor-pointer lg:active:bg-blue-100": i.onClick && s && !
|
|
40
|
-
"lg:active:bg-blue-050 cursor-pointer": i.onClick && !s && !
|
|
37
|
+
"border-neutral-100 bg-neutral-100": r,
|
|
38
|
+
"cursor-pointer lg:active:bg-blue-100": i.onClick && s && !r,
|
|
39
|
+
"lg:active:bg-blue-050 cursor-pointer": i.onClick && !s && !r
|
|
41
40
|
}),
|
|
42
41
|
role: "button",
|
|
43
42
|
tabIndex: 0,
|
|
44
43
|
...i,
|
|
45
44
|
children: [
|
|
46
|
-
n ||
|
|
47
|
-
|
|
45
|
+
n || t || c ? /* @__PURE__ */ e.jsxs(z, { className: "flex items-center justify-between gap-2", children: [
|
|
46
|
+
t || c ? /* @__PURE__ */ e.jsx(
|
|
48
47
|
"div",
|
|
49
48
|
{
|
|
50
49
|
className: a("rounded-full p-1", {
|
|
51
50
|
"bg-neutral-000 text-muted-foreground": !s,
|
|
52
51
|
"bg-white text-blue-800": s,
|
|
53
|
-
"bg-white text-neutral-700":
|
|
52
|
+
"bg-white text-neutral-700": r
|
|
54
53
|
}),
|
|
55
|
-
children: /* @__PURE__ */
|
|
54
|
+
children: /* @__PURE__ */ e.jsx(
|
|
56
55
|
x,
|
|
57
56
|
{
|
|
58
|
-
iconName:
|
|
59
|
-
iconText:
|
|
57
|
+
iconName: t,
|
|
58
|
+
iconText: c,
|
|
60
59
|
size: 20
|
|
61
60
|
}
|
|
62
61
|
)
|
|
63
62
|
}
|
|
64
63
|
) : null,
|
|
65
|
-
(n || l) && /* @__PURE__ */
|
|
66
|
-
n ? /* @__PURE__ */
|
|
64
|
+
(n || l) && /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
65
|
+
n ? /* @__PURE__ */ e.jsx(
|
|
67
66
|
w,
|
|
68
67
|
{
|
|
69
68
|
variant: g,
|
|
70
69
|
size: h,
|
|
71
70
|
weight: "semibold",
|
|
72
71
|
className: a({
|
|
73
|
-
"opacity-50":
|
|
72
|
+
"opacity-50": r
|
|
74
73
|
}),
|
|
75
74
|
children: n
|
|
76
75
|
}
|
|
77
76
|
) : null,
|
|
78
|
-
l && /* @__PURE__ */
|
|
79
|
-
/* @__PURE__ */
|
|
77
|
+
l && /* @__PURE__ */ e.jsxs(k, { children: [
|
|
78
|
+
/* @__PURE__ */ e.jsx(B, { children: /* @__PURE__ */ e.jsx(
|
|
80
79
|
x,
|
|
81
80
|
{
|
|
82
81
|
iconName: j ?? "IconHelpCircleFilled",
|
|
@@ -84,47 +83,47 @@ const S = E(
|
|
|
84
83
|
className: "z-10 min-h-5 min-w-5"
|
|
85
84
|
}
|
|
86
85
|
) }),
|
|
87
|
-
/* @__PURE__ */
|
|
86
|
+
/* @__PURE__ */ e.jsx(
|
|
88
87
|
R,
|
|
89
88
|
{
|
|
90
89
|
side: b,
|
|
91
90
|
sideOffset: C,
|
|
92
91
|
align: N,
|
|
93
|
-
children:
|
|
94
|
-
|
|
95
|
-
l && /* @__PURE__ */
|
|
92
|
+
children: o || l && /* @__PURE__ */ e.jsxs("div", { className: "text-neutral-1000 flex flex-col gap-1", children: [
|
|
93
|
+
o && /* @__PURE__ */ e.jsx("p", { className: "paragraph-md font-semibold", children: o }),
|
|
94
|
+
l && /* @__PURE__ */ e.jsx("p", { className: "paragraph-md", children: l })
|
|
96
95
|
] })
|
|
97
96
|
}
|
|
98
97
|
)
|
|
99
98
|
] })
|
|
100
99
|
] })
|
|
101
100
|
] }) : null,
|
|
102
|
-
/* @__PURE__ */
|
|
103
|
-
m ? /* @__PURE__ */
|
|
101
|
+
/* @__PURE__ */ e.jsxs(F, { className: "flex flex-col gap-1", children: [
|
|
102
|
+
m ? /* @__PURE__ */ e.jsx(
|
|
104
103
|
"p",
|
|
105
104
|
{
|
|
106
105
|
className: a("text-foreground label-xl font-semibold", {
|
|
107
|
-
"text-neutral-700":
|
|
106
|
+
"text-neutral-700": r
|
|
108
107
|
}),
|
|
109
108
|
children: m
|
|
110
109
|
}
|
|
111
110
|
) : null,
|
|
112
|
-
d ? /* @__PURE__ */
|
|
111
|
+
d ? /* @__PURE__ */ e.jsx(
|
|
113
112
|
"p",
|
|
114
113
|
{
|
|
115
114
|
className: a("text-muted-foreground paragraph-md", {
|
|
116
|
-
"text-neutral-700":
|
|
115
|
+
"text-neutral-700": r
|
|
117
116
|
}),
|
|
118
117
|
children: d
|
|
119
118
|
}
|
|
120
119
|
) : null,
|
|
121
120
|
v
|
|
122
121
|
] }),
|
|
123
|
-
u ? /* @__PURE__ */
|
|
122
|
+
u ? /* @__PURE__ */ e.jsx(H, { children: /* @__PURE__ */ e.jsx(
|
|
124
123
|
"p",
|
|
125
124
|
{
|
|
126
125
|
className: a("paragraph-sm text-neutral-800", {
|
|
127
|
-
"text-neutral-700":
|
|
126
|
+
"text-neutral-700": r
|
|
128
127
|
}),
|
|
129
128
|
children: u
|
|
130
129
|
}
|
|
@@ -134,7 +133,7 @@ const S = E(
|
|
|
134
133
|
)
|
|
135
134
|
);
|
|
136
135
|
p.displayName = "InteractiveCard";
|
|
137
|
-
const
|
|
136
|
+
const P = p;
|
|
138
137
|
export {
|
|
139
|
-
|
|
138
|
+
P as InteractiveCard
|
|
140
139
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../../index-DSjHHn1r.cjs"),S=require("../../chip-DVKpteyL.cjs"),p=require("../../label-eHraXPfy.cjs"),y=({id:d,label:u,options:x,multiple:i=!1,selectedOptions:t,setSelectedOptions:m,className:j,disabled:c,helperText:v,error:s,touched:r})=>{const n=t,h=e=>{if(!i)return m(e.value),e.value;let a=[];return a=Array.isArray(n)?n.includes(e.value)?n.filter(b=>b!==e.value):[...n,e.value]:[e.value],m(a),a},f=e=>i&&Array.isArray(t)?t.includes(e.value):t===e.value;return x.length===0?null:l.jsxRuntimeExports.jsxs("div",{className:l.cn("flex flex-col gap-3",j),children:[u&&l.jsxRuntimeExports.jsx(p.Label,{htmlFor:d,className:l.cn({"text-neutral-700":c}),children:u}),l.jsxRuntimeExports.jsx("div",{className:"flex flex-wrap gap-2",children:x.map(e=>{const a=f(e);return l.jsxRuntimeExports.jsx(S.ChipComponent,{intent:a?"selected":"unselected",iconLeft:a?"IconCheck":void 0,onClick:()=>h(e),className:"py-1",disabled:c,children:e.label},e.label)})}),s&&r?l.jsxRuntimeExports.jsx("span",{className:"text-error-main label-md -mt-1",children:s}):l.jsxRuntimeExports.jsx("span",{className:l.clsx("label-md -mt-1",{"text-neutral-1000":!s&&!r,"text-error-main":s&&r,"text-success-main":r&&!s,"text-neutral-700":c}),children:v})]})};exports.SelectableChips=y;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { j as l } from "../../
|
|
2
|
-
import { C as
|
|
3
|
-
import { L as
|
|
4
|
-
|
|
5
|
-
const k = ({
|
|
1
|
+
import { j as l, c as f, a as y } from "../../index-DBpnlzOP.js";
|
|
2
|
+
import { C as S } from "../../chip-CK2VBBsV.js";
|
|
3
|
+
import { L as A } from "../../label-Bp4qkqFq.js";
|
|
4
|
+
const L = ({
|
|
6
5
|
id: v,
|
|
7
6
|
label: m,
|
|
8
7
|
options: x,
|
|
@@ -22,11 +21,11 @@ const k = ({
|
|
|
22
21
|
return a = Array.isArray(t) ? t.includes(e.value) ? t.filter((N) => N !== e.value) : [...t, e.value] : [e.value], i(a), a;
|
|
23
22
|
}, C = (e) => u && Array.isArray(r) ? r.includes(e.value) : r === e.value;
|
|
24
23
|
return x.length === 0 ? null : /* @__PURE__ */ l.jsxs("div", { className: f("flex flex-col gap-3", d), children: [
|
|
25
|
-
m && /* @__PURE__ */ l.jsx(
|
|
24
|
+
m && /* @__PURE__ */ l.jsx(A, { htmlFor: v, className: f({ "text-neutral-700": n }), children: m }),
|
|
26
25
|
/* @__PURE__ */ l.jsx("div", { className: "flex flex-wrap gap-2", children: x.map((e) => {
|
|
27
26
|
const a = C(e);
|
|
28
27
|
return /* @__PURE__ */ l.jsx(
|
|
29
|
-
|
|
28
|
+
S,
|
|
30
29
|
{
|
|
31
30
|
intent: a ? "selected" : "unselected",
|
|
32
31
|
iconLeft: a ? "IconCheck" : void 0,
|
|
@@ -41,7 +40,7 @@ const k = ({
|
|
|
41
40
|
s && c ? /* @__PURE__ */ l.jsx("span", { className: "text-error-main label-md -mt-1", children: s }) : /* @__PURE__ */ l.jsx(
|
|
42
41
|
"span",
|
|
43
42
|
{
|
|
44
|
-
className:
|
|
43
|
+
className: y("label-md -mt-1", {
|
|
45
44
|
"text-neutral-1000": !s && !c,
|
|
46
45
|
"text-error-main": s && c,
|
|
47
46
|
"text-success-main": c && !s,
|
|
@@ -53,5 +52,5 @@ const k = ({
|
|
|
53
52
|
] });
|
|
54
53
|
};
|
|
55
54
|
export {
|
|
56
|
-
|
|
55
|
+
L as SelectableChips
|
|
57
56
|
};
|
|
@@ -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("../index-DSjHHn1r.cjs"),o=require("@radix-ui/react-slot"),s=require("../icon-component-DTlgy__B.cjs");function i({...r}){return e.jsxRuntimeExports.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...r})}function c({className:r,...t}){return e.jsxRuntimeExports.jsx("ol",{"data-slot":"breadcrumb-list",className:e.cn("text-muted-foreground paragraph-sm flex flex-wrap items-center gap-1.5 break-words sm:gap-2.5",r),...t})}function u({className:r,...t}){return e.jsxRuntimeExports.jsx("li",{"data-slot":"breadcrumb-item",className:e.cn("inline-flex items-center gap-1.5",r),...t})}function m({asChild:r,className:t,...a}){const n=r?o.Slot:"a";return e.jsxRuntimeExports.jsx(n,{"data-slot":"breadcrumb-link",className:e.cn("hover:text-foreground transition-colors",t),...a})}function l({className:r,...t}){return e.jsxRuntimeExports.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:e.cn("text-foreground font-semibold",r),...t})}function d({children:r,className:t,...a}){return e.jsxRuntimeExports.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:e.cn("[&>svg]:size-3.5",t),...a,children:r??e.jsxRuntimeExports.jsx(s.IconComponent,{iconName:"IconChevronRight"})})}function x({className:r,...t}){return e.jsxRuntimeExports.jsxs("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:e.cn("flex size-9 items-center justify-center [&>svg]:size-3.5",r),...t,children:[e.jsxRuntimeExports.jsx(s.IconComponent,{iconName:"IconDots"}),e.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"More"})]})}exports.Breadcrumb=i;exports.BreadcrumbEllipsis=x;exports.BreadcrumbItem=u;exports.BreadcrumbLink=m;exports.BreadcrumbList=c;exports.BreadcrumbPage=l;exports.BreadcrumbSeparator=d;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { j as a } from "../
|
|
1
|
+
import { j as a, c as t } from "../index-DBpnlzOP.js";
|
|
2
2
|
import { Slot as i } from "@radix-ui/react-slot";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
function d({ ...r }) {
|
|
3
|
+
import { I as n } from "../icon-component-DGImZz3K.js";
|
|
4
|
+
function u({ ...r }) {
|
|
6
5
|
return /* @__PURE__ */ a.jsx("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...r });
|
|
7
6
|
}
|
|
8
|
-
function
|
|
7
|
+
function d({ className: r, ...e }) {
|
|
9
8
|
return /* @__PURE__ */ a.jsx(
|
|
10
9
|
"ol",
|
|
11
10
|
{
|
|
@@ -18,7 +17,7 @@ function b({ className: r, ...e }) {
|
|
|
18
17
|
}
|
|
19
18
|
);
|
|
20
19
|
}
|
|
21
|
-
function
|
|
20
|
+
function b({ className: r, ...e }) {
|
|
22
21
|
return /* @__PURE__ */ a.jsx(
|
|
23
22
|
"li",
|
|
24
23
|
{
|
|
@@ -28,7 +27,7 @@ function p({ className: r, ...e }) {
|
|
|
28
27
|
}
|
|
29
28
|
);
|
|
30
29
|
}
|
|
31
|
-
function
|
|
30
|
+
function p({
|
|
32
31
|
asChild: r,
|
|
33
32
|
className: e,
|
|
34
33
|
...s
|
|
@@ -56,7 +55,7 @@ function x({ className: r, ...e }) {
|
|
|
56
55
|
}
|
|
57
56
|
);
|
|
58
57
|
}
|
|
59
|
-
function
|
|
58
|
+
function f({
|
|
60
59
|
children: r,
|
|
61
60
|
className: e,
|
|
62
61
|
...s
|
|
@@ -73,7 +72,7 @@ function g({
|
|
|
73
72
|
}
|
|
74
73
|
);
|
|
75
74
|
}
|
|
76
|
-
function
|
|
75
|
+
function g({
|
|
77
76
|
className: r,
|
|
78
77
|
...e
|
|
79
78
|
}) {
|
|
@@ -96,11 +95,11 @@ function j({
|
|
|
96
95
|
);
|
|
97
96
|
}
|
|
98
97
|
export {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
98
|
+
u as Breadcrumb,
|
|
99
|
+
g as BreadcrumbEllipsis,
|
|
100
|
+
b as BreadcrumbItem,
|
|
101
|
+
p as BreadcrumbLink,
|
|
102
|
+
d as BreadcrumbList,
|
|
104
103
|
x as BreadcrumbPage,
|
|
105
|
-
|
|
104
|
+
f as BreadcrumbSeparator
|
|
106
105
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../button-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../button-t0WrANXO.cjs");exports.Button=t.Button;exports.buttonActiveStyles=t.buttonActiveStyles;exports.buttonLoadingStyles=t.buttonLoadingStyles;exports.buttonStyles=t.buttonStyles;
|