@app-studio/web 0.8.73 → 0.8.74

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 (69) hide show
  1. package/dist/components/Accordion/Accordion/Accordion.props.d.ts +91 -0
  2. package/dist/components/Accordion/Accordion/Accordion.state.d.ts +5 -0
  3. package/dist/components/Accordion/Accordion/Accordion.style.d.ts +4 -0
  4. package/dist/components/Accordion/Accordion/Accordion.type.d.ts +15 -0
  5. package/dist/components/Accordion/Accordion/Accordion.view.d.ts +22 -0
  6. package/dist/components/Accordion/Accordion.d.ts +2 -0
  7. package/dist/components/Accordion/examples/default.d.ts +2 -0
  8. package/dist/components/Accordion/examples/disabled.d.ts +2 -0
  9. package/dist/components/Accordion/examples/index.d.ts +4 -0
  10. package/dist/components/Accordion/examples/multiple.d.ts +2 -0
  11. package/dist/components/Accordion/examples/variants.d.ts +2 -0
  12. package/dist/components/ContextMenu/ContextMenu/ContextMenu.props.d.ts +120 -0
  13. package/dist/components/ContextMenu/ContextMenu/ContextMenu.state.d.ts +15 -0
  14. package/dist/components/ContextMenu/ContextMenu/ContextMenu.style.d.ts +20 -0
  15. package/dist/components/ContextMenu/ContextMenu/ContextMenu.type.d.ts +41 -0
  16. package/dist/components/ContextMenu/ContextMenu/ContextMenu.view.d.ts +20 -0
  17. package/dist/components/ContextMenu/ContextMenu.d.ts +2 -0
  18. package/dist/components/ContextMenu/examples/custom.d.ts +2 -0
  19. package/dist/components/ContextMenu/examples/default.d.ts +2 -0
  20. package/dist/components/ContextMenu/examples/index.d.ts +4 -0
  21. package/dist/components/ContextMenu/examples/sizes.d.ts +2 -0
  22. package/dist/components/ContextMenu/examples/variants.d.ts +2 -0
  23. package/dist/components/DropdownMenu/DropdownMenu/DropdownMenu.props.d.ts +117 -0
  24. package/dist/components/DropdownMenu/DropdownMenu/DropdownMenu.state.d.ts +7 -0
  25. package/dist/components/DropdownMenu/DropdownMenu/DropdownMenu.style.d.ts +17 -0
  26. package/dist/components/DropdownMenu/DropdownMenu/DropdownMenu.type.d.ts +34 -0
  27. package/dist/components/DropdownMenu/DropdownMenu/DropdownMenu.view.d.ts +19 -0
  28. package/dist/components/DropdownMenu/DropdownMenu.d.ts +2 -0
  29. package/dist/components/DropdownMenu/examples/custom.d.ts +2 -0
  30. package/dist/components/DropdownMenu/examples/default.d.ts +2 -0
  31. package/dist/components/DropdownMenu/examples/index.d.ts +5 -0
  32. package/dist/components/DropdownMenu/examples/positions.d.ts +2 -0
  33. package/dist/components/DropdownMenu/examples/sizes.d.ts +2 -0
  34. package/dist/components/DropdownMenu/examples/variants.d.ts +2 -0
  35. package/dist/components/Formik/Formik.Slider.d.ts +7 -0
  36. package/dist/components/Formik/examples/FormikSlider.d.ts +2 -0
  37. package/dist/components/Formik/examples/index.d.ts +1 -0
  38. package/dist/components/Formik/index.d.ts +1 -0
  39. package/dist/components/Icon/Icon.d.ts +3 -0
  40. package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.props.d.ts +126 -0
  41. package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.state.d.ts +8 -0
  42. package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.style.d.ts +18 -0
  43. package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.type.d.ts +34 -0
  44. package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.view.d.ts +19 -0
  45. package/dist/components/NavigationMenu/NavigationMenu.d.ts +2 -0
  46. package/dist/components/NavigationMenu/examples/default.d.ts +2 -0
  47. package/dist/components/NavigationMenu/examples/horizontal.d.ts +2 -0
  48. package/dist/components/NavigationMenu/examples/index.d.ts +4 -0
  49. package/dist/components/NavigationMenu/examples/sizes.d.ts +2 -0
  50. package/dist/components/NavigationMenu/examples/variants.d.ts +2 -0
  51. package/dist/components/index.d.ts +8 -0
  52. package/dist/pages/accordion.page.d.ts +3 -0
  53. package/dist/pages/components.page.d.ts +5 -0
  54. package/dist/pages/contextMenu.page.d.ts +3 -0
  55. package/dist/pages/dropdownMenu.page.d.ts +3 -0
  56. package/dist/pages/navigationMenu.page.d.ts +3 -0
  57. package/dist/web.cjs.development.js +1840 -378
  58. package/dist/web.cjs.development.js.map +1 -1
  59. package/dist/web.cjs.production.min.js +1 -1
  60. package/dist/web.cjs.production.min.js.map +1 -1
  61. package/dist/web.esm.js +1835 -381
  62. package/dist/web.esm.js.map +1 -1
  63. package/dist/web.umd.development.js +1811 -349
  64. package/dist/web.umd.development.js.map +1 -1
  65. package/dist/web.umd.production.min.js +1 -1
  66. package/dist/web.umd.production.min.js.map +1 -1
  67. package/package.json +1 -1
  68. package/dist/components/Slider/SliderDemo.d.ts +0 -3
  69. package/dist/utils/componentsPageImports.d.ts +0 -6
@@ -4,17 +4,17 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6
6
 
7
- require('core-js/modules/es.symbol.description.js');
8
7
  var React = require('react');
9
8
  var React__default = _interopDefault(React);
9
+ require('core-js/modules/es.array.includes.js');
10
+ require('core-js/modules/es.array.iterator.js');
11
+ require('core-js/modules/es.string.includes.js');
12
+ require('core-js/modules/web.dom-collections.iterator.js');
10
13
  require('core-js/modules/es.object.assign.js');
11
14
  var appStudio = require('app-studio');
12
- require('core-js/modules/es.array.iterator.js');
15
+ require('core-js/modules/es.symbol.description.js');
13
16
  require('core-js/modules/es.parse-float.js');
14
- require('core-js/modules/web.dom-collections.iterator.js');
15
- require('core-js/modules/es.array.includes.js');
16
17
  var reactRouterDom = require('react-router-dom');
17
- require('core-js/modules/es.string.includes.js');
18
18
  require('core-js/modules/es.string.starts-with.js');
19
19
  var format = _interopDefault(require('date-fns/format'));
20
20
  var formik = require('formik');
@@ -25,6 +25,224 @@ require('core-js/modules/web.url-search-params.js');
25
25
  var zustand = require('zustand');
26
26
  var Layout = require('src/components/Layout');
27
27
 
28
+ var useAccordionState = function useAccordionState(defaultExpandedItems, allowMultiple) {
29
+ if (defaultExpandedItems === void 0) {
30
+ defaultExpandedItems = [];
31
+ }
32
+ if (allowMultiple === void 0) {
33
+ allowMultiple = false;
34
+ }
35
+ var [expandedItems, setExpandedItems] = React.useState(defaultExpandedItems);
36
+ var toggleItem = itemId => {
37
+ setExpandedItems(prevExpandedItems => {
38
+ // Check if the item is already expanded
39
+ var isExpanded = prevExpandedItems.includes(itemId);
40
+ if (isExpanded) {
41
+ // If expanded, remove it from the list
42
+ return prevExpandedItems.filter(id => id !== itemId);
43
+ } else {
44
+ // If not expanded, add it to the list
45
+ // If allowMultiple is false, replace the current expanded item
46
+ return allowMultiple ? [...prevExpandedItems, itemId] : [itemId];
47
+ }
48
+ });
49
+ };
50
+ var isItemExpanded = itemId => {
51
+ return expandedItems.includes(itemId);
52
+ };
53
+ return {
54
+ expandedItems,
55
+ toggleItem,
56
+ isItemExpanded
57
+ };
58
+ };
59
+
60
+ var AccordionShapes = {
61
+ sharp: {
62
+ borderRadius: 0
63
+ },
64
+ rounded: {
65
+ borderRadius: 8
66
+ }
67
+ };
68
+ var AccordionVariants = {
69
+ default: {
70
+ backgroundColor: 'transparent',
71
+ borderWidth: 0
72
+ },
73
+ outline: {
74
+ borderWidth: 1,
75
+ borderStyle: 'solid',
76
+ borderColor: 'color.gray.200'
77
+ },
78
+ filled: {
79
+ backgroundColor: 'color.gray.50'
80
+ }
81
+ };
82
+
83
+ // Create context for the Accordion
84
+ var AccordionContext = /*#__PURE__*/React.createContext({
85
+ expandedItems: [],
86
+ toggleItem: () => {},
87
+ isItemExpanded: () => false
88
+ });
89
+ // Provider component for the Accordion context
90
+ var AccordionProvider = _ref => {
91
+ var {
92
+ children,
93
+ value
94
+ } = _ref;
95
+ return /*#__PURE__*/React__default.createElement(AccordionContext.Provider, {
96
+ value: value
97
+ }, children);
98
+ };
99
+ // Hook to use the Accordion context
100
+ var useAccordionContext = () => {
101
+ var context = React.useContext(AccordionContext);
102
+ if (!context) {
103
+ throw new Error('useAccordionContext must be used within an AccordionProvider');
104
+ }
105
+ return context;
106
+ };
107
+ // Accordion Item component
108
+ var AccordionItem = _ref2 => {
109
+ var {
110
+ id,
111
+ children,
112
+ isDisabled = false,
113
+ views
114
+ } = _ref2;
115
+ var {
116
+ isItemExpanded
117
+ } = useAccordionContext();
118
+ var isExpanded = isItemExpanded(id);
119
+ return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
120
+ borderWidth: 1,
121
+ borderStyle: "solid",
122
+ borderColor: "color.gray.200",
123
+ marginBottom: 8,
124
+ overflow: "hidden",
125
+ opacity: isDisabled ? 0.5 : 1,
126
+ pointerEvents: isDisabled ? 'none' : 'auto'
127
+ }, views == null ? void 0 : views.item), React__default.Children.map(children, child => {
128
+ if (/*#__PURE__*/React__default.isValidElement(child)) {
129
+ // Pass the id and isExpanded props to AccordionHeader and AccordionContent
130
+ return /*#__PURE__*/React__default.cloneElement(child, Object.assign({}, child.props, {
131
+ id,
132
+ isExpanded
133
+ }));
134
+ }
135
+ return child;
136
+ }));
137
+ };
138
+ // Accordion Header component
139
+ var AccordionHeader = _ref3 => {
140
+ var {
141
+ children,
142
+ id,
143
+ isExpanded,
144
+ views
145
+ } = _ref3;
146
+ var {
147
+ toggleItem
148
+ } = useAccordionContext();
149
+ var handleClick = () => {
150
+ if (id) {
151
+ toggleItem(id);
152
+ }
153
+ };
154
+ return /*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
155
+ padding: 16,
156
+ cursor: "pointer",
157
+ alignItems: "center",
158
+ justifyContent: "space-between",
159
+ backgroundColor: "color.white",
160
+ onClick: handleClick
161
+ }, views == null ? void 0 : views.container), children, /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
162
+ width: 24,
163
+ height: 24,
164
+ display: "flex",
165
+ alignItems: "center",
166
+ justifyContent: "center",
167
+ transition: "transform 0.2s ease",
168
+ transform: isExpanded ? 'rotate(180deg)' : 'rotate(0deg)'
169
+ }, views == null ? void 0 : views.icon), /*#__PURE__*/React__default.createElement("svg", {
170
+ width: "16",
171
+ height: "16",
172
+ viewBox: "0 0 24 24",
173
+ fill: "none",
174
+ xmlns: "http://www.w3.org/2000/svg"
175
+ }, /*#__PURE__*/React__default.createElement("path", {
176
+ d: "M16.59 8.59L12 13.17L7.41 8.59L6 10L12 16L18 10L16.59 8.59Z",
177
+ fill: "currentColor"
178
+ }))));
179
+ };
180
+ // Accordion Content component
181
+ var AccordionContent = _ref4 => {
182
+ var {
183
+ children,
184
+ isExpanded,
185
+ views
186
+ } = _ref4;
187
+ if (!isExpanded) {
188
+ return null;
189
+ }
190
+ return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
191
+ padding: 16,
192
+ backgroundColor: "color.white",
193
+ maxHeight: isExpanded ? '1000px' : '0',
194
+ transition: "max-height 0.3s ease-in-out",
195
+ overflow: "hidden"
196
+ }, views == null ? void 0 : views.container), children);
197
+ };
198
+ // Main Accordion View component
199
+ var AccordionView = _ref5 => {
200
+ var {
201
+ children,
202
+ shape = 'rounded',
203
+ variant = 'default',
204
+ views
205
+ } = _ref5;
206
+ return /*#__PURE__*/React__default.createElement(appStudio.Vertical, Object.assign({
207
+ width: "100%"
208
+ }, AccordionShapes[shape], AccordionVariants[variant], views == null ? void 0 : views.container), children);
209
+ };
210
+
211
+ /**
212
+ * Accordion component for displaying collapsible content panels.
213
+ */
214
+ var AccordionComponent = _ref => {
215
+ var {
216
+ children,
217
+ allowMultiple = false,
218
+ defaultExpandedItems = [],
219
+ shape = 'rounded',
220
+ variant = 'default',
221
+ views
222
+ } = _ref;
223
+ var {
224
+ expandedItems,
225
+ toggleItem,
226
+ isItemExpanded
227
+ } = useAccordionState(defaultExpandedItems, allowMultiple);
228
+ return /*#__PURE__*/React__default.createElement(AccordionProvider, {
229
+ value: {
230
+ expandedItems,
231
+ toggleItem,
232
+ isItemExpanded
233
+ }
234
+ }, /*#__PURE__*/React__default.createElement(AccordionView, {
235
+ shape: shape,
236
+ variant: variant,
237
+ views: views
238
+ }, children));
239
+ };
240
+ var Accordion = AccordionComponent;
241
+ // Assign the sub-components to the main component
242
+ Accordion.Item = AccordionItem;
243
+ Accordion.Header = AccordionHeader;
244
+ Accordion.Content = AccordionContent;
245
+
28
246
  var Top = props => (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
29
247
  marginBottom: "auto"
30
248
  }, props)));
@@ -263,17 +481,17 @@ var _excluded$4 = ["widthHeight", "color", "transform", "orientation", "children
263
481
  _excluded27 = ["widthHeight", "color", "filled", "strokeWidth"],
264
482
  _excluded28 = ["widthHeight", "color", "filled", "strokeWidth"],
265
483
  _excluded29 = ["widthHeight", "color", "filled", "strokeWidth"],
266
- _excluded30 = ["widthHeight", "color", "strokeWidth", "filled"],
484
+ _excluded30 = ["widthHeight", "color", "filled", "strokeWidth"],
267
485
  _excluded31 = ["widthHeight", "color", "filled", "strokeWidth"],
268
486
  _excluded32 = ["widthHeight", "color", "strokeWidth", "filled"],
269
487
  _excluded33 = ["widthHeight", "color", "filled", "strokeWidth"],
270
488
  _excluded34 = ["widthHeight", "color", "strokeWidth", "filled"],
271
489
  _excluded35 = ["widthHeight", "color", "filled", "strokeWidth"],
272
490
  _excluded36 = ["widthHeight", "color", "strokeWidth", "filled"],
273
- _excluded37 = ["widthHeight", "color", "strokeWidth", "filled"],
491
+ _excluded37 = ["widthHeight", "color", "filled", "strokeWidth"],
274
492
  _excluded38 = ["widthHeight", "color", "strokeWidth", "filled"],
275
- _excluded39 = ["widthHeight", "color", "filled", "strokeWidth"],
276
- _excluded40 = ["widthHeight", "color", "filled", "strokeWidth"],
493
+ _excluded39 = ["widthHeight", "color", "strokeWidth", "filled"],
494
+ _excluded40 = ["widthHeight", "color", "strokeWidth", "filled"],
277
495
  _excluded41 = ["widthHeight", "color", "filled", "strokeWidth"],
278
496
  _excluded42 = ["widthHeight", "color", "filled", "strokeWidth"],
279
497
  _excluded43 = ["widthHeight", "color", "filled", "strokeWidth"],
@@ -284,10 +502,10 @@ var _excluded$4 = ["widthHeight", "color", "transform", "orientation", "children
284
502
  _excluded48 = ["widthHeight", "color", "filled", "strokeWidth"],
285
503
  _excluded49 = ["widthHeight", "color", "filled", "strokeWidth"],
286
504
  _excluded50 = ["widthHeight", "color", "filled", "strokeWidth"],
287
- _excluded51 = ["widthHeight", "color", "strokeWidth", "filled"],
288
- _excluded52 = ["widthHeight", "color", "strokeWidth", "filled"],
289
- _excluded53 = ["widthHeight", "color", "filled", "strokeWidth"],
290
- _excluded54 = ["widthHeight", "color", "filled", "strokeWidth"],
505
+ _excluded51 = ["widthHeight", "color", "filled", "strokeWidth"],
506
+ _excluded52 = ["widthHeight", "color", "filled", "strokeWidth"],
507
+ _excluded53 = ["widthHeight", "color", "strokeWidth", "filled"],
508
+ _excluded54 = ["widthHeight", "color", "strokeWidth", "filled"],
291
509
  _excluded55 = ["widthHeight", "color", "filled", "strokeWidth"],
292
510
  _excluded56 = ["widthHeight", "color", "filled", "strokeWidth"],
293
511
  _excluded57 = ["widthHeight", "color", "filled", "strokeWidth"],
@@ -299,14 +517,16 @@ var _excluded$4 = ["widthHeight", "color", "transform", "orientation", "children
299
517
  _excluded63 = ["widthHeight", "color", "filled", "strokeWidth"],
300
518
  _excluded64 = ["widthHeight", "color", "filled", "strokeWidth"],
301
519
  _excluded65 = ["widthHeight", "color", "filled", "strokeWidth"],
302
- _excluded66 = ["widthHeight", "color", "strokeWidth", "filled"],
303
- _excluded67 = ["widthHeight", "color", "strokeWidth", "filled"],
520
+ _excluded66 = ["widthHeight", "color", "filled", "strokeWidth"],
521
+ _excluded67 = ["widthHeight", "color", "filled", "strokeWidth"],
304
522
  _excluded68 = ["widthHeight", "color", "strokeWidth", "filled"],
305
523
  _excluded69 = ["widthHeight", "color", "strokeWidth", "filled"],
306
524
  _excluded70 = ["widthHeight", "color", "strokeWidth", "filled"],
307
525
  _excluded71 = ["widthHeight", "color", "strokeWidth", "filled"],
308
526
  _excluded72 = ["widthHeight", "color", "strokeWidth", "filled"],
309
- _excluded73 = ["widthHeight", "color", "strokeWidth", "filled"];
527
+ _excluded73 = ["widthHeight", "color", "strokeWidth", "filled"],
528
+ _excluded74 = ["widthHeight", "color", "strokeWidth", "filled"],
529
+ _excluded75 = ["widthHeight", "color", "strokeWidth", "filled"];
310
530
  // Default wrapper component for consistent sizing and styling
311
531
  var IconWrapper = _ref => {
312
532
  var {
@@ -335,8 +555,7 @@ var getSvgProps = (filled, color, strokeWidth) => {
335
555
  strokeLinejoin: 'round'
336
556
  };
337
557
  };
338
- // Example Icon Component: ChevronIcon
339
- var ChevronIcon = _ref2 => {
558
+ var UserIcon = _ref2 => {
340
559
  var {
341
560
  widthHeight = 24,
342
561
  color = 'currentColor',
@@ -352,10 +571,10 @@ var ChevronIcon = _ref2 => {
352
571
  "aria-hidden": "true",
353
572
  focusable: "false"
354
573
  }, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React__default.createElement("path", {
355
- d: "M12.771 7.115a.829.829 0 0 0-1.2 0L3 15.686l1.2 1.2 7.971-7.971 7.972 7.971 1.2-1.2-8.572-8.571Z"
574
+ d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"
356
575
  })));
357
576
  };
358
- var DragHandleIcon = _ref3 => {
577
+ var HelpIcon = _ref3 => {
359
578
  var {
360
579
  widthHeight = 24,
361
580
  color = 'currentColor',
@@ -370,6 +589,45 @@ var DragHandleIcon = _ref3 => {
370
589
  viewBox: "0 0 24 24",
371
590
  "aria-hidden": "true",
372
591
  focusable: "false"
592
+ }, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React__default.createElement("path", {
593
+ d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"
594
+ })));
595
+ };
596
+ // Example Icon Component: ChevronIcon
597
+ var ChevronIcon = _ref4 => {
598
+ var {
599
+ widthHeight = 24,
600
+ color = 'currentColor',
601
+ filled = true,
602
+ strokeWidth = 1
603
+ } = _ref4,
604
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded4);
605
+ return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
606
+ widthHeight: widthHeight,
607
+ color: color
608
+ }, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
609
+ viewBox: "0 0 24 24",
610
+ "aria-hidden": "true",
611
+ focusable: "false"
612
+ }, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React__default.createElement("path", {
613
+ d: "M12.771 7.115a.829.829 0 0 0-1.2 0L3 15.686l1.2 1.2 7.971-7.971 7.972 7.971 1.2-1.2-8.572-8.571Z"
614
+ })));
615
+ };
616
+ var DragHandleIcon = _ref5 => {
617
+ var {
618
+ widthHeight = 24,
619
+ color = 'currentColor',
620
+ filled = true,
621
+ strokeWidth = 1
622
+ } = _ref5,
623
+ props = _objectWithoutPropertiesLoose(_ref5, _excluded5);
624
+ return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
625
+ widthHeight: widthHeight,
626
+ color: color
627
+ }, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
628
+ viewBox: "0 0 24 24",
629
+ "aria-hidden": "true",
630
+ focusable: "false"
373
631
  }, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("circle", {
374
632
  cx: "9",
375
633
  cy: "6",
@@ -397,14 +655,14 @@ var DragHandleIcon = _ref3 => {
397
655
  }))));
