@clasing/ui 2.0.3 → 2.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/dist/{badge-CJxUpkWv.js → badge-DgjaD6g5.js} +24 -24
  2. package/dist/{badge-DknEN5GE.cjs → badge-DuEEk3J_.cjs} +1 -1
  3. package/dist/{button-C5IBh3Tr.js → button-D8hlW1CJ.js} +123 -123
  4. package/dist/button-U1793OQ4.cjs +1 -0
  5. package/dist/{card-D0D_gMHR.cjs → card-BJMc0row.cjs} +1 -1
  6. package/dist/{card-9-UcGdV0.js → card-DPaMJS2f.js} +1 -1
  7. package/dist/{chip-D12iiF8O.js → chip-C5OWe3FG.js} +21 -21
  8. package/dist/chip-CXa6E8Cf.cjs +1 -0
  9. package/dist/command-B7wbtmbM.cjs +1 -0
  10. package/dist/command-RWDkdfba.js +176 -0
  11. package/dist/components/accordion.cjs.js +1 -1
  12. package/dist/components/accordion.es.js +23 -23
  13. package/dist/components/alert-dialog.cjs.js +1 -1
  14. package/dist/components/alert-dialog.es.js +14 -14
  15. package/dist/components/alert.cjs.js +1 -1
  16. package/dist/components/alert.es.js +35 -35
  17. package/dist/components/avatar.cjs.js +1 -1
  18. package/dist/components/avatar.es.js +9 -9
  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 +37 -37
  23. package/dist/components/blocks/selectable-chips.cjs.js +1 -1
  24. package/dist/components/blocks/selectable-chips.es.js +10 -10
  25. package/dist/components/breadcrumb.cjs.js +1 -1
  26. package/dist/components/breadcrumb.es.js +10 -10
  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 +8 -8
  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 +24 -24
  35. package/dist/components/checkbox.cjs.js +1 -1
  36. package/dist/components/checkbox.es.js +1 -1
  37. package/dist/components/chip.cjs.js +1 -1
  38. package/dist/components/chip.es.js +1 -1
  39. package/dist/components/command.cjs.js +1 -1
  40. package/dist/components/command.es.js +1 -1
  41. package/dist/components/context-menu.cjs.js +1 -1
  42. package/dist/components/context-menu.es.js +39 -39
  43. package/dist/components/dialog.cjs.js +1 -1
  44. package/dist/components/dialog.es.js +1 -1
  45. package/dist/components/drawer.cjs.js +1 -1
  46. package/dist/components/drawer.es.js +30 -30
  47. package/dist/components/dropdown-menu.cjs.js +1 -1
  48. package/dist/components/dropdown-menu.es.js +15 -15
  49. package/dist/components/form.cjs.js +1 -1
  50. package/dist/components/form.es.js +3 -3
  51. package/dist/components/icon-component.cjs.js +1 -1
  52. package/dist/components/icon-component.es.js +1 -1
  53. package/dist/components/input-otp.cjs.js +1 -1
  54. package/dist/components/input-otp.es.js +4 -4
  55. package/dist/components/input.cjs.js +1 -1
  56. package/dist/components/input.es.js +1 -1
  57. package/dist/components/label.cjs.js +1 -1
  58. package/dist/components/label.es.js +1 -1
  59. package/dist/components/menubar.cjs.js +1 -1
  60. package/dist/components/menubar.es.js +42 -42
  61. package/dist/components/multi-select.cjs.js +1 -1
  62. package/dist/components/multi-select.es.js +8 -8
  63. package/dist/components/navigation-menu.cjs.js +1 -1
  64. package/dist/components/navigation-menu.es.js +7 -7
  65. package/dist/components/phone-input.cjs.js +1 -1
  66. package/dist/components/phone-input.d.ts +0 -5
  67. package/dist/components/phone-input.es.js +112 -154
  68. package/dist/components/resizable.cjs.js +1 -1
  69. package/dist/components/resizable.es.js +1 -1
  70. package/dist/components/select.cjs.js +1 -1
  71. package/dist/components/select.es.js +30 -27
  72. package/dist/components/sheet.cjs.js +1 -1
  73. package/dist/components/sheet.es.js +2 -2
  74. package/dist/components/table.cjs.js +1 -1
  75. package/dist/components/table.es.js +28 -28
  76. package/dist/components/textarea.cjs.js +1 -1
  77. package/dist/components/textarea.d.ts +1 -1
  78. package/dist/components/textarea.es.js +19 -19
  79. package/dist/components/toggle-group.cjs.js +1 -1
  80. package/dist/components/toggle-group.es.js +1 -1
  81. package/dist/components/toggle.cjs.js +1 -1
  82. package/dist/components/toggle.es.js +1 -1
  83. package/dist/components/tooltip.cjs.js +1 -1
  84. package/dist/components/tooltip.es.js +1 -1
  85. package/dist/{dialog-DIua9sAl.js → dialog-BSEMFrzb.js} +37 -37
  86. package/dist/{dialog-C15HjAtO.cjs → dialog-aYmcf_6q.cjs} +1 -1
  87. package/dist/icon-component-4lyl8wE_.cjs +1 -0
  88. package/dist/{icon-component-CxQsODCa.js → icon-component-Db_44zX2.js} +2 -2
  89. package/dist/{input-Bs18T-Y3.js → input-CUpmfQgR.js} +29 -29
  90. package/dist/input-belq5zLm.cjs +1 -0
  91. package/dist/label-CKObiJEl.js +22 -0
  92. package/dist/{label-U5GnYvFO.cjs → label-RxaHfl3U.cjs} +1 -1
  93. package/dist/{toggle-nsKZaKsW.js → toggle-DkQSX3ux.js} +13 -13
  94. package/dist/toggle-v18XjPC4.cjs +1 -0
  95. package/dist/{tooltip-Bxh10S4Q.js → tooltip-DgWl3klK.js} +1 -1
  96. package/dist/tooltip-__VfWmJD.cjs +1 -0
  97. package/dist/ui.css +692 -688
  98. package/package.json +357 -357
  99. package/dist/button-BnSM-lrr.cjs +0 -1
  100. package/dist/chip-DePZ5IYA.cjs +0 -1
  101. package/dist/command-C4Y6Ixrp.cjs +0 -1
  102. package/dist/command-pED95x7-.js +0 -176
  103. package/dist/icon-component-D5YssRbR.cjs +0 -1
  104. package/dist/input-wSGCWBH-.cjs +0 -1
  105. package/dist/label-_kG7WBoJ.js +0 -22
  106. package/dist/toggle-B9JMLYVf.cjs +0 -1
  107. package/dist/tooltip-BRSR0-4n.cjs +0 -1
