@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
@@ -1,12 +1,230 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('core-js/modules/es.symbol.description.js'), require('react'), require('core-js/modules/es.object.assign.js'), require('app-studio'), require('core-js/modules/es.array.iterator.js'), require('core-js/modules/es.parse-float.js'), require('core-js/modules/web.dom-collections.iterator.js'), require('core-js/modules/es.array.includes.js'), require('react-router-dom'), require('core-js/modules/es.string.includes.js'), require('core-js/modules/es.string.starts-with.js'), require('date-fns/format'), require('formik'), require('core-js/modules/es.number.to-fixed.js'), require('core-js/modules/web.url.js'), require('core-js/modules/web.url.to-json.js'), require('core-js/modules/web.url-search-params.js'), require('zustand'), require('src/components/Layout')) :
3
- typeof define === 'function' && define.amd ? define(['exports', 'core-js/modules/es.symbol.description.js', 'react', 'core-js/modules/es.object.assign.js', 'app-studio', 'core-js/modules/es.array.iterator.js', 'core-js/modules/es.parse-float.js', 'core-js/modules/web.dom-collections.iterator.js', 'core-js/modules/es.array.includes.js', 'react-router-dom', 'core-js/modules/es.string.includes.js', 'core-js/modules/es.string.starts-with.js', 'date-fns/format', 'formik', 'core-js/modules/es.number.to-fixed.js', 'core-js/modules/web.url.js', 'core-js/modules/web.url.to-json.js', 'core-js/modules/web.url-search-params.js', 'zustand', 'src/components/Layout'], factory) :
4
- (global = global || self, factory(global['@app-studio/web'] = {}, null, global.React, null, global.appStudio, null, null, null, null, global.reactRouterDom, null, null, global.format, global.formik, null, null, null, null, global.zustand, global.Layout));
5
- }(this, (function (exports, es_symbol_description_js, React, es_object_assign_js, appStudio, es_array_iterator_js, es_parseFloat_js, web_domCollections_iterator_js, es_array_includes_js, reactRouterDom, es_string_includes_js, es_string_startsWith_js, format, formik, es_number_toFixed_js, web_url_js, web_url_toJson_js, web_urlSearchParams_js, zustand, Layout) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('core-js/modules/es.array.includes.js'), require('core-js/modules/es.array.iterator.js'), require('core-js/modules/es.string.includes.js'), require('core-js/modules/web.dom-collections.iterator.js'), require('core-js/modules/es.object.assign.js'), require('app-studio'), require('core-js/modules/es.symbol.description.js'), require('core-js/modules/es.parse-float.js'), require('react-router-dom'), require('core-js/modules/es.string.starts-with.js'), require('date-fns/format'), require('formik'), require('core-js/modules/es.number.to-fixed.js'), require('core-js/modules/web.url.js'), require('core-js/modules/web.url.to-json.js'), require('core-js/modules/web.url-search-params.js'), require('zustand'), require('src/components/Layout')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', 'react', 'core-js/modules/es.array.includes.js', 'core-js/modules/es.array.iterator.js', 'core-js/modules/es.string.includes.js', 'core-js/modules/web.dom-collections.iterator.js', 'core-js/modules/es.object.assign.js', 'app-studio', 'core-js/modules/es.symbol.description.js', 'core-js/modules/es.parse-float.js', 'react-router-dom', 'core-js/modules/es.string.starts-with.js', 'date-fns/format', 'formik', 'core-js/modules/es.number.to-fixed.js', 'core-js/modules/web.url.js', 'core-js/modules/web.url.to-json.js', 'core-js/modules/web.url-search-params.js', 'zustand', 'src/components/Layout'], factory) :
4
+ (global = global || self, factory(global['@app-studio/web'] = {}, global.React, null, null, null, null, null, global.appStudio, null, null, global.reactRouterDom, null, global.format, global.formik, null, null, null, null, global.zustand, global.Layout));
5
+ }(this, (function (exports, React, es_array_includes_js, es_array_iterator_js, es_string_includes_js, web_domCollections_iterator_js, es_object_assign_js, appStudio, es_symbol_description_js, es_parseFloat_js, reactRouterDom, es_string_startsWith_js, format, formik, es_number_toFixed_js, web_url_js, web_url_toJson_js, web_urlSearchParams_js, zustand, Layout) { 'use strict';
6
6
 
7
7
  var React__default = 'default' in React ? React['default'] : React;
8
8
  format = format && Object.prototype.hasOwnProperty.call(format, 'default') ? format['default'] : format;
9
9
 
10
+ var useAccordionState = function useAccordionState(defaultExpandedItems, allowMultiple) {
11
+ if (defaultExpandedItems === void 0) {
12
+ defaultExpandedItems = [];
13
+ }
14
+ if (allowMultiple === void 0) {
15
+ allowMultiple = false;
16
+ }
17
+ var [expandedItems, setExpandedItems] = React.useState(defaultExpandedItems);
18
+ var toggleItem = itemId => {
19
+ setExpandedItems(prevExpandedItems => {
20
+ // Check if the item is already expanded
21
+ var isExpanded = prevExpandedItems.includes(itemId);
22
+ if (isExpanded) {
23
+ // If expanded, remove it from the list
24
+ return prevExpandedItems.filter(id => id !== itemId);
25
+ } else {
26
+ // If not expanded, add it to the list
27
+ // If allowMultiple is false, replace the current expanded item
28
+ return allowMultiple ? [...prevExpandedItems, itemId] : [itemId];
29
+ }
30
+ });
31
+ };
32
+ var isItemExpanded = itemId => {
33
+ return expandedItems.includes(itemId);
34
+ };
35
+ return {
36
+ expandedItems,
37
+ toggleItem,
38
+ isItemExpanded
39
+ };
40
+ };
41
+
42
+ var AccordionShapes = {
43
+ sharp: {
44
+ borderRadius: 0
45
+ },
46
+ rounded: {
47
+ borderRadius: 8
48
+ }
49
+ };
50
+ var AccordionVariants = {
51
+ default: {
52
+ backgroundColor: 'transparent',
53
+ borderWidth: 0
54
+ },
55
+ outline: {
56
+ borderWidth: 1,
57
+ borderStyle: 'solid',
58
+ borderColor: 'color.gray.200'
59
+ },
60
+ filled: {
61
+ backgroundColor: 'color.gray.50'
62
+ }
63
+ };
64
+
65
+ // Create context for the Accordion
66
+ var AccordionContext = /*#__PURE__*/React.createContext({
67
+ expandedItems: [],
68
+ toggleItem: () => {},
69
+ isItemExpanded: () => false
70
+ });
71
+ // Provider component for the Accordion context
72
+ var AccordionProvider = _ref => {
73
+ var {
74
+ children,
75
+ value
76
+ } = _ref;
77
+ return /*#__PURE__*/React__default.createElement(AccordionContext.Provider, {
78
+ value: value
79
+ }, children);
80
+ };
81
+ // Hook to use the Accordion context
82
+ var useAccordionContext = () => {
83
+ var context = React.useContext(AccordionContext);
84
+ if (!context) {
85
+ throw new Error('useAccordionContext must be used within an AccordionProvider');
86
+ }
87
+ return context;
88
+ };
89
+ // Accordion Item component
90
+ var AccordionItem = _ref2 => {
91
+ var {
92
+ id,
93
+ children,
94
+ isDisabled = false,
95
+ views
96
+ } = _ref2;
97
+ var {
98
+ isItemExpanded
99
+ } = useAccordionContext();
100
+ var isExpanded = isItemExpanded(id);
101
+ return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
102
+ borderWidth: 1,
103
+ borderStyle: "solid",
104
+ borderColor: "color.gray.200",
105
+ marginBottom: 8,
106
+ overflow: "hidden",
107
+ opacity: isDisabled ? 0.5 : 1,
108
+ pointerEvents: isDisabled ? 'none' : 'auto'
109
+ }, views == null ? void 0 : views.item), React__default.Children.map(children, child => {
110
+ if (/*#__PURE__*/React__default.isValidElement(child)) {
111
+ // Pass the id and isExpanded props to AccordionHeader and AccordionContent
112
+ return /*#__PURE__*/React__default.cloneElement(child, Object.assign({}, child.props, {
113
+ id,
114
+ isExpanded
115
+ }));
116
+ }
117
+ return child;
118
+ }));
119
+ };
120
+ // Accordion Header component
121
+ var AccordionHeader = _ref3 => {
122
+ var {
123
+ children,
124
+ id,
125
+ isExpanded,
126
+ views
127
+ } = _ref3;
128
+ var {
129
+ toggleItem
130
+ } = useAccordionContext();
131
+ var handleClick = () => {
132
+ if (id) {
133
+ toggleItem(id);
134
+ }
135
+ };
136
+ return /*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
137
+ padding: 16,
138
+ cursor: "pointer",
139
+ alignItems: "center",
140
+ justifyContent: "space-between",
141
+ backgroundColor: "color.white",
142
+ onClick: handleClick
143
+ }, views == null ? void 0 : views.container), children, /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
144
+ width: 24,
145
+ height: 24,
146
+ display: "flex",
147
+ alignItems: "center",
148
+ justifyContent: "center",
149
+ transition: "transform 0.2s ease",
150
+ transform: isExpanded ? 'rotate(180deg)' : 'rotate(0deg)'
151
+ }, views == null ? void 0 : views.icon), /*#__PURE__*/React__default.createElement("svg", {
152
+ width: "16",
153
+ height: "16",
154
+ viewBox: "0 0 24 24",
155
+ fill: "none",
156
+ xmlns: "http://www.w3.org/2000/svg"
157
+ }, /*#__PURE__*/React__default.createElement("path", {
158
+ d: "M16.59 8.59L12 13.17L7.41 8.59L6 10L12 16L18 10L16.59 8.59Z",
159
+ fill: "currentColor"
160
+ }))));
161
+ };
162
+ // Accordion Content component
163
+ var AccordionContent = _ref4 => {
164
+ var {
165
+ children,
166
+ isExpanded,
167
+ views
168
+ } = _ref4;
169
+ if (!isExpanded) {
170
+ return null;
171
+ }
172
+ return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
173
+ padding: 16,
174
+ backgroundColor: "color.white",
175
+ maxHeight: isExpanded ? '1000px' : '0',
176
+ transition: "max-height 0.3s ease-in-out",
177
+ overflow: "hidden"
178
+ }, views == null ? void 0 : views.container), children);
179
+ };
180
+ // Main Accordion View component
181
+ var AccordionView = _ref5 => {
182
+ var {
183
+ children,
184
+ shape = 'rounded',
185
+ variant = 'default',
186
+ views
187
+ } = _ref5;
188
+ return /*#__PURE__*/React__default.createElement(appStudio.Vertical, Object.assign({
189
+ width: "100%"
190
+ }, AccordionShapes[shape], AccordionVariants[variant], views == null ? void 0 : views.container), children);
191
+ };
192
+
193
+ /**
194
+ * Accordion component for displaying collapsible content panels.
195
+ */
196
+ var AccordionComponent = _ref => {
197
+ var {
198
+ children,
199
+ allowMultiple = false,
200
+ defaultExpandedItems = [],
201
+ shape = 'rounded',
202
+ variant = 'default',
203
+ views
204
+ } = _ref;
205
+ var {
206
+ expandedItems,
207
+ toggleItem,
208
+ isItemExpanded
209
+ } = useAccordionState(defaultExpandedItems, allowMultiple);
210
+ return /*#__PURE__*/React__default.createElement(AccordionProvider, {
211
+ value: {
212
+ expandedItems,
213
+ toggleItem,
214
+ isItemExpanded
215
+ }
216
+ }, /*#__PURE__*/React__default.createElement(AccordionView, {
217
+ shape: shape,
218
+ variant: variant,
219
+ views: views
220
+ }, children));
221
+ };
222
+ var Accordion = AccordionComponent;
223
+ // Assign the sub-components to the main component
224
+ Accordion.Item = AccordionItem;
225
+ Accordion.Header = AccordionHeader;
226
+ Accordion.Content = AccordionContent;
227
+
10
228
  var Top = props => (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
11
229
  marginBottom: "auto"
12
230
  }, props)));
@@ -245,17 +463,17 @@
245
463
  _excluded27 = ["widthHeight", "color", "filled", "strokeWidth"],
246
464
  _excluded28 = ["widthHeight", "color", "filled", "strokeWidth"],
247
465
  _excluded29 = ["widthHeight", "color", "filled", "strokeWidth"],
248
- _excluded30 = ["widthHeight", "color", "strokeWidth", "filled"],
466
+ _excluded30 = ["widthHeight", "color", "filled", "strokeWidth"],
249
467
  _excluded31 = ["widthHeight", "color", "filled", "strokeWidth"],
250
468
  _excluded32 = ["widthHeight", "color", "strokeWidth", "filled"],
251
469
  _excluded33 = ["widthHeight", "color", "filled", "strokeWidth"],
252
470
  _excluded34 = ["widthHeight", "color", "strokeWidth", "filled"],
253
471
  _excluded35 = ["widthHeight", "color", "filled", "strokeWidth"],
254
472
  _excluded36 = ["widthHeight", "color", "strokeWidth", "filled"],
255
- _excluded37 = ["widthHeight", "color", "strokeWidth", "filled"],
473
+ _excluded37 = ["widthHeight", "color", "filled", "strokeWidth"],
256
474
  _excluded38 = ["widthHeight", "color", "strokeWidth", "filled"],
257
- _excluded39 = ["widthHeight", "color", "filled", "strokeWidth"],
258
- _excluded40 = ["widthHeight", "color", "filled", "strokeWidth"],
475
+ _excluded39 = ["widthHeight", "color", "strokeWidth", "filled"],
476
+ _excluded40 = ["widthHeight", "color", "strokeWidth", "filled"],
259
477
  _excluded41 = ["widthHeight", "color", "filled", "strokeWidth"],
260
478
  _excluded42 = ["widthHeight", "color", "filled", "strokeWidth"],
261
479
  _excluded43 = ["widthHeight", "color", "filled", "strokeWidth"],
@@ -266,10 +484,10 @@
266
484
  _excluded48 = ["widthHeight", "color", "filled", "strokeWidth"],
267
485
  _excluded49 = ["widthHeight", "color", "filled", "strokeWidth"],
268
486
  _excluded50 = ["widthHeight", "color", "filled", "strokeWidth"],
269
- _excluded51 = ["widthHeight", "color", "strokeWidth", "filled"],
270
- _excluded52 = ["widthHeight", "color", "strokeWidth", "filled"],
271
- _excluded53 = ["widthHeight", "color", "filled", "strokeWidth"],
272
- _excluded54 = ["widthHeight", "color", "filled", "strokeWidth"],
487
+ _excluded51 = ["widthHeight", "color", "filled", "strokeWidth"],
488
+ _excluded52 = ["widthHeight", "color", "filled", "strokeWidth"],
489
+ _excluded53 = ["widthHeight", "color", "strokeWidth", "filled"],
490
+ _excluded54 = ["widthHeight", "color", "strokeWidth", "filled"],
273
491
  _excluded55 = ["widthHeight", "color", "filled", "strokeWidth"],
274
492
  _excluded56 = ["widthHeight", "color", "filled", "strokeWidth"],
275
493
  _excluded57 = ["widthHeight", "color", "filled", "strokeWidth"],
@@ -281,14 +499,16 @@
281
499
  _excluded63 = ["widthHeight", "color", "filled", "strokeWidth"],
282
500
  _excluded64 = ["widthHeight", "color", "filled", "strokeWidth"],
283
501
  _excluded65 = ["widthHeight", "color", "filled", "strokeWidth"],
284
- _excluded66 = ["widthHeight", "color", "strokeWidth", "filled"],
285
- _excluded67 = ["widthHeight", "color", "strokeWidth", "filled"],
502
+ _excluded66 = ["widthHeight", "color", "filled", "strokeWidth"],
503
+ _excluded67 = ["widthHeight", "color", "filled", "strokeWidth"],
286
504
  _excluded68 = ["widthHeight", "color", "strokeWidth", "filled"],
287
505
  _excluded69 = ["widthHeight", "color", "strokeWidth", "filled"],
288
506
  _excluded70 = ["widthHeight", "color", "strokeWidth", "filled"],
289
507
  _excluded71 = ["widthHeight", "color", "strokeWidth", "filled"],
290
508
  _excluded72 = ["widthHeight", "color", "strokeWidth", "filled"],
291
- _excluded73 = ["widthHeight", "color", "strokeWidth", "filled"];
509
+ _excluded73 = ["widthHeight", "color", "strokeWidth", "filled"],
510
+ _excluded74 = ["widthHeight", "color", "strokeWidth", "filled"],
511
+ _excluded75 = ["widthHeight", "color", "strokeWidth", "filled"];
292
512
  // Default wrapper component for consistent sizing and styling
293
513
  var IconWrapper = _ref => {
294
514
  var {
@@ -317,8 +537,7 @@
317
537
  strokeLinejoin: 'round'
318
538
  };
319
539
  };
320
- // Example Icon Component: ChevronIcon
321
- var ChevronIcon = _ref2 => {
540
+ var UserIcon = _ref2 => {
322
541
  var {
323
542
  widthHeight = 24,
324
543
  color = 'currentColor',
@@ -334,10 +553,10 @@
334
553
  "aria-hidden": "true",
335
554
  focusable: "false"
336
555
  }, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React__default.createElement("path", {
337
- 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"
556
+ 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"
338
557
  })));
339
558
  };
340
- var DragHandleIcon = _ref3 => {
559
+ var HelpIcon = _ref3 => {
341
560
  var {
342
561
  widthHeight = 24,
343
562
  color = 'currentColor',
@@ -352,6 +571,45 @@
352
571
  viewBox: "0 0 24 24",
353
572
  "aria-hidden": "true",
354
573
  focusable: "false"
574
+ }, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React__default.createElement("path", {
575
+ 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"
576
+ })));
577
+ };
578
+ // Example Icon Component: ChevronIcon
579
+ var ChevronIcon = _ref4 => {
580
+ var {
581
+ widthHeight = 24,
582
+ color = 'currentColor',
583
+ filled = true,
584
+ strokeWidth = 1
585
+ } = _ref4,
586
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded4);
587
+ return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
588
+ widthHeight: widthHeight,
589
+ color: color
590
+ }, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
591
+ viewBox: "0 0 24 24",
592
+ "aria-hidden": "true",
593
+ focusable: "false"
594
+ }, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React__default.createElement("path", {
595
+ 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"
596
+ })));
597
+ };
598
+ var DragHandleIcon = _ref5 => {
599
+ var {
600
+ widthHeight = 24,
601
+ color = 'currentColor',
602
+ filled = true,
603
+ strokeWidth = 1
604
+ } = _ref5,
605
+ props = _objectWithoutPropertiesLoose(_ref5, _excluded5);
606
+ return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
607
+ widthHeight: widthHeight,
608
+ color: color
609
+ }, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
610
+ viewBox: "0 0 24 24",
611
+ "aria-hidden": "true",
612
+ focusable: "false"
355
613
  }, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("circle", {
356
614
  cx: "9",
357
615
  cy: "6",
@@ -379,14 +637,14 @@
379
637
  }))));
380
638
  };