398
656
  };
399
657
  // File Icon Component
400
- var FileIcon = _ref4 => {
658
+ var FileIcon = _ref6 => {
401
659
  var {
402
660
  widthHeight = 24,
403
661
  color = 'currentColor',
404
662
  filled = true,
405
663
  strokeWidth = 1
406
- } = _ref4,
407
- props = _objectWithoutPropertiesLoose(_ref4, _excluded4);
664
+ } = _ref6,
665
+ props = _objectWithoutPropertiesLoose(_ref6, _excluded6);
408
666
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
409
667
  widthHeight: widthHeight,
410
668
  color: color
@@ -425,14 +683,14 @@ var FileIcon = _ref4 => {
425
683
  })));
426
684
  };
427
685
  // Video Icon Component
428
- var VideoIcon = _ref5 => {
686
+ var VideoIcon = _ref7 => {
429
687
  var {
430
688
  widthHeight = 24,
431
689
  color = 'currentColor',
432
690
  filled = true,
433
691
  strokeWidth = 1
434
- } = _ref5,
435
- props = _objectWithoutPropertiesLoose(_ref5, _excluded5);
692
+ } = _ref7,
693
+ props = _objectWithoutPropertiesLoose(_ref7, _excluded7);
436
694
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
437
695
  widthHeight: widthHeight,
438
696
  color: color
@@ -458,14 +716,14 @@ var VideoIcon = _ref5 => {
458
716
  })));
459
717
  };
460
718
  // Image Icon Component
461
- var ImageIcon = _ref6 => {
719
+ var ImageIcon = _ref8 => {
462
720
  var {
463
721
  widthHeight = 24,
464
722
  color = 'currentColor',
465
723
  filled = true,
466
724
  strokeWidth = 1
467
- } = _ref6,
468
- props = _objectWithoutPropertiesLoose(_ref6, _excluded6);
725
+ } = _ref8,
726
+ props = _objectWithoutPropertiesLoose(_ref8, _excluded8);
469
727
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
470
728
  widthHeight: widthHeight,
471
729
  color: color
@@ -497,14 +755,14 @@ var ImageIcon = _ref6 => {
497
755
  strokeWidth: strokeWidth
498
756
  })));
499
757
  };
500
- var TwitterIcon = _ref7 => {
758
+ var TwitterIcon = _ref9 => {
501
759
  var {
502
760
  widthHeight = 24,
503
761
  color = 'currentColor',
504
762
  filled = true,
505
763
  strokeWidth = 1
506
- } = _ref7,
507
- props = _objectWithoutPropertiesLoose(_ref7, _excluded7);
764
+ } = _ref9,
765
+ props = _objectWithoutPropertiesLoose(_ref9, _excluded9);
508
766
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
509
767
  widthHeight: widthHeight,
510
768
  color: color
@@ -519,14 +777,14 @@ var TwitterIcon = _ref7 => {
519
777
  strokeWidth: filled ? 0 : strokeWidth
520
778
  })));
521
779
  };
522
- var XIcon = _ref8 => {
780
+ var XIcon = _ref10 => {
523
781
  var {
524
782
  widthHeight = 24,
525
783
  color = 'currentColor',
526
784
  filled = true,
527
785
  strokeWidth = 1
528
- } = _ref8,
529
- props = _objectWithoutPropertiesLoose(_ref8, _excluded8);
786
+ } = _ref10,
787
+ props = _objectWithoutPropertiesLoose(_ref10, _excluded10);
530
788
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
531
789
  widthHeight: widthHeight,
532
790
  color: color
@@ -542,14 +800,14 @@ var XIcon = _ref8 => {
542
800
  })));
543
801
  };
544
802
  // Example of a Twitch Icon
545
- var TwitchIcon = _ref9 => {
803
+ var TwitchIcon = _ref11 => {
546
804
  var {
547
805
  widthHeight = 24,
548
806
  color = 'currentColor',
549
807
  filled = true,
550
808
  strokeWidth = 1
551
- } = _ref9,
552
- props = _objectWithoutPropertiesLoose(_ref9, _excluded9);
809
+ } = _ref11,
810
+ props = _objectWithoutPropertiesLoose(_ref11, _excluded11);
553
811
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
554
812
  widthHeight: widthHeight,
555
813
  color: color
@@ -570,14 +828,14 @@ var TwitchIcon = _ref9 => {
570
828
  })));
571
829
  };
572
830
  // Example of another Icon: CloseIcon
573
- var CloseIcon = _ref10 => {
831
+ var CloseIcon = _ref12 => {
574
832
  var {
575
833
  widthHeight = 24,
576
834
  color = 'currentColor',
577
835
  filled = false,
578
836
  strokeWidth = 1
579
- } = _ref10,
580
- props = _objectWithoutPropertiesLoose(_ref10, _excluded10);
837
+ } = _ref12,
838
+ props = _objectWithoutPropertiesLoose(_ref12, _excluded12);
581
839
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
582
840
  widthHeight: widthHeight,
583
841
  color: color
@@ -599,14 +857,14 @@ var CloseIcon = _ref10 => {
599
857
  y2: "18"
600
858
  })));
601
859
  };
602
- var InstagramIcon = _ref11 => {
860
+ var InstagramIcon = _ref13 => {
603
861
  var {
604
862
  widthHeight = 24,
605
863
  color = 'currentColor',
606
864
  filled = false,
607
865
  strokeWidth = 1
608
- } = _ref11,
609
- props = _objectWithoutPropertiesLoose(_ref11, _excluded11);
866
+ } = _ref13,
867
+ props = _objectWithoutPropertiesLoose(_ref13, _excluded13);
610
868
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
611
869
  widthHeight: widthHeight,
612
870
  color: color
@@ -630,14 +888,14 @@ var InstagramIcon = _ref11 => {
630
888
  y2: "6.5"
631
889
  })));
632
890
  };
633
- var YoutubeIcon = _ref12 => {
891
+ var YoutubeIcon = _ref14 => {
634
892
  var {
635
893
  widthHeight = 24,
636
894
  color = 'currentColor',
637
895
  filled = true,
638
896
  strokeWidth = 1
639
- } = _ref12,
640
- props = _objectWithoutPropertiesLoose(_ref12, _excluded12);
897
+ } = _ref14,
898
+ props = _objectWithoutPropertiesLoose(_ref14, _excluded14);
641
899
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
642
900
  widthHeight: widthHeight,
643
901
  color: color
@@ -658,14 +916,14 @@ var YoutubeIcon = _ref12 => {
658
916
  strokeWidth: strokeWidth
659
917
  })));
660
918
  };
661
- var FacebookIcon = _ref13 => {
919
+ var FacebookIcon = _ref15 => {
662
920
  var {
663
921
  widthHeight = 24,
664
922
  color = 'currentColor',
665
923
  filled = true,
666
924
  strokeWidth = 1
667
- } = _ref13,
668
- props = _objectWithoutPropertiesLoose(_ref13, _excluded13);
925
+ } = _ref15,
926
+ props = _objectWithoutPropertiesLoose(_ref15, _excluded15);
669
927
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
670
928
  widthHeight: widthHeight,
671
929
  color: color
@@ -680,14 +938,14 @@ var FacebookIcon = _ref13 => {
680
938
  strokeWidth: filled ? 0 : strokeWidth
681
939
  })));
682
940
  };
683
- var LinkedinIcon = _ref14 => {
941
+ var LinkedinIcon = _ref16 => {
684
942
  var {
685
943
  widthHeight = 24,
686
944
  color = 'currentColor',
687
945
  filled = true,
688
946
  strokeWidth = 1
689
- } = _ref14,
690
- props = _objectWithoutPropertiesLoose(_ref14, _excluded14);
947
+ } = _ref16,
948
+ props = _objectWithoutPropertiesLoose(_ref16, _excluded16);
691
949
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
692
950
  widthHeight: widthHeight,
693
951
  color: color
@@ -706,14 +964,14 @@ var LinkedinIcon = _ref14 => {
706
964
  r: "2"
707
965
  })));
708
966
  };
709
- var ThreadsIcon = _ref15 => {
967
+ var ThreadsIcon = _ref17 => {
710
968
  var {
711
969
  widthHeight = 24,
712
970
  color = 'currentColor',
713
971
  filled = false,
714
972
  strokeWidth = 1
715
- } = _ref15,
716
- props = _objectWithoutPropertiesLoose(_ref15, _excluded15);
973
+ } = _ref17,
974
+ props = _objectWithoutPropertiesLoose(_ref17, _excluded17);
717
975
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
718
976
  widthHeight: widthHeight,
719
977
  color: color
@@ -728,15 +986,15 @@ var ThreadsIcon = _ref15 => {
728
986
  })));
729
987
  };
730
988
  // Example Refactored Icon: MinusIcon without undefined 'padding' prop
731
- var MinusIcon = _ref16 => {
989
+ var MinusIcon = _ref18 => {
732
990
  var {
733
991
  widthHeight = 24,
734
992
  color = 'currentColor',
735
993
  filled = false,
736
994
  // Assuming minus can be filled; adjust as needed
737
995
  strokeWidth = 1
738
- } = _ref16,
739
- props = _objectWithoutPropertiesLoose(_ref16, _excluded16);
996
+ } = _ref18,
997
+ props = _objectWithoutPropertiesLoose(_ref18, _excluded18);
740
998
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
741
999
  widthHeight: widthHeight,
742
1000
  color: color
@@ -753,14 +1011,14 @@ var MinusIcon = _ref16 => {
753
1011
  })));
754
1012
  };
755
1013
  // Example Refactored Icon: InfoIcon with accessibility enhancements
756
- var InfoIcon = _ref17 => {
1014
+ var InfoIcon = _ref19 => {
757
1015
  var {
758
1016
  widthHeight = 24,
759
1017
  color = 'currentColor',
760
1018
  filled = false,
761
1019
  strokeWidth = 1
762
- } = _ref17,
763
- props = _objectWithoutPropertiesLoose(_ref17, _excluded17);
1020
+ } = _ref19,
1021
+ props = _objectWithoutPropertiesLoose(_ref19, _excluded19);
764
1022
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
765
1023
  widthHeight: widthHeight,
766
1024
  color: color
@@ -774,14 +1032,14 @@ var InfoIcon = _ref17 => {
774
1032
  d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"
775
1033
  })));
776
1034
  };
777
- var PlayIcon = _ref18 => {
1035
+ var PlayIcon = _ref20 => {
778
1036
  var {
779
1037
  widthHeight = 24,
780
1038
  color = 'currentColor',
781
1039
  filled = true,
782
1040
  strokeWidth = 1
783
- } = _ref18,
784
- props = _objectWithoutPropertiesLoose(_ref18, _excluded18);
1041
+ } = _ref20,
1042
+ props = _objectWithoutPropertiesLoose(_ref20, _excluded20);
785
1043
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
786
1044
  widthHeight: widthHeight,
787
1045
  color: color
@@ -793,14 +1051,14 @@ var PlayIcon = _ref18 => {
793
1051
  d: "M8 5v14l11-7z"
794
1052
  })));
795
1053
  };
796
- var PauseIcon = _ref19 => {
1054
+ var PauseIcon = _ref21 => {
797
1055
  var {
798
1056
  widthHeight = 24,
799
1057
  color = 'currentColor',
800
1058
  filled = true,
801
1059
  strokeWidth = 1
802
- } = _ref19,
803
- props = _objectWithoutPropertiesLoose(_ref19, _excluded19);
1060
+ } = _ref21,
1061
+ props = _objectWithoutPropertiesLoose(_ref21, _excluded21);
804
1062
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
805
1063
  widthHeight: widthHeight,
806
1064
  color: color
@@ -812,14 +1070,14 @@ var PauseIcon = _ref19 => {
812
1070
  d: "M6 4h4v16H6V4zm8 0h4v16h-4V4z"
813
1071
  })));
814
1072
  };
815
- var HeartIcon = _ref20 => {
1073
+ var HeartIcon = _ref22 => {
816
1074
  var {
817
1075
  widthHeight = 24,
818
1076
  color = 'currentColor',
819
1077
  filled = true,
820
1078
  strokeWidth = 1
821
- } = _ref20,
822
- props = _objectWithoutPropertiesLoose(_ref20, _excluded20);
1079
+ } = _ref22,
1080
+ props = _objectWithoutPropertiesLoose(_ref22, _excluded22);
823
1081
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
824
1082
  widthHeight: widthHeight,
825
1083
  color: color
@@ -831,14 +1089,14 @@ var HeartIcon = _ref20 => {
831
1089
  d: "M20.84 4.61c-1.54-1.56-4.04-1.56-5.59 0l-.7.72-.7-.72a3.95 3.95 0 0 0-5.59 0c-1.56 1.56-1.56 4.09 0 5.66l6.29 6.36 6.29-6.36c1.56-1.56 1.56-4.09 0-5.66z"
832
1090
  })));
833
1091
  };
834
- var StarIcon = _ref21 => {
1092
+ var StarIcon = _ref23 => {
835
1093
  var {
836
1094
  widthHeight = 24,
837
1095
  color = 'currentColor',
838
1096
  filled = true,
839
1097
  strokeWidth = 1
840
- } = _ref21,
841
- props = _objectWithoutPropertiesLoose(_ref21, _excluded21);
1098
+ } = _ref23,
1099
+ props = _objectWithoutPropertiesLoose(_ref23, _excluded23);
842
1100
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
843
1101
  widthHeight: widthHeight,
844
1102
  color: color
@@ -850,14 +1108,14 @@ var StarIcon = _ref21 => {
850
1108
  points: "12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"
851
1109
  })));
852
1110
  };
853
- var SaveIcon = _ref22 => {
1111
+ var SaveIcon = _ref24 => {
854
1112
  var {
855
1113
  widthHeight = 24,
856
1114
  color = 'currentColor',
857
1115
  filled = false,
858
1116
  strokeWidth = 1
859
- } = _ref22,
860
- props = _objectWithoutPropertiesLoose(_ref22, _excluded22);
1117
+ } = _ref24,
1118
+ props = _objectWithoutPropertiesLoose(_ref24, _excluded24);
861
1119
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
862
1120
  widthHeight: widthHeight,
863
1121
  color: color
@@ -873,14 +1131,14 @@ var SaveIcon = _ref22 => {
873
1131
  points: "7 3 7 8 15 8"
874
1132
  })));
875
1133
  };
876
- var WarningIcon = _ref23 => {
1134
+ var WarningIcon = _ref25 => {
877
1135
  var {
878
1136
  widthHeight = 24,
879
1137
  color = 'currentColor',
880
1138
  filled = false,
881
1139
  strokeWidth = 1
882
- } = _ref23,
883
- props = _objectWithoutPropertiesLoose(_ref23, _excluded23);
1140
+ } = _ref25,
1141
+ props = _objectWithoutPropertiesLoose(_ref25, _excluded25);
884
1142
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
885
1143
  widthHeight: widthHeight,
886
1144
  color: color
@@ -904,14 +1162,14 @@ var WarningIcon = _ref23 => {
904
1162
  y2: "15"
905
1163
  })));
906
1164
  };
907
- var BatteryIcon = _ref24 => {
1165
+ var BatteryIcon = _ref26 => {
908
1166
  var {
909
1167
  widthHeight = 24,
910
1168
  color = 'currentColor',
911
1169
  filled = true,
912
1170
  strokeWidth = 1
913
- } = _ref24,
914
- props = _objectWithoutPropertiesLoose(_ref24, _excluded24);
1171
+ } = _ref26,
1172
+ props = _objectWithoutPropertiesLoose(_ref26, _excluded26);
915
1173
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
916
1174
  widthHeight: widthHeight,
917
1175
  color: color
@@ -923,14 +1181,14 @@ var BatteryIcon = _ref24 => {
923
1181
  d: "M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z"
924
1182
  })));
925
1183
  };
926
- var BookmarkIcon = _ref25 => {
1184
+ var BookmarkIcon = _ref27 => {
927
1185
  var {
928
1186
  widthHeight = 24,
929
1187
  color = 'currentColor',
930
1188
  filled = false,
931
1189
  strokeWidth = 1
932
- } = _ref25,
933
- props = _objectWithoutPropertiesLoose(_ref25, _excluded25);
1190
+ } = _ref27,
1191
+ props = _objectWithoutPropertiesLoose(_ref27, _excluded27);
934
1192
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
935
1193
  widthHeight: widthHeight,
936
1194
  color: color
@@ -942,14 +1200,14 @@ var BookmarkIcon = _ref25 => {
942
1200
  d: "M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2z"
943
1201
  })));
944
1202
  };
945
- var CloudIcon = _ref26 => {
1203
+ var CloudIcon = _ref28 => {
946
1204
  var {
947
1205
  widthHeight = 24,
948
1206
  color = 'currentColor',
949
1207
  filled = true,
950
1208
  strokeWidth = 1
951
- } = _ref26,
952
- props = _objectWithoutPropertiesLoose(_ref26, _excluded26);
1209
+ } = _ref28,
1210
+ props = _objectWithoutPropertiesLoose(_ref28, _excluded28);
953
1211
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
954
1212
  widthHeight: widthHeight,
955
1213
  color: color
@@ -961,14 +1219,14 @@ var CloudIcon = _ref26 => {
961
1219
  d: "M18 10h-1.26A8 8 0 109 20h9a5 5 0 000-10z"
962
1220
  })));
963
1221
  };
964
- var CopyIcon = _ref27 => {
1222
+ var CopyIcon = _ref29 => {
965
1223
  var {
966
1224
  widthHeight = 24,
967
1225
  color = 'currentColor',
968
1226
  filled = false,
969
1227
  strokeWidth = 1
970
- } = _ref27,
971
- props = _objectWithoutPropertiesLoose(_ref27, _excluded27);
1228
+ } = _ref29,
1229
+ props = _objectWithoutPropertiesLoose(_ref29, _excluded29);
972
1230
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
973
1231
  widthHeight: widthHeight,
974
1232
  color: color
@@ -987,14 +1245,14 @@ var CopyIcon = _ref27 => {
987
1245
  d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"
988
1246
  })));
989
1247
  };
990
- var DustBinIcon = _ref28 => {
1248
+ var DustBinIcon = _ref30 => {
991
1249
  var {
992
1250
  widthHeight = 24,
993
1251
  color = 'currentColor',
994
1252
  filled = false,
995
1253
  strokeWidth = 1
996
- } = _ref28,
997
- props = _objectWithoutPropertiesLoose(_ref28, _excluded28);
1254
+ } = _ref30,
1255
+ props = _objectWithoutPropertiesLoose(_ref30, _excluded30);
998
1256
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
999
1257
  widthHeight: widthHeight,
1000
1258
  color: color
@@ -1006,14 +1264,15 @@ var DustBinIcon = _ref28 => {
1006
1264
  d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"
1007
1265
  })));
1008
1266
  };
1009
- var EditIcon = _ref29 => {
1267
+ var DeleteIcon = DustBinIcon;
1268
+ var EditIcon = _ref31 => {
1010
1269
  var {
1011
1270
  widthHeight = 24,
1012
1271
  color = 'currentColor',
1013
1272
  filled = false,
1014
1273
  strokeWidth = 1
1015
- } = _ref29,
1016
- props = _objectWithoutPropertiesLoose(_ref29, _excluded29);
1274
+ } = _ref31,
1275
+ props = _objectWithoutPropertiesLoose(_ref31, _excluded31);
1017
1276
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1018
1277
  widthHeight: widthHeight,
1019
1278
  color: color
@@ -1025,14 +1284,14 @@ var EditIcon = _ref29 => {
1025
1284
  d: "M18.3785 8.44975L8.9636 17.8648C8.6844 18.144 8.3288 18.3343 7.94161 18.4117L4.99988 19.0001L5.58823 16.0583C5.66566 15.6711 5.85597 15.3155 6.13517 15.0363L15.5501 5.62132M18.3785 8.44975L19.7927 7.03553C20.1832 6.64501 20.1832 6.01184 19.7927 5.62132L18.3785 4.20711C17.988 3.81658 17.3548 3.81658 16.9643 4.20711L15.5501 5.62132M18.3785 8.44975L15.5501 5.62132"
1026
1285
  })));
1027
1286
  };
1028
- var ErrorIcon = _ref30 => {
1287
+ var ErrorIcon = _ref32 => {
1029
1288
  var {
1030
1289
  widthHeight = 24,
1031
1290
  color = 'currentColor',
1032
1291
  strokeWidth = 1,
1033
1292
  filled = true
1034
- } = _ref30,
1035
- props = _objectWithoutPropertiesLoose(_ref30, _excluded30);
1293
+ } = _ref32,
1294
+ props = _objectWithoutPropertiesLoose(_ref32, _excluded32);
1036
1295
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1037
1296
  widthHeight: widthHeight,
1038
1297
  color: color
@@ -1058,14 +1317,14 @@ var ErrorIcon = _ref30 => {
1058
1317
  stroke: filled ? 'white' : color
1059
1318
  })));
1060
1319
  };
