@konstructio/ui 0.1.2-alpha.5 → 0.1.2-alpha.51

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 (203) hide show
  1. package/dist/{Combination-VYaRRJBZ.js → Combination-BtmnusWq.js} +141 -138
  2. package/dist/DatePicker.css +1 -1
  3. package/dist/Modal-CjC-CIJ8.js +99 -0
  4. package/dist/assets/icons/index.js +7 -0
  5. package/dist/chevron-down-DgT-uSF9.js +5 -0
  6. package/dist/chevron-right-DYvXLeql.js +7 -0
  7. package/dist/chevron-up-DEfvgPCw.js +54 -0
  8. package/dist/chevron-up-DrQr2Fwd.js +5 -0
  9. package/dist/components/Alert/Alert.js +2 -2
  10. package/dist/components/AlertDialog/AlertDialog.js +81 -53
  11. package/dist/components/AlertDialog/components/AlertDialogTrigger.js +3 -2
  12. package/dist/components/AlertDialog/components/index.js +1 -1
  13. package/dist/components/Badge/Badge.js +41 -44
  14. package/dist/components/Badge/Badge.variants.js +52 -13
  15. package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
  16. package/dist/components/Breadcrumb/Breadcrumb.variants.js +3 -3
  17. package/dist/components/Breadcrumb/components/Item/Item.js +22 -22
  18. package/dist/components/Breadcrumb/components/Item/Item.variants.js +25 -14
  19. package/dist/components/Breadcrumb/hooks/useBreadcrumb.js +1 -1
  20. package/dist/components/Button/Button.js +1 -1
  21. package/dist/components/Button/Button.variants.js +108 -98
  22. package/dist/components/Card/Card.variants.js +7 -12
  23. package/dist/components/Checkbox/Checkbox.js +108 -105
  24. package/dist/components/Checkbox/Checkbox.variants.js +34 -7
  25. package/dist/components/Command/Command.js +2 -2
  26. package/dist/components/Command/components/Command.js +1 -1
  27. package/dist/components/Command/components/CommandEmpty.js +1 -1
  28. package/dist/components/Command/components/CommandGroup.js +1 -1
  29. package/dist/components/Command/components/CommandInput.js +2 -2
  30. package/dist/components/Command/components/CommandItem.js +1 -1
  31. package/dist/components/Command/components/CommandList.js +1 -1
  32. package/dist/components/Command/components/CommandSeparator.js +1 -1
  33. package/dist/components/Command/components/DialogContent.js +2 -2
  34. package/dist/components/Command/components/DialogOverlay.js +1 -1
  35. package/dist/components/Counter/Counter.js +210 -0
  36. package/dist/components/Counter/Counter.variants.js +70 -0
  37. package/dist/components/Datepicker/DatePicker.js +1587 -1353
  38. package/dist/components/Divider/Divider.variants.js +1 -1
  39. package/dist/components/DropdownButton/DropdownButton.js +1 -1
  40. package/dist/components/Filter/Filter.js +1 -1
  41. package/dist/components/Filter/Filter.variants.js +8 -7
  42. package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +71 -45
  43. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +2 -2
  44. package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +76 -43
  45. package/dist/components/Filter/components/ResetButton/ResetButton.js +15 -12
  46. package/dist/components/Filter/events/index.js +3 -3
  47. package/dist/components/ImageUpload/ImageUpload.js +221 -0
  48. package/dist/components/ImageUpload/ImageUpload.variants.js +109 -0
  49. package/dist/components/Input/Input.js +185 -118
  50. package/dist/components/Input/Input.variants.js +24 -19
  51. package/dist/components/Loading/Loading.js +1 -7
  52. package/dist/components/Modal/Modal.js +2 -2
  53. package/dist/components/Modal/components/Body/Body.js +1 -1
  54. package/dist/components/Modal/components/Footer/Footer.js +1 -1
  55. package/dist/components/Modal/components/Header/Header.js +1 -1
  56. package/dist/components/Modal/components/Wrapper/Wrapper.js +4 -4
  57. package/dist/components/Modal/components/index.js +1 -1
  58. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.js +34 -0
  59. package/dist/components/MultiSelectDropdown/MultiSelectDropdown.variants.js +30 -0
  60. package/dist/components/MultiSelectDropdown/components/Item/Item.js +30 -0
  61. package/dist/components/MultiSelectDropdown/components/Item/Item.variants.js +38 -0
  62. package/dist/components/MultiSelectDropdown/components/List/List.js +30 -0
  63. package/dist/components/MultiSelectDropdown/components/List/List.variants.js +25 -0
  64. package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.js +119 -0
  65. package/dist/components/MultiSelectDropdown/components/index.js +8 -0
  66. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.context.js +21 -0
  67. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.hook.js +13 -0
  68. package/dist/components/MultiSelectDropdown/contexts/MultiSelectDropdown.provider.js +138 -0
  69. package/dist/components/MultiSelectDropdown/contexts/index.js +6 -0
  70. package/dist/components/MultiSelectDropdown/hooks/useMultiSelectDropdown.js +32 -0
  71. package/dist/components/PhoneNumberInput/PhoneNumberInput.js +8 -0
  72. package/dist/components/PhoneNumberInput/PhoneNumberInput.variants.js +46 -0
  73. package/dist/components/PhoneNumberInput/components/FlagContent/FlagContent.js +36 -0
  74. package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +690 -0
  75. package/dist/components/PhoneNumberInput/components/FlagSelectorWrapper/FlagSelectorWrapper.js +60 -0
  76. package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +45 -0
  77. package/dist/components/PhoneNumberInput/components/Wrapper.js +651 -0
  78. package/dist/components/PhoneNumberInput/components/index.js +6 -0
  79. package/dist/components/PhoneNumberInput/contexts/index.js +8 -0
  80. package/dist/components/PhoneNumberInput/contexts/phone-number.context.js +28 -0
  81. package/dist/components/PhoneNumberInput/contexts/phone-number.hook.js +13 -0
  82. package/dist/components/PhoneNumberInput/contexts/phone-number.provider.js +6144 -0
  83. package/dist/components/PhoneNumberInput/utils/index.js +11 -0
  84. package/dist/components/PieChart/PieChart.js +463 -482
  85. package/dist/components/Radio/Radio.js +47 -44
  86. package/dist/components/Radio/Radio.variants.js +12 -8
  87. package/dist/components/RadioCard/RadioCard.variants.js +1 -6
  88. package/dist/components/RadioGroup/RadioGroup.js +10 -10
  89. package/dist/components/Range/Range.js +1 -1
  90. package/dist/components/Select/Select.js +48 -0
  91. package/dist/components/{Dropdown/Dropdown.variants.js → Select/Select.variants.js} +17 -11
  92. package/dist/components/Select/components/List/List.js +172 -0
  93. package/dist/components/{Dropdown → Select}/components/List/List.variants.js +11 -8
  94. package/dist/components/Select/components/ListItem/ListItem.js +117 -0
  95. package/dist/components/{Dropdown → Select}/components/ListItem/ListItem.variants.js +5 -4
  96. package/dist/components/Select/components/Wrapper.js +226 -0
  97. package/dist/components/Select/constants/index.js +4 -0
  98. package/dist/components/Select/constants/pagination.js +4 -0
  99. package/dist/components/Select/contexts/index.js +6 -0
  100. package/dist/components/Select/contexts/select.context.js +36 -0
  101. package/dist/components/Select/contexts/select.hook.js +11 -0
  102. package/dist/components/Select/contexts/select.provider.js +58 -0
  103. package/dist/components/Select/hooks/useNavigationList.js +50 -0
  104. package/dist/components/Select/hooks/useSelect.js +103 -0
  105. package/dist/components/Sidebar/Sidebar.variants.js +2 -2
  106. package/dist/components/Slider/Slider.js +1 -1
  107. package/dist/components/Switch/Switch.js +156 -129
  108. package/dist/components/Switch/Switch.variants.js +19 -10
  109. package/dist/components/Tabs/Tabs.js +1 -1
  110. package/dist/components/Tabs/Tabs.variants.js +4 -3
  111. package/dist/components/Tabs/components/Content.js +1 -1
  112. package/dist/components/Tabs/components/List.js +1 -1
  113. package/dist/components/Tabs/components/Trigger.js +1 -1
  114. package/dist/components/Tag/Tag.js +1 -1
  115. package/dist/components/Tag/Tag.variants.js +1 -0
  116. package/dist/components/TagSelect/components/Wrapper/Wrapper.js +49 -98
  117. package/dist/components/TimePicker/TimePicker.js +1 -1
  118. package/dist/components/TimePicker/TimePicker.variants.js +26 -14
  119. package/dist/components/TimePicker/components/MeridianList/MeridianList.js +30 -20
  120. package/dist/components/TimePicker/components/Wrapper/Wrapper.js +57 -35
  121. package/dist/components/TimePicker/components/WrapperList/WrapperList.js +53 -45
  122. package/dist/components/Toast/Toast.js +283 -256
  123. package/dist/components/Toast/Toast.variants.js +37 -24
  124. package/dist/components/Tooltip/Tooltip.js +15 -14
  125. package/dist/components/Tooltip/Tooltip.variants.js +5 -4
  126. package/dist/components/Typography/Typography.js +23 -25
  127. package/dist/components/Typography/Typography.variants.js +55 -52
  128. package/dist/components/VirtualizedTable/VirtualizedTable.js +97 -71
  129. package/dist/components/VirtualizedTable/components/Actions/Actions.js +95 -33
  130. package/dist/components/VirtualizedTable/components/Body/Body.js +73 -21
  131. package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +94 -91
  132. package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +20 -20
  133. package/dist/components/VirtualizedTable/components/Filter/Filter.js +61 -44
  134. package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +33 -21
  135. package/dist/components/VirtualizedTable/components/Header/Header.js +61 -41
  136. package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +43 -22
  137. package/dist/components/VirtualizedTable/components/Skeleton/Skeleton.js +106 -0
  138. package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +22 -1858
  139. package/dist/components/VirtualizedTable/components/WrapperBody/WrapperBody.js +27 -0
  140. package/dist/components/VirtualizedTable/components/index.js +8 -6
  141. package/dist/components/VirtualizedTable/contexts/table.context.js +1 -0
  142. package/dist/components/VirtualizedTable/contexts/table.provider.js +68 -761
  143. package/dist/components/index.js +94 -86
  144. package/dist/contexts/theme.provider.js +0 -1
  145. package/dist/{createLucideIcon-D2CN7Ma9.js → createLucideIcon-D4r5Phnh.js} +0 -24
  146. package/dist/ellipsis-vertical-BVPtjl5f.js +9 -0
  147. package/dist/{index-C1g_chDT.js → index-AV6ZtGhy.js} +2 -2
  148. package/dist/index-BG8O18ZY.js +93 -0
  149. package/dist/index-BKjcReYh.js +55 -0
  150. package/dist/{index-N2OStZoU.js → index-BOE_3f_Z.js} +4 -25
  151. package/dist/{index-Cd2vhaop.js → index-BlSRBdPy.js} +5 -6
  152. package/dist/index-BmVmDQGH.js +662 -0
  153. package/dist/index-BvoZGpli.js +60 -0
  154. package/dist/index-Byr10W8m.js +1873 -0
  155. package/dist/{index-Dx2grAuN.js → index-CSWGJT-v.js} +0 -20
  156. package/dist/index-CeZcoQDw.js +479 -0
  157. package/dist/index-D6KzX_ef.js +135 -0
  158. package/dist/{index-B7t8D14s.js → index-D9SSJ6om.js} +4 -4
  159. package/dist/index-DKfEnhKr.js +200 -0
  160. package/dist/index-DLcqcWxM.js +29 -0
  161. package/dist/{index-ti1b9kqV.js → index-DMb4KD0b.js} +4 -4
  162. package/dist/{index-BAEWsOG1.js → index-DtEcCIrM.js} +1 -1
  163. package/dist/{index-bwWKd82e.js → index-Dy59FQl5.js} +1 -1
  164. package/dist/{index-C84F4YyO.js → index-gSPwC-1I.js} +10 -11
  165. package/dist/{index-Bnb0ezr3.js → index-vcSp8YRZ.js} +11 -12
  166. package/dist/index.d.ts +2142 -99
  167. package/dist/index.js +116 -106
  168. package/dist/libphonenumber-FTwQ9nyV.js +11549 -0
  169. package/dist/loader-juvMSJ9L.js +5 -0
  170. package/dist/package.json +43 -33
  171. package/dist/styles.css +1 -1
  172. package/dist/ui/civo-theme.css +194 -168
  173. package/dist/ui/theme.css +27 -0
  174. package/dist/{useBreadcrumb-B8DnuqkR.js → useBreadcrumb-BAHbGQ_O.js} +0 -10
  175. package/dist/utils/index.js +534 -501
  176. package/dist/x-BXShoIAM.js +8 -0
  177. package/dist/{x-4F_5p77m.js → x-Eoa9FJjA.js} +1 -1
  178. package/package.json +43 -33
  179. package/dist/Modal-D-NOEWMX.js +0 -98
  180. package/dist/chevron-down-MZvQoT2F.js +0 -11
  181. package/dist/chevron-right-VYBOBhRt.js +0 -19
  182. package/dist/components/Dropdown/Dropdown.js +0 -42
  183. package/dist/components/Dropdown/components/List/List.js +0 -79
  184. package/dist/components/Dropdown/components/ListItem/ListItem.js +0 -67
  185. package/dist/components/Dropdown/components/Wrapper.js +0 -205
  186. package/dist/components/Dropdown/contexts/dropdown.context.js +0 -19
  187. package/dist/components/Dropdown/contexts/dropdown.hook.js +0 -13
  188. package/dist/components/Dropdown/contexts/dropdown.provider.js +0 -30
  189. package/dist/components/Dropdown/contexts/index.js +0 -6
  190. package/dist/components/Dropdown/hooks/useDropdown.js +0 -58
  191. package/dist/components/Dropdown/hooks/useNavigationList.js +0 -62
  192. package/dist/components/NumberInput/NumberInput.js +0 -179
  193. package/dist/components/NumberInput/NumberInput.variants.js +0 -50
  194. package/dist/components/TimePicker/components/WrapperList/WrapperList.variants.js +0 -16
  195. package/dist/index-BITvcJAz.js +0 -423
  196. package/dist/index-BfXxHr_2.js +0 -125
  197. package/dist/index-Cvx4lqTq.js +0 -47
  198. package/dist/index-DBbEcSUG.js +0 -31
  199. package/dist/index-DQH6odE9.js +0 -82
  200. package/dist/index-DzIBBMjs.js +0 -436
  201. package/dist/index-os7vysFS.js +0 -131
  202. /package/dist/components/{Dropdown → Select}/components/EmptyList.js +0 -0
  203. /package/dist/components/{Dropdown → Select}/components/index.js +0 -0