381
639
  // File Icon Component
382
- var FileIcon = _ref4 => {
640
+ var FileIcon = _ref6 => {
383
641
  var {
384
642
  widthHeight = 24,
385
643
  color = 'currentColor',
386
644
  filled = true,
387
645
  strokeWidth = 1
388
- } = _ref4,
389
- props = _objectWithoutPropertiesLoose(_ref4, _excluded4);
646
+ } = _ref6,
647
+ props = _objectWithoutPropertiesLoose(_ref6, _excluded6);
390
648
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
391
649
  widthHeight: widthHeight,
392
650
  color: color
@@ -407,14 +665,14 @@
407
665
  })));
408
666
  };
409
667
  // Video Icon Component
410
- var VideoIcon = _ref5 => {
668
+ var VideoIcon = _ref7 => {
411
669
  var {
412
670
  widthHeight = 24,
413
671
  color = 'currentColor',
414
672
  filled = true,
415
673
  strokeWidth = 1
416
- } = _ref5,
417
- props = _objectWithoutPropertiesLoose(_ref5, _excluded5);
674
+ } = _ref7,
675
+ props = _objectWithoutPropertiesLoose(_ref7, _excluded7);
418
676
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
419
677
  widthHeight: widthHeight,
420
678
  color: color
@@ -440,14 +698,14 @@
440
698
  })));
441
699
  };
442
700
  // Image Icon Component
443
- var ImageIcon = _ref6 => {
701
+ var ImageIcon = _ref8 => {
444
702
  var {
445
703
  widthHeight = 24,
446
704
  color = 'currentColor',
447
705
  filled = true,
448
706
  strokeWidth = 1
449
- } = _ref6,
450
- props = _objectWithoutPropertiesLoose(_ref6, _excluded6);
707
+ } = _ref8,
708
+ props = _objectWithoutPropertiesLoose(_ref8, _excluded8);
451
709
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
452
710
  widthHeight: widthHeight,
453
711
  color: color
@@ -479,14 +737,14 @@
479
737
  strokeWidth: strokeWidth
480
738
  })));
481
739
  };
482
- var TwitterIcon = _ref7 => {
740
+ var TwitterIcon = _ref9 => {
483
741
  var {
484
742
  widthHeight = 24,
485
743
  color = 'currentColor',
486
744
  filled = true,
487
745
  strokeWidth = 1
488
- } = _ref7,
489
- props = _objectWithoutPropertiesLoose(_ref7, _excluded7);
746
+ } = _ref9,
747
+ props = _objectWithoutPropertiesLoose(_ref9, _excluded9);
490
748
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
491
749
  widthHeight: widthHeight,
492
750
  color: color
@@ -501,14 +759,14 @@
501
759
  strokeWidth: filled ? 0 : strokeWidth
502
760
  })));
503
761
  };
504
- var XIcon = _ref8 => {
762
+ var XIcon = _ref10 => {
505
763
  var {
506
764
  widthHeight = 24,
507
765
  color = 'currentColor',
508
766
  filled = true,
509
767
  strokeWidth = 1
510
- } = _ref8,
511
- props = _objectWithoutPropertiesLoose(_ref8, _excluded8);
768
+ } = _ref10,
769
+ props = _objectWithoutPropertiesLoose(_ref10, _excluded10);
512
770
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
513
771
  widthHeight: widthHeight,
514
772
  color: color
@@ -524,14 +782,14 @@
524
782
  })));
525
783
  };
526
784
  // Example of a Twitch Icon
527
- var TwitchIcon = _ref9 => {
785
+ var TwitchIcon = _ref11 => {
528
786
  var {
529
787
  widthHeight = 24,
530
788
  color = 'currentColor',
531
789
  filled = true,
532
790
  strokeWidth = 1
533
- } = _ref9,
534
- props = _objectWithoutPropertiesLoose(_ref9, _excluded9);
791
+ } = _ref11,
792
+ props = _objectWithoutPropertiesLoose(_ref11, _excluded11);
535
793
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
536
794
  widthHeight: widthHeight,
537
795
  color: color
@@ -552,14 +810,14 @@
552
810
  })));
553
811
  };
554
812
  // Example of another Icon: CloseIcon
555
- var CloseIcon = _ref10 => {
813
+ var CloseIcon = _ref12 => {
556
814
  var {
557
815
  widthHeight = 24,
558
816
  color = 'currentColor',
559
817
  filled = false,
560
818
  strokeWidth = 1
561
- } = _ref10,
562
- props = _objectWithoutPropertiesLoose(_ref10, _excluded10);
819
+ } = _ref12,
820
+ props = _objectWithoutPropertiesLoose(_ref12, _excluded12);
563
821
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
564
822
  widthHeight: widthHeight,
565
823
  color: color
@@ -581,14 +839,14 @@
581
839
  y2: "18"
582
840
  })));
583
841
  };
584
- var InstagramIcon = _ref11 => {
842
+ var InstagramIcon = _ref13 => {
585
843
  var {
586
844
  widthHeight = 24,
587
845
  color = 'currentColor',
588
846
  filled = false,
589
847
  strokeWidth = 1
590
- } = _ref11,
591
- props = _objectWithoutPropertiesLoose(_ref11, _excluded11);
848
+ } = _ref13,
849
+ props = _objectWithoutPropertiesLoose(_ref13, _excluded13);
592
850
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
593
851
  widthHeight: widthHeight,
594
852
  color: color
@@ -612,14 +870,14 @@
612
870
  y2: "6.5"
613
871
  })));
614
872
  };
615
- var YoutubeIcon = _ref12 => {
873
+ var YoutubeIcon = _ref14 => {
616
874
  var {
617
875
  widthHeight = 24,
618
876
  color = 'currentColor',
619
877
  filled = true,
620
878
  strokeWidth = 1
621
- } = _ref12,
622
- props = _objectWithoutPropertiesLoose(_ref12, _excluded12);
879
+ } = _ref14,
880
+ props = _objectWithoutPropertiesLoose(_ref14, _excluded14);
623
881
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
624
882
  widthHeight: widthHeight,
625
883
  color: color
@@ -640,14 +898,14 @@
640
898
  strokeWidth: strokeWidth
641
899
  })));
642
900
  };
643
- var FacebookIcon = _ref13 => {
901
+ var FacebookIcon = _ref15 => {
644
902
  var {
645
903
  widthHeight = 24,
646
904
  color = 'currentColor',
647
905
  filled = true,
648
906
  strokeWidth = 1
649
- } = _ref13,
650
- props = _objectWithoutPropertiesLoose(_ref13, _excluded13);
907
+ } = _ref15,
908
+ props = _objectWithoutPropertiesLoose(_ref15, _excluded15);
651
909
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
652
910
  widthHeight: widthHeight,
653
911
  color: color
@@ -662,14 +920,14 @@
662
920
  strokeWidth: filled ? 0 : strokeWidth
663
921
  })));
664
922
  };
665
- var LinkedinIcon = _ref14 => {
923
+ var LinkedinIcon = _ref16 => {
666
924
  var {
667
925
  widthHeight = 24,
668
926
  color = 'currentColor',
669
927
  filled = true,
670
928
  strokeWidth = 1
671
- } = _ref14,
672
- props = _objectWithoutPropertiesLoose(_ref14, _excluded14);
929
+ } = _ref16,
930
+ props = _objectWithoutPropertiesLoose(_ref16, _excluded16);
673
931
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
674
932
  widthHeight: widthHeight,
675
933
  color: color
@@ -688,14 +946,14 @@
688
946
  r: "2"
689
947
  })));
690
948
  };
691
- var ThreadsIcon = _ref15 => {
949
+ var ThreadsIcon = _ref17 => {
692
950
  var {
693
951
  widthHeight = 24,
694
952
  color = 'currentColor',
695
953
  filled = false,
696
954
  strokeWidth = 1
697
- } = _ref15,
698
- props = _objectWithoutPropertiesLoose(_ref15, _excluded15);
955
+ } = _ref17,
956
+ props = _objectWithoutPropertiesLoose(_ref17, _excluded17);
699
957
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
700
958
  widthHeight: widthHeight,
701
959
  color: color
@@ -710,15 +968,15 @@
710
968
  })));
711
969
  };
712
970
  // Example Refactored Icon: MinusIcon without undefined 'padding' prop
713
- var MinusIcon = _ref16 => {
971
+ var MinusIcon = _ref18 => {
714
972
  var {
715
973
  widthHeight = 24,
716
974
  color = 'currentColor',
717
975
  filled = false,
718
976
  // Assuming minus can be filled; adjust as needed
719
977
  strokeWidth = 1
720
- } = _ref16,
721
- props = _objectWithoutPropertiesLoose(_ref16, _excluded16);
978
+ } = _ref18,
979
+ props = _objectWithoutPropertiesLoose(_ref18, _excluded18);
722
980
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
723
981
  widthHeight: widthHeight,
724
982
  color: color
@@ -735,14 +993,14 @@
735
993
  })));
736
994
  };
737
995
  // Example Refactored Icon: InfoIcon with accessibility enhancements
738
- var InfoIcon = _ref17 => {
996
+ var InfoIcon = _ref19 => {
739
997
  var {
740
998
  widthHeight = 24,
741
999
  color = 'currentColor',
742
1000
  filled = false,
743
1001
  strokeWidth = 1
744
- } = _ref17,
745
- props = _objectWithoutPropertiesLoose(_ref17, _excluded17);
1002
+ } = _ref19,
1003
+ props = _objectWithoutPropertiesLoose(_ref19, _excluded19);
746
1004
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
747
1005
  widthHeight: widthHeight,
748
1006
  color: color
@@ -756,14 +1014,14 @@
756
1014
  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"
757
1015
  })));
758
1016
  };
759
- var PlayIcon = _ref18 => {
1017
+ var PlayIcon = _ref20 => {
760
1018
  var {
761
1019
  widthHeight = 24,
762
1020
  color = 'currentColor',
763
1021
  filled = true,
764
1022
  strokeWidth = 1
765
- } = _ref18,
766
- props = _objectWithoutPropertiesLoose(_ref18, _excluded18);
1023
+ } = _ref20,
1024
+ props = _objectWithoutPropertiesLoose(_ref20, _excluded20);
767
1025
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
768
1026
  widthHeight: widthHeight,
769
1027
  color: color
@@ -775,14 +1033,14 @@
775
1033
  d: "M8 5v14l11-7z"
776
1034
  })));
777
1035
  };
778
- var PauseIcon = _ref19 => {
1036
+ var PauseIcon = _ref21 => {
779
1037
  var {
780
1038
  widthHeight = 24,
781
1039
  color = 'currentColor',
782
1040
  filled = true,
783
1041
  strokeWidth = 1
784
- } = _ref19,
785
- props = _objectWithoutPropertiesLoose(_ref19, _excluded19);
1042
+ } = _ref21,
1043
+ props = _objectWithoutPropertiesLoose(_ref21, _excluded21);
786
1044
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
787
1045
  widthHeight: widthHeight,
788
1046
  color: color
@@ -794,14 +1052,14 @@
794
1052
  d: "M6 4h4v16H6V4zm8 0h4v16h-4V4z"
795
1053
  })));
796
1054
  };
797
- var HeartIcon = _ref20 => {
1055
+ var HeartIcon = _ref22 => {
798
1056
  var {
799
1057
  widthHeight = 24,
800
1058
  color = 'currentColor',
801
1059
  filled = true,
802
1060
  strokeWidth = 1
803
- } = _ref20,
804
- props = _objectWithoutPropertiesLoose(_ref20, _excluded20);
1061
+ } = _ref22,
1062
+ props = _objectWithoutPropertiesLoose(_ref22, _excluded22);
805
1063
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
806
1064
  widthHeight: widthHeight,
807
1065
  color: color
@@ -813,14 +1071,14 @@
813
1071
  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"
814
1072
  })));
815
1073
  };
816
- var StarIcon = _ref21 => {
1074
+ var StarIcon = _ref23 => {
817
1075
  var {
818
1076
  widthHeight = 24,
819
1077
  color = 'currentColor',
820
1078
  filled = true,
821
1079
  strokeWidth = 1
822
- } = _ref21,
823
- props = _objectWithoutPropertiesLoose(_ref21, _excluded21);
1080
+ } = _ref23,
1081
+ props = _objectWithoutPropertiesLoose(_ref23, _excluded23);
824
1082
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
825
1083
  widthHeight: widthHeight,
826
1084
  color: color
@@ -832,14 +1090,14 @@
832
1090
  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"
833
1091
  })));
834
1092
  };
835
- var SaveIcon = _ref22 => {
1093
+ var SaveIcon = _ref24 => {
836
1094
  var {
837
1095
  widthHeight = 24,
838
1096
  color = 'currentColor',
839
1097
  filled = false,
840
1098
  strokeWidth = 1
841
- } = _ref22,
842
- props = _objectWithoutPropertiesLoose(_ref22, _excluded22);
1099
+ } = _ref24,
1100
+ props = _objectWithoutPropertiesLoose(_ref24, _excluded24);
843
1101
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
844
1102
  widthHeight: widthHeight,
845
1103
  color: color
@@ -855,14 +1113,14 @@
855
1113
  points: "7 3 7 8 15 8"
856
1114
  })));
857
1115
  };
858
- var WarningIcon = _ref23 => {
1116
+ var WarningIcon = _ref25 => {
859
1117
  var {
860
1118
  widthHeight = 24,
861
1119
  color = 'currentColor',
862
1120
  filled = false,
863
1121
  strokeWidth = 1
864
- } = _ref23,
865
- props = _objectWithoutPropertiesLoose(_ref23, _excluded23);
1122
+ } = _ref25,
1123
+ props = _objectWithoutPropertiesLoose(_ref25, _excluded25);
866
1124
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
867
1125
  widthHeight: widthHeight,
868
1126
  color: color
@@ -886,14 +1144,14 @@
886
1144
  y2: "15"
887
1145
  })));
888
1146
  };
889
- var BatteryIcon = _ref24 => {
1147
+ var BatteryIcon = _ref26 => {
890
1148
  var {
891
1149
  widthHeight = 24,
892
1150
  color = 'currentColor',
893
1151
  filled = true,
894
1152
  strokeWidth = 1
895
- } = _ref24,
896
- props = _objectWithoutPropertiesLoose(_ref24, _excluded24);
1153
+ } = _ref26,
1154
+ props = _objectWithoutPropertiesLoose(_ref26, _excluded26);
897
1155
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
898
1156
  widthHeight: widthHeight,
899
1157
  color: color
@@ -905,14 +1163,14 @@
905
1163
  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"
906
1164
  })));
907
1165
  };
908
- var BookmarkIcon = _ref25 => {
1166
+ var BookmarkIcon = _ref27 => {
909
1167
  var {
910
1168
  widthHeight = 24,
911
1169
  color = 'currentColor',
912
1170
  filled = false,
913
1171
  strokeWidth = 1
914
- } = _ref25,
915
- props = _objectWithoutPropertiesLoose(_ref25, _excluded25);
1172
+ } = _ref27,
1173
+ props = _objectWithoutPropertiesLoose(_ref27, _excluded27);
916
1174
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
917
1175
  widthHeight: widthHeight,
918
1176
  color: color
@@ -924,14 +1182,14 @@
924
1182
  d: "M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2z"
925
1183
  })));
926
1184
  };
927
- var CloudIcon = _ref26 => {
1185
+ var CloudIcon = _ref28 => {
928
1186
  var {
929
1187
  widthHeight = 24,
930
1188
  color = 'currentColor',
931
1189
  filled = true,
932
1190
  strokeWidth = 1
933
- } = _ref26,
934
- props = _objectWithoutPropertiesLoose(_ref26, _excluded26);
1191
+ } = _ref28,
1192
+ props = _objectWithoutPropertiesLoose(_ref28, _excluded28);
935
1193
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
936
1194
  widthHeight: widthHeight,
937
1195
  color: color
@@ -943,14 +1201,14 @@
943
1201
  d: "M18 10h-1.26A8 8 0 109 20h9a5 5 0 000-10z"
944
1202
  })));
945
1203
  };
946
- var CopyIcon = _ref27 => {
1204
+ var CopyIcon = _ref29 => {
947
1205
  var {
948
1206
  widthHeight = 24,
949
1207
  color = 'currentColor',
950
1208
  filled = false,
951
1209
  strokeWidth = 1
952
- } = _ref27,
953
- props = _objectWithoutPropertiesLoose(_ref27, _excluded27);
1210
+ } = _ref29,
1211
+ props = _objectWithoutPropertiesLoose(_ref29, _excluded29);
954
1212
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
955
1213
  widthHeight: widthHeight,
956
1214
  color: color
@@ -969,14 +1227,14 @@
969
1227
  d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"
970
1228
  })));
971
1229
  };
972
- var DustBinIcon = _ref28 => {
1230
+ var DustBinIcon = _ref30 => {
973
1231
  var {
974
1232
  widthHeight = 24,
975
1233
  color = 'currentColor',
976
1234
  filled = false,
977
1235
  strokeWidth = 1
978
- } = _ref28,
979
- props = _objectWithoutPropertiesLoose(_ref28, _excluded28);
1236
+ } = _ref30,
1237
+ props = _objectWithoutPropertiesLoose(_ref30, _excluded30);
980
1238
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
981
1239
  widthHeight: widthHeight,
982
1240
  color: color
@@ -988,15 +1246,16 @@
988
1246
  d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"
989
1247
  })));
990
1248
  };
991
- var EditIcon = _ref29 => {
1249
+ var DeleteIcon = DustBinIcon;
1250
+ var EditIcon = _ref31 => {
992
1251
  var {
993
1252
  widthHeight = 24,
994
1253
  color = 'currentColor',
995
1254
  filled = false,
996
1255
  strokeWidth = 1
997
- } = _ref29,
998
- props = _objectWithoutPropertiesLoose(_ref29, _excluded29);
999
- return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1256
+ } = _ref31,
1257
+ props = _objectWithoutPropertiesLoose(_ref31, _excluded31);
1258
+ return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1000
1259
  widthHeight: widthHeight,
1001
1260
  color: color
1002
1261
  }, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
@@ -1007,14 +1266,14 @@
1007
1266
  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"
1008
1267
  })));
1009
1268
  };
1010
- var ErrorIcon = _ref30 => {
1269
+ var ErrorIcon = _ref32 => {
1011
1270
  var {
1012
1271
  widthHeight = 24,
1013
1272
  color = 'currentColor',
1014
1273
  strokeWidth = 1,
1015
1274
  filled = true
1016
- } = _ref30,
1017
- props = _objectWithoutPropertiesLoose(_ref30, _excluded30);
1275
+ } = _ref32,
1276
+ props = _objectWithoutPropertiesLoose(_ref32, _excluded32);
1018
1277
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1019
1278
  widthHeight: widthHeight,
1020
1279
  color: color
@@ -1040,14 +1299,14 @@
1040
1299
  stroke: filled ? 'white' : color
1041
1300
  })));
1042
1301
  };