1061
- var DownloadIcon = _ref31 => {
1320
+ var DownloadIcon = _ref33 => {
1062
1321
  var {
1063
1322
  widthHeight = 24,
1064
1323
  color = 'currentColor',
1065
1324
  filled = true,
1066
1325
  strokeWidth = 1
1067
- } = _ref31,
1068
- props = _objectWithoutPropertiesLoose(_ref31, _excluded31);
1326
+ } = _ref33,
1327
+ props = _objectWithoutPropertiesLoose(_ref33, _excluded33);
1069
1328
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1070
1329
  widthHeight: widthHeight,
1071
1330
  color: color
@@ -1077,14 +1336,14 @@ var DownloadIcon = _ref31 => {
1077
1336
  d: "M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"
1078
1337
  })));
1079
1338
  };
1080
- var MenuIcon = _ref32 => {
1339
+ var MenuIcon = _ref34 => {
1081
1340
  var {
1082
1341
  widthHeight = 24,
1083
1342
  color = 'currentColor',
1084
1343
  strokeWidth = 1,
1085
1344
  filled = false
1086
- } = _ref32,
1087
- props = _objectWithoutPropertiesLoose(_ref32, _excluded32);
1345
+ } = _ref34,
1346
+ props = _objectWithoutPropertiesLoose(_ref34, _excluded34);
1088
1347
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1089
1348
  widthHeight: widthHeight,
1090
1349
  color: color
@@ -1112,14 +1371,14 @@ var MenuIcon = _ref32 => {
1112
1371
  y2: "18"
1113
1372
  })));
1114
1373
  };
1115
- var ShareIcon = _ref33 => {
1374
+ var ShareIcon = _ref35 => {
1116
1375
  var {
1117
1376
  widthHeight = 24,
1118
1377
  color = 'currentColor',
1119
1378
  filled = false,
1120
1379
  strokeWidth = 1
1121
- } = _ref33,
1122
- props = _objectWithoutPropertiesLoose(_ref33, _excluded33);
1380
+ } = _ref35,
1381
+ props = _objectWithoutPropertiesLoose(_ref35, _excluded35);
1123
1382
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1124
1383
  widthHeight: widthHeight,
1125
1384
  color: color
@@ -1153,14 +1412,14 @@ var ShareIcon = _ref33 => {
1153
1412
  y2: "10.49"
1154
1413
  })));
1155
1414
  };
1156
- var RefreshIcon = _ref34 => {
1415
+ var RefreshIcon = _ref36 => {
1157
1416
  var {
1158
1417
  widthHeight = 24,
1159
1418
  color = 'currentColor',
1160
1419
  strokeWidth = 1,
1161
1420
  filled = false
1162
- } = _ref34,
1163
- props = _objectWithoutPropertiesLoose(_ref34, _excluded34);
1421
+ } = _ref36,
1422
+ props = _objectWithoutPropertiesLoose(_ref36, _excluded36);
1164
1423
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1165
1424
  widthHeight: widthHeight,
1166
1425
  color: color
@@ -1174,14 +1433,14 @@ var RefreshIcon = _ref34 => {
1174
1433
  d: "M20.49 15a9 9 0 1 1-2.13-9.36L23 10"
1175
1434
  })));
1176
1435
  };
1177
- var PrintIcon = _ref35 => {
1436
+ var PrintIcon = _ref37 => {
1178
1437
  var {
1179
1438
  widthHeight = 24,
1180
1439
  color = 'currentColor',
1181
1440
  filled = true,
1182
1441
  strokeWidth = 1
1183
- } = _ref35,
1184
- props = _objectWithoutPropertiesLoose(_ref35, _excluded35);
1442
+ } = _ref37,
1443
+ props = _objectWithoutPropertiesLoose(_ref37, _excluded37);
1185
1444
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1186
1445
  widthHeight: widthHeight,
1187
1446
  color: color
@@ -1194,14 +1453,14 @@ var PrintIcon = _ref35 => {
1194
1453
  d: "M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"
1195
1454
  })));
1196
1455
  };
1197
- var MagicWandIcon = _ref36 => {
1456
+ var MagicWandIcon = _ref38 => {
1198
1457
  var {
1199
1458
  widthHeight = 24,
1200
1459
  color = 'currentColor',
1201
1460
  strokeWidth = 1,
1202
1461
  filled = true
1203
- } = _ref36,
1204
- props = _objectWithoutPropertiesLoose(_ref36, _excluded36);
1462
+ } = _ref38,
1463
+ props = _objectWithoutPropertiesLoose(_ref38, _excluded38);
1205
1464
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1206
1465
  widthHeight: widthHeight,
1207
1466
  color: color
@@ -1224,14 +1483,14 @@ var MagicWandIcon = _ref36 => {
1224
1483
  d: "M16 15L16.7 16.5L18 17L16.7 17.5L16 19L15.3 17.5L14 17L15.3 16.5L16 15Z"
1225
1484
  })));
1226
1485
  };
1227
- var SliderVerticalIcon = _ref37 => {
1486
+ var SliderVerticalIcon = _ref39 => {
1228
1487
  var {
1229
1488
  widthHeight = 24,
1230
1489
  color = 'currentColor',
1231
1490
  strokeWidth = 1,
1232
1491
  filled = false
1233
- } = _ref37,
1234
- props = _objectWithoutPropertiesLoose(_ref37, _excluded37);
1492
+ } = _ref39,
1493
+ props = _objectWithoutPropertiesLoose(_ref39, _excluded39);
1235
1494
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1236
1495
  widthHeight: widthHeight,
1237
1496
  color: color
@@ -1295,14 +1554,14 @@ var SliderVerticalIcon = _ref37 => {
1295
1554
  y2: "16"
1296
1555
  })));
1297
1556
  };
1298
- var PanelIcon = _ref38 => {
1557
+ var PanelIcon = _ref40 => {
1299
1558
  var {
1300
1559
  widthHeight = 24,
1301
1560
  color = 'currentColor',
1302
1561
  strokeWidth = 1,
1303
1562
  filled = false
1304
- } = _ref38,
1305
- props = _objectWithoutPropertiesLoose(_ref38, _excluded38);
1563
+ } = _ref40,
1564
+ props = _objectWithoutPropertiesLoose(_ref40, _excluded40);
1306
1565
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1307
1566
  widthHeight: widthHeight,
1308
1567
  color: color
@@ -1338,14 +1597,14 @@ var PanelIcon = _ref38 => {
1338
1597
  y2: "15"
1339
1598
  })));
1340
1599
  };
1341
- var FilterIcon = _ref39 => {
1600
+ var FilterIcon = _ref41 => {
1342
1601
  var {
1343
1602
  widthHeight = 24,
1344
1603
  color = 'currentColor',
1345
1604
  filled = false,
1346
1605
  strokeWidth = 1
1347
- } = _ref39,
1348
- props = _objectWithoutPropertiesLoose(_ref39, _excluded39);
1606
+ } = _ref41,
1607
+ props = _objectWithoutPropertiesLoose(_ref41, _excluded41);
1349
1608
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1350
1609
  widthHeight: widthHeight,
1351
1610
  color: color
@@ -1357,14 +1616,14 @@ var FilterIcon = _ref39 => {
1357
1616
  d: "M3 4h18l-7 10v5l-4 2v-7L3 4z"
1358
1617
  })));
1359
1618
  };
1360
- var HomeIcon = _ref40 => {
1619
+ var HomeIcon = _ref42 => {
1361
1620
  var {
1362
1621
  widthHeight = 24,
1363
1622
  color = 'currentColor',
1364
1623
  filled = true,
1365
1624
  strokeWidth = 1
1366
- } = _ref40,
1367
- props = _objectWithoutPropertiesLoose(_ref40, _excluded40);
1625
+ } = _ref42,
1626
+ props = _objectWithoutPropertiesLoose(_ref42, _excluded42);
1368
1627
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1369
1628
  widthHeight: widthHeight,
1370
1629
  color: color
@@ -1376,14 +1635,14 @@ var HomeIcon = _ref40 => {
1376
1635
  d: "M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8h5z"
1377
1636
  })));
1378
1637
  };
1379
- var LocationIcon = _ref41 => {
1638
+ var LocationIcon = _ref43 => {
1380
1639
  var {
1381
1640
  widthHeight = 24,
1382
1641
  color = 'currentColor',
1383
1642
  filled = true,
1384
1643
  strokeWidth = 1
1385
- } = _ref41,
1386
- props = _objectWithoutPropertiesLoose(_ref41, _excluded41);
1644
+ } = _ref43,
1645
+ props = _objectWithoutPropertiesLoose(_ref43, _excluded43);
1387
1646
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1388
1647
  widthHeight: widthHeight,
1389
1648
  color: color
@@ -1395,14 +1654,14 @@ var LocationIcon = _ref41 => {
1395
1654
  d: "M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"
1396
1655
  })));
1397
1656
  };
1398
- var LockIcon = _ref42 => {
1657
+ var LockIcon = _ref44 => {
1399
1658
  var {
1400
1659
  widthHeight = 24,
1401
1660
  color = 'currentColor',
1402
1661
  filled = false,
1403
1662
  strokeWidth = 1
1404
- } = _ref42,
1405
- props = _objectWithoutPropertiesLoose(_ref42, _excluded42);
1663
+ } = _ref44,
1664
+ props = _objectWithoutPropertiesLoose(_ref44, _excluded44);
1406
1665
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1407
1666
  widthHeight: widthHeight,
1408
1667
  color: color
@@ -1427,14 +1686,14 @@ var LockIcon = _ref42 => {
1427
1686
  r: "1.5"
1428
1687
  })))));
1429
1688
  };
1430
- var MicrophoneIcon = _ref43 => {
1689
+ var MicrophoneIcon = _ref45 => {
1431
1690
  var {
1432
1691
  widthHeight = 24,
1433
1692
  color = 'currentColor',
1434
1693
  filled = false,
1435
1694
  strokeWidth = 1
1436
- } = _ref43,
1437
- props = _objectWithoutPropertiesLoose(_ref43, _excluded43);
1695
+ } = _ref45,
1696
+ props = _objectWithoutPropertiesLoose(_ref45, _excluded45);
1438
1697
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1439
1698
  widthHeight: widthHeight,
1440
1699
  color: color
@@ -1460,14 +1719,14 @@ var MicrophoneIcon = _ref43 => {
1460
1719
  y2: "23"
1461
1720
  })));
1462
1721
  };
1463
- var MoonIcon = _ref44 => {
1722
+ var MoonIcon = _ref46 => {
1464
1723
  var {
1465
1724
  widthHeight = 24,
1466
1725
  color = 'currentColor',
1467
1726
  filled = true,
1468
1727
  strokeWidth = 1
1469
- } = _ref44,
1470
- props = _objectWithoutPropertiesLoose(_ref44, _excluded44);
1728
+ } = _ref46,
1729
+ props = _objectWithoutPropertiesLoose(_ref46, _excluded46);
1471
1730
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1472
1731
  widthHeight: widthHeight,
1473
1732
  color: color
@@ -1479,14 +1738,14 @@ var MoonIcon = _ref44 => {
1479
1738
  d: "M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"
1480
1739
  })));
1481
1740
  };
1482
- var NotificationIcon = _ref45 => {
1741
+ var NotificationIcon = _ref47 => {
1483
1742
  var {
1484
1743
  widthHeight = 24,
1485
1744
  color = 'currentColor',
1486
1745
  filled = false,
1487
1746
  strokeWidth = 1
1488
- } = _ref45,
1489
- props = _objectWithoutPropertiesLoose(_ref45, _excluded45);
1747
+ } = _ref47,
1748
+ props = _objectWithoutPropertiesLoose(_ref47, _excluded47);
1490
1749
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1491
1750
  widthHeight: widthHeight,
1492
1751
  color: color
@@ -1500,14 +1759,14 @@ var NotificationIcon = _ref45 => {
1500
1759
  d: "M13.73 21a2 2 0 0 1-3.46 0"
1501
1760
  })));
1502
1761
  };
1503
- var OpenEyeIcon = _ref46 => {
1762
+ var OpenEyeIcon = _ref48 => {
1504
1763
  var {
1505
1764
  widthHeight = 24,
1506
1765
  color = 'currentColor',
1507
1766
  filled = true,
1508
1767
  strokeWidth = 1
1509
- } = _ref46,
1510
- props = _objectWithoutPropertiesLoose(_ref46, _excluded46);
1768
+ } = _ref48,
1769
+ props = _objectWithoutPropertiesLoose(_ref48, _excluded48);
1511
1770
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1512
1771
  widthHeight: widthHeight,
1513
1772
  color: color
@@ -1519,14 +1778,14 @@ var OpenEyeIcon = _ref46 => {
1519
1778
  d: "M12 4C7 4 2.73 7.11 1 12c1.73 4.89 6 8 11 8s9.27-3.11 11-8c-1.73-4.89-6-8-11-8zm0 12.5c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"
1520
1779
  })));
1521
1780
  };
1522
- var ProfileIcon = _ref47 => {
1781
+ var ProfileIcon = _ref49 => {
1523
1782
  var {
1524
1783
  widthHeight = 24,
1525
1784
  color = 'currentColor',
1526
1785
  filled = true,
1527
1786
  strokeWidth = 1
1528
- } = _ref47,
1529
- props = _objectWithoutPropertiesLoose(_ref47, _excluded47);
1787
+ } = _ref49,
1788
+ props = _objectWithoutPropertiesLoose(_ref49, _excluded49);
1530
1789
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1531
1790
  widthHeight: widthHeight,
1532
1791
  color: color
@@ -1539,14 +1798,14 @@ var ProfileIcon = _ref47 => {
1539
1798
  d: "M12 13c-2.67 0-8 1.34-8 4v2c0 .55.45 1 1 1h14c.55 0 1-.45 1-1v-2c0-2.66-5.33-4-8-4zm0-9c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z M12 2C9.79 2 8 3.79 8 6s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4z M12 13c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z"
1540
1799
  }), ' '));
1541
1800
  };
1542
- var SettingsIcon = _ref48 => {
1801
+ var SettingsIcon = _ref50 => {
1543
1802
  var {
1544
1803
  widthHeight = 24,
1545
1804
  color = 'currentColor',
1546
1805
  filled = false,
1547
1806
  strokeWidth = 1
1548
- } = _ref48,
1549
- props = _objectWithoutPropertiesLoose(_ref48, _excluded48);
1807
+ } = _ref50,
1808
+ props = _objectWithoutPropertiesLoose(_ref50, _excluded50);
1550
1809
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1551
1810
  widthHeight: widthHeight,
1552
1811
  color: color
@@ -1558,14 +1817,14 @@ var SettingsIcon = _ref48 => {
1558
1817
  d: "M19.4 13c0-.3.1-.6.1-1s0-.7-.1-1l2.1-1.6c.2-.2.2-.4.1-.6l-2-3.5c-.1-.2-.4-.3-.6-.2l-2.5 1c-.5-.4-1.1-.7-1.7-.9l-.4-2.6c0-.2-.3-.4-.5-.4h-4c-.2 0-.5.2-.5.4l-.4 2.6c-.6.2-1.2.5-1.7.9l-2.5-1c-.2-.1-.5 0-.6.2l-2 3.5c-.1.2-.1.4.1.6L4.6 11c0 .3-.1.6-.1 1s0 .7.1 1l-2.1 1.6c-.2.2-.2.4-.1.6l2 3.5c.1.2.4.3.6.2l2.5-1c.5.4 1.1.7 1.7.9l.4 2.6c0 .2.3.4.5.4h4c.2 0 .5-.2.5-.4l.4-2.6c.6-.2 1.2-.5 1.7-.9l2.5 1c.2.1.5 0 .6-.2l2-3.5c.1-.2.1-.4-.1-.6L19.4 13zM12 15.5c-1.9 0-3.5-1.6-3.5-3.5s1.6-3.5 3.5-3.5 3.5 1.6 3.5 3.5-1.6 3.5-3.5 3.5z"
1559
1818
  })));
1560
1819
  };
1561
- var SuccessIcon = _ref49 => {
1820
+ var SuccessIcon = _ref51 => {
1562
1821
  var {
1563
1822
  widthHeight = 24,
1564
1823
  color = 'currentColor',
1565
1824
  filled = true,
1566
1825
  strokeWidth = 1
1567
- } = _ref49,
1568
- props = _objectWithoutPropertiesLoose(_ref49, _excluded49);
1826
+ } = _ref51,
1827
+ props = _objectWithoutPropertiesLoose(_ref51, _excluded51);
1569
1828
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1570
1829
  widthHeight: widthHeight,
1571
1830
  color: color
@@ -1577,14 +1836,14 @@ var SuccessIcon = _ref49 => {
1577
1836
  d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
1578
1837
  })));
1579
1838
  };
1580
- var UnLikeIcon = _ref50 => {
1839
+ var UnLikeIcon = _ref52 => {
1581
1840
  var {
1582
1841
  widthHeight = 24,
1583
1842
  color = 'currentColor',
1584
1843
  filled = true,
1585
1844
  strokeWidth = 1
1586
- } = _ref50,
1587
- props = _objectWithoutPropertiesLoose(_ref50, _excluded50);
1845
+ } = _ref52,
1846
+ props = _objectWithoutPropertiesLoose(_ref52, _excluded52);
1588
1847
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1589
1848
  widthHeight: widthHeight,
1590
1849
  color: color
@@ -1596,14 +1855,14 @@ var UnLikeIcon = _ref50 => {
1596
1855
  d: "M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z"
1597
1856
  })));
1598
1857
  };
1599
- var ClockIcon = _ref51 => {
1858
+ var ClockIcon = _ref53 => {
1600
1859
  var {
1601
1860
  widthHeight = 24,
1602
1861
  color = 'currentColor',
1603
1862
  strokeWidth = 1,
1604
1863
  filled = false
1605
- } = _ref51,
1606
- props = _objectWithoutPropertiesLoose(_ref51, _excluded51);
1864
+ } = _ref53,
1865
+ props = _objectWithoutPropertiesLoose(_ref53, _excluded53);
1607
1866
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1608
1867
  widthHeight: widthHeight,
1609
1868
  color: color
@@ -1619,14 +1878,14 @@ var ClockIcon = _ref51 => {
1619
1878
  points: "12 6 12 12 16 14"
1620
1879
  })));
1621
1880
  };
1622
- var CameraIcon = _ref52 => {
1881
+ var CameraIcon = _ref54 => {
1623
1882
  var {
1624
1883
  widthHeight = 24,
1625
1884
  color = 'currentColor',
1626
1885
  strokeWidth = 1,
1627
1886
  filled = false
1628
- } = _ref52,
1629
- props = _objectWithoutPropertiesLoose(_ref52, _excluded52);
1887
+ } = _ref54,
1888
+ props = _objectWithoutPropertiesLoose(_ref54, _excluded54);
1630
1889
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1631
1890
  widthHeight: widthHeight,
1632
1891
  color: color
@@ -1642,14 +1901,14 @@ var CameraIcon = _ref52 => {
1642
1901
  r: "4"
1643
1902
  })));
1644
1903
  };
1645
- var BluetoothIcon = _ref53 => {
1904
+ var BluetoothIcon = _ref55 => {
1646
1905
  var {
1647
1906
  widthHeight = 24,
1648
1907
  color = 'currentColor',
1649
1908
  filled = true,
1650
1909
  strokeWidth = 1
1651
- } = _ref53,
1652
- props = _objectWithoutPropertiesLoose(_ref53, _excluded53);
1910
+ } = _ref55,
1911
+ props = _objectWithoutPropertiesLoose(_ref55, _excluded55);
1653
1912
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1654
1913
  widthHeight: widthHeight,
1655
1914
  color: color
@@ -1661,14 +1920,14 @@ var BluetoothIcon = _ref53 => {
1661
1920
  d: "M17.71 7.71L12 2h-1v7.59L6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 5.83l1.88 1.88L13 9.59V5.83zm1.88 10.46L13 18.17v-3.76l1.88 1.88z"
1662
1921
  })));
1663
1922
  };
1664
- var LikeIcon = _ref54 => {
1923
+ var LikeIcon = _ref56 => {
1665
1924
  var {
1666
1925
  widthHeight = 24,
1667
1926
  color = 'currentColor',
1668
1927
  filled = true,
1669
1928
  strokeWidth = 1
1670
- } = _ref54,
1671
- props = _objectWithoutPropertiesLoose(_ref54, _excluded54);
1929
+ } = _ref56,
1930
+ props = _objectWithoutPropertiesLoose(_ref56, _excluded56);
1672
1931
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1673
1932
  widthHeight: widthHeight,
1674
1933
  color: color
@@ -1680,14 +1939,14 @@ var LikeIcon = _ref54 => {
1680
1939
  d: "M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-2z"
1681
1940
  })));
1682
1941
  };
1683
- var UnlockIcon = _ref55 => {
1942
+ var UnlockIcon = _ref57 => {
1684
1943
  var {
1685
1944
  widthHeight = 24,
1686
1945
  color = 'currentColor',
1687
1946
  filled = false,
1688
1947
  strokeWidth = 1
1689
- } = _ref55,
1690
- props = _objectWithoutPropertiesLoose(_ref55, _excluded55);
1948
+ } = _ref57,
1949
+ props = _objectWithoutPropertiesLoose(_ref57, _excluded57);
1691
1950
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1692
1951
  widthHeight: widthHeight,
1693
1952
  color: color
@@ -1712,14 +1971,14 @@ var UnlockIcon = _ref55 => {
1712
1971
  r: "1.5"
1713
1972
  })))));
1714
1973
  };
