@clasing/ui 2.5.0 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/badge-DK9gdPpu.cjs +91 -0
- package/dist/badge-aFyTFGVU.js +173 -0
- package/dist/button-2VesFn_C.js +256 -0
- package/dist/button-DWBp81pk.cjs +70 -0
- package/dist/card-DkYKwjsA.cjs +12 -0
- package/dist/{card-Cv2M4wv8.js → card-aAzRmGVH.js} +19 -5
- package/dist/chip-BlWb6w16.cjs +17 -0
- package/dist/chip-BmqvnZuy.js +116 -0
- package/dist/{clasing-icon-Bym32_-4.cjs → clasing-icon-CHt2Otn8.cjs} +1 -1
- package/dist/{clasing-icon-BIYMLc8o.js → clasing-icon-CJQQN554.js} +1 -1
- package/dist/command-FBkK3fzE.cjs +36 -0
- package/dist/{command-CGrOI2Z9.js → command-Vk11GgqU.js} +67 -26
- package/dist/components/accordion.cjs.js +20 -1
- package/dist/components/accordion.es.js +38 -16
- package/dist/components/alert-dialog.cjs.js +17 -1
- package/dist/components/alert-dialog.es.js +23 -7
- package/dist/components/alert.cjs.js +6 -1
- package/dist/components/alert.d.ts +1 -2
- package/dist/components/alert.es.js +54 -50
- package/dist/components/avatar.cjs.js +1 -1
- package/dist/components/avatar.es.js +1 -1
- package/dist/components/badge.cjs.js +1 -1
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/badge.es.js +1 -1
- package/dist/components/blocks/interactive-card.cjs.js +5 -1
- package/dist/components/blocks/interactive-card.es.js +60 -56
- package/dist/components/blocks/selectable-chips.cjs.js +1 -1
- package/dist/components/blocks/selectable-chips.d.ts +6 -6
- package/dist/components/blocks/selectable-chips.es.js +88 -55
- package/dist/components/breadcrumb.cjs.js +1 -1
- package/dist/components/breadcrumb.es.js +1 -1
- package/dist/components/button-group.cjs.js +1 -1
- package/dist/components/button-group.es.js +3 -3
- package/dist/components/button.cjs.js +1 -1
- package/dist/components/button.d.ts +8 -17
- package/dist/components/button.es.js +2 -4
- package/dist/components/calendar.cjs.js +73 -1
- package/dist/components/calendar.es.js +120 -42
- package/dist/components/card.cjs.js +1 -1
- package/dist/components/card.es.js +1 -1
- package/dist/components/chart.cjs.js +27 -2
- package/dist/components/chart.es.js +38 -7
- package/dist/components/checkbox.cjs.js +15 -1
- package/dist/components/checkbox.es.js +28 -14
- package/dist/components/chip.cjs.js +1 -1
- package/dist/components/chip.d.ts +3 -3
- package/dist/components/chip.es.js +1 -1
- package/dist/components/clasing-icon.cjs.js +1 -1
- package/dist/components/clasing-icon.es.js +1 -1
- package/dist/components/collapsible.cjs.js +10 -1
- package/dist/components/collapsible.es.js +17 -8
- package/dist/components/command.cjs.js +1 -1
- package/dist/components/command.es.js +1 -1
- package/dist/components/context-menu.cjs.js +71 -1
- package/dist/components/context-menu.es.js +128 -45
- package/dist/components/dialog.cjs.js +1 -1
- package/dist/components/dialog.es.js +1 -1
- package/dist/components/divider.cjs.js +1 -1
- package/dist/components/divider.es.js +1 -1
- package/dist/components/drawer.cjs.js +42 -1
- package/dist/components/drawer.es.js +63 -17
- package/dist/components/dropdown-menu.cjs.js +69 -1
- package/dist/components/dropdown-menu.es.js +93 -12
- package/dist/components/form.cjs.js +1 -1
- package/dist/components/form.es.js +21 -21
- package/dist/components/hover-card.cjs.js +13 -1
- package/dist/components/hover-card.es.js +31 -18
- package/dist/components/input-otp.cjs.js +19 -1
- package/dist/components/input-otp.es.js +49 -25
- package/dist/components/input.cjs.js +1 -1
- package/dist/components/input.es.js +1 -1
- package/dist/components/kbd.cjs.js +9 -1
- package/dist/components/kbd.es.js +11 -3
- package/dist/components/label.cjs.js +1 -1
- package/dist/components/label.es.js +1 -1
- package/dist/components/menubar.cjs.js +75 -1
- package/dist/components/menubar.es.js +119 -32
- package/dist/components/multi-select.cjs.js +24 -1
- package/dist/components/multi-select.es.js +61 -27
- package/dist/components/navigation-menu.cjs.js +71 -1
- package/dist/components/navigation-menu.es.js +86 -11
- package/dist/components/phone-input.cjs.js +21 -1
- package/dist/components/phone-input.es.js +267 -174
- package/dist/components/popover.cjs.js +1 -1
- package/dist/components/popover.es.js +1 -1
- package/dist/components/progress.cjs.js +1 -1
- package/dist/components/progress.es.js +3 -3
- package/dist/components/resizable.cjs.js +22 -1
- package/dist/components/resizable.d.ts +1 -1
- package/dist/components/resizable.es.js +52 -17
- package/dist/components/scroll-area.cjs.js +1 -1
- package/dist/components/scroll-area.es.js +1 -1
- package/dist/components/select.cjs.js +57 -1
- package/dist/components/select.d.ts +2 -1
- package/dist/components/select.es.js +84 -23
- package/dist/components/sheet.cjs.js +36 -1
- package/dist/components/sheet.es.js +75 -34
- package/dist/components/skeleton.cjs.js +1 -1
- package/dist/components/skeleton.es.js +1 -1
- package/dist/components/slider.cjs.js +23 -1
- package/dist/components/slider.es.js +46 -24
- package/dist/components/sonner.cjs.js +15 -1
- package/dist/components/sonner.es.js +67 -41
- package/dist/components/switch.cjs.js +19 -1
- package/dist/components/switch.es.js +29 -11
- package/dist/components/table.cjs.js +20 -1
- package/dist/components/table.es.js +56 -34
- package/dist/components/textarea.cjs.js +22 -1
- package/dist/components/textarea.es.js +46 -25
- package/dist/components/toggle-group.cjs.js +12 -1
- package/dist/components/toggle-group.es.js +15 -4
- package/dist/components/toggle.cjs.js +1 -1
- package/dist/components/toggle.es.js +1 -1
- package/dist/components/tooltip.cjs.js +1 -1
- package/dist/components/tooltip.es.js +1 -1
- package/dist/dialog-BUaX7IId.cjs +28 -0
- package/dist/{dialog-CH4VxKX4.js → dialog-CdmsVmRe.js} +41 -14
- package/dist/divider-D4EfIlt3.cjs +1 -0
- package/dist/{divider-BMxVoyPg.js → divider-DumyhJI_.js} +6 -6
- package/dist/entries/button.d.ts +2 -2
- package/dist/index-Bfismeyo.cjs +6 -0
- package/dist/{index-ECyCsPX0.cjs → index-BmhzhLcV.cjs} +1 -1
- package/dist/{index-DEha_UuN.js → index-CnqageB2.js} +1 -1
- package/dist/{index-BCEGphus.js → index-CwFDnnd3.js} +678 -519
- package/dist/input-kOA9xJIa.js +122 -0
- package/dist/input-u-OTHOPe.cjs +28 -0
- package/dist/label-BteX4MEt.js +27 -0
- package/dist/label-O3mSiGyx.cjs +7 -0
- package/dist/popover-A1-x5q-F.cjs +13 -0
- package/dist/popover-eQq2Is-I.js +57 -0
- package/dist/{scroll-area-CxpVQq0v.js → scroll-area-CJy_EOqT.js} +10 -5
- package/dist/scroll-area-DFyIQG6Z.cjs +6 -0
- package/dist/toggle-BdWGPLza.cjs +21 -0
- package/dist/toggle-DuhnqdDT.js +63 -0
- package/dist/tooltip-BYeLeBei.js +74 -0
- package/dist/tooltip-BZWEHWmU.cjs +14 -0
- package/dist/ui.css +209 -209
- package/package.json +32 -27
- package/dist/badge-C29hQNIG.js +0 -84
- package/dist/badge-Da_xHgvC.cjs +0 -1
- package/dist/button-Bn-b-nVw.js +0 -213
- package/dist/button-C7U_D8vv.cjs +0 -1
- package/dist/card-COFAc2zN.cjs +0 -1
- package/dist/chip-C_Uh7fe6.cjs +0 -1
- package/dist/chip-ZryYiiU1.js +0 -89
- package/dist/command-CrtCQpi_.cjs +0 -1
- package/dist/dialog-DHZARK1o.cjs +0 -1
- package/dist/divider-BcIwJzm7.cjs +0 -1
- package/dist/index-9HRzXEQf.cjs +0 -6
- package/dist/input-BvfRiqqw.js +0 -82
- package/dist/input-Dtd0sjiW.cjs +0 -1
- package/dist/label-Bl6V6esj.js +0 -21
- package/dist/label-D3iN3bzS.cjs +0 -1
- package/dist/popover-1_WpciTS.js +0 -44
- package/dist/popover-CeOAAwBQ.cjs +0 -1
- package/dist/scroll-area-D74XszlE.cjs +0 -1
- package/dist/toggle-99EXLQgX.js +0 -43
- package/dist/toggle-CtoQhQby.cjs +0 -1
- package/dist/tooltip-BS84dkwx.js +0 -55
- package/dist/tooltip-BccdAn4x.cjs +0 -1
|
@@ -1,95 +1,99 @@
|
|
|
1
|
-
import { j as r, c as
|
|
2
|
-
import { QuestionIcon as
|
|
3
|
-
import { c as
|
|
4
|
-
const
|
|
5
|
-
|
|
1
|
+
import { j as r, c as n } from "../index-CwFDnnd3.js";
|
|
2
|
+
import { QuestionIcon as d, WarningCircleIcon as g, WarningIcon as u, CheckCircleIcon as f, InfoIcon as m } from "@phosphor-icons/react";
|
|
3
|
+
import { c as p } from "../index-CnqageB2.js";
|
|
4
|
+
const x = p(
|
|
5
|
+
`
|
|
6
|
+
relative grid w-full grid-cols-[0_1fr] items-start gap-y-2 rounded-2xl
|
|
7
|
+
border px-6 py-6 paragraph-sm text-foreground
|
|
8
|
+
has-[>svg]:grid-cols-[calc(var(--spacing)*5)_1fr] has-[>svg]:gap-x-3
|
|
9
|
+
[&>svg]:size-5 [&>svg]:translate-y-0.5 [&>svg]:text-current
|
|
10
|
+
`,
|
|
6
11
|
{
|
|
7
12
|
variants: {
|
|
8
13
|
variant: {
|
|
9
|
-
info: "bg-
|
|
10
|
-
success: "bg-success
|
|
11
|
-
warning: "bg-warning
|
|
12
|
-
error: "bg-
|
|
13
|
-
neutral: "bg-
|
|
14
|
+
info: "border-info-foreground/50 bg-info/50",
|
|
15
|
+
success: "border-success-foreground/50 bg-success/50",
|
|
16
|
+
warning: "border-warning-foreground/50 bg-warning/50",
|
|
17
|
+
error: "border-destructive-foreground/50 bg-destructive/50",
|
|
18
|
+
neutral: "border-muted bg-muted/50"
|
|
14
19
|
}
|
|
15
20
|
},
|
|
16
21
|
defaultVariants: {
|
|
17
22
|
variant: "neutral"
|
|
18
23
|
}
|
|
19
24
|
}
|
|
20
|
-
),
|
|
21
|
-
info:
|
|
22
|
-
success:
|
|
23
|
-
warning:
|
|
24
|
-
error:
|
|
25
|
-
neutral:
|
|
26
|
-
},
|
|
27
|
-
info: "text-
|
|
28
|
-
success: "text-success-
|
|
29
|
-
warning: "text-warning-
|
|
30
|
-
error: "text-
|
|
31
|
-
neutral: "text-
|
|
25
|
+
), b = {
|
|
26
|
+
info: m,
|
|
27
|
+
success: f,
|
|
28
|
+
warning: u,
|
|
29
|
+
error: g,
|
|
30
|
+
neutral: d
|
|
31
|
+
}, v = {
|
|
32
|
+
info: "text-info-foreground!",
|
|
33
|
+
success: "text-success-foreground!",
|
|
34
|
+
warning: "text-warning-foreground!",
|
|
35
|
+
error: "text-destructive-foreground!",
|
|
36
|
+
neutral: "text-muted-foreground!"
|
|
32
37
|
};
|
|
33
|
-
function
|
|
34
|
-
className:
|
|
35
|
-
title:
|
|
36
|
-
content:
|
|
38
|
+
function y({
|
|
39
|
+
className: s,
|
|
40
|
+
title: e,
|
|
41
|
+
content: o,
|
|
37
42
|
variant: t = "neutral",
|
|
38
|
-
showIcon:
|
|
39
|
-
|
|
40
|
-
children: l,
|
|
43
|
+
showIcon: a,
|
|
44
|
+
children: i,
|
|
41
45
|
...c
|
|
42
46
|
}) {
|
|
43
|
-
const
|
|
47
|
+
const l = b[t];
|
|
44
48
|
return /* @__PURE__ */ r.jsxs(
|
|
45
49
|
"div",
|
|
46
50
|
{
|
|
47
51
|
"data-slot": "alert",
|
|
48
52
|
role: "alert",
|
|
49
|
-
className:
|
|
53
|
+
className: n(x({ variant: t }), s),
|
|
50
54
|
...c,
|
|
51
55
|
children: [
|
|
52
|
-
|
|
53
|
-
|
|
56
|
+
a && t && /* @__PURE__ */ r.jsx(
|
|
57
|
+
l,
|
|
54
58
|
{
|
|
55
|
-
className:
|
|
59
|
+
className: n("size-5 min-w-5", v[t])
|
|
56
60
|
}
|
|
57
61
|
),
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
62
|
+
e && /* @__PURE__ */ r.jsx(h, { children: /* @__PURE__ */ r.jsx("p", { className: "label-lg font-semibold", children: e }) }),
|
|
63
|
+
o && /* @__PURE__ */ r.jsx(j, { children: /* @__PURE__ */ r.jsx("p", { className: "paragraph-sm", children: o }) }),
|
|
64
|
+
i
|
|
61
65
|
]
|
|
62
66
|
}
|
|
63
67
|
);
|
|
64
68
|
}
|
|
65
|
-
function
|
|
69
|
+
function h({ className: s, ...e }) {
|
|
66
70
|
return /* @__PURE__ */ r.jsx(
|
|
67
71
|
"div",
|
|
68
72
|
{
|
|
69
73
|
"data-slot": "alert-title",
|
|
70
|
-
className:
|
|
71
|
-
...
|
|
74
|
+
className: n("col-start-2 label-lg font-semibold", s),
|
|
75
|
+
...e
|
|
72
76
|
}
|
|
73
77
|
);
|
|
74
78
|
}
|
|
75
|
-
function
|
|
76
|
-
className:
|
|
77
|
-
...
|
|
79
|
+
function j({
|
|
80
|
+
className: s,
|
|
81
|
+
...e
|
|
78
82
|
}) {
|
|
79
83
|
return /* @__PURE__ */ r.jsx(
|
|
80
84
|
"div",
|
|
81
85
|
{
|
|
82
86
|
"data-slot": "alert-description",
|
|
83
|
-
className:
|
|
84
|
-
"
|
|
85
|
-
|
|
87
|
+
className: n(
|
|
88
|
+
"col-start-2 grid justify-items-start gap-1 paragraph-sm",
|
|
89
|
+
s
|
|
86
90
|
),
|
|
87
|
-
...
|
|
91
|
+
...e
|
|
88
92
|
}
|
|
89
93
|
);
|
|
90
94
|
}
|
|
91
95
|
export {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
96
|
+
y as Alert,
|
|
97
|
+
j as AlertDescription,
|
|
98
|
+
h as AlertTitle
|
|
95
99
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../index-Bfismeyo.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 +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-DK9gdPpu.cjs");exports.Badge=e.Badge;
|
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
declare const badgeVariants: (props?: ({
|
|
4
4
|
variant?: "default" | "primary" | "secondary" | "outline" | "destructive" | "info" | "success" | "warning" | "error" | "neutral" | "yellow" | "blue" | "violet" | "not-started" | "in-progress" | "completed" | "blocked" | "paused" | "failed" | "expired" | "cancelled" | null | undefined;
|
|
5
5
|
size?: "lg" | "md" | "sm" | "xs" | null | undefined;
|
|
6
|
-
weight?: "
|
|
6
|
+
weight?: "regular" | "medium" | "semibold" | null | undefined;
|
|
7
7
|
rounded?: "default" | "full" | null | undefined;
|
|
8
8
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
9
|
export interface IBadgeProps extends React.ComponentProps<'span'>, VariantProps<typeof badgeVariants> {
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../index-Bfismeyo.cjs"),N=require("../../badge-DK9gdPpu.cjs"),o=require("../../card-DkYKwjsA.cjs"),u=require("../../tooltip-BZWEHWmU.cjs"),v=require("@phosphor-icons/react"),q=require("../../index-BmhzhLcV.cjs"),I=require("react"),y=q.cva(`
|
|
2
|
+
transition-[color,box-shadow]
|
|
3
|
+
focus-visible:border-ring focus-visible:ring-[3px]
|
|
4
|
+
focus-visible:ring-ring/50
|
|
5
|
+
`),m=I.forwardRef(({className:f,isActive:n,title:x,text:d,helperText:l,badgeText:t,disabled:r,badgeVariant:g,badgeSize:j="xs",icon:i,tooltipIcon:p,tooltipText:s,tooltipTitle:a,tooltipSide:h,tooltipSideOffset:R,tooltipAlign:E,children:b,...c},C)=>e.jsxRuntimeExports.jsxs(o.Card,{ref:C,className:e.cn(y({className:f}),{"border-info-foreground bg-info/50":n,"border-muted-foreground bg-muted":r,"cursor-pointer active:bg-info/30":c.onClick&&n&&!r,"cursor-pointer active:bg-info/15":c.onClick&&!n&&!r}),role:"button",tabIndex:0,...c,children:[t||i?e.jsxRuntimeExports.jsxs(o.CardHeader,{className:"flex items-center justify-between gap-2",children:[i?e.jsxRuntimeExports.jsx("div",{className:e.cn("rounded-full p-1",{"bg-muted text-muted-foreground":!n,"bg-info text-info-foreground":n,"bg-background text-muted-foreground":r}),children:i}):null,(t||s)&&e.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[t?e.jsxRuntimeExports.jsx(N.Badge,{variant:g,size:j,weight:"semibold",className:e.cn({"opacity-50":r}),children:t}):null,s&&e.jsxRuntimeExports.jsxs(u.Tooltip,{children:[e.jsxRuntimeExports.jsx(u.TooltipTrigger,{children:p??e.jsxRuntimeExports.jsx(v.InfoIcon,{size:20,className:"z-10 min-h-5 min-w-5"})}),e.jsxRuntimeExports.jsx(u.TooltipContent,{side:h,sideOffset:R,align:E,children:a||s&&e.jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-1",children:[a&&e.jsxRuntimeExports.jsx("p",{className:"paragraph-md font-semibold",children:a}),s&&e.jsxRuntimeExports.jsx("p",{className:"paragraph-md",children:s})]})})]})]})]}):null,e.jsxRuntimeExports.jsxs(o.CardContent,{className:"flex flex-col gap-1",children:[x?e.jsxRuntimeExports.jsx("p",{className:e.cn("label-xl font-semibold text-foreground",{"text-muted-foreground":r}),children:x}):null,d?e.jsxRuntimeExports.jsx("p",{className:e.cn("paragraph-md text-muted-foreground",{"text-muted-foreground":r}),children:d}):null,b]}),l?e.jsxRuntimeExports.jsx(o.CardFooter,{children:e.jsxRuntimeExports.jsx("p",{className:e.cn("paragraph-sm text-muted-foreground",{"text-muted-foreground":r}),children:l})}):null]}));m.displayName="InteractiveCard";const w=m;exports.InteractiveCard=w;
|
|
@@ -1,82 +1,86 @@
|
|
|
1
|
-
import { j as r, c as
|
|
2
|
-
import { B as v } from "../../badge-
|
|
3
|
-
import { C as
|
|
4
|
-
import { T as
|
|
1
|
+
import { j as r, c as n } from "../../index-CwFDnnd3.js";
|
|
2
|
+
import { B as v } from "../../badge-aFyTFGVU.js";
|
|
3
|
+
import { C as I, e as w, b as y, d as k } from "../../card-aAzRmGVH.js";
|
|
4
|
+
import { T as z, c as B, a as R } from "../../tooltip-BYeLeBei.js";
|
|
5
5
|
import { InfoIcon as E } from "@phosphor-icons/react";
|
|
6
|
-
import { c as F } from "../../index-
|
|
6
|
+
import { c as F } from "../../index-CnqageB2.js";
|
|
7
7
|
import { forwardRef as H } from "react";
|
|
8
8
|
const O = F(
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
`
|
|
10
|
+
transition-[color,box-shadow]
|
|
11
|
+
focus-visible:border-ring focus-visible:ring-[3px]
|
|
12
|
+
focus-visible:ring-ring/50
|
|
13
|
+
`
|
|
14
|
+
), f = H(
|
|
11
15
|
({
|
|
12
|
-
className:
|
|
16
|
+
className: u,
|
|
13
17
|
isActive: s,
|
|
14
18
|
title: i,
|
|
15
19
|
text: m,
|
|
16
|
-
helperText:
|
|
17
|
-
badgeText:
|
|
20
|
+
helperText: t,
|
|
21
|
+
badgeText: a,
|
|
18
22
|
disabled: e,
|
|
19
|
-
badgeVariant:
|
|
20
|
-
badgeSize:
|
|
21
|
-
icon:
|
|
23
|
+
badgeVariant: g,
|
|
24
|
+
badgeSize: x = "xs",
|
|
25
|
+
icon: l,
|
|
22
26
|
tooltipIcon: p,
|
|
23
|
-
tooltipText:
|
|
24
|
-
tooltipTitle:
|
|
27
|
+
tooltipText: o,
|
|
28
|
+
tooltipTitle: c,
|
|
25
29
|
tooltipSide: h,
|
|
26
30
|
tooltipSideOffset: j,
|
|
27
|
-
tooltipAlign:
|
|
28
|
-
children:
|
|
29
|
-
...
|
|
30
|
-
},
|
|
31
|
-
|
|
31
|
+
tooltipAlign: C,
|
|
32
|
+
children: N,
|
|
33
|
+
...d
|
|
34
|
+
}, b) => /* @__PURE__ */ r.jsxs(
|
|
35
|
+
I,
|
|
32
36
|
{
|
|
33
|
-
ref:
|
|
34
|
-
className:
|
|
35
|
-
"
|
|
36
|
-
"border-
|
|
37
|
-
"cursor-pointer
|
|
38
|
-
"
|
|
37
|
+
ref: b,
|
|
38
|
+
className: n(O({ className: u }), {
|
|
39
|
+
"border-info-foreground bg-info/50": s,
|
|
40
|
+
"border-muted-foreground bg-muted": e,
|
|
41
|
+
"cursor-pointer active:bg-info/30": d.onClick && s && !e,
|
|
42
|
+
"cursor-pointer active:bg-info/15": d.onClick && !s && !e
|
|
39
43
|
}),
|
|
40
44
|
role: "button",
|
|
41
45
|
tabIndex: 0,
|
|
42
|
-
...
|
|
46
|
+
...d,
|
|
43
47
|
children: [
|
|
44
|
-
|
|
45
|
-
|
|
48
|
+
a || l ? /* @__PURE__ */ r.jsxs(w, { className: "flex items-center justify-between gap-2", children: [
|
|
49
|
+
l ? /* @__PURE__ */ r.jsx(
|
|
46
50
|
"div",
|
|
47
51
|
{
|
|
48
|
-
className:
|
|
49
|
-
"bg-
|
|
50
|
-
"bg-
|
|
51
|
-
"bg-
|
|
52
|
+
className: n("rounded-full p-1", {
|
|
53
|
+
"bg-muted text-muted-foreground": !s,
|
|
54
|
+
"bg-info text-info-foreground": s,
|
|
55
|
+
"bg-background text-muted-foreground": e
|
|
52
56
|
}),
|
|
53
|
-
children:
|
|
57
|
+
children: l
|
|
54
58
|
}
|
|
55
59
|
) : null,
|
|
56
|
-
(
|
|
57
|
-
|
|
60
|
+
(a || o) && /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
61
|
+
a ? /* @__PURE__ */ r.jsx(
|
|
58
62
|
v,
|
|
59
63
|
{
|
|
60
|
-
variant:
|
|
61
|
-
size:
|
|
64
|
+
variant: g,
|
|
65
|
+
size: x,
|
|
62
66
|
weight: "semibold",
|
|
63
|
-
className:
|
|
67
|
+
className: n({
|
|
64
68
|
"opacity-50": e
|
|
65
69
|
}),
|
|
66
|
-
children:
|
|
70
|
+
children: a
|
|
67
71
|
}
|
|
68
72
|
) : null,
|
|
69
|
-
|
|
73
|
+
o && /* @__PURE__ */ r.jsxs(z, { children: [
|
|
70
74
|
/* @__PURE__ */ r.jsx(B, { children: p ?? /* @__PURE__ */ r.jsx(E, { size: 20, className: "z-10 min-h-5 min-w-5" }) }),
|
|
71
75
|
/* @__PURE__ */ r.jsx(
|
|
72
76
|
R,
|
|
73
77
|
{
|
|
74
78
|
side: h,
|
|
75
79
|
sideOffset: j,
|
|
76
|
-
align:
|
|
77
|
-
children:
|
|
78
|
-
|
|
79
|
-
|
|
80
|
+
align: C,
|
|
81
|
+
children: c || o && /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
82
|
+
c && /* @__PURE__ */ r.jsx("p", { className: "paragraph-md font-semibold", children: c }),
|
|
83
|
+
o && /* @__PURE__ */ r.jsx("p", { className: "paragraph-md", children: o })
|
|
80
84
|
] })
|
|
81
85
|
}
|
|
82
86
|
)
|
|
@@ -87,8 +91,8 @@ const O = F(
|
|
|
87
91
|
i ? /* @__PURE__ */ r.jsx(
|
|
88
92
|
"p",
|
|
89
93
|
{
|
|
90
|
-
className:
|
|
91
|
-
"text-
|
|
94
|
+
className: n("label-xl font-semibold text-foreground", {
|
|
95
|
+
"text-muted-foreground": e
|
|
92
96
|
}),
|
|
93
97
|
children: i
|
|
94
98
|
}
|
|
@@ -96,29 +100,29 @@ const O = F(
|
|
|
96
100
|
m ? /* @__PURE__ */ r.jsx(
|
|
97
101
|
"p",
|
|
98
102
|
{
|
|
99
|
-
className:
|
|
100
|
-
"text-
|
|
103
|
+
className: n("paragraph-md text-muted-foreground", {
|
|
104
|
+
"text-muted-foreground": e
|
|
101
105
|
}),
|
|
102
106
|
children: m
|
|
103
107
|
}
|
|
104
108
|
) : null,
|
|
105
|
-
|
|
109
|
+
N
|
|
106
110
|
] }),
|
|
107
|
-
|
|
111
|
+
t ? /* @__PURE__ */ r.jsx(k, { children: /* @__PURE__ */ r.jsx(
|
|
108
112
|
"p",
|
|
109
113
|
{
|
|
110
|
-
className:
|
|
111
|
-
"text-
|
|
114
|
+
className: n("paragraph-sm text-muted-foreground", {
|
|
115
|
+
"text-muted-foreground": e
|
|
112
116
|
}),
|
|
113
|
-
children:
|
|
117
|
+
children: t
|
|
114
118
|
}
|
|
115
119
|
) }) : null
|
|
116
120
|
]
|
|
117
121
|
}
|
|
118
122
|
)
|
|
119
123
|
);
|
|
120
|
-
|
|
121
|
-
const M =
|
|
124
|
+
f.displayName = "InteractiveCard";
|
|
125
|
+
const M = f;
|
|
122
126
|
export {
|
|
123
127
|
M as InteractiveCard
|
|
124
128
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../index-Bfismeyo.cjs"),O=require("../../chip-BlWb6w16.cjs"),E=require("../../label-O3mSiGyx.cjs"),q=require("@phosphor-icons/react"),A=require("react");function k(s){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const r in s)if(r!=="default"){const c=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(l,r,c.get?c:{enumerable:!0,get:()=>s[r]})}}return l.default=s,Object.freeze(l)}const x=k(A),f=x.forwardRef(({id:s,label:l,options:r,multiple:c=!1,value:i,defaultValue:m,onChange:p,onValueChange:b,className:h,disabled:u,helperText:o,...j},g)=>{const[y,S]=x.useState(m||(c?[]:"")),n=i!==void 0?i:y,d=e=>{i===void 0&&S(e),p?.(e),b?.(e)},v=e=>{if(!c){d(e.value);return}const a=Array.isArray(n)?n:[],C=a.includes(e.value)?a.filter(N=>N!==e.value):[...a,e.value];d(C)},R=e=>c?Array.isArray(n)&&n.includes(e.value):n===e.value;return r.length===0?null:t.jsxRuntimeExports.jsxs("div",{ref:g,"data-slot":"selectable-chips",className:t.cn("flex flex-col gap-3",h),...j,children:[l&&t.jsxRuntimeExports.jsx(E.Label,{"data-slot":"selectable-chips-label",htmlFor:s,className:t.cn({"text-muted-foreground":u}),children:l}),t.jsxRuntimeExports.jsx("div",{"data-slot":"selectable-chips-container",className:"flex flex-wrap gap-2",children:r.map(e=>{const a=R(e);return t.jsxRuntimeExports.jsxs(O.ChipComponent,{"data-selected":a,variant:a?"selected":"unselected",onClick:()=>v(e),className:"py-1",disabled:u,children:[a&&t.jsxRuntimeExports.jsx(q.CheckIcon,{}),e.label]},e.label)})}),o&&t.jsxRuntimeExports.jsx("p",{"data-slot":"selectable-chips-description",className:t.cn("-mt-1 label-md text-muted-foreground",u&&"text-muted-foreground"),children:o})]})});f.displayName="SelectableChips";exports.SelectableChips=f;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Option } from '@/utils/types';
|
|
2
|
-
import
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
export interface ISelectableChipsProps {
|
|
4
4
|
id?: string;
|
|
5
5
|
label?: string;
|
|
6
6
|
options: Option[];
|
|
7
7
|
multiple?: boolean;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
value?: Option['value'] | Option['value'][];
|
|
9
|
+
defaultValue?: Option['value'] | Option['value'][];
|
|
10
|
+
onChange?: (value: Option['value'] | Option['value'][]) => void;
|
|
11
|
+
onValueChange?: (value: Option['value'] | Option['value'][]) => void;
|
|
10
12
|
className?: string;
|
|
11
13
|
disabled?: boolean;
|
|
12
14
|
helperText?: string;
|
|
13
|
-
error?: string;
|
|
14
|
-
touched?: boolean;
|
|
15
15
|
}
|
|
16
|
-
export declare const SelectableChips:
|
|
16
|
+
export declare const SelectableChips: React.ForwardRefExoticComponent<ISelectableChipsProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,59 +1,92 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { C as
|
|
3
|
-
import { L as
|
|
4
|
-
import { CheckIcon as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
className: "py-1",
|
|
34
|
-
disabled: n,
|
|
35
|
-
children: [
|
|
36
|
-
l && /* @__PURE__ */ a.jsx(A, {}),
|
|
37
|
-
e.label
|
|
38
|
-
]
|
|
39
|
-
},
|
|
40
|
-
e.label
|
|
41
|
-
);
|
|
42
|
-
}) }),
|
|
43
|
-
s && c ? /* @__PURE__ */ a.jsx("span", { className: "text-error-main label-md -mt-1", children: s }) : /* @__PURE__ */ a.jsx(
|
|
44
|
-
"span",
|
|
1
|
+
import { j as s, c as n } from "../../index-CwFDnnd3.js";
|
|
2
|
+
import { C as R } from "../../chip-BmqvnZuy.js";
|
|
3
|
+
import { L as k } from "../../label-BteX4MEt.js";
|
|
4
|
+
import { CheckIcon as I } from "@phosphor-icons/react";
|
|
5
|
+
import * as u from "react";
|
|
6
|
+
const L = u.forwardRef(
|
|
7
|
+
({
|
|
8
|
+
id: f,
|
|
9
|
+
label: d,
|
|
10
|
+
options: i,
|
|
11
|
+
multiple: l = !1,
|
|
12
|
+
value: r,
|
|
13
|
+
defaultValue: h,
|
|
14
|
+
onChange: x,
|
|
15
|
+
onValueChange: p,
|
|
16
|
+
className: v,
|
|
17
|
+
disabled: c,
|
|
18
|
+
helperText: o,
|
|
19
|
+
...b
|
|
20
|
+
}, j) => {
|
|
21
|
+
const [C, g] = u.useState(h || (l ? [] : "")), t = r !== void 0 ? r : C, m = (e) => {
|
|
22
|
+
r === void 0 && g(e), x?.(e), p?.(e);
|
|
23
|
+
}, y = (e) => {
|
|
24
|
+
if (!l) {
|
|
25
|
+
m(e.value);
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
const a = Array.isArray(t) ? t : [], N = a.includes(e.value) ? a.filter((A) => A !== e.value) : [...a, e.value];
|
|
29
|
+
m(N);
|
|
30
|
+
}, S = (e) => l ? Array.isArray(t) && t.includes(e.value) : t === e.value;
|
|
31
|
+
return i.length === 0 ? null : /* @__PURE__ */ s.jsxs(
|
|
32
|
+
"div",
|
|
45
33
|
{
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
34
|
+
ref: j,
|
|
35
|
+
"data-slot": "selectable-chips",
|
|
36
|
+
className: n("flex flex-col gap-3", v),
|
|
37
|
+
...b,
|
|
38
|
+
children: [
|
|
39
|
+
d && /* @__PURE__ */ s.jsx(
|
|
40
|
+
k,
|
|
41
|
+
{
|
|
42
|
+
"data-slot": "selectable-chips-label",
|
|
43
|
+
htmlFor: f,
|
|
44
|
+
className: n({ "text-muted-foreground": c }),
|
|
45
|
+
children: d
|
|
46
|
+
}
|
|
47
|
+
),
|
|
48
|
+
/* @__PURE__ */ s.jsx(
|
|
49
|
+
"div",
|
|
50
|
+
{
|
|
51
|
+
"data-slot": "selectable-chips-container",
|
|
52
|
+
className: "flex flex-wrap gap-2",
|
|
53
|
+
children: i.map((e) => {
|
|
54
|
+
const a = S(e);
|
|
55
|
+
return /* @__PURE__ */ s.jsxs(
|
|
56
|
+
R,
|
|
57
|
+
{
|
|
58
|
+
"data-selected": a,
|
|
59
|
+
variant: a ? "selected" : "unselected",
|
|
60
|
+
onClick: () => y(e),
|
|
61
|
+
className: "py-1",
|
|
62
|
+
disabled: c,
|
|
63
|
+
children: [
|
|
64
|
+
a && /* @__PURE__ */ s.jsx(I, {}),
|
|
65
|
+
e.label
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
e.label
|
|
69
|
+
);
|
|
70
|
+
})
|
|
71
|
+
}
|
|
72
|
+
),
|
|
73
|
+
o && /* @__PURE__ */ s.jsx(
|
|
74
|
+
"p",
|
|
75
|
+
{
|
|
76
|
+
"data-slot": "selectable-chips-description",
|
|
77
|
+
className: n(
|
|
78
|
+
"-mt-1 label-md text-muted-foreground",
|
|
79
|
+
c && "text-muted-foreground"
|
|
80
|
+
),
|
|
81
|
+
children: o
|
|
82
|
+
}
|
|
83
|
+
)
|
|
84
|
+
]
|
|
53
85
|
}
|
|
54
|
-
)
|
|
55
|
-
|
|
56
|
-
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
);
|
|
89
|
+
L.displayName = "SelectableChips";
|
|
57
90
|
export {
|
|
58
|
-
|
|
91
|
+
L as SelectableChips
|
|
59
92
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../index-Bfismeyo.cjs"),i=require("@radix-ui/react-slot"),s=require("@phosphor-icons/react");function o({...e}){return r.jsxRuntimeExports.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function c({className:e,...t}){return r.jsxRuntimeExports.jsx("ol",{"data-slot":"breadcrumb-list",className:r.cn("text-muted-foreground paragraph-sm flex flex-wrap items-center gap-1.5 wrap-break-word sm:gap-2.5",e),...t})}function u({className:e,...t}){return r.jsxRuntimeExports.jsx("li",{"data-slot":"breadcrumb-item",className:r.cn("inline-flex items-center gap-1.5",e),...t})}function m({asChild:e,className:t,...a}){const n=e?i.Slot:"a";return r.jsxRuntimeExports.jsx(n,{"data-slot":"breadcrumb-link",className:r.cn("hover:text-foreground transition-colors",t),...a})}function l({className:e,...t}){return r.jsxRuntimeExports.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:r.cn("text-foreground font-semibold",e),...t})}function d({children:e,className:t,...a}){return r.jsxRuntimeExports.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:r.cn("[&>svg]:size-3.5",t),...a,children:e??r.jsxRuntimeExports.jsx(s.CaretRightIcon,{})})}function x({className:e,...t}){return r.jsxRuntimeExports.jsxs("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:r.cn("flex size-9 items-center justify-center [&>svg]:size-3.5",e),...t,children:[r.jsxRuntimeExports.jsx(s.DotsThreeIcon,{}),r.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"More"})]})}exports.Breadcrumb=o;exports.BreadcrumbEllipsis=x;exports.BreadcrumbItem=u;exports.BreadcrumbLink=m;exports.BreadcrumbList=c;exports.BreadcrumbPage=l;exports.BreadcrumbSeparator=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-Bfismeyo.cjs"),s=require("@radix-ui/react-slot"),a=require("../index-BmhzhLcV.cjs"),u=require("../divider-D4EfIlt3.cjs"),n=a.cva("flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-full [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",{variants:{orientation:{horizontal:"[&>*:not(:first-child)]:rounded-l-none! [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none!",vertical:"flex-col [&>*:not(:first-child)]:rounded-t-none! [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none!"}},defaultVariants:{orientation:"horizontal"}});function l({className:o,orientation:t,...r}){return e.jsxRuntimeExports.jsx("div",{role:"group","data-slot":"button-group","data-orientation":t,className:e.cn(n({orientation:t}),o),...r})}function d({className:o,asChild:t=!1,...r}){const i=t?s.Slot:"div";return e.jsxRuntimeExports.jsx(i,{className:e.cn("bg-muted flex items-center gap-2 rounded-full border px-4 text-sm font-medium shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",o),...r})}function c({className:o,orientation:t="vertical",...r}){return e.jsxRuntimeExports.jsx(u.Divider,{"data-slot":"button-group-separator",orientation:t,className:e.cn("bg-input relative m-0! self-stretch data-[orientation=vertical]:h-auto",o),...r})}exports.ButtonGroup=l;exports.ButtonGroupDivider=c;exports.ButtonGroupText=d;exports.buttonGroupVariants=n;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as r, c as n } from "../index-
|
|
1
|
+
import { j as r, c as n } from "../index-CwFDnnd3.js";
|
|
2
2
|
import { Slot as a } from "@radix-ui/react-slot";
|
|
3
|
-
import { c as i } from "../index-
|
|
4
|
-
import { D as l } from "../divider-
|
|
3
|
+
import { c as i } from "../index-CnqageB2.js";
|
|
4
|
+
import { D as l } from "../divider-DumyhJI_.js";
|
|
5
5
|
const d = i(
|
|
6
6
|
"flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-full [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",
|
|
7
7
|
{
|
|
@@ -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-DWBp81pk.cjs");exports.Button=t.Button;exports.buttonStyles=t.buttonStyles;
|