1043
- var DownloadIcon = _ref31 => {
1302
+ var DownloadIcon = _ref33 => {
1044
1303
  var {
1045
1304
  widthHeight = 24,
1046
1305
  color = 'currentColor',
1047
1306
  filled = true,
1048
1307
  strokeWidth = 1
1049
- } = _ref31,
1050
- props = _objectWithoutPropertiesLoose(_ref31, _excluded31);
1308
+ } = _ref33,
1309
+ props = _objectWithoutPropertiesLoose(_ref33, _excluded33);
1051
1310
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1052
1311
  widthHeight: widthHeight,
1053
1312
  color: color
@@ -1059,14 +1318,14 @@
1059
1318
  d: "M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"
1060
1319
  })));
1061
1320
  };
1062
- var MenuIcon = _ref32 => {
1321
+ var MenuIcon = _ref34 => {
1063
1322
  var {
1064
1323
  widthHeight = 24,
1065
1324
  color = 'currentColor',
1066
1325
  strokeWidth = 1,
1067
1326
  filled = false
1068
- } = _ref32,
1069
- props = _objectWithoutPropertiesLoose(_ref32, _excluded32);
1327
+ } = _ref34,
1328
+ props = _objectWithoutPropertiesLoose(_ref34, _excluded34);
1070
1329
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1071
1330
  widthHeight: widthHeight,
1072
1331
  color: color
@@ -1094,14 +1353,14 @@
1094
1353
  y2: "18"
1095
1354
  })));
1096
1355
  };
1097
- var ShareIcon = _ref33 => {
1356
+ var ShareIcon = _ref35 => {
1098
1357
  var {
1099
1358
  widthHeight = 24,
1100
1359
  color = 'currentColor',
1101
1360
  filled = false,
1102
1361
  strokeWidth = 1
1103
- } = _ref33,
1104
- props = _objectWithoutPropertiesLoose(_ref33, _excluded33);
1362
+ } = _ref35,
1363
+ props = _objectWithoutPropertiesLoose(_ref35, _excluded35);
1105
1364
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1106
1365
  widthHeight: widthHeight,
1107
1366
  color: color
@@ -1135,14 +1394,14 @@
1135
1394
  y2: "10.49"
1136
1395
  })));
1137
1396
  };
1138
- var RefreshIcon = _ref34 => {
1397
+ var RefreshIcon = _ref36 => {
1139
1398
  var {
1140
1399
  widthHeight = 24,
1141
1400
  color = 'currentColor',
1142
1401
  strokeWidth = 1,
1143
1402
  filled = false
1144
- } = _ref34,
1145
- props = _objectWithoutPropertiesLoose(_ref34, _excluded34);
1403
+ } = _ref36,
1404
+ props = _objectWithoutPropertiesLoose(_ref36, _excluded36);
1146
1405
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1147
1406
  widthHeight: widthHeight,
1148
1407
  color: color
@@ -1156,14 +1415,14 @@
1156
1415
  d: "M20.49 15a9 9 0 1 1-2.13-9.36L23 10"
1157
1416
  })));
1158
1417
  };
1159
- var PrintIcon = _ref35 => {
1418
+ var PrintIcon = _ref37 => {
1160
1419
  var {
1161
1420
  widthHeight = 24,
1162
1421
  color = 'currentColor',
1163
1422
  filled = true,
1164
1423
  strokeWidth = 1
1165
- } = _ref35,
1166
- props = _objectWithoutPropertiesLoose(_ref35, _excluded35);
1424
+ } = _ref37,
1425
+ props = _objectWithoutPropertiesLoose(_ref37, _excluded37);
1167
1426
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1168
1427
  widthHeight: widthHeight,
1169
1428
  color: color
@@ -1176,14 +1435,14 @@
1176
1435
  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"
1177
1436
  })));
1178
1437
  };
1179
- var MagicWandIcon = _ref36 => {
1438
+ var MagicWandIcon = _ref38 => {
1180
1439
  var {
1181
1440
  widthHeight = 24,
1182
1441
  color = 'currentColor',
1183
1442
  strokeWidth = 1,
1184
1443
  filled = true
1185
- } = _ref36,
1186
- props = _objectWithoutPropertiesLoose(_ref36, _excluded36);
1444
+ } = _ref38,
1445
+ props = _objectWithoutPropertiesLoose(_ref38, _excluded38);
1187
1446
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1188
1447
  widthHeight: widthHeight,
1189
1448
  color: color
@@ -1206,14 +1465,14 @@
1206
1465
  d: "M16 15L16.7 16.5L18 17L16.7 17.5L16 19L15.3 17.5L14 17L15.3 16.5L16 15Z"
1207
1466
  })));
1208
1467
  };
1209
- var SliderVerticalIcon = _ref37 => {
1468
+ var SliderVerticalIcon = _ref39 => {
1210
1469
  var {
1211
1470
  widthHeight = 24,
1212
1471
  color = 'currentColor',
1213
1472
  strokeWidth = 1,
1214
1473
  filled = false
1215
- } = _ref37,
1216
- props = _objectWithoutPropertiesLoose(_ref37, _excluded37);
1474
+ } = _ref39,
1475
+ props = _objectWithoutPropertiesLoose(_ref39, _excluded39);
1217
1476
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1218
1477
  widthHeight: widthHeight,
1219
1478
  color: color
@@ -1277,14 +1536,14 @@
1277
1536
  y2: "16"
1278
1537
  })));
1279
1538
  };
1280
- var PanelIcon = _ref38 => {
1539
+ var PanelIcon = _ref40 => {
1281
1540
  var {
1282
1541
  widthHeight = 24,
1283
1542
  color = 'currentColor',
1284
1543
  strokeWidth = 1,
1285
1544
  filled = false
1286
- } = _ref38,
1287
- props = _objectWithoutPropertiesLoose(_ref38, _excluded38);
1545
+ } = _ref40,
1546
+ props = _objectWithoutPropertiesLoose(_ref40, _excluded40);
1288
1547
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1289
1548
  widthHeight: widthHeight,
1290
1549
  color: color
@@ -1320,14 +1579,14 @@
1320
1579
  y2: "15"
1321
1580
  })));
1322
1581
  };
1323
- var FilterIcon = _ref39 => {
1582
+ var FilterIcon = _ref41 => {
1324
1583
  var {
1325
1584
  widthHeight = 24,
1326
1585
  color = 'currentColor',
1327
1586
  filled = false,
1328
1587
  strokeWidth = 1
1329
- } = _ref39,
1330
- props = _objectWithoutPropertiesLoose(_ref39, _excluded39);
1588
+ } = _ref41,
1589
+ props = _objectWithoutPropertiesLoose(_ref41, _excluded41);
1331
1590
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1332
1591
  widthHeight: widthHeight,
1333
1592
  color: color
@@ -1339,14 +1598,14 @@
1339
1598
  d: "M3 4h18l-7 10v5l-4 2v-7L3 4z"
1340
1599
  })));
1341
1600
  };
1342
- var HomeIcon = _ref40 => {
1601
+ var HomeIcon = _ref42 => {
1343
1602
  var {
1344
1603
  widthHeight = 24,
1345
1604
  color = 'currentColor',
1346
1605
  filled = true,
1347
1606
  strokeWidth = 1
1348
- } = _ref40,
1349
- props = _objectWithoutPropertiesLoose(_ref40, _excluded40);
1607
+ } = _ref42,
1608
+ props = _objectWithoutPropertiesLoose(_ref42, _excluded42);
1350
1609
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1351
1610
  widthHeight: widthHeight,
1352
1611
  color: color
@@ -1358,14 +1617,14 @@
1358
1617
  d: "M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8h5z"
1359
1618
  })));
1360
1619
  };
1361
- var LocationIcon = _ref41 => {
1620
+ var LocationIcon = _ref43 => {
1362
1621
  var {
1363
1622
  widthHeight = 24,
1364
1623
  color = 'currentColor',
1365
1624
  filled = true,
1366
1625
  strokeWidth = 1
1367
- } = _ref41,
1368
- props = _objectWithoutPropertiesLoose(_ref41, _excluded41);
1626
+ } = _ref43,
1627
+ props = _objectWithoutPropertiesLoose(_ref43, _excluded43);
1369
1628
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1370
1629
  widthHeight: widthHeight,
1371
1630
  color: color
@@ -1377,14 +1636,14 @@
1377
1636
  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"
1378
1637
  })));
1379
1638
  };
1380
- var LockIcon = _ref42 => {
1639
+ var LockIcon = _ref44 => {
1381
1640
  var {
1382
1641
  widthHeight = 24,
1383
1642
  color = 'currentColor',
1384
1643
  filled = false,
1385
1644
  strokeWidth = 1
1386
- } = _ref42,
1387
- props = _objectWithoutPropertiesLoose(_ref42, _excluded42);
1645
+ } = _ref44,
1646
+ props = _objectWithoutPropertiesLoose(_ref44, _excluded44);
1388
1647
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1389
1648
  widthHeight: widthHeight,
1390
1649
  color: color
@@ -1409,14 +1668,14 @@
1409
1668
  r: "1.5"
1410
1669
  })))));
1411
1670
  };
1412
- var MicrophoneIcon = _ref43 => {
1671
+ var MicrophoneIcon = _ref45 => {
1413
1672
  var {
1414
1673
  widthHeight = 24,
1415
1674
  color = 'currentColor',
1416
1675
  filled = false,
1417
1676
  strokeWidth = 1
1418
- } = _ref43,
1419
- props = _objectWithoutPropertiesLoose(_ref43, _excluded43);
1677
+ } = _ref45,
1678
+ props = _objectWithoutPropertiesLoose(_ref45, _excluded45);
1420
1679
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1421
1680
  widthHeight: widthHeight,
1422
1681
  color: color
@@ -1442,14 +1701,14 @@
1442
1701
  y2: "23"
1443
1702
  })));
1444
1703
  };
1445
- var MoonIcon = _ref44 => {
1704
+ var MoonIcon = _ref46 => {
1446
1705
  var {
1447
1706
  widthHeight = 24,
1448
1707
  color = 'currentColor',
1449
1708
  filled = true,
1450
1709
  strokeWidth = 1
1451
- } = _ref44,
1452
- props = _objectWithoutPropertiesLoose(_ref44, _excluded44);
1710
+ } = _ref46,
1711
+ props = _objectWithoutPropertiesLoose(_ref46, _excluded46);
1453
1712
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1454
1713
  widthHeight: widthHeight,
1455
1714
  color: color
@@ -1461,14 +1720,14 @@
1461
1720
  d: "M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"
1462
1721
  })));
1463
1722
  };
1464
- var NotificationIcon = _ref45 => {
1723
+ var NotificationIcon = _ref47 => {
1465
1724
  var {
1466
1725
  widthHeight = 24,
1467
1726
  color = 'currentColor',
1468
1727
  filled = false,
1469
1728
  strokeWidth = 1
1470
- } = _ref45,
1471
- props = _objectWithoutPropertiesLoose(_ref45, _excluded45);
1729
+ } = _ref47,
1730
+ props = _objectWithoutPropertiesLoose(_ref47, _excluded47);
1472
1731
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1473
1732
  widthHeight: widthHeight,
1474
1733
  color: color
@@ -1482,14 +1741,14 @@
1482
1741
  d: "M13.73 21a2 2 0 0 1-3.46 0"
1483
1742
  })));
1484
1743
  };
1485
- var OpenEyeIcon = _ref46 => {
1744
+ var OpenEyeIcon = _ref48 => {
1486
1745
  var {
1487
1746
  widthHeight = 24,
1488
1747
  color = 'currentColor',
1489
1748
  filled = true,
1490
1749
  strokeWidth = 1
1491
- } = _ref46,
1492
- props = _objectWithoutPropertiesLoose(_ref46, _excluded46);
1750
+ } = _ref48,
1751
+ props = _objectWithoutPropertiesLoose(_ref48, _excluded48);
1493
1752
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1494
1753
  widthHeight: widthHeight,
1495
1754
  color: color
@@ -1501,14 +1760,14 @@
1501
1760
  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"
1502
1761
  })));
1503
1762
  };
1504
- var ProfileIcon = _ref47 => {
1763
+ var ProfileIcon = _ref49 => {
1505
1764
  var {
1506
1765
  widthHeight = 24,
1507
1766
  color = 'currentColor',
1508
1767
  filled = true,
1509
1768
  strokeWidth = 1
1510
- } = _ref47,
1511
- props = _objectWithoutPropertiesLoose(_ref47, _excluded47);
1769
+ } = _ref49,
1770
+ props = _objectWithoutPropertiesLoose(_ref49, _excluded49);
1512
1771
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1513
1772
  widthHeight: widthHeight,
1514
1773
  color: color
@@ -1521,14 +1780,14 @@
1521
1780
  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"
1522
1781
  }), ' '));
1523
1782
  };
1524
- var SettingsIcon = _ref48 => {
1783
+ var SettingsIcon = _ref50 => {
1525
1784
  var {
1526
1785
  widthHeight = 24,
1527
1786
  color = 'currentColor',
1528
1787
  filled = false,
1529
1788
  strokeWidth = 1
1530
- } = _ref48,
1531
- props = _objectWithoutPropertiesLoose(_ref48, _excluded48);
1789
+ } = _ref50,
1790
+ props = _objectWithoutPropertiesLoose(_ref50, _excluded50);
1532
1791
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1533
1792
  widthHeight: widthHeight,
1534
1793
  color: color
@@ -1540,14 +1799,14 @@
1540
1799
  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"
1541
1800
  })));
1542
1801
  };
1543
- var SuccessIcon = _ref49 => {
1802
+ var SuccessIcon = _ref51 => {
1544
1803
  var {
1545
1804
  widthHeight = 24,
1546
1805
  color = 'currentColor',
1547
1806
  filled = true,
1548
1807
  strokeWidth = 1
1549
- } = _ref49,
1550
- props = _objectWithoutPropertiesLoose(_ref49, _excluded49);
1808
+ } = _ref51,
1809
+ props = _objectWithoutPropertiesLoose(_ref51, _excluded51);
1551
1810
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1552
1811
  widthHeight: widthHeight,
1553
1812
  color: color
@@ -1559,14 +1818,14 @@
1559
1818
  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"
1560
1819
  })));
1561
1820
  };
1562
- var UnLikeIcon = _ref50 => {
1821
+ var UnLikeIcon = _ref52 => {
1563
1822
  var {
1564
1823
  widthHeight = 24,
1565
1824
  color = 'currentColor',
1566
1825
  filled = true,
1567
1826
  strokeWidth = 1
1568
- } = _ref50,
1569
- props = _objectWithoutPropertiesLoose(_ref50, _excluded50);
1827
+ } = _ref52,
1828
+ props = _objectWithoutPropertiesLoose(_ref52, _excluded52);
1570
1829
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1571
1830
  widthHeight: widthHeight,
1572
1831
  color: color
@@ -1578,14 +1837,14 @@
1578
1837
  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"
1579
1838
  })));
1580
1839
  };
1581
- var ClockIcon = _ref51 => {
1840
+ var ClockIcon = _ref53 => {
1582
1841
  var {
1583
1842
  widthHeight = 24,
1584
1843
  color = 'currentColor',
1585
1844
  strokeWidth = 1,
1586
1845
  filled = false
1587
- } = _ref51,
1588
- props = _objectWithoutPropertiesLoose(_ref51, _excluded51);
1846
+ } = _ref53,
1847
+ props = _objectWithoutPropertiesLoose(_ref53, _excluded53);
1589
1848
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1590
1849
  widthHeight: widthHeight,
1591
1850
  color: color
@@ -1601,14 +1860,14 @@
1601
1860
  points: "12 6 12 12 16 14"
1602
1861
  })));
1603
1862
  };
1604
- var CameraIcon = _ref52 => {
1863
+ var CameraIcon = _ref54 => {
1605
1864
  var {
1606
1865
  widthHeight = 24,
1607
1866
  color = 'currentColor',
1608
1867
  strokeWidth = 1,
1609
1868
  filled = false
1610
- } = _ref52,
1611
- props = _objectWithoutPropertiesLoose(_ref52, _excluded52);
1869
+ } = _ref54,
1870
+ props = _objectWithoutPropertiesLoose(_ref54, _excluded54);
1612
1871
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1613
1872
  widthHeight: widthHeight,
1614
1873
  color: color
@@ -1624,14 +1883,14 @@
1624
1883
  r: "4"
1625
1884
  })));
1626
1885
  };
1627
- var BluetoothIcon = _ref53 => {
1886
+ var BluetoothIcon = _ref55 => {
1628
1887
  var {
1629
1888
  widthHeight = 24,
1630
1889
  color = 'currentColor',
1631
1890
  filled = true,
1632
1891
  strokeWidth = 1
1633
- } = _ref53,
1634
- props = _objectWithoutPropertiesLoose(_ref53, _excluded53);
1892
+ } = _ref55,
1893
+ props = _objectWithoutPropertiesLoose(_ref55, _excluded55);
1635
1894
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1636
1895
  widthHeight: widthHeight,
1637
1896
  color: color
@@ -1643,14 +1902,14 @@
1643
1902
  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"
1644
1903
  })));
1645
1904
  };
1646
- var LikeIcon = _ref54 => {
1905
+ var LikeIcon = _ref56 => {
1647
1906
  var {
1648
1907
  widthHeight = 24,
1649
1908
  color = 'currentColor',
1650
1909
  filled = true,
1651
1910
  strokeWidth = 1
1652
- } = _ref54,
1653
- props = _objectWithoutPropertiesLoose(_ref54, _excluded54);
1911
+ } = _ref56,
1912
+ props = _objectWithoutPropertiesLoose(_ref56, _excluded56);
1654
1913
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1655
1914
  widthHeight: widthHeight,
1656
1915
  color: color
@@ -1662,14 +1921,14 @@
1662
1921
  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"
1663
1922
  })));
1664
1923
  };
1665
- var UnlockIcon = _ref55 => {
1924
+ var UnlockIcon = _ref57 => {
1666
1925
  var {
1667
1926
  widthHeight = 24,
1668
1927
  color = 'currentColor',
1669
1928
  filled = false,
1670
1929
  strokeWidth = 1
1671
- } = _ref55,
1672
- props = _objectWithoutPropertiesLoose(_ref55, _excluded55);
1930
+ } = _ref57,
1931
+ props = _objectWithoutPropertiesLoose(_ref57, _excluded57);
1673
1932
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1674
1933
  widthHeight: widthHeight,
1675
1934
  color: color
@@ -1694,14 +1953,14 @@
1694
1953
  r: "1.5"
1695
1954
  })))));
1696
1955
  };
1697
- var WifiIcon = _ref56 => {
1956
+ var WifiIcon = _ref58 => {
1698
1957
  var {
1699
1958
  widthHeight = 24,
1700
1959
  color = 'currentColor',
1701
1960
  filled = false,
1702
1961
  strokeWidth = 1
1703
- } = _ref56,
1704
- props = _objectWithoutPropertiesLoose(_ref56, _excluded56);
1962
+ } = _ref58,
1963
+ props = _objectWithoutPropertiesLoose(_ref58, _excluded58);
1705
1964
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1706
1965
  widthHeight: widthHeight,
1707
1966
  color: color
@@ -1713,14 +1972,14 @@
1713
1972
  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"
1714
1973
  })));
1715
1974
  };