1715
- var WifiIcon = _ref56 => {
1974
+ var WifiIcon = _ref58 => {
1716
1975
  var {
1717
1976
  widthHeight = 24,
1718
1977
  color = 'currentColor',
1719
1978
  filled = false,
1720
1979
  strokeWidth = 1
1721
- } = _ref56,
1722
- props = _objectWithoutPropertiesLoose(_ref56, _excluded56);
1980
+ } = _ref58,
1981
+ props = _objectWithoutPropertiesLoose(_ref58, _excluded58);
1723
1982
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1724
1983
  widthHeight: widthHeight,
1725
1984
  color: color
@@ -1731,14 +1990,14 @@ var WifiIcon = _ref56 => {
1731
1990
  d: "M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3c-1.65-1.66-4.34-1.66-6 0zm-4-4l2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9.14 8.87 9.14 5 13z"
1732
1991
  })));
1733
1992
  };
1734
- var UploadIcon = _ref57 => {
1993
+ var UploadIcon = _ref59 => {
1735
1994
  var {
1736
1995
  widthHeight = 24,
1737
1996
  color = 'currentColor',
1738
1997
  filled = false,
1739
1998
  strokeWidth = 1
1740
- } = _ref57,
1741
- props = _objectWithoutPropertiesLoose(_ref57, _excluded57);
1999
+ } = _ref59,
2000
+ props = _objectWithoutPropertiesLoose(_ref59, _excluded59);
1742
2001
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1743
2002
  widthHeight: widthHeight,
1744
2003
  color: color
@@ -1754,14 +2013,14 @@ var UploadIcon = _ref57 => {
1754
2013
  d: "M12 12l0 9"
1755
2014
  })));
1756
2015
  };
1757
- var SearchIcon = _ref58 => {
2016
+ var SearchIcon = _ref60 => {
1758
2017
  var {
1759
2018
  widthHeight = 24,
1760
2019
  color = 'currentColor',
1761
2020
  filled = true,
1762
2021
  strokeWidth = 1
1763
- } = _ref58,
1764
- props = _objectWithoutPropertiesLoose(_ref58, _excluded58);
2022
+ } = _ref60,
2023
+ props = _objectWithoutPropertiesLoose(_ref60, _excluded60);
1765
2024
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1766
2025
  widthHeight: widthHeight,
1767
2026
  color: color
@@ -1773,14 +2032,14 @@ var SearchIcon = _ref58 => {
1773
2032
  d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"
1774
2033
  })));
1775
2034
  };
1776
- var CloseEyeIcon = _ref59 => {
2035
+ var CloseEyeIcon = _ref61 => {
1777
2036
  var {
1778
2037
  widthHeight = 24,
1779
2038
  color = 'currentColor',
1780
2039
  filled = true,
1781
2040
  strokeWidth = 1
1782
- } = _ref59,
1783
- props = _objectWithoutPropertiesLoose(_ref59, _excluded59);
2041
+ } = _ref61,
2042
+ props = _objectWithoutPropertiesLoose(_ref61, _excluded61);
1784
2043
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1785
2044
  widthHeight: widthHeight,
1786
2045
  color: color
@@ -1793,14 +2052,14 @@ var CloseEyeIcon = _ref59 => {
1793
2052
  fill: "currentColor"
1794
2053
  })));
1795
2054
  };
1796
- var ExternalLinkIcon = _ref60 => {
2055
+ var ExternalLinkIcon = _ref62 => {
1797
2056
  var {
1798
2057
  widthHeight = 24,
1799
2058
  color = 'currentColor',
1800
2059
  filled = true,
1801
2060
  strokeWidth = 1
1802
- } = _ref60,
1803
- props = _objectWithoutPropertiesLoose(_ref60, _excluded60);
2061
+ } = _ref62,
2062
+ props = _objectWithoutPropertiesLoose(_ref62, _excluded62);
1804
2063
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1805
2064
  widthHeight: widthHeight,
1806
2065
  color: color
@@ -1812,14 +2071,14 @@ var ExternalLinkIcon = _ref60 => {
1812
2071
  d: "M14 3h7v7h-2V5.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3ZM5 5h5v2H6v11h11v-4h2v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1Z"
1813
2072
  })));
1814
2073
  };
1815
- var PlusIcon = _ref61 => {
2074
+ var PlusIcon = _ref63 => {
1816
2075
  var {
1817
2076
  widthHeight = 24,
1818
2077
  color = 'currentColor',
1819
2078
  filled = false,
1820
2079
  strokeWidth = 1
1821
- } = _ref61,
1822
- props = _objectWithoutPropertiesLoose(_ref61, _excluded61);
2080
+ } = _ref63,
2081
+ props = _objectWithoutPropertiesLoose(_ref63, _excluded63);
1823
2082
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1824
2083
  widthHeight: widthHeight,
1825
2084
  color: color
@@ -1841,14 +2100,14 @@ var PlusIcon = _ref61 => {
1841
2100
  y2: "12"
1842
2101
  })));
1843
2102
  };
1844
- var TickIcon = _ref62 => {
2103
+ var TickIcon = _ref64 => {
1845
2104
  var {
1846
2105
  widthHeight = 24,
1847
2106
  color = 'currentColor',
1848
2107
  filled = false,
1849
2108
  strokeWidth = 1
1850
- } = _ref62,
1851
- props = _objectWithoutPropertiesLoose(_ref62, _excluded62);
2109
+ } = _ref64,
2110
+ props = _objectWithoutPropertiesLoose(_ref64, _excluded64);
1852
2111
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1853
2112
  widthHeight: widthHeight,
1854
2113
  color: color
@@ -1862,14 +2121,14 @@ var TickIcon = _ref62 => {
1862
2121
  strokeLinejoin: "round"
1863
2122
  })));
1864
2123
  };
1865
- var BoldArrowIcon = _ref63 => {
2124
+ var BoldArrowIcon = _ref65 => {
1866
2125
  var {
1867
2126
  widthHeight = 24,
1868
2127
  color = 'currentColor',
1869
2128
  filled = true,
1870
2129
  strokeWidth = 1
1871
- } = _ref63,
1872
- props = _objectWithoutPropertiesLoose(_ref63, _excluded63);
2130
+ } = _ref65,
2131
+ props = _objectWithoutPropertiesLoose(_ref65, _excluded65);
1873
2132
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1874
2133
  widthHeight: widthHeight,
1875
2134
  color: color
@@ -1881,14 +2140,14 @@ var BoldArrowIcon = _ref63 => {
1881
2140
  d: "M12 4l7 7h-4v7h-6v-7H5l7-7z"
1882
2141
  })));
1883
2142
  };
1884
- var ArrowIcon = _ref64 => {
2143
+ var ArrowIcon = _ref66 => {
1885
2144
  var {
1886
2145
  widthHeight = 24,
1887
2146
  color = 'currentColor',
1888
2147
  filled = false,
1889
2148
  strokeWidth = 1
1890
- } = _ref64,
1891
- props = _objectWithoutPropertiesLoose(_ref64, _excluded64);
2149
+ } = _ref66,
2150
+ props = _objectWithoutPropertiesLoose(_ref66, _excluded66);
1892
2151
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1893
2152
  widthHeight: widthHeight,
1894
2153
  color: color
@@ -1906,14 +2165,14 @@ var ArrowIcon = _ref64 => {
1906
2165
  points: "6 12 12 6 18 12"
1907
2166
  })));
1908
2167
  };
1909
- var SpinnerIcon = _ref65 => {
2168
+ var SpinnerIcon = _ref67 => {
1910
2169
  var {
1911
2170
  widthHeight = 24,
1912
2171
  color = 'currentColor',
1913
2172
  filled = false,
1914
2173
  strokeWidth = 1
1915
- } = _ref65,
1916
- props = _objectWithoutPropertiesLoose(_ref65, _excluded65);
2174
+ } = _ref67,
2175
+ props = _objectWithoutPropertiesLoose(_ref67, _excluded67);
1917
2176
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1918
2177
  widthHeight: widthHeight,
1919
2178
  color: color
@@ -1931,14 +2190,14 @@ var SpinnerIcon = _ref65 => {
1931
2190
  strokeOpacity: "1"
1932
2191
  })));
1933
2192
  };
1934
- var CalendarIcon = _ref66 => {
2193
+ var CalendarIcon = _ref68 => {
1935
2194
  var {
1936
2195
  widthHeight = 24,
1937
2196
  color = 'currentColor',
1938
2197
  strokeWidth = 1,
1939
2198
  filled = false
1940
- } = _ref66,
1941
- props = _objectWithoutPropertiesLoose(_ref66, _excluded66);
2199
+ } = _ref68,
2200
+ props = _objectWithoutPropertiesLoose(_ref68, _excluded68);
1942
2201
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1943
2202
  widthHeight: widthHeight,
1944
2203
  color: color
@@ -1973,14 +2232,14 @@ var CalendarIcon = _ref66 => {
1973
2232
  y2: "10"
1974
2233
  })));
1975
2234
  };
1976
- var SliderIcon = _ref67 => {
2235
+ var SliderIcon = _ref69 => {
1977
2236
  var {
1978
2237
  widthHeight = 24,
1979
2238
  color = 'currentColor',
1980
2239
  strokeWidth = 1,
1981
2240
  filled = false
1982
- } = _ref67,
1983
- props = _objectWithoutPropertiesLoose(_ref67, _excluded67);
2241
+ } = _ref69,
2242
+ props = _objectWithoutPropertiesLoose(_ref69, _excluded69);
1984
2243
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1985
2244
  widthHeight: widthHeight,
1986
2245
  color: color
@@ -2035,14 +2294,14 @@ var SliderIcon = _ref67 => {
2035
2294
  y2: "23"
2036
2295
  })));
2037
2296
  };
2038
- var CropIcon = _ref68 => {
2297
+ var CropIcon = _ref70 => {
2039
2298
  var {
2040
2299
  widthHeight = 24,
2041
2300
  color = 'currentColor',
2042
2301
  strokeWidth = 1,
2043
2302
  filled = false
2044
- } = _ref68,
2045
- props = _objectWithoutPropertiesLoose(_ref68, _excluded68);
2303
+ } = _ref70,
2304
+ props = _objectWithoutPropertiesLoose(_ref70, _excluded70);
2046
2305
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
2047
2306
  widthHeight: widthHeight,
2048
2307
  color: color
@@ -2056,14 +2315,14 @@ var CropIcon = _ref68 => {
2056
2315
  d: "M18 22V8a2 2 0 0 0-2-2H2"
2057
2316
  })));
2058
2317
  };
2059
- var ZoomInIcon = _ref69 => {
2318
+ var ZoomInIcon = _ref71 => {
2060
2319
  var {
2061
2320
  widthHeight = 24,
2062
2321
  color = 'currentColor',
2063
2322
  strokeWidth = 1,
2064
2323
  filled = false
2065
- } = _ref69,
2066
- props = _objectWithoutPropertiesLoose(_ref69, _excluded69);
2324
+ } = _ref71,
2325
+ props = _objectWithoutPropertiesLoose(_ref71, _excluded71);
2067
2326
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
2068
2327
  widthHeight: widthHeight,
2069
2328
  color: color
@@ -2092,14 +2351,14 @@ var ZoomInIcon = _ref69 => {
2092
2351
  y2: "11"
2093
2352
  })));
2094
2353
  };
2095
- var ZoomOutIcon = _ref70 => {
2354
+ var ZoomOutIcon = _ref72 => {
2096
2355
  var {
2097
2356
  widthHeight = 24,
2098
2357
  color = 'currentColor',
2099
2358
  strokeWidth = 1,
2100
2359
  filled = false
2101
- } = _ref70,
2102
- props = _objectWithoutPropertiesLoose(_ref70, _excluded70);
2360
+ } = _ref72,
2361
+ props = _objectWithoutPropertiesLoose(_ref72, _excluded72);
2103
2362
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
2104
2363
  widthHeight: widthHeight,
2105
2364
  color: color
@@ -2123,14 +2382,14 @@ var ZoomOutIcon = _ref70 => {
2123
2382
  y2: "11"
2124
2383
  })));
2125
2384
  };
2126
- var TextIcon = _ref71 => {
2385
+ var TextIcon = _ref73 => {
2127
2386
  var {
2128
2387
  widthHeight = 24,
2129
2388
  color = 'currentColor',
2130
2389
  strokeWidth = 1,
2131
2390
  filled = false
2132
- } = _ref71,
2133
- props = _objectWithoutPropertiesLoose(_ref71, _excluded71);
2391
+ } = _ref73,
2392
+ props = _objectWithoutPropertiesLoose(_ref73, _excluded73);
2134
2393
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
2135
2394
  widthHeight: widthHeight,
2136
2395
  color: color
@@ -2155,14 +2414,14 @@ var TextIcon = _ref71 => {
2155
2414
  y2: "18"
2156
2415
  })));
2157
2416
  };
2158
- var ShapeIcon = _ref72 => {
2417
+ var ShapeIcon = _ref74 => {
2159
2418
  var {
2160
2419
  widthHeight = 24,
2161
2420
  color = 'currentColor',
2162
2421
  strokeWidth = 1,
2163
2422
  filled = false
2164
- } = _ref72,
2165
- props = _objectWithoutPropertiesLoose(_ref72, _excluded72);
2423
+ } = _ref74,
2424
+ props = _objectWithoutPropertiesLoose(_ref74, _excluded74);
2166
2425
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
2167
2426
  widthHeight: widthHeight,
2168
2427
  color: color
@@ -2183,14 +2442,14 @@ var ShapeIcon = _ref72 => {
2183
2442
  points: "16,4 19,8 13,8"
2184
2443
  })));
2185
2444
  };