@@ -1,44 +1,44 @@
1
- import { j as a } from "../jsx-runtime-DywqP_6a.js";
1
+ import { j as e } from "../jsx-runtime-DywqP_6a.js";
2
2
  import { c as o } from "../index-CRiPKpXj.js";
3
- function s({ className: t, ...e }) {
4
- return /* @__PURE__ */ a.jsx(
3
+ function s({ className: t, ...a }) {
4
+ return /* @__PURE__ */ e.jsx(
5
5
  "div",
6
6
  {
7
7
  "data-slot": "table-container",
8
8
  className: "relative w-full overflow-x-auto",
9
- children: /* @__PURE__ */ a.jsx(
9
+ children: /* @__PURE__ */ e.jsx(
10
10
  "table",
11
11
  {
12
12
  "data-slot": "table",
13
- className: o("w-full caption-bottom text-sm", t),
14
- ...e
13
+ className: o("paragraph-sm w-full caption-bottom", t),
14
+ ...a
15
15
  }
16
16
  )
17
17
  }
18
18
  );
19
19
  }
20
- function n({ className: t, ...e }) {
21
- return /* @__PURE__ */ a.jsx(
20
+ function n({ className: t, ...a }) {
21
+ return /* @__PURE__ */ e.jsx(
22
22
  "thead",
23
23
  {
24
24
  "data-slot": "table-header",
25
25
  className: o("[&_tr]:border-b", t),
26
- ...e
26
+ ...a
27
27
  }
28
28
  );
29
29
  }
30
- function d({ className: t, ...e }) {
31
- return /* @__PURE__ */ a.jsx(
30
+ function d({ className: t, ...a }) {
31
+ return /* @__PURE__ */ e.jsx(
32
32
  "tbody",
33
33
  {
34
34
  "data-slot": "table-body",
35
35
  className: o("[&_tr:last-child]:border-0", t),
36
- ...e
36
+ ...a
37
37
  }
38
38
  );
39
39
  }
40
- function b({ className: t, ...e }) {
41
- return /* @__PURE__ */ a.jsx(
40
+ function b({ className: t, ...a }) {
41
+ return /* @__PURE__ */ e.jsx(
42
42
  "tfoot",
43
43
  {
44
44
  "data-slot": "table-footer",
@@ -46,12 +46,12 @@ function b({ className: t, ...e }) {
46
46
  "bg-muted/50 border-t font-semibold [&>tr]:last:border-b-0",
47
47
  t
48
48
  ),
49
- ...e
49
+ ...a
50
50
  }
51
51
  );
52
52
  }
53
- function c({ className: t, ...e }) {
54
- return /* @__PURE__ */ a.jsx(
53
+ function c({ className: t, ...a }) {
54
+ return /* @__PURE__ */ e.jsx(
55
55
  "tr",
56
56
  {
57
57
  "data-slot": "table-row",
@@ -59,12 +59,12 @@ function c({ className: t, ...e }) {
59
59
  "hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",
60
60
  t
61
61
  ),
62
- ...e
62
+ ...a
63
63
  }
64
64
  );
65
65
  }
66
- function i({ className: t, ...e }) {
67
- return /* @__PURE__ */ a.jsx(
66
+ function i({ className: t, ...a }) {
67
+ return /* @__PURE__ */ e.jsx(
68
68
  "th",
69
69
  {
70
70
  "data-slot": "table-head",
@@ -72,12 +72,12 @@ function i({ className: t, ...e }) {
72
72
  "text-foreground h-10 px-2 text-left align-middle font-semibold whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
73
73
  t
74
74
  ),
75
- ...e
75
+ ...a
76
76
  }
77
77
  );
78
78
  }
79
- function m({ className: t, ...e }) {
80
- return /* @__PURE__ */ a.jsx(
79
+ function m({ className: t, ...a }) {
80
+ return /* @__PURE__ */ e.jsx(
81
81
  "td",
82
82
  {
83
83
  "data-slot": "table-cell",
@@ -85,20 +85,20 @@ function m({ className: t, ...e }) {
85
85
  "p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
86
86
  t
87
87
  ),
88
- ...e
88
+ ...a
89
89
  }
90
90
  );
91
91
  }
92
92
  function u({
93
93
  className: t,
94
- ...e
94
+ ...a
95
95
  }) {
96
- return /* @__PURE__ */ a.jsx(
96
+ return /* @__PURE__ */ e.jsx(
97
97
  "caption",
98
98
  {
99
99
  "data-slot": "table-caption",
100
- className: o("text-muted-foreground mt-4 text-sm", t),
101
- ...e
100
+ className: o("text-muted-foreground paragraph-sm mt-4", t),
101
+ ...a
102
102
  }
103
103
  );
104
104
  }
@@ -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-D5YssRbR.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:"text-label-sm min-h-16 px-2 py-1",sm:"text-label-md min-h-20 px-2 py-1",md:"text-label-lg min-h-24 px-3 py-2",lg:"text-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:t,showCharacterCount:m=!1,...i}){const r=u?(n=>typeof n=="string"?{name:n}:n)(u):void 0,s=i.value?String(i.value).length:0,c=m||t;return!r&&!c?e.jsxRuntimeExports.jsx("textarea",{"data-slot":"textarea",maxLength:t,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),...i}):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:t,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",r?"pr-10":"",o),...i}),r&&e.jsxRuntimeExports.jsx("span",{className:"absolute top-3 right-3 text-muted-foreground",children:e.jsxRuntimeExports.jsx(p.IconComponent,{iconName:r.name,stroke:r.stroke,size:20})})]}),c&&e.jsxRuntimeExports.jsx("div",{className:"flex justify-end",children:e.jsxRuntimeExports.jsx("span",{className:a.cn("text-xs text-muted-foreground",{"text-destructive":t&&s>t}),children:t?`${s}/${t}`:s})})]})}exports.Textarea=b;
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,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import { type VariantProps } from 'class-variance-authority';
2
+ import * as React from 'react';
3
3
  import { TablerIconName } from './icon-component';
4
4
  declare const textareaStyles: (props?: ({
5
5
  size?: "lg" | "md" | "sm" | "xs" | null | undefined;
@@ -1,16 +1,16 @@
1
1
  import { j as e } from "../jsx-runtime-DywqP_6a.js";
2
2
  import { c as n } from "../index-CRiPKpXj.js";
3
- import { c as v } from "../index-BqtVL8d-.js";
4
- import { I as b } from "../icon-component-CxQsODCa.js";
5
- const x = v(
3
+ import { c as x } from "../index-BqtVL8d-.js";
4
+ import { I as p } from "../icon-component-Db_44zX2.js";
5
+ const m = x(
6
6
  "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
7
  {
8
8
  variants: {
9
9
  size: {
10
- xs: "text-label-sm min-h-16 px-2 py-1",
11
- sm: "text-label-md min-h-20 px-2 py-1",
12
- md: "text-label-lg min-h-24 px-3 py-2",
13
- lg: "text-label-xl min-h-32 px-4 py-3"
10
+ xs: "label-sm min-h-16 px-2 py-1",
11
+ sm: "label-md min-h-20 px-2 py-1",
12
+ md: "label-lg min-h-24 px-3 py-2",
13
+ lg: "label-xl min-h-32 px-4 py-3"
14
14
  },
15
15
  resize: {
16
16
  none: "resize-none",
@@ -31,22 +31,22 @@ function j({
31
31
  resize: d,
32
32
  iconName: c,
33
33
  maxLength: r,
34
- showCharacterCount: m = !1,
35
- ...t
34
+ showCharacterCount: v = !1,
35
+ ...a
36
36
  }) {
37
- const i = c ? ((s) => typeof s == "string" ? { name: s } : s)(c) : void 0, a = t.value ? String(t.value).length : 0, u = m || r;
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;
38
38
  return !i && !u ? /* @__PURE__ */ e.jsx(
39
39
  "textarea",
40
40
  {
41
41
  "data-slot": "textarea",
42
42
  maxLength: r,
43
43
  className: n(
44
- x({ size: l, resize: d }),
44
+ m({ size: l, resize: d }),
45
45
  "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
46
46
  "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
47
47
  o
48
48
  ),
49
- ...t
49
+ ...a
50
50
  }
51
51
  ) : /* @__PURE__ */ e.jsxs("div", { className: "space-y-2", children: [
52
52
  /* @__PURE__ */ e.jsxs("div", { className: "relative w-full", children: [
@@ -56,17 +56,17 @@ function j({
56
56
  "data-slot": "textarea",
57
57
  maxLength: r,
58
58
  className: n(
59
- x({ size: l, resize: d }),
59
+ m({ size: l, resize: d }),
60
60
  "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
61
61
  "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
62
62
  i ? "pr-10" : "",
63
63
  o
64
64
  ),
65
- ...t
65
+ ...a
66
66
  }
67
67
  ),
68
- i && /* @__PURE__ */ e.jsx("span", { className: "absolute top-3 right-3 text-muted-foreground", children: /* @__PURE__ */ e.jsx(
69
- b,
68
+ i && /* @__PURE__ */ e.jsx("span", { className: "text-muted-foreground absolute top-3 right-3", children: /* @__PURE__ */ e.jsx(
69
+ p,
70
70
  {
71
71
  iconName: i.name,
72
72
  stroke: i.stroke,
@@ -77,10 +77,10 @@ function j({
77
77
  u && /* @__PURE__ */ e.jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ e.jsx(
78
78
  "span",
79
79
  {
80
- className: n("text-xs text-muted-foreground", {
81
- "text-destructive": r && a > r
80
+ className: n("paragraph-xs text-muted-foreground", {
81
+ "text-destructive": r && t > r
82
82
  }),
83
- children: r ? `${a}/${r}` : a
83
+ children: r ? `${t}/${r}` : t
84
84
  }
85
85
  ) })
86
86
  ] });
@@ -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-B9JMLYVf.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 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,7 +1,7 @@
1
1
  import { j as n } from "../jsx-runtime-DywqP_6a.js";
2
2
  import * as s from "@radix-ui/react-toggle-group";
3
3
  import * as d from "react";
4
- import { t as m } from "../toggle-nsKZaKsW.js";
4
+ import { t as m } from "../toggle-DkQSX3ux.js";
5
5
  import { c as l } from "../index-CRiPKpXj.js";
6
6
  const u = d.createContext({
7
7
  size: "md",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../toggle-B9JMLYVf.cjs");exports.Toggle=e.Toggle;exports.toggleVariants=e.toggleVariants;
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,4 +1,4 @@
1
- import { T as o, t } from "../toggle-nsKZaKsW.js";
1
+ import { T as o, t } from "../toggle-DkQSX3ux.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-BRSR0-4n.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-__VfWmJD.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-Bxh10S4Q.js";
1
+ import { T as i, a as r, b as T, c as a } from "../tooltip-DgWl3klK.js";
2
2
  export {
3
3
  i as Tooltip,
4
4
  r as TooltipContent,
@@ -1,70 +1,70 @@
1
- import { j as a } from "./jsx-runtime-DywqP_6a.js";
1
+ import { j as t } from "./jsx-runtime-DywqP_6a.js";
2
2
  import * as e from "@radix-ui/react-dialog";
3
3
  import { c as s } from "./index-CRiPKpXj.js";
4
- import { I as l } from "./icon-component-CxQsODCa.js";
4
+ import { I as l } from "./icon-component-Db_44zX2.js";
5
5
  function f({
6
- ...t
6
+ ...a
7
7
  }) {
8
- return /* @__PURE__ */ a.jsx(e.Root, { "data-slot": "dialog", ...t });
8
+ return /* @__PURE__ */ t.jsx(e.Root, { "data-slot": "dialog", ...a });
9
9
  }
10
10
  function m({
11
- ...t
11
+ ...a
12
12
  }) {
13
- return /* @__PURE__ */ a.jsx(e.Trigger, { "data-slot": "dialog-trigger", ...t });
13
+ return /* @__PURE__ */ t.jsx(e.Trigger, { "data-slot": "dialog-trigger", ...a });
14
14
  }
15
15
  function r({
16
- ...t
16
+ ...a
17
17
  }) {
18
- return /* @__PURE__ */ a.jsx(e.Portal, { "data-slot": "dialog-portal", ...t });
18
+ return /* @__PURE__ */ t.jsx(e.Portal, { "data-slot": "dialog-portal", ...a });
19
19
  }
20
- function x({
21
- ...t
20
+ function p({
21
+ ...a
22
22
  }) {
23
- return /* @__PURE__ */ a.jsx(e.Close, { "data-slot": "dialog-close", ...t });
23
+ return /* @__PURE__ */ t.jsx(e.Close, { "data-slot": "dialog-close", ...a });
24
24
  }
25
25
  function d({
26
- className: t,
26
+ className: a,
27
27
  ...o
28
28
  }) {
29
- return /* @__PURE__ */ a.jsx(
29
+ return /* @__PURE__ */ t.jsx(
30
30
  e.Overlay,
31
31
  {
32
32
  "data-slot": "dialog-overlay",
33
33
  className: s(
34
34
  "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",
35
- t
35
+ a
36
36
  ),
37
37
  ...o
38
38
  }
39
39
  );
40
40
  }
41
- function p({
42
- className: t,
41
+ function x({
42
+ className: a,
43
43
  children: o,
44
44
  showCloseButton: n = !0,
45
45
  ...i
46
46
  }) {
47
- return /* @__PURE__ */ a.jsxs(r, { "data-slot": "dialog-portal", children: [
48
- /* @__PURE__ */ a.jsx(d, {}),
49
- /* @__PURE__ */ a.jsxs(
47
+ return /* @__PURE__ */ t.jsxs(r, { "data-slot": "dialog-portal", children: [
48
+ /* @__PURE__ */ t.jsx(d, {}),
49
+ /* @__PURE__ */ t.jsxs(
50
50
  e.Content,
51
51
  {
52
52
  "data-slot": "dialog-content",
53
53
  className: s(
54
54
  "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",
55
- t
55
+ a
56
56
  ),
57
57
  ...i,
58
58
  children: [
59
59
  o,
60
- n && /* @__PURE__ */ a.jsxs(
60
+ n && /* @__PURE__ */ t.jsxs(
61
61
  e.Close,
62
62
  {
63
63
  "data-slot": "dialog-close",
64
64
  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",
65
65
  children: [
66
- /* @__PURE__ */ a.jsx(l, { iconName: "IconX" }),
67
- /* @__PURE__ */ a.jsx("span", { className: "sr-only", children: "Close" })
66
+ /* @__PURE__ */ t.jsx(l, { iconName: "IconX" }),
67
+ /* @__PURE__ */ t.jsx("span", { className: "sr-only", children: "Close" })
68
68
  ]
69
69
  }
70
70
  )
@@ -73,59 +73,59 @@ function p({
73
73
  )
74
74
  ] });
75
75
  }
76
- function j({ className: t, ...o }) {
77
- return /* @__PURE__ */ a.jsx(
76
+ function j({ className: a, ...o }) {
77
+ return /* @__PURE__ */ t.jsx(
78
78
  "div",
79
79
  {
80
80
  "data-slot": "dialog-header",
81
- className: s("flex flex-col gap-2 text-center sm:text-left", t),
81
+ className: s("flex flex-col gap-2 text-left", a),
82
82
  ...o
83
83
  }
84
84
  );
85
85
  }
86
- function D({ className: t, ...o }) {
87
- return /* @__PURE__ */ a.jsx(
86
+ function D({ className: a, ...o }) {
87
+ return /* @__PURE__ */ t.jsx(
88
88
  "div",
89
89
  {
90
90
  "data-slot": "dialog-footer",
91
91
  className: s(
92
92
  "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
93
- t
93
+ a
94
94
  ),
95
95
  ...o
96
96
  }
97
97
  );
98
98
  }
99
99
  function v({
100
- className: t,
100
+ className: a,
101
101
  ...o
102
102
  }) {
103
- return /* @__PURE__ */ a.jsx(
103
+ return /* @__PURE__ */ t.jsx(
104
104
  e.Title,
105
105
  {
106
106
  "data-slot": "dialog-title",
107
- className: s("text-lg leading-none font-semibold", t),
107
+ className: s("label-2xl font-semibold", a),
108
108
  ...o
109
109
  }
110
110
  );
111
111
  }
112
112
  function b({
113
- className: t,
113
+ className: a,
114
114
  ...o
115
115
  }) {
116
- return /* @__PURE__ */ a.jsx(
116
+ return /* @__PURE__ */ t.jsx(
117
117
  e.Description,
118
118
  {
119
119
  "data-slot": "dialog-description",
120
- className: s("text-muted-foreground text-sm", t),
120
+ className: s("text-muted-foreground paragraph-md", a),
121
121
  ...o
122
122
  }
123
123
  );
124
124
  }
125
125
  export {
126
126
  f as D,
127
- x as a,
128
- p as b,
127
+ p as a,
128
+ x as b,
129
129
  b as c,
130
130
  D as d,
131
131
  j as e,
@@ -1 +1 @@
1
- "use strict";const o=require("./jsx-runtime-BuHQgaKs.cjs"),d=require("@radix-ui/react-dialog"),n=require("./index-DoxiiusW.cjs"),c=require("./icon-component-D5YssRbR.cjs");function u(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const i=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>t[s]})}}return e.default=t,Object.freeze(e)}const a=u(d);function g({...t}){return o.jsxRuntimeExports.jsx(a.Root,{"data-slot":"dialog",...t})}function x({...t}){return o.jsxRuntimeExports.jsx(a.Trigger,{"data-slot":"dialog-trigger",...t})}function r({...t}){return o.jsxRuntimeExports.jsx(a.Portal,{"data-slot":"dialog-portal",...t})}function m({...t}){return o.jsxRuntimeExports.jsx(a.Close,{"data-slot":"dialog-close",...t})}function l({className:t,...e}){return o.jsxRuntimeExports.jsx(a.Overlay,{"data-slot":"dialog-overlay",className:n.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...e})}function p({className:t,children:e,showCloseButton:s=!0,...i}){return o.jsxRuntimeExports.jsxs(r,{"data-slot":"dialog-portal",children:[o.jsxRuntimeExports.jsx(l,{}),o.jsxRuntimeExports.jsxs(a.Content,{"data-slot":"dialog-content",className:n.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),...i,children:[e,s&&o.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:[o.jsxRuntimeExports.jsx(c.IconComponent,{iconName:"IconX"}),o.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function f({className:t,...e}){return o.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-header",className:n.cn("flex flex-col gap-2 text-center sm:text-left",t),...e})}function j({className:t,...e}){return o.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-footer",className:n.cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...e})}function D({className:t,...e}){return o.jsxRuntimeExports.jsx(a.Title,{"data-slot":"dialog-title",className:n.cn("text-lg leading-none font-semibold",t),...e})}function R({className:t,...e}){return o.jsxRuntimeExports.jsx(a.Description,{"data-slot":"dialog-description",className:n.cn("text-muted-foreground text-sm",t),...e})}exports.Dialog=g;exports.DialogClose=m;exports.DialogContent=p;exports.DialogDescription=R;exports.DialogFooter=j;exports.DialogHeader=f;exports.DialogOverlay=l;exports.DialogPortal=r;exports.DialogTitle=D;exports.DialogTrigger=x;
1
+ "use strict";const o=require("./jsx-runtime-BuHQgaKs.cjs"),d=require("@radix-ui/react-dialog"),n=require("./index-DoxiiusW.cjs"),c=require("./icon-component-4lyl8wE_.cjs");function u(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const i=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>t[s]})}}return e.default=t,Object.freeze(e)}const a=u(d);function g({...t}){return o.jsxRuntimeExports.jsx(a.Root,{"data-slot":"dialog",...t})}function x({...t}){return o.jsxRuntimeExports.jsx(a.Trigger,{"data-slot":"dialog-trigger",...t})}function r({...t}){return o.jsxRuntimeExports.jsx(a.Portal,{"data-slot":"dialog-portal",...t})}function p({...t}){return o.jsxRuntimeExports.jsx(a.Close,{"data-slot":"dialog-close",...t})}function l({className:t,...e}){return o.jsxRuntimeExports.jsx(a.Overlay,{"data-slot":"dialog-overlay",className:n.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...e})}function m({className:t,children:e,showCloseButton:s=!0,...i}){return o.jsxRuntimeExports.jsxs(r,{"data-slot":"dialog-portal",children:[o.jsxRuntimeExports.jsx(l,{}),o.jsxRuntimeExports.jsxs(a.Content,{"data-slot":"dialog-content",className:n.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),...i,children:[e,s&&o.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:[o.jsxRuntimeExports.jsx(c.IconComponent,{iconName:"IconX"}),o.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function f({className:t,...e}){return o.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-header",className:n.cn("flex flex-col gap-2 text-left",t),...e})}function j({className:t,...e}){return o.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-footer",className:n.cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...e})}function D({className:t,...e}){return o.jsxRuntimeExports.jsx(a.Title,{"data-slot":"dialog-title",className:n.cn("label-2xl font-semibold",t),...e})}function b({className:t,...e}){return o.jsxRuntimeExports.jsx(a.Description,{"data-slot":"dialog-description",className:n.cn("text-muted-foreground paragraph-md",t),...e})}exports.Dialog=g;exports.DialogClose=p;exports.DialogContent=m;exports.DialogDescription=b;exports.DialogFooter=j;exports.DialogHeader=f;exports.DialogOverlay=l;exports.DialogPortal=r;exports.DialogTitle=D;exports.DialogTrigger=x;
@@ -0,0 +1 @@
1
+ "use strict";const c=require("./jsx-runtime-BuHQgaKs.cjs"),i=require("./index-DoxiiusW.cjs"),m=require("@tabler/icons-react"),p=require("react");function f(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const d=f(m),u=p.forwardRef(({iconName:e,iconText:n,stroke:t="1.5",onClick:r,size:o=24,...l},a)=>{if(e){const s=d[e];return c.jsxRuntimeExports.jsx(s,{role:"img",ref:a,stroke:t,onClick:r,size:o,className:i.cn("pointer-events-none",l.className),...l})}else if(n){const s=n.slice(0,2).toUpperCase();return c.jsxRuntimeExports.jsx("div",{ref:a,className:"pointer-events-none flex items-center justify-center",style:{width:o,height:o},role:"img",children:c.jsxRuntimeExports.jsx("p",{className:i.cn({"label-sm":o<=16,"label-md":o>16}),children:s})})}else return console.error(`Icon ${e} not found`),null});u.displayName="IconComponent";const j=u;exports.IconComponent=j;
@@ -31,8 +31,8 @@ const c = f(
31
31
  "p",
32
32
  {
33
33
  className: m({
34
- "text-label-sm": e <= 16,
35
- "text-label-md": e > 16
34
+ "label-sm": e <= 16,
35
+ "label-md": e > 16
36
36
  }),
37
37
  children: n
38
38
  }
@@ -1,18 +1,18 @@
1
1
  import { j as r } from "./jsx-runtime-DywqP_6a.js";
2
- import { c as u } from "./index-CRiPKpXj.js";
3
- import { c as x } from "./index-BqtVL8d-.js";
4
- import * as b from "react";
5
- import { B as g } from "./button-C5IBh3Tr.js";
6
- import { I as m } from "./icon-component-CxQsODCa.js";
7
- const p = x(
8
- "file:text-foreground 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 file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
2
+ import { c as p } from "./index-CRiPKpXj.js";
3
+ import { c as b } from "./index-BqtVL8d-.js";
4
+ import * as x from "react";
5
+ import { B as g } from "./button-D8hlW1CJ.js";
6
+ import { I as u } from "./icon-component-Db_44zX2.js";
7
+ const m = b(
8
+ "file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input file:paragraph-sm flex w-full min-w-0 rounded-md border bg-transparent transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
9
9
  {
10
10
  variants: {
11
11
  size: {
12
- xs: "text-label-sm h-7 px-2 py-1",
13
- sm: "text-label-md h-8 px-2 py-1",
14
- md: "text-label-lg h-12 px-3 py-1",
15
- lg: "text-label-xl h-16 px-4 py-2"
12
+ xs: "label-sm h-7 px-2 py-1",
13
+ sm: "label-md h-8 px-2 py-1",
14
+ md: "label-lg h-12 px-3 py-1",
15
+ lg: "label-xl h-16 px-4 py-2"
16
16
  }
17
17
  },
18
18
  defaultVariants: {
@@ -23,21 +23,21 @@ const p = x(
23
23
  function k({
24
24
  className: n,
25
25
  type: s,
26
- size: t,
26
+ size: a,
27
27
  iconName: l,
28
- iconPosition: a = "left",
28
+ iconPosition: i = "left",
29
29
  ...d
30
30
  }) {
31
- const [i, c] = b.useState(!1), e = l ? ((o) => typeof o == "string" ? { name: o } : o)(l) : void 0, f = () => {
32
- c(!i);
31
+ const [t, c] = x.useState(!1), e = l ? ((o) => typeof o == "string" ? { name: o } : o)(l) : void 0, f = () => {
32
+ c(!t);
33
33
  };
34
34
  return !e && s !== "password" ? /* @__PURE__ */ r.jsx(
35
35
  "input",
36
36
  {
37
37
  type: s,
38
38
  "data-slot": "input",
39
- className: u(
40
- p({ size: t }),
39
+ className: p(
40
+ m({ size: a }),
41
41
  "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
42
42
  "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
43
43
  n
@@ -45,8 +45,8 @@ function k({
45
45
  ...d
46
46
  }
47
47
  ) : /* @__PURE__ */ r.jsxs("div", { className: "relative w-full", children: [
48
- e && a === "left" && /* @__PURE__ */ r.jsx("span", { className: "text-muted-foreground absolute top-1/2 left-3 -translate-y-1/2", children: /* @__PURE__ */ r.jsx(
49
- m,
48
+ e && i === "left" && /* @__PURE__ */ r.jsx("span", { className: "text-muted-foreground absolute top-1/2 left-3 -translate-y-1/2", children: /* @__PURE__ */ r.jsx(
49
+ u,
50
50
  {
51
51
  iconName: e.name,
52
52
  stroke: e.stroke,
@@ -56,14 +56,14 @@ function k({
56
56
  /* @__PURE__ */ r.jsx(
57
57
  "input",
58
58
  {
59
- type: s === "password" ? i ? "text" : "password" : s,
59
+ type: s === "password" ? t ? "text" : "password" : s,
60
60
  "data-slot": "input",
61
- className: u(
62
- p({ size: t }),
61
+ className: p(
62
+ m({ size: a }),
63
63
  "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
64
64
  "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
65
- e && a === "left" ? "pl-10" : "",
66
- e && a === "right" || s === "password" ? "pr-10" : "",
65
+ e && i === "left" ? "pl-10" : "",
66
+ e && i === "right" || s === "password" ? "pr-10" : "",
67
67
  n
68
68
  ),
69
69
  ...d
@@ -74,16 +74,16 @@ function k({
74
74
  {
75
75
  variant: "inverse",
76
76
  type: "button",
77
- size: t === "xs" || t === "sm" ? "xs" : "md",
77
+ size: a === "xs" || a === "sm" ? "xs" : "md",
78
78
  tabIndex: -1,
79
- "aria-label": i ? "Hide password" : "Show password",
79
+ "aria-label": t ? "Hide password" : "Show password",
80
80
  className: "absolute top-1/2 right-3 -translate-y-1/2",
81
81
  onClick: f,
82
- iconName: i ? "IconEyeOff" : "IconEye"
82
+ iconName: t ? "IconEyeOff" : "IconEye"
83
83
  }
84
84
  ),
85
- e && a === "right" && s !== "password" && /* @__PURE__ */ r.jsx("span", { className: "text-muted-foreground absolute top-1/2 right-3 -translate-y-1/2", children: /* @__PURE__ */ r.jsx(
86
- m,
85
+ e && i === "right" && s !== "password" && /* @__PURE__ */ r.jsx("span", { className: "text-muted-foreground absolute top-1/2 right-3 -translate-y-1/2", children: /* @__PURE__ */ r.jsx(
86
+ u,
87
87
  {
88
88
  iconName: e.name,
89
89
  stroke: e.stroke,
@@ -0,0 +1 @@
1
+ "use strict";const n=require("./jsx-runtime-BuHQgaKs.cjs"),u=require("./index-DoxiiusW.cjs"),f=require("./index-C8P6Mn4U.cjs"),b=require("react"),g=require("./button-U1793OQ4.cjs"),c=require("./icon-component-4lyl8wE_.cjs");function v(s){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const t in s)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(s,t);Object.defineProperty(e,t,i.get?i:{enumerable:!0,get:()=>s[t]})}}return e.default=s,Object.freeze(e)}const j=v(b),p=f.cva("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input file:paragraph-sm flex w-full min-w-0 rounded-md border bg-transparent transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",{variants:{size:{xs:"label-sm h-7 px-2 py-1",sm:"label-md h-8 px-2 py-1",md:"label-lg h-12 px-3 py-1",lg:"label-xl h-16 px-4 py-2"}},defaultVariants:{size:"md"}});function w({className:s,type:e,size:t,iconName:i,iconPosition:a="left",...d}){const[o,x]=j.useState(!1),r=i?(l=>typeof l=="string"?{name:l}:l)(i):void 0,m=()=>{x(!o)};return!r&&e!=="password"?n.jsxRuntimeExports.jsx("input",{type:e,"data-slot":"input",className:u.cn(p({size:t}),"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",s),...d}):n.jsxRuntimeExports.jsxs("div",{className:"relative w-full",children:[r&&a==="left"&&n.jsxRuntimeExports.jsx("span",{className:"text-muted-foreground absolute top-1/2 left-3 -translate-y-1/2",children:n.jsxRuntimeExports.jsx(c.IconComponent,{iconName:r.name,stroke:r.stroke,size:20})}),n.jsxRuntimeExports.jsx("input",{type:e==="password"?o?"text":"password":e,"data-slot":"input",className:u.cn(p({size:t}),"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",r&&a==="left"?"pl-10":"",r&&a==="right"||e==="password"?"pr-10":"",s),...d}),e==="password"&&n.jsxRuntimeExports.jsx(g.Button,{variant:"inverse",type:"button",size:t==="xs"||t==="sm"?"xs":"md",tabIndex:-1,"aria-label":o?"Hide password":"Show password",className:"absolute top-1/2 right-3 -translate-y-1/2",onClick:m,iconName:o?"IconEyeOff":"IconEye"}),r&&a==="right"&&e!=="password"&&n.jsxRuntimeExports.jsx("span",{className:"text-muted-foreground absolute top-1/2 right-3 -translate-y-1/2",children:n.jsxRuntimeExports.jsx(c.IconComponent,{iconName:r.name,stroke:r.stroke,size:20})})]})}exports.Input=w;
@@ -0,0 +1,22 @@
1
+ import { j as o } from "./jsx-runtime-DywqP_6a.js";
2
+ import * as t from "@radix-ui/react-label";
3
+ import { c as r } from "./index-CRiPKpXj.js";
4
+ function i({
5
+ className: e,
6
+ ...a
7
+ }) {
8
+ return /* @__PURE__ */ o.jsx(
9
+ t.Root,
10
+ {
11
+ "data-slot": "label",
12
+ className: r(
13
+ "label-lg flex items-center gap-2 leading-none font-semibold select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
14
+ e
15
+ ),
16
+ ...a
17
+ }
18
+ );
19
+ }
20
+ export {
21
+ i as L
22
+ };
@@ -1 +1 @@
1
- "use strict";const a=require("./jsx-runtime-BuHQgaKs.cjs"),o=require("@radix-ui/react-label"),i=require("./index-DoxiiusW.cjs");function l(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const s=l(o);function c({className:e,...t}){return a.jsxRuntimeExports.jsx(s.Root,{"data-slot":"label",className:i.cn("text-label-lg flex items-center gap-2 leading-none font-semibold select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}exports.Label=c;
1
+ "use strict";const a=require("./jsx-runtime-BuHQgaKs.cjs"),o=require("@radix-ui/react-label"),i=require("./index-DoxiiusW.cjs");function l(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const s=l(o);function c({className:e,...t}){return a.jsxRuntimeExports.jsx(s.Root,{"data-slot":"label",className:i.cn("label-lg flex items-center gap-2 leading-none font-semibold select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}exports.Label=c;