1716
- var UploadIcon = _ref57 => {
1975
+ var UploadIcon = _ref59 => {
1717
1976
  var {
1718
1977
  widthHeight = 24,
1719
1978
  color = 'currentColor',
1720
1979
  filled = false,
1721
1980
  strokeWidth = 1
1722
- } = _ref57,
1723
- props = _objectWithoutPropertiesLoose(_ref57, _excluded57);
1981
+ } = _ref59,
1982
+ props = _objectWithoutPropertiesLoose(_ref59, _excluded59);
1724
1983
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1725
1984
  widthHeight: widthHeight,
1726
1985
  color: color
@@ -1736,14 +1995,14 @@
1736
1995
  d: "M12 12l0 9"
1737
1996
  })));
1738
1997
  };
1739
- var SearchIcon = _ref58 => {
1998
+ var SearchIcon = _ref60 => {
1740
1999
  var {
1741
2000
  widthHeight = 24,
1742
2001
  color = 'currentColor',
1743
2002
  filled = true,
1744
2003
  strokeWidth = 1
1745
- } = _ref58,
1746
- props = _objectWithoutPropertiesLoose(_ref58, _excluded58);
2004
+ } = _ref60,
2005
+ props = _objectWithoutPropertiesLoose(_ref60, _excluded60);
1747
2006
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1748
2007
  widthHeight: widthHeight,
1749
2008
  color: color
@@ -1755,14 +2014,14 @@
1755
2014
  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"
1756
2015
  })));
1757
2016
  };
1758
- var CloseEyeIcon = _ref59 => {
2017
+ var CloseEyeIcon = _ref61 => {
1759
2018
  var {
1760
2019
  widthHeight = 24,
1761
2020
  color = 'currentColor',
1762
2021
  filled = true,
1763
2022
  strokeWidth = 1
1764
- } = _ref59,
1765
- props = _objectWithoutPropertiesLoose(_ref59, _excluded59);
2023
+ } = _ref61,
2024
+ props = _objectWithoutPropertiesLoose(_ref61, _excluded61);
1766
2025
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1767
2026
  widthHeight: widthHeight,
1768
2027
  color: color
@@ -1775,14 +2034,14 @@
1775
2034
  fill: "currentColor"
1776
2035
  })));
1777
2036
  };
1778
- var ExternalLinkIcon = _ref60 => {
2037
+ var ExternalLinkIcon = _ref62 => {
1779
2038
  var {
1780
2039
  widthHeight = 24,
1781
2040
  color = 'currentColor',
1782
2041
  filled = true,
1783
2042
  strokeWidth = 1
1784
- } = _ref60,
1785
- props = _objectWithoutPropertiesLoose(_ref60, _excluded60);
2043
+ } = _ref62,
2044
+ props = _objectWithoutPropertiesLoose(_ref62, _excluded62);
1786
2045
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1787
2046
  widthHeight: widthHeight,
1788
2047
  color: color
@@ -1794,14 +2053,14 @@
1794
2053
  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"
1795
2054
  })));
1796
2055
  };
1797
- var PlusIcon = _ref61 => {
2056
+ var PlusIcon = _ref63 => {
1798
2057
  var {
1799
2058
  widthHeight = 24,
1800
2059
  color = 'currentColor',
1801
2060
  filled = false,
1802
2061
  strokeWidth = 1
1803
- } = _ref61,
1804
- props = _objectWithoutPropertiesLoose(_ref61, _excluded61);
2062
+ } = _ref63,
2063
+ props = _objectWithoutPropertiesLoose(_ref63, _excluded63);
1805
2064
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1806
2065
  widthHeight: widthHeight,
1807
2066
  color: color
@@ -1823,14 +2082,14 @@
1823
2082
  y2: "12"
1824
2083
  })));
1825
2084
  };
1826
- var TickIcon = _ref62 => {
2085
+ var TickIcon = _ref64 => {
1827
2086
  var {
1828
2087
  widthHeight = 24,
1829
2088
  color = 'currentColor',
1830
2089
  filled = false,
1831
2090
  strokeWidth = 1
1832
- } = _ref62,
1833
- props = _objectWithoutPropertiesLoose(_ref62, _excluded62);
2091
+ } = _ref64,
2092
+ props = _objectWithoutPropertiesLoose(_ref64, _excluded64);
1834
2093
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1835
2094
  widthHeight: widthHeight,
1836
2095
  color: color
@@ -1844,14 +2103,14 @@
1844
2103
  strokeLinejoin: "round"
1845
2104
  })));
1846
2105
  };
1847
- var BoldArrowIcon = _ref63 => {
2106
+ var BoldArrowIcon = _ref65 => {
1848
2107
  var {
1849
2108
  widthHeight = 24,
1850
2109
  color = 'currentColor',
1851
2110
  filled = true,
1852
2111
  strokeWidth = 1
1853
- } = _ref63,
1854
- props = _objectWithoutPropertiesLoose(_ref63, _excluded63);
2112
+ } = _ref65,
2113
+ props = _objectWithoutPropertiesLoose(_ref65, _excluded65);
1855
2114
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1856
2115
  widthHeight: widthHeight,
1857
2116
  color: color
@@ -1863,14 +2122,14 @@
1863
2122
  d: "M12 4l7 7h-4v7h-6v-7H5l7-7z"
1864
2123
  })));
1865
2124
  };
1866
- var ArrowIcon = _ref64 => {
2125
+ var ArrowIcon = _ref66 => {
1867
2126
  var {
1868
2127
  widthHeight = 24,
1869
2128
  color = 'currentColor',
1870
2129
  filled = false,
1871
2130
  strokeWidth = 1
1872
- } = _ref64,
1873
- props = _objectWithoutPropertiesLoose(_ref64, _excluded64);
2131
+ } = _ref66,
2132
+ props = _objectWithoutPropertiesLoose(_ref66, _excluded66);
1874
2133
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1875
2134
  widthHeight: widthHeight,
1876
2135
  color: color
@@ -1888,14 +2147,14 @@
1888
2147
  points: "6 12 12 6 18 12"
1889
2148
  })));
1890
2149
  };
1891
- var SpinnerIcon = _ref65 => {
2150
+ var SpinnerIcon = _ref67 => {
1892
2151
  var {
1893
2152
  widthHeight = 24,
1894
2153
  color = 'currentColor',
1895
2154
  filled = false,
1896
2155
  strokeWidth = 1
1897
- } = _ref65,
1898
- props = _objectWithoutPropertiesLoose(_ref65, _excluded65);
2156
+ } = _ref67,
2157
+ props = _objectWithoutPropertiesLoose(_ref67, _excluded67);
1899
2158
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1900
2159
  widthHeight: widthHeight,
1901
2160
  color: color
@@ -1913,14 +2172,14 @@
1913
2172
  strokeOpacity: "1"
1914
2173
  })));
1915
2174
  };
1916
- var CalendarIcon = _ref66 => {
2175
+ var CalendarIcon = _ref68 => {
1917
2176
  var {
1918
2177
  widthHeight = 24,
1919
2178
  color = 'currentColor',
1920
2179
  strokeWidth = 1,
1921
2180
  filled = false
1922
- } = _ref66,
1923
- props = _objectWithoutPropertiesLoose(_ref66, _excluded66);
2181
+ } = _ref68,
2182
+ props = _objectWithoutPropertiesLoose(_ref68, _excluded68);
1924
2183
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1925
2184
  widthHeight: widthHeight,
1926
2185
  color: color
@@ -1955,14 +2214,14 @@
1955
2214
  y2: "10"
1956
2215
  })));
1957
2216
  };
1958
- var SliderIcon = _ref67 => {
2217
+ var SliderIcon = _ref69 => {
1959
2218
  var {
1960
2219
  widthHeight = 24,
1961
2220
  color = 'currentColor',
1962
2221
  strokeWidth = 1,
1963
2222
  filled = false
1964
- } = _ref67,
1965
- props = _objectWithoutPropertiesLoose(_ref67, _excluded67);
2223
+ } = _ref69,
2224
+ props = _objectWithoutPropertiesLoose(_ref69, _excluded69);
1966
2225
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
1967
2226
  widthHeight: widthHeight,
1968
2227
  color: color
@@ -2017,14 +2276,14 @@
2017
2276
  y2: "23"
2018
2277
  })));
2019
2278
  };
2020
- var CropIcon = _ref68 => {
2279
+ var CropIcon = _ref70 => {
2021
2280
  var {
2022
2281
  widthHeight = 24,
2023
2282
  color = 'currentColor',
2024
2283
  strokeWidth = 1,
2025
2284
  filled = false
2026
- } = _ref68,
2027
- props = _objectWithoutPropertiesLoose(_ref68, _excluded68);
2285
+ } = _ref70,
2286
+ props = _objectWithoutPropertiesLoose(_ref70, _excluded70);
2028
2287
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
2029
2288
  widthHeight: widthHeight,
2030
2289
  color: color
@@ -2038,14 +2297,14 @@
2038
2297
  d: "M18 22V8a2 2 0 0 0-2-2H2"
2039
2298
  })));
2040
2299
  };
2041
- var ZoomInIcon = _ref69 => {
2300
+ var ZoomInIcon = _ref71 => {
2042
2301
  var {
2043
2302
  widthHeight = 24,
2044
2303
  color = 'currentColor',
2045
2304
  strokeWidth = 1,
2046
2305
  filled = false
2047
- } = _ref69,
2048
- props = _objectWithoutPropertiesLoose(_ref69, _excluded69);
2306
+ } = _ref71,
2307
+ props = _objectWithoutPropertiesLoose(_ref71, _excluded71);
2049
2308
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
2050
2309
  widthHeight: widthHeight,
2051
2310
  color: color
@@ -2074,14 +2333,14 @@
2074
2333
  y2: "11"
2075
2334
  })));
2076
2335
  };
2077
- var ZoomOutIcon = _ref70 => {
2336
+ var ZoomOutIcon = _ref72 => {
2078
2337
  var {
2079
2338
  widthHeight = 24,
2080
2339
  color = 'currentColor',
2081
2340
  strokeWidth = 1,
2082
2341
  filled = false
2083
- } = _ref70,
2084
- props = _objectWithoutPropertiesLoose(_ref70, _excluded70);
2342
+ } = _ref72,
2343
+ props = _objectWithoutPropertiesLoose(_ref72, _excluded72);
2085
2344
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
2086
2345
  widthHeight: widthHeight,
2087
2346
  color: color
@@ -2105,14 +2364,14 @@
2105
2364
  y2: "11"
2106
2365
  })));
2107
2366
  };
2108
- var TextIcon = _ref71 => {
2367
+ var TextIcon = _ref73 => {
2109
2368
  var {
2110
2369
  widthHeight = 24,
2111
2370
  color = 'currentColor',
2112
2371
  strokeWidth = 1,
2113
2372
  filled = false
2114
- } = _ref71,
2115
- props = _objectWithoutPropertiesLoose(_ref71, _excluded71);
2373
+ } = _ref73,
2374
+ props = _objectWithoutPropertiesLoose(_ref73, _excluded73);
2116
2375
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
2117
2376
  widthHeight: widthHeight,
2118
2377
  color: color
@@ -2137,14 +2396,14 @@
2137
2396
  y2: "18"
2138
2397
  })));
2139
2398
  };
2140
- var ShapeIcon = _ref72 => {
2399
+ var ShapeIcon = _ref74 => {
2141
2400
  var {
2142
2401
  widthHeight = 24,
2143
2402
  color = 'currentColor',
2144
2403
  strokeWidth = 1,
2145
2404
  filled = false
2146
- } = _ref72,
2147
- props = _objectWithoutPropertiesLoose(_ref72, _excluded72);
2405
+ } = _ref74,
2406
+ props = _objectWithoutPropertiesLoose(_ref74, _excluded74);
2148
2407
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
2149
2408
  widthHeight: widthHeight,
2150
2409
  color: color
@@ -2165,14 +2424,14 @@
2165
2424
  points: "16,4 19,8 13,8"
2166
2425
  })));
2167
2426
  };