2186
- var RotateIcon = _ref73 => {
2445
+ var RotateIcon = _ref75 => {
2187
2446
  var {
2188
2447
  widthHeight = 24,
2189
2448
  color = 'currentColor',
2190
2449
  strokeWidth = 1,
2191
2450
  filled = false
2192
- } = _ref73,
2193
- props = _objectWithoutPropertiesLoose(_ref73, _excluded73);
2451
+ } = _ref75,
2452
+ props = _objectWithoutPropertiesLoose(_ref75, _excluded75);
2194
2453
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
2195
2454
  widthHeight: widthHeight,
2196
2455
  color: color
@@ -2207,6 +2466,8 @@ var RotateIcon = _ref73 => {
2207
2466
 
2208
2467
  var Icon = {
2209
2468
  __proto__: null,
2469
+ UserIcon: UserIcon,
2470
+ HelpIcon: HelpIcon,
2210
2471
  ChevronIcon: ChevronIcon,
2211
2472
  DragHandleIcon: DragHandleIcon,
2212
2473
  FileIcon: FileIcon,
@@ -2234,6 +2495,7 @@ var Icon = {
2234
2495
  CloudIcon: CloudIcon,
2235
2496
  CopyIcon: CopyIcon,
2236
2497
  DustBinIcon: DustBinIcon,
2498
+ DeleteIcon: DeleteIcon,
2237
2499
  EditIcon: EditIcon,
2238
2500
  ErrorIcon: ErrorIcon,
2239
2501
  DownloadIcon: DownloadIcon,
@@ -3194,65 +3456,503 @@ var ButtonComponent = props => {
3194
3456
  };
3195
3457
  var Button = ButtonComponent;
3196
3458
 
3197
- var _excluded$a = ["src", "color", "views", "themeMode"],
3198
- _excluded2$2 = ["path"];
3199
- var FileSVG = _ref => {
3200
- var {
3201
- src,
3202
- color,
3203
- views
3204
- } = _ref,
3205
- props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
3206
- var {
3207
- getColor,
3208
- themeMode
3209
- } = appStudio.useTheme();
3210
- var Colorprops = color ? {
3211
- fill: getColor(color, {
3212
- themeMode
3213
- }),
3214
- stroke: getColor(color, {
3215
- themeMode
3216
- })
3217
- } : {};
3218
- return /*#__PURE__*/React__default.createElement(Center, Object.assign({}, props, views == null ? void 0 : views.container), /*#__PURE__*/React__default.createElement(appStudio.Image, Object.assign({}, Colorprops, {
3219
- content: 'url("' + src + '")',
3220
- width: "100%",
3221
- height: "100%"
3222
- }, views == null ? void 0 : views.image)));
3223
- };
3224
- var FileImage = _ref2 => {
3225
- var {
3226
- path
3227
- } = _ref2,
3228
- props = _objectWithoutPropertiesLoose(_ref2, _excluded2$2);
3229
- return /*#__PURE__*/React__default.createElement(appStudio.Image, Object.assign({
3230
- src: path
3231
- }, props));
3459
+ var useContextMenuState = () => {
3460
+ var [isOpen, setIsOpen] = React.useState(false);
3461
+ var [position, setPosition] = React.useState({
3462
+ x: 0,
3463
+ y: 0
3464
+ });
3465
+ var [activeSubmenuId, setActiveSubmenuId] = React.useState(null);
3466
+ // Close the context menu when clicking outside
3467
+ React.useEffect(() => {
3468
+ var handleClickOutside = event => {
3469
+ var path = event.composedPath();
3470
+ var isOutside = !path.some(element => (element == null ? void 0 : element.id) === 'context-menu');
3471
+ if (isOutside && isOpen) {
3472
+ setIsOpen(false);
3473
+ setActiveSubmenuId(null);
3474
+ }
3475
+ };
3476
+ // Close the context menu when the window is resized
3477
+ var handleResize = () => {
3478
+ if (isOpen) {
3479
+ setIsOpen(false);
3480
+ setActiveSubmenuId(null);
3481
+ }
3482
+ };
3483
+ // Close the context menu when the escape key is pressed
3484
+ var handleKeyDown = event => {
3485
+ if (event.key === 'Escape' && isOpen) {
3486
+ setIsOpen(false);
3487
+ setActiveSubmenuId(null);
3488
+ }
3489
+ };
3490
+ document.addEventListener('mousedown', handleClickOutside);
3491
+ window.addEventListener('resize', handleResize);
3492
+ document.addEventListener('keydown', handleKeyDown);
3493
+ return () => {
3494
+ document.removeEventListener('mousedown', handleClickOutside);
3495
+ window.removeEventListener('resize', handleResize);
3496
+ document.removeEventListener('keydown', handleKeyDown);
3497
+ };
3498
+ }, [isOpen]);
3499
+ return {
3500
+ isOpen,
3501
+ setIsOpen,
3502
+ position,
3503
+ setPosition,
3504
+ activeSubmenuId,
3505
+ setActiveSubmenuId
3506
+ };
3232
3507
  };
3233
3508
 
3234
- // Initializes the custom hook 'useSelectState' for managing the state of the Select component
3235
- var useSelectState = _ref => {
3236
- var {
3237
- placeholder,
3238
- isMulti,
3239
- options
3240
- } = _ref;
3241
- // Determines the default value based on the 'placeholder' and 'isMulti' props, setting to an empty array for multi-select or an empty string/single default option
3242
- var defaultValue = placeholder ? isMulti ? [] : '' // If there's a placeholder, set default to empty array for multi-select or empty string for single select
3243
- : Array.isArray(options) && options.length > 0 ? options[0].value : ''; // If no placeholder, use the first option value if available, otherwise undefined
3244
- // State hook for managing visibility of the Select dropdown, initially set to hidden
3245
- var [hide, setHide] = React__default.useState(true);
3246
- // State hook for tracking mouse hover status over the Select component
3247
- var [isHovered, setIsHovered] = React__default.useState(false);
3248
- // State hook for tracking focus status of the Select input field
3249
- var [isFocused, setIsFocused] = React__default.useState(false);
3250
- // State hook for managing the value(s) selected by the user, initialized with the default value
3251
- var [value, setValue] = React__default.useState(defaultValue);
3252
- // State hook for keeping track of the currently highlighted index in the options list
3253
- var [highlightedIndex, setHighlightedIndex] = React__default.useState(0);
3254
- // Returns an object containing all stateful values and their associated setters to manage the Select component's state
3255
- return {
3509
+ var ContextMenuSizes = {
3510
+ sm: {
3511
+ padding: '6px 8px',
3512
+ fontSize: '14px',
3513
+ minWidth: '160px'
3514
+ },
3515
+ md: {
3516
+ padding: '8px 12px',
3517
+ fontSize: '16px',
3518
+ minWidth: '180px'
3519
+ },
3520
+ lg: {
3521
+ padding: '10px 16px',
3522
+ fontSize: '18px',
3523
+ minWidth: '200px'
3524
+ }
3525
+ };
3526
+ var ContextMenuVariants = {
3527
+ default: {
3528
+ backgroundColor: 'white',
3529
+ color: 'color.gray.800'
3530
+ },
3531
+ filled: {
3532
+ backgroundColor: 'color.gray.100',
3533
+ color: 'color.gray.800'
3534
+ },
3535
+ outline: {
3536
+ backgroundColor: 'white',
3537
+ borderWidth: '1px',
3538
+ borderStyle: 'solid',
3539
+ borderColor: 'color.gray.200',
3540
+ color: 'color.gray.800'
3541
+ }
3542
+ };
3543
+ var ContextMenuItemStates = {
3544
+ hover: {
3545
+ backgroundColor: 'color.gray.100'
3546
+ },
3547
+ active: {
3548
+ backgroundColor: 'color.gray.200'
3549
+ },
3550
+ disabled: {
3551
+ opacity: 0.5,
3552
+ cursor: 'not-allowed'
3553
+ }
3554
+ };
3555
+ // Helper function to calculate position based on available space
3556
+ var calculateMenuPosition = function calculateMenuPosition(x, y, menuWidth, menuHeight, windowWidth, windowHeight, side, align) {
3557
+ if (side === void 0) {
3558
+ side = 'right';
3559
+ }
3560
+ if (align === void 0) {
3561
+ align = 'start';
3562
+ }
3563
+ var posX = x;
3564
+ var posY = y;
3565
+ // Adjust horizontal position based on side
3566
+ if (side === 'left') {
3567
+ posX = x - menuWidth;
3568
+ } else if (side === 'right') {
3569
+ posX = x;
3570
+ } else if (side === 'top' || side === 'bottom') {
3571
+ // Adjust horizontal position based on alignment for top/bottom
3572
+ if (align === 'center') {
3573
+ posX = x - menuWidth / 2;
3574
+ } else if (align === 'end') {
3575
+ posX = x - menuWidth;
3576
+ }
3577
+ }
3578
+ // Adjust vertical position based on side
3579
+ if (side === 'top') {
3580
+ posY = y - menuHeight;
3581
+ } else if (side === 'bottom') {
3582
+ posY = y;
3583
+ } else if (side === 'left' || side === 'right') {
3584
+ // Adjust vertical position based on alignment for left/right
3585
+ if (align === 'center') {
3586
+ posY = y - menuHeight / 2;
3587
+ } else if (align === 'end') {
3588
+ posY = y - menuHeight;
3589
+ }
3590
+ }
3591
+ // Ensure menu stays within window bounds
3592
+ if (posX + menuWidth > windowWidth) {
3593
+ posX = windowWidth - menuWidth;
3594
+ }
3595
+ if (posX < 0) {
3596
+ posX = 0;
3597
+ }
3598
+ if (posY + menuHeight > windowHeight) {
3599
+ posY = windowHeight - menuHeight;
3600
+ }
3601
+ if (posY < 0) {
3602
+ posY = 0;
3603
+ }
3604
+ return {
3605
+ x: posX,
3606
+ y: posY
3607
+ };
3608
+ };
3609
+
3610
+ var _excluded$a = ["children", "disableNativeContextMenu", "views"],
3611
+ _excluded2$2 = ["items", "position", "side", "align", "views"],
3612
+ _excluded3$2 = ["item", "views"],
3613
+ _excluded4$2 = ["views"],
3614
+ _excluded5$1 = ["children", "items", "size", "variant", "disableNativeContextMenu", "views"];
3615
+ // Create context for the ContextMenu
3616
+ var ContextMenuContext = /*#__PURE__*/React.createContext({
3617
+ isOpen: false,
3618
+ setIsOpen: () => {},
3619
+ position: {
3620
+ x: 0,
3621
+ y: 0
3622
+ },
3623
+ setPosition: () => {},
3624
+ activeSubmenuId: null,
3625
+ setActiveSubmenuId: () => {},
3626
+ size: 'md',
3627
+ variant: 'default'
3628
+ });
3629
+ // Provider component for the ContextMenu context
3630
+ var ContextMenuProvider = _ref => {
3631
+ var {
3632
+ children,
3633
+ value
3634
+ } = _ref;
3635
+ return /*#__PURE__*/React__default.createElement(ContextMenuContext.Provider, {
3636
+ value: value
3637
+ }, children);
3638
+ };
3639
+ // Hook to use the ContextMenu context
3640
+ var useContextMenuContext = () => {
3641
+ var context = React.useContext(ContextMenuContext);
3642
+ if (!context) {
3643
+ throw new Error('useContextMenuContext must be used within a ContextMenuProvider');
3644
+ }
3645
+ return context;
3646
+ };
3647
+ // ContextMenu Trigger component
3648
+ var ContextMenuTrigger = _ref2 => {
3649
+ var {
3650
+ children,
3651
+ disableNativeContextMenu = true,
3652
+ views
3653
+ } = _ref2,
3654
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$a);
3655
+ var {
3656
+ setIsOpen,
3657
+ setPosition
3658
+ } = useContextMenuContext();
3659
+ var handleContextMenu = e => {
3660
+ if (disableNativeContextMenu) {
3661
+ e.preventDefault();
3662
+ }
3663
+ setPosition({
3664
+ x: e.clientX,
3665
+ y: e.clientY
3666
+ });
3667
+ setIsOpen(true);
3668
+ };
3669
+ return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
3670
+ onContextMenu: handleContextMenu
3671
+ }, views == null ? void 0 : views.container, props), children);
3672
+ };
3673
+ // ContextMenu Content component
3674
+ var ContextMenuContent = _ref3 => {
3675
+ var {
3676
+ items,
3677
+ position,
3678
+ side = 'right',
3679
+ align = 'start',
3680
+ views
3681
+ } = _ref3,
3682
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded2$2);
3683
+ var {
3684
+ isOpen,
3685
+ position: contextPosition,
3686
+ // activeSubmenuId,
3687
+ // setActiveSubmenuId,
3688
+ // size,
3689
+ variant
3690
+ } = useContextMenuContext();
3691
+ var menuRef = React.useRef(null);
3692
+ var [menuPosition, setMenuPosition] = React.useState({
3693
+ x: 0,
3694
+ y: 0
3695
+ });
3696
+ // Calculate the position of the menu
3697
+ React.useEffect(() => {
3698
+ if (isOpen && menuRef.current) {
3699
+ var menuWidth = menuRef.current.offsetWidth;
3700
+ var menuHeight = menuRef.current.offsetHeight;
3701
+ var windowWidth = window.innerWidth;
3702
+ var windowHeight = window.innerHeight;
3703
+ var pos = position || contextPosition;
3704
+ var calculatedPosition = calculateMenuPosition(pos.x, pos.y, menuWidth, menuHeight, windowWidth, windowHeight, side, align);
3705
+ setMenuPosition(calculatedPosition);
3706
+ }
3707
+ }, [isOpen, contextPosition, position, side, align]);
3708
+ if (!isOpen) {
3709
+ return null;
3710
+ }
3711
+ return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
3712
+ id: "context-menu",
3713
+ ref: menuRef,
3714
+ position: "fixed",
3715
+ top: menuPosition.y,
3716
+ left: menuPosition.x,
3717
+ zIndex: 1000,
3718
+ borderRadius: 4,
3719
+ boxShadow: "0px 2px 8px rgba(0, 0, 0, 0.15)",
3720
+ overflow: "hidden"
3721
+ }, ContextMenuVariants[variant], views == null ? void 0 : views.menu, props), items.map((item, index) => {
3722
+ if (item.divider) {
3723
+ return /*#__PURE__*/React__default.createElement(ContextMenuDivider, {
3724
+ key: "divider-" + index,
3725
+ views: views
3726
+ });
3727
+ }
3728
+ return /*#__PURE__*/React__default.createElement(ContextMenuItem, {
3729
+ key: item.id,
3730
+ item: item,
3731
+ views: views
3732
+ });
3733
+ }));
3734
+ };
3735
+ // ContextMenu Item component
3736
+ var ContextMenuItem = _ref4 => {
3737
+ var {
3738
+ item,
3739
+ views
3740
+ } = _ref4,
3741
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded3$2);
3742
+ var {
3743
+ activeSubmenuId,
3744
+ setActiveSubmenuId,
3745
+ size
3746
+ } = useContextMenuContext();
3747
+ var [isHovered, setIsHovered] = React.useState(false);
3748
+ var hasSubmenu = item.items && item.items.length > 0;
3749
+ var isSubmenuActive = activeSubmenuId === item.id;
3750
+ var itemRef = React.useRef(null);
3751
+ var [submenuPosition, setSubmenuPosition] = React.useState({
3752
+ x: 0,
3753
+ y: 0
3754
+ });
3755
+ // Handle mouse enter event
3756
+ var handleMouseEnter = () => {
3757
+ setIsHovered(true);
3758
+ if (hasSubmenu) {
3759
+ setActiveSubmenuId(item.id);
3760
+ }
3761
+ };
3762
+ // Handle mouse leave event
3763
+ var handleMouseLeave = () => {
3764
+ setIsHovered(false);
3765
+ };
3766
+ // Handle click event
3767
+ var handleClick = () => {
3768
+ if (item.disabled) return;
3769
+ if (!hasSubmenu && item.onClick) {
3770
+ item.onClick();
3771
+ }
3772
+ };
3773
+ // Calculate the position of the submenu
3774
+ React.useEffect(() => {
3775
+ if (isSubmenuActive && itemRef.current) {
3776
+ var rect = itemRef.current.getBoundingClientRect();
3777
+ setSubmenuPosition({
3778
+ x: rect.right,
3779
+ y: rect.top
3780
+ });
3781
+ }
3782
+ }, [isSubmenuActive]);
3783
+ return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
3784
+ ref: itemRef,
3785
+ display: "flex",
3786
+ alignItems: "center",
3787
+ cursor: item.disabled ? 'not-allowed' : 'pointer',
3788
+ opacity: item.disabled ? 0.5 : 1,
3789
+ position: "relative"
3790
+ }, ContextMenuSizes[size], {
3791
+ _hover: !item.disabled ? ContextMenuItemStates.hover : {},
3792
+ backgroundColor: isHovered && !item.disabled ? 'color.gray.100' : 'transparent',
3793
+ onMouseEnter: handleMouseEnter,
3794
+ onMouseLeave: handleMouseLeave,
3795
+ onClick: handleClick
3796
+ }, views == null ? void 0 : views.item, props), item.icon && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
3797
+ marginRight: 8
3798
+ }, views == null ? void 0 : views.icon), item.icon)), /*#__PURE__*/React__default.createElement(appStudio.View, {
3799
+ flexGrow: 1
3800
+ }, item.label), hasSubmenu && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
3801
+ marginLeft: 8
3802
+ }, views == null ? void 0 : views.submenuIndicator), /*#__PURE__*/React__default.createElement("svg", {
3803
+ width: "16",
3804
+ height: "16",
3805
+ viewBox: "0 0 24 24",
3806
+ fill: "none",
3807
+ xmlns: "http://www.w3.org/2000/svg"
3808
+ }, /*#__PURE__*/React__default.createElement("path", {
3809
+ d: "M8.59 16.59L13.17 12L8.59 7.41L10 6L16 12L10 18L8.59 16.59Z",
3810
+ fill: "currentColor"
3811
+ })))), isSubmenuActive && hasSubmenu && (/*#__PURE__*/React__default.createElement(ContextMenuContent, {
3812
+ items: item.items || [],
3813
+ position: submenuPosition,
3814
+ side: "right",
3815
+ align: "start",
3816
+ views: views
3817
+ })));
3818
+ };
3819
+ // ContextMenu Divider component
3820
+ var ContextMenuDivider = _ref5 => {
3821
+ var {
3822
+ views
3823
+ } = _ref5,
3824
+ props = _objectWithoutPropertiesLoose(_ref5, _excluded4$2);
3825
+ return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
3826
+ height: "1px",
3827
+ backgroundColor: "color.gray.200",
3828
+ margin: "4px 0"
3829
+ }, views == null ? void 0 : views.divider, props));
3830
+ };
3831
+ // Main ContextMenu View component
3832
+ var ContextMenuView = _ref6 => {
3833
+ var {
3834
+ children,
3835
+ items,
3836
+ disableNativeContextMenu = true,
3837
+ views
3838
+ } = _ref6,
3839
+ props = _objectWithoutPropertiesLoose(_ref6, _excluded5$1);
3840
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(ContextMenuTrigger, Object.assign({
3841
+ disableNativeContextMenu: disableNativeContextMenu,
3842
+ views: views
3843
+ }, props), children), /*#__PURE__*/React__default.createElement(ContextMenuContent, {
3844
+ items: items,
3845
+ views: views
3846
+ }));
3847
+ };
3848
+
3849
+ var _excluded$b = ["children", "items", "size", "variant", "disableNativeContextMenu", "views"];
3850
+ /**
3851
+ * ContextMenu component for displaying a custom context menu on right-click.
3852
+ */
3853
+ var ContextMenuComponent = _ref => {
3854
+ var {
3855
+ children,
3856
+ items,
3857
+ size = 'md',
3858
+ variant = 'default',
3859
+ disableNativeContextMenu = true,
3860
+ views
3861
+ } = _ref,
3862
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
3863
+ var {
3864
+ isOpen,
3865
+ setIsOpen,
3866
+ position,
3867
+ setPosition,
3868
+ activeSubmenuId,
3869
+ setActiveSubmenuId
3870
+ } = useContextMenuState();
3871
+ return /*#__PURE__*/React__default.createElement(ContextMenuProvider, {
3872
+ value: {
3873
+ isOpen,
3874
+ setIsOpen,
3875
+ position,
3876
+ setPosition,
3877
+ activeSubmenuId,
3878
+ setActiveSubmenuId,
3879
+ size,
3880
+ variant
3881
+ }
3882
+ }, /*#__PURE__*/React__default.createElement(ContextMenuView, Object.assign({
3883
+ items: items,
3884
+ size: size,
3885
+ variant: variant,
3886
+ disableNativeContextMenu: disableNativeContextMenu,
3887
+ views: views
3888
+ }, props), children));
3889
+ };
3890
+ var ContextMenu = ContextMenuComponent;
3891
+ // Assign the sub-components to the main component
3892
+ ContextMenu.Trigger = ContextMenuTrigger;
3893
+ ContextMenu.Content = ContextMenuContent;
3894
+ ContextMenu.Item = ContextMenuItem;
3895
+ ContextMenu.Divider = ContextMenuDivider;
3896
+
3897
+ var _excluded$c = ["src", "color", "views", "themeMode"],
3898
+ _excluded2$3 = ["path"];
3899
+ var FileSVG = _ref => {
3900
+ var {
3901
+ src,
3902
+ color,
3903
+ views
3904
+ } = _ref,
3905
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
3906
+ var {
3907
+ getColor,
3908
+ themeMode
3909
+ } = appStudio.useTheme();
3910
+ var Colorprops = color ? {
3911
+ fill: getColor(color, {
3912
+ themeMode
3913
+ }),
3914
+ stroke: getColor(color, {
3915
+ themeMode
3916
+ })
3917
+ } : {};
3918
+ return /*#__PURE__*/React__default.createElement(Center, Object.assign({}, props, views == null ? void 0 : views.container), /*#__PURE__*/React__default.createElement(appStudio.Image, Object.assign({}, Colorprops, {
3919
+ content: 'url("' + src + '")',
3920
+ width: "100%",
3921
+ height: "100%"
3922
+ }, views == null ? void 0 : views.image)));
3923
+ };
3924
+ var FileImage = _ref2 => {
3925
+ var {
3926
+ path
3927
+ } = _ref2,
3928
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded2$3);
3929
+ return /*#__PURE__*/React__default.createElement(appStudio.Image, Object.assign({
3930
+ src: path
3931
+ }, props));
3932
+ };
3933
+
3934
+ // Initializes the custom hook 'useSelectState' for managing the state of the Select component
3935
+ var useSelectState = _ref => {
3936
+ var {
3937
+ placeholder,
3938
+ isMulti,
3939
+ options
3940
+ } = _ref;
3941
+ // Determines the default value based on the 'placeholder' and 'isMulti' props, setting to an empty array for multi-select or an empty string/single default option
3942
+ var defaultValue = placeholder ? isMulti ? [] : '' // If there's a placeholder, set default to empty array for multi-select or empty string for single select
3943
+ : Array.isArray(options) && options.length > 0 ? options[0].value : ''; // If no placeholder, use the first option value if available, otherwise undefined
3944
+ // State hook for managing visibility of the Select dropdown, initially set to hidden
3945
+ var [hide, setHide] = React__default.useState(true);
3946
+ // State hook for tracking mouse hover status over the Select component
3947
+ var [isHovered, setIsHovered] = React__default.useState(false);
3948
+ // State hook for tracking focus status of the Select input field
3949
+ var [isFocused, setIsFocused] = React__default.useState(false);
3950
+ // State hook for managing the value(s) selected by the user, initialized with the default value
3951
+ var [value, setValue] = React__default.useState(defaultValue);
3952
+ // State hook for keeping track of the currently highlighted index in the options list
3953
+ var [highlightedIndex, setHighlightedIndex] = React__default.useState(0);
3954
+ // Returns an object containing all stateful values and their associated setters to manage the Select component's state
3955
+ return {
3256
3956
  value,
3257
3957
  setValue,
3258
3958
  hide,
@@ -3276,7 +3976,7 @@ var useItemState = () => {
3276
3976
  };
3277
3977
  };
3278
3978
 
3279
- var _excluded$b = ["children", "views"];
3979
+ var _excluded$d = ["children", "views"];
3280
3980
  var HelperText = _ref => {
3281
3981
  var {
3282
3982
  children,
@@ -3284,7 +3984,7 @@ var HelperText = _ref => {
3284
3984
  helperText: {}
3285
3985
  }
3286
3986
  } = _ref,
3287
- props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
3987
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
3288
3988
  return /*#__PURE__*/React__default.createElement(Text, Object.assign({
3289
3989
  size: "xs",
3290
3990
  marginVertical: 0,
@@ -3293,7 +3993,7 @@ var HelperText = _ref => {
3293
3993
  }, views['helperText'], props), children);
3294
3994
  };
3295
3995
 
3296
- var _excluded$c = ["children", "helperText", "error", "views"];
3996
+ var _excluded$e = ["children", "helperText", "error", "views"];
3297
3997
  var FieldContainer = _ref => {
3298
3998
  var {
3299
3999
  children,
@@ -3301,7 +4001,7 @@ var FieldContainer = _ref => {
3301
4001
  error = false,
3302
4002
  views
3303
4003
  } = _ref,
3304
- props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
4004
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
3305
4005
  return /*#__PURE__*/React__default.createElement(Vertical, Object.assign({
3306
4006
  gap: 5,
3307
4007
  position: "relative"
@@ -3360,7 +4060,7 @@ var PaddingWithoutLabel = {
3360
4060
  paddingRight: 16
3361
4061
  };
3362
4062
 
3363
- var _excluded$d = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "isWithLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "views"];
4063
+ var _excluded$f = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "isWithLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "views"];
3364
4064
  var FieldContent = _ref => {
3365
4065
  var {
3366
4066
  shadow,
@@ -3378,7 +4078,7 @@ var FieldContent = _ref => {
3378
4078
  pickerBox: {}
3379
4079
  }
3380
4080
  } = _ref,
3381
- props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
4081
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
3382
4082
  var isInteractive = (isHovered || isFocused) && !isDisabled;
3383
4083
  var color = error ? 'error' : isInteractive ? 'theme.primary' : 'midgray';
3384
4084
  return /*#__PURE__*/React__default.createElement(Horizontal, Object.assign({
@@ -3399,12 +4099,12 @@ var FieldContent = _ref => {
3399
4099
  }, isWithLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant], views['box'], props), children);
3400
4100
  };
3401
4101
 
3402
- var _excluded$e = ["children"];
4102
+ var _excluded$g = ["children"];
3403
4103
  var FieldIcons = _ref => {
3404
4104
  var {
3405
4105
  children
3406
4106
  } = _ref,
3407
- props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
4107
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
3408
4108
  return /*#__PURE__*/React__default.createElement(Center, Object.assign({
3409
4109
  gap: 10,
3410
4110
  right: 16,
@@ -3456,7 +4156,7 @@ var HeadingSizes$1 = {
3456
4156
  }
3457
4157
  };
3458
4158
 
3459
- var _excluded$f = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
4159
+ var _excluded$h = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
3460
4160
  var LabelView = _ref => {
3461
4161
  var {
3462
4162
  children,
@@ -3472,7 +4172,7 @@ var LabelView = _ref => {
3472
4172
  size = 'sm'
3473
4173
  // The fontSize prop for the Element is determined by the 'size' prop passed to LabelView.
3474
4174
  } = _ref,
3475
- props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
4175
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
3476
4176
  // The fontStyle prop toggles between 'italic' and 'normal' based on the 'isItalic' boolean prop.
3477
4177
  var headingStyles = heading ? HeadingSizes$1[heading] : {};
3478
4178
  // fontWeight is derived from the Typography module, ensuring consistent font weighting across the app.
@@ -3504,7 +4204,7 @@ React__default.createElement(LabelView, Object.assign({}, props))
3504
4204
  var Label = LabelComponent;
3505
4205
  // Export the 'LabelComponent' as 'Label' to be reused throughout the project.
3506
4206
 
3507
- var _excluded$g = ["children", "size", "error", "color", "views", "helperText"];
4207
+ var _excluded$i = ["children", "size", "error", "color", "views", "helperText"];
3508
4208
  var FieldLabel = _ref => {
3509
4209
  var {
3510
4210
  children,
@@ -3515,7 +4215,7 @@ var FieldLabel = _ref => {
3515
4215
  label: {}
3516
4216
  }
3517
4217
  } = _ref,
3518
- props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
4218
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
3519
4219
  return /*#__PURE__*/React__default.createElement(Label, Object.assign({
3520
4220
  top: 6,
3521
4221
  zIndex: 1000,
@@ -3528,12 +4228,12 @@ var FieldLabel = _ref => {
3528
4228
  }, views['label'], props), children);
3529
4229
  };
3530
4230
 
3531
- var _excluded$h = ["children"];
4231
+ var _excluded$j = ["children"];
3532
4232
  var FieldWrapper = _ref => {
3533
4233
  var {
3534
4234
  children
3535
4235
  } = _ref,
3536
- props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
4236
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
3537
4237
  return /*#__PURE__*/React__default.createElement(Vertical, Object.assign({
3538
4238
  width: "100%",
3539
4239
  maxWidth: '100%'
@@ -3550,10 +4250,10 @@ var IconSizes$2 = {
3550
4250
  xl: 16
3551
4251
  };
3552
4252
 
3553
- var _excluded$i = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
3554
- _excluded2$3 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
3555
- _excluded3$2 = ["option", "size", "removeOption"],
3556
- _excluded4$2 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isMulti", "isFocused", "isHovered", "isDisabled", "isReadOnly", "options", "shadow", "size", "shape", "variant", "views", "onChange", "setHide", "setValue", "setIsHovered", "setIsFocused", "setHighlightedIndex", "highlightedIndex"];
4253
+ var _excluded$k = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
4254
+ _excluded2$4 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
4255
+ _excluded3$3 = ["option", "size", "removeOption"],
4256
+ _excluded4$3 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isMulti", "isFocused", "isHovered", "isDisabled", "isReadOnly", "options", "shadow", "size", "shape", "variant", "views", "onChange", "setHide", "setValue", "setIsHovered", "setIsFocused", "setHighlightedIndex", "highlightedIndex"];
3557
4257
  // Defines a component to render individual selection items within a list.
3558
4258
  var Item = _ref => {
3559
4259
  var {
@@ -3564,7 +4264,7 @@ var Item = _ref => {
3564
4264
  callback = () => {},
3565
4265
  style
3566
4266
  } = _ref,
3567
- props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
4267
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
3568
4268
  // Handles the click event on an option by invoking the callback with the selected option's value.
3569
4269
  var handleOptionClick = option => callback(option);
3570
4270
  // Toggles the hover state on the item.
@@ -3634,7 +4334,7 @@ var HiddenSelect = _ref4 => {
3634
4334
  isReadOnly = false,
3635
4335
  options = []
3636
4336
  } = _ref4,
3637
- props = _objectWithoutPropertiesLoose(_ref4, _excluded2$3);
4337
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded2$4);
3638
4338
  var handleChange = event => {
3639
4339
  if (onChange) onChange(event);
3640
4340
  };
@@ -3724,7 +4424,7 @@ var MultiSelect = _ref6 => {
3724
4424
  size = 'md',
3725
4425
  removeOption = () => {}
3726
4426
  } = _ref6,
3727
- props = _objectWithoutPropertiesLoose(_ref6, _excluded3$2);
4427
+ props = _objectWithoutPropertiesLoose(_ref6, _excluded3$3);
3728
4428
  var handleClick = () => removeOption(option);
3729
4429
  return /*#__PURE__*/React__default.createElement(Horizontal, Object.assign({
3730
4430
  gap: 10,
@@ -3779,7 +4479,7 @@ var SelectView = _ref7 => {
3779
4479
  setHighlightedIndex,
3780
4480
  highlightedIndex
3781
4481
  } = _ref7,
3782
- props = _objectWithoutPropertiesLoose(_ref7, _excluded4$2);
4482
+ props = _objectWithoutPropertiesLoose(_ref7, _excluded4$3);
3783
4483
  var isWithLabel = !!(isFocused && label);
3784
4484
  var handleHover = () => setIsHovered(!isHovered);
3785
4485
  var handleFocus = () => setIsFocused(true);
@@ -4024,7 +4724,7 @@ var SliderPadding = {
4024
4724
  }
4025
4725
  };
4026
4726
 
4027
- var _excluded$j = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "value", "isHovered", "isDisabled", "isReadOnly", "on", "setOn", "onChange", "setValue", "setIsHovered", "helperText", "views"];
4727
+ var _excluded$l = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "value", "isHovered", "isDisabled", "isReadOnly", "on", "setOn", "onChange", "setValue", "setIsHovered", "helperText", "views"];
4028
4728
  var SwitchContent = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
4029
4729
  type: "checkbox"
4030
4730
  }, props));
@@ -4053,7 +4753,7 @@ var SwitchView = _ref => {
4053
4753
  label: {}
4054
4754
  }
4055
4755
  } = _ref,
4056
- props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
4756
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
4057
4757
  var handleToggle = event => {
4058
4758
  if (!isReadOnly) {
4059
4759
  setValue(!value);
@@ -4143,7 +4843,7 @@ var useTextAreaState = _ref => {
4143
4843
  // Export of the useTextAreaState hook for external usage.
4144
4844
  };
4145
4845
 
4146
- var _excluded$k = ["id", "name", "hint", "error", "value", "label", "shadow", "helperText", "placeholder", "size", "shape", "variant", "isHovered", "isFocused", "isEditable", "isReadOnly", "isDisabled", "isAutoFocus", "isMultiline", "maxRows", "maxCols", "onBlur", "onChange", "onFocus", "onChangeText", "setHint", "setValue", "setIsFocused", "setIsHovered", "views"];
4846
+ var _excluded$m = ["id", "name", "hint", "error", "value", "label", "shadow", "helperText", "placeholder", "size", "shape", "variant", "isHovered", "isFocused", "isEditable", "isReadOnly", "isDisabled", "isAutoFocus", "isMultiline", "maxRows", "maxCols", "onBlur", "onChange", "onFocus", "onChangeText", "setHint", "setValue", "setIsFocused", "setIsHovered", "views"];
4147
4847
  var TextAreaView = _ref => {
4148
4848
  var {
4149
4849
  id,
@@ -4182,7 +4882,7 @@ var TextAreaView = _ref => {
4182
4882
  field: {}
4183
4883
  }
4184
4884
  } = _ref,
4185
- props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
4885
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
4186
4886
  var isWithLabel = !!(isFocused && label);
4187
4887
  var fieldStyles = Object.assign({
4188
4888
  margin: 0,
@@ -4311,7 +5011,7 @@ var useTextFieldState = _ref => {
4311
5011
  };
4312
5012
  };
4313
5013
 
4314
- var _excluded$l = ["id", "name", "label", "hint", "value", "onChange", "left", "right", "helperText", "placeholder", "onChangeText", "shadow", "views", "size", "shape", "variant", "error", "isFocused", "isHovered", "isDisabled", "isReadOnly", "isClearable", "isAutoFocus", "setHint", "setIsFocused", "setIsHovered", "setValue", "onClick", "onFocus", "onBlur", "themeMode"];
5014
+ var _excluded$n = ["id", "name", "label", "hint", "value", "onChange", "left", "right", "helperText", "placeholder", "onChangeText", "shadow", "views", "size", "shape", "variant", "error", "isFocused", "isHovered", "isDisabled", "isReadOnly", "isClearable", "isAutoFocus", "setHint", "setIsFocused", "setIsHovered", "setValue", "onClick", "onFocus", "onBlur", "themeMode"];
4315
5015
  var TextFieldInput = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
4316
5016
  type: "text"
4317
5017
  }, props));
@@ -4354,7 +5054,7 @@ var TextFieldView = _ref => {
4354
5054
  onBlur = () => {},
4355
5055
  themeMode: elementMode
4356
5056
  } = _ref,
4357
- props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
5057
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
4358
5058
  var {
4359
5059
  getColor,
4360
5060
  themeMode
@@ -4535,7 +5235,7 @@ var IconSizes$3 = {
4535
5235
  '6xl': 60
4536
5236
  };
4537
5237
 
4538
- var _excluded$m = ["id", "icon", "name", "label", "isChecked", "onChange", "onValueChange", "shadow", "labelPosition", "size", "error", "isSelected", "isHovered", "isDisabled", "isReadOnly", "isIndeterminate", "defaultIsSelected", "setIsSelected", "setIsHovered", "views", "infoText", "helperText"];
5238
+ var _excluded$o = ["id", "icon", "name", "label", "isChecked", "onChange", "onValueChange", "shadow", "labelPosition", "size", "error", "isSelected", "isHovered", "isDisabled", "isReadOnly", "isIndeterminate", "defaultIsSelected", "setIsSelected", "setIsHovered", "views", "infoText", "helperText"];
4539
5239
  var CheckboxView = _ref => {
4540
5240
  var {
4541
5241
  id,
@@ -4562,7 +5262,7 @@ var CheckboxView = _ref => {
4562
5262
  },
4563
5263
  infoText
4564
5264
  } = _ref,
4565
- props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
5265
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
4566
5266
  var handleHover = () => setIsHovered(!isHovered);
4567
5267
  var handleChange = () => {
4568
5268
  if (!isReadOnly && !isDisabled) {
@@ -6126,11 +6826,11 @@ var IconSizes$4 = {
6126
6826
  xl: 16
6127
6827
  };
6128
6828
 
6129
- var _excluded$n = ["size"],
6130
- _excluded2$4 = ["size"],
6131
- _excluded3$3 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isHovered", "isFocused", "isAutoFocus", "isDisabled", "isReadOnly", "shadow", "newOptions", "size", "variant", "shape", "onChange", "onBlur", "setHide", "setNewOptions", "setIsHovered", "setIsFocused", "setValue", "views", "themeMode"];
6829
+ var _excluded$p = ["size"],
6830
+ _excluded2$5 = ["size"],
6831
+ _excluded3$4 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isHovered", "isFocused", "isAutoFocus", "isDisabled", "isReadOnly", "shadow", "newOptions", "size", "variant", "shape", "onChange", "onBlur", "setHide", "setNewOptions", "setIsHovered", "setIsFocused", "setValue", "views", "themeMode"];
6132
6832
  var CountryList = _ref => {
6133
- var props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
6833
+ var props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
6134
6834
  return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
6135
6835
  as: "ul"
6136
6836
  }, props));
@@ -6139,7 +6839,7 @@ var CountrySelector = props => (/*#__PURE__*/React__default.createElement(appStu
6139
6839
  type: "country"
6140
6840
  }, props)));
6141
6841
  var CountryItem = _ref2 => {
6142
- var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$4);
6842
+ var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$5);
6143
6843
  return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
6144
6844
  as: "li"
6145
6845
  }, props));
@@ -6242,7 +6942,7 @@ var CountryPickerView = _ref5 => {
6242
6942
  },
6243
6943
  themeMode: elementMode
6244
6944
  } = _ref5,
6245
- props = _objectWithoutPropertiesLoose(_ref5, _excluded3$3);
6945
+ props = _objectWithoutPropertiesLoose(_ref5, _excluded3$4);
6246
6946
  var {
6247
6947
  getColor,
6248
6948
  themeMode
@@ -6369,7 +7069,7 @@ var useDatePickerState = () => {
6369
7069
  };
6370
7070
  };
6371
7071
 
6372
- var _excluded$o = ["id", "icon", "name", "label", "date", "children", "helperText", "shadow", "size", "variant", "shape", "views", "error", "isHovered", "isFocused", "isDisabled", "isReadOnly", "setDate", "setIsFocused", "setIsHovered", "onChange", "onChangeText"];
7072
+ var _excluded$q = ["id", "icon", "name", "label", "date", "children", "helperText", "shadow", "size", "variant", "shape", "views", "error", "isHovered", "isFocused", "isDisabled", "isReadOnly", "setDate", "setIsFocused", "setIsHovered", "onChange", "onChangeText"];
6373
7073
  var DatePickerContent = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
6374
7074
  type: "date"
6375
7075
  }, props));
@@ -6402,7 +7102,7 @@ var DatePickerView = _ref => {
6402
7102
  onChange,
6403
7103
  onChangeText
6404
7104
  } = _ref,
6405
- props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
7105
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
6406
7106
  var isWithLabel = !!(isFocused && label);
6407
7107
  var handleHover = () => setIsHovered(!isHovered);
6408
7108
  var handleFocus = () => setIsFocused(true);
@@ -6489,8 +7189,8 @@ var usePasswordState = props => {
6489
7189
  }, props, textFieldStates);
6490
7190
  };
6491
7191
 
6492
- var _excluded$p = ["visibleIcon", "hiddenIcon"],
6493
- _excluded2$5 = ["isVisible", "setIsVisible"];
7192
+ var _excluded$r = ["visibleIcon", "hiddenIcon"],
7193
+ _excluded2$6 = ["isVisible", "setIsVisible"];
6494
7194
  var PasswordComponent = _ref => {
6495
7195
  var {
6496
7196
  visibleIcon = /*#__PURE__*/React__default.createElement(OpenEyeIcon, {
@@ -6500,13 +7200,13 @@ var PasswordComponent = _ref => {
6500
7200
  widthHeight: 14
6501
7201
  })
6502
7202
  } = _ref,
6503
- props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
7203
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
6504
7204
  var _usePasswordState = usePasswordState(props),
6505
7205
  {
6506
7206
  isVisible,
6507
7207
  setIsVisible
6508
7208
  } = _usePasswordState,
6509
- passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$5);
7209
+ passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$6);
6510
7210
  return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, passwordProps, {
6511
7211
  type: isVisible ? 'text' : 'password',
6512
7212
  isClearable: false,
@@ -6554,7 +7254,7 @@ var useComboBoxState = (items, placeholder, searchPlaceholder) => {
6554
7254
  };
6555
7255
  };
6556
7256
 
6557
- var _excluded$q = ["placeholder", "items", "showTick", "onSelect", "searchEnabled", "left", "right", "label", "filteredItems", "setSelectedItem", "selectedItem", "highlightedIndex", "setHighlightedIndex", "searchQuery", "setSearchQuery", "setFilteredItems", "views", "isDropdownVisible", "setIsDropdownVisible"];
7257
+ var _excluded$s = ["placeholder", "items", "showTick", "onSelect", "searchEnabled", "left", "right", "label", "filteredItems", "setSelectedItem", "selectedItem", "highlightedIndex", "setHighlightedIndex", "searchQuery", "setSearchQuery", "setFilteredItems", "views", "isDropdownVisible", "setIsDropdownVisible"];
6558
7258
  // Defines the functional component 'ComboBoxView' with destructured props.
6559
7259
  var ComboBoxView = _ref => {
6560
7260
  var {
@@ -6579,7 +7279,7 @@ var ComboBoxView = _ref => {
6579
7279
  setIsDropdownVisible
6580
7280
  // Collects all further props not destructured explicitly.
6581
7281
  } = _ref,
6582
- props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
7282
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
6583
7283
  // Sets up an effect to handle clicking outside the dropdown to close it.
6584
7284
  React.useEffect(() => {
6585
7285
  var handleClickOutside = event => {
@@ -6690,7 +7390,7 @@ var ComboBoxView = _ref => {
6690
7390
  }))))))))))));
