@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.
Files changed (142) hide show
  1. package/dist/{badge-DgjaD6g5.js → badge-B4oRxQ-G.js} +9 -10
  2. package/dist/badge-CS2XfLYQ.cjs +1 -0
  3. package/dist/{button-D8hlW1CJ.js → button-DiOH2ngV.js} +12 -13
  4. package/dist/button-t0WrANXO.cjs +1 -0
  5. package/dist/{card-DPaMJS2f.js → card-BNTyYiyA.js} +15 -16
  6. package/dist/card-Dj2wgH-P.cjs +1 -0
  7. package/dist/{chip-C5OWe3FG.js → chip-CK2VBBsV.js} +10 -11
  8. package/dist/chip-DVKpteyL.cjs +1 -0
  9. package/dist/{command-RWDkdfba.js → command-CGUB58ej.js} +43 -44
  10. package/dist/command-CHisYTN-.cjs +1 -0
  11. package/dist/components/accordion.cjs.js +1 -1
  12. package/dist/components/accordion.es.js +22 -23
  13. package/dist/components/alert-dialog.cjs.js +1 -1
  14. package/dist/components/alert-dialog.es.js +26 -27
  15. package/dist/components/alert.cjs.js +1 -1
  16. package/dist/components/alert.es.js +15 -16
  17. package/dist/components/avatar.cjs.js +1 -1
  18. package/dist/components/avatar.es.js +13 -14
  19. package/dist/components/badge.cjs.js +1 -1
  20. package/dist/components/badge.es.js +1 -1
  21. package/dist/components/blocks/interactive-card.cjs.js +1 -1
  22. package/dist/components/blocks/interactive-card.es.js +38 -39
  23. package/dist/components/blocks/selectable-chips.cjs.js +1 -1
  24. package/dist/components/blocks/selectable-chips.es.js +8 -9
  25. package/dist/components/breadcrumb.cjs.js +1 -1
  26. package/dist/components/breadcrumb.es.js +14 -15
  27. package/dist/components/button.cjs.js +1 -1
  28. package/dist/components/button.es.js +1 -1
  29. package/dist/components/calendar.cjs.js +1 -1
  30. package/dist/components/calendar.es.js +5 -6
  31. package/dist/components/card.cjs.js +1 -1
  32. package/dist/components/card.es.js +1 -1
  33. package/dist/components/chart.cjs.js +3 -3
  34. package/dist/components/chart.es.js +11 -12
  35. package/dist/components/checkbox.cjs.js +1 -1
  36. package/dist/components/checkbox.es.js +4 -5
  37. package/dist/components/chip.cjs.js +1 -1
  38. package/dist/components/chip.es.js +1 -1
  39. package/dist/components/collapsible.cjs.js +1 -1
  40. package/dist/components/collapsible.d.ts +1 -1
  41. package/dist/components/collapsible.es.js +23 -18
  42. package/dist/components/command.cjs.js +1 -1
  43. package/dist/components/command.es.js +1 -1
  44. package/dist/components/context-menu.cjs.js +1 -1
  45. package/dist/components/context-menu.es.js +32 -33
  46. package/dist/components/dialog.cjs.js +1 -1
  47. package/dist/components/dialog.es.js +1 -1
  48. package/dist/components/divider.cjs.js +1 -1
  49. package/dist/components/divider.es.js +7 -8
  50. package/dist/components/drawer.cjs.js +1 -1
  51. package/dist/components/drawer.es.js +17 -18
  52. package/dist/components/dropdown-menu.cjs.js +1 -1
  53. package/dist/components/dropdown-menu.es.js +32 -33
  54. package/dist/components/form.cjs.js +1 -1
  55. package/dist/components/form.es.js +29 -30
  56. package/dist/components/hover-card.cjs.js +1 -1
  57. package/dist/components/hover-card.es.js +17 -18
  58. package/dist/components/icon-component.cjs.js +1 -1
  59. package/dist/components/icon-component.es.js +1 -1
  60. package/dist/components/input-otp.cjs.js +1 -1
  61. package/dist/components/input-otp.es.js +19 -20
  62. package/dist/components/input.cjs.js +1 -1
  63. package/dist/components/input.es.js +1 -1
  64. package/dist/components/label.cjs.js +1 -1
  65. package/dist/components/label.es.js +1 -1
  66. package/dist/components/menubar.cjs.js +1 -1
  67. package/dist/components/menubar.es.js +32 -33
  68. package/dist/components/multi-select.cjs.js +1 -1
  69. package/dist/components/multi-select.d.ts +5 -1
  70. package/dist/components/multi-select.es.js +174 -150
  71. package/dist/components/navigation-menu.cjs.js +1 -1
  72. package/dist/components/navigation-menu.es.js +17 -18
  73. package/dist/components/phone-input.cjs.js +1 -1
  74. package/dist/components/phone-input.es.js +20 -21
  75. package/dist/components/popover.cjs.js +1 -1
  76. package/dist/components/popover.es.js +1 -1
  77. package/dist/components/progress.cjs.js +1 -1
  78. package/dist/components/progress.es.js +3 -4
  79. package/dist/components/resizable.cjs.js +1 -1
  80. package/dist/components/resizable.es.js +8 -9
  81. package/dist/components/scroll-area.cjs.js +1 -1
  82. package/dist/components/scroll-area.es.js +1 -1
  83. package/dist/components/select.cjs.js +1 -1
  84. package/dist/components/select.es.js +16 -17
  85. package/dist/components/sheet.cjs.js +1 -1
  86. package/dist/components/sheet.es.js +18 -19
  87. package/dist/components/skeleton.cjs.js +1 -1
  88. package/dist/components/skeleton.es.js +6 -7
  89. package/dist/components/slider.cjs.js +1 -1
  90. package/dist/components/slider.es.js +9 -10
  91. package/dist/components/sonner.cjs.js +1 -1
  92. package/dist/components/sonner.es.js +13 -14
  93. package/dist/components/switch.cjs.js +1 -1
  94. package/dist/components/switch.es.js +7 -8
  95. package/dist/components/table.cjs.js +1 -1
  96. package/dist/components/table.es.js +15 -16
  97. package/dist/components/textarea.cjs.js +1 -1
  98. package/dist/components/textarea.es.js +10 -11
  99. package/dist/components/toggle-group.cjs.js +1 -1
  100. package/dist/components/toggle-group.es.js +21 -22
  101. package/dist/components/toggle.cjs.js +1 -1
  102. package/dist/components/toggle.es.js +1 -1
  103. package/dist/components/tooltip.cjs.js +1 -1
  104. package/dist/components/tooltip.es.js +1 -1
  105. package/dist/{dialog-BSEMFrzb.js → dialog-CEttcpWT.js} +16 -17
  106. package/dist/dialog-Chh5qAxR.cjs +1 -0
  107. package/dist/icon-component-DGImZz3K.js +49 -0
  108. package/dist/icon-component-DTlgy__B.cjs +1 -0
  109. package/dist/{index-C8P6Mn4U.cjs → index-BVmT9wZC.cjs} +1 -1
  110. package/dist/{index-BqtVL8d-.js → index-CwXB7YIx.js} +1 -1
  111. package/dist/{index-CRiPKpXj.js → index-DBpnlzOP.js} +759 -477
  112. package/dist/index-DSjHHn1r.cjs +22 -0
  113. package/dist/{input-CUpmfQgR.js → input-B6wjJM4O.js} +14 -15
  114. package/dist/input-Dpz3zGIU.cjs +1 -0
  115. package/dist/{label-CKObiJEl.js → label-Bp4qkqFq.js} +7 -8
  116. package/dist/label-eHraXPfy.cjs +1 -0
  117. package/dist/popover-BnLx2OY6.cjs +1 -0
  118. package/dist/{popover-CHAUhJda.js → popover-C6pozFVL.js} +13 -14
  119. package/dist/scroll-area-CJpVshOm.cjs +1 -0
  120. package/dist/{scroll-area-DwBiu3Jn.js → scroll-area-Dj0Szbw6.js} +3 -4
  121. package/dist/toggle-CJLDdFRo.cjs +1 -0
  122. package/dist/{toggle-DkQSX3ux.js → toggle-owj9AHVO.js} +9 -10
  123. package/dist/tooltip-BvdeurjC.cjs +1 -0
  124. package/dist/{tooltip-DgWl3klK.js → tooltip-CUaxcngn.js} +7 -8
  125. package/package.json +1 -1
  126. package/dist/badge-DuEEk3J_.cjs +0 -1
  127. package/dist/button-U1793OQ4.cjs +0 -1
  128. package/dist/card-BJMc0row.cjs +0 -1
  129. package/dist/chip-CXa6E8Cf.cjs +0 -1
  130. package/dist/command-B7wbtmbM.cjs +0 -1
  131. package/dist/dialog-aYmcf_6q.cjs +0 -1
  132. package/dist/icon-component-4lyl8wE_.cjs +0 -1
  133. package/dist/icon-component-Db_44zX2.js +0 -50
  134. package/dist/index-DoxiiusW.cjs +0 -1
  135. package/dist/input-belq5zLm.cjs +0 -1
  136. package/dist/jsx-runtime-BuHQgaKs.cjs +0 -22
  137. package/dist/jsx-runtime-DywqP_6a.js +0 -284
  138. package/dist/label-RxaHfl3U.cjs +0 -1
  139. package/dist/popover-4V87msIT.cjs +0 -1
  140. package/dist/scroll-area-hg-bGoRe.cjs +0 -1
  141. package/dist/toggle-v18XjPC4.cjs +0 -1
  142. package/dist/tooltip-__VfWmJD.cjs +0 -1