2168
- var RotateIcon = _ref73 => {
2427
+ var RotateIcon = _ref75 => {
2169
2428
  var {
2170
2429
  widthHeight = 24,
2171
2430
  color = 'currentColor',
2172
2431
  strokeWidth = 1,
2173
2432
  filled = false
2174
- } = _ref73,
2175
- props = _objectWithoutPropertiesLoose(_ref73, _excluded73);
2433
+ } = _ref75,
2434
+ props = _objectWithoutPropertiesLoose(_ref75, _excluded75);
2176
2435
  return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
2177
2436
  widthHeight: widthHeight,
2178
2437
  color: color
@@ -2189,6 +2448,8 @@
2189
2448
 
2190
2449
  var Icon = {
2191
2450
  __proto__: null,
2451
+ UserIcon: UserIcon,
2452
+ HelpIcon: HelpIcon,
2192
2453
  ChevronIcon: ChevronIcon,
2193
2454
  DragHandleIcon: DragHandleIcon,
2194
2455
  FileIcon: FileIcon,
@@ -2216,6 +2477,7 @@
2216
2477
  CloudIcon: CloudIcon,
2217
2478
  CopyIcon: CopyIcon,
2218
2479
  DustBinIcon: DustBinIcon,
2480
+ DeleteIcon: DeleteIcon,
2219
2481
  EditIcon: EditIcon,
2220
2482
  ErrorIcon: ErrorIcon,
2221
2483
  DownloadIcon: DownloadIcon,
@@ -3176,41 +3438,479 @@
3176
3438
  };
3177
3439
  var Button = ButtonComponent;
3178
3440
 
3179
- var _excluded$a = ["src", "color", "views", "themeMode"],
3180
- _excluded2$2 = ["path"];
3181
- var FileSVG = _ref => {
3182
- var {
3183
- src,
3184
- color,
3185
- views
3186
- } = _ref,
3187
- props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
3188
- var {
3189
- getColor,
3190
- themeMode
3191
- } = appStudio.useTheme();
3192
- var Colorprops = color ? {
3193
- fill: getColor(color, {
3194
- themeMode
3195
- }),
3196
- stroke: getColor(color, {
3197
- themeMode
3198
- })
3199
- } : {};
3200
- return /*#__PURE__*/React__default.createElement(Center, Object.assign({}, props, views == null ? void 0 : views.container), /*#__PURE__*/React__default.createElement(appStudio.Image, Object.assign({}, Colorprops, {
3201
- content: 'url("' + src + '")',
3202
- width: "100%",
3203
- height: "100%"
3204
- }, views == null ? void 0 : views.image)));
3441
+ var useContextMenuState = () => {
3442
+ var [isOpen, setIsOpen] = React.useState(false);
3443
+ var [position, setPosition] = React.useState({
3444
+ x: 0,
3445
+ y: 0
3446
+ });
3447
+ var [activeSubmenuId, setActiveSubmenuId] = React.useState(null);
3448
+ // Close the context menu when clicking outside
3449
+ React.useEffect(() => {
3450
+ var handleClickOutside = event => {
3451
+ var path = event.composedPath();
3452
+ var isOutside = !path.some(element => (element == null ? void 0 : element.id) === 'context-menu');
3453
+ if (isOutside && isOpen) {
3454
+ setIsOpen(false);
3455
+ setActiveSubmenuId(null);
3456
+ }
3457
+ };
3458
+ // Close the context menu when the window is resized
3459
+ var handleResize = () => {
3460
+ if (isOpen) {
3461
+ setIsOpen(false);
3462
+ setActiveSubmenuId(null);
3463
+ }
3464
+ };
3465
+ // Close the context menu when the escape key is pressed
3466
+ var handleKeyDown = event => {
3467
+ if (event.key === 'Escape' && isOpen) {
3468
+ setIsOpen(false);
3469
+ setActiveSubmenuId(null);
3470
+ }
3471
+ };
3472
+ document.addEventListener('mousedown', handleClickOutside);
3473
+ window.addEventListener('resize', handleResize);
3474
+ document.addEventListener('keydown', handleKeyDown);
3475
+ return () => {
3476
+ document.removeEventListener('mousedown', handleClickOutside);
3477
+ window.removeEventListener('resize', handleResize);
3478
+ document.removeEventListener('keydown', handleKeyDown);
3479
+ };
3480
+ }, [isOpen]);
3481
+ return {
3482
+ isOpen,
3483
+ setIsOpen,
3484
+ position,
3485
+ setPosition,
3486
+ activeSubmenuId,
3487
+ setActiveSubmenuId
3488
+ };
3205
3489
  };
3206
- var FileImage = _ref2 => {
3207
- var {
3208
- path
3209
- } = _ref2,
3210
- props = _objectWithoutPropertiesLoose(_ref2, _excluded2$2);
3211
- return /*#__PURE__*/React__default.createElement(appStudio.Image, Object.assign({
3212
- src: path
3213
- }, props));
3490
+
3491
+ var ContextMenuSizes = {
3492
+ sm: {
3493
+ padding: '6px 8px',
3494
+ fontSize: '14px',
3495
+ minWidth: '160px'
3496
+ },
3497
+ md: {
3498
+ padding: '8px 12px',
3499
+ fontSize: '16px',
3500
+ minWidth: '180px'
3501
+ },
3502
+ lg: {
3503
+ padding: '10px 16px',
3504
+ fontSize: '18px',
3505
+ minWidth: '200px'
3506
+ }
3507
+ };
3508
+ var ContextMenuVariants = {
3509
+ default: {
3510
+ backgroundColor: 'white',
3511
+ color: 'color.gray.800'
3512
+ },
3513
+ filled: {
3514
+ backgroundColor: 'color.gray.100',
3515
+ color: 'color.gray.800'
3516
+ },
3517
+ outline: {
3518
+ backgroundColor: 'white',
3519
+ borderWidth: '1px',
3520
+ borderStyle: 'solid',
3521
+ borderColor: 'color.gray.200',
3522
+ color: 'color.gray.800'
3523
+ }
3524
+ };
3525
+ var ContextMenuItemStates = {
3526
+ hover: {
3527
+ backgroundColor: 'color.gray.100'
3528
+ },
3529
+ active: {
3530
+ backgroundColor: 'color.gray.200'
3531
+ },
3532
+ disabled: {
3533
+ opacity: 0.5,
3534
+ cursor: 'not-allowed'
3535
+ }
3536
+ };
3537
+ // Helper function to calculate position based on available space
3538
+ var calculateMenuPosition = function calculateMenuPosition(x, y, menuWidth, menuHeight, windowWidth, windowHeight, side, align) {
3539
+ if (side === void 0) {
3540
+ side = 'right';
3541
+ }
3542
+ if (align === void 0) {
3543
+ align = 'start';
3544
+ }
3545
+ var posX = x;
3546
+ var posY = y;
3547
+ // Adjust horizontal position based on side
3548
+ if (side === 'left') {
3549
+ posX = x - menuWidth;
3550
+ } else if (side === 'right') {
3551
+ posX = x;
3552
+ } else if (side === 'top' || side === 'bottom') {
3553
+ // Adjust horizontal position based on alignment for top/bottom
3554
+ if (align === 'center') {
3555
+ posX = x - menuWidth / 2;
3556
+ } else if (align === 'end') {
3557
+ posX = x - menuWidth;
3558
+ }
3559
+ }
3560
+ // Adjust vertical position based on side
3561
+ if (side === 'top') {
3562
+ posY = y - menuHeight;
3563
+ } else if (side === 'bottom') {
3564
+ posY = y;
3565
+ } else if (side === 'left' || side === 'right') {
3566
+ // Adjust vertical position based on alignment for left/right
3567
+ if (align === 'center') {
3568
+ posY = y - menuHeight / 2;
3569
+ } else if (align === 'end') {
3570
+ posY = y - menuHeight;
3571
+ }
3572
+ }
3573
+ // Ensure menu stays within window bounds
3574
+ if (posX + menuWidth > windowWidth) {
3575
+ posX = windowWidth - menuWidth;
3576
+ }
3577
+ if (posX < 0) {
3578
+ posX = 0;
3579
+ }
3580
+ if (posY + menuHeight > windowHeight) {
3581
+ posY = windowHeight - menuHeight;
3582
+ }
3583
+ if (posY < 0) {
3584
+ posY = 0;
3585
+ }
3586
+ return {
3587
+ x: posX,
3588
+ y: posY
3589
+ };
3590
+ };
3591
+
3592
+ var _excluded$a = ["children", "disableNativeContextMenu", "views"],
3593
+ _excluded2$2 = ["items", "position", "side", "align", "views"],
3594
+ _excluded3$2 = ["item", "views"],
3595
+ _excluded4$2 = ["views"],
3596
+ _excluded5$1 = ["children", "items", "size", "variant", "disableNativeContextMenu", "views"];
3597
+ // Create context for the ContextMenu
3598
+ var ContextMenuContext = /*#__PURE__*/React.createContext({
3599
+ isOpen: false,
3600
+ setIsOpen: () => {},
3601
+ position: {
3602
+ x: 0,
3603
+ y: 0
3604
+ },
3605
+ setPosition: () => {},
3606
+ activeSubmenuId: null,
3607
+ setActiveSubmenuId: () => {},
3608
+ size: 'md',
3609
+ variant: 'default'
3610
+ });
3611
+ // Provider component for the ContextMenu context
3612
+ var ContextMenuProvider = _ref => {
3613
+ var {
3614
+ children,
3615
+ value
3616
+ } = _ref;
3617
+ return /*#__PURE__*/React__default.createElement(ContextMenuContext.Provider, {
3618
+ value: value
3619
+ }, children);
3620
+ };
3621
+ // Hook to use the ContextMenu context
3622
+ var useContextMenuContext = () => {
3623
+ var context = React.useContext(ContextMenuContext);
3624
+ if (!context) {
3625
+ throw new Error('useContextMenuContext must be used within a ContextMenuProvider');
3626
+ }
3627
+ return context;
3628
+ };
3629
+ // ContextMenu Trigger component
3630
+ var ContextMenuTrigger = _ref2 => {
3631
+ var {
3632
+ children,
3633
+ disableNativeContextMenu = true,
3634
+ views
3635
+ } = _ref2,
3636
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$a);
3637
+ var {
3638
+ setIsOpen,
3639
+ setPosition
3640
+ } = useContextMenuContext();
3641
+ var handleContextMenu = e => {
3642
+ if (disableNativeContextMenu) {
3643
+ e.preventDefault();
3644
+ }
3645
+ setPosition({
3646
+ x: e.clientX,
3647
+ y: e.clientY
3648
+ });
3649
+ setIsOpen(true);
3650
+ };
3651
+ return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
3652
+ onContextMenu: handleContextMenu
3653
+ }, views == null ? void 0 : views.container, props), children);
3654
+ };
3655
+ // ContextMenu Content component
3656
+ var ContextMenuContent = _ref3 => {
3657
+ var {
3658
+ items,
3659
+ position,
3660
+ side = 'right',
3661
+ align = 'start',
3662
+ views
3663
+ } = _ref3,
3664
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded2$2);
3665
+ var {
3666
+ isOpen,
3667
+ position: contextPosition,
3668
+ // activeSubmenuId,
3669
+ // setActiveSubmenuId,
3670
+ // size,
3671
+ variant
3672
+ } = useContextMenuContext();
3673
+ var menuRef = React.useRef(null);
3674
+ var [menuPosition, setMenuPosition] = React.useState({
3675
+ x: 0,
3676
+ y: 0
3677
+ });
3678
+ // Calculate the position of the menu
3679
+ React.useEffect(() => {
3680
+ if (isOpen && menuRef.current) {
3681
+ var menuWidth = menuRef.current.offsetWidth;
3682
+ var menuHeight = menuRef.current.offsetHeight;
3683
+ var windowWidth = window.innerWidth;
3684
+ var windowHeight = window.innerHeight;
3685
+ var pos = position || contextPosition;
3686
+ var calculatedPosition = calculateMenuPosition(pos.x, pos.y, menuWidth, menuHeight, windowWidth, windowHeight, side, align);
3687
+ setMenuPosition(calculatedPosition);
3688
+ }
3689
+ }, [isOpen, contextPosition, position, side, align]);
3690
+ if (!isOpen) {
3691
+ return null;
3692
+ }
3693
+ return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
3694
+ id: "context-menu",
3695
+ ref: menuRef,
3696
+ position: "fixed",
3697
+ top: menuPosition.y,
3698
+ left: menuPosition.x,
3699
+ zIndex: 1000,
3700
+ borderRadius: 4,
3701
+ boxShadow: "0px 2px 8px rgba(0, 0, 0, 0.15)",
3702
+ overflow: "hidden"
3703
+ }, ContextMenuVariants[variant], views == null ? void 0 : views.menu, props), items.map((item, index) => {
3704
+ if (item.divider) {
3705
+ return /*#__PURE__*/React__default.createElement(ContextMenuDivider, {
3706
+ key: "divider-" + index,
3707
+ views: views
3708
+ });
3709
+ }
3710
+ return /*#__PURE__*/React__default.createElement(ContextMenuItem, {
3711
+ key: item.id,
3712
+ item: item,
3713
+ views: views
3714
+ });
3715
+ }));
3716
+ };
3717
+ // ContextMenu Item component
3718
+ var ContextMenuItem = _ref4 => {
3719
+ var {
3720
+ item,
3721
+ views
3722
+ } = _ref4,
3723
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded3$2);
3724
+ var {
3725
+ activeSubmenuId,
3726
+ setActiveSubmenuId,
3727
+ size
3728
+ } = useContextMenuContext();
3729
+ var [isHovered, setIsHovered] = React.useState(false);
3730
+ var hasSubmenu = item.items && item.items.length > 0;
3731
+ var isSubmenuActive = activeSubmenuId === item.id;
3732
+ var itemRef = React.useRef(null);
3733
+ var [submenuPosition, setSubmenuPosition] = React.useState({
3734
+ x: 0,
3735
+ y: 0
3736
+ });
3737
+ // Handle mouse enter event
3738
+ var handleMouseEnter = () => {
3739
+ setIsHovered(true);
3740
+ if (hasSubmenu) {
3741
+ setActiveSubmenuId(item.id);
3742
+ }
3743
+ };
3744
+ // Handle mouse leave event
3745
+ var handleMouseLeave = () => {
3746
+ setIsHovered(false);
3747
+ };
3748
+ // Handle click event
3749
+ var handleClick = () => {
3750
+ if (item.disabled) return;
3751
+ if (!hasSubmenu && item.onClick) {
3752
+ item.onClick();
3753
+ }
3754
+ };
3755
+ // Calculate the position of the submenu
3756
+ React.useEffect(() => {
3757
+ if (isSubmenuActive && itemRef.current) {
3758
+ var rect = itemRef.current.getBoundingClientRect();
3759
+ setSubmenuPosition({
3760
+ x: rect.right,
3761
+ y: rect.top
3762
+ });
3763
+ }
3764
+ }, [isSubmenuActive]);
3765
+ return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
3766
+ ref: itemRef,
3767
+ display: "flex",
3768
+ alignItems: "center",
3769
+ cursor: item.disabled ? 'not-allowed' : 'pointer',
3770
+ opacity: item.disabled ? 0.5 : 1,
3771
+ position: "relative"
3772
+ }, ContextMenuSizes[size], {
3773
+ _hover: !item.disabled ? ContextMenuItemStates.hover : {},
3774
+ backgroundColor: isHovered && !item.disabled ? 'color.gray.100' : 'transparent',
3775
+ onMouseEnter: handleMouseEnter,
3776
+ onMouseLeave: handleMouseLeave,
3777
+ onClick: handleClick
3778
+ }, views == null ? void 0 : views.item, props), item.icon && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
3779
+ marginRight: 8
3780
+ }, views == null ? void 0 : views.icon), item.icon)), /*#__PURE__*/React__default.createElement(appStudio.View, {
3781
+ flexGrow: 1
3782
+ }, item.label), hasSubmenu && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
3783
+ marginLeft: 8
3784
+ }, views == null ? void 0 : views.submenuIndicator), /*#__PURE__*/React__default.createElement("svg", {
3785
+ width: "16",
3786
+ height: "16",
3787
+ viewBox: "0 0 24 24",
3788
+ fill: "none",
3789
+ xmlns: "http://www.w3.org/2000/svg"
3790
+ }, /*#__PURE__*/React__default.createElement("path", {
3791
+ d: "M8.59 16.59L13.17 12L8.59 7.41L10 6L16 12L10 18L8.59 16.59Z",
3792
+ fill: "currentColor"
3793
+ })))), isSubmenuActive && hasSubmenu && (/*#__PURE__*/React__default.createElement(ContextMenuContent, {
3794
+ items: item.items || [],
3795
+ position: submenuPosition,
3796
+ side: "right",
3797
+ align: "start",
3798
+ views: views
3799
+ })));
3800
+ };
3801
+ // ContextMenu Divider component
3802
+ var ContextMenuDivider = _ref5 => {
3803
+ var {
3804
+ views
3805
+ } = _ref5,
3806
+ props = _objectWithoutPropertiesLoose(_ref5, _excluded4$2);
3807
+ return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
3808
+ height: "1px",
3809
+ backgroundColor: "color.gray.200",
3810
+ margin: "4px 0"
3811
+ }, views == null ? void 0 : views.divider, props));
3812
+ };
3813
+ // Main ContextMenu View component
3814
+ var ContextMenuView = _ref6 => {
3815
+ var {
3816
+ children,
3817
+ items,
3818
+ disableNativeContextMenu = true,
3819
+ views
3820
+ } = _ref6,
3821
+ props = _objectWithoutPropertiesLoose(_ref6, _excluded5$1);
3822
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(ContextMenuTrigger, Object.assign({
3823
+ disableNativeContextMenu: disableNativeContextMenu,
3824
+ views: views
3825
+ }, props), children), /*#__PURE__*/React__default.createElement(ContextMenuContent, {
3826
+ items: items,
3827
+ views: views
3828
+ }));
3829
+ };
3830
+
3831
+ var _excluded$b = ["children", "items", "size", "variant", "disableNativeContextMenu", "views"];
3832
+ /**
3833
+ * ContextMenu component for displaying a custom context menu on right-click.
3834
+ */
3835
+ var ContextMenuComponent = _ref => {
3836
+ var {
3837
+ children,
3838
+ items,
3839
+ size = 'md',
3840
+ variant = 'default',
3841
+ disableNativeContextMenu = true,
3842
+ views
3843
+ } = _ref,
3844
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
3845
+ var {
3846
+ isOpen,
3847
+ setIsOpen,
3848
+ position,
3849
+ setPosition,
3850
+ activeSubmenuId,
3851
+ setActiveSubmenuId
3852
+ } = useContextMenuState();
3853
+ return /*#__PURE__*/React__default.createElement(ContextMenuProvider, {
3854
+ value: {
3855
+ isOpen,
3856
+ setIsOpen,
3857
+ position,
3858
+ setPosition,
3859
+ activeSubmenuId,
3860
+ setActiveSubmenuId,
3861
+ size,
3862
+ variant
3863
+ }
3864
+ }, /*#__PURE__*/React__default.createElement(ContextMenuView, Object.assign({
3865
+ items: items,
3866
+ size: size,
3867
+ variant: variant,
3868
+ disableNativeContextMenu: disableNativeContextMenu,
3869
+ views: views
3870
+ }, props), children));
3871
+ };
3872
+ var ContextMenu = ContextMenuComponent;
3873
+ // Assign the sub-components to the main component
3874
+ ContextMenu.Trigger = ContextMenuTrigger;
3875
+ ContextMenu.Content = ContextMenuContent;
3876
+ ContextMenu.Item = ContextMenuItem;
3877
+ ContextMenu.Divider = ContextMenuDivider;
3878
+
3879
+ var _excluded$c = ["src", "color", "views", "themeMode"],
3880
+ _excluded2$3 = ["path"];
3881
+ var FileSVG = _ref => {
3882
+ var {
3883
+ src,
3884
+ color,
3885
+ views
3886
+ } = _ref,
3887
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
3888
+ var {
3889
+ getColor,
3890
+ themeMode
3891
+ } = appStudio.useTheme();
3892
+ var Colorprops = color ? {
3893
+ fill: getColor(color, {
3894
+ themeMode
3895
+ }),
3896
+ stroke: getColor(color, {
3897
+ themeMode
3898
+ })
3899
+ } : {};
3900
+ return /*#__PURE__*/React__default.createElement(Center, Object.assign({}, props, views == null ? void 0 : views.container), /*#__PURE__*/React__default.createElement(appStudio.Image, Object.assign({}, Colorprops, {
3901
+ content: 'url("' + src + '")',
3902
+ width: "100%",
3903
+ height: "100%"
3904
+ }, views == null ? void 0 : views.image)));
3905
+ };
3906
+ var FileImage = _ref2 => {
3907
+ var {
3908
+ path
3909
+ } = _ref2,
3910
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded2$3);
3911
+ return /*#__PURE__*/React__default.createElement(appStudio.Image, Object.assign({
3912
+ src: path
3913
+ }, props));
3214
3914
  };
3215
3915
 
3216
3916
  // Initializes the custom hook 'useSelectState' for managing the state of the Select component
@@ -3258,7 +3958,7 @@
3258
3958
  };
3259
3959
  };
3260
3960
 
3261
- var _excluded$b = ["children", "views"];
3961
+ var _excluded$d = ["children", "views"];
3262
3962
  var HelperText = _ref => {
3263
3963
  var {
3264
3964
  children,
@@ -3266,7 +3966,7 @@
3266
3966
  helperText: {}
3267
3967
  }
3268
3968
  } = _ref,
3269
- props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
3969
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
3270
3970
  return /*#__PURE__*/React__default.createElement(Text, Object.assign({
3271
3971
  size: "xs",
3272
3972
  marginVertical: 0,
@@ -3275,7 +3975,7 @@
3275
3975
  }, views['helperText'], props), children);
3276
3976
  };
3277
3977
 
3278
- var _excluded$c = ["children", "helperText", "error", "views"];
3978
+ var _excluded$e = ["children", "helperText", "error", "views"];
3279
3979
  var FieldContainer = _ref => {
3280
3980
  var {
3281
3981
  children,
@@ -3283,7 +3983,7 @@
3283
3983
  error = false,
3284
3984
  views
3285
3985
  } = _ref,
3286
- props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
3986
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
3287
3987
  return /*#__PURE__*/React__default.createElement(Vertical, Object.assign({
3288
3988
  gap: 5,
3289
3989
  position: "relative"
@@ -3342,7 +4042,7 @@
3342
4042
  paddingRight: 16
3343
4043
  };
3344
4044
 
3345
- var _excluded$d = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "isWithLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "views"];
4045
+ var _excluded$f = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "isWithLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "views"];
3346
4046
  var FieldContent = _ref => {
3347
4047
  var {
3348
4048
  shadow,
@@ -3360,7 +4060,7 @@
3360
4060
  pickerBox: {}
3361
4061
  }
3362
4062
  } = _ref,
3363
- props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
4063
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
3364
4064
  var isInteractive = (isHovered || isFocused) && !isDisabled;
3365
4065
  var color = error ? 'error' : isInteractive ? 'theme.primary' : 'midgray';
3366
4066
  return /*#__PURE__*/React__default.createElement(Horizontal, Object.assign({
@@ -3381,12 +4081,12 @@
3381
4081
  }, isWithLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant], views['box'], props), children);
3382
4082
  };
3383
4083
 
3384
- var _excluded$e = ["children"];
4084
+ var _excluded$g = ["children"];
3385
4085
  var FieldIcons = _ref => {
3386
4086
  var {
3387
4087
  children
3388
4088
  } = _ref,
3389
- props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
4089
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
3390
4090
  return /*#__PURE__*/React__default.createElement(Center, Object.assign({
3391
4091
  gap: 10,
3392
4092
  right: 16,
@@ -3438,7 +4138,7 @@
3438
4138
  }
3439
4139
  };
3440
4140
 
3441
- var _excluded$f = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
4141
+ var _excluded$h = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
3442
4142
  var LabelView = _ref => {
3443
4143
  var {
3444
4144
  children,
@@ -3454,7 +4154,7 @@
3454
4154
  size = 'sm'
3455
4155
  // The fontSize prop for the Element is determined by the 'size' prop passed to LabelView.
3456
4156
  } = _ref,
3457
- props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
4157
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
3458
4158
  // The fontStyle prop toggles between 'italic' and 'normal' based on the 'isItalic' boolean prop.
3459
4159
  var headingStyles = heading ? HeadingSizes$1[heading] : {};
3460
4160
  // fontWeight is derived from the Typography module, ensuring consistent font weighting across the app.
@@ -3486,7 +4186,7 @@
3486
4186
  var Label = LabelComponent;
3487
4187
  // Export the 'LabelComponent' as 'Label' to be reused throughout the project.
3488
4188
 
3489
- var _excluded$g = ["children", "size", "error", "color", "views", "helperText"];
4189
+ var _excluded$i = ["children", "size", "error", "color", "views", "helperText"];
3490
4190
  var FieldLabel = _ref => {
3491
4191
  var {
3492
4192
  children,
@@ -3497,7 +4197,7 @@
3497
4197
  label: {}
3498
4198
  }
3499
4199
  } = _ref,
3500
- props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
4200
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
3501
4201
  return /*#__PURE__*/React__default.createElement(Label, Object.assign({
3502
4202
  top: 6,
3503
4203
  zIndex: 1000,
@@ -3510,12 +4210,12 @@
3510
4210
  }, views['label'], props), children);
3511
4211
  };
3512
4212
 
3513
- var _excluded$h = ["children"];
4213
+ var _excluded$j = ["children"];
3514
4214
  var FieldWrapper = _ref => {
3515
4215
  var {
3516
4216
  children
3517
4217
  } = _ref,
3518
- props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
4218
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
3519
4219
  return /*#__PURE__*/React__default.createElement(Vertical, Object.assign({
3520
4220
  width: "100%",
3521
4221
  maxWidth: '100%'
@@ -3532,10 +4232,10 @@
3532
4232
  xl: 16
3533
4233
  };
3534
4234
 
3535
- var _excluded$i = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
3536
- _excluded2$3 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
3537
- _excluded3$2 = ["option", "size", "removeOption"],
3538
- _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"];
4235
+ var _excluded$k = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
4236
+ _excluded2$4 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
4237
+ _excluded3$3 = ["option", "size", "removeOption"],
4238
+ _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"];
3539
4239
  // Defines a component to render individual selection items within a list.
3540
4240
  var Item = _ref => {
3541
4241
  var {
@@ -3546,7 +4246,7 @@
3546
4246
  callback = () => {},
3547
4247
  style
3548
4248
  } = _ref,
3549
- props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
4249
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
3550
4250
  // Handles the click event on an option by invoking the callback with the selected option's value.
3551
4251
  var handleOptionClick = option => callback(option);
3552
4252
  // Toggles the hover state on the item.
@@ -3616,7 +4316,7 @@
3616
4316
  isReadOnly = false,
3617
4317
  options = []
3618
4318
  } = _ref4,
3619
- props = _objectWithoutPropertiesLoose(_ref4, _excluded2$3);
4319
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded2$4);
3620
4320
  var handleChange = event => {
3621
4321
  if (onChange) onChange(event);
3622
4322
  };
@@ -3706,7 +4406,7 @@
3706
4406
  size = 'md',
3707
4407
  removeOption = () => {}
3708
4408
  } = _ref6,
3709
- props = _objectWithoutPropertiesLoose(_ref6, _excluded3$2);
4409
+ props = _objectWithoutPropertiesLoose(_ref6, _excluded3$3);
3710
4410
  var handleClick = () => removeOption(option);
3711
4411
  return /*#__PURE__*/React__default.createElement(Horizontal, Object.assign({
3712
4412
  gap: 10,
@@ -3761,7 +4461,7 @@
3761
4461
  setHighlightedIndex,
3762
4462
  highlightedIndex
3763
4463
  } = _ref7,
3764
- props = _objectWithoutPropertiesLoose(_ref7, _excluded4$2);
4464
+ props = _objectWithoutPropertiesLoose(_ref7, _excluded4$3);
3765
4465
  var isWithLabel = !!(isFocused && label);
3766
4466
  var handleHover = () => setIsHovered(!isHovered);
3767
4467
  var handleFocus = () => setIsFocused(true);
@@ -4006,7 +4706,7 @@
4006
4706
  }
4007
4707
  };
4008
4708
 
4009
- var _excluded$j = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "value", "isHovered", "isDisabled", "isReadOnly", "on", "setOn", "onChange", "setValue", "setIsHovered", "helperText", "views"];
4709
+ var _excluded$l = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "value", "isHovered", "isDisabled", "isReadOnly", "on", "setOn", "onChange", "setValue", "setIsHovered", "helperText", "views"];
4010
4710
  var SwitchContent = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
4011
4711
  type: "checkbox"
4012
4712
  }, props));