6691
7391
  };
6692
7392
 
6693
- var _excluded$r = ["id", "name", "items", "placeholder", "searchPlaceholder"];
7393
+ var _excluded$t = ["id", "name", "items", "placeholder", "searchPlaceholder"];
6694
7394
  // Defines the ComboBoxComponent functional component with ComboBoxProps
6695
7395
  var ComboBoxComponent = _ref => {
6696
7396
  var {
@@ -6706,7 +7406,7 @@ var ComboBoxComponent = _ref => {
6706
7406
  searchPlaceholder
6707
7407
  // Destructures the rest of the props not explicitly defined
6708
7408
  } = _ref,
6709
- props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
7409
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
6710
7410
  // Initializes ComboBox state using custom hook with items and placeholders
6711
7411
  var state = useComboBoxState(items, placeholder, searchPlaceholder);
6712
7412
  return (
@@ -6722,7 +7422,7 @@ var ComboBoxComponent = _ref => {
6722
7422
  // Exports the ComboBoxComponent as ComboBox
6723
7423
  var ComboBox = ComboBoxComponent;
6724
7424
 
6725
- var _excluded$s = ["children", "autoFocus", "initFocus", "onChange"];
7425
+ var _excluded$u = ["children", "autoFocus", "initFocus", "onChange"];
6726
7426
  var FocusContext = /*#__PURE__*/React.createContext({
6727
7427
  active: false,
6728
7428
  focusNextInput: () => {},
@@ -6738,7 +7438,7 @@ var FormikForm = _ref => {
6738
7438
  initFocus,
6739
7439
  onChange = () => {}
6740
7440
  } = _ref,
6741
- props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
7441
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
6742
7442
  var formik$1 = formik.useFormikContext();
6743
7443
  React.useEffect(() => {
6744
7444
  onChange(formik$1.values);
@@ -6786,7 +7486,7 @@ var FormikForm = _ref => {
6786
7486
  }, /*#__PURE__*/React__default.createElement(appStudio.Form, Object.assign({}, props), children));
6787
7487
  };
6788
7488
 
6789
- var _excluded$t = ["name", "type"];
7489
+ var _excluded$v = ["name", "type"];
6790
7490
  var getInputTypeProps = type => {
6791
7491
  switch (type) {
6792
7492
  case 'email':
@@ -6825,7 +7525,7 @@ var useFormikInput = _ref => {
6825
7525
  name,
6826
7526
  type
6827
7527
  } = _ref,
6828
- props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
7528
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
6829
7529
  var focus = useFormFocus();
6830
7530
  var {
6831
7531
  touched,
@@ -6869,13 +7569,13 @@ var useFormikInput = _ref => {
6869
7569
  } : {});
6870
7570
  };
6871
7571
 
6872
- var _excluded$u = ["value"];
7572
+ var _excluded$w = ["value"];
6873
7573
  var CheckboxComponent$1 = props => {
6874
7574
  var _useFormikInput = useFormikInput(props),
6875
7575
  {
6876
7576
  value
6877
7577
  } = _useFormikInput,
6878
- formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$u);
7578
+ formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$w);
6879
7579
  formProps.isChecked = value;
6880
7580
  var checkboxStates = useCheckboxState(props);
6881
7581
  return /*#__PURE__*/React__default.createElement(CheckboxView, Object.assign({}, checkboxStates, formProps));
@@ -6933,11 +7633,11 @@ var TextAreaComponent$1 = props => {
6933
7633
  */
6934
7634
  var FormikTextArea = TextAreaComponent$1;
6935
7635
 
6936
- var _excluded$v = ["value"];
7636
+ var _excluded$x = ["value"];
6937
7637
  var TextFieldComponent$1 = props => {
6938
7638
  var formProps = useFormikInput(props);
6939
7639
  var _useTextFieldState = useTextFieldState(props),
6940
- textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$v);
7640
+ textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$x);
6941
7641
  return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, textFieldStates, formProps));
6942
7642
  };
6943
7643
  /**
@@ -6945,8 +7645,8 @@ var TextFieldComponent$1 = props => {
6945
7645
  */
6946
7646
  var FormikTextField = TextFieldComponent$1;
6947
7647
 
6948
- var _excluded$w = ["visibleIcon", "hiddenIcon"],
6949
- _excluded2$6 = ["isVisible", "setIsVisible"];
7648
+ var _excluded$y = ["visibleIcon", "hiddenIcon"],
7649
+ _excluded2$7 = ["isVisible", "setIsVisible"];
6950
7650
  var PasswordComponent$1 = _ref => {
6951
7651
  var {
6952
7652
  visibleIcon = /*#__PURE__*/React__default.createElement(OpenEyeIcon, {
@@ -6956,14 +7656,14 @@ var PasswordComponent$1 = _ref => {
6956
7656
  widthHeight: 14
6957
7657
  })
6958
7658
  } = _ref,
6959
- props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
7659
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
6960
7660
  var formProps = useFormikInput(props);
6961
7661
  var _usePasswordState = usePasswordState(formProps),
6962
7662
  {
6963
7663
  isVisible,
6964
7664
  setIsVisible
6965
7665
  } = _usePasswordState,
6966
- passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$6);
7666
+ passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$7);
6967
7667
  return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, passwordProps, {
6968
7668
  type: isVisible ? 'text' : 'password',
6969
7669
  isClearable: false,
@@ -6981,14 +7681,14 @@ var PasswordComponent$1 = _ref => {
6981
7681
  */
6982
7682
  var FormikPassword = PasswordComponent$1;
6983
7683
 
6984
- var _excluded$x = ["items", "placeholder", "searchPlaceholder"];
7684
+ var _excluded$z = ["items", "placeholder", "searchPlaceholder"];
6985
7685
  var ComboBoxComponent$1 = _ref => {
6986
7686
  var {
6987
7687
  items,
6988
7688
  placeholder,
6989
7689
  searchPlaceholder
6990
7690
  } = _ref,
6991
- props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
7691
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
6992
7692
  var formProps = useFormikInput(props);
6993
7693
  var ComboBoxStates = useComboBoxState(items, placeholder, searchPlaceholder);
6994
7694
  // Ensure the onChange function from formProps is being called when an item is selected
@@ -7264,7 +7964,7 @@ var OrientationStyles = {
7264
7964
  }
7265
7965
  };
7266
7966
 
7267
- var _excluded$y = ["min", "max", "step", "currentValue", "stepValues", "shape", "size", "variant", "orientation", "isDisabled", "showValue", "showTooltip", "colorScheme", "label", "helperText", "themeMode", "shadow", "isDragging", "isHovered", "setIsHovered", "trackRef", "thumbRef", "handleThumbMouseDown", "handleTrackMouseDown", "handleKeyDown", "thumbPositionPercent", "ariaLabel", "views"];
7967
+ var _excluded$A = ["min", "max", "step", "currentValue", "stepValues", "shape", "size", "variant", "orientation", "isDisabled", "showValue", "showTooltip", "colorScheme", "label", "helperText", "themeMode", "shadow", "isDragging", "isHovered", "setIsHovered", "trackRef", "thumbRef", "handleThumbMouseDown", "handleTrackMouseDown", "handleKeyDown", "thumbPositionPercent", "ariaLabel", "views"];
7268
7968
  var SliderView = _ref => {
7269
7969
  var _views$tooltip, _views$tooltip2;
7270
7970
  var {
@@ -7307,7 +8007,7 @@ var SliderView = _ref => {
7307
8007
  tooltip: {}
7308
8008
  }
7309
8009
  } = _ref,
7310
- props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
8010
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
7311
8011
  var {
7312
8012
  getColor,
7313
8013
  themeMode
@@ -7528,15 +8228,37 @@ var SliderView = _ref => {
7528
8228
  };
7529
8229
 
7530
8230
  var SliderComponent = props => {
7531
- // Get state and handlers from the custom hook
7532
- var sliderState = useSliderState(props);
7533
- // Render the view component, passing down props and state
7534
- return /*#__PURE__*/React__default.createElement(SliderView, Object.assign({}, props, sliderState));
7535
- };
7536
- /**
8231
+ // Get Formik props (value, onChange, etc.)
8232
+ var formProps = useFormikInput(props);
8233
+ // Get slider state and handlers
8234
+ var sliderState = useSliderState(Object.assign({}, props, {
8235
+ value: formProps.value !== undefined ? Number(formProps.value) : undefined,
8236
+ onChange: value => {
8237
+ // Call Formik's onChange
8238
+ formProps.onChange(value);
8239
+ // Call the original onChange if provided
8240
+ props.onChange == null || props.onChange(value);
8241
+ }
8242
+ }));
8243
+ // Render the slider with both Formik props and slider state
8244
+ return /*#__PURE__*/React__default.createElement(SliderView, Object.assign({}, props, sliderState, formProps));
8245
+ };
8246
+ /**
8247
+ * Slider component integrated with Formik for form state management.
8248
+ * Allows users to select a value from a range by moving a handle.
8249
+ */
8250
+ var FormikSlider = SliderComponent;
8251
+
8252
+ var SliderComponent$1 = props => {
8253
+ // Get state and handlers from the custom hook
8254
+ var sliderState = useSliderState(props);
8255
+ // Render the view component, passing down props and state
8256
+ return /*#__PURE__*/React__default.createElement(SliderView, Object.assign({}, props, sliderState));
8257
+ };
8258
+ /**
7537
8259
  * Slider allows users to select a value from a range by moving a handle.
7538
8260
  */
7539
- var Slider = SliderComponent;
8261
+ var Slider = SliderComponent$1;
7540
8262
 
7541
8263
  // Create your store with the initial state and actions.
7542
8264
  var useMessageStore = /*#__PURE__*/zustand.create(set => ({
@@ -8070,7 +8792,7 @@ var UploadView = _ref => {
8070
8792
  }, views == null ? void 0 : views.view)));
8071
8793
  };
8072
8794
 
8073
- var _excluded$z = ["accept", "icon", "text", "maxSize", "onFileSelect", "validateFile", "isLoading", "progress"];
8795
+ var _excluded$B = ["accept", "icon", "text", "maxSize", "onFileSelect", "validateFile", "isLoading", "progress"];
8074
8796
  var Uploader = _ref => {
8075
8797
  var {
8076
8798
  accept = '*/*',
@@ -8082,7 +8804,7 @@ var Uploader = _ref => {
8082
8804
  isLoading = false,
8083
8805
  progress = 0
8084
8806
  } = _ref,
8085
- props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
8807
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
8086
8808
  var {
8087
8809
  previewUrl,
8088
8810
  thumbnailUrl,
@@ -8219,11 +8941,11 @@ var HeaderIconSizes = {
8219
8941
  xl: 28
8220
8942
  };
8221
8943
 
8222
- var _excluded$A = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
8223
- _excluded2$7 = ["children", "shadow", "isFullScreen", "shape", "views"],
8224
- _excluded3$4 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
8225
- _excluded4$3 = ["children", "views"],
8226
- _excluded5$1 = ["children", "views"];
8944
+ var _excluded$C = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
8945
+ _excluded2$8 = ["children", "shadow", "isFullScreen", "shape", "views"],
8946
+ _excluded3$5 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
8947
+ _excluded4$4 = ["children", "views"],
8948
+ _excluded5$2 = ["children", "views"];
8227
8949
  var ModalOverlay = _ref => {
8228
8950
  var {
8229
8951
  children,
@@ -8234,7 +8956,7 @@ var ModalOverlay = _ref => {
8234
8956
  position = 'center',
8235
8957
  views
8236
8958
  } = _ref,
8237
- props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
8959
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$C);
8238
8960
  var handleClick = () => {
8239
8961
  if (!isClosePrevented) onClose();
8240
8962
  };
@@ -8268,7 +8990,7 @@ var ModalContainer = _ref2 => {
8268
8990
  shape = 'rounded',
8269
8991
  views
8270
8992
  } = _ref2,
8271
- props = _objectWithoutPropertiesLoose(_ref2, _excluded2$7);
8993
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded2$8);
8272
8994
  var defaultShadow = typeof document !== undefined ? {
8273
8995
  boxShadow: '0px 2px 8px rgba(0, 0, 0, 0.3)'
8274
8996
  } : {
@@ -8300,7 +9022,7 @@ var ModalHeader = _ref3 => {
8300
9022
  buttonPosition = 'right',
8301
9023
  views
8302
9024
  } = _ref3,
8303
- props = _objectWithoutPropertiesLoose(_ref3, _excluded3$4);
9025
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded3$5);
8304
9026
  var onClose = props.onClose ? props.onClose : hideModal;
8305
9027
  var buttonIcon = /*#__PURE__*/React__default.createElement(Button, {
8306
9028
  onClick: onClose,
@@ -8325,7 +9047,7 @@ var ModalBody = _ref4 => {
8325
9047
  children,
8326
9048
  views
8327
9049
  } = _ref4,
8328
- props = _objectWithoutPropertiesLoose(_ref4, _excluded4$3);
9050
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded4$4);
8329
9051
  var defaultBorder = {
8330
9052
  borderBottomWidth: 2,
8331
9053
  borderTopWidth: 2,
@@ -8342,7 +9064,7 @@ var ModalFooter = _ref5 => {
8342
9064
  children,
8343
9065
  views
8344
9066
  } = _ref5,
8345
- props = _objectWithoutPropertiesLoose(_ref5, _excluded5$1);
9067
+ props = _objectWithoutPropertiesLoose(_ref5, _excluded5$2);
8346
9068
  return /*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
8347
9069
  marginTop: "auto",
8348
9070
  alignItems: "center",
@@ -8404,6 +9126,344 @@ Modal.Body = ModalBody;
8404
9126
  Modal.Footer = ModalFooter;
8405
9127
  Modal.Layout = ModalLayout;
8406
9128
 
9129
+ var useNavigationMenuState = function useNavigationMenuState(defaultActiveItemId, defaultExpandedItemIds) {
9130
+ if (defaultActiveItemId === void 0) {
9131
+ defaultActiveItemId = null;
9132
+ }
9133
+ if (defaultExpandedItemIds === void 0) {
9134
+ defaultExpandedItemIds = [];
9135
+ }
9136
+ var [activeItemId, setActiveItemId] = React.useState(defaultActiveItemId);
9137
+ var [expandedItemIds, setExpandedItemIds] = React.useState(defaultExpandedItemIds);
9138
+ var toggleExpandedItem = itemId => {
9139
+ setExpandedItemIds(prevExpandedItemIds => {
9140
+ // Check if the item is already expanded
9141
+ var isExpanded = prevExpandedItemIds.includes(itemId);
9142
+ if (isExpanded) {
9143
+ // If expanded, remove it from the list
9144
+ return prevExpandedItemIds.filter(id => id !== itemId);
9145
+ } else {
9146
+ // If not expanded, add it to the list
9147
+ return [...prevExpandedItemIds, itemId];
9148
+ }
9149
+ });
9150
+ };
9151
+ var isItemExpanded = itemId => {
9152
+ return expandedItemIds.includes(itemId);
9153
+ };
9154
+ return {
9155
+ activeItemId,
9156
+ setActiveItemId,
9157
+ expandedItemIds,
9158
+ toggleExpandedItem,
9159
+ isItemExpanded
9160
+ };
9161
+ };
9162
+
9163
+ var NavigationMenuSizes = {
9164
+ sm: {
9165
+ padding: '8px 12px',
9166
+ fontSize: '14px'
9167
+ },
9168
+ md: {
9169
+ padding: '10px 16px',
9170
+ fontSize: '16px'
9171
+ },
9172
+ lg: {
9173
+ padding: '12px 20px',
9174
+ fontSize: '18px'
9175
+ }
9176
+ };
9177
+ var NavigationMenuVariants = {
9178
+ default: {
9179
+ backgroundColor: 'transparent',
9180
+ color: 'color.gray.800'
9181
+ },
9182
+ filled: {
9183
+ backgroundColor: 'color.gray.100',
9184
+ color: 'color.gray.800'
9185
+ },
9186
+ outline: {
9187
+ backgroundColor: 'transparent',
9188
+ borderWidth: '1px',
9189
+ borderStyle: 'solid',
9190
+ borderColor: 'color.gray.200',
9191
+ color: 'color.gray.800'
9192
+ }
9193
+ };
9194
+ var NavigationMenuOrientations = {
9195
+ horizontal: {
9196
+ flexDirection: 'row'
9197
+ },
9198
+ vertical: {
9199
+ flexDirection: 'column'
9200
+ }
9201
+ };
9202
+ var NavigationMenuItemStates = {
9203
+ active: {
9204
+ backgroundColor: 'color.gray.200',
9205
+ fontWeight: 'bold'
9206
+ },
9207
+ hover: {
9208
+ backgroundColor: 'color.gray.100'
9209
+ },
9210
+ disabled: {
9211
+ opacity: 0.5,
9212
+ cursor: 'not-allowed'
9213
+ }
9214
+ };
9215
+
9216
+ // Create context for the NavigationMenu
9217
+ var NavigationMenuContext = /*#__PURE__*/React.createContext({
9218
+ activeItemId: null,
9219
+ setActiveItemId: () => {},
9220
+ expandedItemIds: [],
9221
+ toggleExpandedItem: () => {},
9222
+ isItemExpanded: () => false,
9223
+ orientation: 'vertical',
9224
+ size: 'md',
9225
+ variant: 'default'
9226
+ });
9227
+ // Provider component for the NavigationMenu context
9228
+ var NavigationMenuProvider = _ref => {
9229
+ var {
9230
+ children,
9231
+ value
9232
+ } = _ref;
9233
+ return /*#__PURE__*/React__default.createElement(NavigationMenuContext.Provider, {
9234
+ value: value
9235
+ }, children);
9236
+ };
9237
+ // Hook to use the NavigationMenu context
9238
+ var useNavigationMenuContext = () => {
9239
+ var context = React.useContext(NavigationMenuContext);
9240
+ if (!context) {
9241
+ throw new Error('useNavigationMenuContext must be used within a NavigationMenuProvider');
9242
+ }
9243
+ return context;
9244
+ };
9245
+ // NavigationMenu List component
9246
+ var NavigationMenuList = _ref2 => {
9247
+ var {
9248
+ children,
9249
+ views
9250
+ } = _ref2;
9251
+ var {
9252
+ orientation
9253
+ } = useNavigationMenuContext();
9254
+ var Container = orientation === 'horizontal' ? appStudio.Horizontal : appStudio.Vertical;
9255
+ return /*#__PURE__*/React__default.createElement(Container, Object.assign({
9256
+ width: "100%",
9257
+ gap: 2
9258
+ }, NavigationMenuOrientations[orientation], views == null ? void 0 : views.container), children);
9259
+ };
9260
+ // NavigationMenu Item component
9261
+ var NavigationMenuItem = _ref3 => {
9262
+ var {
9263
+ item,
9264
+ views
9265
+ } = _ref3;
9266
+ var {
9267
+ activeItemId,
9268
+ setActiveItemId,
9269
+ // isItemExpanded,
9270
+ orientation,
9271
+ size,
9272
+ variant,
9273
+ onItemActivate
9274
+ } = useNavigationMenuContext();
9275
+ var isActive = activeItemId === item.id;
9276
+ var hasSubItems = item.items && item.items.length > 0;
9277
+ // const isExpanded = hasSubItems && isItemExpanded(item.id);
9278
+ var handleClick = () => {
9279
+ if (item.disabled) return;
9280
+ setActiveItemId(item.id);
9281
+ if (onItemActivate) {
9282
+ onItemActivate(item.id);
9283
+ }
9284
+ };
9285
+ var Container = orientation === 'horizontal' ? appStudio.Horizontal : appStudio.Vertical;
9286
+ // Render item with sub-items
9287
+ if (hasSubItems) {
9288
+ var _item$items;
9289
+ return /*#__PURE__*/React__default.createElement(Container, Object.assign({
9290
+ width: "100%",
9291
+ flexDirection: orientation === 'horizontal' ? 'column' : 'column',
9292
+ position: "relative"
9293
+ }, views == null ? void 0 : views.item), /*#__PURE__*/React__default.createElement(NavigationMenuTrigger, {
9294
+ itemId: item.id,
9295
+ disabled: item.disabled,
9296
+ views: views
9297
+ }, item.icon && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
9298
+ marginRight: 8
9299
+ }, views == null ? void 0 : views.icon), item.icon)), item.label), /*#__PURE__*/React__default.createElement(NavigationMenuContent, {
9300
+ itemId: item.id
9301
+ }, /*#__PURE__*/React__default.createElement(NavigationMenuList, null, (_item$items = item.items) == null ? void 0 : _item$items.map(subItem => (/*#__PURE__*/React__default.createElement(NavigationMenuItem, {
9302
+ key: subItem.id,
9303
+ item: subItem
9304
+ }))))));
9305
+ }
9306
+ // Render regular item (no sub-items)
9307
+ return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
9308
+ as: item.href ? 'a' : 'div',
9309
+ to: item.href,
9310
+ onClick: handleClick,
9311
+ cursor: item.disabled ? 'not-allowed' : 'pointer',
9312
+ opacity: item.disabled ? 0.5 : 1,
9313
+ width: "100%",
9314
+ display: "flex",
9315
+ alignItems: "center",
9316
+ borderRadius: 4,
9317
+ transition: "background-color 0.2s ease"
9318
+ }, NavigationMenuSizes[size], NavigationMenuVariants[variant], isActive ? NavigationMenuItemStates.active : {}, {
9319
+ _hover: !item.disabled ? NavigationMenuItemStates.hover : {}
9320
+ }, views == null ? void 0 : views.item), item.icon && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
9321
+ marginRight: 8
9322
+ }, views == null ? void 0 : views.icon), item.icon)), item.label);
9323
+ };
9324
+ // NavigationMenu Trigger component
9325
+ var NavigationMenuTrigger = _ref4 => {
9326
+ var {
9327
+ children,
9328
+ itemId,
9329
+ disabled,
9330
+ views
9331
+ } = _ref4;
9332
+ var {
9333
+ activeItemId,
9334
+ toggleExpandedItem,
9335
+ isItemExpanded,
9336
+ size,
9337
+ variant
9338
+ } = useNavigationMenuContext();
9339
+ var isActive = activeItemId === itemId;
9340
+ var isExpanded = isItemExpanded(itemId);
9341
+ var handleClick = e => {
9342
+ e.preventDefault();
9343
+ if (disabled) return;
9344
+ toggleExpandedItem(itemId);
9345
+ };
9346
+ return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
9347
+ onClick: handleClick,
9348
+ cursor: disabled ? 'not-allowed' : 'pointer',
9349
+ opacity: disabled ? 0.5 : 1,
9350
+ width: "100%",
9351
+ display: "flex",
9352
+ alignItems: "center",
9353
+ justifyContent: "space-between",
9354
+ borderRadius: 4,
9355
+ transition: "background-color 0.2s ease"
9356
+ }, NavigationMenuSizes[size], NavigationMenuVariants[variant], isActive ? NavigationMenuItemStates.active : {}, {
9357
+ _hover: !disabled ? NavigationMenuItemStates.hover : {}
9358
+ }, views == null ? void 0 : views.trigger), /*#__PURE__*/React__default.createElement(appStudio.View, {
9359
+ display: "flex",
9360
+ alignItems: "center"
9361
+ }, children), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
9362
+ transition: "transform 0.2s ease",
9363
+ transform: isExpanded ? 'rotate(180deg)' : 'rotate(0deg)'
9364
+ }, views == null ? void 0 : views.indicator), /*#__PURE__*/React__default.createElement("svg", {
9365
+ width: "16",
9366
+ height: "16",
9367
+ viewBox: "0 0 24 24",
9368
+ fill: "none",
9369
+ xmlns: "http://www.w3.org/2000/svg"
9370
+ }, /*#__PURE__*/React__default.createElement("path", {
9371
+ d: "M16.59 8.59L12 13.17L7.41 8.59L6 10L12 16L18 10L16.59 8.59Z",
9372
+ fill: "currentColor"
9373
+ }))));
9374
+ };
9375
+ // NavigationMenu Content component
9376
+ var NavigationMenuContent = _ref5 => {
9377
+ var {
9378
+ children,
9379
+ itemId,
9380
+ views
9381
+ } = _ref5;
9382
+ var {
9383
+ isItemExpanded,
9384
+ orientation
9385
+ } = useNavigationMenuContext();
9386
+ var isExpanded = isItemExpanded(itemId);
9387
+ if (!isExpanded) {
9388
+ return null;
9389
+ }
9390
+ return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
9391
+ paddingLeft: orientation === 'vertical' ? 16 : 0,
9392
+ paddingTop: orientation === 'horizontal' ? 8 : 0,
9393
+ overflow: "hidden",
9394
+ width: "100%"
9395
+ }, views == null ? void 0 : views.container), children);
9396
+ };
9397
+ // Main NavigationMenu View component
9398
+ var NavigationMenuView = _ref6 => {
9399
+ var {
9400
+ items,
9401
+ orientation,
9402
+ //size, variant,
9403
+ views
9404
+ } = _ref6;
9405
+ var Container = orientation === 'horizontal' ? appStudio.Horizontal : appStudio.Vertical;
9406
+ return /*#__PURE__*/React__default.createElement(Container, Object.assign({
9407
+ width: "100%"
9408
+ }, NavigationMenuOrientations[orientation], views == null ? void 0 : views.container), /*#__PURE__*/React__default.createElement(NavigationMenuList, {
9409
+ views: views
9410
+ }, items.map(item => (/*#__PURE__*/React__default.createElement(NavigationMenuItem, {
9411
+ key: item.id,
9412
+ item: item,
9413
+ views: views
9414
+ })))));
9415
+ };
9416
+
9417
+ var _excluded$D = ["items", "orientation", "size", "variant", "defaultActiveItemId", "defaultExpandedItemIds", "onItemActivate", "views"];
9418
+ /**
9419
+ * NavigationMenu component for creating navigation menus with optional nested items.
9420
+ */
9421
+ var NavigationMenuComponent = _ref => {
9422
+ var {
9423
+ items,
9424
+ orientation = 'vertical',
9425
+ size = 'md',
9426
+ variant = 'default',
9427
+ defaultActiveItemId = null,
9428
+ defaultExpandedItemIds = [],
9429
+ onItemActivate,
9430
+ views
9431
+ } = _ref,
9432
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$D);
9433
+ var {
9434
+ activeItemId,
9435
+ setActiveItemId,
9436
+ expandedItemIds,
9437
+ toggleExpandedItem,
9438
+ isItemExpanded
9439
+ } = useNavigationMenuState(defaultActiveItemId, defaultExpandedItemIds);
9440
+ return /*#__PURE__*/React__default.createElement(NavigationMenuProvider, {
9441
+ value: {
9442
+ activeItemId,
9443
+ setActiveItemId,
9444
+ expandedItemIds,
9445
+ toggleExpandedItem,
9446
+ isItemExpanded,
9447
+ orientation,
9448
+ size,
9449
+ variant,
9450
+ onItemActivate
9451
+ }
9452
+ }, /*#__PURE__*/React__default.createElement(NavigationMenuView, Object.assign({
9453
+ items: items,
9454
+ orientation: orientation,
9455
+ size: size,
9456
+ variant: variant,
9457
+ views: views
9458
+ }, props)));
9459
+ };
9460
+ var NavigationMenu = NavigationMenuComponent;
9461
+ // Assign the sub-components to the main component
9462
+ NavigationMenu.List = NavigationMenuList;
9463
+ NavigationMenu.Item = NavigationMenuItem;
9464
+ NavigationMenu.Trigger = NavigationMenuTrigger;
9465
+ NavigationMenu.Content = NavigationMenuContent;
9466
+
8407
9467
  var defaultStyles = {};
