ics-ui-kit 0.1.0-alpha.12 → 0.1.0-alpha.13

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 (227) hide show
  1. package/dist/Button-DQtBfU9y.js +57 -0
  2. package/dist/Button-DQtBfU9y.js.map +1 -0
  3. package/dist/{Button-DhfE69q0.js → ButtonBase-BEM8SNmT.js} +27 -56
  4. package/dist/ButtonBase-BEM8SNmT.js.map +1 -0
  5. package/dist/CarouselItem-pSHe0ufN.js +1500 -0
  6. package/dist/CarouselItem-pSHe0ufN.js.map +1 -0
  7. package/dist/CheckboxField-i_-dPpFM.js +370 -0
  8. package/dist/CheckboxField-i_-dPpFM.js.map +1 -0
  9. package/dist/Divider-C0Ss5GJT.js +47 -0
  10. package/dist/{Divider-D3NvaU8c.js.map → Divider-C0Ss5GJT.js.map} +1 -1
  11. package/dist/Field-3XJNFTql.js +78 -0
  12. package/dist/Field-3XJNFTql.js.map +1 -0
  13. package/dist/FieldLabel-CAbVan3E.js +97 -0
  14. package/dist/FieldLabel-CAbVan3E.js.map +1 -0
  15. package/dist/FormBody-4HptEjhb.js +103 -0
  16. package/dist/FormBody-4HptEjhb.js.map +1 -0
  17. package/dist/{IconButton-BUPs2kEo.js → IconButton-BkBsOIf5.js} +15 -15
  18. package/dist/{IconButton-BUPs2kEo.js.map → IconButton-BkBsOIf5.js.map} +1 -1
  19. package/dist/ImagePlaceholder-CNAKQWTh.js +45 -0
  20. package/dist/ImagePlaceholder-CNAKQWTh.js.map +1 -0
  21. package/dist/ImagePreview-DHi7A8md.js +156 -0
  22. package/dist/ImagePreview-DHi7A8md.js.map +1 -0
  23. package/dist/ImageUploader-46sxdmt5.js +123 -0
  24. package/dist/ImageUploader-46sxdmt5.js.map +1 -0
  25. package/dist/IsolatedStylesWrapper-WgaoHh7y.js +179 -0
  26. package/dist/IsolatedStylesWrapper-WgaoHh7y.js.map +1 -0
  27. package/dist/Modal-D33MSQot.js +125 -0
  28. package/dist/Modal-D33MSQot.js.map +1 -0
  29. package/dist/ScrollShadowContainer-ByNH68Kg.js +636 -0
  30. package/dist/ScrollShadowContainer-ByNH68Kg.js.map +1 -0
  31. package/dist/Toggle-7AlEmn8A.js +104 -0
  32. package/dist/Toggle-7AlEmn8A.js.map +1 -0
  33. package/dist/ToggleGroup-CT453MNp.js +200 -0
  34. package/dist/ToggleGroup-CT453MNp.js.map +1 -0
  35. package/dist/Tooltip-C4BbGF2_.js +372 -0
  36. package/dist/Tooltip-C4BbGF2_.js.map +1 -0
  37. package/dist/{bundle-mjs-D6wdQkGI.js → bundle-mjs-LhQum_e3.js} +676 -425
  38. package/dist/bundle-mjs-LhQum_e3.js.map +1 -0
  39. package/dist/check-C-TqZgvb.js.map +1 -1
  40. package/dist/chevron-right-CobOebzi.js.map +1 -1
  41. package/dist/components/badge.js +1 -1
  42. package/dist/components/button/icon-button/IconButton.stories.d.ts +330 -2
  43. package/dist/components/button/loading-button/LoadingButton.d.ts +249 -0
  44. package/dist/components/button/loading-button/LoadingButton.stories.d.ts +219 -0
  45. package/dist/components/button.js +6 -5
  46. package/dist/components/button.js.map +1 -1
  47. package/dist/components/carousel.js +65 -1532
  48. package/dist/components/carousel.js.map +1 -1
  49. package/dist/components/checkbox.js +1 -1
  50. package/dist/components/divider/content-divider/ContentDivider.d.ts +14 -0
  51. package/dist/components/divider/content-divider/ContentDivider.stories.d.ts +7 -0
  52. package/dist/components/divider/index.d.ts +1 -0
  53. package/dist/components/divider.js +45 -2
  54. package/dist/components/divider.js.map +1 -1
  55. package/dist/components/drawer/templates/drawer-footer-template/DrawerFooterTemplate.d.ts +3 -0
  56. package/dist/components/drawer.js +450 -447
  57. package/dist/components/drawer.js.map +1 -1
  58. package/dist/components/dropdown.js +37 -33
  59. package/dist/components/dropdown.js.map +1 -1
  60. package/dist/components/empty-state/EmptyState.d.ts +2 -2
  61. package/dist/components/empty-state.js +1 -1
  62. package/dist/components/empty-state.js.map +1 -1
  63. package/dist/components/field/Field.d.ts +35 -0
  64. package/dist/components/field.js +1 -1
  65. package/dist/components/form/components/form-header/FormHeader.d.ts +2 -2
  66. package/dist/components/form.js +289 -288
  67. package/dist/components/form.js.map +1 -1
  68. package/dist/components/gallery/Gallery.d.ts +21 -0
  69. package/dist/components/gallery/Gallery.stories.d.ts +26 -0
  70. package/dist/components/gallery/index.d.ts +1 -0
  71. package/dist/components/gallery.d.ts +2 -0
  72. package/dist/components/gallery.js +130 -0
  73. package/dist/components/gallery.js.map +1 -0
  74. package/dist/components/icon-tooltip/IconTooltip.d.ts +2 -1
  75. package/dist/components/image-placeholder.js +2 -42
  76. package/dist/components/image-placeholder.js.map +1 -1
  77. package/dist/components/image-preview/ImagePreview.d.ts +6 -6
  78. package/dist/components/image-preview.js +2 -136
  79. package/dist/components/image-preview.js.map +1 -1
  80. package/dist/components/image-uploader.js +2 -118
  81. package/dist/components/image-uploader.js.map +1 -1
  82. package/dist/components/input/file-input/FileInput.d.ts +3 -1
  83. package/dist/components/input-otp.js +1 -1
  84. package/dist/components/input-otp.js.map +1 -1
  85. package/dist/components/input.js +176 -195
  86. package/dist/components/input.js.map +1 -1
  87. package/dist/components/isolated-styles-wrapper/IsolatedStylesWrapper.d.ts +1 -1
  88. package/dist/components/label/Label.stories.d.ts +0 -2
  89. package/dist/components/label/field-label/FieldLabel.d.ts +11 -0
  90. package/dist/components/label/field-label/FieldLabel.stories.d.ts +1 -0
  91. package/dist/components/label/field-label/components/RequiredIcon.d.ts +5 -0
  92. package/dist/components/label.js +1 -1
  93. package/dist/components/loading/Loading.d.ts +4 -4
  94. package/dist/components/loading.js +2 -2
  95. package/dist/components/loading.js.map +1 -1
  96. package/dist/components/modal.js +12 -122
  97. package/dist/components/modal.js.map +1 -1
  98. package/dist/components/option-group.js +1 -1
  99. package/dist/components/popover.js +34 -31
  100. package/dist/components/popover.js.map +1 -1
  101. package/dist/components/scheduler.js +11 -11
  102. package/dist/components/scheduler.js.map +1 -1
  103. package/dist/components/scroll-shadow-container/ScrollShadowContainer.d.ts +1 -0
  104. package/dist/components/scroll-shadow-container.js +1 -1
  105. package/dist/components/select.js +487 -519
  106. package/dist/components/select.js.map +1 -1
  107. package/dist/components/shortcut/Shortcut.d.ts +14 -14
  108. package/dist/components/shortcut/Shortcut.stories.d.ts +7 -7
  109. package/dist/components/shortcut.js +16 -16
  110. package/dist/components/shortcut.js.map +1 -1
  111. package/dist/components/skeleton/Skeleton.d.ts +1 -0
  112. package/dist/components/skeleton/Skeleton.stories.d.ts +7 -0
  113. package/dist/components/skeleton/index.d.ts +1 -0
  114. package/dist/components/skeleton.d.ts +2 -0
  115. package/dist/components/skeleton.js +33 -0
  116. package/dist/components/skeleton.js.map +1 -0
  117. package/dist/components/switch.js +147 -126
  118. package/dist/components/switch.js.map +1 -1
  119. package/dist/components/tabs.js +9 -8
  120. package/dist/components/tabs.js.map +1 -1
  121. package/dist/components/tag.js +3 -3
  122. package/dist/components/toast.js +4 -4
  123. package/dist/components/toast.js.map +1 -1
  124. package/dist/components/toggle-group.js +1 -1
  125. package/dist/components/toggle.js +1 -1
  126. package/dist/components/tooltip/Tooltip.stories.d.ts +7 -0
  127. package/dist/components/tooltip/index.d.ts +1 -0
  128. package/dist/components/tooltip.d.ts +2 -0
  129. package/dist/components/tooltip.js +8 -0
  130. package/dist/components/tooltip.js.map +1 -0
  131. package/dist/createLucideIcon-DgrNxRV5.js.map +1 -1
  132. package/dist/design-tokens.source.json +1 -1
  133. package/dist/download-CVOGyQ0e.js.map +1 -1
  134. package/dist/downloadFile-yZV-aaO2.js +15 -0
  135. package/dist/downloadFile-yZV-aaO2.js.map +1 -0
  136. package/dist/index-B6K06mzp.js +67 -0
  137. package/dist/index-B6K06mzp.js.map +1 -0
  138. package/dist/index-BCZIl2rL.js +68 -0
  139. package/dist/index-BCZIl2rL.js.map +1 -0
  140. package/dist/index-BZPx6jYI.js.map +1 -1
  141. package/dist/index-Bj6ZBhqh.js +105 -0
  142. package/dist/index-Bj6ZBhqh.js.map +1 -0
  143. package/dist/index-ByaXH_ih.js.map +1 -1
  144. package/dist/index-CACw01gt.js +702 -0
  145. package/dist/index-CACw01gt.js.map +1 -0
  146. package/dist/index-COBL2CQB.js +14 -0
  147. package/dist/index-COBL2CQB.js.map +1 -0
  148. package/dist/index-CR-odn5-.js.map +1 -1
  149. package/dist/{index-BjbwEU_d.js → index-ClwWa5fz.js} +20 -20
  150. package/dist/index-ClwWa5fz.js.map +1 -0
  151. package/dist/{index-DwbC6luJ.js → index-Cx4x7Bv2.js} +52 -50
  152. package/dist/index-Cx4x7Bv2.js.map +1 -0
  153. package/dist/index-CzNelU6n.js +55 -0
  154. package/dist/index-CzNelU6n.js.map +1 -0
  155. package/dist/index-DBsc8nMF.js +43 -0
  156. package/dist/index-DBsc8nMF.js.map +1 -0
  157. package/dist/index-Mbnk_gHS.js +102 -0
  158. package/dist/index-Mbnk_gHS.js.map +1 -0
  159. package/dist/index-bhXb51Q1.js +215 -0
  160. package/dist/index-bhXb51Q1.js.map +1 -0
  161. package/dist/index-n71RB2rx.js +1592 -0
  162. package/dist/index-n71RB2rx.js.map +1 -0
  163. package/dist/index-rKs9bXHr.js +7 -0
  164. package/dist/index-rKs9bXHr.js.map +1 -0
  165. package/dist/lib/utils/file/downloadFile.d.ts +2 -0
  166. package/dist/lib/utils/image/imageConverter.d.ts +23 -0
  167. package/dist/styles-scoped.css +72 -18
  168. package/dist/styles.css +72 -18
  169. package/dist/{utils-DGzAmwok.js → utils-BK4mPzkB.js} +2 -2
  170. package/dist/utils-BK4mPzkB.js.map +1 -0
  171. package/dist/x-JgjNP5oH.js.map +1 -1
  172. package/package.json +1 -1
  173. package/dist/Button-DhfE69q0.js.map +0 -1
  174. package/dist/CheckboxField-CL1Tc7P4.js +0 -257
  175. package/dist/CheckboxField-CL1Tc7P4.js.map +0 -1
  176. package/dist/Divider-D3NvaU8c.js +0 -46
  177. package/dist/Field-COOo8o9f.js +0 -80
  178. package/dist/Field-COOo8o9f.js.map +0 -1
  179. package/dist/FieldLabel-BGxT_RaE.js +0 -64
  180. package/dist/FieldLabel-BGxT_RaE.js.map +0 -1
  181. package/dist/FormBody-DM52shm4.js +0 -101
  182. package/dist/FormBody-DM52shm4.js.map +0 -1
  183. package/dist/IsolatedStylesWrapper-B_Qu75eR.js +0 -555
  184. package/dist/IsolatedStylesWrapper-B_Qu75eR.js.map +0 -1
  185. package/dist/ScrollShadowContainer-DSKr3_fV.js +0 -690
  186. package/dist/ScrollShadowContainer-DSKr3_fV.js.map +0 -1
  187. package/dist/Toggle-BuYtICWv.js +0 -129
  188. package/dist/Toggle-BuYtICWv.js.map +0 -1
  189. package/dist/ToggleGroup-CMyUAz04.js +0 -467
  190. package/dist/ToggleGroup-CMyUAz04.js.map +0 -1
  191. package/dist/bundle-mjs-D6wdQkGI.js.map +0 -1
  192. package/dist/floating-ui.react-dom-CWfR7VfF.js +0 -1346
  193. package/dist/floating-ui.react-dom-CWfR7VfF.js.map +0 -1
  194. package/dist/index-0WznJ1QS.js +0 -276
  195. package/dist/index-0WznJ1QS.js.map +0 -1
  196. package/dist/index-BjbwEU_d.js.map +0 -1
  197. package/dist/index-BqriTm0o.js +0 -47
  198. package/dist/index-BqriTm0o.js.map +0 -1
  199. package/dist/index-C6bvrqL8.js +0 -563
  200. package/dist/index-C6bvrqL8.js.map +0 -1
  201. package/dist/index-C6t9z3on.js +0 -97
  202. package/dist/index-C6t9z3on.js.map +0 -1
  203. package/dist/index-CaQG3DzJ.js +0 -64
  204. package/dist/index-CaQG3DzJ.js.map +0 -1
  205. package/dist/index-ChTGHCkY.js +0 -255
  206. package/dist/index-ChTGHCkY.js.map +0 -1
  207. package/dist/index-D808y1pT.js +0 -178
  208. package/dist/index-D808y1pT.js.map +0 -1
  209. package/dist/index-DE3fiSzl.js +0 -28
  210. package/dist/index-DE3fiSzl.js.map +0 -1
  211. package/dist/index-DPws5oAn.js +0 -90
  212. package/dist/index-DPws5oAn.js.map +0 -1
  213. package/dist/index-DeUgDpdG.js +0 -80
  214. package/dist/index-DeUgDpdG.js.map +0 -1
  215. package/dist/index-DvquTpxI.js +0 -140
  216. package/dist/index-DvquTpxI.js.map +0 -1
  217. package/dist/index-DwbC6luJ.js.map +0 -1
  218. package/dist/index-Ncxt32Wo.js +0 -174
  219. package/dist/index-Ncxt32Wo.js.map +0 -1
  220. package/dist/index-U7y6nBZR.js +0 -179
  221. package/dist/index-U7y6nBZR.js.map +0 -1
  222. package/dist/index-pysSAa5G.js +0 -57
  223. package/dist/index-pysSAa5G.js.map +0 -1
  224. package/dist/tooltip-DI3_ZKNk.js +0 -365
  225. package/dist/tooltip-DI3_ZKNk.js.map +0 -1
  226. package/dist/utils-DGzAmwok.js.map +0 -1
  227. /package/dist/components/{ui/tooltip.d.ts → tooltip/Tooltip.d.ts} +0 -0
