@driveflux/beam 3.0.16 → 3.0.18

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 (232) hide show
  1. package/dist/accordion/Accordion.js +87 -17
  2. package/dist/accordion/Accordion.stories.js +1 -1
  3. package/dist/alert/Alert.d.ts +1 -1
  4. package/dist/alert/Alert.d.ts.map +1 -1
  5. package/dist/alert/Alert.js +94 -21
  6. package/dist/alert/Alert.js.map +1 -1
  7. package/dist/alert/Alert.stories.js +3 -3
  8. package/dist/animations/LoadingAnimation.js +1 -1
  9. package/dist/badge/Badge.js +19 -10
  10. package/dist/badge/Badge.stories.js +1 -1
  11. package/dist/base-styles.css +1 -1
  12. package/dist/box/Box.js +75 -11
  13. package/dist/box/Box.stories.js +1 -1
  14. package/dist/breadcrumbs/Breadcrumbs.d.ts +1 -1
  15. package/dist/breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  16. package/dist/breadcrumbs/Breadcrumbs.js +94 -31
  17. package/dist/breadcrumbs/Breadcrumbs.js.map +1 -1
  18. package/dist/breadcrumbs/Breadcrumbs.stories.js +3 -3
  19. package/dist/button/Button.js +75 -11
  20. package/dist/button/Button.stories.js +1 -1
  21. package/dist/button/TextButton.js +75 -11
  22. package/dist/card/Card.js +105 -26
  23. package/dist/card/Card.stories.js +1 -1
  24. package/dist/carousel/Carousel.js +53 -26
  25. package/dist/carousel/Carousel.stories.js +1 -1
  26. package/dist/carousel/CarouselButton.js +75 -11
  27. package/dist/center/Center.js +75 -11
  28. package/dist/center/Center.stories.js +1 -1
  29. package/dist/checkbox/Checkbox.js +77 -13
  30. package/dist/checkbox/Checkbox.stories.js +1 -1
  31. package/dist/chip/Chip.js +75 -11
  32. package/dist/chip/Chip.stories.js +1 -1
  33. package/dist/circular-progress/CircularProgress.js +23 -14
  34. package/dist/circular-progress/CircularProgress.stories.js +4 -4
  35. package/dist/command/command.d.ts +1 -1
  36. package/dist/command/command.d.ts.map +1 -1
  37. package/dist/command/command.js +110 -31
  38. package/dist/command/command.js.map +1 -1
  39. package/dist/datepicker/DatePicker.d.ts.map +1 -1
  40. package/dist/datepicker/DatePicker.js +25 -16
  41. package/dist/datepicker/DatePicker.js.map +1 -1
  42. package/dist/datepicker/DatePicker.stories.js +12 -13
  43. package/dist/datepicker/DatePicker.stories.js.map +1 -1
  44. package/dist/datepicker/DatePickerDrawer.js +4 -4
  45. package/dist/datepicker/DatePickerPopover.js +7 -7
  46. package/dist/datepicker/utils.js +2 -2
  47. package/dist/dialog/index.js +97 -24
  48. package/dist/dialog/index.js.map +1 -1
  49. package/dist/divider/Divider.js +75 -11
  50. package/dist/divider/Divider.stories.js +1 -1
  51. package/dist/drawer/index.js +99 -26
  52. package/dist/dropdown/Dropdown.js +119 -34
  53. package/dist/dropdown/Dropdown.stories.js +3 -3
  54. package/dist/dropdown/Dropdown.stories.js.map +1 -1
  55. package/dist/field-wrapper/FieldWrapper.js +75 -11
  56. package/dist/field-wrapper/FieldWrapper.stories.js +5 -5
  57. package/dist/flex/Flex.js +75 -11
  58. package/dist/flex/Flex.stories.js +1 -1
  59. package/dist/grid/Grid.js +75 -11
  60. package/dist/grid/Grid.stories.js +1 -1
  61. package/dist/hooks/use-breakpoint-value.js +2 -2
  62. package/dist/hooks/use-media-query.js +4 -4
  63. package/dist/hstack/HStack.js +75 -11
  64. package/dist/hstack/HStack.stories.js +1 -1
  65. package/dist/icons/FluxLogo.js +22 -13
  66. package/dist/icons/FluxLogoTable.js +19 -10
  67. package/dist/icons/Icon.js +19 -10
  68. package/dist/icons/Icon.stories.js +1 -1
  69. package/dist/icons/Icon24Hours.js +19 -10
  70. package/dist/icons/IconAcceleration.js +19 -10
  71. package/dist/icons/IconAccount.js +19 -10
  72. package/dist/icons/IconApplicant.js +19 -10
  73. package/dist/icons/IconArrow.js +20 -11
  74. package/dist/icons/IconArrowBack.js +19 -10
  75. package/dist/icons/IconArrowForward.js +19 -10
  76. package/dist/icons/IconArrowTopLeft.js +19 -10
  77. package/dist/icons/IconBluesharkProductGuide.js +22 -13
  78. package/dist/icons/IconBolt.js +19 -10
  79. package/dist/icons/IconBriefcase.js +19 -10
  80. package/dist/icons/IconBulb.js +19 -10
  81. package/dist/icons/IconCalendar.js +19 -10
  82. package/dist/icons/IconCalendarArrowBack.js +19 -10
  83. package/dist/icons/IconCalendarArrowForward.js +19 -10
  84. package/dist/icons/IconCalendarDoubleArrowBack.js +19 -10
  85. package/dist/icons/IconCalendarDoubleArrowForward.js +19 -10
  86. package/dist/icons/IconCancel.js +19 -10
  87. package/dist/icons/IconCancelMark.js +19 -10
  88. package/dist/icons/IconCarSUV.js +19 -10
  89. package/dist/icons/IconCarSedan.js +23 -14
  90. package/dist/icons/IconChain.js +19 -10
  91. package/dist/icons/IconCheckmark.js +19 -10
  92. package/dist/icons/IconChevronRight.js +19 -10
  93. package/dist/icons/IconCircle.js +19 -10
  94. package/dist/icons/IconCircleCheckmark.js +19 -10
  95. package/dist/icons/IconCircleError.js +19 -10
  96. package/dist/icons/IconCircleExclamation.js +19 -10
  97. package/dist/icons/IconCircleMark.js +19 -10
  98. package/dist/icons/IconCircleOutline.js +19 -10
  99. package/dist/icons/IconClock.js +19 -10
  100. package/dist/icons/IconClose.js +19 -10
  101. package/dist/icons/IconCollapseAll.js +19 -10
  102. package/dist/icons/IconConcierge.js +19 -10
  103. package/dist/icons/IconConciergeService.js +19 -10
  104. package/dist/icons/IconCreditCard.js +19 -10
  105. package/dist/icons/IconDash.js +19 -10
  106. package/dist/icons/IconDeliver.js +19 -10
  107. package/dist/icons/IconDelivery.js +21 -12
  108. package/dist/icons/IconDetails.js +19 -10
  109. package/dist/icons/IconDot.js +19 -10
  110. package/dist/icons/IconDownload.js +19 -10
  111. package/dist/icons/IconEVCharging.js +19 -10
  112. package/dist/icons/IconElectricCarFuel.js +19 -10
  113. package/dist/icons/IconEllipsis.js +19 -10
  114. package/dist/icons/IconEnvelope.js +19 -10
  115. package/dist/icons/IconExpandAll.js +19 -10
  116. package/dist/icons/IconEye.js +22 -13
  117. package/dist/icons/IconFacebook.js +19 -10
  118. package/dist/icons/IconFilter.js +19 -10
  119. package/dist/icons/IconFlagMalaysia.js +19 -10
  120. package/dist/icons/IconGiveKey.js +19 -10
  121. package/dist/icons/IconGlobe.js +19 -10
  122. package/dist/icons/IconGoogle.js +22 -13
  123. package/dist/icons/IconHome.js +21 -12
  124. package/dist/icons/IconHostAdvertise.js +19 -10
  125. package/dist/icons/IconHostCar.js +19 -10
  126. package/dist/icons/IconHostCash.js +19 -10
  127. package/dist/icons/IconHostHandle.js +19 -10
  128. package/dist/icons/IconHostLocation.js +19 -10
  129. package/dist/icons/IconHostPayment.js +19 -10
  130. package/dist/icons/IconHostService.js +19 -10
  131. package/dist/icons/IconHotDeals.js +19 -10
  132. package/dist/icons/IconInfo.js +19 -10
  133. package/dist/icons/IconInstagram.js +19 -10
  134. package/dist/icons/IconInsurance.js +19 -10
  135. package/dist/icons/IconInternet.js +19 -10
  136. package/dist/icons/IconInventory.js +21 -12
  137. package/dist/icons/IconLaurel.js +19 -10
  138. package/dist/icons/IconLinkedIn.js +19 -10
  139. package/dist/icons/IconLoading.js +19 -10
  140. package/dist/icons/IconLocation.js +19 -10
  141. package/dist/icons/IconLock.js +19 -10
  142. package/dist/icons/IconLogistics.js +19 -10
  143. package/dist/icons/IconMail.js +25 -16
  144. package/dist/icons/IconMember.js +21 -12
  145. package/dist/icons/IconMobilePen.js +19 -10
  146. package/dist/icons/IconMotorcycleMoped.js +21 -12
  147. package/dist/icons/IconNoCost.js +21 -12
  148. package/dist/icons/IconPDF.js +19 -10
  149. package/dist/icons/IconPencil.js +19 -10
  150. package/dist/icons/IconPhone.js +19 -10
  151. package/dist/icons/IconPlus.js +19 -10
  152. package/dist/icons/IconPricing.js +19 -10
  153. package/dist/icons/IconProtected.js +20 -11
  154. package/dist/icons/IconPsychology.js +19 -10
  155. package/dist/icons/IconQuestionTooltip.js +75 -11
  156. package/dist/icons/IconQuote.js +19 -10
  157. package/dist/icons/IconRate.js +20 -11
  158. package/dist/icons/IconRegister.js +19 -10
  159. package/dist/icons/IconReport.js +21 -12
  160. package/dist/icons/IconReturn.js +19 -10
  161. package/dist/icons/IconSearch.js +19 -10
  162. package/dist/icons/IconSecure.js +20 -11
  163. package/dist/icons/IconSecurity.js +19 -10
  164. package/dist/icons/IconSedanOutline.js +19 -10
  165. package/dist/icons/IconSelectArrow.js +20 -11
  166. package/dist/icons/IconSort.js +19 -10
  167. package/dist/icons/IconSortListed.js +19 -10
  168. package/dist/icons/IconSortPriceAscending.js +19 -10
  169. package/dist/icons/IconSortPriceDescending.js +19 -10
  170. package/dist/icons/IconSortYear.js +19 -10
  171. package/dist/icons/IconSpan.js +20 -11
  172. package/dist/icons/IconSpeaker.js +19 -10
  173. package/dist/icons/IconSpecialCar.js +20 -11
  174. package/dist/icons/IconStar.js +19 -10
  175. package/dist/icons/IconStockPhoto.js +19 -10
  176. package/dist/icons/IconSubscription.js +19 -10
  177. package/dist/icons/IconSubscriptions.js +19 -10
  178. package/dist/icons/IconSwap.js +19 -10
  179. package/dist/icons/IconTax.js +19 -10
  180. package/dist/icons/IconThinArrow.js +20 -11
  181. package/dist/icons/IconThumbsdown.js +19 -10
  182. package/dist/icons/IconThumbsup.js +19 -10
  183. package/dist/icons/IconTool.js +20 -11
  184. package/dist/icons/IconTooltip.js +75 -11
  185. package/dist/icons/IconTrash.js +19 -10
  186. package/dist/icons/IconTriangleExclamation.js +19 -10
  187. package/dist/icons/IconTyersBrakes.js +19 -10
  188. package/dist/icons/IconTyre.js +19 -10
  189. package/dist/icons/IconVacancy.js +19 -10
  190. package/dist/icons/IconVolunteer.js +19 -10
  191. package/dist/icons/IconWhatsapp.js +19 -10
  192. package/dist/icons/IconXPlatform.js +19 -10
  193. package/dist/icons/IconZeroEffort.js +21 -12
  194. package/dist/icons/Logo.js +19 -10
  195. package/dist/input/Input.js +17 -8
  196. package/dist/input-mask/InputMask.js +19 -10
  197. package/dist/input-mask/mask-trackers.js +1 -1
  198. package/dist/input-select/InputSelect.js +74 -41
  199. package/dist/input-select/InputSelect.stories.js +1 -1
  200. package/dist/popover/popover.d.ts +1 -1
  201. package/dist/popover/popover.js +76 -12
  202. package/dist/progress/Progress.js +75 -11
  203. package/dist/radio/Radio.js +75 -11
  204. package/dist/scroll-area/scroll-area.js +81 -14
  205. package/dist/search-input-select/SearchInputSelect.js +72 -39
  206. package/dist/select/Select.js +73 -34
  207. package/dist/skeleton/Skeleton.js +19 -10
  208. package/dist/skeleton/Skeleton.stories.js +1 -1
  209. package/dist/slider/Slider.js +75 -11
  210. package/dist/slider/Slider.stories.js +1 -1
  211. package/dist/stack/Stack.js +75 -11
  212. package/dist/stack/Stack.stories.js +1 -1
  213. package/dist/styles.css +1 -7
  214. package/dist/table/Table.d.ts +1 -1
  215. package/dist/table/Table.d.ts.map +1 -1
  216. package/dist/table/Table.js +118 -33
  217. package/dist/table/Table.js.map +1 -1
  218. package/dist/table/Table.stories.js +1 -1
  219. package/dist/tabs/Tabs.js +89 -19
  220. package/dist/tabs/Tabs.stories.js +1 -1
  221. package/dist/text/Text.js +75 -11
  222. package/dist/text/Text.stories.js +1 -1
  223. package/dist/toast/Toast.stories.js +4 -4
  224. package/dist/toast/ToastBox.js +4 -4
  225. package/dist/toast/sonner.js +3 -3
  226. package/dist/toggle/Toggle.js +78 -14
  227. package/dist/toggle/Toggle.stories.js +1 -1
  228. package/dist/tooltip/Tooltip.js +32 -14
  229. package/dist/tooltip/Tooltip.stories.js +2 -2
  230. package/dist/vstack/VStack.js +75 -11
  231. package/dist/vstack/VStack.stories.js +1 -1
  232. package/package.json +29 -29