8408
9468
  // Create a context that includes both styles and the onClick function
8409
9469
  var TableContext = /*#__PURE__*/React.createContext({
@@ -8713,7 +9773,7 @@ var useToggleState = defaultToggled => {
8713
9773
  };
8714
9774
  };
8715
9775
 
8716
- var _excluded$B = ["children", "shape", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle", "views"];
9776
+ var _excluded$E = ["children", "shape", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle", "views"];
8717
9777
  var ToggleView = _ref => {
8718
9778
  var {
8719
9779
  children,
@@ -8727,7 +9787,7 @@ var ToggleView = _ref => {
8727
9787
  onToggle,
8728
9788
  views
8729
9789
  } = _ref,
8730
- props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
9790
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$E);
8731
9791
  var toggleColor = !isDisabled ? 'color.trueGray.400' : 'theme.disabled';
8732
9792
  var isActive = !!(isToggle || isHovered);
8733
9793
  var toggleVariants = {
@@ -8770,7 +9830,7 @@ var ToggleView = _ref => {
8770
9830
  }, toggleVariants[variant], props, views == null ? void 0 : views.container), children);
8771
9831
  };
8772
9832
 
8773
- var _excluded$C = ["children", "shape", "variant", "isDisabled", "isToggled", "onToggle"];
9833
+ var _excluded$F = ["children", "shape", "variant", "isDisabled", "isToggled", "onToggle"];
8774
9834
  // Destructuring properties from ToggleProps to be used within the ToggleComponent.
8775
9835
  var ToggleComponent = _ref => {
8776
9836
  var {
@@ -8782,7 +9842,7 @@ var ToggleComponent = _ref => {
8782
9842
  isToggled = false,
8783
9843
  onToggle
8784
9844
  } = _ref,
8785
- props = _objectWithoutPropertiesLoose(_ref, _excluded$C);
9845
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$F);
8786
9846
  // Initializing toggle state and set state functions using the custom hook useToggleState.
8787
9847
  var {
8788
9848
  isHovered,
@@ -9022,6 +10082,400 @@ var DragAndDropComponent = props => {
9022
10082
  };
9023
10083
  var DragAndDrop = DragAndDropComponent;
9024
10084
 
10085
+ var useDropdownMenuState = function useDropdownMenuState(defaultOpen) {
10086
+ if (defaultOpen === void 0) {
10087
+ defaultOpen = false;
10088
+ }
10089
+ var [isOpen, setIsOpen] = React.useState(defaultOpen);
10090
+ var [activeSubmenuId, setActiveSubmenuId] = React.useState(null);
10091
+ // Close the dropdown menu when clicking outside
10092
+ React.useEffect(() => {
10093
+ var handleClickOutside = event => {
10094
+ var path = event.composedPath();
10095
+ var isOutside = !path.some(element => (element == null ? void 0 : element.id) === 'dropdown-menu' || (element == null ? void 0 : element.id) === 'dropdown-trigger');
10096
+ if (isOutside && isOpen) {
10097
+ setIsOpen(false);
10098
+ setActiveSubmenuId(null);
10099
+ }
10100
+ };
10101
+ // Close the dropdown menu when the window is resized
10102
+ var handleResize = () => {
10103
+ if (isOpen) {
10104
+ setIsOpen(false);
10105
+ setActiveSubmenuId(null);
10106
+ }
10107
+ };
10108
+ // Close the dropdown menu when the escape key is pressed
10109
+ var handleKeyDown = event => {
10110
+ if (event.key === 'Escape' && isOpen) {
10111
+ setIsOpen(false);
10112
+ setActiveSubmenuId(null);
10113
+ }
10114
+ };
10115
+ document.addEventListener('mousedown', handleClickOutside);
10116
+ window.addEventListener('resize', handleResize);
10117
+ document.addEventListener('keydown', handleKeyDown);
10118
+ return () => {
10119
+ document.removeEventListener('mousedown', handleClickOutside);
10120
+ window.removeEventListener('resize', handleResize);
10121
+ document.removeEventListener('keydown', handleKeyDown);
10122
+ };
10123
+ }, [isOpen]);
10124
+ return {
10125
+ isOpen,
10126
+ setIsOpen,
10127
+ activeSubmenuId,
10128
+ setActiveSubmenuId
10129
+ };
10130
+ };
10131
+
10132
+ var DropdownMenuSizes = {
10133
+ sm: {
10134
+ padding: '6px 8px',
10135
+ fontSize: '14px',
10136
+ minWidth: '160px'
10137
+ },
10138
+ md: {
10139
+ padding: '8px 12px',
10140
+ fontSize: '16px',
10141
+ minWidth: '180px'
10142
+ },
10143
+ lg: {
10144
+ padding: '10px 16px',
10145
+ fontSize: '18px',
10146
+ minWidth: '200px'
10147
+ }
10148
+ };
10149
+ var DropdownMenuVariants = {
10150
+ default: {
10151
+ backgroundColor: 'white',
10152
+ color: 'color.gray.800'
10153
+ },
10154
+ filled: {
10155
+ backgroundColor: 'color.gray.100',
10156
+ color: 'color.gray.800'
10157
+ },
10158
+ outline: {
10159
+ backgroundColor: 'white',
10160
+ borderWidth: '1px',
10161
+ borderStyle: 'solid',
10162
+ borderColor: 'color.gray.200',
10163
+ color: 'color.gray.800'
10164
+ }
10165
+ };
10166
+ var DropdownMenuItemStates = {
10167
+ hover: {
10168
+ backgroundColor: 'color.gray.100'
10169
+ },
10170
+ active: {
10171
+ backgroundColor: 'color.gray.200'
10172
+ },
10173
+ disabled: {
10174
+ opacity: 0.5,
10175
+ cursor: 'not-allowed'
10176
+ }
10177
+ };
10178
+ // Helper function to calculate position based on side and alignment
10179
+ var getDropdownPosition = function getDropdownPosition(side, align) {
10180
+ if (side === void 0) {
10181
+ side = 'bottom';
10182
+ }
10183
+ if (align === void 0) {
10184
+ align = 'start';
10185
+ }
10186
+ var positions = {
10187
+ top: Object.assign({
10188
+ bottom: '100%',
10189
+ marginBottom: '8px'
10190
+ }, align === 'start' && {
10191
+ left: 0
10192
+ }, align === 'center' && {
10193
+ left: '50%',
10194
+ transform: 'translateX(-50%)'
10195
+ }, align === 'end' && {
10196
+ right: 0
10197
+ }),
10198
+ right: Object.assign({
10199
+ left: '100%',
10200
+ marginLeft: '8px'
10201
+ }, align === 'start' && {
10202
+ top: 0
10203
+ }, align === 'center' && {
10204
+ top: '50%',
10205
+ transform: 'translateY(-50%)'
10206
+ }, align === 'end' && {
10207
+ bottom: 0
10208
+ }),
10209
+ bottom: Object.assign({
10210
+ top: '100%',
10211
+ marginTop: '8px'
10212
+ }, align === 'start' && {
10213
+ left: 0
10214
+ }, align === 'center' && {
10215
+ left: '50%',
10216
+ transform: 'translateX(-50%)'
10217
+ }, align === 'end' && {
10218
+ right: 0
10219
+ }),
10220
+ left: Object.assign({
10221
+ right: '100%',
10222
+ marginRight: '8px'
10223
+ }, align === 'start' && {
10224
+ top: 0
10225
+ }, align === 'center' && {
10226
+ top: '50%',
10227
+ transform: 'translateY(-50%)'
10228
+ }, align === 'end' && {
10229
+ bottom: 0
10230
+ })
10231
+ };
10232
+ return positions[side];
10233
+ };
10234
+
10235
+ var _excluded$G = ["children", "views"],
10236
+ _excluded2$9 = ["items", "side", "align", "views"],
10237
+ _excluded3$6 = ["item", "views"],
10238
+ _excluded4$5 = ["views"],
10239
+ _excluded5$3 = ["trigger", "items", "side", "align", "views"];
10240
+ // Create context for the DropdownMenu
10241
+ var DropdownMenuContext = /*#__PURE__*/React.createContext({
10242
+ isOpen: false,
10243
+ setIsOpen: () => {},
10244
+ activeSubmenuId: null,
10245
+ setActiveSubmenuId: () => {},
10246
+ size: 'md',
10247
+ variant: 'default'
10248
+ });
10249
+ // Provider component for the DropdownMenu context
10250
+ var DropdownMenuProvider = _ref => {
10251
+ var {
10252
+ children,
10253
+ value
10254
+ } = _ref;
10255
+ return /*#__PURE__*/React__default.createElement(DropdownMenuContext.Provider, {
10256
+ value: value
10257
+ }, children);
10258
+ };
10259
+ // Hook to use the DropdownMenu context
10260
+ var useDropdownMenuContext = () => {
10261
+ var context = React.useContext(DropdownMenuContext);
10262
+ if (!context) {
10263
+ throw new Error('useDropdownMenuContext must be used within a DropdownMenuProvider');
10264
+ }
10265
+ return context;
10266
+ };
10267
+ // DropdownMenu Trigger component
10268
+ var DropdownMenuTrigger = _ref2 => {
10269
+ var {
10270
+ children,
10271
+ views
10272
+ } = _ref2,
10273
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$G);
10274
+ var {
10275
+ isOpen,
10276
+ setIsOpen
10277
+ } = useDropdownMenuContext();
10278
+ var handleClick = e => {
10279
+ e.stopPropagation();
10280
+ setIsOpen(!isOpen);
10281
+ };
10282
+ return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
10283
+ id: "dropdown-trigger",
10284
+ onClick: handleClick,
10285
+ cursor: "pointer",
10286
+ position: "relative",
10287
+ display: "inline-block"
10288
+ }, views == null ? void 0 : views.container, props), children);
10289
+ };
10290
+ // DropdownMenu Content component
10291
+ var DropdownMenuContent = _ref3 => {
10292
+ var {
10293
+ items,
10294
+ side = 'bottom',
10295
+ align = 'start',
10296
+ views
10297
+ } = _ref3,
10298
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded2$9);
10299
+ var {
10300
+ isOpen,
10301
+ //activeSubmenuId, setActiveSubmenuId, size,
10302
+ variant
10303
+ } = useDropdownMenuContext();
10304
+ if (!isOpen) {
10305
+ return null;
10306
+ }
10307
+ return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
10308
+ id: "dropdown-menu",
10309
+ position: "absolute",
10310
+ zIndex: 1000,
10311
+ borderRadius: 4,
10312
+ boxShadow: "0px 2px 8px rgba(0, 0, 0, 0.15)",
10313
+ overflow: "hidden"
10314
+ }, getDropdownPosition(side, align), DropdownMenuVariants[variant], views == null ? void 0 : views.menu, props), items.map((item, index) => {
10315
+ if (item.divider) {
10316
+ return /*#__PURE__*/React__default.createElement(DropdownMenuDivider, {
10317
+ key: "divider-" + index,
10318
+ views: views
10319
+ });
10320
+ }
10321
+ return /*#__PURE__*/React__default.createElement(DropdownMenuItem, {
10322
+ key: item.id,
10323
+ item: item,
10324
+ views: views
10325
+ });
10326
+ }));
10327
+ };
10328
+ // DropdownMenu Item component
10329
+ var DropdownMenuItem = _ref4 => {
10330
+ var {
10331
+ item,
10332
+ views
10333
+ } = _ref4,
10334
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded3$6);
10335
+ var {
10336
+ activeSubmenuId,
10337
+ setActiveSubmenuId,
10338
+ size
10339
+ } = useDropdownMenuContext();
10340
+ var [isHovered, setIsHovered] = React.useState(false);
10341
+ var hasSubmenu = item.items && item.items.length > 0;
10342
+ var isSubmenuActive = activeSubmenuId === item.id;
10343
+ var itemRef = React.useRef(null);
10344
+ // Handle mouse enter event
10345
+ var handleMouseEnter = () => {
10346
+ setIsHovered(true);
10347
+ if (hasSubmenu) {
10348
+ setActiveSubmenuId(item.id);
10349
+ }
10350
+ };
10351
+ // Handle mouse leave event
10352
+ var handleMouseLeave = () => {
10353
+ setIsHovered(false);
10354
+ };
10355
+ // Handle click event
10356
+ var handleClick = e => {
10357
+ e.stopPropagation();
10358
+ if (item.disabled) return;
10359
+ if (!hasSubmenu && item.onClick) {
10360
+ item.onClick();
10361
+ }
10362
+ };
10363
+ return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
10364
+ ref: itemRef,
10365
+ display: "flex",
10366
+ alignItems: "center",
10367
+ cursor: item.disabled ? 'not-allowed' : 'pointer',
10368
+ opacity: item.disabled ? 0.5 : 1,
10369
+ position: "relative"
10370
+ }, DropdownMenuSizes[size], {
10371
+ _hover: !item.disabled ? DropdownMenuItemStates.hover : {},
10372
+ backgroundColor: isHovered && !item.disabled ? 'color.gray.100' : 'transparent',
10373
+ onMouseEnter: handleMouseEnter,
10374
+ onMouseLeave: handleMouseLeave,
10375
+ onClick: handleClick
10376
+ }, views == null ? void 0 : views.item, props), item.icon && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
10377
+ marginRight: 8
10378
+ }, views == null ? void 0 : views.icon), item.icon)), /*#__PURE__*/React__default.createElement(appStudio.View, {
10379
+ flexGrow: 1
10380
+ }, item.label), hasSubmenu && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
10381
+ marginLeft: 8
10382
+ }, views == null ? void 0 : views.submenuIndicator), /*#__PURE__*/React__default.createElement("svg", {
10383
+ width: "16",
10384
+ height: "16",
10385
+ viewBox: "0 0 24 24",
10386
+ fill: "none",
10387
+ xmlns: "http://www.w3.org/2000/svg"
10388
+ }, /*#__PURE__*/React__default.createElement("path", {
10389
+ d: "M8.59 16.59L13.17 12L8.59 7.41L10 6L16 12L10 18L8.59 16.59Z",
10390
+ fill: "currentColor"
10391
+ })))), isSubmenuActive && hasSubmenu && (/*#__PURE__*/React__default.createElement(DropdownMenuContent, {
10392
+ items: item.items || [],
10393
+ side: "right",
10394
+ align: "start",
10395
+ views: views
10396
+ })));
10397
+ };
10398
+ // DropdownMenu Divider component
10399
+ var DropdownMenuDivider = _ref5 => {
10400
+ var {
10401
+ views
10402
+ } = _ref5,
10403
+ props = _objectWithoutPropertiesLoose(_ref5, _excluded4$5);
10404
+ return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
10405
+ height: "1px",
10406
+ backgroundColor: "color.gray.200",
10407
+ margin: "4px 0"
10408
+ }, views == null ? void 0 : views.divider, props));
10409
+ };
10410
+ // Main DropdownMenu View component
10411
+ var DropdownMenuView = _ref6 => {
10412
+ var {
10413
+ trigger,
10414
+ items,
10415
+ side = 'bottom',
10416
+ align = 'start',
10417
+ views
10418
+ } = _ref6,
10419
+ props = _objectWithoutPropertiesLoose(_ref6, _excluded5$3);
10420
+ return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
10421
+ position: "relative",
10422
+ display: "inline-block"
10423
+ }, views == null ? void 0 : views.container, props), /*#__PURE__*/React__default.createElement(DropdownMenuTrigger, {
10424
+ views: views
10425
+ }, trigger), /*#__PURE__*/React__default.createElement(DropdownMenuContent, {
10426
+ items: items,
10427
+ side: side,
10428
+ align: align,
10429
+ views: views
10430
+ }));
10431
+ };
10432
+
10433
+ var _excluded$H = ["trigger", "items", "size", "variant", "side", "align", "defaultOpen", "views"];
10434
+ /**
10435
+ * DropdownMenu component for displaying a menu when clicking on a trigger element.
10436
+ */
10437
+ var DropdownMenuComponent = _ref => {
10438
+ var {
10439
+ trigger,
10440
+ items,
10441
+ size = 'md',
10442
+ variant = 'default',
10443
+ side = 'bottom',
10444
+ align = 'start',
10445
+ defaultOpen = false,
10446
+ views
10447
+ } = _ref,
10448
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$H);
10449
+ var {
10450
+ isOpen,
10451
+ setIsOpen,
10452
+ activeSubmenuId,
10453
+ setActiveSubmenuId
10454
+ } = useDropdownMenuState(defaultOpen);
10455
+ return /*#__PURE__*/React__default.createElement(DropdownMenuProvider, {
10456
+ value: {
10457
+ isOpen,
10458
+ setIsOpen,
10459
+ activeSubmenuId,
10460
+ setActiveSubmenuId,
10461
+ size,
10462
+ variant
10463
+ }
10464
+ }, /*#__PURE__*/React__default.createElement(DropdownMenuView, Object.assign({
10465
+ trigger: trigger,
10466
+ items: items,
10467
+ side: side,
10468
+ align: align,
10469
+ views: views
10470
+ }, props)));
10471
+ };
10472
+ var DropdownMenu = DropdownMenuComponent;
10473
+ // Assign the sub-components to the main component
10474
+ DropdownMenu.Trigger = DropdownMenuTrigger;
10475
+ DropdownMenu.Content = DropdownMenuContent;
10476
+ DropdownMenu.Item = DropdownMenuItem;
10477
+ DropdownMenu.Divider = DropdownMenuDivider;
10478
+
9025
10479
  var useHoverCardState = () => {
9026
10480
  var [isOpen, setIsOpen] = React.useState(false);
9027
10481
  return {
@@ -9081,8 +10535,8 @@ var ContentPositions = {
9081
10535
  })
9082
10536
  };