@@ -1,6 +1,5 @@
1
- import { j as o } from "../jsx-runtime-DywqP_6a.js";
2
- import { c as w } from "../index-CRiPKpXj.js";
3
- import { c as r } from "../index-BqtVL8d-.js";
1
+ import { j as o, c as m } from "../index-DBpnlzOP.js";
2
+ import { c as r } from "../index-CwXB7YIx.js";
4
3
  import { forwardRef as b, useState as x } from "react";
5
4
  const g = r(
6
5
  "border-neutral-000 focus-visible:ring-ring-default inline-flex shrink-0 cursor-pointer items-center rounded-full border bg-white transition-colors focus-visible:ring-[1.5px] focus-visible:ring-offset-1 focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-blue-800 data-[state=unchecked]:bg-white",
@@ -38,13 +37,13 @@ const g = r(
38
37
  switchSize: n,
39
38
  ...u
40
39
  }, f) => {
41
- const [m, p] = x(
40
+ const [k, p] = x(
42
41
  h || !1
43
- ), c = a !== void 0, t = c ? a : m, i = () => {
42
+ ), c = a !== void 0, t = c ? a : k, i = () => {
44
43
  if (s) return;
45
44
  const e = !t;
46
45
  c || p(e), l?.(e);
47
- }, k = (e) => {
46
+ }, w = (e) => {
48
47
  (e.key === " " || e.key === "Enter") && (e.preventDefault(), i());
49
48
  };
50
49
  return /* @__PURE__ */ o.jsx(
@@ -56,9 +55,9 @@ const g = r(
56
55
  "aria-checked": t,
57
56
  "data-state": t ? "checked" : "unchecked",
58
57
  onClick: i,
59
- onKeyDown: k,
58
+ onKeyDown: w,
60
59
  disabled: s,
61
- className: w(
60
+ className: m(
62
61
  g({
63
62
  switchSize: n,
64
63
  className: d
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../jsx-runtime-BuHQgaKs.cjs"),o=require("../index-DoxiiusW.cjs");function r({className:e,...t}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:a.jsxRuntimeExports.jsx("table",{"data-slot":"table",className:o.cn("paragraph-sm w-full caption-bottom",e),...t})})}function l({className:e,...t}){return a.jsxRuntimeExports.jsx("thead",{"data-slot":"table-header",className:o.cn("[&_tr]:border-b",e),...t})}function s({className:e,...t}){return a.jsxRuntimeExports.jsx("tbody",{"data-slot":"table-body",className:o.cn("[&_tr:last-child]:border-0",e),...t})}function n({className:e,...t}){return a.jsxRuntimeExports.jsx("tfoot",{"data-slot":"table-footer",className:o.cn("bg-muted/50 border-t font-semibold [&>tr]:last:border-b-0",e),...t})}function b({className:e,...t}){return a.jsxRuntimeExports.jsx("tr",{"data-slot":"table-row",className:o.cn("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",e),...t})}function c({className:e,...t}){return a.jsxRuntimeExports.jsx("th",{"data-slot":"table-head",className:o.cn("text-foreground h-10 px-2 text-left align-middle font-semibold whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t})}function d({className:e,...t}){return a.jsxRuntimeExports.jsx("td",{"data-slot":"table-cell",className:o.cn("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t})}function i({className:e,...t}){return a.jsxRuntimeExports.jsx("caption",{"data-slot":"table-caption",className:o.cn("text-muted-foreground paragraph-sm mt-4",e),...t})}exports.Table=r;exports.TableBody=s;exports.TableCaption=i;exports.TableCell=d;exports.TableFooter=n;exports.TableHead=c;exports.TableHeader=l;exports.TableRow=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-DSjHHn1r.cjs");function o({className:t,...a}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:e.jsxRuntimeExports.jsx("table",{"data-slot":"table",className:e.cn("paragraph-sm w-full caption-bottom",t),...a})})}function l({className:t,...a}){return e.jsxRuntimeExports.jsx("thead",{"data-slot":"table-header",className:e.cn("[&_tr]:border-b",t),...a})}function r({className:t,...a}){return e.jsxRuntimeExports.jsx("tbody",{"data-slot":"table-body",className:e.cn("[&_tr:last-child]:border-0",t),...a})}function s({className:t,...a}){return e.jsxRuntimeExports.jsx("tfoot",{"data-slot":"table-footer",className:e.cn("bg-muted/50 border-t font-semibold [&>tr]:last:border-b-0",t),...a})}function n({className:t,...a}){return e.jsxRuntimeExports.jsx("tr",{"data-slot":"table-row",className:e.cn("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",t),...a})}function b({className:t,...a}){return e.jsxRuntimeExports.jsx("th",{"data-slot":"table-head",className:e.cn("text-foreground h-10 px-2 text-left align-middle font-semibold whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),...a})}function c({className:t,...a}){return e.jsxRuntimeExports.jsx("td",{"data-slot":"table-cell",className:e.cn("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),...a})}function d({className:t,...a}){return e.jsxRuntimeExports.jsx("caption",{"data-slot":"table-caption",className:e.cn("text-muted-foreground paragraph-sm mt-4",t),...a})}exports.Table=o;exports.TableBody=r;exports.TableCaption=d;exports.TableCell=c;exports.TableFooter=s;exports.TableHead=b;exports.TableHeader=l;exports.TableRow=n;
@@ -1,6 +1,5 @@
1
- import { j as e } from "../jsx-runtime-DywqP_6a.js";
2
- import { c as o } from "../index-CRiPKpXj.js";
3
- function s({ className: t, ...a }) {
1
+ import { j as e, c as o } from "../index-DBpnlzOP.js";
2
+ function r({ className: t, ...a }) {
4
3
  return /* @__PURE__ */ e.jsx(
5
4
  "div",
6
5
  {
@@ -17,7 +16,7 @@ function s({ className: t, ...a }) {
17
16
  }
18
17
  );
19
18
  }
20
- function n({ className: t, ...a }) {
19
+ function s({ className: t, ...a }) {
21
20
  return /* @__PURE__ */ e.jsx(
22
21
  "thead",
23
22
  {
@@ -27,7 +26,7 @@ function n({ className: t, ...a }) {
27
26
  }
28
27
  );
29
28
  }
30
- function d({ className: t, ...a }) {
29
+ function n({ className: t, ...a }) {
31
30
  return /* @__PURE__ */ e.jsx(
32
31
  "tbody",
33
32
  {
@@ -37,7 +36,7 @@ function d({ className: t, ...a }) {
37
36
  }
38
37
  );
39
38
  }
40
- function b({ className: t, ...a }) {
39
+ function d({ className: t, ...a }) {
41
40
  return /* @__PURE__ */ e.jsx(
42
41
  "tfoot",
43
42
  {
@@ -50,7 +49,7 @@ function b({ className: t, ...a }) {
50
49
  }
51
50
  );
52
51
  }
53
- function c({ className: t, ...a }) {
52
+ function b({ className: t, ...a }) {
54
53
  return /* @__PURE__ */ e.jsx(
55
54
  "tr",
56
55
  {
@@ -63,7 +62,7 @@ function c({ className: t, ...a }) {
63
62
  }
64
63
  );
65
64
  }
66
- function i({ className: t, ...a }) {
65
+ function c({ className: t, ...a }) {
67
66
  return /* @__PURE__ */ e.jsx(
68
67
  "th",
69
68
  {
@@ -76,7 +75,7 @@ function i({ className: t, ...a }) {
76
75
  }
77
76
  );
78
77
  }
79
- function m({ className: t, ...a }) {
78
+ function i({ className: t, ...a }) {
80
79
  return /* @__PURE__ */ e.jsx(
81
80
  "td",
82
81
  {
@@ -103,12 +102,12 @@ function u({
103
102
  );
104
103
  }
105
104
  export {
106
- s as Table,
107
- d as TableBody,
105
+ r as Table,
106
+ n as TableBody,
108
107
  u as TableCaption,
109
- m as TableCell,
110
- b as TableFooter,
111
- i as TableHead,
112
- n as TableHeader,
113
- c as TableRow
108
+ i as TableCell,
109
+ d as TableFooter,
110
+ c as TableHead,
111
+ s as TableHeader,
112
+ b as TableRow
114
113
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../jsx-runtime-BuHQgaKs.cjs"),a=require("../index-DoxiiusW.cjs"),v=require("../index-C8P6Mn4U.cjs"),p=require("../icon-component-4lyl8wE_.cjs"),x=v.cva("placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex w-full min-w-0 rounded-md border bg-transparent transition-[color,box-shadow] outline-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{xs:"label-sm min-h-16 px-2 py-1",sm:"label-md min-h-20 px-2 py-1",md:"label-lg min-h-24 px-3 py-2",lg:"label-xl min-h-32 px-4 py-3"},resize:{none:"resize-none",vertical:"resize-y",horizontal:"resize-x",both:"resize"}},defaultVariants:{size:"md",resize:"vertical"}});function b({className:o,size:l,resize:d,iconName:u,maxLength:r,showCharacterCount:m=!1,...t}){const i=u?(n=>typeof n=="string"?{name:n}:n)(u):void 0,s=t.value?String(t.value).length:0,c=m||r;return!i&&!c?e.jsxRuntimeExports.jsx("textarea",{"data-slot":"textarea",maxLength:r,className:a.cn(x({size:l,resize:d}),"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",o),...t}):e.jsxRuntimeExports.jsxs("div",{className:"space-y-2",children:[e.jsxRuntimeExports.jsxs("div",{className:"relative w-full",children:[e.jsxRuntimeExports.jsx("textarea",{"data-slot":"textarea",maxLength:r,className:a.cn(x({size:l,resize:d}),"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",i?"pr-10":"",o),...t}),i&&e.jsxRuntimeExports.jsx("span",{className:"text-muted-foreground absolute top-3 right-3",children:e.jsxRuntimeExports.jsx(p.IconComponent,{iconName:i.name,stroke:i.stroke,size:20})})]}),c&&e.jsxRuntimeExports.jsx("div",{className:"flex justify-end",children:e.jsxRuntimeExports.jsx("span",{className:a.cn("paragraph-xs text-muted-foreground",{"text-destructive":r&&s>r}),children:r?`${s}/${r}`:s})})]})}exports.Textarea=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-DSjHHn1r.cjs"),m=require("../index-BVmT9wZC.cjs"),v=require("../icon-component-DTlgy__B.cjs"),u=m.cva("placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex w-full min-w-0 rounded-md border bg-transparent transition-[color,box-shadow] outline-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{xs:"label-sm min-h-16 px-2 py-1",sm:"label-md min-h-20 px-2 py-1",md:"label-lg min-h-24 px-3 py-2",lg:"label-xl min-h-32 px-4 py-3"},resize:{none:"resize-none",vertical:"resize-y",horizontal:"resize-x",both:"resize"}},defaultVariants:{size:"md",resize:"vertical"}});function p({className:a,size:o,resize:l,iconName:d,maxLength:r,showCharacterCount:x=!1,...t}){const i=d?(n=>typeof n=="string"?{name:n}:n)(d):void 0,s=t.value?String(t.value).length:0,c=x||r;return!i&&!c?e.jsxRuntimeExports.jsx("textarea",{"data-slot":"textarea",maxLength:r,className:e.cn(u({size:o,resize:l}),"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",a),...t}):e.jsxRuntimeExports.jsxs("div",{className:"space-y-2",children:[e.jsxRuntimeExports.jsxs("div",{className:"relative w-full",children:[e.jsxRuntimeExports.jsx("textarea",{"data-slot":"textarea",maxLength:r,className:e.cn(u({size:o,resize:l}),"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",i?"pr-10":"",a),...t}),i&&e.jsxRuntimeExports.jsx("span",{className:"text-muted-foreground absolute top-3 right-3",children:e.jsxRuntimeExports.jsx(v.IconComponent,{iconName:i.name,stroke:i.stroke,size:20})})]}),c&&e.jsxRuntimeExports.jsx("div",{className:"flex justify-end",children:e.jsxRuntimeExports.jsx("span",{className:e.cn("paragraph-xs text-muted-foreground",{"text-destructive":r&&s>r}),children:r?`${s}/${r}`:s})})]})}exports.Textarea=p;
@@ -1,8 +1,7 @@
1
- import { j as e } from "../jsx-runtime-DywqP_6a.js";
2
- import { c as n } from "../index-CRiPKpXj.js";
3
- import { c as x } from "../index-BqtVL8d-.js";
4
- import { I as p } from "../icon-component-Db_44zX2.js";
5
- const m = x(
1
+ import { j as e, c as n } from "../index-DBpnlzOP.js";
2
+ import { c as x } from "../index-CwXB7YIx.js";
3
+ import { I as p } from "../icon-component-DGImZz3K.js";
4
+ const v = x(
6
5
  "placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex w-full min-w-0 rounded-md border bg-transparent transition-[color,box-shadow] outline-none disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
7
6
  {
8
7
  variants: {
@@ -25,23 +24,23 @@ const m = x(
25
24
  }
26
25
  }
27
26
  );
28
- function j({
27
+ function y({
29
28
  className: o,
30
29
  size: l,
31
30
  resize: d,
32
31
  iconName: c,
33
32
  maxLength: r,
34
- showCharacterCount: v = !1,
33
+ showCharacterCount: m = !1,
35
34
  ...a
36
35
  }) {
37
- const i = c ? ((s) => typeof s == "string" ? { name: s } : s)(c) : void 0, t = a.value ? String(a.value).length : 0, u = v || r;
36
+ const i = c ? ((s) => typeof s == "string" ? { name: s } : s)(c) : void 0, t = a.value ? String(a.value).length : 0, u = m || r;
38
37
  return !i && !u ? /* @__PURE__ */ e.jsx(
39
38
  "textarea",
40
39
  {
41
40
  "data-slot": "textarea",
42
41
  maxLength: r,
43
42
  className: n(
44
- m({ size: l, resize: d }),
43
+ v({ size: l, resize: d }),
45
44
  "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
46
45
  "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
47
46
  o
@@ -56,7 +55,7 @@ function j({
56
55
  "data-slot": "textarea",
57
56
  maxLength: r,
58
57
  className: n(
59
- m({ size: l, resize: d }),
58
+ v({ size: l, resize: d }),
60
59
  "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
61
60
  "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
62
61
  i ? "pr-10" : "",
@@ -86,5 +85,5 @@ function j({
86
85
  ] });
87
86
  }
88
87
  export {
89
- j as Textarea
88
+ y as Textarea
90
89
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../jsx-runtime-BuHQgaKs.cjs"),g=require("@radix-ui/react-toggle-group"),m=require("react"),p=require("../toggle-v18XjPC4.cjs"),s=require("../index-DoxiiusW.cjs");function u(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(o,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return o.default=t,Object.freeze(o)}const l=u(g),c=u(m),d=c.createContext({size:"md",variant:"default"});function f({className:t,variant:o,size:e,children:r,...a}){return i.jsxRuntimeExports.jsx(l.Root,{"data-slot":"toggle-group","data-variant":o,"data-size":e,className:s.cn("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",t),...a,children:i.jsxRuntimeExports.jsx(d.Provider,{value:{variant:o,size:e},children:r})})}function x({className:t,children:o,variant:e,size:r,...a}){const n=c.useContext(d);return i.jsxRuntimeExports.jsx(l.Item,{"data-slot":"toggle-group-item","data-variant":n.variant||e,"data-size":n.size||r,className:s.cn(p.toggleVariants({variant:n.variant||e,size:n.size||r}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",t),...a,children:o})}exports.ToggleGroup=f;exports.ToggleGroupItem=x;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../index-DSjHHn1r.cjs"),d=require("@radix-ui/react-toggle-group"),g=require("react"),m=require("../toggle-CJLDdFRo.cjs");function s(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(o,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return o.default=t,Object.freeze(o)}const u=s(d),l=s(g),c=l.createContext({size:"md",variant:"default"});function p({className:t,variant:o,size:e,children:r,...i}){return n.jsxRuntimeExports.jsx(u.Root,{"data-slot":"toggle-group","data-variant":o,"data-size":e,className:n.cn("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",t),...i,children:n.jsxRuntimeExports.jsx(c.Provider,{value:{variant:o,size:e},children:r})})}function f({className:t,children:o,variant:e,size:r,...i}){const a=l.useContext(c);return n.jsxRuntimeExports.jsx(u.Item,{"data-slot":"toggle-group-item","data-variant":a.variant||e,"data-size":a.size||r,className:n.cn(m.toggleVariants({variant:a.variant||e,size:a.size||r}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",t),...i,children:o})}exports.ToggleGroup=p;exports.ToggleGroupItem=f;
@@ -1,49 +1,48 @@
1
- import { j as n } from "../jsx-runtime-DywqP_6a.js";
2
- import * as s from "@radix-ui/react-toggle-group";
3
- import * as d from "react";
4
- import { t as m } from "../toggle-DkQSX3ux.js";
5
- import { c as l } from "../index-CRiPKpXj.js";
6
- const u = d.createContext({
1
+ import { j as i, c as s } from "../index-DBpnlzOP.js";
2
+ import * as d from "@radix-ui/react-toggle-group";
3
+ import * as l from "react";
4
+ import { t as m } from "../toggle-owj9AHVO.js";
5
+ const u = l.createContext({
7
6
  size: "md",
8
7
  variant: "default"
9
8
  });
10
- function p({
9
+ function f({
11
10
  className: r,
12
11
  variant: o,
13
12
  size: t,
14
13
  children: e,
15
- ...i
14
+ ...n
16
15
  }) {
17
- return /* @__PURE__ */ n.jsx(
18
- s.Root,
16
+ return /* @__PURE__ */ i.jsx(
17
+ d.Root,
19
18
  {
20
19
  "data-slot": "toggle-group",
21
20
  "data-variant": o,
22
21
  "data-size": t,
23
- className: l(
22
+ className: s(
24
23
  "group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",
25
24
  r
26
25
  ),
27
- ...i,
28
- children: /* @__PURE__ */ n.jsx(u.Provider, { value: { variant: o, size: t }, children: e })
26
+ ...n,
27
+ children: /* @__PURE__ */ i.jsx(u.Provider, { value: { variant: o, size: t }, children: e })
29
28
  }
30
29
  );
31
30
  }
32
- function x({
31
+ function p({
33
32
  className: r,
34
33
  children: o,
35
34
  variant: t,
36
35
  size: e,
37
- ...i
36
+ ...n
38
37
  }) {
39
- const a = d.useContext(u);
40
- return /* @__PURE__ */ n.jsx(
41
- s.Item,
38
+ const a = l.useContext(u);
39
+ return /* @__PURE__ */ i.jsx(
40
+ d.Item,
42
41
  {
43
42
  "data-slot": "toggle-group-item",
44
43
  "data-variant": a.variant || t,
45
44
  "data-size": a.size || e,
46
- className: l(
45
+ className: s(
47
46
  m({
48
47
  variant: a.variant || t,
49
48
  size: a.size || e
@@ -51,12 +50,12 @@ function x({
51
50
  "min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",
52
51
  r
53
52
  ),
54
- ...i,
53
+ ...n,
55
54
  children: o
56
55
  }
57
56
  );
58
57
  }
59
58
  export {
60
- p as ToggleGroup,
61
- x as ToggleGroupItem
59
+ f as ToggleGroup,
60
+ p as ToggleGroupItem
62
61
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../toggle-v18XjPC4.cjs");exports.Toggle=e.Toggle;exports.toggleVariants=e.toggleVariants;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../toggle-CJLDdFRo.cjs");exports.Toggle=e.Toggle;exports.toggleVariants=e.toggleVariants;
@@ -1,4 +1,4 @@
1
- import { T as o, t } from "../toggle-DkQSX3ux.js";
1
+ import { T as o, t } from "../toggle-owj9AHVO.js";
2
2
  export {
3
3
  o as Toggle,
4
4
  t as toggleVariants
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../tooltip-__VfWmJD.cjs");exports.Tooltip=o.Tooltip;exports.TooltipContent=o.TooltipContent;exports.TooltipProvider=o.TooltipProvider;exports.TooltipTrigger=o.TooltipTrigger;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../tooltip-BvdeurjC.cjs");exports.Tooltip=o.Tooltip;exports.TooltipContent=o.TooltipContent;exports.TooltipProvider=o.TooltipProvider;exports.TooltipTrigger=o.TooltipTrigger;
@@ -1,4 +1,4 @@
1
- import { T as i, a as r, b as T, c as a } from "../tooltip-DgWl3klK.js";
1
+ import { T as i, a as r, b as T, c as a } from "../tooltip-CUaxcngn.js";
2
2
  export {
3
3
  i as Tooltip,
4
4
  r as TooltipContent,
@@ -1,13 +1,12 @@
1
- import { j as t } from "./jsx-runtime-DywqP_6a.js";
1
+ import { j as t, c as s } from "./index-DBpnlzOP.js";
2
2
  import * as e from "@radix-ui/react-dialog";
3
- import { c as s } from "./index-CRiPKpXj.js";
4
- import { I as l } from "./icon-component-Db_44zX2.js";
5
- function f({
3
+ import { I as l } from "./icon-component-DGImZz3K.js";
4
+ function u({
6
5
  ...a
7
6
  }) {
8
7
  return /* @__PURE__ */ t.jsx(e.Root, { "data-slot": "dialog", ...a });
9
8
  }
10
- function m({
9
+ function f({
11
10
  ...a
12
11
  }) {
13
12
  return /* @__PURE__ */ t.jsx(e.Trigger, { "data-slot": "dialog-trigger", ...a });
@@ -17,7 +16,7 @@ function r({
17
16
  }) {
18
17
  return /* @__PURE__ */ t.jsx(e.Portal, { "data-slot": "dialog-portal", ...a });
19
18
  }
20
- function p({
19
+ function m({
21
20
  ...a
22
21
  }) {
23
22
  return /* @__PURE__ */ t.jsx(e.Close, { "data-slot": "dialog-close", ...a });
@@ -73,7 +72,7 @@ function x({
73
72
  )
74
73
  ] });
75
74
  }
76
- function j({ className: a, ...o }) {
75
+ function p({ className: a, ...o }) {
77
76
  return /* @__PURE__ */ t.jsx(
78
77
  "div",
79
78
  {
@@ -83,7 +82,7 @@ function j({ className: a, ...o }) {
83
82
  }
84
83
  );
85
84
  }
86
- function D({ className: a, ...o }) {
85
+ function j({ className: a, ...o }) {
87
86
  return /* @__PURE__ */ t.jsx(
88
87
  "div",
89
88
  {
@@ -96,7 +95,7 @@ function D({ className: a, ...o }) {
96
95
  }
97
96
  );
98
97
  }
99
- function v({
98
+ function D({
100
99
  className: a,
101
100
  ...o
102
101
  }) {
@@ -109,7 +108,7 @@ function v({
109
108
  }
110
109
  );
111
110
  }
112
- function b({
111
+ function v({
113
112
  className: a,
114
113
  ...o
115
114
  }) {
@@ -123,14 +122,14 @@ function b({
123
122
  );
124
123
  }
125
124
  export {
126
- f as D,
127
- p as a,
125
+ u as D,
126
+ m as a,
128
127
  x as b,
129
- b as c,
130
- D as d,
131
- j as e,
128
+ v as c,
129
+ j as d,
130
+ p as e,
132
131
  d as f,
133
132
  r as g,
134
- v as h,
135
- m as i
133
+ D as h,
134
+ f as i
136
135
  };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./index-DSjHHn1r.cjs"),l=require("@radix-ui/react-dialog"),d=require("./icon-component-DTlgy__B.cjs");function c(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const n=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(o,s,n.get?n:{enumerable:!0,get:()=>t[s]})}}return o.default=t,Object.freeze(o)}const a=c(l);function u({...t}){return e.jsxRuntimeExports.jsx(a.Root,{"data-slot":"dialog",...t})}function g({...t}){return e.jsxRuntimeExports.jsx(a.Trigger,{"data-slot":"dialog-trigger",...t})}function i({...t}){return e.jsxRuntimeExports.jsx(a.Portal,{"data-slot":"dialog-portal",...t})}function x({...t}){return e.jsxRuntimeExports.jsx(a.Close,{"data-slot":"dialog-close",...t})}function r({className:t,...o}){return e.jsxRuntimeExports.jsx(a.Overlay,{"data-slot":"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),...o})}function p({className:t,children:o,showCloseButton:s=!0,...n}){return e.jsxRuntimeExports.jsxs(i,{"data-slot":"dialog-portal",children:[e.jsxRuntimeExports.jsx(r,{}),e.jsxRuntimeExports.jsxs(a.Content,{"data-slot":"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),...n,children:[o,s&&e.jsxRuntimeExports.jsxs(a.Close,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[e.jsxRuntimeExports.jsx(d.IconComponent,{iconName:"IconX"}),e.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function m({className:t,...o}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-header",className:e.cn("flex flex-col gap-2 text-left",t),...o})}function f({className:t,...o}){return e.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-footer",className:e.cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...o})}function j({className:t,...o}){return e.jsxRuntimeExports.jsx(a.Title,{"data-slot":"dialog-title",className:e.cn("label-2xl font-semibold",t),...o})}function D({className:t,...o}){return e.jsxRuntimeExports.jsx(a.Description,{"data-slot":"dialog-description",className:e.cn("text-muted-foreground paragraph-md",t),...o})}exports.Dialog=u;exports.DialogClose=x;exports.DialogContent=p;exports.DialogDescription=D;exports.DialogFooter=f;exports.DialogHeader=m;exports.DialogOverlay=r;exports.DialogPortal=i;exports.DialogTitle=j;exports.DialogTrigger=g;
@@ -0,0 +1,49 @@
1
+ import { j as s, c } from "./index-DBpnlzOP.js";
2
+ import * as i from "@tabler/icons-react";
3
+ import { forwardRef as f } from "react";
4
+ const a = f(
5
+ ({ iconName: n, iconText: t, stroke: m = "1.5", onClick: p, size: e = 24, ...r }, l) => {
6
+ if (n) {
7
+ const o = i[n];
8
+ return /* @__PURE__ */ s.jsx(
9
+ o,
10
+ {
11
+ role: "img",
12
+ ref: l,
13
+ stroke: m,
14
+ onClick: p,
15
+ size: e,
16
+ className: c("pointer-events-none", r.className),
17
+ ...r
18
+ }
19
+ );
20
+ } else if (t) {
21
+ const o = t.slice(0, 2).toUpperCase();
22
+ return /* @__PURE__ */ s.jsx(
23
+ "div",
24
+ {
25
+ ref: l,
26
+ className: "pointer-events-none flex items-center justify-center",
27
+ style: { width: e, height: e },
28
+ role: "img",
29
+ children: /* @__PURE__ */ s.jsx(
30
+ "p",
31
+ {
32
+ className: c({
33
+ "label-sm": e <= 16,
34
+ "label-md": e > 16
35
+ }),
36
+ children: o
37
+ }
38
+ )
39
+ }
40
+ );
41
+ } else
42
+ return console.error(`Icon ${n} not found`), null;
43
+ }
44
+ );
45
+ a.displayName = "IconComponent";
46
+ const x = a;
47
+ export {
48
+ x as I
49
+ };
@@ -0,0 +1 @@
1
+ "use strict";const r=require("./index-DSjHHn1r.cjs"),u=require("@tabler/icons-react"),m=require("react");function p(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const f=p(u),i=m.forwardRef(({iconName:e,iconText:n,stroke:t="1.5",onClick:s,size:o=24,...l},a)=>{if(e){const c=f[e];return r.jsxRuntimeExports.jsx(c,{role:"img",ref:a,stroke:t,onClick:s,size:o,className:r.cn("pointer-events-none",l.className),...l})}else if(n){const c=n.slice(0,2).toUpperCase();return r.jsxRuntimeExports.jsx("div",{ref:a,className:"pointer-events-none flex items-center justify-center",style:{width:o,height:o},role:"img",children:r.jsxRuntimeExports.jsx("p",{className:r.cn({"label-sm":o<=16,"label-md":o>16}),children:c})})}else return console.error(`Icon ${e} not found`),null});i.displayName="IconComponent";const d=i;exports.IconComponent=d;
@@ -1 +1 @@
1
- "use strict";const O=require("./index-DoxiiusW.cjs"),m=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,y=O.clsx,b=(t,l)=>n=>{var u;if(l?.variants==null)return y(t,n?.class,n?.className);const{variants:o,defaultVariants:d}=l,V=Object.keys(o).map(e=>{const a=n?.[e],s=d?.[e];if(a===null)return null;const i=m(a)||m(s);return o[e][i]}),v=n&&Object.entries(n).reduce((e,a)=>{let[s,i]=a;return i===void 0||(e[s]=i),e},{}),N=l==null||(u=l.compoundVariants)===null||u===void 0?void 0:u.reduce((e,a)=>{let{class:s,className:i,...C}=a;return Object.entries(C).every(f=>{let[c,r]=f;return Array.isArray(r)?r.includes({...d,...v}[c]):{...d,...v}[c]===r})?[...e,s,i]:e},[]);return y(t,V,N,n?.class,n?.className)};exports.cva=b;
1
+ "use strict";const O=require("./index-DSjHHn1r.cjs"),m=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,y=O.clsx,b=(t,l)=>n=>{var u;if(l?.variants==null)return y(t,n?.class,n?.className);const{variants:o,defaultVariants:d}=l,V=Object.keys(o).map(e=>{const a=n?.[e],s=d?.[e];if(a===null)return null;const i=m(a)||m(s);return o[e][i]}),v=n&&Object.entries(n).reduce((e,a)=>{let[s,i]=a;return i===void 0||(e[s]=i),e},{}),N=l==null||(u=l.compoundVariants)===null||u===void 0?void 0:u.reduce((e,a)=>{let{class:s,className:i,...C}=a;return Object.entries(C).every(f=>{let[c,r]=f;return Array.isArray(r)?r.includes({...d,...v}[c]):{...d,...v}[c]===r})?[...e,s,i]:e},[]);return y(t,V,N,n?.class,n?.className)};exports.cva=b;
@@ -1,4 +1,4 @@
1
- import { a as O } from "./index-CRiPKpXj.js";
1
+ import { a as O } from "./index-DBpnlzOP.js";
2
2
  const m = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, y = O, j = (e, l) => (n) => {
3
3
  var u;
4
4
  if (l?.variants == null) return y(e, n?.class, n?.className);