@@ -1,33 +1,33 @@
1
1
  var ct = Object.defineProperty, ut = Object.defineProperties;
2
- var lt = Object.getOwnPropertyDescriptors;
3
- var F = Object.getOwnPropertySymbols;
4
- var X = Object.prototype.hasOwnProperty, q = Object.prototype.propertyIsEnumerable;
5
- var H = (t, e, n) => e in t ? ct(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, y = (t, e) => {
2
+ var pt = Object.getOwnPropertyDescriptors;
3
+ var E = Object.getOwnPropertySymbols;
4
+ var P = Object.prototype.hasOwnProperty, U = Object.prototype.propertyIsEnumerable;
5
+ var q = (t, e, n) => e in t ? ct(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, f = (t, e) => {
6
6
  for (var n in e || (e = {}))
7
- X.call(e, n) && H(t, n, e[n]);
8
- if (F)
9
- for (var n of F(e))
10
- q.call(e, n) && H(t, n, e[n]);
7
+ P.call(e, n) && q(t, n, e[n]);
8
+ if (E)
9
+ for (var n of E(e))
10
+ U.call(e, n) && q(t, n, e[n]);
11
11
  return t;
12
- }, W = (t, e) => ut(t, lt(e));
13
- var m = (t, e) => {
12
+ }, W = (t, e) => ut(t, pt(e));
13
+ var y = (t, e) => {
14
14
  var n = {};
15
15
  for (var o in t)
16
- X.call(t, o) && e.indexOf(o) < 0 && (n[o] = t[o]);
17
- if (t != null && F)
18
- for (var o of F(t))
19
- e.indexOf(o) < 0 && q.call(t, o) && (n[o] = t[o]);
16
+ P.call(t, o) && e.indexOf(o) < 0 && (n[o] = t[o]);
17
+ if (t != null && E)
18
+ for (var o of E(t))
19
+ e.indexOf(o) < 0 && U.call(t, o) && (n[o] = t[o]);
20
20
  return n;
21
21
  };
22
- import { jsx as a, jsxs as z } from "react/jsx-runtime";
23
- import I, { useRef as A, useState as T, useEffect as M, useCallback as b, useMemo as O } from "react";
24
- import { u as E, a as J, i as pt, b as dt } from "../inputBaseStyles-COdOJhF5.js";
22
+ import { jsx as a, jsxs as F } from "react/jsx-runtime";
23
+ import I, { useRef as z, useState as T, useEffect as A, useCallback as m, useMemo as J } from "react";
24
+ import { u as B, a as K, i as lt, b as dt } from "../inputBaseStyles-COdOJhF5.js";
25
25
  import { c as x } from "../index-CR-odn5-.js";
26
- import { I as V } from "../IconButton-BUPs2kEo.js";
27
- import { c as L } from "../createLucideIcon-DgrNxRV5.js";
28
- import { C as K } from "../check-C-TqZgvb.js";
29
- import { t as ht } from "../bundle-mjs-D6wdQkGI.js";
30
- import { B as ft } from "../Button-DhfE69q0.js";
26
+ import { I as M } from "../IconButton-BkBsOIf5.js";
27
+ import { c as V } from "../createLucideIcon-DgrNxRV5.js";
28
+ import { C as Q } from "../check-C-TqZgvb.js";
29
+ import { t as ht } from "../bundle-mjs-LhQum_e3.js";
30
+ import { d as ft } from "../downloadFile-yZV-aaO2.js";
31
31
  import { D as yt } from "../download-CVOGyQ0e.js";
32
32
  /**
33
33
  * @license lucide-react v0.460.0 - ISC
@@ -35,7 +35,7 @@ import { D as yt } from "../download-CVOGyQ0e.js";
35
35
  * This source code is licensed under the ISC license.
36
36
  * See the LICENSE file in the root directory of this source tree.
37
37
  */
38
- const j = L("CircleX", [
38
+ const D = V("CircleX", [
39
39
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
40
40
  ["path", { d: "m15 9-6 6", key: "1uzhvr" }],
41
41
  ["path", { d: "m9 9 6 6", key: "z0biqf" }]
@@ -46,7 +46,7 @@ const j = L("CircleX", [
46
46
  * This source code is licensed under the ISC license.
47
47
  * See the LICENSE file in the root directory of this source tree.
48
48
  */
49
- const P = L("Copy", [
49
+ const Y = V("Copy", [
50
50
  ["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
51
51
  ["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
52
52
  ]);
@@ -56,7 +56,7 @@ const P = L("Copy", [
56
56
  * This source code is licensed under the ISC license.
57
57
  * See the LICENSE file in the root directory of this source tree.
58
58
  */
59
- const mt = L("EyeOff", [
59
+ const mt = V("EyeOff", [
60
60
  [
61
61
  "path",
62
62
  {
@@ -80,7 +80,7 @@ const mt = L("EyeOff", [
80
80
  * This source code is licensed under the ISC license.
81
81
  * See the LICENSE file in the root directory of this source tree.
82
82
  */
83
- const bt = L("Eye", [
83
+ const bt = V("Eye", [
84
84
  [
85
85
  "path",
86
86
  {
@@ -90,15 +90,15 @@ const bt = L("Eye", [
90
90
  ],
91
91
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
92
92
  ]), gt = x({
93
- extend: pt,
93
+ extend: lt,
94
94
  base: "h-10 lg:h-9"
95
- }), Q = I.forwardRef(
95
+ }), Z = I.forwardRef(
96
96
  (r, s) => {
97
- var c = r, { type: t = "text", className: e, error: n } = c, o = m(c, ["type", "className", "error"]);
98
- const i = A(null), u = E(i, s);
99
- return J(i, n), /* @__PURE__ */ a(
97
+ var c = r, { type: t = "text", className: e, error: n } = c, o = y(c, ["type", "className", "error"]);
98
+ const i = z(null), u = B(i, s);
99
+ return K(i, n), /* @__PURE__ */ a(
100
100
  "input",
101
- y({
101
+ f({
102
102
  type: t,
103
103
  className: gt({ className: e }),
104
104
  ref: u,
@@ -107,7 +107,7 @@ const bt = L("Eye", [
107
107
  );
108
108
  }
109
109
  );
110
- Q.displayName = "Input";
110
+ Z.displayName = "Input";
111
111
  const wt = x({
112
112
  extend: dt,
113
113
  base: [
@@ -135,24 +135,24 @@ const wt = x({
135
135
  "has-[input[aria-invalid=true]]:has-[input:focus]:border-status-error-secondary-border",
136
136
  "has-[input[aria-invalid=true]]:has-[input:focus]:shadow-focus-error"
137
137
  ]
138
- }), D = I.forwardRef((s, o) => {
139
- var r = s, { className: t, children: e } = r, n = m(r, ["className", "children"]);
138
+ }), j = I.forwardRef((s, o) => {
139
+ var r = s, { className: t, children: e } = r, n = y(r, ["className", "children"]);
140
140
  const c = wt({ className: t });
141
- return /* @__PURE__ */ a("div", W(y({ ref: o, className: c }, n), { children: e }));
141
+ return /* @__PURE__ */ a("div", W(f({ ref: o, className: c }, n), { children: e }));
142
142
  });
143
- D.displayName = "InputGroup";
143
+ j.displayName = "InputGroup";
144
144
  const vt = x({
145
145
  base: [
146
146
  "min-w-5 flex-1 bg-transparent px-3 py-2.5 lg:py-2",
147
147
  "outline-none placeholder:text-muted focus:outline-none"
148
148
  ]
149
- }), Y = I.forwardRef(
149
+ }), $ = I.forwardRef(
150
150
  (s, o) => {
151
- var r = s, { className: t, error: e } = r, n = m(r, ["className", "error"]);
152
- const c = vt({ className: t }), i = A(null), u = E(i, o);
153
- return J(i, e), /* @__PURE__ */ a(
151
+ var r = s, { className: t, error: e } = r, n = y(r, ["className", "error"]);
152
+ const c = vt({ className: t }), i = z(null), u = B(i, o);
153
+ return K(i, e), /* @__PURE__ */ a(
154
154
  "input",
155
- y({
155
+ f({
156
156
  ref: u,
157
157
  className: c,
158
158
  "aria-invalid": !!e,
@@ -161,28 +161,28 @@ const vt = x({
161
161
  );
162
162
  }
163
163
  );
164
- Y.displayName = "InputGroup.Input";
164
+ $.displayName = "InputGroup.Input";
165
165
  const xt = x({
166
166
  base: [
167
167
  "flex h-full items-center border-l border-secondary-border px-3 text-secondary-fg first:border-l-0",
168
168
  // Правая граница, если следующий элемент НЕ InputGroupText
169
169
  "[&[data-input-group-element='text']:has(+_:not([data-input-group-element='text']))]:border-r"
170
170
  ]
171
- }), Z = I.forwardRef((o, n) => {
172
- var s = o, { className: t } = s, e = m(s, ["className"]);
171
+ }), L = I.forwardRef((o, n) => {
172
+ var s = o, { className: t } = s, e = y(s, ["className"]);
173
173
  const r = xt({ className: t });
174
- return /* @__PURE__ */ a("div", y({ ref: n, className: r, "data-input-group-element": "text" }, e));
174
+ return /* @__PURE__ */ a("div", f({ ref: n, className: r, "data-input-group-element": "text" }, e));
175
175
  });
176
- Z.displayName = "InputGroup.Text";
177
- const Ct = x({
176
+ L.displayName = "InputGroup.Text";
177
+ const It = x({
178
178
  base: ["aspect-auto h-full px-1.5 py-2.5 first:pl-2.5 last:pr-2.5 lg:py-2"]
179
- }), B = I.forwardRef(
179
+ }), k = I.forwardRef(
180
180
  (s, o) => {
181
- var r = s, { icon: t, className: e } = r, n = m(r, ["icon", "className"]);
182
- const c = Ct({ className: e });
181
+ var r = s, { icon: t, className: e } = r, n = y(r, ["icon", "className"]);
182
+ const c = It({ className: e });
183
183
  return /* @__PURE__ */ a(
184
- V,
185
- y({
184
+ M,
185
+ f({
186
186
  ref: o,
187
187
  icon: t,
188
188
  className: c,
@@ -193,21 +193,21 @@ const Ct = x({
193
193
  );
194
194
  }
195
195
  );
196
- B.displayName = "InputGroup.Button";
197
- function It(t, e, n) {
196
+ k.displayName = "InputGroup.Button";
197
+ function Ct(t, e, n) {
198
198
  const [o, s] = T(
199
199
  typeof e == "string" ? e : String(e != null ? e : "")
200
- ), r = A(null);
201
- M(() => {
200
+ ), r = z(null);
201
+ A(() => {
202
202
  if (t !== void 0) return;
203
203
  const u = r.current;
204
204
  if (!u) return;
205
- const f = () => {
205
+ const d = () => {
206
206
  s(u.value);
207
207
  };
208
- return u.addEventListener("input", f), () => u.removeEventListener("input", f);
208
+ return u.addEventListener("input", d), () => u.removeEventListener("input", d);
209
209
  }, [t, r]);
210
- const c = b(() => t !== void 0 ? String(t) : o, [t, o]), i = b(
210
+ const c = m(() => t !== void 0 ? String(t) : o, [t, o]), i = m(
211
211
  (u) => {
212
212
  n == null || n(u.target.value);
213
213
  },
@@ -222,14 +222,14 @@ function It(t, e, n) {
222
222
  }
223
223
  function Nt() {
224
224
  const [t, e] = T(!1);
225
- M(() => {
225
+ A(() => {
226
226
  if (!t) return;
227
227
  const o = setTimeout(() => {
228
228
  e(!1);
229
229
  }, 2e3);
230
230
  return () => clearTimeout(o);
231
231
  }, [t]);
232
- const n = b((o) => {
232
+ const n = m((o) => {
233
233
  o && (navigator.clipboard.writeText(o), e(!0));
234
234
  }, []);
235
235
  return {
@@ -237,7 +237,7 @@ function Nt() {
237
237
  handleCopy: n
238
238
  };
239
239
  }
240
- function $({
240
+ function O({
241
241
  value: t,
242
242
  defaultValue: e,
243
243
  onChange: n,
@@ -246,44 +246,44 @@ function $({
246
246
  showClearIcon: r = !1,
247
247
  showCopyIcon: c = !1
248
248
  }) {
249
- const i = It(t, e, n), u = Nt(), f = O(() => !o && !s, [o, s]), N = b(() => {
249
+ const i = Ct(t, e, n), u = Nt(), d = J(() => !o && !s, [o, s]), C = m(() => {
250
250
  t !== void 0 ? n == null || n("") : i.inputRef.current && (i.inputRef.current.value = "", i.inputRef.current.dispatchEvent(new Event("input", { bubbles: !0 })));
251
- }, [n, t, i.inputRef]), S = b(() => {
251
+ }, [n, t, i.inputRef]), N = m(() => {
252
252
  u.handleCopy(String(i.currentValue));
253
- }, [u.handleCopy, i.currentValue]), G = r && f && i.currentValue, g = c && i.currentValue;
253
+ }, [u.handleCopy, i.currentValue]), G = r && d && i.currentValue, b = c && i.currentValue;
254
254
  return {
255
255
  // Значения и состояние
256
256
  currentValue: i.currentValue,
257
257
  inputRef: i.inputRef,
258
- isEditable: f,
258
+ isEditable: d,
259
259
  // Обработчики
260
260
  handleChange: i.handleChange,
261
- handleClear: N,
262
- handleCopy: S,
261
+ handleClear: C,
262
+ handleCopy: N,
263
263
  // Состояние копирования
264
264
  hasCopied: u.hasCopied,
265
265
  // Флаги видимости кнопок
266
266
  shouldShowClearIcon: G,
267
- shouldShowCopyIcon: g
267
+ shouldShowCopyIcon: b
268
268
  };
269
269
  }
270
- const tt = ({ onClear: t, className: e }) => /* @__PURE__ */ a(V, { icon: j, variant: "text", size: "md", onClick: t, className: e });
270
+ const tt = ({ onClear: t, className: e }) => /* @__PURE__ */ a(M, { icon: D, variant: "text", size: "md", onClick: t, className: e });
271
271
  tt.displayName = "ClearButton";
272
272
  const St = ({ value: t, className: e }) => {
273
273
  const [n, o] = T(!1);
274
- M(() => {
274
+ A(() => {
275
275
  const r = setTimeout(() => {
276
276
  o(!1);
277
277
  }, 2e3);
278
278
  return () => clearTimeout(r);
279
279
  }, [n]);
280
- const s = b(() => {
280
+ const s = m(() => {
281
281
  t && navigator.clipboard.writeText(String(t)), o(!0);
282
282
  }, [t]);
283
283
  return /* @__PURE__ */ a(
284
- V,
284
+ M,
285
285
  {
286
- icon: n ? K : P,
286
+ icon: n ? Q : Y,
287
287
  className: e,
288
288
  variant: "text",
289
289
  size: "md",
@@ -309,8 +309,8 @@ const St = ({ value: t, className: e }) => {
309
309
  }
310
310
  }
311
311
  }), et = I.forwardRef(
312
- (G, S) => {
313
- var g = G, {
312
+ (G, N) => {
313
+ var b = G, {
314
314
  startIcon: t,
315
315
  showClearIcon: e,
316
316
  showCopyIcon: n,
@@ -320,8 +320,8 @@ const St = ({ value: t, className: e }) => {
320
320
  defaultValue: c,
321
321
  onChange: i,
322
322
  readOnly: u,
323
- disabled: f
324
- } = g, N = m(g, [
323
+ disabled: d
324
+ } = b, C = y(b, [
325
325
  "startIcon",
326
326
  "showClearIcon",
327
327
  "showCopyIcon",
@@ -333,36 +333,36 @@ const St = ({ value: t, className: e }) => {
333
333
  "readOnly",
334
334
  "disabled"
335
335
  ]);
336
- const l = $({
336
+ const p = O({
337
337
  value: r,
338
338
  defaultValue: c,
339
339
  onChange: i,
340
340
  readOnly: u,
341
- disabled: f,
341
+ disabled: d,
342
342
  showClearIcon: e,
343
343
  showCopyIcon: n
344
- }), d = E(S, l.inputRef), k = !!t, R = O(() => {
345
- const v = [l.shouldShowClearIcon, l.shouldShowCopyIcon, o].filter(Boolean);
346
- return v.length === 0 ? void 0 : v.length;
347
- }, [l.shouldShowClearIcon, l.shouldShowCopyIcon, o]), w = Rt({ hasStartIcon: k, endIconsCount: R });
348
- return /* @__PURE__ */ z("div", { className: w.base(), children: [
349
- t && /* @__PURE__ */ a("span", { className: ht(w.startIconWrapper(), w.icon()), children: t }),
344
+ }), l = B(N, p.inputRef), R = !!t, S = J(() => {
345
+ const w = [p.shouldShowClearIcon, p.shouldShowCopyIcon, o].filter(Boolean);
346
+ return w.length === 0 ? void 0 : w.length;
347
+ }, [p.shouldShowClearIcon, p.shouldShowCopyIcon, o]), g = Rt({ hasStartIcon: R, endIconsCount: S });
348
+ return /* @__PURE__ */ F("div", { className: g.base(), children: [
349
+ t && /* @__PURE__ */ a("span", { className: ht(g.startIconWrapper(), g.icon()), children: t }),
350
350
  /* @__PURE__ */ a(
351
- Q,
352
- y({
353
- ref: d,
351
+ Z,
352
+ f({
353
+ ref: l,
354
354
  value: r,
355
355
  defaultValue: c,
356
- className: w.input({ className: s }),
357
- onChange: l.handleChange,
356
+ className: g.input({ className: s }),
357
+ onChange: p.handleChange,
358
358
  readOnly: u,
359
- disabled: f
360
- }, N)
359
+ disabled: d
360
+ }, C)
361
361
  ),
362
- R && /* @__PURE__ */ z("div", { className: w.endIconsWrapper(), children: [
363
- l.shouldShowClearIcon && /* @__PURE__ */ a(tt, { onClear: l.handleClear, className: w.endAction() }),
364
- l.shouldShowCopyIcon && /* @__PURE__ */ a(St, { value: String(l.currentValue), className: w.endAction() }),
365
- o && /* @__PURE__ */ a("div", { className: w.icon(), children: o })
362
+ S && /* @__PURE__ */ F("div", { className: g.endIconsWrapper(), children: [
363
+ p.shouldShowClearIcon && /* @__PURE__ */ a(tt, { onClear: p.handleClear, className: g.endAction() }),
364
+ p.shouldShowCopyIcon && /* @__PURE__ */ a(St, { value: String(p.currentValue), className: g.endAction() }),
365
+ o && /* @__PURE__ */ a("div", { className: g.icon(), children: o })
366
366
  ] })
367
367
  ] });
368
368
  }
@@ -373,9 +373,9 @@ const kt = x({
373
373
  slots: {
374
374
  action: "opacity-0 group-focus-within:opacity-100 group-hover:opacity-100"
375
375
  }
376
- }), Bt = I.forwardRef(
377
- (G, S) => {
378
- var g = G, {
376
+ }), Tt = I.forwardRef(
377
+ (G, N) => {
378
+ var b = G, {
379
379
  startContent: t = "https://",
380
380
  showClearIcon: e = !0,
381
381
  showCopyIcon: n = !0,
@@ -385,8 +385,8 @@ const kt = x({
385
385
  readOnly: c,
386
386
  disabled: i,
387
387
  error: u,
388
- className: f
389
- } = g, N = m(g, [
388
+ className: d
389
+ } = b, C = y(b, [
390
390
  "startContent",
391
391
  "showClearIcon",
392
392
  "showCopyIcon",
@@ -398,7 +398,7 @@ const kt = x({
398
398
  "error",
399
399
  "className"
400
400
  ]);
401
- const l = kt(), d = $({
401
+ const p = kt(), l = O({
402
402
  value: o,
403
403
  defaultValue: s,
404
404
  onChange: r,
@@ -406,54 +406,53 @@ const kt = x({
406
406
  disabled: i,
407
407
  showClearIcon: e,
408
408
  showCopyIcon: n
409
- }), k = E(S, d.inputRef);
410
- return /* @__PURE__ */ z(D, { className: l.base({ className: f }), children: [
411
- t != null && /* @__PURE__ */ a(Z, { children: t }),
409
+ }), R = B(N, l.inputRef);
410
+ return /* @__PURE__ */ F(j, { className: p.base({ className: d }), children: [
411
+ t != null && /* @__PURE__ */ a(L, { children: t }),
412
412
  /* @__PURE__ */ a(
413
- Y,
414
- y({
415
- ref: k,
413
+ $,
414
+ f({
415
+ ref: R,
416
416
  value: o,
417
417
  defaultValue: s,
418
- onChange: d.handleChange,
418
+ onChange: l.handleChange,
419
419
  readOnly: c,
420
420
  disabled: i,
421
421
  error: u
422
- }, N)
422
+ }, C)
423
423
  ),
424
- d.shouldShowClearIcon && /* @__PURE__ */ a(
425
- B,
424
+ l.shouldShowClearIcon && /* @__PURE__ */ a(
425
+ k,
426
426
  {
427
- icon: j,
428
- onClick: d.handleClear,
427
+ icon: D,
428
+ onClick: l.handleClear,
429
429
  type: "button",
430
- className: l.action()
430
+ className: p.action()
431
431
  }
432
432
  ),
433
- d.shouldShowCopyIcon && /* @__PURE__ */ a(
434
- B,
433
+ l.shouldShowCopyIcon && /* @__PURE__ */ a(
434
+ k,
435
435
  {
436
- icon: d.hasCopied ? K : P,
437
- onClick: d.handleCopy,
436
+ icon: l.hasCopied ? Q : Y,
437
+ onClick: l.handleCopy,
438
438
  type: "button",
439
- className: l.action()
439
+ className: p.action()
440
440
  }
441
441
  )
442
442
  ] });
443
443
  }
444
444
  );
445
- Bt.displayName = "WebInput";
446
- const Tt = x({
447
- base: "group",
445
+ Tt.displayName = "WebInput";
446
+ const Bt = x({
447
+ base: "group cursor-pointer",
448
448
  slots: {
449
- fileButton: "h-full rounded-r-none border-0 border-r",
450
449
  action: "opacity-0 group-focus-within:opacity-100 group-hover:opacity-100",
451
450
  fileDisplay: "min-w-0 flex-1 truncate bg-transparent px-3 py-2.5 italic text-primary-fg lg:py-2",
452
451
  placeholder: "text-muted"
453
452
  }
454
- }), Et = I.forwardRef(
455
- (G, S) => {
456
- var g = G, {
453
+ }), Gt = I.forwardRef(
454
+ (G, N) => {
455
+ var b = G, {
457
456
  value: t,
458
457
  defaultValue: e,
459
458
  showClearIcon: n = !0,
@@ -463,8 +462,8 @@ const Tt = x({
463
462
  className: c,
464
463
  placeholder: i = "File not selected",
465
464
  chooseButtonText: u = "Choose file",
466
- accept: f
467
- } = g, N = m(g, [
465
+ accept: d
466
+ } = b, C = y(b, [
468
467
  "value",
469
468
  "defaultValue",
470
469
  "showClearIcon",
@@ -476,95 +475,77 @@ const Tt = x({
476
475
  "chooseButtonText",
477
476
  "accept"
478
477
  ]);
479
- const l = Tt(), d = A(null), [k, R] = T(e || null), w = E(S, d), v = t !== void 0, h = v ? t : k;
480
- M(() => {
481
- !v && e !== void 0 && R(e);
482
- }, [e, v]);
483
- const nt = b(
484
- (p) => {
485
- var _;
486
- const C = ((_ = p.target.files) == null ? void 0 : _[0]) || null;
487
- v || R(C), o == null || o(C);
478
+ const p = Bt(), l = z(null), [R, S] = T(e || null), g = B(N, l), w = t !== void 0, v = w ? t : R;
479
+ A(() => {
480
+ !w && e !== void 0 && S(e);
481
+ }, [e, w]);
482
+ const nt = m(
483
+ (h) => {
484
+ var X;
485
+ const H = ((X = h.target.files) == null ? void 0 : X[0]) || null;
486
+ w || S(H), o == null || o(H);
488
487
  },
489
- [o, v]
490
- ), ot = b(() => {
491
- d.current && (d.current.value = ""), v || R(null), o == null || o(null);
492
- }, [o, v]), rt = b(() => {
493
- var p;
494
- (p = d.current) == null || p.click();
495
- }, []), st = b(() => {
496
- if (h) {
497
- if (h instanceof File) {
498
- const p = URL.createObjectURL(h), C = document.createElement("a");
499
- C.href = p, C.download = h.name, document.body.appendChild(C), C.click(), document.body.removeChild(C), URL.revokeObjectURL(p);
500
- } else if (h.url) {
501
- const p = document.createElement("a");
502
- p.href = h.url, p.download = h.name, p.target = "_blank", document.body.appendChild(p), p.click(), document.body.removeChild(p);
503
- }
504
- }
505
- }, [h]), at = n && h && !s, it = h && (h instanceof File || !(h instanceof File) && h.url), U = ((p) => p ? (p instanceof File, p.name) : null)(h);
506
- return /* @__PURE__ */ z(D, { className: l.base({ className: c }), children: [
507
- /* @__PURE__ */ a(
508
- ft,
509
- {
510
- variant: "outline",
511
- size: "md",
512
- onClick: rt,
513
- disabled: s,
514
- type: "button",
515
- className: l.fileButton(),
516
- children: u
517
- }
518
- ),
519
- /* @__PURE__ */ a("div", { className: l.fileDisplay(), children: U ? /* @__PURE__ */ a("span", { children: U }) : /* @__PURE__ */ a("span", { className: l.placeholder(), children: i }) }),
520
- at && /* @__PURE__ */ a(B, { icon: j, onClick: ot, type: "button", className: l.action() }),
488
+ [o, w]
489
+ ), ot = m(
490
+ (h) => {
491
+ h.stopPropagation(), l.current && (l.current.value = ""), w || S(null), o == null || o(null);
492
+ },
493
+ [o, w]
494
+ ), rt = m(() => {
495
+ var h;
496
+ v || (h = l.current) == null || h.click();
497
+ }, [v]), st = m(() => ft(v), [v]), at = n && v && !s, it = v && (v instanceof File || !(v instanceof File) && v.url), _ = ((h) => h ? (h instanceof File, h.name) : null)(v);
498
+ return /* @__PURE__ */ F(j, { className: p.base({ className: c }), onClick: rt, children: [
499
+ /* @__PURE__ */ a(L, { children: u }),
500
+ /* @__PURE__ */ a("div", { className: p.fileDisplay(), children: _ ? /* @__PURE__ */ a("span", { children: _ }) : /* @__PURE__ */ a("span", { className: p.placeholder(), children: i }) }),
501
+ at && /* @__PURE__ */ a(k, { icon: D, onClick: ot, type: "button", className: p.action() }),
521
502
  it && /* @__PURE__ */ a(
522
- B,
503
+ k,
523
504
  {
524
505
  icon: yt,
525
506
  onClick: st,
526
507
  type: "button",
527
- className: l.action()
508
+ className: p.action()
528
509
  }
529
510
  ),
530
511
  /* @__PURE__ */ a(
531
512
  "input",
532
- y({
533
- ref: w,
513
+ f({
514
+ ref: g,
534
515
  type: "file",
535
516
  onChange: nt,
536
517
  disabled: s,
537
- accept: f,
518
+ accept: d,
538
519
  className: "sr-only",
539
520
  "aria-invalid": !!r
540
- }, N)
521
+ }, C)
541
522
  )
542
523
  ] });
543
524
  }
544
525
  );
545
- Et.displayName = "FileInput";
546
- const Gt = x({
526
+ Gt.displayName = "FileInput";
527
+ const Et = x({
547
528
  base: "aspect-auto px-1.5"
548
529
  }), Ft = (o) => {
549
- var s = o, { icon: t, className: e } = s, n = m(s, ["icon", "className"]);
550
- const r = Gt({ className: e });
551
- return /* @__PURE__ */ a(V, y({ icon: t, className: r, variant: "text", size: "md" }, n));
552
- }, zt = ({ type: t, onClick: e }) => /* @__PURE__ */ a(Ft, { icon: t === "password" ? bt : mt, onClick: e }), Ot = (e) => {
553
- var t = m(e, []);
554
- const [n, o] = T("password"), s = b(() => {
530
+ var s = o, { icon: t, className: e } = s, n = y(s, ["icon", "className"]);
531
+ const r = Et({ className: e });
532
+ return /* @__PURE__ */ a(M, f({ icon: t, className: r, variant: "text", size: "md" }, n));
533
+ }, zt = ({ type: t, onClick: e }) => /* @__PURE__ */ a(Ft, { icon: t === "password" ? bt : mt, onClick: e }), Ut = (e) => {
534
+ var t = y(e, []);
535
+ const [n, o] = T("password"), s = m(() => {
555
536
  o((c) => c === "password" ? "text" : "password");
556
537
  }, []), r = /* @__PURE__ */ a(zt, { type: n, onClick: s });
557
- return /* @__PURE__ */ a(et, W(y({}, t), { type: n, endIcon: r }));
538
+ return /* @__PURE__ */ a(et, W(f({}, t), { type: n, endIcon: r }));
558
539
  };
559
540
  export {
560
- Et as FileInput,
561
- Q as Input,
562
- D as InputGroup,
563
- B as InputGroupButton,
564
- Y as InputGroupInput,
565
- Z as InputGroupText,
566
- Ot as SecretInput,
541
+ Gt as FileInput,
542
+ Z as Input,
543
+ j as InputGroup,
544
+ k as InputGroupButton,
545
+ $ as InputGroupInput,
546
+ L as InputGroupText,
547
+ Ut as SecretInput,
567
548
  et as TextInput,
568
- Bt as WebInput
549
+ Tt as WebInput
569
550
  };
570
551
  //# sourceMappingURL=input.js.map