@@ -4035,7 +4735,7 @@
4035
4735
  label: {}
4036
4736
  }
4037
4737
  } = _ref,
4038
- props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
4738
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
4039
4739
  var handleToggle = event => {
4040
4740
  if (!isReadOnly) {
4041
4741
  setValue(!value);
@@ -4125,7 +4825,7 @@
4125
4825
  // Export of the useTextAreaState hook for external usage.
4126
4826
  };
4127
4827
 
4128
- 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"];
4828
+ 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"];
4129
4829
  var TextAreaView = _ref => {
4130
4830
  var {
4131
4831
  id,
@@ -4164,7 +4864,7 @@
4164
4864
  field: {}
4165
4865
  }
4166
4866
  } = _ref,
4167
- props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
4867
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
4168
4868
  var isWithLabel = !!(isFocused && label);
4169
4869
  var fieldStyles = Object.assign({
4170
4870
  margin: 0,
@@ -4293,7 +4993,7 @@
4293
4993
  };
4294
4994
  };
4295
4995
 
4296
- 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"];
4996
+ 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"];
4297
4997
  var TextFieldInput = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
4298
4998
  type: "text"
4299
4999
  }, props));
@@ -4336,7 +5036,7 @@
4336
5036
  onBlur = () => {},
4337
5037
  themeMode: elementMode
4338
5038
  } = _ref,
4339
- props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
5039
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
4340
5040
  var {
4341
5041
  getColor,
4342
5042
  themeMode
@@ -4517,7 +5217,7 @@
4517
5217
  '6xl': 60
4518
5218
  };
4519
5219
 
4520
- 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"];
5220
+ 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"];
4521
5221
  var CheckboxView = _ref => {
4522
5222
  var {
4523
5223
  id,
@@ -4544,7 +5244,7 @@
4544
5244
  },
4545
5245
  infoText
4546
5246
  } = _ref,
4547
- props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
5247
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
4548
5248
  var handleHover = () => setIsHovered(!isHovered);
4549
5249
  var handleChange = () => {
4550
5250
  if (!isReadOnly && !isDisabled) {
@@ -6108,11 +6808,11 @@
6108
6808
  xl: 16
6109
6809
  };
6110
6810
 
6111
- var _excluded$n = ["size"],
6112
- _excluded2$4 = ["size"],
6113
- _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"];
6811
+ var _excluded$p = ["size"],
6812
+ _excluded2$5 = ["size"],
6813
+ _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"];
6114
6814
  var CountryList = _ref => {
6115
- var props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
6815
+ var props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
6116
6816
  return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
6117
6817
  as: "ul"
6118
6818
  }, props));
@@ -6121,7 +6821,7 @@
6121
6821
  type: "country"
6122
6822
  }, props)));
6123
6823
  var CountryItem = _ref2 => {
6124
- var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$4);
6824
+ var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$5);
6125
6825
  return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
6126
6826
  as: "li"
6127
6827
  }, props));
@@ -6224,7 +6924,7 @@
6224
6924
  },
6225
6925
  themeMode: elementMode
6226
6926
  } = _ref5,
6227
- props = _objectWithoutPropertiesLoose(_ref5, _excluded3$3);
6927
+ props = _objectWithoutPropertiesLoose(_ref5, _excluded3$4);
6228
6928
  var {
6229
6929
  getColor,
6230
6930
  themeMode
@@ -6351,7 +7051,7 @@
6351
7051
  };
6352
7052
  };
6353
7053
 
6354
- 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"];
7054
+ 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"];
6355
7055
  var DatePickerContent = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
6356
7056
  type: "date"
6357
7057
  }, props));
@@ -6384,7 +7084,7 @@
6384
7084
  onChange,
6385
7085
  onChangeText
6386
7086
  } = _ref,
6387
- props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
7087
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
6388
7088
  var isWithLabel = !!(isFocused && label);
6389
7089
  var handleHover = () => setIsHovered(!isHovered);
6390
7090
  var handleFocus = () => setIsFocused(true);
@@ -6471,8 +7171,8 @@
6471
7171
  }, props, textFieldStates);
6472
7172
  };
6473
7173
 
6474
- var _excluded$p = ["visibleIcon", "hiddenIcon"],
6475
- _excluded2$5 = ["isVisible", "setIsVisible"];
7174
+ var _excluded$r = ["visibleIcon", "hiddenIcon"],
7175
+ _excluded2$6 = ["isVisible", "setIsVisible"];
6476
7176
  var PasswordComponent = _ref => {
6477
7177
  var {
6478
7178
  visibleIcon = /*#__PURE__*/React__default.createElement(OpenEyeIcon, {
@@ -6482,13 +7182,13 @@
6482
7182
  widthHeight: 14
6483
7183
  })
6484
7184
  } = _ref,
6485
- props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
7185
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
6486
7186
  var _usePasswordState = usePasswordState(props),
6487
7187
  {
6488
7188
  isVisible,
6489
7189
  setIsVisible
6490
7190
  } = _usePasswordState,
6491
- passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$5);
7191
+ passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$6);
6492
7192
  return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, passwordProps, {
6493
7193
  type: isVisible ? 'text' : 'password',
6494
7194
  isClearable: false,
@@ -6536,7 +7236,7 @@
6536
7236
  };
6537
7237
  };
6538
7238
 
6539
- var _excluded$q = ["placeholder", "items", "showTick", "onSelect", "searchEnabled", "left", "right", "label", "filteredItems", "setSelectedItem", "selectedItem", "highlightedIndex", "setHighlightedIndex", "searchQuery", "setSearchQuery", "setFilteredItems", "views", "isDropdownVisible", "setIsDropdownVisible"];
7239
+ var _excluded$s = ["placeholder", "items", "showTick", "onSelect", "searchEnabled", "left", "right", "label", "filteredItems", "setSelectedItem", "selectedItem", "highlightedIndex", "setHighlightedIndex", "searchQuery", "setSearchQuery", "setFilteredItems", "views", "isDropdownVisible", "setIsDropdownVisible"];
6540
7240
  // Defines the functional component 'ComboBoxView' with destructured props.
6541
7241
  var ComboBoxView = _ref => {
6542
7242
  var {
@@ -6561,7 +7261,7 @@
6561
7261
  setIsDropdownVisible
6562
7262
  // Collects all further props not destructured explicitly.
6563
7263
  } = _ref,
6564
- props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
7264
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
6565
7265
  // Sets up an effect to handle clicking outside the dropdown to close it.
6566
7266
  React.useEffect(() => {
6567
7267
  var handleClickOutside = event => {
@@ -6672,7 +7372,7 @@
6672
7372
  }))))))))))));
6673
7373
  };
6674
7374
 
6675
- var _excluded$r = ["id", "name", "items", "placeholder", "searchPlaceholder"];
7375
+ var _excluded$t = ["id", "name", "items", "placeholder", "searchPlaceholder"];
6676
7376
  // Defines the ComboBoxComponent functional component with ComboBoxProps
6677
7377
  var ComboBoxComponent = _ref => {
6678
7378
  var {
@@ -6688,7 +7388,7 @@
6688
7388
  searchPlaceholder
6689
7389
  // Destructures the rest of the props not explicitly defined
6690
7390
  } = _ref,
6691
- props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
7391
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
6692
7392
  // Initializes ComboBox state using custom hook with items and placeholders
6693
7393
  var state = useComboBoxState(items, placeholder, searchPlaceholder);
6694
7394
  return (
@@ -6704,7 +7404,7 @@
6704
7404
  // Exports the ComboBoxComponent as ComboBox
6705
7405
  var ComboBox = ComboBoxComponent;
6706
7406
 
6707
- var _excluded$s = ["children", "autoFocus", "initFocus", "onChange"];
7407
+ var _excluded$u = ["children", "autoFocus", "initFocus", "onChange"];
6708
7408
  var FocusContext = /*#__PURE__*/React.createContext({
6709
7409
  active: false,
6710
7410
  focusNextInput: () => {},
@@ -6720,7 +7420,7 @@
6720
7420
  initFocus,
6721
7421
  onChange = () => {}
6722
7422
  } = _ref,
6723
- props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
7423
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
6724
7424
  var formik$1 = formik.useFormikContext();
6725
7425
  React.useEffect(() => {
6726
7426
  onChange(formik$1.values);
@@ -6768,7 +7468,7 @@
6768
7468
  }, /*#__PURE__*/React__default.createElement(appStudio.Form, Object.assign({}, props), children));
6769
7469
  };
6770
7470
 
6771
- var _excluded$t = ["name", "type"];
7471
+ var _excluded$v = ["name", "type"];
6772
7472
  var getInputTypeProps = type => {
6773
7473
  switch (type) {
6774
7474
  case 'email':
@@ -6807,7 +7507,7 @@
6807
7507
  name,
6808
7508
  type
6809
7509
  } = _ref,
6810
- props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
7510
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
6811
7511
  var focus = useFormFocus();
6812
7512
  var {
6813
7513
  touched,
@@ -6851,13 +7551,13 @@
6851
7551
  } : {});
6852
7552
  };
6853
7553
 
6854
- var _excluded$u = ["value"];
7554
+ var _excluded$w = ["value"];
6855
7555
  var CheckboxComponent$1 = props => {
6856
7556
  var _useFormikInput = useFormikInput(props),
6857
7557
  {
6858
7558
  value
6859
7559
  } = _useFormikInput,
6860
- formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$u);
7560
+ formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$w);
6861
7561
  formProps.isChecked = value;
6862
7562
  var checkboxStates = useCheckboxState(props);
6863
7563
  return /*#__PURE__*/React__default.createElement(CheckboxView, Object.assign({}, checkboxStates, formProps));
@@ -6915,11 +7615,11 @@
6915
7615
  */
6916
7616
  var FormikTextArea = TextAreaComponent$1;
6917
7617
 
6918
- var _excluded$v = ["value"];
7618
+ var _excluded$x = ["value"];
6919
7619
  var TextFieldComponent$1 = props => {
6920
7620
  var formProps = useFormikInput(props);
6921
7621
  var _useTextFieldState = useTextFieldState(props),
6922
- textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$v);
7622
+ textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$x);
6923
7623
  return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, textFieldStates, formProps));
6924
7624
  };
6925
7625
  /**
@@ -6927,8 +7627,8 @@
6927
7627
  */
6928
7628
  var FormikTextField = TextFieldComponent$1;
6929
7629
 
6930
- var _excluded$w = ["visibleIcon", "hiddenIcon"],
6931
- _excluded2$6 = ["isVisible", "setIsVisible"];
7630
+ var _excluded$y = ["visibleIcon", "hiddenIcon"],
7631
+ _excluded2$7 = ["isVisible", "setIsVisible"];
6932
7632
  var PasswordComponent$1 = _ref => {
6933
7633
  var {
6934
7634
  visibleIcon = /*#__PURE__*/React__default.createElement(OpenEyeIcon, {
@@ -6938,14 +7638,14 @@
6938
7638
  widthHeight: 14
6939
7639
  })
6940
7640
  } = _ref,
6941
- props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
7641
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
6942
7642
  var formProps = useFormikInput(props);
6943
7643
  var _usePasswordState = usePasswordState(formProps),
6944
7644
  {
6945
7645
  isVisible,
6946
7646
  setIsVisible
6947
7647
  } = _usePasswordState,
6948
- passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$6);
7648
+ passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$7);
6949
7649
  return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, passwordProps, {
6950
7650
  type: isVisible ? 'text' : 'password',
6951
7651
  isClearable: false,
@@ -6963,14 +7663,14 @@
6963
7663
  */
6964
7664
  var FormikPassword = PasswordComponent$1;
6965
7665
 
6966
- var _excluded$x = ["items", "placeholder", "searchPlaceholder"];
7666
+ var _excluded$z = ["items", "placeholder", "searchPlaceholder"];
6967
7667
  var ComboBoxComponent$1 = _ref => {
6968
7668
  var {
6969
7669
  items,
6970
7670
  placeholder,
6971
7671
  searchPlaceholder
6972
7672
  } = _ref,
6973
- props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
7673
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
6974
7674
  var formProps = useFormikInput(props);
6975
7675
  var ComboBoxStates = useComboBoxState(items, placeholder, searchPlaceholder);
6976
7676
  // Ensure the onChange function from formProps is being called when an item is selected
@@ -7246,7 +7946,7 @@
7246
7946
  }
7247
7947
  };
7248
7948
 
7249
- 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"];
7949
+ 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"];
7250
7950
  var SliderView = _ref => {
7251
7951
  var _views$tooltip, _views$tooltip2;
7252
7952
  var {
@@ -7289,7 +7989,7 @@
7289
7989
  tooltip: {}
7290
7990
  }
7291
7991
  } = _ref,
7292
- props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
7992
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
7293
7993
  var {
7294
7994
  getColor,
7295
7995
  themeMode
@@ -7510,6 +8210,28 @@
7510
8210
  };
7511
8211
 
7512
8212
  var SliderComponent = props => {
8213
+ // Get Formik props (value, onChange, etc.)
8214
+ var formProps = useFormikInput(props);
8215
+ // Get slider state and handlers
8216
+ var sliderState = useSliderState(Object.assign({}, props, {
8217
+ value: formProps.value !== undefined ? Number(formProps.value) : undefined,
8218
+ onChange: value => {
8219
+ // Call Formik's onChange
8220
+ formProps.onChange(value);
8221
+ // Call the original onChange if provided
8222
+ props.onChange == null || props.onChange(value);
8223
+ }
8224
+ }));
8225
+ // Render the slider with both Formik props and slider state
8226
+ return /*#__PURE__*/React__default.createElement(SliderView, Object.assign({}, props, sliderState, formProps));
8227
+ };
8228
+ /**
8229
+ * Slider component integrated with Formik for form state management.
8230
+ * Allows users to select a value from a range by moving a handle.
8231
+ */
8232
+ var FormikSlider = SliderComponent;
8233
+
8234
+ var SliderComponent$1 = props => {
7513
8235
  // Get state and handlers from the custom hook
7514
8236
  var sliderState = useSliderState(props);
7515
8237
  // Render the view component, passing down props and state
@@ -7518,7 +8240,7 @@
7518
8240
  /**
7519
8241
  * Slider allows users to select a value from a range by moving a handle.
7520
8242
  */
7521
- var Slider = SliderComponent;
8243
+ var Slider = SliderComponent$1;
7522
8244
 
7523
8245
  // Create your store with the initial state and actions.
7524
8246
  var useMessageStore = /*#__PURE__*/zustand.create(set => ({
@@ -8052,7 +8774,7 @@
8052
8774
  }, views == null ? void 0 : views.view)));
8053
8775
  };
8054
8776
 
8055
- var _excluded$z = ["accept", "icon", "text", "maxSize", "onFileSelect", "validateFile", "isLoading", "progress"];
8777
+ var _excluded$B = ["accept", "icon", "text", "maxSize", "onFileSelect", "validateFile", "isLoading", "progress"];
8056
8778
  var Uploader = _ref => {
8057
8779
  var {
8058
8780
  accept = '*/*',
@@ -8064,7 +8786,7 @@
8064
8786
  isLoading = false,
8065
8787
  progress = 0
8066
8788
  } = _ref,
8067
- props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
8789
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
8068
8790
  var {
8069
8791
  previewUrl,
8070
8792
  thumbnailUrl,
@@ -8201,11 +8923,11 @@
8201
8923
  xl: 28
8202
8924
  };
8203
8925
 
8204
- var _excluded$A = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
8205
- _excluded2$7 = ["children", "shadow", "isFullScreen", "shape", "views"],
8206
- _excluded3$4 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
8207
- _excluded4$3 = ["children", "views"],
8208
- _excluded5$1 = ["children", "views"];
8926
+ var _excluded$C = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
8927
+ _excluded2$8 = ["children", "shadow", "isFullScreen", "shape", "views"],
8928
+ _excluded3$5 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
8929
+ _excluded4$4 = ["children", "views"],
8930
+ _excluded5$2 = ["children", "views"];
8209
8931
  var ModalOverlay = _ref => {
8210
8932
  var {
8211
8933
  children,
@@ -8216,7 +8938,7 @@
8216
8938
  position = 'center',
8217
8939
  views
8218
8940
  } = _ref,
8219
- props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
8941
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$C);
8220
8942
  var handleClick = () => {
8221
8943
  if (!isClosePrevented) onClose();
8222
8944
  };
@@ -8250,7 +8972,7 @@
8250
8972
  shape = 'rounded',
8251
8973
  views
8252
8974
  } = _ref2,