@@ -1,207 +1,274 @@
1
- import { jsxs as m, jsx as s } from "react/jsx-runtime";
2
- import l, { forwardRef as x, useId as _, useRef as I, useState as W } from "react";
3
- import { cn as u } from "../../utils/index.js";
1
+ import { jsxs as h, jsx as s } from "react/jsx-runtime";
2
+ import p, { forwardRef as y, useId as I, useRef as L, useState as W } from "react";
3
+ import { cn as i } from "../../utils/index.js";
4
4
  import { inputVariants as $ } from "./Input.variants.js";
5
- import { SearchIcon as L } from "../../assets/icons/components/Search.js";
6
- import { Warning as T } from "../../assets/icons/components/Warning.js";
7
- import { P as i } from "../../index-N2OStZoU.js";
8
- function h() {
9
- return h = Object.assign || function(t) {
10
- for (var n = 1; n < arguments.length; n++) {
11
- var a = arguments[n];
12
- for (var e in a)
13
- Object.prototype.hasOwnProperty.call(a, e) && (t[e] = a[e]);
5
+ import { Typography as u } from "../Typography/Typography.js";
6
+ import { SearchIcon as T } from "../../assets/icons/components/Search.js";
7
+ import { Warning as S } from "../../assets/icons/components/Warning.js";
8
+ import { P as l } from "../../index-BOE_3f_Z.js";
9
+ function g() {
10
+ return g = Object.assign || function(t) {
11
+ for (var r = 1; r < arguments.length; r++) {
12
+ var n = arguments[r];
13
+ for (var e in n)
14
+ Object.prototype.hasOwnProperty.call(n, e) && (t[e] = n[e]);
14
15
  }
15
16
  return t;
16
- }, h.apply(this, arguments);
17
+ }, g.apply(this, arguments);
17
18
  }
18
- function S(t, n) {
19
+ function C(t, r) {
19
20
  if (t == null) return {};
20
- var a = C(t, n), e, r;
21
+ var n = M(t, r), e, o;
21
22
  if (Object.getOwnPropertySymbols) {
22
- var o = Object.getOwnPropertySymbols(t);
23
- for (r = 0; r < o.length; r++)
24
- e = o[r], !(n.indexOf(e) >= 0) && Object.prototype.propertyIsEnumerable.call(t, e) && (a[e] = t[e]);
23
+ var a = Object.getOwnPropertySymbols(t);
24
+ for (o = 0; o < a.length; o++)
25
+ e = a[o], !(r.indexOf(e) >= 0) && Object.prototype.propertyIsEnumerable.call(t, e) && (n[e] = t[e]);
25
26
  }
26
- return a;
27
+ return n;
27
28
  }
28
- function C(t, n) {
29
+ function M(t, r) {
29
30
  if (t == null) return {};
30
- var a = {}, e = Object.keys(t), r, o;
31
- for (o = 0; o < e.length; o++)
32
- r = e[o], !(n.indexOf(r) >= 0) && (a[r] = t[r]);
33
- return a;
31
+ var n = {}, e = Object.keys(t), o, a;
32
+ for (a = 0; a < e.length; a++)
33
+ o = e[a], !(r.indexOf(o) >= 0) && (n[o] = t[o]);
34
+ return n;
34
35
  }
35
- var v = x(function(t, n) {
36
- var a = t.color, e = a === void 0 ? "currentColor" : a, r = t.size, o = r === void 0 ? 24 : r, c = S(t, ["color", "size"]);
37
- return /* @__PURE__ */ l.createElement("svg", h({
38
- ref: n,
36
+ var x = y(function(t, r) {
37
+ var n = t.color, e = n === void 0 ? "currentColor" : n, o = t.size, a = o === void 0 ? 24 : o, c = C(t, ["color", "size"]);
38
+ return /* @__PURE__ */ p.createElement("svg", g({
39
+ ref: r,
39
40
  xmlns: "http://www.w3.org/2000/svg",
40
- width: o,
41
- height: o,
41
+ width: a,
42
+ height: a,
42
43
  viewBox: "0 0 24 24",
43
44
  fill: "none",
44
45
  stroke: e,
45
46
  strokeWidth: "2",
46
47
  strokeLinecap: "round",
47
48
  strokeLinejoin: "round"
48
- }, c), /* @__PURE__ */ l.createElement("path", {
49
+ }, c), /* @__PURE__ */ p.createElement("path", {
49
50
  d: "M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"
50
- }), /* @__PURE__ */ l.createElement("line", {
51
+ }), /* @__PURE__ */ p.createElement("line", {
51
52
  x1: "1",
52
53
  y1: "1",
53
54
  x2: "23",
54
55
  y2: "23"
55
56
  }));
56
57
  });
57
- v.propTypes = {
58
- color: i.string,
59
- size: i.oneOfType([i.string, i.number])
58
+ x.propTypes = {
59
+ color: l.string,
60
+ size: l.oneOfType([l.string, l.number])
60
61
  };
61
- v.displayName = "EyeOff";
62
- function g() {
63
- return g = Object.assign || function(t) {
64
- for (var n = 1; n < arguments.length; n++) {
65
- var a = arguments[n];
66
- for (var e in a)
67
- Object.prototype.hasOwnProperty.call(a, e) && (t[e] = a[e]);
62
+ x.displayName = "EyeOff";
63
+ function v() {
64
+ return v = Object.assign || function(t) {
65
+ for (var r = 1; r < arguments.length; r++) {
66
+ var n = arguments[r];
67
+ for (var e in n)
68
+ Object.prototype.hasOwnProperty.call(n, e) && (t[e] = n[e]);
68
69
  }
69
70
  return t;
70
- }, g.apply(this, arguments);
71
+ }, v.apply(this, arguments);
71
72
  }
72
- function M(t, n) {
73
+ function R(t, r) {
73
74
  if (t == null) return {};
74
- var a = R(t, n), e, r;
75
+ var n = A(t, r), e, o;
75
76
  if (Object.getOwnPropertySymbols) {
76
- var o = Object.getOwnPropertySymbols(t);
77
- for (r = 0; r < o.length; r++)
78
- e = o[r], !(n.indexOf(e) >= 0) && Object.prototype.propertyIsEnumerable.call(t, e) && (a[e] = t[e]);
77
+ var a = Object.getOwnPropertySymbols(t);
78
+ for (o = 0; o < a.length; o++)
79
+ e = a[o], !(r.indexOf(e) >= 0) && Object.prototype.propertyIsEnumerable.call(t, e) && (n[e] = t[e]);
79
80
  }
80
- return a;
81
+ return n;
81
82
  }
82
- function R(t, n) {
83
+ function A(t, r) {
83
84
  if (t == null) return {};
84
- var a = {}, e = Object.keys(t), r, o;
85
- for (o = 0; o < e.length; o++)
86
- r = e[o], !(n.indexOf(r) >= 0) && (a[r] = t[r]);
87
- return a;
85
+ var n = {}, e = Object.keys(t), o, a;
86
+ for (a = 0; a < e.length; a++)
87
+ o = e[a], !(r.indexOf(o) >= 0) && (n[o] = t[o]);
88
+ return n;
88
89
  }
89
- var y = x(function(t, n) {
90
- var a = t.color, e = a === void 0 ? "currentColor" : a, r = t.size, o = r === void 0 ? 24 : r, c = M(t, ["color", "size"]);
91
- return /* @__PURE__ */ l.createElement("svg", g({
92
- ref: n,
90
+ var w = y(function(t, r) {
91
+ var n = t.color, e = n === void 0 ? "currentColor" : n, o = t.size, a = o === void 0 ? 24 : o, c = R(t, ["color", "size"]);
92
+ return /* @__PURE__ */ p.createElement("svg", v({
93
+ ref: r,
93
94
  xmlns: "http://www.w3.org/2000/svg",
94
- width: o,
95
- height: o,
95
+ width: a,
96
+ height: a,
96
97
  viewBox: "0 0 24 24",
97
98
  fill: "none",
98
99
  stroke: e,
99
100
  strokeWidth: "2",
100
101
  strokeLinecap: "round",
101
102
  strokeLinejoin: "round"
102
- }, c), /* @__PURE__ */ l.createElement("path", {
103
+ }, c), /* @__PURE__ */ p.createElement("path", {
103
104
  d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"
104
- }), /* @__PURE__ */ l.createElement("circle", {
105
+ }), /* @__PURE__ */ p.createElement("circle", {
105
106
  cx: "12",
106
107
  cy: "12",
107
108
  r: "3"
108
109
  }));
109
110
  });
110
- y.propTypes = {
111
- color: i.string,
112
- size: i.oneOfType([i.string, i.number])
111
+ w.propTypes = {
112
+ color: l.string,
113
+ size: l.oneOfType([l.string, l.number])
113
114
  };
114
- y.displayName = "Eye";
115
- const A = x(
115
+ w.displayName = "Eye";
116
+ const B = y(
116
117
  ({
117
118
  className: t,
118
- error: n,
119
- isRequired: a = !1,
120
- isSearch: e = !1,
121
- label: r,
122
- labelClassName: o,
123
- name: c,
124
- theme: O,
119
+ error: r,
120
+ helperText: n,
121
+ helperTextClassName: e,
122
+ isRequired: o = !1,
123
+ isSearch: a = !1,
124
+ label: c,
125
+ labelClassName: O,
126
+ name: j,
127
+ theme: k,
125
128
  type: f = "text",
126
- helperText: w,
127
- helperTextClassName: j,
128
- ...k
129
- }, N) => {
130
- const b = _(), P = I(f === "password"), [d, E] = W(() => f !== "password"), p = typeof n == "string" && n.length >= 0, z = d ? y : v;
131
- return /* @__PURE__ */ m("div", { className: "flex flex-col gap-2 w-full relative", "data-theme": O, children: [
132
- r ? /* @__PURE__ */ m(
133
- "label",
129
+ ...N
130
+ }, P) => {
131
+ const b = I(), E = L(f === "password"), [d, z] = W(() => f !== "password"), m = typeof r == "string" && r.length >= 0, _ = d ? w : x;
132
+ return /* @__PURE__ */ h("div", { className: "flex flex-col gap-2 w-full relative", "data-theme": k, children: [
133
+ c ? /* @__PURE__ */ h(
134
+ u,
134
135
  {
136
+ component: "label",
137
+ variant: "labelLarge",
135
138
  htmlFor: b,
136
- className: u(
137
- "cursor-pointer text-slate-500 flex gap-1 text-sm font-medium dark:text-slate-50 kubefirst-dark:text-slate-50",
138
- o
139
+ className: i(
140
+ "cursor-pointer",
141
+ "flex",
142
+ "gap-1",
143
+ "text-sm",
144
+ "font-medium",
145
+ O
139
146
  ),
140
147
  children: [
141
- r,
148
+ c,
142
149
  " ",
143
- a && /* @__PURE__ */ s("span", { className: "text-red-600 text-xs mt-0.5", children: "*" })
150
+ o && /* @__PURE__ */ s(
151
+ u,
152
+ {
153
+ component: "span",
154
+ className: i(
155
+ "text-red-600",
156
+ "dark:text-red-500",
157
+ "text-xs",
158
+ "mt-0.5"
159
+ ),
160
+ children: "*"
161
+ }
162
+ )
144
163
  ]
145
164
  }
146
165
  ) : null,
147
- /* @__PURE__ */ m("div", { className: "relative", children: [
148
- e ? /* @__PURE__ */ s(
166
+ /* @__PURE__ */ h("div", { className: "relative", children: [
167
+ a ? /* @__PURE__ */ s(
149
168
  "i",
150
169
  {
151
- className: u(
152
- "absolute left-2.5 top-1/2 -translate-y-[50%] text-slate-400",
170
+ className: i(
171
+ "absolute",
172
+ "left-2.5",
173
+ "top-1/2",
174
+ "-translate-y-[50%]",
175
+ "text-slate-400",
176
+ "dark:text-metal-400",
153
177
  {
154
- "text-red-700": p
178
+ "text-red-700": m
155
179
  }
156
180
  ),
157
- children: /* @__PURE__ */ s(L, { className: "w-5 h-5" })
181
+ children: /* @__PURE__ */ s(T, { className: "w-5 h-5" })
158
182
  }
159
183
  ) : null,
160
184
  /* @__PURE__ */ s(
161
185
  "input",
162
186
  {
163
- id: r ? b : void 0,
164
- ref: N,
165
- name: c,
166
- type: d ? P.current ? "text" : f : "password",
167
- "data-error": p,
168
- className: u(
187
+ id: c ? b : void 0,
188
+ ref: P,
189
+ name: j,
190
+ type: d ? E.current ? "text" : f : "password",
191
+ "data-error": m,
192
+ className: i(
169
193
  $({
170
194
  className: t,
171
- variant: p ? "error" : "default"
195
+ variant: m ? "error" : "default"
172
196
  }),
173
197
  {
174
- "pr-10": f === "password" || p,
175
- "pl-8": e
198
+ "pr-10": f === "password" || m,
199
+ "pl-8": a
176
200
  }
177
201
  ),
178
- ...k
202
+ ...N
179
203
  }
180
204
  ),
181
- p ? /* @__PURE__ */ s("i", { className: "absolute right-3 text-red-700 dark:text-red-500 top-1/2 -translate-y-[50%]", children: /* @__PURE__ */ s(T, { className: "w-5 h-5" }) }) : null,
182
- f === "password" && !n ? /* @__PURE__ */ s("i", { className: "absolute right-3 text-slate-400 top-1/2 -translate-y-[50%]", children: /* @__PURE__ */ s(
183
- z,
205
+ m ? /* @__PURE__ */ s(
206
+ "i",
184
207
  {
185
- className: "w-5 h-5 cursor-pointer",
186
- onClick: () => E(!d)
208
+ className: i(
209
+ "-translate-y-[50%]",
210
+ "absolute",
211
+ "right-3",
212
+ "text-red-700",
213
+ "top-1/2",
214
+ "dark:text-red-500"
215
+ ),
216
+ children: /* @__PURE__ */ s(S, { className: "w-5 h-5" })
187
217
  }
188
- ) }) : null
218
+ ) : null,
219
+ f === "password" && !r ? /* @__PURE__ */ s(
220
+ "i",
221
+ {
222
+ className: i(
223
+ "-translate-y-[50%]",
224
+ "absolute",
225
+ "right-3",
226
+ "text-slate-400",
227
+ "top-1/2"
228
+ ),
229
+ children: /* @__PURE__ */ s(
230
+ _,
231
+ {
232
+ className: "w-5 h-5 cursor-pointer",
233
+ onClick: () => z(!d)
234
+ }
235
+ )
236
+ }
237
+ ) : null
189
238
  ] }),
190
- n ? /* @__PURE__ */ s("span", { className: "text-xs text-red-700 dark:text-red-500", children: n }) : null,
191
- !n && w ? /* @__PURE__ */ s(
192
- "span",
239
+ r ? /* @__PURE__ */ s(
240
+ u,
241
+ {
242
+ component: "span",
243
+ className: i(
244
+ "text-xs",
245
+ "tracking-normal",
246
+ "text-red-700",
247
+ "dark:text-red-400"
248
+ ),
249
+ children: r
250
+ }
251
+ ) : null,
252
+ !r && n ? /* @__PURE__ */ s(
253
+ u,
193
254
  {
194
- className: u(
195
- "text-xs text-slate-600 dark:text-slate-200 kubefirst-dark:text-slate-200",
196
- j
255
+ component: "span",
256
+ variant: "body1",
257
+ className: i(
258
+ "text-xs",
259
+ "text-slate-600",
260
+ "dark:text-slate-200",
261
+ "select-none",
262
+ "tracking-normal",
263
+ e
197
264
  ),
198
- children: w
265
+ children: n
199
266
  }
200
267
  ) : null
201
268
  ] });
202
269
  }
203
270
  );
204
- A.displayName = "KonstructInput";
271
+ B.displayName = "KonstructInput";
205
272
  export {
206
- A as Input
273
+ B as Input
207
274
  };
@@ -1,45 +1,50 @@
1
- import { c as r } from "../../index-D29mdTf5.js";
2
- const a = r(
1
+ import { c as e } from "../../index-D29mdTf5.js";
2
+ const r = e(
3
3
  [
4
4
  "bg-white",
5
- "border-gray-300",
6
5
  "border",
7
- "disabled:bg-gray-50",
6
+ "border-gray-300",
7
+ "caret-text-slate-800",
8
8
  "disabled:cursor-not-allowed",
9
9
  "disabled:text-slate-500",
10
10
  "flex",
11
+ "focus-visible:border-transparent",
11
12
  "focus-visible:outline-none",
12
13
  "focus-visible:ring-1",
13
14
  "h-10",
14
- "placeholder:text-slate-400",
15
15
  "px-2.5",
16
16
  "py-2",
17
17
  "rounded",
18
18
  "text-slate-800",
19
19
  "text-sm",
20
- "w-full",
21
20
  "transition-all",
21
+ "w-full",
22
+ "disabled:bg-gray-50",
23
+ "placeholder:text-slate-400",
22
24
  "data-[error=false]:dark:focus:ring-aurora-500",
23
25
  "data-[error=false]:focus:ring-aurora-500",
24
- "data-[error=false]:kubefirst:focus:ring-kubefirst-primary",
25
- "dark:bg-slate-800",
26
- "dark:border-slate-600",
27
- "dark:disabled:bg-slate-900",
26
+ "dark:bg-metal-800",
27
+ "dark:border-metal-700",
28
+ "dark:caret-text-metal-50",
29
+ "dark:disabled:bg-metal-900",
30
+ "dark:disabled:placeholder:text-metal-400",
31
+ "dark:disabled:text-metal-400",
28
32
  "dark:disabled:text-slate-400",
33
+ "dark:placeholder:text-metal-300",
29
34
  "dark:text-slate-50",
30
- "dark:text-white",
31
- "kubefirst-dark:bg-slate-800",
32
- "kubefirst-dark:border-slate-600",
33
- "kubefirst-dark:disabled:bg-slate-900",
34
- "kubefirst-dark:disabled:text-slate-400",
35
- "kubefirst-dark:text-slate-50",
36
- "kubefirst-dark:text-white"
35
+ "dark:text-white"
37
36
  ],
38
37
  {
39
38
  variants: {
40
39
  variant: {
41
40
  default: "",
42
- error: "border-red-600 kubefirst-dark:border-red-500 dark:border-red-500 dark:border-red-500 pr-8 focus-visible:ring-transparent"
41
+ error: [
42
+ "pr-8",
43
+ "border-red-600",
44
+ "focus-visible:border-red-600",
45
+ "focus-visible:ring-transparent",
46
+ "dark:border-red-500"
47
+ ]
43
48
  }
44
49
  },
45
50
  defaultVariants: {
@@ -48,5 +53,5 @@ const a = r(
48
53
  }
49
54
  );
50
55
  export {
51
- a as inputVariants
56
+ r as inputVariants
52
57
  };
@@ -1,13 +1,7 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import { cn as c } from "../../utils/index.js";
3
3
  import { loadingVariants as i } from "./Loading.variants.js";
4
- import { c as t } from "../../createLucideIcon-D2CN7Ma9.js";
5
- /**
6
- * @license lucide-react v0.545.0 - ISC
7
- *
8
- * This source code is licensed under the ISC license.
9
- * See the LICENSE file in the root directory of this source tree.
10
- */
4
+ import { c as t } from "../../createLucideIcon-D4r5Phnh.js";
11
5
  const d = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], m = t("loader-circle", d), n = ({ className: o, theme: a, ...r }) => /* @__PURE__ */ e(
12
6
  m,
13
7
  {
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import "../../index-BITvcJAz.js";
4
- import { M as d } from "../../Modal-D-NOEWMX.js";
3
+ import "react-dom";
4
+ import { M as d } from "../../Modal-CjC-CIJ8.js";
5
5
  import "./components/Header/Header.js";
6
6
  import "./components/Body/Body.js";
7
7
  import "./components/Footer/Footer.js";
@@ -1,5 +1,5 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { S as n } from "../../../../index-DQH6odE9.js";
2
+ import { S as n } from "../../../../index-BvoZGpli.js";
3
3
  import { cn as e } from "../../../../utils/index.js";
4
4
  const i = ({ children: o, asChild: t, className: m }) => /* @__PURE__ */ r(t ? n : "div", { className: e("flex-1", m), children: o });
5
5
  export {
@@ -1,5 +1,5 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
- import { S as n } from "../../../../index-DQH6odE9.js";
2
+ import { S as n } from "../../../../index-BvoZGpli.js";
3
3
  import { cn as e } from "../../../../utils/index.js";
4
4
  const a = ({ children: o, asChild: r, className: t }) => /* @__PURE__ */ m(r ? n : "div", { className: e("border-zinc-200", t), children: o });
5
5
  export {
@@ -1,5 +1,5 @@
1
1
  import { jsx as m } from "react/jsx-runtime";
2
- import { S as n } from "../../../../index-DQH6odE9.js";
2
+ import { S as n } from "../../../../index-BvoZGpli.js";
3
3
  import { cn as e } from "../../../../utils/index.js";
4
4
  const a = ({ children: o, asChild: r, className: t }) => /* @__PURE__ */ m(r ? n : "div", { className: e("border-zinc-200", t), children: o });
5
5
  export {
@@ -1,11 +1,11 @@
1
1
  import "react/jsx-runtime";
2
- import "../../../../index-DBbEcSUG.js";
2
+ import "../../../../index-BKjcReYh.js";
3
3
  import "react";
4
- import "../../../../Combination-VYaRRJBZ.js";
5
- import { W as f } from "../../../../Modal-D-NOEWMX.js";
4
+ import "../../../../Combination-BtmnusWq.js";
5
+ import { W as f } from "../../../../Modal-CjC-CIJ8.js";
6
6
  import "../../../../utils/index.js";
7
7
  import "./Wrapper.variants.js";
8
- import "../../../../x-4F_5p77m.js";
8
+ import "../../../../x-Eoa9FJjA.js";
9
9
  export {
10
10
  f as Wrapper
11
11
  };
@@ -1,7 +1,7 @@
1
1
  import { Body as e } from "./Body/Body.js";
2
2
  import { Footer as t } from "./Footer/Footer.js";
3
3
  import { Header as m } from "./Header/Header.js";
4
- import { W as a } from "../../../Modal-D-NOEWMX.js";
4
+ import { W as a } from "../../../Modal-CjC-CIJ8.js";
5
5
  export {
6
6
  e as Body,
7
7
  t as Footer,
@@ -0,0 +1,34 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { forwardRef as n } from "react";
3
+ import { MultiSelectDropdownProvider as s } from "./contexts/MultiSelectDropdown.provider.js";
4
+ import { Wrapper as u } from "./components/Wrapper/Wrapper.js";
5
+ const a = n(
6
+ ({
7
+ isLoading: t,
8
+ multiselect: e,
9
+ name: o,
10
+ noOptionsText: p,
11
+ options: i,
12
+ value: l,
13
+ onChange: d,
14
+ onBlur: m,
15
+ ...f
16
+ }, c) => /* @__PURE__ */ r(
17
+ s,
18
+ {
19
+ defaultOptions: i,
20
+ multiselect: e,
21
+ value: l,
22
+ onChange: d,
23
+ onBlur: m,
24
+ name: o,
25
+ isLoading: t,
26
+ noOptionsText: p,
27
+ children: /* @__PURE__ */ r(u, { ref: c, name: o, ...f })
28
+ }
29
+ )
30
+ );
31
+ a.displayName = "KonstructMultiSelectDropdown";
32
+ export {
33
+ a as MultiSelectDropdown
34
+ };
@@ -0,0 +1,30 @@
1
+ import { c as r } from "../../index-D29mdTf5.js";
2
+ const t = r([
3
+ "flex",
4
+ "flex-col",
5
+ "w-full",
6
+ "relative",
7
+ "cursor-pointer"
8
+ ]), o = r(["cursor-pointer", "mb-1", "select-none"]), a = r([
9
+ "min-h-9",
10
+ "border",
11
+ "cursor-pointer",
12
+ "duration-250",
13
+ "ease-in-out",
14
+ "flex",
15
+ "items-center",
16
+ "justify-between",
17
+ "px-2",
18
+ "py-1",
19
+ "rounded-md",
20
+ "transition-all",
21
+ "w-full",
22
+ "border-gray-200",
23
+ "dark:border-metal-700",
24
+ "dark:bg-metal-800"
25
+ ]);
26
+ export {
27
+ o as labelVariants,
28
+ a as multiSelectDropdownVariants,
29
+ t as wrapperVariants
30
+ };
@@ -0,0 +1,30 @@
1
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
+ import { Badge as l } from "../../../Badge/Badge.js";
3
+ import { Typography as n } from "../../../Typography/Typography.js";
4
+ import { cn as c } from "../../../../utils/index.js";
5
+ import { itemVariants as p } from "./Item.variants.js";
6
+ import { useMultiSelectDropdown as s } from "../../contexts/MultiSelectDropdown.hook.js";
7
+ const x = ({
8
+ option: r,
9
+ theme: o,
10
+ isSelected: t,
11
+ className: m
12
+ }) => {
13
+ const { onSelectOption: a } = s();
14
+ return /* @__PURE__ */ i(
15
+ "li",
16
+ {
17
+ role: "option",
18
+ "data-theme": o,
19
+ className: c(p({ isSelected: t }), m),
20
+ onClick: () => a(r),
21
+ children: [
22
+ /* @__PURE__ */ e(n, { variant: "body2", children: r.label }),
23
+ r.badge && /* @__PURE__ */ e(l, { label: r.badge })
24
+ ]
25
+ }
26
+ );
27
+ };
28
+ export {
29
+ x as Item
30
+ };