@@ -1,4 +1,12 @@
1
1
  'use client';
2
+ function _array_like_to_array(arr, len) {
3
+ if (len == null || len > arr.length) len = arr.length;
4
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
5
+ return arr2;
6
+ }
7
+ function _array_with_holes(arr) {
8
+ if (Array.isArray(arr)) return arr;
9
+ }
2
10
  function _define_property(obj, key, value) {
3
11
  if (key in obj) {
4
12
  Object.defineProperty(obj, key, {
@@ -12,6 +20,36 @@ function _define_property(obj, key, value) {
12
20
  }
13
21
  return obj;
14
22
  }
23
+ function _iterable_to_array(iter) {
24
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
25
+ }
26
+ function _iterable_to_array_limit(arr, i) {
27
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
28
+ if (_i == null) return;
29
+ var _arr = [];
30
+ var _n = true;
31
+ var _d = false;
32
+ var _s, _e;
33
+ try {
34
+ for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
35
+ _arr.push(_s.value);
36
+ if (i && _arr.length === i) break;
37
+ }
38
+ } catch (err) {
39
+ _d = true;
40
+ _e = err;
41
+ } finally{
42
+ try {
43
+ if (!_n && _i["return"] != null) _i["return"]();
44
+ } finally{
45
+ if (_d) throw _e;
46
+ }
47
+ }
48
+ return _arr;
49
+ }
50
+ function _non_iterable_rest() {
51
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
52
+ }
15
53
  function _object_spread(target) {
16
54
  for(var i = 1; i < arguments.length; i++){
17
55
  var source = arguments[i] != null ? arguments[i] : {};
@@ -53,12 +91,22 @@ function _object_spread_props(target, source) {
53
91
  }
54
92
  function _object_without_properties(source, excluded) {
55
93
  if (source == null) return {};
56
- var target = _object_without_properties_loose(source, excluded);
57
- var key, i;
94
+ var target = {}, sourceKeys, key, i;
95
+ if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
96
+ sourceKeys = Reflect.ownKeys(Object(source));
97
+ for(i = 0; i < sourceKeys.length; i++){
98
+ key = sourceKeys[i];
99
+ if (excluded.indexOf(key) >= 0) continue;
100
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
101
+ target[key] = source[key];
102
+ }
103
+ return target;
104
+ }
105
+ target = _object_without_properties_loose(source, excluded);
58
106
  if (Object.getOwnPropertySymbols) {
59
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
60
- for(i = 0; i < sourceSymbolKeys.length; i++){
61
- key = sourceSymbolKeys[i];
107
+ sourceKeys = Object.getOwnPropertySymbols(source);
108
+ for(i = 0; i < sourceKeys.length; i++){
109
+ key = sourceKeys[i];
62
110
  if (excluded.indexOf(key) >= 0) continue;
63
111
  if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
64
112
  target[key] = source[key];
@@ -68,25 +116,41 @@ function _object_without_properties(source, excluded) {
68
116
  }
69
117
  function _object_without_properties_loose(source, excluded) {
70
118
  if (source == null) return {};
71
- var target = {};
72
- var sourceKeys = Object.keys(source);
73
- var key, i;
119
+ var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
74
120
  for(i = 0; i < sourceKeys.length; i++){
75
121
  key = sourceKeys[i];
76
122
  if (excluded.indexOf(key) >= 0) continue;
123
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
77
124
  target[key] = source[key];
78
125
  }
79
126
  return target;
80
127
  }
128
+ function _sliced_to_array(arr, i) {
129
+ return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
130
+ }
131
+ function _to_array(arr) {
132
+ return _array_with_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_rest();
133
+ }
134
+ function _unsupported_iterable_to_array(o, minLen) {
135
+ if (!o) return;
136
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
137
+ var n = Object.prototype.toString.call(o).slice(8, -1);
138
+ if (n === "Object" && o.constructor) n = o.constructor.name;
139
+ if (n === "Map" || n === "Set") return Array.from(n);
140
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
141
+ }
81
142
  import { jsx as _jsx } from "react/jsx-runtime";
82
143
  import * as ProgressPrimitive from '@radix-ui/react-progress';
83
144
  import * as React from 'react';
84
145
  import { cn } from '../utils';
85
- var Progress = /*#__PURE__*/ React.forwardRef(function(_param, ref) {
86
- var className = _param.className, value = _param.value, props = _object_without_properties(_param, [
146
+ var Progress = /*#__PURE__*/ React.forwardRef(function(_0, _1) {
147
+ var _ref = [
148
+ _0,
149
+ _1
150
+ ], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), className = _ref2.className, value = _ref2.value, props = _object_without_properties(_ref2, [
87
151
  "className",
88
152
  "value"
89
- ]);
153
+ ]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
90
154
  return /*#__PURE__*/ _jsx(ProgressPrimitive.Root, _object_spread_props(_object_spread({
91
155
  ref: ref,
92
156
  className: cn('relative h-4 w-full overflow-hidden rounded-full bg-zinc-100', className)
@@ -1,3 +1,11 @@
1
+ function _array_like_to_array(arr, len) {
2
+ if (len == null || len > arr.length) len = arr.length;
3
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
4
+ return arr2;
5
+ }
6
+ function _array_with_holes(arr) {
7
+ if (Array.isArray(arr)) return arr;
8
+ }
1
9
  function _define_property(obj, key, value) {
2
10
  if (key in obj) {
3
11
  Object.defineProperty(obj, key, {
@@ -11,6 +19,36 @@ function _define_property(obj, key, value) {
11
19
  }
12
20
  return obj;
13
21
  }
22
+ function _iterable_to_array(iter) {
23
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
24
+ }
25
+ function _iterable_to_array_limit(arr, i) {
26
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
27
+ if (_i == null) return;
28
+ var _arr = [];
29
+ var _n = true;
30
+ var _d = false;
31
+ var _s, _e;
32
+ try {
33
+ for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
34
+ _arr.push(_s.value);
35
+ if (i && _arr.length === i) break;
36
+ }
37
+ } catch (err) {
38
+ _d = true;
39
+ _e = err;
40
+ } finally{
41
+ try {
42
+ if (!_n && _i["return"] != null) _i["return"]();
43
+ } finally{
44
+ if (_d) throw _e;
45
+ }
46
+ }
47
+ return _arr;
48
+ }
49
+ function _non_iterable_rest() {
50
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
51
+ }
14
52
  function _object_spread(target) {
15
53
  for(var i = 1; i < arguments.length; i++){
16
54
  var source = arguments[i] != null ? arguments[i] : {};
@@ -52,12 +90,22 @@ function _object_spread_props(target, source) {
52
90
  }
53
91
  function _object_without_properties(source, excluded) {
54
92
  if (source == null) return {};
55
- var target = _object_without_properties_loose(source, excluded);
56
- var key, i;
93
+ var target = {}, sourceKeys, key, i;
94
+ if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
95
+ sourceKeys = Reflect.ownKeys(Object(source));
96
+ for(i = 0; i < sourceKeys.length; i++){
97
+ key = sourceKeys[i];
98
+ if (excluded.indexOf(key) >= 0) continue;
99
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
100
+ target[key] = source[key];
101
+ }
102
+ return target;
103
+ }
104
+ target = _object_without_properties_loose(source, excluded);
57
105
  if (Object.getOwnPropertySymbols) {
58
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
59
- for(i = 0; i < sourceSymbolKeys.length; i++){
60
- key = sourceSymbolKeys[i];
106
+ sourceKeys = Object.getOwnPropertySymbols(source);
107
+ for(i = 0; i < sourceKeys.length; i++){
108
+ key = sourceKeys[i];
61
109
  if (excluded.indexOf(key) >= 0) continue;
62
110
  if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
63
111
  target[key] = source[key];
@@ -67,16 +115,29 @@ function _object_without_properties(source, excluded) {
67
115
  }
68
116
  function _object_without_properties_loose(source, excluded) {
69
117
  if (source == null) return {};
70
- var target = {};
71
- var sourceKeys = Object.keys(source);
72
- var key, i;
118
+ var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
73
119
  for(i = 0; i < sourceKeys.length; i++){
74
120
  key = sourceKeys[i];
75
121
  if (excluded.indexOf(key) >= 0) continue;
122
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
76
123
  target[key] = source[key];
77
124
  }
78
125
  return target;
79
126
  }
127
+ function _sliced_to_array(arr, i) {
128
+ return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
129
+ }
130
+ function _to_array(arr) {
131
+ return _array_with_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_rest();
132
+ }
133
+ function _unsupported_iterable_to_array(o, minLen) {
134
+ if (!o) return;
135
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
136
+ var n = Object.prototype.toString.call(o).slice(8, -1);
137
+ if (n === "Object" && o.constructor) n = o.constructor.name;
138
+ if (n === "Map" || n === "Set") return Array.from(n);
139
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
140
+ }
80
141
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
81
142
  import React from 'react';
82
143
  import Box from '../box/Box';
@@ -84,8 +145,11 @@ import FieldWrapper from '../field-wrapper/FieldWrapper';
84
145
  import HStack from '../hstack/HStack';
85
146
  import { cn } from '../utils';
86
147
  import VStack from '../vstack/VStack';
87
- var Radio = /*#__PURE__*/ React.forwardRef(function(_param, ref) {
88
- var wrapperProps = _param.wrapperProps, htmlFor = _param.htmlFor, label = _param.label, showRequired = _param.showRequired, showOptional = _param.showOptional, outerPrefix = _param.outerPrefix, outerSuffix = _param.outerSuffix, error = _param.error, title = _param.title, titleClassName = _param.titleClassName, description = _param.description, text = _param.text, subText = _param.subText, className = _param.className, isChecked = _param.isChecked, children = _param.children, subClassName = _param.subClassName, _param_withFieldWrapper = _param.withFieldWrapper, withFieldWrapper = _param_withFieldWrapper === void 0 ? true : _param_withFieldWrapper, value = _param.value, includeBorder = _param.includeBorder, props = _object_without_properties(_param, [
148
+ var Radio = /*#__PURE__*/ React.forwardRef(function(_0, _1) {
149
+ var _ref = [
150
+ _0,
151
+ _1
152
+ ], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), wrapperProps = _ref2.wrapperProps, htmlFor = _ref2.htmlFor, label = _ref2.label, showRequired = _ref2.showRequired, showOptional = _ref2.showOptional, outerPrefix = _ref2.outerPrefix, outerSuffix = _ref2.outerSuffix, error = _ref2.error, title = _ref2.title, titleClassName = _ref2.titleClassName, description = _ref2.description, text = _ref2.text, subText = _ref2.subText, className = _ref2.className, isChecked = _ref2.isChecked, children = _ref2.children, subClassName = _ref2.subClassName, _ref_withFieldWrapper = _ref2.withFieldWrapper, withFieldWrapper = _ref_withFieldWrapper === void 0 ? true : _ref_withFieldWrapper, value = _ref2.value, includeBorder = _ref2.includeBorder, props = _object_without_properties(_ref2, [
89
153
  "wrapperProps",
90
154
  "htmlFor",
91
155
  "label",
@@ -106,7 +170,7 @@ var Radio = /*#__PURE__*/ React.forwardRef(function(_param, ref) {
106
170
  "withFieldWrapper",
107
171
  "value",
108
172
  "includeBorder"
109
- ]);
173
+ ]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
110
174
  var radioContent = /*#__PURE__*/ _jsx("label", {
111
175
  className: cn('flex w-full cursor-pointer p-6 text-center border border-primary3 transition-colors duration-300 ease-in-out', isChecked ? 'border-black' : 'border-primary3', className),
112
176
  children: /*#__PURE__*/ _jsxs(HStack, {
@@ -1,4 +1,12 @@
1
1
  'use client';
2
+ function _array_like_to_array(arr, len) {
3
+ if (len == null || len > arr.length) len = arr.length;
4
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
5
+ return arr2;
6
+ }
7
+ function _array_with_holes(arr) {
8
+ if (Array.isArray(arr)) return arr;
9
+ }
2
10
  function _define_property(obj, key, value) {
3
11
  if (key in obj) {
4
12
  Object.defineProperty(obj, key, {
@@ -12,6 +20,36 @@ function _define_property(obj, key, value) {
12
20
  }
13
21
  return obj;
14
22
  }
23
+ function _iterable_to_array(iter) {
24
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
25
+ }
26
+ function _iterable_to_array_limit(arr, i) {
27
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
28
+ if (_i == null) return;
29
+ var _arr = [];
30
+ var _n = true;
31
+ var _d = false;
32
+ var _s, _e;
33
+ try {
34
+ for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
35
+ _arr.push(_s.value);
36
+ if (i && _arr.length === i) break;
37
+ }
38
+ } catch (err) {
39
+ _d = true;
40
+ _e = err;
41
+ } finally{
42
+ try {
43
+ if (!_n && _i["return"] != null) _i["return"]();
44
+ } finally{
45
+ if (_d) throw _e;
46
+ }
47
+ }
48
+ return _arr;
49
+ }
50
+ function _non_iterable_rest() {
51
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
52
+ }
15
53
  function _object_spread(target) {
16
54
  for(var i = 1; i < arguments.length; i++){
17
55
  var source = arguments[i] != null ? arguments[i] : {};
@@ -53,12 +91,22 @@ function _object_spread_props(target, source) {
53
91
  }
54
92
  function _object_without_properties(source, excluded) {
55
93
  if (source == null) return {};
56
- var target = _object_without_properties_loose(source, excluded);
57
- var key, i;
94
+ var target = {}, sourceKeys, key, i;
95
+ if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
96
+ sourceKeys = Reflect.ownKeys(Object(source));
97
+ for(i = 0; i < sourceKeys.length; i++){
98
+ key = sourceKeys[i];
99
+ if (excluded.indexOf(key) >= 0) continue;
100
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
101
+ target[key] = source[key];
102
+ }
103
+ return target;
104
+ }
105
+ target = _object_without_properties_loose(source, excluded);
58
106
  if (Object.getOwnPropertySymbols) {
59
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
60
- for(i = 0; i < sourceSymbolKeys.length; i++){
61
- key = sourceSymbolKeys[i];
107
+ sourceKeys = Object.getOwnPropertySymbols(source);
108
+ for(i = 0; i < sourceKeys.length; i++){
109
+ key = sourceKeys[i];
62
110
  if (excluded.indexOf(key) >= 0) continue;
63
111
  if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
64
112
  target[key] = source[key];
@@ -68,25 +116,41 @@ function _object_without_properties(source, excluded) {
68
116
  }
69
117
  function _object_without_properties_loose(source, excluded) {
70
118
  if (source == null) return {};
71
- var target = {};
72
- var sourceKeys = Object.keys(source);
73
- var key, i;
119
+ var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
74
120
  for(i = 0; i < sourceKeys.length; i++){
75
121
  key = sourceKeys[i];
76
122
  if (excluded.indexOf(key) >= 0) continue;
123
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
77
124
  target[key] = source[key];
78
125
  }
79
126
  return target;
80
127
  }
128
+ function _sliced_to_array(arr, i) {
129
+ return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
130
+ }
131
+ function _to_array(arr) {
132
+ return _array_with_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_rest();
133
+ }
134
+ function _unsupported_iterable_to_array(o, minLen) {
135
+ if (!o) return;
136
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
137
+ var n = Object.prototype.toString.call(o).slice(8, -1);
138
+ if (n === "Object" && o.constructor) n = o.constructor.name;
139
+ if (n === "Map" || n === "Set") return Array.from(n);
140
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
141
+ }
81
142
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
82
143
  import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
83
144
  import * as React from 'react';
84
145
  import { cn } from '../utils';
85
- var ScrollArea = /*#__PURE__*/ React.forwardRef(function(_param, ref) {
86
- var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
146
+ var ScrollArea = /*#__PURE__*/ React.forwardRef(function(_0, _1) {
147
+ var _ref = [
148
+ _0,
149
+ _1
150
+ ], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), className = _ref2.className, children = _ref2.children, props = _object_without_properties(_ref2, [
87
151
  "className",
88
152
  "children"
89
- ]);
153
+ ]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
90
154
  return /*#__PURE__*/ _jsxs(ScrollAreaPrimitive.Root, _object_spread_props(_object_spread({
91
155
  ref: ref,
92
156
  className: cn('relative overflow-hidden', className)
@@ -102,11 +166,14 @@ var ScrollArea = /*#__PURE__*/ React.forwardRef(function(_param, ref) {
102
166
  }));
103
167
  });
104
168
  ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
105
- var ScrollBar = /*#__PURE__*/ React.forwardRef(function(_param, ref) {
106
- var className = _param.className, _param_orientation = _param.orientation, orientation = _param_orientation === void 0 ? 'vertical' : _param_orientation, props = _object_without_properties(_param, [
169
+ var ScrollBar = /*#__PURE__*/ React.forwardRef(function(_0, _1) {
170
+ var _ref = [
171
+ _0,
172
+ _1
173
+ ], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), className = _ref2.className, _ref_orientation = _ref2.orientation, orientation = _ref_orientation === void 0 ? 'vertical' : _ref_orientation, props = _object_without_properties(_ref2, [
107
174
  "className",
108
175
  "orientation"
109
- ]);
176
+ ]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
110
177
  return /*#__PURE__*/ _jsx(ScrollAreaPrimitive.ScrollAreaScrollbar, _object_spread_props(_object_spread({
111
178
  ref: ref,
112
179
  orientation: orientation,
@@ -20,6 +20,9 @@ function _define_property(obj, key, value) {
20
20
  }
21
21
  return obj;
22
22
  }
23
+ function _iterable_to_array(iter) {
24
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
25
+ }
23
26
  function _iterable_to_array_limit(arr, i) {
24
27
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
25
28
  if (_i == null) return;
@@ -88,12 +91,22 @@ function _object_spread_props(target, source) {
88
91
  }
89
92
  function _object_without_properties(source, excluded) {
90
93
  if (source == null) return {};
91
- var target = _object_without_properties_loose(source, excluded);
92
- var key, i;
94
+ var target = {}, sourceKeys, key, i;
95
+ if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
96
+ sourceKeys = Reflect.ownKeys(Object(source));
97
+ for(i = 0; i < sourceKeys.length; i++){
98
+ key = sourceKeys[i];
99
+ if (excluded.indexOf(key) >= 0) continue;
100
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
101
+ target[key] = source[key];
102
+ }
103
+ return target;
104
+ }
105
+ target = _object_without_properties_loose(source, excluded);
93
106
  if (Object.getOwnPropertySymbols) {
94
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
95
- for(i = 0; i < sourceSymbolKeys.length; i++){
96
- key = sourceSymbolKeys[i];
107
+ sourceKeys = Object.getOwnPropertySymbols(source);
108
+ for(i = 0; i < sourceKeys.length; i++){
109
+ key = sourceKeys[i];
97
110
  if (excluded.indexOf(key) >= 0) continue;
98
111
  if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
99
112
  target[key] = source[key];
@@ -103,12 +116,11 @@ function _object_without_properties(source, excluded) {
103
116
  }
104
117
  function _object_without_properties_loose(source, excluded) {
105
118
  if (source == null) return {};
106
- var target = {};
107
- var sourceKeys = Object.keys(source);
108
- var key, i;
119
+ var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
109
120
  for(i = 0; i < sourceKeys.length; i++){
110
121
  key = sourceKeys[i];
111
122
  if (excluded.indexOf(key) >= 0) continue;
123
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
112
124
  target[key] = source[key];
113
125
  }
114
126
  return target;
@@ -116,6 +128,9 @@ function _object_without_properties_loose(source, excluded) {
116
128
  function _sliced_to_array(arr, i) {
117
129
  return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
118
130
  }
131
+ function _to_array(arr) {
132
+ return _array_with_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_rest();
133
+ }
119
134
  function _unsupported_iterable_to_array(o, minLen) {
120
135
  if (!o) return;
121
136
  if (typeof o === "string") return _array_like_to_array(o, minLen);
@@ -132,18 +147,24 @@ import Box from '../box/Box';
132
147
  import FieldWrapper from '../field-wrapper/FieldWrapper';
133
148
  import IconSearch from '../icons/IconSearch';
134
149
  import { cn } from '../utils';
135
- var Command = /*#__PURE__*/ React.forwardRef(function(_param, ref) {
136
- var className = _param.className, props = _object_without_properties(_param, [
150
+ var Command = /*#__PURE__*/ React.forwardRef(function(_0, _1) {
151
+ var _ref = [
152
+ _0,
153
+ _1
154
+ ], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), className = _ref2.className, props = _object_without_properties(_ref2, [
137
155
  "className"
138
- ]);
156
+ ]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
139
157
  return /*#__PURE__*/ _jsx(CommandPrimitive, _object_spread({
140
158
  ref: ref,
141
159
  className: cn('flex relative w-full', className)
142
160
  }, props));
143
161
  });
144
162
  Command.displayName = CommandPrimitive.displayName;
145
- var CommandInput = /*#__PURE__*/ React.forwardRef(function(_param, ref) {
146
- var className = _param.className, error = _param.error, prefix = _param.prefix, isFocused = _param.isFocused, isSelected = _param.isSelected, handleToggle = _param.handleToggle, handleClear = _param.handleClear, props = _object_without_properties(_param, [
163
+ var CommandInput = /*#__PURE__*/ React.forwardRef(function(_0, _1) {
164
+ var _ref = [
165
+ _0,
166
+ _1
167
+ ], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), className = _ref2.className, error = _ref2.error, prefix = _ref2.prefix, isFocused = _ref2.isFocused, isSelected = _ref2.isSelected, handleToggle = _ref2.handleToggle, handleClear = _ref2.handleClear, props = _object_without_properties(_ref2, [
147
168
  "className",
148
169
  "error",
149
170
  "prefix",
@@ -151,7 +172,7 @@ var CommandInput = /*#__PURE__*/ React.forwardRef(function(_param, ref) {
151
172
  "isSelected",
152
173
  "handleToggle",
153
174
  "handleClear"
154
- ]);
175
+ ]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
155
176
  return /*#__PURE__*/ _jsxs("div", {
156
177
  ref: ref,
157
178
  className: cn('flex items-center h-12 w-full border border-primary2 bg-white text-sm cursor-pointer outline-hidden file:border-0 file:bg-transparent file:text-sm file:font-medium hover:border-black focus-within:border-black focus-within:outline-hidden disabled:cursor-not-allowed disabled:opacity-50', error && 'border-alert4 hover:border-alert4 focus-within:border-alert4', className),
@@ -165,7 +186,7 @@ var CommandInput = /*#__PURE__*/ React.forwardRef(function(_param, ref) {
165
186
  /*#__PURE__*/ _jsx(CommandPrimitive.Input, _object_spread_props(_object_spread({
166
187
  className: cn('border-none h-full w-full px-3 outline-hidden text-ellipsis placeholder:text-primary2 placeholder:tracking-wide cursor-pointer')
167
188
  }, props), {
168
- onClick: function(_e) {
189
+ onClick: function onClick(_e) {
169
190
  if (isSelected) {
170
191
  isFocused = true;
171
192
  } else if (!isFocused) {
@@ -177,13 +198,16 @@ var CommandInput = /*#__PURE__*/ React.forwardRef(function(_param, ref) {
177
198
  });
178
199
  });
179
200
  CommandInput.displayName = CommandPrimitive.Input.displayName;
180
- var CommandList = /*#__PURE__*/ React.forwardRef(function(_param, ref) {
181
- var className = _param.className, props = _object_without_properties(_param, [
201
+ var CommandList = /*#__PURE__*/ React.forwardRef(function(_0, _1) {
202
+ var _ref = [
203
+ _0,
204
+ _1
205
+ ], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), className = _ref2.className, props = _object_without_properties(_ref2, [
182
206
  "className"
183
- ]);
207
+ ]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
184
208
  var _React_useState = _sliced_to_array(React.useState('bottom'), 2), position = _React_useState[0], setPosition = _React_useState[1];
185
209
  useEffect(function() {
186
- var handlePosition = function() {
210
+ var handlePosition = function handlePosition() {
187
211
  if (ref && 'current' in ref && ref.current) {
188
212
  var rect = ref.current.getBoundingClientRect();
189
213
  var spaceBelow = window.innerHeight - rect.bottom;
@@ -218,38 +242,47 @@ var CommandEmpty = /*#__PURE__*/ React.forwardRef(function(props, ref) {
218
242
  }, props));
219
243
  });
220
244
  CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
221
- var CommandGroup = /*#__PURE__*/ React.forwardRef(function(_param, ref) {
222
- var className = _param.className, props = _object_without_properties(_param, [
245
+ var CommandGroup = /*#__PURE__*/ React.forwardRef(function(_0, _1) {
246
+ var _ref = [
247
+ _0,
248
+ _1
249
+ ], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), className = _ref2.className, props = _object_without_properties(_ref2, [
223
250
  "className"
224
- ]);
251
+ ]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
225
252
  return /*#__PURE__*/ _jsx(CommandPrimitive.Group, _object_spread({
226
253
  ref: ref,
227
254
  className: cn('overflow-hidden p-1 text-zinc-950 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-zinc-500 dark:text-zinc-50 dark:[&_[cmdk-group-heading]]:text-zinc-400', className)
228
255
  }, props));
229
256
  });
230
257
  CommandGroup.displayName = CommandPrimitive.Group.displayName;
231
- var CommandSeparator = /*#__PURE__*/ React.forwardRef(function(_param, ref) {
232
- var className = _param.className, props = _object_without_properties(_param, [
258
+ var CommandSeparator = /*#__PURE__*/ React.forwardRef(function(_0, _1) {
259
+ var _ref = [
260
+ _0,
261
+ _1
262
+ ], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), className = _ref2.className, props = _object_without_properties(_ref2, [
233
263
  "className"
234
- ]);
264
+ ]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
235
265
  return /*#__PURE__*/ _jsx(CommandPrimitive.Separator, _object_spread({
236
266
  ref: ref,
237
267
  className: cn('-mx-1 h-px bg-zinc-200 dark:bg-zinc-800', className)
238
268
  }, props));
239
269
  });
240
270
  CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
241
- var CommandItem = /*#__PURE__*/ React.forwardRef(function(_param, ref) {
242
- var className = _param.className, props = _object_without_properties(_param, [
271
+ var CommandItem = /*#__PURE__*/ React.forwardRef(function(_0, _1) {
272
+ var _ref = [
273
+ _0,
274
+ _1
275
+ ], _ref1 = _to_array(_ref), _ref2 = _ref1[0], _rest = _ref1.slice(1), className = _ref2.className, props = _object_without_properties(_ref2, [
243
276
  "className"
244
- ]);
277
+ ]), _rest1 = _sliced_to_array(_rest, 1), ref = _rest1[0];
245
278
  return /*#__PURE__*/ _jsx(CommandPrimitive.Item, _object_spread({
246
279
  ref: ref,
247
280
  className: cn('relative flex cursor-pointer select-none items-center rounded-xs px-4 h-10 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[disabled=true]:bg-primary1 data-[disabled=true]:text-primary2 data-[selected=true]:bg-zinc-100 data-[selected=true]:text-zinc-900 data-[disabled=true]:opacity-50 dark:data-[selected=true]:bg-zinc-800 dark:data-[selected=true]:text-zinc-50', className)
248
281
  }, props));
249
282
  });
250
283
  CommandItem.displayName = CommandPrimitive.Item.displayName;
251
- var CommandShortcut = function(_param) {
252
- var className = _param.className, props = _object_without_properties(_param, [
284
+ var CommandShortcut = function CommandShortcut(_0) {
285
+ var className = _0.className, props = _object_without_properties(_0, [
253
286
  "className"
254
287
  ]);
255
288
  return /*#__PURE__*/ _jsx("span", _object_spread({
@@ -295,20 +328,20 @@ var SearchInputSelect = /*#__PURE__*/ React.forwardRef(function(props, _ref) {
295
328
  options
296
329
  ]);
297
330
  var displayedOptions = showAll ? filteredOptions : filteredOptions.slice(0, 5);
298
- var handleFocus = function() {
331
+ var handleFocus = function handleFocus() {
299
332
  setIsFocused(true);
300
333
  };
301
- var handleBlur = function(e) {
334
+ var handleBlur = function handleBlur(e) {
302
335
  if (e.relatedTarget === null) {
303
336
  var _inputRef_current;
304
337
  setIsFocused(false);
305
338
  (_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.blur();
306
339
  }
307
340
  };
308
- var handleChange = function(value) {
341
+ var handleChange = function handleChange(value) {
309
342
  setSearch(value);
310
343
  };
311
- var handleSelect = function(option) {
344
+ var handleSelect = function handleSelect(option) {
312
345
  var _inputRef_current;
313
346
  setSearch(option.label);
314
347
  onChange === null || onChange === void 0 ? void 0 : onChange(option.value);
@@ -316,14 +349,14 @@ var SearchInputSelect = /*#__PURE__*/ React.forwardRef(function(props, _ref) {
316
349
  setIsFocused(false);
317
350
  (_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.focus();
318
351
  };
319
- var handleToggle = function() {
352
+ var handleToggle = function handleToggle() {
320
353
  setIsFocused(function(isFocused) {
321
354
  var _inputRef_current;
322
355
  isFocused && ((_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.blur());
323
356
  return !isFocused;
324
357
  });
325
358
  };
326
- var handleClear = function(event) {
359
+ var handleClear = function handleClear(event) {
327
360
  event.preventDefault();
328
361
  event.stopPropagation();
329
362
  setSearch('');
@@ -331,12 +364,12 @@ var SearchInputSelect = /*#__PURE__*/ React.forwardRef(function(props, _ref) {
331
364
  onChange === null || onChange === void 0 ? void 0 : onChange(undefined);
332
365
  setValue(undefined);
333
366
  };
334
- var handleClickOutside = function(event) {
367
+ var handleClickOutside = function handleClickOutside(event) {
335
368
  if (wrapperRef.current && !wrapperRef.current.contains(event.target)) {
336
369
  setIsFocused(false);
337
370
  }
338
371
  };
339
- var handleShowAll = function() {
372
+ var handleShowAll = function handleShowAll() {
340
373
  setShowAll(function(prev) {
341
374
  return !prev;
342
375
  });
@@ -386,7 +419,7 @@ var SearchInputSelect = /*#__PURE__*/ React.forwardRef(function(props, _ref) {
386
419
  return /*#__PURE__*/ _jsx(CommandItem, {
387
420
  value: JSON.stringify(option.value),
388
421
  disabled: option.isDisabled,
389
- onSelect: function() {
422
+ onSelect: function onSelect() {
390
423
  return handleSelect(option);
391
424
  },
392
425
  className: "tracking-normal text-primary3 w-full",