9083
10537
 
9084
- var _excluded$D = ["children", "views"],
9085
- _excluded2$8 = ["children", "views", "side", "align"];
10538
+ var _excluded$I = ["children", "views"],
10539
+ _excluded2$a = ["children", "views", "side", "align"];
9086
10540
  // Create context for the HoverCard
9087
10541
  var HoverCardContext = /*#__PURE__*/React.createContext({
9088
10542
  isOpen: false,
@@ -9109,7 +10563,7 @@ var HoverCardTrigger = _ref2 => {
9109
10563
  children,
9110
10564
  views
9111
10565
  } = _ref2,
9112
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$D);
10566
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$I);
9113
10567
  var {
9114
10568
  setIsOpen
9115
10569
  } = useHoverCardContext();
@@ -9127,7 +10581,7 @@ var HoverCardContent = _ref3 => {
9127
10581
  side = 'bottom',
9128
10582
  align = 'center'
9129
10583
  } = _ref3,
9130
- props = _objectWithoutPropertiesLoose(_ref3, _excluded2$8);
10584
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded2$a);
9131
10585
  var {
9132
10586
  isOpen
9133
10587
  } = useHoverCardContext();
@@ -9145,7 +10599,7 @@ var HoverCardContent = _ref3 => {
9145
10599
  }, ContentPositions[side](align), views == null ? void 0 : views.container, props), children);
9146
10600
  };
9147
10601
 
9148
- var _excluded$E = ["children", "views"];
10602
+ var _excluded$J = ["children", "views"];
9149
10603
  /**
9150
10604
  * HoverCard component displays floating content when hovering over a trigger element.
9151
10605
  */
@@ -9154,7 +10608,7 @@ var HoverCardComponent = _ref => {
9154
10608
  children,
9155
10609
  views
9156
10610
  } = _ref,
9157
- props = _objectWithoutPropertiesLoose(_ref, _excluded$E);
10611
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$J);
9158
10612
  var {
9159
10613
  isOpen,
9160
10614
  setIsOpen
@@ -9173,6 +10627,7 @@ var HoverCard = HoverCardComponent;
9173
10627
  HoverCard.Trigger = HoverCardTrigger;
9174
10628
  HoverCard.Content = HoverCardContent;
9175
10629
 
10630
+ exports.Accordion = Accordion;
9176
10631
  exports.Alert = Alert;
9177
10632
  exports.ArrowIcon = ArrowIcon;
9178
10633
  exports.AspectRatio = AspectRatio;
@@ -9195,14 +10650,17 @@ exports.CloseEyeIcon = CloseEyeIcon;
9195
10650
  exports.CloseIcon = CloseIcon;
9196
10651
  exports.CloudIcon = CloudIcon;
9197
10652
  exports.ComboBox = ComboBox;
10653
+ exports.ContextMenu = ContextMenu;
9198
10654
  exports.CopyIcon = CopyIcon;
9199
10655
  exports.CountryPicker = CountryPicker;
9200
10656
  exports.CropIcon = CropIcon;
9201
10657
  exports.DatePicker = DatePicker;
10658
+ exports.DeleteIcon = DeleteIcon;
9202
10659
  exports.DownloadIcon = DownloadIcon;
9203
10660
  exports.DragAndDrop = DragAndDrop;
9204
10661
  exports.DragAndDropComponent = DragAndDropComponent;
9205
10662
  exports.DragHandleIcon = DragHandleIcon;
10663
+ exports.DropdownMenu = DropdownMenu;
9206
10664
  exports.DustBinIcon = DustBinIcon;
9207
10665
  exports.EditIcon = EditIcon;
9208
10666
  exports.ErrorIcon = ErrorIcon;
@@ -9219,10 +10677,12 @@ exports.FormikDatePicker = FormikDatePicker;
9219
10677
  exports.FormikForm = FormikForm;
9220
10678
  exports.FormikPassword = FormikPassword;
9221
10679
  exports.FormikSelect = FormikSelect;
10680
+ exports.FormikSlider = FormikSlider;
9222
10681
  exports.FormikSwitch = FormikSwitch;
9223
10682
  exports.FormikTextArea = FormikTextArea;
9224
10683
  exports.FormikTextField = FormikTextField;
9225
10684
  exports.HeartIcon = HeartIcon;
10685
+ exports.HelpIcon = HelpIcon;
9226
10686
  exports.HomeIcon = HomeIcon;
9227
10687
  exports.Horizontal = Horizontal;
9228
10688
  exports.HorizontalBase = HorizontalBase;
@@ -9247,6 +10707,7 @@ exports.MicrophoneIcon = MicrophoneIcon;
9247
10707
  exports.MinusIcon = MinusIcon;
9248
10708
  exports.Modal = Modal;
9249
10709
  exports.MoonIcon = MoonIcon;
10710
+ exports.NavigationMenu = NavigationMenu;
9250
10711
  exports.NotificationIcon = NotificationIcon;
9251
10712
  exports.OpenEyeIcon = OpenEyeIcon;
9252
10713
  exports.PanelIcon = PanelIcon;
@@ -9289,6 +10750,7 @@ exports.UnLikeIcon = UnLikeIcon;
9289
10750
  exports.UnlockIcon = UnlockIcon;
9290
10751
  exports.UploadIcon = UploadIcon;
9291
10752
  exports.Uploader = Uploader;
10753
+ exports.UserIcon = UserIcon;
9292
10754
  exports.Vertical = Vertical;
9293
10755
  exports.VerticalBase = VerticalBase;
9294
10756
  exports.VideoIcon = VideoIcon;