@clasing/ui 2.0.6 → 2.0.8
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.d.ts +5 -1
- package/dist/components/multi-select.es.js +174 -150
- 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,9 +1,8 @@
|
|
|
1
|
-
import { j as e } from "./
|
|
2
|
-
import { Slot as
|
|
3
|
-
import { c } from "./index-
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
const x = c(
|
|
1
|
+
import { j as e, c as h } from "./index-DBpnlzOP.js";
|
|
2
|
+
import { Slot as c } from "@radix-ui/react-slot";
|
|
3
|
+
import { c as f } from "./index-CwXB7YIx.js";
|
|
4
|
+
import { I as o } from "./icon-component-DGImZz3K.js";
|
|
5
|
+
const x = f(
|
|
7
6
|
"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex w-fit shrink-0 items-center justify-center gap-2 overflow-hidden border font-semibold whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] [&>svg]:pointer-events-none",
|
|
8
7
|
{
|
|
9
8
|
variants: {
|
|
@@ -47,7 +46,7 @@ const x = c(
|
|
|
47
46
|
}
|
|
48
47
|
}
|
|
49
48
|
);
|
|
50
|
-
function
|
|
49
|
+
function j({
|
|
51
50
|
className: s,
|
|
52
51
|
variant: n,
|
|
53
52
|
size: g,
|
|
@@ -61,12 +60,12 @@ function z({
|
|
|
61
60
|
children: p,
|
|
62
61
|
...u
|
|
63
62
|
}) {
|
|
64
|
-
const v = b ?
|
|
63
|
+
const v = b ? c : "span";
|
|
65
64
|
return /* @__PURE__ */ e.jsxs(
|
|
66
65
|
v,
|
|
67
66
|
{
|
|
68
67
|
"data-slot": "badge",
|
|
69
|
-
className:
|
|
68
|
+
className: h(
|
|
70
69
|
x({ variant: n, size: g, weight: d, rounded: l }),
|
|
71
70
|
i && "px-2.5 py-2",
|
|
72
71
|
s
|
|
@@ -81,5 +80,5 @@ function z({
|
|
|
81
80
|
);
|
|
82
81
|
}
|
|
83
82
|
export {
|
|
84
|
-
|
|
83
|
+
j as B
|
|
85
84
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("./index-DSjHHn1r.cjs"),v=require("@radix-ui/react-slot"),h=require("./index-BVmT9wZC.cjs"),i=require("./icon-component-DTlgy__B.cjs"),x=h.cva("focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex w-fit shrink-0 items-center justify-center gap-2 overflow-hidden border font-semibold whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] [&>svg]:pointer-events-none",{variants:{variant:{default:"bg-muted text-muted-foreground [a&]:hover:bg-muted/90 border-transparent",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90 border-transparent",destructive:"bg-destructive [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 border-transparent text-white",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",error:"bg-error-light text-error-main [a&]:hover:bg-error-light/90 border-transparent",warning:"bg-warning-light text-warning-main [a&]:hover:bg-warning-light/90 border-transparent",success:"bg-success-light text-success-main [a&]:hover:bg-success-light/90 border-transparent",info:"bg-info-light text-info-main [a&]:hover:bg-info-light/90 border-transparent",neutral:"border-transparent bg-black text-white [a&]:hover:bg-black/90",primary:"bg-primary-600 [a&]:hover:bg-primary-600/90 border-transparent text-white",yellow:"border-transparent bg-yellow-600 text-white [a&]:hover:bg-yellow-600/90",blue:"border-transparent bg-blue-600 text-white [a&]:hover:bg-blue-600/90",violet:"border-transparent bg-violet-600 text-white [a&]:hover:bg-violet-600/90"},size:{xs:"paragraph-xs px-3 py-px [&>svg]:size-3",sm:"paragraph-xs px-4 py-1 [&>svg]:size-4",md:"paragraph-sm px-4 py-2 [&>svg]:size-4",lg:"paragraph-md px-4 py-2 [&>svg]:size-5"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"},rounded:{default:"rounded-2xl",full:"rounded-full"}},defaultVariants:{variant:"default",size:"xs",weight:"semibold",rounded:"full"}});function f({className:o,variant:s,size:d,weight:g,rounded:l,iconName:e,iconPosition:t="left",iconStroke:a,iconOnly:n,asChild:b=!1,children:u,...p}){const c=b?v.Slot:"span";return r.jsxRuntimeExports.jsxs(c,{"data-slot":"badge",className:r.cn(x({variant:s,size:d,weight:g,rounded:l}),n&&"px-2.5 py-2",o),...p,children:[e&&t==="left"&&r.jsxRuntimeExports.jsx(i.IconComponent,{iconName:e,stroke:a}),!n&&u,e&&t==="right"&&r.jsxRuntimeExports.jsx(i.IconComponent,{iconName:e,stroke:a})]})}exports.Badge=f;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { j as a } from "./
|
|
2
|
-
import { c as p } from "./index-CRiPKpXj.js";
|
|
1
|
+
import { j as a, c as p } from "./index-DBpnlzOP.js";
|
|
3
2
|
import { Slot as M } from "@radix-ui/react-slot";
|
|
4
|
-
import { c as z } from "./index-
|
|
3
|
+
import { c as z } from "./index-CwXB7YIx.js";
|
|
5
4
|
import g from "react";
|
|
6
|
-
import { I as s } from "./icon-component-
|
|
7
|
-
import { b as w, T as I, c as C, a as V } from "./tooltip-
|
|
5
|
+
import { I as s } from "./icon-component-DGImZz3K.js";
|
|
6
|
+
import { b as w, T as I, c as C, a as V } from "./tooltip-CUaxcngn.js";
|
|
8
7
|
const k = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] relative flex items-center justify-center outline-1 transition-[color,box-shadow]", T = z(k, {
|
|
9
8
|
variants: {
|
|
10
9
|
variant: {
|
|
@@ -352,7 +351,7 @@ const k = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
352
351
|
}
|
|
353
352
|
}), G = g.forwardRef(
|
|
354
353
|
({
|
|
355
|
-
className:
|
|
354
|
+
className: m,
|
|
356
355
|
variant: h,
|
|
357
356
|
size: r,
|
|
358
357
|
weight: b,
|
|
@@ -509,7 +508,7 @@ const k = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
509
508
|
...u.props,
|
|
510
509
|
children: A
|
|
511
510
|
});
|
|
512
|
-
},
|
|
511
|
+
}, x = /* @__PURE__ */ a.jsx(
|
|
513
512
|
F,
|
|
514
513
|
{
|
|
515
514
|
ref: B,
|
|
@@ -520,21 +519,21 @@ const k = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
520
519
|
size: r,
|
|
521
520
|
rounded: y,
|
|
522
521
|
iconPosition: e,
|
|
523
|
-
className:
|
|
522
|
+
className: m
|
|
524
523
|
}) : E ? D({
|
|
525
524
|
variant: h,
|
|
526
525
|
weight: b,
|
|
527
526
|
size: r,
|
|
528
527
|
rounded: y,
|
|
529
528
|
iconPosition: e,
|
|
530
|
-
className:
|
|
529
|
+
className: m
|
|
531
530
|
}) : T({
|
|
532
531
|
variant: h,
|
|
533
532
|
weight: b,
|
|
534
533
|
size: r,
|
|
535
534
|
rounded: y,
|
|
536
535
|
iconPosition: e,
|
|
537
|
-
className:
|
|
536
|
+
className: m
|
|
538
537
|
})
|
|
539
538
|
),
|
|
540
539
|
disabled: j || i,
|
|
@@ -543,7 +542,7 @@ const k = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
543
542
|
}
|
|
544
543
|
);
|
|
545
544
|
return d && (j || i) ? /* @__PURE__ */ a.jsx(w, { children: /* @__PURE__ */ a.jsxs(I, { children: [
|
|
546
|
-
/* @__PURE__ */ a.jsx(C, { asChild: e === "only", children: e === "only" ? /* @__PURE__ */ a.jsx("div", { className: "inline-block", "aria-disabled": "true", children:
|
|
545
|
+
/* @__PURE__ */ a.jsx(C, { asChild: e === "only", children: e === "only" ? /* @__PURE__ */ a.jsx("div", { className: "inline-block", "aria-disabled": "true", children: x }) : x }),
|
|
547
546
|
/* @__PURE__ */ a.jsx(
|
|
548
547
|
V,
|
|
549
548
|
{
|
|
@@ -553,7 +552,7 @@ const k = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
553
552
|
}
|
|
554
553
|
)
|
|
555
554
|
] }) }) : d ? /* @__PURE__ */ a.jsx(w, { children: /* @__PURE__ */ a.jsxs(I, { children: [
|
|
556
|
-
/* @__PURE__ */ a.jsx(C, { asChild: e === "only", children:
|
|
555
|
+
/* @__PURE__ */ a.jsx(C, { asChild: e === "only", children: x }),
|
|
557
556
|
/* @__PURE__ */ a.jsx(
|
|
558
557
|
V,
|
|
559
558
|
{
|
|
@@ -562,7 +561,7 @@ const k = "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ri
|
|
|
562
561
|
children: d
|
|
563
562
|
}
|
|
564
563
|
)
|
|
565
|
-
] }) }) :
|
|
564
|
+
] }) }) : x;
|
|
566
565
|
}
|
|
567
566
|
);
|
|
568
567
|
G.displayName = "Button";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("./index-DSjHHn1r.cjs"),M=require("@radix-ui/react-slot"),j=require("./index-BVmT9wZC.cjs"),x=require("react"),s=require("./icon-component-DTlgy__B.cjs"),o=require("./tooltip-BvdeurjC.cjs"),z="focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] relative flex items-center justify-center outline-1 transition-[color,box-shadow]",R=j.cva(z,{variants:{variant:{primary:["bg-primary-600 lg:hover:bg-primary-800 text-white outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 disabled:lg:hover:bg-neutral-100 disabled:lg:hover:text-neutral-700"],secondary:["bg-black text-white outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 lg:hover:bg-neutral-900 disabled:lg:hover:bg-neutral-100 disabled:lg:hover:text-neutral-700"],inverse:["lg:hover:bg-neutral-000 bg-white text-black outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 disabled:lg:hover:bg-neutral-100 disabled:lg:hover:text-neutral-700"],outline:["text-primary-600 outline-primary-600 lg:hover:bg-primary-050 bg-white disabled:bg-neutral-100 disabled:text-neutral-700 disabled:outline-transparent disabled:lg:hover:bg-neutral-100 disabled:lg:hover:text-neutral-700"],ghost:["bg-primary-050 text-primary-600 lg:hover:bg-primary-100 outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 disabled:lg:hover:bg-neutral-100 disabled:lg:hover:text-neutral-700"],destructive:["bg-error-light text-error-main outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 disabled:lg:hover:bg-neutral-100 disabled:lg:hover:text-neutral-700"],link:["text-primary-600 lg:hover:bg-primary-050 bg-transparent outline-transparent disabled:bg-neutral-100 disabled:text-neutral-700 disabled:lg:hover:bg-neutral-100 disabled:lg:hover:text-neutral-700"]},size:{xl:"paragraph-md h-12 gap-2 px-6 py-1",lg:"paragraph-sm h-10 gap-2 px-5 py-1",md:"paragraph-xs h-8 gap-1.5 px-4 py-1",sm:"paragraph-xs h-7 gap-1 px-3 py-1",xs:"paragraph-xs h-6 gap-1 px-3 py-1"},rounded:{default:"rounded-2xl",full:"rounded-full"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"},iconPosition:{left:"",right:"",only:"aspect-square"}},compoundVariants:[{iconPosition:"only",variant:"primary",class:"outline-neutral-050 text-primary-600 lg:hover:bg-neutral-000 bg-white"},{iconPosition:"only",variant:"destructive",class:"bg-error-light text-error-main outline-transparent"},{iconPosition:"only",variant:"link",class:"text-primary-600 lg:hover:bg-primary-050 bg-transparent"},{iconPosition:"only",size:"xl",class:"size-12 p-1.5"},{iconPosition:"only",size:"lg",class:"size-10 p-1.5"},{iconPosition:"only",size:"md",class:"size-8 p-1.5"},{iconPosition:"only",size:"sm",class:"size-7 p-1.5"},{iconPosition:"only",size:"xs",class:"size-6 p-1.5"},{variant:"link",size:"xl",class:"paragraph-md h-auto gap-2 px-3 py-1"},{variant:"link",size:"lg",class:"paragraph-md h-auto gap-2 px-3 py-1"},{variant:"link",size:"md",class:"paragraph-sm h-auto gap-1.5 px-3 py-1"},{variant:"link",size:"sm",class:"paragraph-xs h-auto gap-1 px-3 py-1"},{variant:"link",size:"xs",class:"paragraph-xs h-auto gap-1 px-3 py-1"}],defaultVariants:{variant:"primary",size:"xl",weight:"semibold",rounded:"full",iconPosition:"left"}}),C=j.cva(`${z} cursor-default`,{variants:{variant:{primary:["bg-primary-800 text-white outline-transparent"],secondary:["bg-neutral-900 text-white outline-transparent"],inverse:["bg-neutral-000 text-black outline-transparent"],ghost:["bg-primary-100 text-primary-600 outline-transparent"],outline:["bg-primary-100 text-primary-600 outline-primary-600"],destructive:["bg-error-light text-error-main outline-transparent"],link:["bg-primary-050 text-primary-600"]},size:{xl:"paragraph-md h-12 gap-2 px-6",lg:"paragraph-sm h-10 gap-2 px-5",md:"paragraph-xs h-8 gap-1.5 px-4",sm:"paragraph-xs h-7 gap-1 px-3",xs:"paragraph-xs h-6 gap-1 px-3"},rounded:{default:"rounded-2xl",full:"rounded-full"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"},iconPosition:{left:"",right:"",only:"aspect-square"}},compoundVariants:[{iconPosition:"only",variant:"primary",class:"bg-neutral-000 text-primary-600 outline-neutral-050"},{iconPosition:"only",variant:"destructive",class:"bg-error-light text-error-main outline-transparent"},{iconPosition:"only",variant:"link",class:"bg-primary-050 text-primary-600"},{iconPosition:"only",size:"xl",class:"size-12 p-3"},{iconPosition:"only",size:"lg",class:"size-10 p-2"},{iconPosition:"only",size:"md",class:"size-8 p-1"},{iconPosition:"only",size:"sm",class:"size-7 p-0.5"},{iconPosition:"only",size:"xs",class:"size-6 p-0.5"},{variant:"link",size:"xl",class:"paragraph-md h-auto gap-2 px-3 py-1"},{variant:"link",size:"lg",class:"paragraph-md h-auto gap-2 px-3 py-1"},{variant:"link",size:"md",class:"paragraph-sm h-auto gap-1.5 px-3 py-1"},{variant:"link",size:"sm",class:"paragraph-xs h-auto gap-1 px-3 py-1"},{variant:"link",size:"xs",class:"paragraph-xs h-auto gap-1 px-3 py-1"}],defaultVariants:{variant:"primary",size:"xl",weight:"semibold",rounded:"full",iconPosition:"left"}}),N=j.cva(z,{variants:{variant:{primary:["bg-primary-800 text-white outline-transparent"],secondary:["bg-neutral-900 text-white outline-transparent"],inverse:["bg-neutral-000 text-black outline-transparent"],ghost:["bg-primary-100 text-primary-600 outline-transparent"],outline:["bg-primary-100 text-primary-600 outline-primary-600"],destructive:["bg-error-light text-error-main outline-transparent"],link:["bg-primary-050 text-primary-600"]},size:{xl:"paragraph-md h-12 gap-2 px-6",lg:"paragraph-sm h-10 gap-2 px-5",md:"paragraph-xs h-8 gap-1.5 px-4",sm:"paragraph-xs h-7 gap-1 px-3",xs:"paragraph-xs h-6 gap-1 px-3"},rounded:{default:"rounded-2xl",full:"rounded-full"},weight:{light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"},iconPosition:{left:"",right:"",only:"aspect-square"}},compoundVariants:[{iconPosition:"only",variant:"primary",class:"bg-neutral-000 text-primary-600 outline-neutral-050"},{iconPosition:"only",variant:"destructive",class:"bg-error-light text-error-main outline-transparent"},{iconPosition:"only",variant:"link",class:"bg-primary-050 text-primary-600"},{iconPosition:"only",size:"xl",class:"size-12 p-3"},{iconPosition:"only",size:"lg",class:"size-10 p-2"},{iconPosition:"only",size:"md",class:"size-8 p-1"},{iconPosition:"only",size:"sm",class:"size-7 p-0.5"},{iconPosition:"only",size:"xs",class:"size-6 p-0.5"},{variant:"link",size:"xl",class:"paragraph-md h-auto gap-2 px-3 py-1"},{variant:"link",size:"lg",class:"paragraph-md h-auto gap-2 px-3 py-1"},{variant:"link",size:"md",class:"paragraph-sm h-auto gap-1.5 px-3 py-1"},{variant:"link",size:"sm",class:"paragraph-xs h-auto gap-1 px-3 py-1"},{variant:"link",size:"xs",class:"paragraph-xs h-auto gap-1 px-3 py-1"}],defaultVariants:{variant:"primary",size:"xl",weight:"semibold",rounded:"full",iconPosition:"left"}}),I=x.forwardRef(({className:d,variant:h,size:r,weight:b,rounded:y,children:l,iconName:p,iconText:u,iconPosition:v="left",isLoading:n,isActive:w,disabled:k,tooltip:g,tooltipPlacement:E="top",asChild:f,...S},q)=>{const V=f?M.Slot:"button",a=x.useMemo(()=>!l&&p||v==="only"?"only":v,[l,p,v]),e=x.useMemo(()=>p?typeof p=="string"?{name:p}:p:null,[p]),i=a==="only"?{xl:"size-6",lg:"size-6",md:"size-5",sm:"size-4",xs:"size-3.5"}:{xl:"size-5",lg:"size-5",md:"size-4",sm:"size-4",xs:"size-3.5"},T=t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:a==="only"?t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:n?t.jsxRuntimeExports.jsx(s.IconComponent,{iconName:"IconLoader2",className:t.cn("animate-spin",i[r||"xl"])}):e&&t.jsxRuntimeExports.jsx(s.IconComponent,{iconName:e.name,stroke:e.stroke,iconText:u,className:i[r||"xl"]})}):t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsx("span",{className:`absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 ${n?"visible opacity-100":"invisible opacity-0"}`,children:t.jsxRuntimeExports.jsx(s.IconComponent,{iconName:"IconLoader2",className:t.cn("animate-spin",i[r||"xl"])})}),t.jsxRuntimeExports.jsxs("span",{className:t.cn("flex items-center justify-center gap-2",n?"invisible opacity-0":"visible opacity-100"),children:[e&&a==="left"&&t.jsxRuntimeExports.jsx(s.IconComponent,{iconName:e.name,iconText:u,stroke:e.stroke,className:i[r||"xl"]}),l,e&&a==="right"&&t.jsxRuntimeExports.jsx(s.IconComponent,{iconName:e.name,iconText:u,stroke:e.stroke,className:i[r||"xl"]})]})]})}),B=()=>{if(!f||!x.isValidElement(l)||!e&&a!=="only")return l;const c=l,F=c.props.children;if(a==="only")return x.cloneElement(c,{...c.props,children:n?t.jsxRuntimeExports.jsx(s.IconComponent,{iconName:"IconLoader2",className:t.cn("animate-spin",i[r||"xl"])}):e&&t.jsxRuntimeExports.jsx(s.IconComponent,{iconName:e.name,stroke:e.stroke,iconText:u,size:24})});const P=e&&t.jsxRuntimeExports.jsx(s.IconComponent,{iconName:e.name,iconText:u,stroke:e.stroke,className:i[r||"xl"]}),A=t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsx("span",{className:`absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 ${n?"visible opacity-100":"invisible opacity-0"}`,children:t.jsxRuntimeExports.jsx(s.IconComponent,{iconName:"IconLoader2",className:t.cn("animate-spin",i[r||"xl"])})}),t.jsxRuntimeExports.jsxs("span",{className:t.cn("flex items-center justify-center gap-2",n?"invisible opacity-0":"visible opacity-100"),children:[a==="left"&&P,F,a==="right"&&P]})]});return x.cloneElement(c,{...c.props,children:A})},m=t.jsxRuntimeExports.jsx(V,{ref:q,className:t.cn(n?C({variant:h,weight:b,size:r,rounded:y,iconPosition:a,className:d}):w?N({variant:h,weight:b,size:r,rounded:y,iconPosition:a,className:d}):R({variant:h,weight:b,size:r,rounded:y,iconPosition:a,className:d})),disabled:k||n,...S,children:f?B():T});return g&&(k||n)?t.jsxRuntimeExports.jsx(o.TooltipProvider,{children:t.jsxRuntimeExports.jsxs(o.Tooltip,{children:[t.jsxRuntimeExports.jsx(o.TooltipTrigger,{asChild:a==="only",children:a==="only"?t.jsxRuntimeExports.jsx("div",{className:"inline-block","aria-disabled":"true",children:m}):m}),t.jsxRuntimeExports.jsx(o.TooltipContent,{side:E,className:"text-muted-foreground",children:g})]})}):g?t.jsxRuntimeExports.jsx(o.TooltipProvider,{children:t.jsxRuntimeExports.jsxs(o.Tooltip,{children:[t.jsxRuntimeExports.jsx(o.TooltipTrigger,{asChild:a==="only",children:m}),t.jsxRuntimeExports.jsx(o.TooltipContent,{side:E,className:"text-muted-foreground",children:g})]})}):m});I.displayName="Button";exports.Button=I;exports.buttonActiveStyles=N;exports.buttonLoadingStyles=C;exports.buttonStyles=R;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { j as r } from "./
|
|
2
|
-
|
|
3
|
-
function d({ className: a, ...t }) {
|
|
1
|
+
import { j as r, c as s } from "./index-DBpnlzOP.js";
|
|
2
|
+
function o({ className: a, ...t }) {
|
|
4
3
|
return /* @__PURE__ */ r.jsx(
|
|
5
4
|
"div",
|
|
6
5
|
{
|
|
@@ -13,7 +12,7 @@ function d({ className: a, ...t }) {
|
|
|
13
12
|
}
|
|
14
13
|
);
|
|
15
14
|
}
|
|
16
|
-
function
|
|
15
|
+
function d({ className: a, ...t }) {
|
|
17
16
|
return /* @__PURE__ */ r.jsx(
|
|
18
17
|
"div",
|
|
19
18
|
{
|
|
@@ -26,7 +25,7 @@ function n({ className: a, ...t }) {
|
|
|
26
25
|
}
|
|
27
26
|
);
|
|
28
27
|
}
|
|
29
|
-
function
|
|
28
|
+
function n({ className: a, ...t }) {
|
|
30
29
|
return /* @__PURE__ */ r.jsx(
|
|
31
30
|
"div",
|
|
32
31
|
{
|
|
@@ -36,7 +35,7 @@ function c({ className: a, ...t }) {
|
|
|
36
35
|
}
|
|
37
36
|
);
|
|
38
37
|
}
|
|
39
|
-
function
|
|
38
|
+
function c({ className: a, ...t }) {
|
|
40
39
|
return /* @__PURE__ */ r.jsx(
|
|
41
40
|
"div",
|
|
42
41
|
{
|
|
@@ -46,7 +45,7 @@ function i({ className: a, ...t }) {
|
|
|
46
45
|
}
|
|
47
46
|
);
|
|
48
47
|
}
|
|
49
|
-
function
|
|
48
|
+
function i({ className: a, ...t }) {
|
|
50
49
|
return /* @__PURE__ */ r.jsx(
|
|
51
50
|
"div",
|
|
52
51
|
{
|
|
@@ -59,7 +58,7 @@ function l({ className: a, ...t }) {
|
|
|
59
58
|
}
|
|
60
59
|
);
|
|
61
60
|
}
|
|
62
|
-
function
|
|
61
|
+
function l({ className: a, ...t }) {
|
|
63
62
|
return /* @__PURE__ */ r.jsx(
|
|
64
63
|
"div",
|
|
65
64
|
{
|
|
@@ -69,7 +68,7 @@ function u({ className: a, ...t }) {
|
|
|
69
68
|
}
|
|
70
69
|
);
|
|
71
70
|
}
|
|
72
|
-
function
|
|
71
|
+
function u({ className: a, ...t }) {
|
|
73
72
|
return /* @__PURE__ */ r.jsx(
|
|
74
73
|
"div",
|
|
75
74
|
{
|
|
@@ -80,11 +79,11 @@ function f({ className: a, ...t }) {
|
|
|
80
79
|
);
|
|
81
80
|
}
|
|
82
81
|
export {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
82
|
+
o as C,
|
|
83
|
+
i as a,
|
|
84
|
+
l as b,
|
|
85
|
+
c,
|
|
86
|
+
u as d,
|
|
87
|
+
d as e,
|
|
88
|
+
n as f
|
|
90
89
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("./index-DSjHHn1r.cjs");function e({className:r,...a}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"card",className:t.cn("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6",r),...a})}function s({className:r,...a}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"card-header",className:t.cn("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",r),...a})}function n({className:r,...a}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"card-title",className:t.cn("leading-none font-semibold",r),...a})}function o({className:r,...a}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"card-description",className:t.cn("text-muted-foreground paragraph-sm",r),...a})}function d({className:r,...a}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"card-action",className:t.cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end",r),...a})}function c({className:r,...a}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"card-content",className:t.cn("px-6",r),...a})}function i({className:r,...a}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"card-footer",className:t.cn("flex items-center px-6 [.border-t]:pt-6",r),...a})}exports.Card=e;exports.CardAction=d;exports.CardContent=c;exports.CardDescription=o;exports.CardFooter=i;exports.CardHeader=s;exports.CardTitle=n;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { j as s } from "./
|
|
2
|
-
import { c as
|
|
3
|
-
import { c as g } from "./index-BqtVL8d-.js";
|
|
1
|
+
import { j as s, c as p } from "./index-DBpnlzOP.js";
|
|
2
|
+
import { c as f } from "./index-CwXB7YIx.js";
|
|
4
3
|
import { forwardRef as c } from "react";
|
|
5
|
-
import { I as a } from "./icon-component-
|
|
6
|
-
const x =
|
|
4
|
+
import { I as a } from "./icon-component-DGImZz3K.js";
|
|
5
|
+
const x = f(
|
|
7
6
|
"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
7
|
{
|
|
9
8
|
variants: {
|
|
@@ -34,8 +33,8 @@ const x = g(
|
|
|
34
33
|
}
|
|
35
34
|
), N = c(
|
|
36
35
|
({
|
|
37
|
-
className:
|
|
38
|
-
intent:
|
|
36
|
+
className: l,
|
|
37
|
+
intent: t,
|
|
39
38
|
size: o,
|
|
40
39
|
weight: n,
|
|
41
40
|
children: i,
|
|
@@ -43,15 +42,15 @@ const x = g(
|
|
|
43
42
|
iconRight: r,
|
|
44
43
|
notification: m,
|
|
45
44
|
onClick: d,
|
|
46
|
-
disabled:
|
|
45
|
+
disabled: g,
|
|
47
46
|
...u
|
|
48
47
|
}, b) => (typeof e == "string" && (e = { name: e }), typeof r == "string" && (r = { name: r }), d ? /* @__PURE__ */ s.jsxs(
|
|
49
48
|
"button",
|
|
50
49
|
{
|
|
51
50
|
ref: b,
|
|
52
|
-
className: p(x({ intent:
|
|
51
|
+
className: p(x({ intent: t, size: o, weight: n, className: l })),
|
|
53
52
|
type: "button",
|
|
54
|
-
disabled:
|
|
53
|
+
disabled: g,
|
|
55
54
|
onClick: d,
|
|
56
55
|
...u,
|
|
57
56
|
children: [
|
|
@@ -87,7 +86,7 @@ const x = g(
|
|
|
87
86
|
"div",
|
|
88
87
|
{
|
|
89
88
|
ref: b,
|
|
90
|
-
className: p(x({ intent:
|
|
89
|
+
className: p(x({ intent: t, size: o, weight: n, className: l })),
|
|
91
90
|
...u,
|
|
92
91
|
children: [
|
|
93
92
|
e && /* @__PURE__ */ s.jsx(
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./index-DSjHHn1r.cjs"),g=require("./index-BVmT9wZC.cjs"),j=require("react"),n=require("./icon-component-DTlgy__B.cjs"),t=g.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"}}),b=j.forwardRef(({className:o,intent:a,size:i,weight:l,children:m,iconLeft:r,iconRight:s,notification:u,onClick:d,disabled:c,...x},p)=>(typeof r=="string"&&(r={name:r}),typeof s=="string"&&(s={name:s}),d?e.jsxRuntimeExports.jsxs("button",{ref:p,className:e.cn(t({intent:a,size:i,weight:l,className:o})),type:"button",disabled:c,onClick:d,...x,children:[r&&e.jsxRuntimeExports.jsx(n.IconComponent,{iconName:r?.name,stroke:r?.stroke,size:16}),m,s&&e.jsxRuntimeExports.jsx(n.IconComponent,{iconName:s?.name,stroke:s?.stroke,size:20,className:"min-w-5"}),u&&e.jsxRuntimeExports.jsx(n.IconComponent,{iconName:"IconCircleFilled",size:4,className:"text-error-main min-w-1"})]}):e.jsxRuntimeExports.jsxs("div",{ref:p,className:e.cn(t({intent:a,size:i,weight:l,className:o})),...x,children:[r&&e.jsxRuntimeExports.jsx(n.IconComponent,{iconName:r?.name,stroke:r?.stroke,size:16}),m,s&&e.jsxRuntimeExports.jsx(n.IconComponent,{iconName:s?.name,stroke:s?.stroke,size:20,className:"min-w-5"}),u&&e.jsxRuntimeExports.jsx(n.IconComponent,{iconName:"IconCircleFilled",size:4,className:"text-error-main min-w-1"})]})));b.displayName="Chip";exports.ChipComponent=b;exports.chipStyles=t;
|
|
@@ -1,27 +1,26 @@
|
|
|
1
|
-
import { j as e } from "./
|
|
1
|
+
import { j as e, c as o } from "./index-DBpnlzOP.js";
|
|
2
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-
|
|
4
|
-
import {
|
|
5
|
-
import { I as g } from "./icon-component-Db_44zX2.js";
|
|
3
|
+
import { D as c, e as p, h as i, c as l, b as u } from "./dialog-CEttcpWT.js";
|
|
4
|
+
import { I as g } from "./icon-component-DGImZz3K.js";
|
|
6
5
|
function x({
|
|
7
6
|
className: a,
|
|
8
|
-
...
|
|
7
|
+
...t
|
|
9
8
|
}) {
|
|
10
9
|
return /* @__PURE__ */ e.jsx(
|
|
11
10
|
r,
|
|
12
11
|
{
|
|
13
12
|
"data-slot": "command",
|
|
14
|
-
className:
|
|
13
|
+
className: o(
|
|
15
14
|
"bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
|
|
16
15
|
a
|
|
17
16
|
),
|
|
18
|
-
...
|
|
17
|
+
...t
|
|
19
18
|
}
|
|
20
19
|
);
|
|
21
20
|
}
|
|
22
|
-
function
|
|
21
|
+
function v({
|
|
23
22
|
title: a = "Command Palette",
|
|
24
|
-
description:
|
|
23
|
+
description: t = "Search for a command to run...",
|
|
25
24
|
children: n,
|
|
26
25
|
className: d,
|
|
27
26
|
showCloseButton: s = !0,
|
|
@@ -30,21 +29,21 @@ function j({
|
|
|
30
29
|
return /* @__PURE__ */ e.jsxs(c, { ...m, children: [
|
|
31
30
|
/* @__PURE__ */ e.jsxs(p, { className: "sr-only", children: [
|
|
32
31
|
/* @__PURE__ */ e.jsx(i, { children: a }),
|
|
33
|
-
/* @__PURE__ */ e.jsx(l, { children:
|
|
32
|
+
/* @__PURE__ */ e.jsx(l, { children: t })
|
|
34
33
|
] }),
|
|
35
34
|
/* @__PURE__ */ e.jsx(
|
|
36
35
|
u,
|
|
37
36
|
{
|
|
38
|
-
className:
|
|
37
|
+
className: o("overflow-hidden p-0", d),
|
|
39
38
|
showCloseButton: s,
|
|
40
39
|
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
40
|
}
|
|
42
41
|
)
|
|
43
42
|
] });
|
|
44
43
|
}
|
|
45
|
-
function
|
|
44
|
+
function j({
|
|
46
45
|
className: a,
|
|
47
|
-
...
|
|
46
|
+
...t
|
|
48
47
|
}) {
|
|
49
48
|
return /* @__PURE__ */ e.jsxs(
|
|
50
49
|
"div",
|
|
@@ -63,34 +62,34 @@ function b({
|
|
|
63
62
|
r.Input,
|
|
64
63
|
{
|
|
65
64
|
"data-slot": "command-input",
|
|
66
|
-
className:
|
|
65
|
+
className: o(
|
|
67
66
|
"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
67
|
a
|
|
69
68
|
),
|
|
70
|
-
...
|
|
69
|
+
...t
|
|
71
70
|
}
|
|
72
71
|
)
|
|
73
72
|
]
|
|
74
73
|
}
|
|
75
74
|
);
|
|
76
75
|
}
|
|
77
|
-
function
|
|
76
|
+
function b({
|
|
78
77
|
className: a,
|
|
79
|
-
...
|
|
78
|
+
...t
|
|
80
79
|
}) {
|
|
81
80
|
return /* @__PURE__ */ e.jsx(
|
|
82
81
|
r.List,
|
|
83
82
|
{
|
|
84
83
|
"data-slot": "command-list",
|
|
85
|
-
className:
|
|
84
|
+
className: o(
|
|
86
85
|
"max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",
|
|
87
86
|
a
|
|
88
87
|
),
|
|
89
|
-
...
|
|
88
|
+
...t
|
|
90
89
|
}
|
|
91
90
|
);
|
|
92
91
|
}
|
|
93
|
-
function
|
|
92
|
+
function w({
|
|
94
93
|
...a
|
|
95
94
|
}) {
|
|
96
95
|
return /* @__PURE__ */ e.jsx(
|
|
@@ -102,75 +101,75 @@ function C({
|
|
|
102
101
|
}
|
|
103
102
|
);
|
|
104
103
|
}
|
|
105
|
-
function
|
|
104
|
+
function C({
|
|
106
105
|
className: a,
|
|
107
|
-
...
|
|
106
|
+
...t
|
|
108
107
|
}) {
|
|
109
108
|
return /* @__PURE__ */ e.jsx(
|
|
110
109
|
r.Group,
|
|
111
110
|
{
|
|
112
111
|
"data-slot": "command-group",
|
|
113
|
-
className:
|
|
112
|
+
className: o(
|
|
114
113
|
"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
114
|
a
|
|
116
115
|
),
|
|
117
|
-
...
|
|
116
|
+
...t
|
|
118
117
|
}
|
|
119
118
|
);
|
|
120
119
|
}
|
|
121
|
-
function
|
|
120
|
+
function y({
|
|
122
121
|
className: a,
|
|
123
|
-
...
|
|
122
|
+
...t
|
|
124
123
|
}) {
|
|
125
124
|
return /* @__PURE__ */ e.jsx(
|
|
126
125
|
r.Separator,
|
|
127
126
|
{
|
|
128
127
|
"data-slot": "command-separator",
|
|
129
|
-
className:
|
|
130
|
-
...
|
|
128
|
+
className: o("bg-border -mx-1 h-px", a),
|
|
129
|
+
...t
|
|
131
130
|
}
|
|
132
131
|
);
|
|
133
132
|
}
|
|
134
|
-
function
|
|
133
|
+
function N({
|
|
135
134
|
className: a,
|
|
136
|
-
...
|
|
135
|
+
...t
|
|
137
136
|
}) {
|
|
138
137
|
return /* @__PURE__ */ e.jsx(
|
|
139
138
|
r.Item,
|
|
140
139
|
{
|
|
141
140
|
"data-slot": "command-item",
|
|
142
|
-
className:
|
|
141
|
+
className: o(
|
|
143
142
|
"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
143
|
a
|
|
145
144
|
),
|
|
146
|
-
...
|
|
145
|
+
...t
|
|
147
146
|
}
|
|
148
147
|
);
|
|
149
148
|
}
|
|
150
|
-
function
|
|
149
|
+
function D({
|
|
151
150
|
className: a,
|
|
152
|
-
...
|
|
151
|
+
...t
|
|
153
152
|
}) {
|
|
154
153
|
return /* @__PURE__ */ e.jsx(
|
|
155
154
|
"span",
|
|
156
155
|
{
|
|
157
156
|
"data-slot": "command-shortcut",
|
|
158
|
-
className:
|
|
157
|
+
className: o(
|
|
159
158
|
"text-muted-foreground paragraph-xs ml-auto tracking-widest",
|
|
160
159
|
a
|
|
161
160
|
),
|
|
162
|
-
...
|
|
161
|
+
...t
|
|
163
162
|
}
|
|
164
163
|
);
|
|
165
164
|
}
|
|
166
165
|
export {
|
|
167
166
|
x as C,
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
167
|
+
v as a,
|
|
168
|
+
w as b,
|
|
169
|
+
C as c,
|
|
170
|
+
j as d,
|
|
171
|
+
N as e,
|
|
172
|
+
b as f,
|
|
173
|
+
y as g,
|
|
174
|
+
D as h
|
|
176
175
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./index-DSjHHn1r.cjs"),n=require("cmdk"),a=require("./dialog-Chh5qAxR.cjs"),c=require("./icon-component-DTlgy__B.cjs");function m({className:t,...o}){return e.jsxRuntimeExports.jsx(n.Command,{"data-slot":"command",className:e.cn("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),...o})}function p({title:t="Command Palette",description:o="Search for a command to run...",children:r,className:s,showCloseButton:d=!0,...i}){return e.jsxRuntimeExports.jsxs(a.Dialog,{...i,children:[e.jsxRuntimeExports.jsxs(a.DialogHeader,{className:"sr-only",children:[e.jsxRuntimeExports.jsx(a.DialogTitle,{children:t}),e.jsxRuntimeExports.jsx(a.DialogDescription,{children:o})]}),e.jsxRuntimeExports.jsx(a.DialogContent,{className:e.cn("overflow-hidden p-0",s),showCloseButton:d,children:e.jsxRuntimeExports.jsx(m,{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:r})})]})}function u({className:t,...o}){return e.jsxRuntimeExports.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[e.jsxRuntimeExports.jsx(c.IconComponent,{iconName:"IconSearch",className:"size-4 shrink-0 opacity-50"}),e.jsxRuntimeExports.jsx(n.Command.Input,{"data-slot":"command-input",className:e.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",t),...o})]})}function l({className:t,...o}){return e.jsxRuntimeExports.jsx(n.Command.List,{"data-slot":"command-list",className:e.cn("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),...o})}function x({...t}){return e.jsxRuntimeExports.jsx(n.Command.Empty,{"data-slot":"command-empty",className:"paragraph-sm py-6 text-center",...t})}function g({className:t,...o}){return e.jsxRuntimeExports.jsx(n.Command.Group,{"data-slot":"command-group",className:e.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",t),...o})}function h({className:t,...o}){return e.jsxRuntimeExports.jsx(n.Command.Separator,{"data-slot":"command-separator",className:e.cn("bg-border -mx-1 h-px",t),...o})}function f({className:t,...o}){return e.jsxRuntimeExports.jsx(n.Command.Item,{"data-slot":"command-item",className:e.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",t),...o})}function j({className:t,...o}){return e.jsxRuntimeExports.jsx("span",{"data-slot":"command-shortcut",className:e.cn("text-muted-foreground paragraph-xs ml-auto tracking-widest",t),...o})}exports.Command=m;exports.CommandDialog=p;exports.CommandEmpty=x;exports.CommandGroup=g;exports.CommandInput=u;exports.CommandItem=f;exports.CommandList=l;exports.CommandSeparator=h;exports.CommandShortcut=j;
|
|
@@ -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-DSjHHn1r.cjs"),s=require("@radix-ui/react-accordion"),c=require("../icon-component-DTlgy__B.cjs");function a(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const i=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,i.get?i:{enumerable:!0,get:()=>e[o]})}}return n.default=e,Object.freeze(n)}const r=a(s);function d({...e}){return t.jsxRuntimeExports.jsx(r.Root,{"data-slot":"accordion",...e})}function l({className:e,...n}){return t.jsxRuntimeExports.jsx(r.Item,{"data-slot":"accordion-item",className:t.cn("border-b last:border-b-0",e),...n})}function u({className:e,children:n,...o}){return t.jsxRuntimeExports.jsx(r.Header,{className:"flex",children:t.jsxRuntimeExports.jsxs(r.Trigger,{"data-slot":"accordion-trigger",className:t.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),...o,children:[n,t.jsxRuntimeExports.jsx(c.IconComponent,{iconName:"IconChevronDown",className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"})]})})}function m({className:e,children:n,...o}){return t.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",...o,children:t.jsxRuntimeExports.jsx("div",{className:t.cn("pt-0 pb-4",e),children:n})})}exports.Accordion=d;exports.AccordionContent=m;exports.AccordionItem=l;exports.AccordionTrigger=u;
|
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
import { j as e } from "../
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
function l({
|
|
1
|
+
import { j as e, c as a } from "../index-DBpnlzOP.js";
|
|
2
|
+
import * as t from "@radix-ui/react-accordion";
|
|
3
|
+
import { I as i } from "../icon-component-DGImZz3K.js";
|
|
4
|
+
function d({
|
|
6
5
|
...o
|
|
7
6
|
}) {
|
|
8
|
-
return /* @__PURE__ */ e.jsx(
|
|
7
|
+
return /* @__PURE__ */ e.jsx(t.Root, { "data-slot": "accordion", ...o });
|
|
9
8
|
}
|
|
10
|
-
function
|
|
9
|
+
function l({
|
|
11
10
|
className: o,
|
|
12
|
-
...
|
|
11
|
+
...n
|
|
13
12
|
}) {
|
|
14
13
|
return /* @__PURE__ */ e.jsx(
|
|
15
|
-
|
|
14
|
+
t.Item,
|
|
16
15
|
{
|
|
17
16
|
"data-slot": "accordion-item",
|
|
18
17
|
className: a("border-b last:border-b-0", o),
|
|
19
|
-
...
|
|
18
|
+
...n
|
|
20
19
|
}
|
|
21
20
|
);
|
|
22
21
|
}
|
|
23
|
-
function
|
|
22
|
+
function m({
|
|
24
23
|
className: o,
|
|
25
|
-
children:
|
|
24
|
+
children: n,
|
|
26
25
|
...r
|
|
27
26
|
}) {
|
|
28
|
-
return /* @__PURE__ */ e.jsx(
|
|
29
|
-
|
|
27
|
+
return /* @__PURE__ */ e.jsx(t.Header, { className: "flex", children: /* @__PURE__ */ e.jsxs(
|
|
28
|
+
t.Trigger,
|
|
30
29
|
{
|
|
31
30
|
"data-slot": "accordion-trigger",
|
|
32
31
|
className: a(
|
|
@@ -35,7 +34,7 @@ function p({
|
|
|
35
34
|
),
|
|
36
35
|
...r,
|
|
37
36
|
children: [
|
|
38
|
-
|
|
37
|
+
n,
|
|
39
38
|
/* @__PURE__ */ e.jsx(
|
|
40
39
|
i,
|
|
41
40
|
{
|
|
@@ -47,24 +46,24 @@ function p({
|
|
|
47
46
|
}
|
|
48
47
|
) });
|
|
49
48
|
}
|
|
50
|
-
function
|
|
49
|
+
function p({
|
|
51
50
|
className: o,
|
|
52
|
-
children:
|
|
51
|
+
children: n,
|
|
53
52
|
...r
|
|
54
53
|
}) {
|
|
55
54
|
return /* @__PURE__ */ e.jsx(
|
|
56
|
-
|
|
55
|
+
t.Content,
|
|
57
56
|
{
|
|
58
57
|
"data-slot": "accordion-content",
|
|
59
58
|
className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down paragraph-sm overflow-hidden",
|
|
60
59
|
...r,
|
|
61
|
-
children: /* @__PURE__ */ e.jsx("div", { className: a("pt-0 pb-4", o), children:
|
|
60
|
+
children: /* @__PURE__ */ e.jsx("div", { className: a("pt-0 pb-4", o), children: n })
|
|
62
61
|
}
|
|
63
62
|
);
|
|
64
63
|
}
|
|
65
64
|
export {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
65
|
+
d as Accordion,
|
|
66
|
+
p as AccordionContent,
|
|
67
|
+
l as AccordionItem,
|
|
68
|
+
m as AccordionTrigger
|
|
70
69
|
};
|
|
@@ -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"),c=require("@radix-ui/react-alert-dialog"),n=require("../button-t0WrANXO.cjs");function u(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const l in t)if(l!=="default"){const r=Object.getOwnPropertyDescriptor(t,l);Object.defineProperty(a,l,r.get?r:{enumerable:!0,get:()=>t[l]})}}return a.default=t,Object.freeze(a)}const o=u(c);function d({...t}){return e.jsxRuntimeExports.jsx(o.Root,{"data-slot":"alert-dialog",...t})}function g({...t}){return e.jsxRuntimeExports.jsx(o.Trigger,{"data-slot":"alert-dialog-trigger",...t})}function i({...t}){return e.jsxRuntimeExports.jsx(o.Portal,{"data-slot":"alert-dialog-portal",...t})}function s({className:t,...a}){return e.jsxRuntimeExports.jsx(o.Overlay,{"data-slot":"alert-dialog-overlay",className:e.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),...a})}function x({className:t,...a}){return e.jsxRuntimeExports.jsxs(i,{children:[e.jsxRuntimeExports.jsx(s,{}),e.jsxRuntimeExports.jsx(o.Content,{"data-slot":"alert-dialog-content",className:e.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),...a})]})}function m({className:t,...a}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"alert-dialog-header",className:e.cn("flex flex-col gap-2 text-left",t),...a})}function f({className:t,...a}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"alert-dialog-footer",className:e.cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...a})}function p({className:t,...a}){return e.jsxRuntimeExports.jsx(o.Title,{"data-slot":"alert-dialog-title",className:e.cn("label-2xl font-semibold",t),...a})}function j({className:t,...a}){return e.jsxRuntimeExports.jsx(o.Description,{"data-slot":"alert-dialog-description",className:e.cn("text-muted-foreground paragraph-md",t),...a})}function D({className:t,...a}){return e.jsxRuntimeExports.jsx(o.Action,{className:e.cn(n.buttonStyles(),t),...a})}function A({className:t,...a}){return e.jsxRuntimeExports.jsx(o.Cancel,{className:e.cn(n.buttonStyles({variant:"outline"}),t),...a})}exports.AlertDialog=d;exports.AlertDialogAction=D;exports.AlertDialogCancel=A;exports.AlertDialogContent=x;exports.AlertDialogDescription=j;exports.AlertDialogFooter=f;exports.AlertDialogHeader=m;exports.AlertDialogOverlay=s;exports.AlertDialogPortal=i;exports.AlertDialogTitle=p;exports.AlertDialogTrigger=g;
|