8253
- props = _objectWithoutPropertiesLoose(_ref2, _excluded2$7);
8975
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded2$8);
8254
8976
  var defaultShadow = typeof document !== undefined ? {
8255
8977
  boxShadow: '0px 2px 8px rgba(0, 0, 0, 0.3)'
8256
8978
  } : {
@@ -8282,7 +9004,7 @@
8282
9004
  buttonPosition = 'right',
8283
9005
  views
8284
9006
  } = _ref3,
8285
- props = _objectWithoutPropertiesLoose(_ref3, _excluded3$4);
9007
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded3$5);
8286
9008
  var onClose = props.onClose ? props.onClose : hideModal;
8287
9009
  var buttonIcon = /*#__PURE__*/React__default.createElement(Button, {
8288
9010
  onClick: onClose,
@@ -8307,7 +9029,7 @@
8307
9029
  children,
8308
9030
  views
8309
9031
  } = _ref4,
8310
- props = _objectWithoutPropertiesLoose(_ref4, _excluded4$3);
9032
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded4$4);
8311
9033
  var defaultBorder = {
8312
9034
  borderBottomWidth: 2,
8313
9035
  borderTopWidth: 2,
@@ -8324,7 +9046,7 @@
8324
9046
  children,
8325
9047
  views
8326
9048
  } = _ref5,
8327
- props = _objectWithoutPropertiesLoose(_ref5, _excluded5$1);
9049
+ props = _objectWithoutPropertiesLoose(_ref5, _excluded5$2);
8328
9050
  return /*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
8329
9051
  marginTop: "auto",
8330
9052
  alignItems: "center",
@@ -8386,6 +9108,344 @@
8386
9108
  Modal.Footer = ModalFooter;
8387
9109
  Modal.Layout = ModalLayout;
8388
9110
 
9111
+ var useNavigationMenuState = function useNavigationMenuState(defaultActiveItemId, defaultExpandedItemIds) {
9112
+ if (defaultActiveItemId === void 0) {
9113
+ defaultActiveItemId = null;
9114
+ }
9115
+ if (defaultExpandedItemIds === void 0) {
9116
+ defaultExpandedItemIds = [];
9117
+ }
9118
+ var [activeItemId, setActiveItemId] = React.useState(defaultActiveItemId);
9119
+ var [expandedItemIds, setExpandedItemIds] = React.useState(defaultExpandedItemIds);
9120
+ var toggleExpandedItem = itemId => {
9121
+ setExpandedItemIds(prevExpandedItemIds => {
9122
+ // Check if the item is already expanded
9123
+ var isExpanded = prevExpandedItemIds.includes(itemId);
9124
+ if (isExpanded) {
9125
+ // If expanded, remove it from the list
9126
+ return prevExpandedItemIds.filter(id => id !== itemId);
9127
+ } else {
9128
+ // If not expanded, add it to the list
9129
+ return [...prevExpandedItemIds, itemId];
9130
+ }
9131
+ });
9132
+ };
9133
+ var isItemExpanded = itemId => {
9134
+ return expandedItemIds.includes(itemId);
9135
+ };
9136
+ return {
9137
+ activeItemId,
9138
+ setActiveItemId,
9139
+ expandedItemIds,
9140
+ toggleExpandedItem,
9141
+ isItemExpanded
9142
+ };
9143
+ };
9144
+
9145
+ var NavigationMenuSizes = {
9146
+ sm: {
9147
+ padding: '8px 12px',
9148
+ fontSize: '14px'
9149
+ },
9150
+ md: {
9151
+ padding: '10px 16px',
9152
+ fontSize: '16px'
9153
+ },
9154
+ lg: {
9155
+ padding: '12px 20px',
9156
+ fontSize: '18px'
9157
+ }
9158
+ };
9159
+ var NavigationMenuVariants = {
9160
+ default: {
9161
+ backgroundColor: 'transparent',
9162
+ color: 'color.gray.800'
9163
+ },
9164
+ filled: {
9165
+ backgroundColor: 'color.gray.100',
9166
+ color: 'color.gray.800'
9167
+ },
9168
+ outline: {
9169
+ backgroundColor: 'transparent',
9170
+ borderWidth: '1px',
9171
+ borderStyle: 'solid',
9172
+ borderColor: 'color.gray.200',
9173
+ color: 'color.gray.800'
9174
+ }
9175
+ };
9176
+ var NavigationMenuOrientations = {
9177
+ horizontal: {
9178
+ flexDirection: 'row'
9179
+ },
9180
+ vertical: {
9181
+ flexDirection: 'column'
9182
+ }
9183
+ };
9184
+ var NavigationMenuItemStates = {
9185
+ active: {
9186
+ backgroundColor: 'color.gray.200',
9187
+ fontWeight: 'bold'
9188
+ },
9189
+ hover: {
9190
+ backgroundColor: 'color.gray.100'
9191
+ },
9192
+ disabled: {
9193
+ opacity: 0.5,
9194
+ cursor: 'not-allowed'
9195
+ }
9196
+ };
9197
+
9198
+ // Create context for the NavigationMenu
9199
+ var NavigationMenuContext = /*#__PURE__*/React.createContext({
9200
+ activeItemId: null,
9201
+ setActiveItemId: () => {},
9202
+ expandedItemIds: [],
9203
+ toggleExpandedItem: () => {},
9204
+ isItemExpanded: () => false,
9205
+ orientation: 'vertical',
9206
+ size: 'md',
9207
+ variant: 'default'
9208
+ });
9209
+ // Provider component for the NavigationMenu context
9210
+ var NavigationMenuProvider = _ref => {
9211
+ var {
9212
+ children,
9213
+ value
9214
+ } = _ref;
9215
+ return /*#__PURE__*/React__default.createElement(NavigationMenuContext.Provider, {
9216
+ value: value
9217
+ }, children);
9218
+ };
9219
+ // Hook to use the NavigationMenu context
9220
+ var useNavigationMenuContext = () => {
9221
+ var context = React.useContext(NavigationMenuContext);
9222
+ if (!context) {
9223
+ throw new Error('useNavigationMenuContext must be used within a NavigationMenuProvider');
9224
+ }
9225
+ return context;
9226
+ };
9227
+ // NavigationMenu List component
9228
+ var NavigationMenuList = _ref2 => {
9229
+ var {
9230
+ children,
9231
+ views
9232
+ } = _ref2;
9233
+ var {
9234
+ orientation
9235
+ } = useNavigationMenuContext();
9236
+ var Container = orientation === 'horizontal' ? appStudio.Horizontal : appStudio.Vertical;
9237
+ return /*#__PURE__*/React__default.createElement(Container, Object.assign({
9238
+ width: "100%",
9239
+ gap: 2
9240
+ }, NavigationMenuOrientations[orientation], views == null ? void 0 : views.container), children);
9241
+ };
9242
+ // NavigationMenu Item component
9243
+ var NavigationMenuItem = _ref3 => {
9244
+ var {
9245
+ item,
9246
+ views
9247
+ } = _ref3;
9248
+ var {
9249
+ activeItemId,
9250
+ setActiveItemId,
9251
+ // isItemExpanded,
9252
+ orientation,
9253
+ size,
9254
+ variant,
9255
+ onItemActivate
9256
+ } = useNavigationMenuContext();
9257
+ var isActive = activeItemId === item.id;
9258
+ var hasSubItems = item.items && item.items.length > 0;
9259
+ // const isExpanded = hasSubItems && isItemExpanded(item.id);
9260
+ var handleClick = () => {
9261
+ if (item.disabled) return;
9262
+ setActiveItemId(item.id);
9263
+ if (onItemActivate) {
9264
+ onItemActivate(item.id);
9265
+ }
9266
+ };
9267
+ var Container = orientation === 'horizontal' ? appStudio.Horizontal : appStudio.Vertical;
9268
+ // Render item with sub-items
9269
+ if (hasSubItems) {
9270
+ var _item$items;
9271
+ return /*#__PURE__*/React__default.createElement(Container, Object.assign({
9272
+ width: "100%",
9273
+ flexDirection: orientation === 'horizontal' ? 'column' : 'column',
9274
+ position: "relative"
9275
+ }, views == null ? void 0 : views.item), /*#__PURE__*/React__default.createElement(NavigationMenuTrigger, {
9276
+ itemId: item.id,
9277
+ disabled: item.disabled,
9278
+ views: views
9279
+ }, item.icon && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
9280
+ marginRight: 8
9281
+ }, views == null ? void 0 : views.icon), item.icon)), item.label), /*#__PURE__*/React__default.createElement(NavigationMenuContent, {
9282
+ itemId: item.id
9283
+ }, /*#__PURE__*/React__default.createElement(NavigationMenuList, null, (_item$items = item.items) == null ? void 0 : _item$items.map(subItem => (/*#__PURE__*/React__default.createElement(NavigationMenuItem, {
9284
+ key: subItem.id,
9285
+ item: subItem
9286
+ }))))));
9287
+ }
9288
+ // Render regular item (no sub-items)
9289
+ return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
9290
+ as: item.href ? 'a' : 'div',
9291
+ to: item.href,
9292
+ onClick: handleClick,
9293
+ cursor: item.disabled ? 'not-allowed' : 'pointer',
9294
+ opacity: item.disabled ? 0.5 : 1,
9295
+ width: "100%",
9296
+ display: "flex",
9297
+ alignItems: "center",
9298
+ borderRadius: 4,
9299
+ transition: "background-color 0.2s ease"
9300
+ }, NavigationMenuSizes[size], NavigationMenuVariants[variant], isActive ? NavigationMenuItemStates.active : {}, {
9301
+ _hover: !item.disabled ? NavigationMenuItemStates.hover : {}
9302
+ }, views == null ? void 0 : views.item), item.icon && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
9303
+ marginRight: 8
9304
+ }, views == null ? void 0 : views.icon), item.icon)), item.label);
9305
+ };
9306
+ // NavigationMenu Trigger component
9307
+ var NavigationMenuTrigger = _ref4 => {
9308
+ var {
9309
+ children,
9310
+ itemId,
9311
+ disabled,
9312
+ views
9313
+ } = _ref4;
9314
+ var {
9315
+ activeItemId,
9316
+ toggleExpandedItem,
9317
+ isItemExpanded,
9318
+ size,
9319
+ variant
9320
+ } = useNavigationMenuContext();
9321
+ var isActive = activeItemId === itemId;
9322
+ var isExpanded = isItemExpanded(itemId);
9323
+ var handleClick = e => {
9324
+ e.preventDefault();
9325
+ if (disabled) return;
9326
+ toggleExpandedItem(itemId);
9327
+ };
9328
+ return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
9329
+ onClick: handleClick,
9330
+ cursor: disabled ? 'not-allowed' : 'pointer',
9331
+ opacity: disabled ? 0.5 : 1,
9332
+ width: "100%",
9333
+ display: "flex",
9334
+ alignItems: "center",
9335
+ justifyContent: "space-between",
9336
+ borderRadius: 4,
9337
+ transition: "background-color 0.2s ease"
9338
+ }, NavigationMenuSizes[size], NavigationMenuVariants[variant], isActive ? NavigationMenuItemStates.active : {}, {
9339
+ _hover: !disabled ? NavigationMenuItemStates.hover : {}
9340
+ }, views == null ? void 0 : views.trigger), /*#__PURE__*/React__default.createElement(appStudio.View, {
9341
+ display: "flex",
9342
+ alignItems: "center"
9343
+ }, children), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
9344
+ transition: "transform 0.2s ease",
9345
+ transform: isExpanded ? 'rotate(180deg)' : 'rotate(0deg)'
9346
+ }, views == null ? void 0 : views.indicator), /*#__PURE__*/React__default.createElement("svg", {
9347
+ width: "16",
9348
+ height: "16",
9349
+ viewBox: "0 0 24 24",
9350
+ fill: "none",
9351
+ xmlns: "http://www.w3.org/2000/svg"
9352
+ }, /*#__PURE__*/React__default.createElement("path", {
9353
+ d: "M16.59 8.59L12 13.17L7.41 8.59L6 10L12 16L18 10L16.59 8.59Z",
9354
+ fill: "currentColor"
9355
+ }))));
9356
+ };
9357
+ // NavigationMenu Content component
9358
+ var NavigationMenuContent = _ref5 => {
9359
+ var {
9360
+ children,
9361
+ itemId,
9362
+ views
9363
+ } = _ref5;
9364
+ var {
9365
+ isItemExpanded,
9366
+ orientation
9367
+ } = useNavigationMenuContext();
9368
+ var isExpanded = isItemExpanded(itemId);
9369
+ if (!isExpanded) {
9370
+ return null;
9371
+ }
9372
+ return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
9373
+ paddingLeft: orientation === 'vertical' ? 16 : 0,
9374
+ paddingTop: orientation === 'horizontal' ? 8 : 0,
9375
+ overflow: "hidden",
9376
+ width: "100%"
9377
+ }, views == null ? void 0 : views.container), children);
9378
+ };
9379
+ // Main NavigationMenu View component
9380
+ var NavigationMenuView = _ref6 => {
9381
+ var {
9382
+ items,
9383
+ orientation,
9384
+ //size, variant,
9385
+ views
9386
+ } = _ref6;
9387
+ var Container = orientation === 'horizontal' ? appStudio.Horizontal : appStudio.Vertical;
9388
+ return /*#__PURE__*/React__default.createElement(Container, Object.assign({
9389
+ width: "100%"
9390
+ }, NavigationMenuOrientations[orientation], views == null ? void 0 : views.container), /*#__PURE__*/React__default.createElement(NavigationMenuList, {
9391
+ views: views
9392
+ }, items.map(item => (/*#__PURE__*/React__default.createElement(NavigationMenuItem, {
9393
+ key: item.id,
9394
+ item: item,
9395
+ views: views
9396
+ })))));
9397
+ };
9398
+
9399
+ var _excluded$D = ["items", "orientation", "size", "variant", "defaultActiveItemId", "defaultExpandedItemIds", "onItemActivate", "views"];
9400
+ /**
9401
+ * NavigationMenu component for creating navigation menus with optional nested items.
9402
+ */
9403
+ var NavigationMenuComponent = _ref => {
9404
+ var {
9405
+ items,
9406
+ orientation = 'vertical',
9407
+ size = 'md',
9408
+ variant = 'default',
9409
+ defaultActiveItemId = null,
9410
+ defaultExpandedItemIds = [],
9411
+ onItemActivate,
9412
+ views
9413
+ } = _ref,
9414
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$D);
9415
+ var {
9416
+ activeItemId,
9417
+ setActiveItemId,
9418
+ expandedItemIds,
9419
+ toggleExpandedItem,
9420
+ isItemExpanded
9421
+ } = useNavigationMenuState(defaultActiveItemId, defaultExpandedItemIds);
9422
+ return /*#__PURE__*/React__default.createElement(NavigationMenuProvider, {
9423
+ value: {
9424
+ activeItemId,
9425
+ setActiveItemId,
9426
+ expandedItemIds,
9427
+ toggleExpandedItem,
9428
+ isItemExpanded,
9429
+ orientation,
9430
+ size,
9431
+ variant,
9432
+ onItemActivate
9433
+ }
9434
+ }, /*#__PURE__*/React__default.createElement(NavigationMenuView, Object.assign({
9435
+ items: items,
9436
+ orientation: orientation,
9437
+ size: size,
9438
+ variant: variant,
9439
+ views: views
9440
+ }, props)));
9441
+ };
9442
+ var NavigationMenu = NavigationMenuComponent;
9443
+ // Assign the sub-components to the main component
9444
+ NavigationMenu.List = NavigationMenuList;
9445
+ NavigationMenu.Item = NavigationMenuItem;
9446
+ NavigationMenu.Trigger = NavigationMenuTrigger;
9447
+ NavigationMenu.Content = NavigationMenuContent;
9448
+
8389
9449
  var defaultStyles = {};
8390
9450
  // Create a context that includes both styles and the onClick function
8391
9451
  var TableContext = /*#__PURE__*/React.createContext({
@@ -8695,7 +9755,7 @@
8695
9755
  };
8696
9756
  };
8697
9757
 
8698
- var _excluded$B = ["children", "shape", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle", "views"];
9758
+ var _excluded$E = ["children", "shape", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle", "views"];
8699
9759
  var ToggleView = _ref => {
8700
9760
  var {
8701
9761
  children,
@@ -8709,7 +9769,7 @@
8709
9769
  onToggle,
8710
9770
  views
8711
9771
  } = _ref,
8712
- props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
9772
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$E);
8713
9773
  var toggleColor = !isDisabled ? 'color.trueGray.400' : 'theme.disabled';
8714
9774
  var isActive = !!(isToggle || isHovered);
8715
9775
  var toggleVariants = {
@@ -8752,7 +9812,7 @@
8752
9812
  }, toggleVariants[variant], props, views == null ? void 0 : views.container), children);
8753
9813
  };
8754
9814
 
8755
- var _excluded$C = ["children", "shape", "variant", "isDisabled", "isToggled", "onToggle"];
9815
+ var _excluded$F = ["children", "shape", "variant", "isDisabled", "isToggled", "onToggle"];
8756
9816
  // Destructuring properties from ToggleProps to be used within the ToggleComponent.
8757
9817
  var ToggleComponent = _ref => {
8758
9818
  var {
@@ -8764,7 +9824,7 @@
8764
9824
  isToggled = false,
8765
9825
  onToggle
8766
9826
  } = _ref,
8767
- props = _objectWithoutPropertiesLoose(_ref, _excluded$C);
9827
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$F);
8768
9828
  // Initializing toggle state and set state functions using the custom hook useToggleState.
8769
9829
  var {
8770
9830
  isHovered,
@@ -9004,6 +10064,400 @@
9004
10064
  };
9005
10065
  var DragAndDrop = DragAndDropComponent;
9006
10066
 
10067
+ var useDropdownMenuState = function useDropdownMenuState(defaultOpen) {
10068
+ if (defaultOpen === void 0) {
10069
+ defaultOpen = false;
10070
+ }
10071
+ var [isOpen, setIsOpen] = React.useState(defaultOpen);
10072
+ var [activeSubmenuId, setActiveSubmenuId] = React.useState(null);
10073
+ // Close the dropdown menu when clicking outside
10074
+ React.useEffect(() => {
10075
+ var handleClickOutside = event => {
10076
+ var path = event.composedPath();
10077
+ var isOutside = !path.some(element => (element == null ? void 0 : element.id) === 'dropdown-menu' || (element == null ? void 0 : element.id) === 'dropdown-trigger');
10078
+ if (isOutside && isOpen) {
10079
+ setIsOpen(false);
10080
+ setActiveSubmenuId(null);
10081
+ }
10082
+ };
10083
+ // Close the dropdown menu when the window is resized
10084
+ var handleResize = () => {
10085
+ if (isOpen) {
10086
+ setIsOpen(false);
10087
+ setActiveSubmenuId(null);
10088
+ }
10089
+ };
10090
+ // Close the dropdown menu when the escape key is pressed
10091
+ var handleKeyDown = event => {
10092
+ if (event.key === 'Escape' && isOpen) {
10093
+ setIsOpen(false);
10094
+ setActiveSubmenuId(null);
10095
+ }
10096
+ };
10097
+ document.addEventListener('mousedown', handleClickOutside);
10098
+ window.addEventListener('resize', handleResize);
10099
+ document.addEventListener('keydown', handleKeyDown);
10100
+ return () => {
10101
+ document.removeEventListener('mousedown', handleClickOutside);
10102
+ window.removeEventListener('resize', handleResize);
10103
+ document.removeEventListener('keydown', handleKeyDown);
10104
+ };
10105
+ }, [isOpen]);
10106
+ return {
10107
+ isOpen,
10108
+ setIsOpen,
10109
+ activeSubmenuId,
10110
+ setActiveSubmenuId
10111
+ };
10112
+ };
10113
+
10114
+ var DropdownMenuSizes = {
10115
+ sm: {
10116
+ padding: '6px 8px',
10117
+ fontSize: '14px',
10118
+ minWidth: '160px'
10119
+ },
10120
+ md: {
10121
+ padding: '8px 12px',
10122
+ fontSize: '16px',
10123
+ minWidth: '180px'
10124
+ },
10125
+ lg: {
10126
+ padding: '10px 16px',
10127
+ fontSize: '18px',
10128
+ minWidth: '200px'
10129
+ }
10130
+ };
10131
+ var DropdownMenuVariants = {
10132
+ default: {
10133
+ backgroundColor: 'white',
10134
+ color: 'color.gray.800'
10135
+ },
10136
+ filled: {
10137
+ backgroundColor: 'color.gray.100',
10138
+ color: 'color.gray.800'
10139
+ },
10140
+ outline: {
10141
+ backgroundColor: 'white',
10142
+ borderWidth: '1px',
10143
+ borderStyle: 'solid',
10144
+ borderColor: 'color.gray.200',
10145
+ color: 'color.gray.800'
10146
+ }
10147
+ };
10148
+ var DropdownMenuItemStates = {
10149
+ hover: {
10150
+ backgroundColor: 'color.gray.100'
10151
+ },
10152
+ active: {
10153
+ backgroundColor: 'color.gray.200'
10154
+ },
10155
+ disabled: {
10156
+ opacity: 0.5,
10157
+ cursor: 'not-allowed'
10158
+ }
10159
+ };
10160
+ // Helper function to calculate position based on side and alignment
10161
+ var getDropdownPosition = function getDropdownPosition(side, align) {
10162
+ if (side === void 0) {
10163
+ side = 'bottom';
10164
+ }
10165
+ if (align === void 0) {
10166
+ align = 'start';
10167
+ }
10168
+ var positions = {
10169
+ top: Object.assign({
10170
+ bottom: '100%',
10171
+ marginBottom: '8px'
10172
+ }, align === 'start' && {
10173
+ left: 0
10174
+ }, align === 'center' && {
10175
+ left: '50%',
10176
+ transform: 'translateX(-50%)'
10177
+ }, align === 'end' && {
10178
+ right: 0
10179
+ }),
10180
+ right: Object.assign({
10181
+ left: '100%',
10182
+ marginLeft: '8px'
10183
+ }, align === 'start' && {
10184
+ top: 0
10185
+ }, align === 'center' && {
10186
+ top: '50%',
10187
+ transform: 'translateY(-50%)'
10188
+ }, align === 'end' && {
10189
+ bottom: 0
10190
+ }),
10191
+ bottom: Object.assign({
10192
+ top: '100%',
10193
+ marginTop: '8px'
10194
+ }, align === 'start' && {
10195
+ left: 0
10196
+ }, align === 'center' && {
10197
+ left: '50%',
10198
+ transform: 'translateX(-50%)'
10199
+ }, align === 'end' && {
10200
+ right: 0
10201
+ }),
10202
+ left: Object.assign({
10203
+ right: '100%',
10204
+ marginRight: '8px'
10205
+ }, align === 'start' && {
10206
+ top: 0
10207
+ }, align === 'center' && {
10208
+ top: '50%',
10209
+ transform: 'translateY(-50%)'
10210
+ }, align === 'end' && {
10211
+ bottom: 0
10212
+ })
10213
+ };
10214
+ return positions[side];
10215
+ };
10216
+
10217
+ var _excluded$G = ["children", "views"],
10218
+ _excluded2$9 = ["items", "side", "align", "views"],
10219
+ _excluded3$6 = ["item", "views"],
10220
+ _excluded4$5 = ["views"],
10221
+ _excluded5$3 = ["trigger", "items", "side", "align", "views"];
10222
+ // Create context for the DropdownMenu
10223
+ var DropdownMenuContext = /*#__PURE__*/React.createContext({
10224
+ isOpen: false,
10225
+ setIsOpen: () => {},
10226
+ activeSubmenuId: null,
10227
+ setActiveSubmenuId: () => {},
10228
+ size: 'md',
10229
+ variant: 'default'
10230
+ });
10231
+ // Provider component for the DropdownMenu context
10232
+ var DropdownMenuProvider = _ref => {
10233
+ var {
10234
+ children,
10235
+ value
10236
+ } = _ref;
10237
+ return /*#__PURE__*/React__default.createElement(DropdownMenuContext.Provider, {
10238
+ value: value
10239
+ }, children);
10240
+ };
10241
+ // Hook to use the DropdownMenu context
10242
+ var useDropdownMenuContext = () => {
10243
+ var context = React.useContext(DropdownMenuContext);
10244
+ if (!context) {
10245
+ throw new Error('useDropdownMenuContext must be used within a DropdownMenuProvider');
10246
+ }
10247
+ return context;
10248
+ };
10249
+ // DropdownMenu Trigger component
10250
+ var DropdownMenuTrigger = _ref2 => {
10251
+ var {
10252
+ children,
10253
+ views
10254
+ } = _ref2,
10255
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$G);
10256
+ var {
10257
+ isOpen,
10258
+ setIsOpen
10259
+ } = useDropdownMenuContext();
10260
+ var handleClick = e => {
10261
+ e.stopPropagation();
10262
+ setIsOpen(!isOpen);
10263
+ };
10264
+ return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
10265
+ id: "dropdown-trigger",
10266
+ onClick: handleClick,
10267
+ cursor: "pointer",
10268
+ position: "relative",
10269
+ display: "inline-block"
10270
+ }, views == null ? void 0 : views.container, props), children);
10271
+ };
10272
+ // DropdownMenu Content component
10273
+ var DropdownMenuContent = _ref3 => {
10274
+ var {
10275
+ items,
10276
+ side = 'bottom',
10277
+ align = 'start',
10278
+ views
10279
+ } = _ref3,
10280
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded2$9);
10281
+ var {
10282
+ isOpen,
10283
+ //activeSubmenuId, setActiveSubmenuId, size,
10284
+ variant
10285
+ } = useDropdownMenuContext();
10286
+ if (!isOpen) {
10287
+ return null;
10288
+ }
10289
+ return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
10290
+ id: "dropdown-menu",
10291
+ position: "absolute",
10292
+ zIndex: 1000,
10293
+ borderRadius: 4,
10294
+ boxShadow: "0px 2px 8px rgba(0, 0, 0, 0.15)",
10295
+ overflow: "hidden"
10296
+ }, getDropdownPosition(side, align), DropdownMenuVariants[variant], views == null ? void 0 : views.menu, props), items.map((item, index) => {
10297
+ if (item.divider) {
10298
+ return /*#__PURE__*/React__default.createElement(DropdownMenuDivider, {
10299
+ key: "divider-" + index,
10300
+ views: views
10301
+ });
10302
+ }
10303
+ return /*#__PURE__*/React__default.createElement(DropdownMenuItem, {
10304
+ key: item.id,
10305
+ item: item,
10306
+ views: views
10307
+ });
10308
+ }));
10309
+ };
10310
+ // DropdownMenu Item component
10311
+ var DropdownMenuItem = _ref4 => {
10312
+ var {
10313
+ item,
10314
+ views
10315
+ } = _ref4,
10316
+ props = _objectWithoutPropertiesLoose(_ref4, _excluded3$6);
10317
+ var {
10318
+ activeSubmenuId,
10319
+ setActiveSubmenuId,
10320
+ size
10321
+ } = useDropdownMenuContext();
10322
+ var [isHovered, setIsHovered] = React.useState(false);
10323
+ var hasSubmenu = item.items && item.items.length > 0;
10324
+ var isSubmenuActive = activeSubmenuId === item.id;
10325
+ var itemRef = React.useRef(null);
10326
+ // Handle mouse enter event
10327
+ var handleMouseEnter = () => {
10328
+ setIsHovered(true);
10329
+ if (hasSubmenu) {
10330
+ setActiveSubmenuId(item.id);
10331
+ }
10332
+ };
10333
+ // Handle mouse leave event
10334
+ var handleMouseLeave = () => {
10335
+ setIsHovered(false);
10336
+ };
10337
+ // Handle click event
10338
+ var handleClick = e => {
10339
+ e.stopPropagation();
10340
+ if (item.disabled) return;
10341
+ if (!hasSubmenu && item.onClick) {
10342
+ item.onClick();
10343
+ }
10344
+ };
10345
+ return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
10346
+ ref: itemRef,
10347
+ display: "flex",
10348
+ alignItems: "center",
10349
+ cursor: item.disabled ? 'not-allowed' : 'pointer',
10350
+ opacity: item.disabled ? 0.5 : 1,
10351
+ position: "relative"
10352
+ }, DropdownMenuSizes[size], {
10353
+ _hover: !item.disabled ? DropdownMenuItemStates.hover : {},
10354
+ backgroundColor: isHovered && !item.disabled ? 'color.gray.100' : 'transparent',
10355
+ onMouseEnter: handleMouseEnter,
10356
+ onMouseLeave: handleMouseLeave,
10357
+ onClick: handleClick
10358
+ }, views == null ? void 0 : views.item, props), item.icon && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
10359
+ marginRight: 8
10360
+ }, views == null ? void 0 : views.icon), item.icon)), /*#__PURE__*/React__default.createElement(appStudio.View, {
10361
+ flexGrow: 1
10362
+ }, item.label), hasSubmenu && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
10363
+ marginLeft: 8
10364
+ }, views == null ? void 0 : views.submenuIndicator), /*#__PURE__*/React__default.createElement("svg", {
10365
+ width: "16",
10366
+ height: "16",
10367
+ viewBox: "0 0 24 24",
10368
+ fill: "none",
10369
+ xmlns: "http://www.w3.org/2000/svg"
10370
+ }, /*#__PURE__*/React__default.createElement("path", {
10371
+ d: "M8.59 16.59L13.17 12L8.59 7.41L10 6L16 12L10 18L8.59 16.59Z",
10372
+ fill: "currentColor"
10373
+ })))), isSubmenuActive && hasSubmenu && (/*#__PURE__*/React__default.createElement(DropdownMenuContent, {
10374
+ items: item.items || [],
10375
+ side: "right",
10376
+ align: "start",
10377
+ views: views
10378
+ })));
10379
+ };
10380
+ // DropdownMenu Divider component
10381
+ var DropdownMenuDivider = _ref5 => {
10382
+ var {
10383
+ views
10384
+ } = _ref5,
10385
+ props = _objectWithoutPropertiesLoose(_ref5, _excluded4$5);
10386
+ return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
10387
+ height: "1px",
10388
+ backgroundColor: "color.gray.200",
10389
+ margin: "4px 0"
10390
+ }, views == null ? void 0 : views.divider, props));
10391
+ };
10392
+ // Main DropdownMenu View component
10393
+ var DropdownMenuView = _ref6 => {
10394
+ var {
10395
+ trigger,
10396
+ items,
10397
+ side = 'bottom',
10398
+ align = 'start',
10399
+ views
10400
+ } = _ref6,
10401
+ props = _objectWithoutPropertiesLoose(_ref6, _excluded5$3);
10402
+ return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
10403
+ position: "relative",
10404
+ display: "inline-block"
10405
+ }, views == null ? void 0 : views.container, props), /*#__PURE__*/React__default.createElement(DropdownMenuTrigger, {
10406
+ views: views
10407
+ }, trigger), /*#__PURE__*/React__default.createElement(DropdownMenuContent, {
10408
+ items: items,
10409
+ side: side,
10410
+ align: align,
10411
+ views: views
10412
+ }));
10413
+ };
10414
+
10415
+ var _excluded$H = ["trigger", "items", "size", "variant", "side", "align", "defaultOpen", "views"];
10416
+ /**
10417
+ * DropdownMenu component for displaying a menu when clicking on a trigger element.
10418
+ */
10419
+ var DropdownMenuComponent = _ref => {
10420
+ var {
10421
+ trigger,
10422
+ items,
10423
+ size = 'md',
10424
+ variant = 'default',
10425
+ side = 'bottom',
10426
+ align = 'start',
10427
+ defaultOpen = false,
10428
+ views
10429
+ } = _ref,
10430
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$H);
10431
+ var {
10432
+ isOpen,
10433
+ setIsOpen,
10434
+ activeSubmenuId,
10435
+ setActiveSubmenuId
10436
+ } = useDropdownMenuState(defaultOpen);
10437
+ return /*#__PURE__*/React__default.createElement(DropdownMenuProvider, {
10438
+ value: {
10439
+ isOpen,
10440
+ setIsOpen,
10441
+ activeSubmenuId,
10442
+ setActiveSubmenuId,
10443
+ size,
10444
+ variant
10445
+ }
10446
+ }, /*#__PURE__*/React__default.createElement(DropdownMenuView, Object.assign({
10447
+ trigger: trigger,
10448
+ items: items,
10449
+ side: side,
10450
+ align: align,
10451
+ views: views
10452
+ }, props)));
10453
+ };
10454
+ var DropdownMenu = DropdownMenuComponent;
10455
+ // Assign the sub-components to the main component
10456
+ DropdownMenu.Trigger = DropdownMenuTrigger;
10457
+ DropdownMenu.Content = DropdownMenuContent;
10458
+ DropdownMenu.Item = DropdownMenuItem;
10459
+ DropdownMenu.Divider = DropdownMenuDivider;
10460
+
9007
10461
  var useHoverCardState = () => {
9008
10462
  var [isOpen, setIsOpen] = React.useState(false);
9009
10463
  return {
@@ -9063,8 +10517,8 @@
9063
10517
  })
9064
10518
  };
9065
10519
 
9066
- var _excluded$D = ["children", "views"],
9067
- _excluded2$8 = ["children", "views", "side", "align"];
10520
+ var _excluded$I = ["children", "views"],
10521
+ _excluded2$a = ["children", "views", "side", "align"];
9068
10522
  // Create context for the HoverCard
9069
10523
  var HoverCardContext = /*#__PURE__*/React.createContext({
9070
10524
  isOpen: false,
@@ -9091,7 +10545,7 @@
9091
10545
  children,
9092
10546
  views
9093
10547
  } = _ref2,
9094
- props = _objectWithoutPropertiesLoose(_ref2, _excluded$D);
10548
+ props = _objectWithoutPropertiesLoose(_ref2, _excluded$I);
9095
10549
  var {
9096
10550
  setIsOpen
9097
10551
  } = useHoverCardContext();
@@ -9109,7 +10563,7 @@
9109
10563
  side = 'bottom',
9110
10564
  align = 'center'
9111
10565
  } = _ref3,
9112
- props = _objectWithoutPropertiesLoose(_ref3, _excluded2$8);
10566
+ props = _objectWithoutPropertiesLoose(_ref3, _excluded2$a);
9113
10567
  var {
9114
10568
  isOpen
9115
10569
  } = useHoverCardContext();
@@ -9127,7 +10581,7 @@
9127
10581
  }, ContentPositions[side](align), views == null ? void 0 : views.container, props), children);
9128
10582
  };
9129
10583
 
9130
- var _excluded$E = ["children", "views"];
10584
+ var _excluded$J = ["children", "views"];
9131
10585
  /**
9132
10586
  * HoverCard component displays floating content when hovering over a trigger element.
9133
10587
  */
@@ -9136,7 +10590,7 @@
9136
10590
  children,
9137
10591
  views
9138
10592
  } = _ref,
9139
- props = _objectWithoutPropertiesLoose(_ref, _excluded$E);
10593
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$J);
9140
10594
  var {
9141
10595
  isOpen,
9142
10596
  setIsOpen
@@ -9155,6 +10609,7 @@
9155
10609
  HoverCard.Trigger = HoverCardTrigger;
9156
10610
  HoverCard.Content = HoverCardContent;
9157
10611
 
10612
+ exports.Accordion = Accordion;
9158
10613
  exports.Alert = Alert;
9159
10614
  exports.ArrowIcon = ArrowIcon;
9160
10615
  exports.AspectRatio = AspectRatio;
@@ -9177,14 +10632,17 @@
9177
10632
  exports.CloseIcon = CloseIcon;
9178
10633
  exports.CloudIcon = CloudIcon;
9179
10634
  exports.ComboBox = ComboBox;
10635
+ exports.ContextMenu = ContextMenu;
9180
10636
  exports.CopyIcon = CopyIcon;
9181
10637
  exports.CountryPicker = CountryPicker;
9182
10638
  exports.CropIcon = CropIcon;
9183
10639
  exports.DatePicker = DatePicker;
10640
+ exports.DeleteIcon = DeleteIcon;
9184
10641
  exports.DownloadIcon = DownloadIcon;
9185
10642
  exports.DragAndDrop = DragAndDrop;
9186
10643
  exports.DragAndDropComponent = DragAndDropComponent;
9187
10644
  exports.DragHandleIcon = DragHandleIcon;
10645
+ exports.DropdownMenu = DropdownMenu;
9188
10646
  exports.DustBinIcon = DustBinIcon;
9189
10647
  exports.EditIcon = EditIcon;
9190
10648
  exports.ErrorIcon = ErrorIcon;
@@ -9201,10 +10659,12 @@
9201
10659
  exports.FormikForm = FormikForm;
9202
10660
  exports.FormikPassword = FormikPassword;
9203
10661
  exports.FormikSelect = FormikSelect;
10662
+ exports.FormikSlider = FormikSlider;
9204
10663
  exports.FormikSwitch = FormikSwitch;
9205
10664
  exports.FormikTextArea = FormikTextArea;
9206
10665
  exports.FormikTextField = FormikTextField;
9207
10666
  exports.HeartIcon = HeartIcon;
10667
+ exports.HelpIcon = HelpIcon;
9208
10668
  exports.HomeIcon = HomeIcon;
9209
10669
  exports.Horizontal = Horizontal;
9210
10670
  exports.HorizontalBase = HorizontalBase;
@@ -9229,6 +10689,7 @@
9229
10689
  exports.MinusIcon = MinusIcon;
9230
10690
  exports.Modal = Modal;
9231
10691
  exports.MoonIcon = MoonIcon;
10692
+ exports.NavigationMenu = NavigationMenu;
9232
10693
  exports.NotificationIcon = NotificationIcon;
9233
10694
  exports.OpenEyeIcon = OpenEyeIcon;
9234
10695
  exports.PanelIcon = PanelIcon;
@@ -9271,6 +10732,7 @@
9271
10732
  exports.UnlockIcon = UnlockIcon;
9272
10733
  exports.UploadIcon = UploadIcon;
9273
10734
  exports.Uploader = Uploader;
10735
+ exports.UserIcon = UserIcon;
9274
10736
  exports.Vertical = Vertical;
9275
10737
  exports.VerticalBase = VerticalBase;
9276
10738
  exports.VideoIcon = VideoIcon;