@app-studio/web 0.8.72 → 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.
- package/dist/components/Accordion/Accordion/Accordion.props.d.ts +91 -0
- package/dist/components/Accordion/Accordion/Accordion.state.d.ts +5 -0
- package/dist/components/Accordion/Accordion/Accordion.style.d.ts +4 -0
- package/dist/components/Accordion/Accordion/Accordion.type.d.ts +15 -0
- package/dist/components/Accordion/Accordion/Accordion.view.d.ts +22 -0
- package/dist/components/Accordion/Accordion.d.ts +2 -0
- package/dist/components/Accordion/examples/default.d.ts +2 -0
- package/dist/components/Accordion/examples/disabled.d.ts +2 -0
- package/dist/components/Accordion/examples/index.d.ts +4 -0
- package/dist/components/Accordion/examples/multiple.d.ts +2 -0
- package/dist/components/Accordion/examples/variants.d.ts +2 -0
- package/dist/components/ContextMenu/ContextMenu/ContextMenu.props.d.ts +120 -0
- package/dist/components/ContextMenu/ContextMenu/ContextMenu.state.d.ts +15 -0
- package/dist/components/ContextMenu/ContextMenu/ContextMenu.style.d.ts +20 -0
- package/dist/components/ContextMenu/ContextMenu/ContextMenu.type.d.ts +41 -0
- package/dist/components/ContextMenu/ContextMenu/ContextMenu.view.d.ts +20 -0
- package/dist/components/ContextMenu/ContextMenu.d.ts +2 -0
- package/dist/components/ContextMenu/examples/custom.d.ts +2 -0
- package/dist/components/ContextMenu/examples/default.d.ts +2 -0
- package/dist/components/ContextMenu/examples/index.d.ts +4 -0
- package/dist/components/ContextMenu/examples/sizes.d.ts +2 -0
- package/dist/components/ContextMenu/examples/variants.d.ts +2 -0
- package/dist/components/DropdownMenu/DropdownMenu/DropdownMenu.props.d.ts +117 -0
- package/dist/components/DropdownMenu/DropdownMenu/DropdownMenu.state.d.ts +7 -0
- package/dist/components/DropdownMenu/DropdownMenu/DropdownMenu.style.d.ts +17 -0
- package/dist/components/DropdownMenu/DropdownMenu/DropdownMenu.type.d.ts +34 -0
- package/dist/components/DropdownMenu/DropdownMenu/DropdownMenu.view.d.ts +19 -0
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +2 -0
- package/dist/components/DropdownMenu/examples/custom.d.ts +2 -0
- package/dist/components/DropdownMenu/examples/default.d.ts +2 -0
- package/dist/components/DropdownMenu/examples/index.d.ts +5 -0
- package/dist/components/DropdownMenu/examples/positions.d.ts +2 -0
- package/dist/components/DropdownMenu/examples/sizes.d.ts +2 -0
- package/dist/components/DropdownMenu/examples/variants.d.ts +2 -0
- package/dist/components/Form/Password/Password/Password.state.d.ts +1 -1
- package/dist/components/Formik/Formik.Slider.d.ts +7 -0
- package/dist/components/Formik/examples/FormikSlider.d.ts +2 -0
- package/dist/components/Formik/examples/index.d.ts +1 -0
- package/dist/components/Formik/index.d.ts +1 -0
- package/dist/components/HoverCard/HoverCard/HoverCard.props.d.ts +65 -0
- package/dist/components/HoverCard/HoverCard/HoverCard.state.d.ts +5 -0
- package/dist/components/HoverCard/HoverCard/HoverCard.style.d.ts +3 -0
- package/dist/components/HoverCard/HoverCard/HoverCard.type.d.ts +6 -0
- package/dist/components/HoverCard/HoverCard/HoverCard.view.d.ts +10 -0
- package/dist/components/HoverCard/HoverCard.d.ts +2 -0
- package/dist/components/HoverCard/examples/default.d.ts +2 -0
- package/dist/components/HoverCard/examples/index.d.ts +1 -0
- package/dist/components/Icon/Icon.d.ts +3 -0
- package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.props.d.ts +126 -0
- package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.state.d.ts +8 -0
- package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.style.d.ts +18 -0
- package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.type.d.ts +34 -0
- package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.view.d.ts +19 -0
- package/dist/components/NavigationMenu/NavigationMenu.d.ts +2 -0
- package/dist/components/NavigationMenu/examples/default.d.ts +2 -0
- package/dist/components/NavigationMenu/examples/horizontal.d.ts +2 -0
- package/dist/components/NavigationMenu/examples/index.d.ts +4 -0
- package/dist/components/NavigationMenu/examples/sizes.d.ts +2 -0
- package/dist/components/NavigationMenu/examples/variants.d.ts +2 -0
- package/dist/components/Slider/Slider/Slider.props.d.ts +112 -0
- package/dist/components/Slider/Slider/Slider.state.d.ts +14 -0
- package/dist/components/Slider/Slider/Slider.style.d.ts +11 -0
- package/dist/components/Slider/Slider/Slider.type.d.ts +18 -0
- package/dist/components/Slider/Slider/Slider.view.d.ts +3 -0
- package/dist/components/Slider/Slider.d.ts +6 -0
- package/dist/components/Slider/examples/controlled.d.ts +2 -0
- package/dist/components/Slider/examples/custom.d.ts +2 -0
- package/dist/components/Slider/examples/default.d.ts +2 -0
- package/dist/components/Slider/examples/disabled.d.ts +2 -0
- package/dist/components/Slider/examples/range.d.ts +2 -0
- package/dist/components/Slider/examples/shapes.d.ts +2 -0
- package/dist/components/Slider/examples/sizes.d.ts +2 -0
- package/dist/components/Slider/examples/stepValues.d.ts +3 -0
- package/dist/components/Slider/examples/tooltip.d.ts +2 -0
- package/dist/components/Slider/examples/variants.d.ts +2 -0
- package/dist/components/Slider/examples/vertical.d.ts +2 -0
- package/dist/components/Slider/index.d.ts +1 -0
- package/dist/components/Table/Table.d.ts +8 -8
- package/dist/components/index.d.ts +11 -0
- package/dist/pages/accordion.page.d.ts +3 -0
- package/dist/pages/components.page.d.ts +5 -0
- package/dist/pages/contextMenu.page.d.ts +3 -0
- package/dist/pages/dropdownMenu.page.d.ts +3 -0
- package/dist/pages/hoverCard.page.d.ts +3 -0
- package/dist/pages/navigationMenu.page.d.ts +3 -0
- package/dist/pages/slider.page.d.ts +3 -0
- package/dist/web.cjs.development.js +2546 -384
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +2539 -387
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +2594 -433
- package/dist/web.umd.development.js.map +1 -1
- package/dist/web.umd.production.min.js +1 -1
- package/dist/web.umd.production.min.js.map +1 -1
- package/package.json +1 -1
- package/dist/utils/componentsPageImports.d.ts +0 -6
|
@@ -4,26 +4,245 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
6
6
|
|
|
7
|
-
require('core-js/modules/es.symbol.description.js');
|
|
8
7
|
var React = require('react');
|
|
9
8
|
var React__default = _interopDefault(React);
|
|
9
|
+
require('core-js/modules/es.array.includes.js');
|
|
10
|
+
require('core-js/modules/es.array.iterator.js');
|
|
11
|
+
require('core-js/modules/es.string.includes.js');
|
|
12
|
+
require('core-js/modules/web.dom-collections.iterator.js');
|
|
10
13
|
require('core-js/modules/es.object.assign.js');
|
|
11
14
|
var appStudio = require('app-studio');
|
|
12
|
-
require('core-js/modules/es.
|
|
15
|
+
require('core-js/modules/es.symbol.description.js');
|
|
13
16
|
require('core-js/modules/es.parse-float.js');
|
|
14
|
-
require('core-js/modules/web.dom-collections.iterator.js');
|
|
15
|
-
require('core-js/modules/es.array.includes.js');
|
|
16
17
|
var reactRouterDom = require('react-router-dom');
|
|
17
|
-
require('core-js/modules/es.string.includes.js');
|
|
18
18
|
require('core-js/modules/es.string.starts-with.js');
|
|
19
19
|
var format = _interopDefault(require('date-fns/format'));
|
|
20
20
|
var formik = require('formik');
|
|
21
|
+
require('core-js/modules/es.number.to-fixed.js');
|
|
21
22
|
require('core-js/modules/web.url.js');
|
|
22
23
|
require('core-js/modules/web.url.to-json.js');
|
|
23
24
|
require('core-js/modules/web.url-search-params.js');
|
|
24
25
|
var zustand = require('zustand');
|
|
25
26
|
var Layout = require('src/components/Layout');
|
|
26
27
|
|
|
28
|
+
var useAccordionState = function useAccordionState(defaultExpandedItems, allowMultiple) {
|
|
29
|
+
if (defaultExpandedItems === void 0) {
|
|
30
|
+
defaultExpandedItems = [];
|
|
31
|
+
}
|
|
32
|
+
if (allowMultiple === void 0) {
|
|
33
|
+
allowMultiple = false;
|
|
34
|
+
}
|
|
35
|
+
var [expandedItems, setExpandedItems] = React.useState(defaultExpandedItems);
|
|
36
|
+
var toggleItem = itemId => {
|
|
37
|
+
setExpandedItems(prevExpandedItems => {
|
|
38
|
+
// Check if the item is already expanded
|
|
39
|
+
var isExpanded = prevExpandedItems.includes(itemId);
|
|
40
|
+
if (isExpanded) {
|
|
41
|
+
// If expanded, remove it from the list
|
|
42
|
+
return prevExpandedItems.filter(id => id !== itemId);
|
|
43
|
+
} else {
|
|
44
|
+
// If not expanded, add it to the list
|
|
45
|
+
// If allowMultiple is false, replace the current expanded item
|
|
46
|
+
return allowMultiple ? [...prevExpandedItems, itemId] : [itemId];
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
var isItemExpanded = itemId => {
|
|
51
|
+
return expandedItems.includes(itemId);
|
|
52
|
+
};
|
|
53
|
+
return {
|
|
54
|
+
expandedItems,
|
|
55
|
+
toggleItem,
|
|
56
|
+
isItemExpanded
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
var AccordionShapes = {
|
|
61
|
+
sharp: {
|
|
62
|
+
borderRadius: 0
|
|
63
|
+
},
|
|
64
|
+
rounded: {
|
|
65
|
+
borderRadius: 8
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
var AccordionVariants = {
|
|
69
|
+
default: {
|
|
70
|
+
backgroundColor: 'transparent',
|
|
71
|
+
borderWidth: 0
|
|
72
|
+
},
|
|
73
|
+
outline: {
|
|
74
|
+
borderWidth: 1,
|
|
75
|
+
borderStyle: 'solid',
|
|
76
|
+
borderColor: 'color.gray.200'
|
|
77
|
+
},
|
|
78
|
+
filled: {
|
|
79
|
+
backgroundColor: 'color.gray.50'
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
// Create context for the Accordion
|
|
84
|
+
var AccordionContext = /*#__PURE__*/React.createContext({
|
|
85
|
+
expandedItems: [],
|
|
86
|
+
toggleItem: () => {},
|
|
87
|
+
isItemExpanded: () => false
|
|
88
|
+
});
|
|
89
|
+
// Provider component for the Accordion context
|
|
90
|
+
var AccordionProvider = _ref => {
|
|
91
|
+
var {
|
|
92
|
+
children,
|
|
93
|
+
value
|
|
94
|
+
} = _ref;
|
|
95
|
+
return /*#__PURE__*/React__default.createElement(AccordionContext.Provider, {
|
|
96
|
+
value: value
|
|
97
|
+
}, children);
|
|
98
|
+
};
|
|
99
|
+
// Hook to use the Accordion context
|
|
100
|
+
var useAccordionContext = () => {
|
|
101
|
+
var context = React.useContext(AccordionContext);
|
|
102
|
+
if (!context) {
|
|
103
|
+
throw new Error('useAccordionContext must be used within an AccordionProvider');
|
|
104
|
+
}
|
|
105
|
+
return context;
|
|
106
|
+
};
|
|
107
|
+
// Accordion Item component
|
|
108
|
+
var AccordionItem = _ref2 => {
|
|
109
|
+
var {
|
|
110
|
+
id,
|
|
111
|
+
children,
|
|
112
|
+
isDisabled = false,
|
|
113
|
+
views
|
|
114
|
+
} = _ref2;
|
|
115
|
+
var {
|
|
116
|
+
isItemExpanded
|
|
117
|
+
} = useAccordionContext();
|
|
118
|
+
var isExpanded = isItemExpanded(id);
|
|
119
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
120
|
+
borderWidth: 1,
|
|
121
|
+
borderStyle: "solid",
|
|
122
|
+
borderColor: "color.gray.200",
|
|
123
|
+
marginBottom: 8,
|
|
124
|
+
overflow: "hidden",
|
|
125
|
+
opacity: isDisabled ? 0.5 : 1,
|
|
126
|
+
pointerEvents: isDisabled ? 'none' : 'auto'
|
|
127
|
+
}, views == null ? void 0 : views.item), React__default.Children.map(children, child => {
|
|
128
|
+
if (/*#__PURE__*/React__default.isValidElement(child)) {
|
|
129
|
+
// Pass the id and isExpanded props to AccordionHeader and AccordionContent
|
|
130
|
+
return /*#__PURE__*/React__default.cloneElement(child, Object.assign({}, child.props, {
|
|
131
|
+
id,
|
|
132
|
+
isExpanded
|
|
133
|
+
}));
|
|
134
|
+
}
|
|
135
|
+
return child;
|
|
136
|
+
}));
|
|
137
|
+
};
|
|
138
|
+
// Accordion Header component
|
|
139
|
+
var AccordionHeader = _ref3 => {
|
|
140
|
+
var {
|
|
141
|
+
children,
|
|
142
|
+
id,
|
|
143
|
+
isExpanded,
|
|
144
|
+
views
|
|
145
|
+
} = _ref3;
|
|
146
|
+
var {
|
|
147
|
+
toggleItem
|
|
148
|
+
} = useAccordionContext();
|
|
149
|
+
var handleClick = () => {
|
|
150
|
+
if (id) {
|
|
151
|
+
toggleItem(id);
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
return /*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
|
|
155
|
+
padding: 16,
|
|
156
|
+
cursor: "pointer",
|
|
157
|
+
alignItems: "center",
|
|
158
|
+
justifyContent: "space-between",
|
|
159
|
+
backgroundColor: "color.white",
|
|
160
|
+
onClick: handleClick
|
|
161
|
+
}, views == null ? void 0 : views.container), children, /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
162
|
+
width: 24,
|
|
163
|
+
height: 24,
|
|
164
|
+
display: "flex",
|
|
165
|
+
alignItems: "center",
|
|
166
|
+
justifyContent: "center",
|
|
167
|
+
transition: "transform 0.2s ease",
|
|
168
|
+
transform: isExpanded ? 'rotate(180deg)' : 'rotate(0deg)'
|
|
169
|
+
}, views == null ? void 0 : views.icon), /*#__PURE__*/React__default.createElement("svg", {
|
|
170
|
+
width: "16",
|
|
171
|
+
height: "16",
|
|
172
|
+
viewBox: "0 0 24 24",
|
|
173
|
+
fill: "none",
|
|
174
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
175
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
176
|
+
d: "M16.59 8.59L12 13.17L7.41 8.59L6 10L12 16L18 10L16.59 8.59Z",
|
|
177
|
+
fill: "currentColor"
|
|
178
|
+
}))));
|
|
179
|
+
};
|
|
180
|
+
// Accordion Content component
|
|
181
|
+
var AccordionContent = _ref4 => {
|
|
182
|
+
var {
|
|
183
|
+
children,
|
|
184
|
+
isExpanded,
|
|
185
|
+
views
|
|
186
|
+
} = _ref4;
|
|
187
|
+
if (!isExpanded) {
|
|
188
|
+
return null;
|
|
189
|
+
}
|
|
190
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
191
|
+
padding: 16,
|
|
192
|
+
backgroundColor: "color.white",
|
|
193
|
+
maxHeight: isExpanded ? '1000px' : '0',
|
|
194
|
+
transition: "max-height 0.3s ease-in-out",
|
|
195
|
+
overflow: "hidden"
|
|
196
|
+
}, views == null ? void 0 : views.container), children);
|
|
197
|
+
};
|
|
198
|
+
// Main Accordion View component
|
|
199
|
+
var AccordionView = _ref5 => {
|
|
200
|
+
var {
|
|
201
|
+
children,
|
|
202
|
+
shape = 'rounded',
|
|
203
|
+
variant = 'default',
|
|
204
|
+
views
|
|
205
|
+
} = _ref5;
|
|
206
|
+
return /*#__PURE__*/React__default.createElement(appStudio.Vertical, Object.assign({
|
|
207
|
+
width: "100%"
|
|
208
|
+
}, AccordionShapes[shape], AccordionVariants[variant], views == null ? void 0 : views.container), children);
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Accordion component for displaying collapsible content panels.
|
|
213
|
+
*/
|
|
214
|
+
var AccordionComponent = _ref => {
|
|
215
|
+
var {
|
|
216
|
+
children,
|
|
217
|
+
allowMultiple = false,
|
|
218
|
+
defaultExpandedItems = [],
|
|
219
|
+
shape = 'rounded',
|
|
220
|
+
variant = 'default',
|
|
221
|
+
views
|
|
222
|
+
} = _ref;
|
|
223
|
+
var {
|
|
224
|
+
expandedItems,
|
|
225
|
+
toggleItem,
|
|
226
|
+
isItemExpanded
|
|
227
|
+
} = useAccordionState(defaultExpandedItems, allowMultiple);
|
|
228
|
+
return /*#__PURE__*/React__default.createElement(AccordionProvider, {
|
|
229
|
+
value: {
|
|
230
|
+
expandedItems,
|
|
231
|
+
toggleItem,
|
|
232
|
+
isItemExpanded
|
|
233
|
+
}
|
|
234
|
+
}, /*#__PURE__*/React__default.createElement(AccordionView, {
|
|
235
|
+
shape: shape,
|
|
236
|
+
variant: variant,
|
|
237
|
+
views: views
|
|
238
|
+
}, children));
|
|
239
|
+
};
|
|
240
|
+
var Accordion = AccordionComponent;
|
|
241
|
+
// Assign the sub-components to the main component
|
|
242
|
+
Accordion.Item = AccordionItem;
|
|
243
|
+
Accordion.Header = AccordionHeader;
|
|
244
|
+
Accordion.Content = AccordionContent;
|
|
245
|
+
|
|
27
246
|
var Top = props => (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
28
247
|
marginBottom: "auto"
|
|
29
248
|
}, props)));
|
|
@@ -262,17 +481,17 @@ var _excluded$4 = ["widthHeight", "color", "transform", "orientation", "children
|
|
|
262
481
|
_excluded27 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
263
482
|
_excluded28 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
264
483
|
_excluded29 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
265
|
-
_excluded30 = ["widthHeight", "color", "
|
|
484
|
+
_excluded30 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
266
485
|
_excluded31 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
267
486
|
_excluded32 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
268
487
|
_excluded33 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
269
488
|
_excluded34 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
270
489
|
_excluded35 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
271
490
|
_excluded36 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
272
|
-
_excluded37 = ["widthHeight", "color", "
|
|
491
|
+
_excluded37 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
273
492
|
_excluded38 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
274
|
-
_excluded39 = ["widthHeight", "color", "
|
|
275
|
-
_excluded40 = ["widthHeight", "color", "
|
|
493
|
+
_excluded39 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
494
|
+
_excluded40 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
276
495
|
_excluded41 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
277
496
|
_excluded42 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
278
497
|
_excluded43 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
@@ -283,10 +502,10 @@ var _excluded$4 = ["widthHeight", "color", "transform", "orientation", "children
|
|
|
283
502
|
_excluded48 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
284
503
|
_excluded49 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
285
504
|
_excluded50 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
286
|
-
_excluded51 = ["widthHeight", "color", "
|
|
287
|
-
_excluded52 = ["widthHeight", "color", "
|
|
288
|
-
_excluded53 = ["widthHeight", "color", "
|
|
289
|
-
_excluded54 = ["widthHeight", "color", "
|
|
505
|
+
_excluded51 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
506
|
+
_excluded52 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
507
|
+
_excluded53 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
508
|
+
_excluded54 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
290
509
|
_excluded55 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
291
510
|
_excluded56 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
292
511
|
_excluded57 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
@@ -298,14 +517,16 @@ var _excluded$4 = ["widthHeight", "color", "transform", "orientation", "children
|
|
|
298
517
|
_excluded63 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
299
518
|
_excluded64 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
300
519
|
_excluded65 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
301
|
-
_excluded66 = ["widthHeight", "color", "
|
|
302
|
-
_excluded67 = ["widthHeight", "color", "
|
|
520
|
+
_excluded66 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
521
|
+
_excluded67 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
303
522
|
_excluded68 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
304
523
|
_excluded69 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
305
524
|
_excluded70 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
306
525
|
_excluded71 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
307
526
|
_excluded72 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
308
|
-
_excluded73 = ["widthHeight", "color", "strokeWidth", "filled"]
|
|
527
|
+
_excluded73 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
528
|
+
_excluded74 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
529
|
+
_excluded75 = ["widthHeight", "color", "strokeWidth", "filled"];
|
|
309
530
|
// Default wrapper component for consistent sizing and styling
|
|
310
531
|
var IconWrapper = _ref => {
|
|
311
532
|
var {
|
|
@@ -334,8 +555,7 @@ var getSvgProps = (filled, color, strokeWidth) => {
|
|
|
334
555
|
strokeLinejoin: 'round'
|
|
335
556
|
};
|
|
336
557
|
};
|
|
337
|
-
|
|
338
|
-
var ChevronIcon = _ref2 => {
|
|
558
|
+
var UserIcon = _ref2 => {
|
|
339
559
|
var {
|
|
340
560
|
widthHeight = 24,
|
|
341
561
|
color = 'currentColor',
|
|
@@ -351,10 +571,10 @@ var ChevronIcon = _ref2 => {
|
|
|
351
571
|
"aria-hidden": "true",
|
|
352
572
|
focusable: "false"
|
|
353
573
|
}, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React__default.createElement("path", {
|
|
354
|
-
d: "M12.
|
|
574
|
+
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"
|
|
355
575
|
})));
|
|
356
576
|
};
|
|
357
|
-
var
|
|
577
|
+
var HelpIcon = _ref3 => {
|
|
358
578
|
var {
|
|
359
579
|
widthHeight = 24,
|
|
360
580
|
color = 'currentColor',
|
|
@@ -369,6 +589,45 @@ var DragHandleIcon = _ref3 => {
|
|
|
369
589
|
viewBox: "0 0 24 24",
|
|
370
590
|
"aria-hidden": "true",
|
|
371
591
|
focusable: "false"
|
|
592
|
+
}, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React__default.createElement("path", {
|
|
593
|
+
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"
|
|
594
|
+
})));
|
|
595
|
+
};
|
|
596
|
+
// Example Icon Component: ChevronIcon
|
|
597
|
+
var ChevronIcon = _ref4 => {
|
|
598
|
+
var {
|
|
599
|
+
widthHeight = 24,
|
|
600
|
+
color = 'currentColor',
|
|
601
|
+
filled = true,
|
|
602
|
+
strokeWidth = 1
|
|
603
|
+
} = _ref4,
|
|
604
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4);
|
|
605
|
+
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
606
|
+
widthHeight: widthHeight,
|
|
607
|
+
color: color
|
|
608
|
+
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
609
|
+
viewBox: "0 0 24 24",
|
|
610
|
+
"aria-hidden": "true",
|
|
611
|
+
focusable: "false"
|
|
612
|
+
}, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React__default.createElement("path", {
|
|
613
|
+
d: "M12.771 7.115a.829.829 0 0 0-1.2 0L3 15.686l1.2 1.2 7.971-7.971 7.972 7.971 1.2-1.2-8.572-8.571Z"
|
|
614
|
+
})));
|
|
615
|
+
};
|
|
616
|
+
var DragHandleIcon = _ref5 => {
|
|
617
|
+
var {
|
|
618
|
+
widthHeight = 24,
|
|
619
|
+
color = 'currentColor',
|
|
620
|
+
filled = true,
|
|
621
|
+
strokeWidth = 1
|
|
622
|
+
} = _ref5,
|
|
623
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded5);
|
|
624
|
+
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
625
|
+
widthHeight: widthHeight,
|
|
626
|
+
color: color
|
|
627
|
+
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
628
|
+
viewBox: "0 0 24 24",
|
|
629
|
+
"aria-hidden": "true",
|
|
630
|
+
focusable: "false"
|
|
372
631
|
}, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("circle", {
|
|
373
632
|
cx: "9",
|
|
374
633
|
cy: "6",
|
|
@@ -396,14 +655,14 @@ var DragHandleIcon = _ref3 => {
|
|
|
396
655
|
}))));
|
|
397
656
|
};
|
|
398
657
|
// File Icon Component
|
|
399
|
-
var FileIcon =
|
|
658
|
+
var FileIcon = _ref6 => {
|
|
400
659
|
var {
|
|
401
660
|
widthHeight = 24,
|
|
402
661
|
color = 'currentColor',
|
|
403
662
|
filled = true,
|
|
404
663
|
strokeWidth = 1
|
|
405
|
-
} =
|
|
406
|
-
props = _objectWithoutPropertiesLoose(
|
|
664
|
+
} = _ref6,
|
|
665
|
+
props = _objectWithoutPropertiesLoose(_ref6, _excluded6);
|
|
407
666
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
408
667
|
widthHeight: widthHeight,
|
|
409
668
|
color: color
|
|
@@ -424,14 +683,14 @@ var FileIcon = _ref4 => {
|
|
|
424
683
|
})));
|
|
425
684
|
};
|
|
426
685
|
// Video Icon Component
|
|
427
|
-
var VideoIcon =
|
|
686
|
+
var VideoIcon = _ref7 => {
|
|
428
687
|
var {
|
|
429
688
|
widthHeight = 24,
|
|
430
689
|
color = 'currentColor',
|
|
431
690
|
filled = true,
|
|
432
691
|
strokeWidth = 1
|
|
433
|
-
} =
|
|
434
|
-
props = _objectWithoutPropertiesLoose(
|
|
692
|
+
} = _ref7,
|
|
693
|
+
props = _objectWithoutPropertiesLoose(_ref7, _excluded7);
|
|
435
694
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
436
695
|
widthHeight: widthHeight,
|
|
437
696
|
color: color
|
|
@@ -457,14 +716,14 @@ var VideoIcon = _ref5 => {
|
|
|
457
716
|
})));
|
|
458
717
|
};
|
|
459
718
|
// Image Icon Component
|
|
460
|
-
var ImageIcon =
|
|
719
|
+
var ImageIcon = _ref8 => {
|
|
461
720
|
var {
|
|
462
721
|
widthHeight = 24,
|
|
463
722
|
color = 'currentColor',
|
|
464
723
|
filled = true,
|
|
465
724
|
strokeWidth = 1
|
|
466
|
-
} =
|
|
467
|
-
props = _objectWithoutPropertiesLoose(
|
|
725
|
+
} = _ref8,
|
|
726
|
+
props = _objectWithoutPropertiesLoose(_ref8, _excluded8);
|
|
468
727
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
469
728
|
widthHeight: widthHeight,
|
|
470
729
|
color: color
|
|
@@ -496,14 +755,14 @@ var ImageIcon = _ref6 => {
|
|
|
496
755
|
strokeWidth: strokeWidth
|
|
497
756
|
})));
|
|
498
757
|
};
|
|
499
|
-
var TwitterIcon =
|
|
758
|
+
var TwitterIcon = _ref9 => {
|
|
500
759
|
var {
|
|
501
760
|
widthHeight = 24,
|
|
502
761
|
color = 'currentColor',
|
|
503
762
|
filled = true,
|
|
504
763
|
strokeWidth = 1
|
|
505
|
-
} =
|
|
506
|
-
props = _objectWithoutPropertiesLoose(
|
|
764
|
+
} = _ref9,
|
|
765
|
+
props = _objectWithoutPropertiesLoose(_ref9, _excluded9);
|
|
507
766
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
508
767
|
widthHeight: widthHeight,
|
|
509
768
|
color: color
|
|
@@ -518,14 +777,14 @@ var TwitterIcon = _ref7 => {
|
|
|
518
777
|
strokeWidth: filled ? 0 : strokeWidth
|
|
519
778
|
})));
|
|
520
779
|
};
|
|
521
|
-
var XIcon =
|
|
780
|
+
var XIcon = _ref10 => {
|
|
522
781
|
var {
|
|
523
782
|
widthHeight = 24,
|
|
524
783
|
color = 'currentColor',
|
|
525
784
|
filled = true,
|
|
526
785
|
strokeWidth = 1
|
|
527
|
-
} =
|
|
528
|
-
props = _objectWithoutPropertiesLoose(
|
|
786
|
+
} = _ref10,
|
|
787
|
+
props = _objectWithoutPropertiesLoose(_ref10, _excluded10);
|
|
529
788
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
530
789
|
widthHeight: widthHeight,
|
|
531
790
|
color: color
|
|
@@ -541,14 +800,14 @@ var XIcon = _ref8 => {
|
|
|
541
800
|
})));
|
|
542
801
|
};
|
|
543
802
|
// Example of a Twitch Icon
|
|
544
|
-
var TwitchIcon =
|
|
803
|
+
var TwitchIcon = _ref11 => {
|
|
545
804
|
var {
|
|
546
805
|
widthHeight = 24,
|
|
547
806
|
color = 'currentColor',
|
|
548
807
|
filled = true,
|
|
549
808
|
strokeWidth = 1
|
|
550
|
-
} =
|
|
551
|
-
props = _objectWithoutPropertiesLoose(
|
|
809
|
+
} = _ref11,
|
|
810
|
+
props = _objectWithoutPropertiesLoose(_ref11, _excluded11);
|
|
552
811
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
553
812
|
widthHeight: widthHeight,
|
|
554
813
|
color: color
|
|
@@ -569,14 +828,14 @@ var TwitchIcon = _ref9 => {
|
|
|
569
828
|
})));
|
|
570
829
|
};
|
|
571
830
|
// Example of another Icon: CloseIcon
|
|
572
|
-
var CloseIcon =
|
|
831
|
+
var CloseIcon = _ref12 => {
|
|
573
832
|
var {
|
|
574
833
|
widthHeight = 24,
|
|
575
834
|
color = 'currentColor',
|
|
576
835
|
filled = false,
|
|
577
836
|
strokeWidth = 1
|
|
578
|
-
} =
|
|
579
|
-
props = _objectWithoutPropertiesLoose(
|
|
837
|
+
} = _ref12,
|
|
838
|
+
props = _objectWithoutPropertiesLoose(_ref12, _excluded12);
|
|
580
839
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
581
840
|
widthHeight: widthHeight,
|
|
582
841
|
color: color
|
|
@@ -598,14 +857,14 @@ var CloseIcon = _ref10 => {
|
|
|
598
857
|
y2: "18"
|
|
599
858
|
})));
|
|
600
859
|
};
|
|
601
|
-
var InstagramIcon =
|
|
860
|
+
var InstagramIcon = _ref13 => {
|
|
602
861
|
var {
|
|
603
862
|
widthHeight = 24,
|
|
604
863
|
color = 'currentColor',
|
|
605
864
|
filled = false,
|
|
606
865
|
strokeWidth = 1
|
|
607
|
-
} =
|
|
608
|
-
props = _objectWithoutPropertiesLoose(
|
|
866
|
+
} = _ref13,
|
|
867
|
+
props = _objectWithoutPropertiesLoose(_ref13, _excluded13);
|
|
609
868
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
610
869
|
widthHeight: widthHeight,
|
|
611
870
|
color: color
|
|
@@ -629,14 +888,14 @@ var InstagramIcon = _ref11 => {
|
|
|
629
888
|
y2: "6.5"
|
|
630
889
|
})));
|
|
631
890
|
};
|
|
632
|
-
var YoutubeIcon =
|
|
891
|
+
var YoutubeIcon = _ref14 => {
|
|
633
892
|
var {
|
|
634
893
|
widthHeight = 24,
|
|
635
894
|
color = 'currentColor',
|
|
636
895
|
filled = true,
|
|
637
896
|
strokeWidth = 1
|
|
638
|
-
} =
|
|
639
|
-
props = _objectWithoutPropertiesLoose(
|
|
897
|
+
} = _ref14,
|
|
898
|
+
props = _objectWithoutPropertiesLoose(_ref14, _excluded14);
|
|
640
899
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
641
900
|
widthHeight: widthHeight,
|
|
642
901
|
color: color
|
|
@@ -657,14 +916,14 @@ var YoutubeIcon = _ref12 => {
|
|
|
657
916
|
strokeWidth: strokeWidth
|
|
658
917
|
})));
|
|
659
918
|
};
|
|
660
|
-
var FacebookIcon =
|
|
919
|
+
var FacebookIcon = _ref15 => {
|
|
661
920
|
var {
|
|
662
921
|
widthHeight = 24,
|
|
663
922
|
color = 'currentColor',
|
|
664
923
|
filled = true,
|
|
665
924
|
strokeWidth = 1
|
|
666
|
-
} =
|
|
667
|
-
props = _objectWithoutPropertiesLoose(
|
|
925
|
+
} = _ref15,
|
|
926
|
+
props = _objectWithoutPropertiesLoose(_ref15, _excluded15);
|
|
668
927
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
669
928
|
widthHeight: widthHeight,
|
|
670
929
|
color: color
|
|
@@ -679,14 +938,14 @@ var FacebookIcon = _ref13 => {
|
|
|
679
938
|
strokeWidth: filled ? 0 : strokeWidth
|
|
680
939
|
})));
|
|
681
940
|
};
|
|
682
|
-
var LinkedinIcon =
|
|
941
|
+
var LinkedinIcon = _ref16 => {
|
|
683
942
|
var {
|
|
684
943
|
widthHeight = 24,
|
|
685
944
|
color = 'currentColor',
|
|
686
945
|
filled = true,
|
|
687
946
|
strokeWidth = 1
|
|
688
|
-
} =
|
|
689
|
-
props = _objectWithoutPropertiesLoose(
|
|
947
|
+
} = _ref16,
|
|
948
|
+
props = _objectWithoutPropertiesLoose(_ref16, _excluded16);
|
|
690
949
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
691
950
|
widthHeight: widthHeight,
|
|
692
951
|
color: color
|
|
@@ -705,14 +964,14 @@ var LinkedinIcon = _ref14 => {
|
|
|
705
964
|
r: "2"
|
|
706
965
|
})));
|
|
707
966
|
};
|
|
708
|
-
var ThreadsIcon =
|
|
967
|
+
var ThreadsIcon = _ref17 => {
|
|
709
968
|
var {
|
|
710
969
|
widthHeight = 24,
|
|
711
970
|
color = 'currentColor',
|
|
712
971
|
filled = false,
|
|
713
972
|
strokeWidth = 1
|
|
714
|
-
} =
|
|
715
|
-
props = _objectWithoutPropertiesLoose(
|
|
973
|
+
} = _ref17,
|
|
974
|
+
props = _objectWithoutPropertiesLoose(_ref17, _excluded17);
|
|
716
975
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
717
976
|
widthHeight: widthHeight,
|
|
718
977
|
color: color
|
|
@@ -723,19 +982,19 @@ var ThreadsIcon = _ref15 => {
|
|
|
723
982
|
d: "M0 0h24v24H0z",
|
|
724
983
|
fill: "none"
|
|
725
984
|
}), /*#__PURE__*/React__default.createElement("path", {
|
|
726
|
-
d: "M19 7.5c-1.333 -3 -3.667 -4.5 -7 -4.5c-5 0 -8 2.5 -8 9s3.5 9 8 9s7 -3 7\n -5s-1 -5 -7 -5c-2.5 0 -3 1.25 -3 2.5c0 1.5 1 2.5 2.5 2.5c2.5 0 3.5 -1.5
|
|
985
|
+
d: "M19 7.5c-1.333 -3 -3.667 -4.5 -7 -4.5c-5 0 -8 2.5 -8 9s3.5 9 8 9s7 -3 7\n -5s-1 -5 -7 -5c-2.5 0 -3 1.25 -3 2.5c0 1.5 1 2.5 2.5 2.5c2.5 0 3.5 -1.5\n 3.5 -5s-2 -4 -3 -4s-1.833 .333 -2.5 1"
|
|
727
986
|
})));
|
|
728
987
|
};
|
|
729
988
|
// Example Refactored Icon: MinusIcon without undefined 'padding' prop
|
|
730
|
-
var MinusIcon =
|
|
989
|
+
var MinusIcon = _ref18 => {
|
|
731
990
|
var {
|
|
732
991
|
widthHeight = 24,
|
|
733
992
|
color = 'currentColor',
|
|
734
993
|
filled = false,
|
|
735
994
|
// Assuming minus can be filled; adjust as needed
|
|
736
995
|
strokeWidth = 1
|
|
737
|
-
} =
|
|
738
|
-
props = _objectWithoutPropertiesLoose(
|
|
996
|
+
} = _ref18,
|
|
997
|
+
props = _objectWithoutPropertiesLoose(_ref18, _excluded18);
|
|
739
998
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
740
999
|
widthHeight: widthHeight,
|
|
741
1000
|
color: color
|
|
@@ -752,14 +1011,14 @@ var MinusIcon = _ref16 => {
|
|
|
752
1011
|
})));
|
|
753
1012
|
};
|
|
754
1013
|
// Example Refactored Icon: InfoIcon with accessibility enhancements
|
|
755
|
-
var InfoIcon =
|
|
1014
|
+
var InfoIcon = _ref19 => {
|
|
756
1015
|
var {
|
|
757
1016
|
widthHeight = 24,
|
|
758
1017
|
color = 'currentColor',
|
|
759
1018
|
filled = false,
|
|
760
1019
|
strokeWidth = 1
|
|
761
|
-
} =
|
|
762
|
-
props = _objectWithoutPropertiesLoose(
|
|
1020
|
+
} = _ref19,
|
|
1021
|
+
props = _objectWithoutPropertiesLoose(_ref19, _excluded19);
|
|
763
1022
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
764
1023
|
widthHeight: widthHeight,
|
|
765
1024
|
color: color
|
|
@@ -773,14 +1032,14 @@ var InfoIcon = _ref17 => {
|
|
|
773
1032
|
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"
|
|
774
1033
|
})));
|
|
775
1034
|
};
|
|
776
|
-
var PlayIcon =
|
|
1035
|
+
var PlayIcon = _ref20 => {
|
|
777
1036
|
var {
|
|
778
1037
|
widthHeight = 24,
|
|
779
1038
|
color = 'currentColor',
|
|
780
1039
|
filled = true,
|
|
781
1040
|
strokeWidth = 1
|
|
782
|
-
} =
|
|
783
|
-
props = _objectWithoutPropertiesLoose(
|
|
1041
|
+
} = _ref20,
|
|
1042
|
+
props = _objectWithoutPropertiesLoose(_ref20, _excluded20);
|
|
784
1043
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
785
1044
|
widthHeight: widthHeight,
|
|
786
1045
|
color: color
|
|
@@ -792,14 +1051,14 @@ var PlayIcon = _ref18 => {
|
|
|
792
1051
|
d: "M8 5v14l11-7z"
|
|
793
1052
|
})));
|
|
794
1053
|
};
|
|
795
|
-
var PauseIcon =
|
|
1054
|
+
var PauseIcon = _ref21 => {
|
|
796
1055
|
var {
|
|
797
1056
|
widthHeight = 24,
|
|
798
1057
|
color = 'currentColor',
|
|
799
1058
|
filled = true,
|
|
800
1059
|
strokeWidth = 1
|
|
801
|
-
} =
|
|
802
|
-
props = _objectWithoutPropertiesLoose(
|
|
1060
|
+
} = _ref21,
|
|
1061
|
+
props = _objectWithoutPropertiesLoose(_ref21, _excluded21);
|
|
803
1062
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
804
1063
|
widthHeight: widthHeight,
|
|
805
1064
|
color: color
|
|
@@ -811,14 +1070,14 @@ var PauseIcon = _ref19 => {
|
|
|
811
1070
|
d: "M6 4h4v16H6V4zm8 0h4v16h-4V4z"
|
|
812
1071
|
})));
|
|
813
1072
|
};
|
|
814
|
-
var HeartIcon =
|
|
1073
|
+
var HeartIcon = _ref22 => {
|
|
815
1074
|
var {
|
|
816
1075
|
widthHeight = 24,
|
|
817
1076
|
color = 'currentColor',
|
|
818
1077
|
filled = true,
|
|
819
1078
|
strokeWidth = 1
|
|
820
|
-
} =
|
|
821
|
-
props = _objectWithoutPropertiesLoose(
|
|
1079
|
+
} = _ref22,
|
|
1080
|
+
props = _objectWithoutPropertiesLoose(_ref22, _excluded22);
|
|
822
1081
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
823
1082
|
widthHeight: widthHeight,
|
|
824
1083
|
color: color
|
|
@@ -830,14 +1089,14 @@ var HeartIcon = _ref20 => {
|
|
|
830
1089
|
d: "M20.84 4.61c-1.54-1.56-4.04-1.56-5.59 0l-.7.72-.7-.72a3.95 3.95 0 0 0-5.59 0c-1.56 1.56-1.56 4.09 0 5.66l6.29 6.36 6.29-6.36c1.56-1.56 1.56-4.09 0-5.66z"
|
|
831
1090
|
})));
|
|
832
1091
|
};
|
|
833
|
-
var StarIcon =
|
|
1092
|
+
var StarIcon = _ref23 => {
|
|
834
1093
|
var {
|
|
835
1094
|
widthHeight = 24,
|
|
836
1095
|
color = 'currentColor',
|
|
837
1096
|
filled = true,
|
|
838
1097
|
strokeWidth = 1
|
|
839
|
-
} =
|
|
840
|
-
props = _objectWithoutPropertiesLoose(
|
|
1098
|
+
} = _ref23,
|
|
1099
|
+
props = _objectWithoutPropertiesLoose(_ref23, _excluded23);
|
|
841
1100
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
842
1101
|
widthHeight: widthHeight,
|
|
843
1102
|
color: color
|
|
@@ -849,14 +1108,14 @@ var StarIcon = _ref21 => {
|
|
|
849
1108
|
points: "12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"
|
|
850
1109
|
})));
|
|
851
1110
|
};
|
|
852
|
-
var SaveIcon =
|
|
1111
|
+
var SaveIcon = _ref24 => {
|
|
853
1112
|
var {
|
|
854
1113
|
widthHeight = 24,
|
|
855
1114
|
color = 'currentColor',
|
|
856
1115
|
filled = false,
|
|
857
1116
|
strokeWidth = 1
|
|
858
|
-
} =
|
|
859
|
-
props = _objectWithoutPropertiesLoose(
|
|
1117
|
+
} = _ref24,
|
|
1118
|
+
props = _objectWithoutPropertiesLoose(_ref24, _excluded24);
|
|
860
1119
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
861
1120
|
widthHeight: widthHeight,
|
|
862
1121
|
color: color
|
|
@@ -872,14 +1131,14 @@ var SaveIcon = _ref22 => {
|
|
|
872
1131
|
points: "7 3 7 8 15 8"
|
|
873
1132
|
})));
|
|
874
1133
|
};
|
|
875
|
-
var WarningIcon =
|
|
1134
|
+
var WarningIcon = _ref25 => {
|
|
876
1135
|
var {
|
|
877
1136
|
widthHeight = 24,
|
|
878
1137
|
color = 'currentColor',
|
|
879
1138
|
filled = false,
|
|
880
1139
|
strokeWidth = 1
|
|
881
|
-
} =
|
|
882
|
-
props = _objectWithoutPropertiesLoose(
|
|
1140
|
+
} = _ref25,
|
|
1141
|
+
props = _objectWithoutPropertiesLoose(_ref25, _excluded25);
|
|
883
1142
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
884
1143
|
widthHeight: widthHeight,
|
|
885
1144
|
color: color
|
|
@@ -903,14 +1162,14 @@ var WarningIcon = _ref23 => {
|
|
|
903
1162
|
y2: "15"
|
|
904
1163
|
})));
|
|
905
1164
|
};
|
|
906
|
-
var BatteryIcon =
|
|
1165
|
+
var BatteryIcon = _ref26 => {
|
|
907
1166
|
var {
|
|
908
1167
|
widthHeight = 24,
|
|
909
1168
|
color = 'currentColor',
|
|
910
1169
|
filled = true,
|
|
911
1170
|
strokeWidth = 1
|
|
912
|
-
} =
|
|
913
|
-
props = _objectWithoutPropertiesLoose(
|
|
1171
|
+
} = _ref26,
|
|
1172
|
+
props = _objectWithoutPropertiesLoose(_ref26, _excluded26);
|
|
914
1173
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
915
1174
|
widthHeight: widthHeight,
|
|
916
1175
|
color: color
|
|
@@ -922,14 +1181,14 @@ var BatteryIcon = _ref24 => {
|
|
|
922
1181
|
d: "M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z"
|
|
923
1182
|
})));
|
|
924
1183
|
};
|
|
925
|
-
var BookmarkIcon =
|
|
1184
|
+
var BookmarkIcon = _ref27 => {
|
|
926
1185
|
var {
|
|
927
1186
|
widthHeight = 24,
|
|
928
1187
|
color = 'currentColor',
|
|
929
1188
|
filled = false,
|
|
930
1189
|
strokeWidth = 1
|
|
931
|
-
} =
|
|
932
|
-
props = _objectWithoutPropertiesLoose(
|
|
1190
|
+
} = _ref27,
|
|
1191
|
+
props = _objectWithoutPropertiesLoose(_ref27, _excluded27);
|
|
933
1192
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
934
1193
|
widthHeight: widthHeight,
|
|
935
1194
|
color: color
|
|
@@ -941,14 +1200,14 @@ var BookmarkIcon = _ref25 => {
|
|
|
941
1200
|
d: "M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2z"
|
|
942
1201
|
})));
|
|
943
1202
|
};
|
|
944
|
-
var CloudIcon =
|
|
1203
|
+
var CloudIcon = _ref28 => {
|
|
945
1204
|
var {
|
|
946
1205
|
widthHeight = 24,
|
|
947
1206
|
color = 'currentColor',
|
|
948
1207
|
filled = true,
|
|
949
1208
|
strokeWidth = 1
|
|
950
|
-
} =
|
|
951
|
-
props = _objectWithoutPropertiesLoose(
|
|
1209
|
+
} = _ref28,
|
|
1210
|
+
props = _objectWithoutPropertiesLoose(_ref28, _excluded28);
|
|
952
1211
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
953
1212
|
widthHeight: widthHeight,
|
|
954
1213
|
color: color
|
|
@@ -960,14 +1219,14 @@ var CloudIcon = _ref26 => {
|
|
|
960
1219
|
d: "M18 10h-1.26A8 8 0 109 20h9a5 5 0 000-10z"
|
|
961
1220
|
})));
|
|
962
1221
|
};
|
|
963
|
-
var CopyIcon =
|
|
1222
|
+
var CopyIcon = _ref29 => {
|
|
964
1223
|
var {
|
|
965
1224
|
widthHeight = 24,
|
|
966
1225
|
color = 'currentColor',
|
|
967
1226
|
filled = false,
|
|
968
1227
|
strokeWidth = 1
|
|
969
|
-
} =
|
|
970
|
-
props = _objectWithoutPropertiesLoose(
|
|
1228
|
+
} = _ref29,
|
|
1229
|
+
props = _objectWithoutPropertiesLoose(_ref29, _excluded29);
|
|
971
1230
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
972
1231
|
widthHeight: widthHeight,
|
|
973
1232
|
color: color
|
|
@@ -986,14 +1245,14 @@ var CopyIcon = _ref27 => {
|
|
|
986
1245
|
d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"
|
|
987
1246
|
})));
|
|
988
1247
|
};
|
|
989
|
-
var DustBinIcon =
|
|
1248
|
+
var DustBinIcon = _ref30 => {
|
|
990
1249
|
var {
|
|
991
1250
|
widthHeight = 24,
|
|
992
1251
|
color = 'currentColor',
|
|
993
1252
|
filled = false,
|
|
994
1253
|
strokeWidth = 1
|
|
995
|
-
} =
|
|
996
|
-
props = _objectWithoutPropertiesLoose(
|
|
1254
|
+
} = _ref30,
|
|
1255
|
+
props = _objectWithoutPropertiesLoose(_ref30, _excluded30);
|
|
997
1256
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
998
1257
|
widthHeight: widthHeight,
|
|
999
1258
|
color: color
|
|
@@ -1005,14 +1264,15 @@ var DustBinIcon = _ref28 => {
|
|
|
1005
1264
|
d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"
|
|
1006
1265
|
})));
|
|
1007
1266
|
};
|
|
1008
|
-
var
|
|
1267
|
+
var DeleteIcon = DustBinIcon;
|
|
1268
|
+
var EditIcon = _ref31 => {
|
|
1009
1269
|
var {
|
|
1010
1270
|
widthHeight = 24,
|
|
1011
1271
|
color = 'currentColor',
|
|
1012
1272
|
filled = false,
|
|
1013
1273
|
strokeWidth = 1
|
|
1014
|
-
} =
|
|
1015
|
-
props = _objectWithoutPropertiesLoose(
|
|
1274
|
+
} = _ref31,
|
|
1275
|
+
props = _objectWithoutPropertiesLoose(_ref31, _excluded31);
|
|
1016
1276
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1017
1277
|
widthHeight: widthHeight,
|
|
1018
1278
|
color: color
|
|
@@ -1024,14 +1284,14 @@ var EditIcon = _ref29 => {
|
|
|
1024
1284
|
d: "M18.3785 8.44975L8.9636 17.8648C8.6844 18.144 8.3288 18.3343 7.94161 18.4117L4.99988 19.0001L5.58823 16.0583C5.66566 15.6711 5.85597 15.3155 6.13517 15.0363L15.5501 5.62132M18.3785 8.44975L19.7927 7.03553C20.1832 6.64501 20.1832 6.01184 19.7927 5.62132L18.3785 4.20711C17.988 3.81658 17.3548 3.81658 16.9643 4.20711L15.5501 5.62132M18.3785 8.44975L15.5501 5.62132"
|
|
1025
1285
|
})));
|
|
1026
1286
|
};
|
|
1027
|
-
var ErrorIcon =
|
|
1287
|
+
var ErrorIcon = _ref32 => {
|
|
1028
1288
|
var {
|
|
1029
1289
|
widthHeight = 24,
|
|
1030
1290
|
color = 'currentColor',
|
|
1031
1291
|
strokeWidth = 1,
|
|
1032
1292
|
filled = true
|
|
1033
|
-
} =
|
|
1034
|
-
props = _objectWithoutPropertiesLoose(
|
|
1293
|
+
} = _ref32,
|
|
1294
|
+
props = _objectWithoutPropertiesLoose(_ref32, _excluded32);
|
|
1035
1295
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1036
1296
|
widthHeight: widthHeight,
|
|
1037
1297
|
color: color
|
|
@@ -1057,14 +1317,14 @@ var ErrorIcon = _ref30 => {
|
|
|
1057
1317
|
stroke: filled ? 'white' : color
|
|
1058
1318
|
})));
|
|
1059
1319
|
};
|
|
1060
|
-
var DownloadIcon =
|
|
1320
|
+
var DownloadIcon = _ref33 => {
|
|
1061
1321
|
var {
|
|
1062
1322
|
widthHeight = 24,
|
|
1063
1323
|
color = 'currentColor',
|
|
1064
1324
|
filled = true,
|
|
1065
1325
|
strokeWidth = 1
|
|
1066
|
-
} =
|
|
1067
|
-
props = _objectWithoutPropertiesLoose(
|
|
1326
|
+
} = _ref33,
|
|
1327
|
+
props = _objectWithoutPropertiesLoose(_ref33, _excluded33);
|
|
1068
1328
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1069
1329
|
widthHeight: widthHeight,
|
|
1070
1330
|
color: color
|
|
@@ -1076,14 +1336,14 @@ var DownloadIcon = _ref31 => {
|
|
|
1076
1336
|
d: "M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"
|
|
1077
1337
|
})));
|
|
1078
1338
|
};
|
|
1079
|
-
var MenuIcon =
|
|
1339
|
+
var MenuIcon = _ref34 => {
|
|
1080
1340
|
var {
|
|
1081
1341
|
widthHeight = 24,
|
|
1082
1342
|
color = 'currentColor',
|
|
1083
1343
|
strokeWidth = 1,
|
|
1084
1344
|
filled = false
|
|
1085
|
-
} =
|
|
1086
|
-
props = _objectWithoutPropertiesLoose(
|
|
1345
|
+
} = _ref34,
|
|
1346
|
+
props = _objectWithoutPropertiesLoose(_ref34, _excluded34);
|
|
1087
1347
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1088
1348
|
widthHeight: widthHeight,
|
|
1089
1349
|
color: color
|
|
@@ -1111,14 +1371,14 @@ var MenuIcon = _ref32 => {
|
|
|
1111
1371
|
y2: "18"
|
|
1112
1372
|
})));
|
|
1113
1373
|
};
|
|
1114
|
-
var ShareIcon =
|
|
1374
|
+
var ShareIcon = _ref35 => {
|
|
1115
1375
|
var {
|
|
1116
1376
|
widthHeight = 24,
|
|
1117
1377
|
color = 'currentColor',
|
|
1118
1378
|
filled = false,
|
|
1119
1379
|
strokeWidth = 1
|
|
1120
|
-
} =
|
|
1121
|
-
props = _objectWithoutPropertiesLoose(
|
|
1380
|
+
} = _ref35,
|
|
1381
|
+
props = _objectWithoutPropertiesLoose(_ref35, _excluded35);
|
|
1122
1382
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1123
1383
|
widthHeight: widthHeight,
|
|
1124
1384
|
color: color
|
|
@@ -1152,14 +1412,14 @@ var ShareIcon = _ref33 => {
|
|
|
1152
1412
|
y2: "10.49"
|
|
1153
1413
|
})));
|
|
1154
1414
|
};
|
|
1155
|
-
var RefreshIcon =
|
|
1415
|
+
var RefreshIcon = _ref36 => {
|
|
1156
1416
|
var {
|
|
1157
1417
|
widthHeight = 24,
|
|
1158
1418
|
color = 'currentColor',
|
|
1159
1419
|
strokeWidth = 1,
|
|
1160
1420
|
filled = false
|
|
1161
|
-
} =
|
|
1162
|
-
props = _objectWithoutPropertiesLoose(
|
|
1421
|
+
} = _ref36,
|
|
1422
|
+
props = _objectWithoutPropertiesLoose(_ref36, _excluded36);
|
|
1163
1423
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1164
1424
|
widthHeight: widthHeight,
|
|
1165
1425
|
color: color
|
|
@@ -1173,14 +1433,14 @@ var RefreshIcon = _ref34 => {
|
|
|
1173
1433
|
d: "M20.49 15a9 9 0 1 1-2.13-9.36L23 10"
|
|
1174
1434
|
})));
|
|
1175
1435
|
};
|
|
1176
|
-
var PrintIcon =
|
|
1436
|
+
var PrintIcon = _ref37 => {
|
|
1177
1437
|
var {
|
|
1178
1438
|
widthHeight = 24,
|
|
1179
1439
|
color = 'currentColor',
|
|
1180
1440
|
filled = true,
|
|
1181
1441
|
strokeWidth = 1
|
|
1182
|
-
} =
|
|
1183
|
-
props = _objectWithoutPropertiesLoose(
|
|
1442
|
+
} = _ref37,
|
|
1443
|
+
props = _objectWithoutPropertiesLoose(_ref37, _excluded37);
|
|
1184
1444
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1185
1445
|
widthHeight: widthHeight,
|
|
1186
1446
|
color: color
|
|
@@ -1193,14 +1453,14 @@ var PrintIcon = _ref35 => {
|
|
|
1193
1453
|
d: "M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"
|
|
1194
1454
|
})));
|
|
1195
1455
|
};
|
|
1196
|
-
var MagicWandIcon =
|
|
1456
|
+
var MagicWandIcon = _ref38 => {
|
|
1197
1457
|
var {
|
|
1198
1458
|
widthHeight = 24,
|
|
1199
1459
|
color = 'currentColor',
|
|
1200
1460
|
strokeWidth = 1,
|
|
1201
1461
|
filled = true
|
|
1202
|
-
} =
|
|
1203
|
-
props = _objectWithoutPropertiesLoose(
|
|
1462
|
+
} = _ref38,
|
|
1463
|
+
props = _objectWithoutPropertiesLoose(_ref38, _excluded38);
|
|
1204
1464
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1205
1465
|
widthHeight: widthHeight,
|
|
1206
1466
|
color: color
|
|
@@ -1223,14 +1483,14 @@ var MagicWandIcon = _ref36 => {
|
|
|
1223
1483
|
d: "M16 15L16.7 16.5L18 17L16.7 17.5L16 19L15.3 17.5L14 17L15.3 16.5L16 15Z"
|
|
1224
1484
|
})));
|
|
1225
1485
|
};
|
|
1226
|
-
var SliderVerticalIcon =
|
|
1486
|
+
var SliderVerticalIcon = _ref39 => {
|
|
1227
1487
|
var {
|
|
1228
1488
|
widthHeight = 24,
|
|
1229
1489
|
color = 'currentColor',
|
|
1230
1490
|
strokeWidth = 1,
|
|
1231
1491
|
filled = false
|
|
1232
|
-
} =
|
|
1233
|
-
props = _objectWithoutPropertiesLoose(
|
|
1492
|
+
} = _ref39,
|
|
1493
|
+
props = _objectWithoutPropertiesLoose(_ref39, _excluded39);
|
|
1234
1494
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1235
1495
|
widthHeight: widthHeight,
|
|
1236
1496
|
color: color
|
|
@@ -1294,14 +1554,14 @@ var SliderVerticalIcon = _ref37 => {
|
|
|
1294
1554
|
y2: "16"
|
|
1295
1555
|
})));
|
|
1296
1556
|
};
|
|
1297
|
-
var PanelIcon =
|
|
1557
|
+
var PanelIcon = _ref40 => {
|
|
1298
1558
|
var {
|
|
1299
1559
|
widthHeight = 24,
|
|
1300
1560
|
color = 'currentColor',
|
|
1301
1561
|
strokeWidth = 1,
|
|
1302
1562
|
filled = false
|
|
1303
|
-
} =
|
|
1304
|
-
props = _objectWithoutPropertiesLoose(
|
|
1563
|
+
} = _ref40,
|
|
1564
|
+
props = _objectWithoutPropertiesLoose(_ref40, _excluded40);
|
|
1305
1565
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1306
1566
|
widthHeight: widthHeight,
|
|
1307
1567
|
color: color
|
|
@@ -1337,14 +1597,14 @@ var PanelIcon = _ref38 => {
|
|
|
1337
1597
|
y2: "15"
|
|
1338
1598
|
})));
|
|
1339
1599
|
};
|
|
1340
|
-
var FilterIcon =
|
|
1600
|
+
var FilterIcon = _ref41 => {
|
|
1341
1601
|
var {
|
|
1342
1602
|
widthHeight = 24,
|
|
1343
1603
|
color = 'currentColor',
|
|
1344
1604
|
filled = false,
|
|
1345
1605
|
strokeWidth = 1
|
|
1346
|
-
} =
|
|
1347
|
-
props = _objectWithoutPropertiesLoose(
|
|
1606
|
+
} = _ref41,
|
|
1607
|
+
props = _objectWithoutPropertiesLoose(_ref41, _excluded41);
|
|
1348
1608
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1349
1609
|
widthHeight: widthHeight,
|
|
1350
1610
|
color: color
|
|
@@ -1356,14 +1616,14 @@ var FilterIcon = _ref39 => {
|
|
|
1356
1616
|
d: "M3 4h18l-7 10v5l-4 2v-7L3 4z"
|
|
1357
1617
|
})));
|
|
1358
1618
|
};
|
|
1359
|
-
var HomeIcon =
|
|
1619
|
+
var HomeIcon = _ref42 => {
|
|
1360
1620
|
var {
|
|
1361
1621
|
widthHeight = 24,
|
|
1362
1622
|
color = 'currentColor',
|
|
1363
1623
|
filled = true,
|
|
1364
1624
|
strokeWidth = 1
|
|
1365
|
-
} =
|
|
1366
|
-
props = _objectWithoutPropertiesLoose(
|
|
1625
|
+
} = _ref42,
|
|
1626
|
+
props = _objectWithoutPropertiesLoose(_ref42, _excluded42);
|
|
1367
1627
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1368
1628
|
widthHeight: widthHeight,
|
|
1369
1629
|
color: color
|
|
@@ -1375,14 +1635,14 @@ var HomeIcon = _ref40 => {
|
|
|
1375
1635
|
d: "M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8h5z"
|
|
1376
1636
|
})));
|
|
1377
1637
|
};
|
|
1378
|
-
var LocationIcon =
|
|
1638
|
+
var LocationIcon = _ref43 => {
|
|
1379
1639
|
var {
|
|
1380
1640
|
widthHeight = 24,
|
|
1381
1641
|
color = 'currentColor',
|
|
1382
1642
|
filled = true,
|
|
1383
1643
|
strokeWidth = 1
|
|
1384
|
-
} =
|
|
1385
|
-
props = _objectWithoutPropertiesLoose(
|
|
1644
|
+
} = _ref43,
|
|
1645
|
+
props = _objectWithoutPropertiesLoose(_ref43, _excluded43);
|
|
1386
1646
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1387
1647
|
widthHeight: widthHeight,
|
|
1388
1648
|
color: color
|
|
@@ -1394,14 +1654,14 @@ var LocationIcon = _ref41 => {
|
|
|
1394
1654
|
d: "M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"
|
|
1395
1655
|
})));
|
|
1396
1656
|
};
|
|
1397
|
-
var LockIcon =
|
|
1657
|
+
var LockIcon = _ref44 => {
|
|
1398
1658
|
var {
|
|
1399
1659
|
widthHeight = 24,
|
|
1400
1660
|
color = 'currentColor',
|
|
1401
1661
|
filled = false,
|
|
1402
1662
|
strokeWidth = 1
|
|
1403
|
-
} =
|
|
1404
|
-
props = _objectWithoutPropertiesLoose(
|
|
1663
|
+
} = _ref44,
|
|
1664
|
+
props = _objectWithoutPropertiesLoose(_ref44, _excluded44);
|
|
1405
1665
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1406
1666
|
widthHeight: widthHeight,
|
|
1407
1667
|
color: color
|
|
@@ -1409,7 +1669,9 @@ var LockIcon = _ref42 => {
|
|
|
1409
1669
|
viewBox: "0 0 24 24",
|
|
1410
1670
|
"aria-hidden": "false",
|
|
1411
1671
|
focusable: "false"
|
|
1412
|
-
}, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React__default.createElement("
|
|
1672
|
+
}, getSvgProps(filled, color, strokeWidth)), filled ? (/*#__PURE__*/React__default.createElement("path", {
|
|
1673
|
+
d: "M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"
|
|
1674
|
+
})) : (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("rect", {
|
|
1413
1675
|
x: "3",
|
|
1414
1676
|
y: "11",
|
|
1415
1677
|
width: "18",
|
|
@@ -1418,16 +1680,20 @@ var LockIcon = _ref42 => {
|
|
|
1418
1680
|
ry: "2"
|
|
1419
1681
|
}), /*#__PURE__*/React__default.createElement("path", {
|
|
1420
1682
|
d: "M7 11V7a5 5 0 0 1 10 0v4"
|
|
1421
|
-
})
|
|
1683
|
+
}), /*#__PURE__*/React__default.createElement("circle", {
|
|
1684
|
+
cx: "12",
|
|
1685
|
+
cy: "16",
|
|
1686
|
+
r: "1.5"
|
|
1687
|
+
})))));
|
|
1422
1688
|
};
|
|
1423
|
-
var MicrophoneIcon =
|
|
1689
|
+
var MicrophoneIcon = _ref45 => {
|
|
1424
1690
|
var {
|
|
1425
1691
|
widthHeight = 24,
|
|
1426
1692
|
color = 'currentColor',
|
|
1427
1693
|
filled = false,
|
|
1428
1694
|
strokeWidth = 1
|
|
1429
|
-
} =
|
|
1430
|
-
props = _objectWithoutPropertiesLoose(
|
|
1695
|
+
} = _ref45,
|
|
1696
|
+
props = _objectWithoutPropertiesLoose(_ref45, _excluded45);
|
|
1431
1697
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1432
1698
|
widthHeight: widthHeight,
|
|
1433
1699
|
color: color
|
|
@@ -1453,14 +1719,14 @@ var MicrophoneIcon = _ref43 => {
|
|
|
1453
1719
|
y2: "23"
|
|
1454
1720
|
})));
|
|
1455
1721
|
};
|
|
1456
|
-
var MoonIcon =
|
|
1722
|
+
var MoonIcon = _ref46 => {
|
|
1457
1723
|
var {
|
|
1458
1724
|
widthHeight = 24,
|
|
1459
1725
|
color = 'currentColor',
|
|
1460
1726
|
filled = true,
|
|
1461
1727
|
strokeWidth = 1
|
|
1462
|
-
} =
|
|
1463
|
-
props = _objectWithoutPropertiesLoose(
|
|
1728
|
+
} = _ref46,
|
|
1729
|
+
props = _objectWithoutPropertiesLoose(_ref46, _excluded46);
|
|
1464
1730
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1465
1731
|
widthHeight: widthHeight,
|
|
1466
1732
|
color: color
|
|
@@ -1472,14 +1738,14 @@ var MoonIcon = _ref44 => {
|
|
|
1472
1738
|
d: "M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"
|
|
1473
1739
|
})));
|
|
1474
1740
|
};
|
|
1475
|
-
var NotificationIcon =
|
|
1741
|
+
var NotificationIcon = _ref47 => {
|
|
1476
1742
|
var {
|
|
1477
1743
|
widthHeight = 24,
|
|
1478
1744
|
color = 'currentColor',
|
|
1479
1745
|
filled = false,
|
|
1480
1746
|
strokeWidth = 1
|
|
1481
|
-
} =
|
|
1482
|
-
props = _objectWithoutPropertiesLoose(
|
|
1747
|
+
} = _ref47,
|
|
1748
|
+
props = _objectWithoutPropertiesLoose(_ref47, _excluded47);
|
|
1483
1749
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1484
1750
|
widthHeight: widthHeight,
|
|
1485
1751
|
color: color
|
|
@@ -1493,14 +1759,14 @@ var NotificationIcon = _ref45 => {
|
|
|
1493
1759
|
d: "M13.73 21a2 2 0 0 1-3.46 0"
|
|
1494
1760
|
})));
|
|
1495
1761
|
};
|
|
1496
|
-
var OpenEyeIcon =
|
|
1762
|
+
var OpenEyeIcon = _ref48 => {
|
|
1497
1763
|
var {
|
|
1498
1764
|
widthHeight = 24,
|
|
1499
1765
|
color = 'currentColor',
|
|
1500
1766
|
filled = true,
|
|
1501
1767
|
strokeWidth = 1
|
|
1502
|
-
} =
|
|
1503
|
-
props = _objectWithoutPropertiesLoose(
|
|
1768
|
+
} = _ref48,
|
|
1769
|
+
props = _objectWithoutPropertiesLoose(_ref48, _excluded48);
|
|
1504
1770
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1505
1771
|
widthHeight: widthHeight,
|
|
1506
1772
|
color: color
|
|
@@ -1512,14 +1778,14 @@ var OpenEyeIcon = _ref46 => {
|
|
|
1512
1778
|
d: "M12 4C7 4 2.73 7.11 1 12c1.73 4.89 6 8 11 8s9.27-3.11 11-8c-1.73-4.89-6-8-11-8zm0 12.5c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"
|
|
1513
1779
|
})));
|
|
1514
1780
|
};
|
|
1515
|
-
var ProfileIcon =
|
|
1781
|
+
var ProfileIcon = _ref49 => {
|
|
1516
1782
|
var {
|
|
1517
1783
|
widthHeight = 24,
|
|
1518
1784
|
color = 'currentColor',
|
|
1519
1785
|
filled = true,
|
|
1520
1786
|
strokeWidth = 1
|
|
1521
|
-
} =
|
|
1522
|
-
props = _objectWithoutPropertiesLoose(
|
|
1787
|
+
} = _ref49,
|
|
1788
|
+
props = _objectWithoutPropertiesLoose(_ref49, _excluded49);
|
|
1523
1789
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1524
1790
|
widthHeight: widthHeight,
|
|
1525
1791
|
color: color
|
|
@@ -1532,14 +1798,14 @@ var ProfileIcon = _ref47 => {
|
|
|
1532
1798
|
d: "M12 13c-2.67 0-8 1.34-8 4v2c0 .55.45 1 1 1h14c.55 0 1-.45 1-1v-2c0-2.66-5.33-4-8-4zm0-9c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z M12 2C9.79 2 8 3.79 8 6s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4z M12 13c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z"
|
|
1533
1799
|
}), ' '));
|
|
1534
1800
|
};
|
|
1535
|
-
var SettingsIcon =
|
|
1801
|
+
var SettingsIcon = _ref50 => {
|
|
1536
1802
|
var {
|
|
1537
1803
|
widthHeight = 24,
|
|
1538
1804
|
color = 'currentColor',
|
|
1539
1805
|
filled = false,
|
|
1540
1806
|
strokeWidth = 1
|
|
1541
|
-
} =
|
|
1542
|
-
props = _objectWithoutPropertiesLoose(
|
|
1807
|
+
} = _ref50,
|
|
1808
|
+
props = _objectWithoutPropertiesLoose(_ref50, _excluded50);
|
|
1543
1809
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1544
1810
|
widthHeight: widthHeight,
|
|
1545
1811
|
color: color
|
|
@@ -1551,14 +1817,14 @@ var SettingsIcon = _ref48 => {
|
|
|
1551
1817
|
d: "M19.4 13c0-.3.1-.6.1-1s0-.7-.1-1l2.1-1.6c.2-.2.2-.4.1-.6l-2-3.5c-.1-.2-.4-.3-.6-.2l-2.5 1c-.5-.4-1.1-.7-1.7-.9l-.4-2.6c0-.2-.3-.4-.5-.4h-4c-.2 0-.5.2-.5.4l-.4 2.6c-.6.2-1.2.5-1.7.9l-2.5-1c-.2-.1-.5 0-.6.2l-2 3.5c-.1.2-.1.4.1.6L4.6 11c0 .3-.1.6-.1 1s0 .7.1 1l-2.1 1.6c-.2.2-.2.4-.1.6l2 3.5c.1.2.4.3.6.2l2.5-1c.5.4 1.1.7 1.7.9l.4 2.6c0 .2.3.4.5.4h4c.2 0 .5-.2.5-.4l.4-2.6c.6-.2 1.2-.5 1.7-.9l2.5 1c.2.1.5 0 .6-.2l2-3.5c.1-.2.1-.4-.1-.6L19.4 13zM12 15.5c-1.9 0-3.5-1.6-3.5-3.5s1.6-3.5 3.5-3.5 3.5 1.6 3.5 3.5-1.6 3.5-3.5 3.5z"
|
|
1552
1818
|
})));
|
|
1553
1819
|
};
|
|
1554
|
-
var SuccessIcon =
|
|
1820
|
+
var SuccessIcon = _ref51 => {
|
|
1555
1821
|
var {
|
|
1556
1822
|
widthHeight = 24,
|
|
1557
1823
|
color = 'currentColor',
|
|
1558
1824
|
filled = true,
|
|
1559
1825
|
strokeWidth = 1
|
|
1560
|
-
} =
|
|
1561
|
-
props = _objectWithoutPropertiesLoose(
|
|
1826
|
+
} = _ref51,
|
|
1827
|
+
props = _objectWithoutPropertiesLoose(_ref51, _excluded51);
|
|
1562
1828
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1563
1829
|
widthHeight: widthHeight,
|
|
1564
1830
|
color: color
|
|
@@ -1570,14 +1836,14 @@ var SuccessIcon = _ref49 => {
|
|
|
1570
1836
|
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
|
|
1571
1837
|
})));
|
|
1572
1838
|
};
|
|
1573
|
-
var UnLikeIcon =
|
|
1839
|
+
var UnLikeIcon = _ref52 => {
|
|
1574
1840
|
var {
|
|
1575
1841
|
widthHeight = 24,
|
|
1576
1842
|
color = 'currentColor',
|
|
1577
1843
|
filled = true,
|
|
1578
1844
|
strokeWidth = 1
|
|
1579
|
-
} =
|
|
1580
|
-
props = _objectWithoutPropertiesLoose(
|
|
1845
|
+
} = _ref52,
|
|
1846
|
+
props = _objectWithoutPropertiesLoose(_ref52, _excluded52);
|
|
1581
1847
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1582
1848
|
widthHeight: widthHeight,
|
|
1583
1849
|
color: color
|
|
@@ -1589,14 +1855,14 @@ var UnLikeIcon = _ref50 => {
|
|
|
1589
1855
|
d: "M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z"
|
|
1590
1856
|
})));
|
|
1591
1857
|
};
|
|
1592
|
-
var ClockIcon =
|
|
1858
|
+
var ClockIcon = _ref53 => {
|
|
1593
1859
|
var {
|
|
1594
1860
|
widthHeight = 24,
|
|
1595
1861
|
color = 'currentColor',
|
|
1596
1862
|
strokeWidth = 1,
|
|
1597
1863
|
filled = false
|
|
1598
|
-
} =
|
|
1599
|
-
props = _objectWithoutPropertiesLoose(
|
|
1864
|
+
} = _ref53,
|
|
1865
|
+
props = _objectWithoutPropertiesLoose(_ref53, _excluded53);
|
|
1600
1866
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1601
1867
|
widthHeight: widthHeight,
|
|
1602
1868
|
color: color
|
|
@@ -1612,14 +1878,14 @@ var ClockIcon = _ref51 => {
|
|
|
1612
1878
|
points: "12 6 12 12 16 14"
|
|
1613
1879
|
})));
|
|
1614
1880
|
};
|
|
1615
|
-
var CameraIcon =
|
|
1881
|
+
var CameraIcon = _ref54 => {
|
|
1616
1882
|
var {
|
|
1617
1883
|
widthHeight = 24,
|
|
1618
1884
|
color = 'currentColor',
|
|
1619
1885
|
strokeWidth = 1,
|
|
1620
1886
|
filled = false
|
|
1621
|
-
} =
|
|
1622
|
-
props = _objectWithoutPropertiesLoose(
|
|
1887
|
+
} = _ref54,
|
|
1888
|
+
props = _objectWithoutPropertiesLoose(_ref54, _excluded54);
|
|
1623
1889
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1624
1890
|
widthHeight: widthHeight,
|
|
1625
1891
|
color: color
|
|
@@ -1635,14 +1901,14 @@ var CameraIcon = _ref52 => {
|
|
|
1635
1901
|
r: "4"
|
|
1636
1902
|
})));
|
|
1637
1903
|
};
|
|
1638
|
-
var BluetoothIcon =
|
|
1904
|
+
var BluetoothIcon = _ref55 => {
|
|
1639
1905
|
var {
|
|
1640
1906
|
widthHeight = 24,
|
|
1641
1907
|
color = 'currentColor',
|
|
1642
1908
|
filled = true,
|
|
1643
1909
|
strokeWidth = 1
|
|
1644
|
-
} =
|
|
1645
|
-
props = _objectWithoutPropertiesLoose(
|
|
1910
|
+
} = _ref55,
|
|
1911
|
+
props = _objectWithoutPropertiesLoose(_ref55, _excluded55);
|
|
1646
1912
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1647
1913
|
widthHeight: widthHeight,
|
|
1648
1914
|
color: color
|
|
@@ -1654,14 +1920,14 @@ var BluetoothIcon = _ref53 => {
|
|
|
1654
1920
|
d: "M17.71 7.71L12 2h-1v7.59L6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 5.83l1.88 1.88L13 9.59V5.83zm1.88 10.46L13 18.17v-3.76l1.88 1.88z"
|
|
1655
1921
|
})));
|
|
1656
1922
|
};
|
|
1657
|
-
var LikeIcon =
|
|
1923
|
+
var LikeIcon = _ref56 => {
|
|
1658
1924
|
var {
|
|
1659
1925
|
widthHeight = 24,
|
|
1660
1926
|
color = 'currentColor',
|
|
1661
1927
|
filled = true,
|
|
1662
1928
|
strokeWidth = 1
|
|
1663
|
-
} =
|
|
1664
|
-
props = _objectWithoutPropertiesLoose(
|
|
1929
|
+
} = _ref56,
|
|
1930
|
+
props = _objectWithoutPropertiesLoose(_ref56, _excluded56);
|
|
1665
1931
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1666
1932
|
widthHeight: widthHeight,
|
|
1667
1933
|
color: color
|
|
@@ -1673,14 +1939,14 @@ var LikeIcon = _ref54 => {
|
|
|
1673
1939
|
d: "M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-2z"
|
|
1674
1940
|
})));
|
|
1675
1941
|
};
|
|
1676
|
-
var UnlockIcon =
|
|
1942
|
+
var UnlockIcon = _ref57 => {
|
|
1677
1943
|
var {
|
|
1678
1944
|
widthHeight = 24,
|
|
1679
1945
|
color = 'currentColor',
|
|
1680
1946
|
filled = false,
|
|
1681
1947
|
strokeWidth = 1
|
|
1682
|
-
} =
|
|
1683
|
-
props = _objectWithoutPropertiesLoose(
|
|
1948
|
+
} = _ref57,
|
|
1949
|
+
props = _objectWithoutPropertiesLoose(_ref57, _excluded57);
|
|
1684
1950
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1685
1951
|
widthHeight: widthHeight,
|
|
1686
1952
|
color: color
|
|
@@ -1688,7 +1954,9 @@ var UnlockIcon = _ref55 => {
|
|
|
1688
1954
|
viewBox: "0 0 24 24",
|
|
1689
1955
|
"aria-hidden": "false",
|
|
1690
1956
|
focusable: "false"
|
|
1691
|
-
}, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React__default.createElement("
|
|
1957
|
+
}, getSvgProps(filled, color, strokeWidth)), filled ? (/*#__PURE__*/React__default.createElement("path", {
|
|
1958
|
+
d: "M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2z"
|
|
1959
|
+
})) : (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("rect", {
|
|
1692
1960
|
x: "3",
|
|
1693
1961
|
y: "11",
|
|
1694
1962
|
width: "18",
|
|
@@ -1697,16 +1965,20 @@ var UnlockIcon = _ref55 => {
|
|
|
1697
1965
|
ry: "2"
|
|
1698
1966
|
}), /*#__PURE__*/React__default.createElement("path", {
|
|
1699
1967
|
d: "M7 11V7a5 5 0 0 1 9.9-1"
|
|
1700
|
-
})
|
|
1968
|
+
}), /*#__PURE__*/React__default.createElement("circle", {
|
|
1969
|
+
cx: "12",
|
|
1970
|
+
cy: "16",
|
|
1971
|
+
r: "1.5"
|
|
1972
|
+
})))));
|
|
1701
1973
|
};
|
|
1702
|
-
var WifiIcon =
|
|
1974
|
+
var WifiIcon = _ref58 => {
|
|
1703
1975
|
var {
|
|
1704
1976
|
widthHeight = 24,
|
|
1705
1977
|
color = 'currentColor',
|
|
1706
1978
|
filled = false,
|
|
1707
1979
|
strokeWidth = 1
|
|
1708
|
-
} =
|
|
1709
|
-
props = _objectWithoutPropertiesLoose(
|
|
1980
|
+
} = _ref58,
|
|
1981
|
+
props = _objectWithoutPropertiesLoose(_ref58, _excluded58);
|
|
1710
1982
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1711
1983
|
widthHeight: widthHeight,
|
|
1712
1984
|
color: color
|
|
@@ -1718,14 +1990,14 @@ var WifiIcon = _ref56 => {
|
|
|
1718
1990
|
d: "M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3c-1.65-1.66-4.34-1.66-6 0zm-4-4l2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9.14 8.87 9.14 5 13z"
|
|
1719
1991
|
})));
|
|
1720
1992
|
};
|
|
1721
|
-
var UploadIcon =
|
|
1993
|
+
var UploadIcon = _ref59 => {
|
|
1722
1994
|
var {
|
|
1723
1995
|
widthHeight = 24,
|
|
1724
1996
|
color = 'currentColor',
|
|
1725
1997
|
filled = false,
|
|
1726
1998
|
strokeWidth = 1
|
|
1727
|
-
} =
|
|
1728
|
-
props = _objectWithoutPropertiesLoose(
|
|
1999
|
+
} = _ref59,
|
|
2000
|
+
props = _objectWithoutPropertiesLoose(_ref59, _excluded59);
|
|
1729
2001
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1730
2002
|
widthHeight: widthHeight,
|
|
1731
2003
|
color: color
|
|
@@ -1741,14 +2013,14 @@ var UploadIcon = _ref57 => {
|
|
|
1741
2013
|
d: "M12 12l0 9"
|
|
1742
2014
|
})));
|
|
1743
2015
|
};
|
|
1744
|
-
var SearchIcon =
|
|
2016
|
+
var SearchIcon = _ref60 => {
|
|
1745
2017
|
var {
|
|
1746
2018
|
widthHeight = 24,
|
|
1747
2019
|
color = 'currentColor',
|
|
1748
2020
|
filled = true,
|
|
1749
2021
|
strokeWidth = 1
|
|
1750
|
-
} =
|
|
1751
|
-
props = _objectWithoutPropertiesLoose(
|
|
2022
|
+
} = _ref60,
|
|
2023
|
+
props = _objectWithoutPropertiesLoose(_ref60, _excluded60);
|
|
1752
2024
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1753
2025
|
widthHeight: widthHeight,
|
|
1754
2026
|
color: color
|
|
@@ -1760,14 +2032,14 @@ var SearchIcon = _ref58 => {
|
|
|
1760
2032
|
d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"
|
|
1761
2033
|
})));
|
|
1762
2034
|
};
|
|
1763
|
-
var CloseEyeIcon =
|
|
2035
|
+
var CloseEyeIcon = _ref61 => {
|
|
1764
2036
|
var {
|
|
1765
2037
|
widthHeight = 24,
|
|
1766
2038
|
color = 'currentColor',
|
|
1767
2039
|
filled = true,
|
|
1768
2040
|
strokeWidth = 1
|
|
1769
|
-
} =
|
|
1770
|
-
props = _objectWithoutPropertiesLoose(
|
|
2041
|
+
} = _ref61,
|
|
2042
|
+
props = _objectWithoutPropertiesLoose(_ref61, _excluded61);
|
|
1771
2043
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1772
2044
|
widthHeight: widthHeight,
|
|
1773
2045
|
color: color
|
|
@@ -1780,14 +2052,14 @@ var CloseEyeIcon = _ref59 => {
|
|
|
1780
2052
|
fill: "currentColor"
|
|
1781
2053
|
})));
|
|
1782
2054
|
};
|
|
1783
|
-
var ExternalLinkIcon =
|
|
2055
|
+
var ExternalLinkIcon = _ref62 => {
|
|
1784
2056
|
var {
|
|
1785
2057
|
widthHeight = 24,
|
|
1786
2058
|
color = 'currentColor',
|
|
1787
2059
|
filled = true,
|
|
1788
2060
|
strokeWidth = 1
|
|
1789
|
-
} =
|
|
1790
|
-
props = _objectWithoutPropertiesLoose(
|
|
2061
|
+
} = _ref62,
|
|
2062
|
+
props = _objectWithoutPropertiesLoose(_ref62, _excluded62);
|
|
1791
2063
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1792
2064
|
widthHeight: widthHeight,
|
|
1793
2065
|
color: color
|
|
@@ -1799,14 +2071,14 @@ var ExternalLinkIcon = _ref60 => {
|
|
|
1799
2071
|
d: "M14 3h7v7h-2V5.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3ZM5 5h5v2H6v11h11v-4h2v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1Z"
|
|
1800
2072
|
})));
|
|
1801
2073
|
};
|
|
1802
|
-
var PlusIcon =
|
|
2074
|
+
var PlusIcon = _ref63 => {
|
|
1803
2075
|
var {
|
|
1804
2076
|
widthHeight = 24,
|
|
1805
2077
|
color = 'currentColor',
|
|
1806
2078
|
filled = false,
|
|
1807
2079
|
strokeWidth = 1
|
|
1808
|
-
} =
|
|
1809
|
-
props = _objectWithoutPropertiesLoose(
|
|
2080
|
+
} = _ref63,
|
|
2081
|
+
props = _objectWithoutPropertiesLoose(_ref63, _excluded63);
|
|
1810
2082
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1811
2083
|
widthHeight: widthHeight,
|
|
1812
2084
|
color: color
|
|
@@ -1828,14 +2100,14 @@ var PlusIcon = _ref61 => {
|
|
|
1828
2100
|
y2: "12"
|
|
1829
2101
|
})));
|
|
1830
2102
|
};
|
|
1831
|
-
var TickIcon =
|
|
2103
|
+
var TickIcon = _ref64 => {
|
|
1832
2104
|
var {
|
|
1833
2105
|
widthHeight = 24,
|
|
1834
2106
|
color = 'currentColor',
|
|
1835
2107
|
filled = false,
|
|
1836
2108
|
strokeWidth = 1
|
|
1837
|
-
} =
|
|
1838
|
-
props = _objectWithoutPropertiesLoose(
|
|
2109
|
+
} = _ref64,
|
|
2110
|
+
props = _objectWithoutPropertiesLoose(_ref64, _excluded64);
|
|
1839
2111
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1840
2112
|
widthHeight: widthHeight,
|
|
1841
2113
|
color: color
|
|
@@ -1849,14 +2121,14 @@ var TickIcon = _ref62 => {
|
|
|
1849
2121
|
strokeLinejoin: "round"
|
|
1850
2122
|
})));
|
|
1851
2123
|
};
|
|
1852
|
-
var BoldArrowIcon =
|
|
2124
|
+
var BoldArrowIcon = _ref65 => {
|
|
1853
2125
|
var {
|
|
1854
2126
|
widthHeight = 24,
|
|
1855
2127
|
color = 'currentColor',
|
|
1856
2128
|
filled = true,
|
|
1857
2129
|
strokeWidth = 1
|
|
1858
|
-
} =
|
|
1859
|
-
props = _objectWithoutPropertiesLoose(
|
|
2130
|
+
} = _ref65,
|
|
2131
|
+
props = _objectWithoutPropertiesLoose(_ref65, _excluded65);
|
|
1860
2132
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1861
2133
|
widthHeight: widthHeight,
|
|
1862
2134
|
color: color
|
|
@@ -1868,14 +2140,14 @@ var BoldArrowIcon = _ref63 => {
|
|
|
1868
2140
|
d: "M12 4l7 7h-4v7h-6v-7H5l7-7z"
|
|
1869
2141
|
})));
|
|
1870
2142
|
};
|
|
1871
|
-
var ArrowIcon =
|
|
2143
|
+
var ArrowIcon = _ref66 => {
|
|
1872
2144
|
var {
|
|
1873
2145
|
widthHeight = 24,
|
|
1874
2146
|
color = 'currentColor',
|
|
1875
2147
|
filled = false,
|
|
1876
2148
|
strokeWidth = 1
|
|
1877
|
-
} =
|
|
1878
|
-
props = _objectWithoutPropertiesLoose(
|
|
2149
|
+
} = _ref66,
|
|
2150
|
+
props = _objectWithoutPropertiesLoose(_ref66, _excluded66);
|
|
1879
2151
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1880
2152
|
widthHeight: widthHeight,
|
|
1881
2153
|
color: color
|
|
@@ -1893,14 +2165,14 @@ var ArrowIcon = _ref64 => {
|
|
|
1893
2165
|
points: "6 12 12 6 18 12"
|
|
1894
2166
|
})));
|
|
1895
2167
|
};
|
|
1896
|
-
var SpinnerIcon =
|
|
2168
|
+
var SpinnerIcon = _ref67 => {
|
|
1897
2169
|
var {
|
|
1898
2170
|
widthHeight = 24,
|
|
1899
2171
|
color = 'currentColor',
|
|
1900
2172
|
filled = false,
|
|
1901
2173
|
strokeWidth = 1
|
|
1902
|
-
} =
|
|
1903
|
-
props = _objectWithoutPropertiesLoose(
|
|
2174
|
+
} = _ref67,
|
|
2175
|
+
props = _objectWithoutPropertiesLoose(_ref67, _excluded67);
|
|
1904
2176
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1905
2177
|
widthHeight: widthHeight,
|
|
1906
2178
|
color: color
|
|
@@ -1918,14 +2190,14 @@ var SpinnerIcon = _ref65 => {
|
|
|
1918
2190
|
strokeOpacity: "1"
|
|
1919
2191
|
})));
|
|
1920
2192
|
};
|
|
1921
|
-
var CalendarIcon =
|
|
2193
|
+
var CalendarIcon = _ref68 => {
|
|
1922
2194
|
var {
|
|
1923
2195
|
widthHeight = 24,
|
|
1924
2196
|
color = 'currentColor',
|
|
1925
2197
|
strokeWidth = 1,
|
|
1926
2198
|
filled = false
|
|
1927
|
-
} =
|
|
1928
|
-
props = _objectWithoutPropertiesLoose(
|
|
2199
|
+
} = _ref68,
|
|
2200
|
+
props = _objectWithoutPropertiesLoose(_ref68, _excluded68);
|
|
1929
2201
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1930
2202
|
widthHeight: widthHeight,
|
|
1931
2203
|
color: color
|
|
@@ -1960,14 +2232,14 @@ var CalendarIcon = _ref66 => {
|
|
|
1960
2232
|
y2: "10"
|
|
1961
2233
|
})));
|
|
1962
2234
|
};
|
|
1963
|
-
var SliderIcon =
|
|
2235
|
+
var SliderIcon = _ref69 => {
|
|
1964
2236
|
var {
|
|
1965
2237
|
widthHeight = 24,
|
|
1966
2238
|
color = 'currentColor',
|
|
1967
2239
|
strokeWidth = 1,
|
|
1968
2240
|
filled = false
|
|
1969
|
-
} =
|
|
1970
|
-
props = _objectWithoutPropertiesLoose(
|
|
2241
|
+
} = _ref69,
|
|
2242
|
+
props = _objectWithoutPropertiesLoose(_ref69, _excluded69);
|
|
1971
2243
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1972
2244
|
widthHeight: widthHeight,
|
|
1973
2245
|
color: color
|
|
@@ -2022,14 +2294,14 @@ var SliderIcon = _ref67 => {
|
|
|
2022
2294
|
y2: "23"
|
|
2023
2295
|
})));
|
|
2024
2296
|
};
|
|
2025
|
-
var CropIcon =
|
|
2297
|
+
var CropIcon = _ref70 => {
|
|
2026
2298
|
var {
|
|
2027
2299
|
widthHeight = 24,
|
|
2028
2300
|
color = 'currentColor',
|
|
2029
2301
|
strokeWidth = 1,
|
|
2030
2302
|
filled = false
|
|
2031
|
-
} =
|
|
2032
|
-
props = _objectWithoutPropertiesLoose(
|
|
2303
|
+
} = _ref70,
|
|
2304
|
+
props = _objectWithoutPropertiesLoose(_ref70, _excluded70);
|
|
2033
2305
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2034
2306
|
widthHeight: widthHeight,
|
|
2035
2307
|
color: color
|
|
@@ -2043,14 +2315,14 @@ var CropIcon = _ref68 => {
|
|
|
2043
2315
|
d: "M18 22V8a2 2 0 0 0-2-2H2"
|
|
2044
2316
|
})));
|
|
2045
2317
|
};
|
|
2046
|
-
var ZoomInIcon =
|
|
2318
|
+
var ZoomInIcon = _ref71 => {
|
|
2047
2319
|
var {
|
|
2048
2320
|
widthHeight = 24,
|
|
2049
2321
|
color = 'currentColor',
|
|
2050
2322
|
strokeWidth = 1,
|
|
2051
2323
|
filled = false
|
|
2052
|
-
} =
|
|
2053
|
-
props = _objectWithoutPropertiesLoose(
|
|
2324
|
+
} = _ref71,
|
|
2325
|
+
props = _objectWithoutPropertiesLoose(_ref71, _excluded71);
|
|
2054
2326
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2055
2327
|
widthHeight: widthHeight,
|
|
2056
2328
|
color: color
|
|
@@ -2079,14 +2351,14 @@ var ZoomInIcon = _ref69 => {
|
|
|
2079
2351
|
y2: "11"
|
|
2080
2352
|
})));
|
|
2081
2353
|
};
|
|
2082
|
-
var ZoomOutIcon =
|
|
2354
|
+
var ZoomOutIcon = _ref72 => {
|
|
2083
2355
|
var {
|
|
2084
2356
|
widthHeight = 24,
|
|
2085
2357
|
color = 'currentColor',
|
|
2086
2358
|
strokeWidth = 1,
|
|
2087
2359
|
filled = false
|
|
2088
|
-
} =
|
|
2089
|
-
props = _objectWithoutPropertiesLoose(
|
|
2360
|
+
} = _ref72,
|
|
2361
|
+
props = _objectWithoutPropertiesLoose(_ref72, _excluded72);
|
|
2090
2362
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2091
2363
|
widthHeight: widthHeight,
|
|
2092
2364
|
color: color
|
|
@@ -2110,14 +2382,14 @@ var ZoomOutIcon = _ref70 => {
|
|
|
2110
2382
|
y2: "11"
|
|
2111
2383
|
})));
|
|
2112
2384
|
};
|
|
2113
|
-
var TextIcon =
|
|
2385
|
+
var TextIcon = _ref73 => {
|
|
2114
2386
|
var {
|
|
2115
2387
|
widthHeight = 24,
|
|
2116
2388
|
color = 'currentColor',
|
|
2117
2389
|
strokeWidth = 1,
|
|
2118
2390
|
filled = false
|
|
2119
|
-
} =
|
|
2120
|
-
props = _objectWithoutPropertiesLoose(
|
|
2391
|
+
} = _ref73,
|
|
2392
|
+
props = _objectWithoutPropertiesLoose(_ref73, _excluded73);
|
|
2121
2393
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2122
2394
|
widthHeight: widthHeight,
|
|
2123
2395
|
color: color
|
|
@@ -2142,14 +2414,14 @@ var TextIcon = _ref71 => {
|
|
|
2142
2414
|
y2: "18"
|
|
2143
2415
|
})));
|
|
2144
2416
|
};
|
|
2145
|
-
var ShapeIcon =
|
|
2417
|
+
var ShapeIcon = _ref74 => {
|
|
2146
2418
|
var {
|
|
2147
2419
|
widthHeight = 24,
|
|
2148
2420
|
color = 'currentColor',
|
|
2149
2421
|
strokeWidth = 1,
|
|
2150
2422
|
filled = false
|
|
2151
|
-
} =
|
|
2152
|
-
props = _objectWithoutPropertiesLoose(
|
|
2423
|
+
} = _ref74,
|
|
2424
|
+
props = _objectWithoutPropertiesLoose(_ref74, _excluded74);
|
|
2153
2425
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2154
2426
|
widthHeight: widthHeight,
|
|
2155
2427
|
color: color
|
|
@@ -2170,14 +2442,14 @@ var ShapeIcon = _ref72 => {
|
|
|
2170
2442
|
points: "16,4 19,8 13,8"
|
|
2171
2443
|
})));
|
|
2172
2444
|
};
|
|
2173
|
-
var RotateIcon =
|
|
2445
|
+
var RotateIcon = _ref75 => {
|
|
2174
2446
|
var {
|
|
2175
2447
|
widthHeight = 24,
|
|
2176
2448
|
color = 'currentColor',
|
|
2177
2449
|
strokeWidth = 1,
|
|
2178
2450
|
filled = false
|
|
2179
|
-
} =
|
|
2180
|
-
props = _objectWithoutPropertiesLoose(
|
|
2451
|
+
} = _ref75,
|
|
2452
|
+
props = _objectWithoutPropertiesLoose(_ref75, _excluded75);
|
|
2181
2453
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2182
2454
|
widthHeight: widthHeight,
|
|
2183
2455
|
color: color
|
|
@@ -2194,6 +2466,8 @@ var RotateIcon = _ref73 => {
|
|
|
2194
2466
|
|
|
2195
2467
|
var Icon = {
|
|
2196
2468
|
__proto__: null,
|
|
2469
|
+
UserIcon: UserIcon,
|
|
2470
|
+
HelpIcon: HelpIcon,
|
|
2197
2471
|
ChevronIcon: ChevronIcon,
|
|
2198
2472
|
DragHandleIcon: DragHandleIcon,
|
|
2199
2473
|
FileIcon: FileIcon,
|
|
@@ -2221,6 +2495,7 @@ var Icon = {
|
|
|
2221
2495
|
CloudIcon: CloudIcon,
|
|
2222
2496
|
CopyIcon: CopyIcon,
|
|
2223
2497
|
DustBinIcon: DustBinIcon,
|
|
2498
|
+
DeleteIcon: DeleteIcon,
|
|
2224
2499
|
EditIcon: EditIcon,
|
|
2225
2500
|
ErrorIcon: ErrorIcon,
|
|
2226
2501
|
DownloadIcon: DownloadIcon,
|
|
@@ -3181,60 +3456,498 @@ var ButtonComponent = props => {
|
|
|
3181
3456
|
};
|
|
3182
3457
|
var Button = ButtonComponent;
|
|
3183
3458
|
|
|
3184
|
-
var
|
|
3185
|
-
|
|
3186
|
-
var
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
}
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
}
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3459
|
+
var useContextMenuState = () => {
|
|
3460
|
+
var [isOpen, setIsOpen] = React.useState(false);
|
|
3461
|
+
var [position, setPosition] = React.useState({
|
|
3462
|
+
x: 0,
|
|
3463
|
+
y: 0
|
|
3464
|
+
});
|
|
3465
|
+
var [activeSubmenuId, setActiveSubmenuId] = React.useState(null);
|
|
3466
|
+
// Close the context menu when clicking outside
|
|
3467
|
+
React.useEffect(() => {
|
|
3468
|
+
var handleClickOutside = event => {
|
|
3469
|
+
var path = event.composedPath();
|
|
3470
|
+
var isOutside = !path.some(element => (element == null ? void 0 : element.id) === 'context-menu');
|
|
3471
|
+
if (isOutside && isOpen) {
|
|
3472
|
+
setIsOpen(false);
|
|
3473
|
+
setActiveSubmenuId(null);
|
|
3474
|
+
}
|
|
3475
|
+
};
|
|
3476
|
+
// Close the context menu when the window is resized
|
|
3477
|
+
var handleResize = () => {
|
|
3478
|
+
if (isOpen) {
|
|
3479
|
+
setIsOpen(false);
|
|
3480
|
+
setActiveSubmenuId(null);
|
|
3481
|
+
}
|
|
3482
|
+
};
|
|
3483
|
+
// Close the context menu when the escape key is pressed
|
|
3484
|
+
var handleKeyDown = event => {
|
|
3485
|
+
if (event.key === 'Escape' && isOpen) {
|
|
3486
|
+
setIsOpen(false);
|
|
3487
|
+
setActiveSubmenuId(null);
|
|
3488
|
+
}
|
|
3489
|
+
};
|
|
3490
|
+
document.addEventListener('mousedown', handleClickOutside);
|
|
3491
|
+
window.addEventListener('resize', handleResize);
|
|
3492
|
+
document.addEventListener('keydown', handleKeyDown);
|
|
3493
|
+
return () => {
|
|
3494
|
+
document.removeEventListener('mousedown', handleClickOutside);
|
|
3495
|
+
window.removeEventListener('resize', handleResize);
|
|
3496
|
+
document.removeEventListener('keydown', handleKeyDown);
|
|
3497
|
+
};
|
|
3498
|
+
}, [isOpen]);
|
|
3499
|
+
return {
|
|
3500
|
+
isOpen,
|
|
3501
|
+
setIsOpen,
|
|
3502
|
+
position,
|
|
3503
|
+
setPosition,
|
|
3504
|
+
activeSubmenuId,
|
|
3505
|
+
setActiveSubmenuId
|
|
3506
|
+
};
|
|
3219
3507
|
};
|
|
3220
3508
|
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3509
|
+
var ContextMenuSizes = {
|
|
3510
|
+
sm: {
|
|
3511
|
+
padding: '6px 8px',
|
|
3512
|
+
fontSize: '14px',
|
|
3513
|
+
minWidth: '160px'
|
|
3514
|
+
},
|
|
3515
|
+
md: {
|
|
3516
|
+
padding: '8px 12px',
|
|
3517
|
+
fontSize: '16px',
|
|
3518
|
+
minWidth: '180px'
|
|
3519
|
+
},
|
|
3520
|
+
lg: {
|
|
3521
|
+
padding: '10px 16px',
|
|
3522
|
+
fontSize: '18px',
|
|
3523
|
+
minWidth: '200px'
|
|
3524
|
+
}
|
|
3525
|
+
};
|
|
3526
|
+
var ContextMenuVariants = {
|
|
3527
|
+
default: {
|
|
3528
|
+
backgroundColor: 'white',
|
|
3529
|
+
color: 'color.gray.800'
|
|
3530
|
+
},
|
|
3531
|
+
filled: {
|
|
3532
|
+
backgroundColor: 'color.gray.100',
|
|
3533
|
+
color: 'color.gray.800'
|
|
3534
|
+
},
|
|
3535
|
+
outline: {
|
|
3536
|
+
backgroundColor: 'white',
|
|
3537
|
+
borderWidth: '1px',
|
|
3538
|
+
borderStyle: 'solid',
|
|
3539
|
+
borderColor: 'color.gray.200',
|
|
3540
|
+
color: 'color.gray.800'
|
|
3541
|
+
}
|
|
3542
|
+
};
|
|
3543
|
+
var ContextMenuItemStates = {
|
|
3544
|
+
hover: {
|
|
3545
|
+
backgroundColor: 'color.gray.100'
|
|
3546
|
+
},
|
|
3547
|
+
active: {
|
|
3548
|
+
backgroundColor: 'color.gray.200'
|
|
3549
|
+
},
|
|
3550
|
+
disabled: {
|
|
3551
|
+
opacity: 0.5,
|
|
3552
|
+
cursor: 'not-allowed'
|
|
3553
|
+
}
|
|
3554
|
+
};
|
|
3555
|
+
// Helper function to calculate position based on available space
|
|
3556
|
+
var calculateMenuPosition = function calculateMenuPosition(x, y, menuWidth, menuHeight, windowWidth, windowHeight, side, align) {
|
|
3557
|
+
if (side === void 0) {
|
|
3558
|
+
side = 'right';
|
|
3559
|
+
}
|
|
3560
|
+
if (align === void 0) {
|
|
3561
|
+
align = 'start';
|
|
3562
|
+
}
|
|
3563
|
+
var posX = x;
|
|
3564
|
+
var posY = y;
|
|
3565
|
+
// Adjust horizontal position based on side
|
|
3566
|
+
if (side === 'left') {
|
|
3567
|
+
posX = x - menuWidth;
|
|
3568
|
+
} else if (side === 'right') {
|
|
3569
|
+
posX = x;
|
|
3570
|
+
} else if (side === 'top' || side === 'bottom') {
|
|
3571
|
+
// Adjust horizontal position based on alignment for top/bottom
|
|
3572
|
+
if (align === 'center') {
|
|
3573
|
+
posX = x - menuWidth / 2;
|
|
3574
|
+
} else if (align === 'end') {
|
|
3575
|
+
posX = x - menuWidth;
|
|
3576
|
+
}
|
|
3577
|
+
}
|
|
3578
|
+
// Adjust vertical position based on side
|
|
3579
|
+
if (side === 'top') {
|
|
3580
|
+
posY = y - menuHeight;
|
|
3581
|
+
} else if (side === 'bottom') {
|
|
3582
|
+
posY = y;
|
|
3583
|
+
} else if (side === 'left' || side === 'right') {
|
|
3584
|
+
// Adjust vertical position based on alignment for left/right
|
|
3585
|
+
if (align === 'center') {
|
|
3586
|
+
posY = y - menuHeight / 2;
|
|
3587
|
+
} else if (align === 'end') {
|
|
3588
|
+
posY = y - menuHeight;
|
|
3589
|
+
}
|
|
3590
|
+
}
|
|
3591
|
+
// Ensure menu stays within window bounds
|
|
3592
|
+
if (posX + menuWidth > windowWidth) {
|
|
3593
|
+
posX = windowWidth - menuWidth;
|
|
3594
|
+
}
|
|
3595
|
+
if (posX < 0) {
|
|
3596
|
+
posX = 0;
|
|
3597
|
+
}
|
|
3598
|
+
if (posY + menuHeight > windowHeight) {
|
|
3599
|
+
posY = windowHeight - menuHeight;
|
|
3600
|
+
}
|
|
3601
|
+
if (posY < 0) {
|
|
3602
|
+
posY = 0;
|
|
3603
|
+
}
|
|
3604
|
+
return {
|
|
3605
|
+
x: posX,
|
|
3606
|
+
y: posY
|
|
3607
|
+
};
|
|
3608
|
+
};
|
|
3609
|
+
|
|
3610
|
+
var _excluded$a = ["children", "disableNativeContextMenu", "views"],
|
|
3611
|
+
_excluded2$2 = ["items", "position", "side", "align", "views"],
|
|
3612
|
+
_excluded3$2 = ["item", "views"],
|
|
3613
|
+
_excluded4$2 = ["views"],
|
|
3614
|
+
_excluded5$1 = ["children", "items", "size", "variant", "disableNativeContextMenu", "views"];
|
|
3615
|
+
// Create context for the ContextMenu
|
|
3616
|
+
var ContextMenuContext = /*#__PURE__*/React.createContext({
|
|
3617
|
+
isOpen: false,
|
|
3618
|
+
setIsOpen: () => {},
|
|
3619
|
+
position: {
|
|
3620
|
+
x: 0,
|
|
3621
|
+
y: 0
|
|
3622
|
+
},
|
|
3623
|
+
setPosition: () => {},
|
|
3624
|
+
activeSubmenuId: null,
|
|
3625
|
+
setActiveSubmenuId: () => {},
|
|
3626
|
+
size: 'md',
|
|
3627
|
+
variant: 'default'
|
|
3628
|
+
});
|
|
3629
|
+
// Provider component for the ContextMenu context
|
|
3630
|
+
var ContextMenuProvider = _ref => {
|
|
3631
|
+
var {
|
|
3632
|
+
children,
|
|
3633
|
+
value
|
|
3634
|
+
} = _ref;
|
|
3635
|
+
return /*#__PURE__*/React__default.createElement(ContextMenuContext.Provider, {
|
|
3636
|
+
value: value
|
|
3637
|
+
}, children);
|
|
3638
|
+
};
|
|
3639
|
+
// Hook to use the ContextMenu context
|
|
3640
|
+
var useContextMenuContext = () => {
|
|
3641
|
+
var context = React.useContext(ContextMenuContext);
|
|
3642
|
+
if (!context) {
|
|
3643
|
+
throw new Error('useContextMenuContext must be used within a ContextMenuProvider');
|
|
3644
|
+
}
|
|
3645
|
+
return context;
|
|
3646
|
+
};
|
|
3647
|
+
// ContextMenu Trigger component
|
|
3648
|
+
var ContextMenuTrigger = _ref2 => {
|
|
3649
|
+
var {
|
|
3650
|
+
children,
|
|
3651
|
+
disableNativeContextMenu = true,
|
|
3652
|
+
views
|
|
3653
|
+
} = _ref2,
|
|
3654
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$a);
|
|
3655
|
+
var {
|
|
3656
|
+
setIsOpen,
|
|
3657
|
+
setPosition
|
|
3658
|
+
} = useContextMenuContext();
|
|
3659
|
+
var handleContextMenu = e => {
|
|
3660
|
+
if (disableNativeContextMenu) {
|
|
3661
|
+
e.preventDefault();
|
|
3662
|
+
}
|
|
3663
|
+
setPosition({
|
|
3664
|
+
x: e.clientX,
|
|
3665
|
+
y: e.clientY
|
|
3666
|
+
});
|
|
3667
|
+
setIsOpen(true);
|
|
3668
|
+
};
|
|
3669
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
3670
|
+
onContextMenu: handleContextMenu
|
|
3671
|
+
}, views == null ? void 0 : views.container, props), children);
|
|
3672
|
+
};
|
|
3673
|
+
// ContextMenu Content component
|
|
3674
|
+
var ContextMenuContent = _ref3 => {
|
|
3675
|
+
var {
|
|
3676
|
+
items,
|
|
3677
|
+
position,
|
|
3678
|
+
side = 'right',
|
|
3679
|
+
align = 'start',
|
|
3680
|
+
views
|
|
3681
|
+
} = _ref3,
|
|
3682
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$2);
|
|
3683
|
+
var {
|
|
3684
|
+
isOpen,
|
|
3685
|
+
position: contextPosition,
|
|
3686
|
+
// activeSubmenuId,
|
|
3687
|
+
// setActiveSubmenuId,
|
|
3688
|
+
// size,
|
|
3689
|
+
variant
|
|
3690
|
+
} = useContextMenuContext();
|
|
3691
|
+
var menuRef = React.useRef(null);
|
|
3692
|
+
var [menuPosition, setMenuPosition] = React.useState({
|
|
3693
|
+
x: 0,
|
|
3694
|
+
y: 0
|
|
3695
|
+
});
|
|
3696
|
+
// Calculate the position of the menu
|
|
3697
|
+
React.useEffect(() => {
|
|
3698
|
+
if (isOpen && menuRef.current) {
|
|
3699
|
+
var menuWidth = menuRef.current.offsetWidth;
|
|
3700
|
+
var menuHeight = menuRef.current.offsetHeight;
|
|
3701
|
+
var windowWidth = window.innerWidth;
|
|
3702
|
+
var windowHeight = window.innerHeight;
|
|
3703
|
+
var pos = position || contextPosition;
|
|
3704
|
+
var calculatedPosition = calculateMenuPosition(pos.x, pos.y, menuWidth, menuHeight, windowWidth, windowHeight, side, align);
|
|
3705
|
+
setMenuPosition(calculatedPosition);
|
|
3706
|
+
}
|
|
3707
|
+
}, [isOpen, contextPosition, position, side, align]);
|
|
3708
|
+
if (!isOpen) {
|
|
3709
|
+
return null;
|
|
3710
|
+
}
|
|
3711
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
3712
|
+
id: "context-menu",
|
|
3713
|
+
ref: menuRef,
|
|
3714
|
+
position: "fixed",
|
|
3715
|
+
top: menuPosition.y,
|
|
3716
|
+
left: menuPosition.x,
|
|
3717
|
+
zIndex: 1000,
|
|
3718
|
+
borderRadius: 4,
|
|
3719
|
+
boxShadow: "0px 2px 8px rgba(0, 0, 0, 0.15)",
|
|
3720
|
+
overflow: "hidden"
|
|
3721
|
+
}, ContextMenuVariants[variant], views == null ? void 0 : views.menu, props), items.map((item, index) => {
|
|
3722
|
+
if (item.divider) {
|
|
3723
|
+
return /*#__PURE__*/React__default.createElement(ContextMenuDivider, {
|
|
3724
|
+
key: "divider-" + index,
|
|
3725
|
+
views: views
|
|
3726
|
+
});
|
|
3727
|
+
}
|
|
3728
|
+
return /*#__PURE__*/React__default.createElement(ContextMenuItem, {
|
|
3729
|
+
key: item.id,
|
|
3730
|
+
item: item,
|
|
3731
|
+
views: views
|
|
3732
|
+
});
|
|
3733
|
+
}));
|
|
3734
|
+
};
|
|
3735
|
+
// ContextMenu Item component
|
|
3736
|
+
var ContextMenuItem = _ref4 => {
|
|
3737
|
+
var {
|
|
3738
|
+
item,
|
|
3739
|
+
views
|
|
3740
|
+
} = _ref4,
|
|
3741
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$2);
|
|
3742
|
+
var {
|
|
3743
|
+
activeSubmenuId,
|
|
3744
|
+
setActiveSubmenuId,
|
|
3745
|
+
size
|
|
3746
|
+
} = useContextMenuContext();
|
|
3747
|
+
var [isHovered, setIsHovered] = React.useState(false);
|
|
3748
|
+
var hasSubmenu = item.items && item.items.length > 0;
|
|
3749
|
+
var isSubmenuActive = activeSubmenuId === item.id;
|
|
3750
|
+
var itemRef = React.useRef(null);
|
|
3751
|
+
var [submenuPosition, setSubmenuPosition] = React.useState({
|
|
3752
|
+
x: 0,
|
|
3753
|
+
y: 0
|
|
3754
|
+
});
|
|
3755
|
+
// Handle mouse enter event
|
|
3756
|
+
var handleMouseEnter = () => {
|
|
3757
|
+
setIsHovered(true);
|
|
3758
|
+
if (hasSubmenu) {
|
|
3759
|
+
setActiveSubmenuId(item.id);
|
|
3760
|
+
}
|
|
3761
|
+
};
|
|
3762
|
+
// Handle mouse leave event
|
|
3763
|
+
var handleMouseLeave = () => {
|
|
3764
|
+
setIsHovered(false);
|
|
3765
|
+
};
|
|
3766
|
+
// Handle click event
|
|
3767
|
+
var handleClick = () => {
|
|
3768
|
+
if (item.disabled) return;
|
|
3769
|
+
if (!hasSubmenu && item.onClick) {
|
|
3770
|
+
item.onClick();
|
|
3771
|
+
}
|
|
3772
|
+
};
|
|
3773
|
+
// Calculate the position of the submenu
|
|
3774
|
+
React.useEffect(() => {
|
|
3775
|
+
if (isSubmenuActive && itemRef.current) {
|
|
3776
|
+
var rect = itemRef.current.getBoundingClientRect();
|
|
3777
|
+
setSubmenuPosition({
|
|
3778
|
+
x: rect.right,
|
|
3779
|
+
y: rect.top
|
|
3780
|
+
});
|
|
3781
|
+
}
|
|
3782
|
+
}, [isSubmenuActive]);
|
|
3783
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
3784
|
+
ref: itemRef,
|
|
3785
|
+
display: "flex",
|
|
3786
|
+
alignItems: "center",
|
|
3787
|
+
cursor: item.disabled ? 'not-allowed' : 'pointer',
|
|
3788
|
+
opacity: item.disabled ? 0.5 : 1,
|
|
3789
|
+
position: "relative"
|
|
3790
|
+
}, ContextMenuSizes[size], {
|
|
3791
|
+
_hover: !item.disabled ? ContextMenuItemStates.hover : {},
|
|
3792
|
+
backgroundColor: isHovered && !item.disabled ? 'color.gray.100' : 'transparent',
|
|
3793
|
+
onMouseEnter: handleMouseEnter,
|
|
3794
|
+
onMouseLeave: handleMouseLeave,
|
|
3795
|
+
onClick: handleClick
|
|
3796
|
+
}, views == null ? void 0 : views.item, props), item.icon && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
3797
|
+
marginRight: 8
|
|
3798
|
+
}, views == null ? void 0 : views.icon), item.icon)), /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
3799
|
+
flexGrow: 1
|
|
3800
|
+
}, item.label), hasSubmenu && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
3801
|
+
marginLeft: 8
|
|
3802
|
+
}, views == null ? void 0 : views.submenuIndicator), /*#__PURE__*/React__default.createElement("svg", {
|
|
3803
|
+
width: "16",
|
|
3804
|
+
height: "16",
|
|
3805
|
+
viewBox: "0 0 24 24",
|
|
3806
|
+
fill: "none",
|
|
3807
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
3808
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
3809
|
+
d: "M8.59 16.59L13.17 12L8.59 7.41L10 6L16 12L10 18L8.59 16.59Z",
|
|
3810
|
+
fill: "currentColor"
|
|
3811
|
+
})))), isSubmenuActive && hasSubmenu && (/*#__PURE__*/React__default.createElement(ContextMenuContent, {
|
|
3812
|
+
items: item.items || [],
|
|
3813
|
+
position: submenuPosition,
|
|
3814
|
+
side: "right",
|
|
3815
|
+
align: "start",
|
|
3816
|
+
views: views
|
|
3817
|
+
})));
|
|
3818
|
+
};
|
|
3819
|
+
// ContextMenu Divider component
|
|
3820
|
+
var ContextMenuDivider = _ref5 => {
|
|
3821
|
+
var {
|
|
3822
|
+
views
|
|
3823
|
+
} = _ref5,
|
|
3824
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$2);
|
|
3825
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
3826
|
+
height: "1px",
|
|
3827
|
+
backgroundColor: "color.gray.200",
|
|
3828
|
+
margin: "4px 0"
|
|
3829
|
+
}, views == null ? void 0 : views.divider, props));
|
|
3830
|
+
};
|
|
3831
|
+
// Main ContextMenu View component
|
|
3832
|
+
var ContextMenuView = _ref6 => {
|
|
3833
|
+
var {
|
|
3834
|
+
children,
|
|
3835
|
+
items,
|
|
3836
|
+
disableNativeContextMenu = true,
|
|
3837
|
+
views
|
|
3838
|
+
} = _ref6,
|
|
3839
|
+
props = _objectWithoutPropertiesLoose(_ref6, _excluded5$1);
|
|
3840
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(ContextMenuTrigger, Object.assign({
|
|
3841
|
+
disableNativeContextMenu: disableNativeContextMenu,
|
|
3842
|
+
views: views
|
|
3843
|
+
}, props), children), /*#__PURE__*/React__default.createElement(ContextMenuContent, {
|
|
3844
|
+
items: items,
|
|
3845
|
+
views: views
|
|
3846
|
+
}));
|
|
3847
|
+
};
|
|
3848
|
+
|
|
3849
|
+
var _excluded$b = ["children", "items", "size", "variant", "disableNativeContextMenu", "views"];
|
|
3850
|
+
/**
|
|
3851
|
+
* ContextMenu component for displaying a custom context menu on right-click.
|
|
3852
|
+
*/
|
|
3853
|
+
var ContextMenuComponent = _ref => {
|
|
3854
|
+
var {
|
|
3855
|
+
children,
|
|
3856
|
+
items,
|
|
3857
|
+
size = 'md',
|
|
3858
|
+
variant = 'default',
|
|
3859
|
+
disableNativeContextMenu = true,
|
|
3860
|
+
views
|
|
3861
|
+
} = _ref,
|
|
3862
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
3863
|
+
var {
|
|
3864
|
+
isOpen,
|
|
3865
|
+
setIsOpen,
|
|
3866
|
+
position,
|
|
3867
|
+
setPosition,
|
|
3868
|
+
activeSubmenuId,
|
|
3869
|
+
setActiveSubmenuId
|
|
3870
|
+
} = useContextMenuState();
|
|
3871
|
+
return /*#__PURE__*/React__default.createElement(ContextMenuProvider, {
|
|
3872
|
+
value: {
|
|
3873
|
+
isOpen,
|
|
3874
|
+
setIsOpen,
|
|
3875
|
+
position,
|
|
3876
|
+
setPosition,
|
|
3877
|
+
activeSubmenuId,
|
|
3878
|
+
setActiveSubmenuId,
|
|
3879
|
+
size,
|
|
3880
|
+
variant
|
|
3881
|
+
}
|
|
3882
|
+
}, /*#__PURE__*/React__default.createElement(ContextMenuView, Object.assign({
|
|
3883
|
+
items: items,
|
|
3884
|
+
size: size,
|
|
3885
|
+
variant: variant,
|
|
3886
|
+
disableNativeContextMenu: disableNativeContextMenu,
|
|
3887
|
+
views: views
|
|
3888
|
+
}, props), children));
|
|
3889
|
+
};
|
|
3890
|
+
var ContextMenu = ContextMenuComponent;
|
|
3891
|
+
// Assign the sub-components to the main component
|
|
3892
|
+
ContextMenu.Trigger = ContextMenuTrigger;
|
|
3893
|
+
ContextMenu.Content = ContextMenuContent;
|
|
3894
|
+
ContextMenu.Item = ContextMenuItem;
|
|
3895
|
+
ContextMenu.Divider = ContextMenuDivider;
|
|
3896
|
+
|
|
3897
|
+
var _excluded$c = ["src", "color", "views", "themeMode"],
|
|
3898
|
+
_excluded2$3 = ["path"];
|
|
3899
|
+
var FileSVG = _ref => {
|
|
3900
|
+
var {
|
|
3901
|
+
src,
|
|
3902
|
+
color,
|
|
3903
|
+
views
|
|
3904
|
+
} = _ref,
|
|
3905
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
3906
|
+
var {
|
|
3907
|
+
getColor,
|
|
3908
|
+
themeMode
|
|
3909
|
+
} = appStudio.useTheme();
|
|
3910
|
+
var Colorprops = color ? {
|
|
3911
|
+
fill: getColor(color, {
|
|
3912
|
+
themeMode
|
|
3913
|
+
}),
|
|
3914
|
+
stroke: getColor(color, {
|
|
3915
|
+
themeMode
|
|
3916
|
+
})
|
|
3917
|
+
} : {};
|
|
3918
|
+
return /*#__PURE__*/React__default.createElement(Center, Object.assign({}, props, views == null ? void 0 : views.container), /*#__PURE__*/React__default.createElement(appStudio.Image, Object.assign({}, Colorprops, {
|
|
3919
|
+
content: 'url("' + src + '")',
|
|
3920
|
+
width: "100%",
|
|
3921
|
+
height: "100%"
|
|
3922
|
+
}, views == null ? void 0 : views.image)));
|
|
3923
|
+
};
|
|
3924
|
+
var FileImage = _ref2 => {
|
|
3925
|
+
var {
|
|
3926
|
+
path
|
|
3927
|
+
} = _ref2,
|
|
3928
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$3);
|
|
3929
|
+
return /*#__PURE__*/React__default.createElement(appStudio.Image, Object.assign({
|
|
3930
|
+
src: path
|
|
3931
|
+
}, props));
|
|
3932
|
+
};
|
|
3933
|
+
|
|
3934
|
+
// Initializes the custom hook 'useSelectState' for managing the state of the Select component
|
|
3935
|
+
var useSelectState = _ref => {
|
|
3936
|
+
var {
|
|
3937
|
+
placeholder,
|
|
3938
|
+
isMulti,
|
|
3939
|
+
options
|
|
3940
|
+
} = _ref;
|
|
3941
|
+
// Determines the default value based on the 'placeholder' and 'isMulti' props, setting to an empty array for multi-select or an empty string/single default option
|
|
3942
|
+
var defaultValue = placeholder ? isMulti ? [] : '' // If there's a placeholder, set default to empty array for multi-select or empty string for single select
|
|
3943
|
+
: Array.isArray(options) && options.length > 0 ? options[0].value : ''; // If no placeholder, use the first option value if available, otherwise undefined
|
|
3944
|
+
// State hook for managing visibility of the Select dropdown, initially set to hidden
|
|
3945
|
+
var [hide, setHide] = React__default.useState(true);
|
|
3946
|
+
// State hook for tracking mouse hover status over the Select component
|
|
3947
|
+
var [isHovered, setIsHovered] = React__default.useState(false);
|
|
3948
|
+
// State hook for tracking focus status of the Select input field
|
|
3949
|
+
var [isFocused, setIsFocused] = React__default.useState(false);
|
|
3950
|
+
// State hook for managing the value(s) selected by the user, initialized with the default value
|
|
3238
3951
|
var [value, setValue] = React__default.useState(defaultValue);
|
|
3239
3952
|
// State hook for keeping track of the currently highlighted index in the options list
|
|
3240
3953
|
var [highlightedIndex, setHighlightedIndex] = React__default.useState(0);
|
|
@@ -3263,7 +3976,7 @@ var useItemState = () => {
|
|
|
3263
3976
|
};
|
|
3264
3977
|
};
|
|
3265
3978
|
|
|
3266
|
-
var _excluded$
|
|
3979
|
+
var _excluded$d = ["children", "views"];
|
|
3267
3980
|
var HelperText = _ref => {
|
|
3268
3981
|
var {
|
|
3269
3982
|
children,
|
|
@@ -3271,7 +3984,7 @@ var HelperText = _ref => {
|
|
|
3271
3984
|
helperText: {}
|
|
3272
3985
|
}
|
|
3273
3986
|
} = _ref,
|
|
3274
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3987
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
3275
3988
|
return /*#__PURE__*/React__default.createElement(Text, Object.assign({
|
|
3276
3989
|
size: "xs",
|
|
3277
3990
|
marginVertical: 0,
|
|
@@ -3280,7 +3993,7 @@ var HelperText = _ref => {
|
|
|
3280
3993
|
}, views['helperText'], props), children);
|
|
3281
3994
|
};
|
|
3282
3995
|
|
|
3283
|
-
var _excluded$
|
|
3996
|
+
var _excluded$e = ["children", "helperText", "error", "views"];
|
|
3284
3997
|
var FieldContainer = _ref => {
|
|
3285
3998
|
var {
|
|
3286
3999
|
children,
|
|
@@ -3288,7 +4001,7 @@ var FieldContainer = _ref => {
|
|
|
3288
4001
|
error = false,
|
|
3289
4002
|
views
|
|
3290
4003
|
} = _ref,
|
|
3291
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4004
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
|
3292
4005
|
return /*#__PURE__*/React__default.createElement(Vertical, Object.assign({
|
|
3293
4006
|
gap: 5,
|
|
3294
4007
|
position: "relative"
|
|
@@ -3347,7 +4060,7 @@ var PaddingWithoutLabel = {
|
|
|
3347
4060
|
paddingRight: 16
|
|
3348
4061
|
};
|
|
3349
4062
|
|
|
3350
|
-
var _excluded$
|
|
4063
|
+
var _excluded$f = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "isWithLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "views"];
|
|
3351
4064
|
var FieldContent = _ref => {
|
|
3352
4065
|
var {
|
|
3353
4066
|
shadow,
|
|
@@ -3365,7 +4078,7 @@ var FieldContent = _ref => {
|
|
|
3365
4078
|
pickerBox: {}
|
|
3366
4079
|
}
|
|
3367
4080
|
} = _ref,
|
|
3368
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4081
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
|
|
3369
4082
|
var isInteractive = (isHovered || isFocused) && !isDisabled;
|
|
3370
4083
|
var color = error ? 'error' : isInteractive ? 'theme.primary' : 'midgray';
|
|
3371
4084
|
return /*#__PURE__*/React__default.createElement(Horizontal, Object.assign({
|
|
@@ -3386,12 +4099,12 @@ var FieldContent = _ref => {
|
|
|
3386
4099
|
}, isWithLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant], views['box'], props), children);
|
|
3387
4100
|
};
|
|
3388
4101
|
|
|
3389
|
-
var _excluded$
|
|
4102
|
+
var _excluded$g = ["children"];
|
|
3390
4103
|
var FieldIcons = _ref => {
|
|
3391
4104
|
var {
|
|
3392
4105
|
children
|
|
3393
4106
|
} = _ref,
|
|
3394
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4107
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
3395
4108
|
return /*#__PURE__*/React__default.createElement(Center, Object.assign({
|
|
3396
4109
|
gap: 10,
|
|
3397
4110
|
right: 16,
|
|
@@ -3443,7 +4156,7 @@ var HeadingSizes$1 = {
|
|
|
3443
4156
|
}
|
|
3444
4157
|
};
|
|
3445
4158
|
|
|
3446
|
-
var _excluded$
|
|
4159
|
+
var _excluded$h = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
|
|
3447
4160
|
var LabelView = _ref => {
|
|
3448
4161
|
var {
|
|
3449
4162
|
children,
|
|
@@ -3459,7 +4172,7 @@ var LabelView = _ref => {
|
|
|
3459
4172
|
size = 'sm'
|
|
3460
4173
|
// The fontSize prop for the Element is determined by the 'size' prop passed to LabelView.
|
|
3461
4174
|
} = _ref,
|
|
3462
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4175
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
3463
4176
|
// The fontStyle prop toggles between 'italic' and 'normal' based on the 'isItalic' boolean prop.
|
|
3464
4177
|
var headingStyles = heading ? HeadingSizes$1[heading] : {};
|
|
3465
4178
|
// fontWeight is derived from the Typography module, ensuring consistent font weighting across the app.
|
|
@@ -3491,7 +4204,7 @@ React__default.createElement(LabelView, Object.assign({}, props))
|
|
|
3491
4204
|
var Label = LabelComponent;
|
|
3492
4205
|
// Export the 'LabelComponent' as 'Label' to be reused throughout the project.
|
|
3493
4206
|
|
|
3494
|
-
var _excluded$
|
|
4207
|
+
var _excluded$i = ["children", "size", "error", "color", "views", "helperText"];
|
|
3495
4208
|
var FieldLabel = _ref => {
|
|
3496
4209
|
var {
|
|
3497
4210
|
children,
|
|
@@ -3502,7 +4215,7 @@ var FieldLabel = _ref => {
|
|
|
3502
4215
|
label: {}
|
|
3503
4216
|
}
|
|
3504
4217
|
} = _ref,
|
|
3505
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4218
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
3506
4219
|
return /*#__PURE__*/React__default.createElement(Label, Object.assign({
|
|
3507
4220
|
top: 6,
|
|
3508
4221
|
zIndex: 1000,
|
|
@@ -3515,12 +4228,12 @@ var FieldLabel = _ref => {
|
|
|
3515
4228
|
}, views['label'], props), children);
|
|
3516
4229
|
};
|
|
3517
4230
|
|
|
3518
|
-
var _excluded$
|
|
4231
|
+
var _excluded$j = ["children"];
|
|
3519
4232
|
var FieldWrapper = _ref => {
|
|
3520
4233
|
var {
|
|
3521
4234
|
children
|
|
3522
4235
|
} = _ref,
|
|
3523
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4236
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
3524
4237
|
return /*#__PURE__*/React__default.createElement(Vertical, Object.assign({
|
|
3525
4238
|
width: "100%",
|
|
3526
4239
|
maxWidth: '100%'
|
|
@@ -3537,10 +4250,10 @@ var IconSizes$2 = {
|
|
|
3537
4250
|
xl: 16
|
|
3538
4251
|
};
|
|
3539
4252
|
|
|
3540
|
-
var _excluded$
|
|
3541
|
-
_excluded2$
|
|
3542
|
-
_excluded3$
|
|
3543
|
-
_excluded4$
|
|
4253
|
+
var _excluded$k = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
|
|
4254
|
+
_excluded2$4 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
|
|
4255
|
+
_excluded3$3 = ["option", "size", "removeOption"],
|
|
4256
|
+
_excluded4$3 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isMulti", "isFocused", "isHovered", "isDisabled", "isReadOnly", "options", "shadow", "size", "shape", "variant", "views", "onChange", "setHide", "setValue", "setIsHovered", "setIsFocused", "setHighlightedIndex", "highlightedIndex"];
|
|
3544
4257
|
// Defines a component to render individual selection items within a list.
|
|
3545
4258
|
var Item = _ref => {
|
|
3546
4259
|
var {
|
|
@@ -3551,7 +4264,7 @@ var Item = _ref => {
|
|
|
3551
4264
|
callback = () => {},
|
|
3552
4265
|
style
|
|
3553
4266
|
} = _ref,
|
|
3554
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4267
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
|
3555
4268
|
// Handles the click event on an option by invoking the callback with the selected option's value.
|
|
3556
4269
|
var handleOptionClick = option => callback(option);
|
|
3557
4270
|
// Toggles the hover state on the item.
|
|
@@ -3621,7 +4334,7 @@ var HiddenSelect = _ref4 => {
|
|
|
3621
4334
|
isReadOnly = false,
|
|
3622
4335
|
options = []
|
|
3623
4336
|
} = _ref4,
|
|
3624
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded2$
|
|
4337
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded2$4);
|
|
3625
4338
|
var handleChange = event => {
|
|
3626
4339
|
if (onChange) onChange(event);
|
|
3627
4340
|
};
|
|
@@ -3711,7 +4424,7 @@ var MultiSelect = _ref6 => {
|
|
|
3711
4424
|
size = 'md',
|
|
3712
4425
|
removeOption = () => {}
|
|
3713
4426
|
} = _ref6,
|
|
3714
|
-
props = _objectWithoutPropertiesLoose(_ref6, _excluded3$
|
|
4427
|
+
props = _objectWithoutPropertiesLoose(_ref6, _excluded3$3);
|
|
3715
4428
|
var handleClick = () => removeOption(option);
|
|
3716
4429
|
return /*#__PURE__*/React__default.createElement(Horizontal, Object.assign({
|
|
3717
4430
|
gap: 10,
|
|
@@ -3766,7 +4479,7 @@ var SelectView = _ref7 => {
|
|
|
3766
4479
|
setHighlightedIndex,
|
|
3767
4480
|
highlightedIndex
|
|
3768
4481
|
} = _ref7,
|
|
3769
|
-
props = _objectWithoutPropertiesLoose(_ref7, _excluded4$
|
|
4482
|
+
props = _objectWithoutPropertiesLoose(_ref7, _excluded4$3);
|
|
3770
4483
|
var isWithLabel = !!(isFocused && label);
|
|
3771
4484
|
var handleHover = () => setIsHovered(!isHovered);
|
|
3772
4485
|
var handleFocus = () => setIsFocused(true);
|
|
@@ -4011,7 +4724,7 @@ var SliderPadding = {
|
|
|
4011
4724
|
}
|
|
4012
4725
|
};
|
|
4013
4726
|
|
|
4014
|
-
var _excluded$
|
|
4727
|
+
var _excluded$l = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "value", "isHovered", "isDisabled", "isReadOnly", "on", "setOn", "onChange", "setValue", "setIsHovered", "helperText", "views"];
|
|
4015
4728
|
var SwitchContent = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
|
|
4016
4729
|
type: "checkbox"
|
|
4017
4730
|
}, props));
|
|
@@ -4040,7 +4753,7 @@ var SwitchView = _ref => {
|
|
|
4040
4753
|
label: {}
|
|
4041
4754
|
}
|
|
4042
4755
|
} = _ref,
|
|
4043
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4756
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
4044
4757
|
var handleToggle = event => {
|
|
4045
4758
|
if (!isReadOnly) {
|
|
4046
4759
|
setValue(!value);
|
|
@@ -4130,7 +4843,7 @@ var useTextAreaState = _ref => {
|
|
|
4130
4843
|
// Export of the useTextAreaState hook for external usage.
|
|
4131
4844
|
};
|
|
4132
4845
|
|
|
4133
|
-
var _excluded$
|
|
4846
|
+
var _excluded$m = ["id", "name", "hint", "error", "value", "label", "shadow", "helperText", "placeholder", "size", "shape", "variant", "isHovered", "isFocused", "isEditable", "isReadOnly", "isDisabled", "isAutoFocus", "isMultiline", "maxRows", "maxCols", "onBlur", "onChange", "onFocus", "onChangeText", "setHint", "setValue", "setIsFocused", "setIsHovered", "views"];
|
|
4134
4847
|
var TextAreaView = _ref => {
|
|
4135
4848
|
var {
|
|
4136
4849
|
id,
|
|
@@ -4169,7 +4882,7 @@ var TextAreaView = _ref => {
|
|
|
4169
4882
|
field: {}
|
|
4170
4883
|
}
|
|
4171
4884
|
} = _ref,
|
|
4172
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4885
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
|
|
4173
4886
|
var isWithLabel = !!(isFocused && label);
|
|
4174
4887
|
var fieldStyles = Object.assign({
|
|
4175
4888
|
margin: 0,
|
|
@@ -4298,7 +5011,7 @@ var useTextFieldState = _ref => {
|
|
|
4298
5011
|
};
|
|
4299
5012
|
};
|
|
4300
5013
|
|
|
4301
|
-
var _excluded$
|
|
5014
|
+
var _excluded$n = ["id", "name", "label", "hint", "value", "onChange", "left", "right", "helperText", "placeholder", "onChangeText", "shadow", "views", "size", "shape", "variant", "error", "isFocused", "isHovered", "isDisabled", "isReadOnly", "isClearable", "isAutoFocus", "setHint", "setIsFocused", "setIsHovered", "setValue", "onClick", "onFocus", "onBlur", "themeMode"];
|
|
4302
5015
|
var TextFieldInput = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
|
|
4303
5016
|
type: "text"
|
|
4304
5017
|
}, props));
|
|
@@ -4341,7 +5054,7 @@ var TextFieldView = _ref => {
|
|
|
4341
5054
|
onBlur = () => {},
|
|
4342
5055
|
themeMode: elementMode
|
|
4343
5056
|
} = _ref,
|
|
4344
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5057
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
4345
5058
|
var {
|
|
4346
5059
|
getColor,
|
|
4347
5060
|
themeMode
|
|
@@ -4522,7 +5235,7 @@ var IconSizes$3 = {
|
|
|
4522
5235
|
'6xl': 60
|
|
4523
5236
|
};
|
|
4524
5237
|
|
|
4525
|
-
var _excluded$
|
|
5238
|
+
var _excluded$o = ["id", "icon", "name", "label", "isChecked", "onChange", "onValueChange", "shadow", "labelPosition", "size", "error", "isSelected", "isHovered", "isDisabled", "isReadOnly", "isIndeterminate", "defaultIsSelected", "setIsSelected", "setIsHovered", "views", "infoText", "helperText"];
|
|
4526
5239
|
var CheckboxView = _ref => {
|
|
4527
5240
|
var {
|
|
4528
5241
|
id,
|
|
@@ -4549,7 +5262,7 @@ var CheckboxView = _ref => {
|
|
|
4549
5262
|
},
|
|
4550
5263
|
infoText
|
|
4551
5264
|
} = _ref,
|
|
4552
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5265
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
|
|
4553
5266
|
var handleHover = () => setIsHovered(!isHovered);
|
|
4554
5267
|
var handleChange = () => {
|
|
4555
5268
|
if (!isReadOnly && !isDisabled) {
|
|
@@ -6113,11 +6826,11 @@ var IconSizes$4 = {
|
|
|
6113
6826
|
xl: 16
|
|
6114
6827
|
};
|
|
6115
6828
|
|
|
6116
|
-
var _excluded$
|
|
6117
|
-
_excluded2$
|
|
6118
|
-
_excluded3$
|
|
6829
|
+
var _excluded$p = ["size"],
|
|
6830
|
+
_excluded2$5 = ["size"],
|
|
6831
|
+
_excluded3$4 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isHovered", "isFocused", "isAutoFocus", "isDisabled", "isReadOnly", "shadow", "newOptions", "size", "variant", "shape", "onChange", "onBlur", "setHide", "setNewOptions", "setIsHovered", "setIsFocused", "setValue", "views", "themeMode"];
|
|
6119
6832
|
var CountryList = _ref => {
|
|
6120
|
-
var props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6833
|
+
var props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
6121
6834
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
6122
6835
|
as: "ul"
|
|
6123
6836
|
}, props));
|
|
@@ -6126,7 +6839,7 @@ var CountrySelector = props => (/*#__PURE__*/React__default.createElement(appStu
|
|
|
6126
6839
|
type: "country"
|
|
6127
6840
|
}, props)));
|
|
6128
6841
|
var CountryItem = _ref2 => {
|
|
6129
|
-
var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
6842
|
+
var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$5);
|
|
6130
6843
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
6131
6844
|
as: "li"
|
|
6132
6845
|
}, props));
|
|
@@ -6229,7 +6942,7 @@ var CountryPickerView = _ref5 => {
|
|
|
6229
6942
|
},
|
|
6230
6943
|
themeMode: elementMode
|
|
6231
6944
|
} = _ref5,
|
|
6232
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded3$
|
|
6945
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded3$4);
|
|
6233
6946
|
var {
|
|
6234
6947
|
getColor,
|
|
6235
6948
|
themeMode
|
|
@@ -6356,7 +7069,7 @@ var useDatePickerState = () => {
|
|
|
6356
7069
|
};
|
|
6357
7070
|
};
|
|
6358
7071
|
|
|
6359
|
-
var _excluded$
|
|
7072
|
+
var _excluded$q = ["id", "icon", "name", "label", "date", "children", "helperText", "shadow", "size", "variant", "shape", "views", "error", "isHovered", "isFocused", "isDisabled", "isReadOnly", "setDate", "setIsFocused", "setIsHovered", "onChange", "onChangeText"];
|
|
6360
7073
|
var DatePickerContent = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
|
|
6361
7074
|
type: "date"
|
|
6362
7075
|
}, props));
|
|
@@ -6389,7 +7102,7 @@ var DatePickerView = _ref => {
|
|
|
6389
7102
|
onChange,
|
|
6390
7103
|
onChangeText
|
|
6391
7104
|
} = _ref,
|
|
6392
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7105
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
|
|
6393
7106
|
var isWithLabel = !!(isFocused && label);
|
|
6394
7107
|
var handleHover = () => setIsHovered(!isHovered);
|
|
6395
7108
|
var handleFocus = () => setIsFocused(true);
|
|
@@ -6476,8 +7189,8 @@ var usePasswordState = props => {
|
|
|
6476
7189
|
}, props, textFieldStates);
|
|
6477
7190
|
};
|
|
6478
7191
|
|
|
6479
|
-
var _excluded$
|
|
6480
|
-
_excluded2$
|
|
7192
|
+
var _excluded$r = ["visibleIcon", "hiddenIcon"],
|
|
7193
|
+
_excluded2$6 = ["isVisible", "setIsVisible"];
|
|
6481
7194
|
var PasswordComponent = _ref => {
|
|
6482
7195
|
var {
|
|
6483
7196
|
visibleIcon = /*#__PURE__*/React__default.createElement(OpenEyeIcon, {
|
|
@@ -6487,13 +7200,13 @@ var PasswordComponent = _ref => {
|
|
|
6487
7200
|
widthHeight: 14
|
|
6488
7201
|
})
|
|
6489
7202
|
} = _ref,
|
|
6490
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7203
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
|
|
6491
7204
|
var _usePasswordState = usePasswordState(props),
|
|
6492
7205
|
{
|
|
6493
7206
|
isVisible,
|
|
6494
7207
|
setIsVisible
|
|
6495
7208
|
} = _usePasswordState,
|
|
6496
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
7209
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$6);
|
|
6497
7210
|
return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
6498
7211
|
type: isVisible ? 'text' : 'password',
|
|
6499
7212
|
isClearable: false,
|
|
@@ -6541,7 +7254,7 @@ var useComboBoxState = (items, placeholder, searchPlaceholder) => {
|
|
|
6541
7254
|
};
|
|
6542
7255
|
};
|
|
6543
7256
|
|
|
6544
|
-
var _excluded$
|
|
7257
|
+
var _excluded$s = ["placeholder", "items", "showTick", "onSelect", "searchEnabled", "left", "right", "label", "filteredItems", "setSelectedItem", "selectedItem", "highlightedIndex", "setHighlightedIndex", "searchQuery", "setSearchQuery", "setFilteredItems", "views", "isDropdownVisible", "setIsDropdownVisible"];
|
|
6545
7258
|
// Defines the functional component 'ComboBoxView' with destructured props.
|
|
6546
7259
|
var ComboBoxView = _ref => {
|
|
6547
7260
|
var {
|
|
@@ -6566,7 +7279,7 @@ var ComboBoxView = _ref => {
|
|
|
6566
7279
|
setIsDropdownVisible
|
|
6567
7280
|
// Collects all further props not destructured explicitly.
|
|
6568
7281
|
} = _ref,
|
|
6569
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7282
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
|
|
6570
7283
|
// Sets up an effect to handle clicking outside the dropdown to close it.
|
|
6571
7284
|
React.useEffect(() => {
|
|
6572
7285
|
var handleClickOutside = event => {
|
|
@@ -6677,7 +7390,7 @@ var ComboBoxView = _ref => {
|
|
|
6677
7390
|
}))))))))))));
|
|
6678
7391
|
};
|
|
6679
7392
|
|
|
6680
|
-
var _excluded$
|
|
7393
|
+
var _excluded$t = ["id", "name", "items", "placeholder", "searchPlaceholder"];
|
|
6681
7394
|
// Defines the ComboBoxComponent functional component with ComboBoxProps
|
|
6682
7395
|
var ComboBoxComponent = _ref => {
|
|
6683
7396
|
var {
|
|
@@ -6693,7 +7406,7 @@ var ComboBoxComponent = _ref => {
|
|
|
6693
7406
|
searchPlaceholder
|
|
6694
7407
|
// Destructures the rest of the props not explicitly defined
|
|
6695
7408
|
} = _ref,
|
|
6696
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7409
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
6697
7410
|
// Initializes ComboBox state using custom hook with items and placeholders
|
|
6698
7411
|
var state = useComboBoxState(items, placeholder, searchPlaceholder);
|
|
6699
7412
|
return (
|
|
@@ -6709,7 +7422,7 @@ var ComboBoxComponent = _ref => {
|
|
|
6709
7422
|
// Exports the ComboBoxComponent as ComboBox
|
|
6710
7423
|
var ComboBox = ComboBoxComponent;
|
|
6711
7424
|
|
|
6712
|
-
var _excluded$
|
|
7425
|
+
var _excluded$u = ["children", "autoFocus", "initFocus", "onChange"];
|
|
6713
7426
|
var FocusContext = /*#__PURE__*/React.createContext({
|
|
6714
7427
|
active: false,
|
|
6715
7428
|
focusNextInput: () => {},
|
|
@@ -6725,7 +7438,7 @@ var FormikForm = _ref => {
|
|
|
6725
7438
|
initFocus,
|
|
6726
7439
|
onChange = () => {}
|
|
6727
7440
|
} = _ref,
|
|
6728
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7441
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
|
|
6729
7442
|
var formik$1 = formik.useFormikContext();
|
|
6730
7443
|
React.useEffect(() => {
|
|
6731
7444
|
onChange(formik$1.values);
|
|
@@ -6773,7 +7486,7 @@ var FormikForm = _ref => {
|
|
|
6773
7486
|
}, /*#__PURE__*/React__default.createElement(appStudio.Form, Object.assign({}, props), children));
|
|
6774
7487
|
};
|
|
6775
7488
|
|
|
6776
|
-
var _excluded$
|
|
7489
|
+
var _excluded$v = ["name", "type"];
|
|
6777
7490
|
var getInputTypeProps = type => {
|
|
6778
7491
|
switch (type) {
|
|
6779
7492
|
case 'email':
|
|
@@ -6812,7 +7525,7 @@ var useFormikInput = _ref => {
|
|
|
6812
7525
|
name,
|
|
6813
7526
|
type
|
|
6814
7527
|
} = _ref,
|
|
6815
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7528
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
|
|
6816
7529
|
var focus = useFormFocus();
|
|
6817
7530
|
var {
|
|
6818
7531
|
touched,
|
|
@@ -6856,13 +7569,13 @@ var useFormikInput = _ref => {
|
|
|
6856
7569
|
} : {});
|
|
6857
7570
|
};
|
|
6858
7571
|
|
|
6859
|
-
var _excluded$
|
|
7572
|
+
var _excluded$w = ["value"];
|
|
6860
7573
|
var CheckboxComponent$1 = props => {
|
|
6861
7574
|
var _useFormikInput = useFormikInput(props),
|
|
6862
7575
|
{
|
|
6863
7576
|
value
|
|
6864
7577
|
} = _useFormikInput,
|
|
6865
|
-
formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$
|
|
7578
|
+
formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$w);
|
|
6866
7579
|
formProps.isChecked = value;
|
|
6867
7580
|
var checkboxStates = useCheckboxState(props);
|
|
6868
7581
|
return /*#__PURE__*/React__default.createElement(CheckboxView, Object.assign({}, checkboxStates, formProps));
|
|
@@ -6920,11 +7633,11 @@ var TextAreaComponent$1 = props => {
|
|
|
6920
7633
|
*/
|
|
6921
7634
|
var FormikTextArea = TextAreaComponent$1;
|
|
6922
7635
|
|
|
6923
|
-
var _excluded$
|
|
7636
|
+
var _excluded$x = ["value"];
|
|
6924
7637
|
var TextFieldComponent$1 = props => {
|
|
6925
7638
|
var formProps = useFormikInput(props);
|
|
6926
7639
|
var _useTextFieldState = useTextFieldState(props),
|
|
6927
|
-
textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$
|
|
7640
|
+
textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$x);
|
|
6928
7641
|
return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, textFieldStates, formProps));
|
|
6929
7642
|
};
|
|
6930
7643
|
/**
|
|
@@ -6932,8 +7645,8 @@ var TextFieldComponent$1 = props => {
|
|
|
6932
7645
|
*/
|
|
6933
7646
|
var FormikTextField = TextFieldComponent$1;
|
|
6934
7647
|
|
|
6935
|
-
var _excluded$
|
|
6936
|
-
_excluded2$
|
|
7648
|
+
var _excluded$y = ["visibleIcon", "hiddenIcon"],
|
|
7649
|
+
_excluded2$7 = ["isVisible", "setIsVisible"];
|
|
6937
7650
|
var PasswordComponent$1 = _ref => {
|
|
6938
7651
|
var {
|
|
6939
7652
|
visibleIcon = /*#__PURE__*/React__default.createElement(OpenEyeIcon, {
|
|
@@ -6943,14 +7656,14 @@ var PasswordComponent$1 = _ref => {
|
|
|
6943
7656
|
widthHeight: 14
|
|
6944
7657
|
})
|
|
6945
7658
|
} = _ref,
|
|
6946
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7659
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
|
|
6947
7660
|
var formProps = useFormikInput(props);
|
|
6948
7661
|
var _usePasswordState = usePasswordState(formProps),
|
|
6949
7662
|
{
|
|
6950
7663
|
isVisible,
|
|
6951
7664
|
setIsVisible
|
|
6952
7665
|
} = _usePasswordState,
|
|
6953
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
7666
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$7);
|
|
6954
7667
|
return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
6955
7668
|
type: isVisible ? 'text' : 'password',
|
|
6956
7669
|
isClearable: false,
|
|
@@ -6968,14 +7681,14 @@ var PasswordComponent$1 = _ref => {
|
|
|
6968
7681
|
*/
|
|
6969
7682
|
var FormikPassword = PasswordComponent$1;
|
|
6970
7683
|
|
|
6971
|
-
var _excluded$
|
|
7684
|
+
var _excluded$z = ["items", "placeholder", "searchPlaceholder"];
|
|
6972
7685
|
var ComboBoxComponent$1 = _ref => {
|
|
6973
7686
|
var {
|
|
6974
7687
|
items,
|
|
6975
7688
|
placeholder,
|
|
6976
7689
|
searchPlaceholder
|
|
6977
7690
|
} = _ref,
|
|
6978
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7691
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
|
|
6979
7692
|
var formProps = useFormikInput(props);
|
|
6980
7693
|
var ComboBoxStates = useComboBoxState(items, placeholder, searchPlaceholder);
|
|
6981
7694
|
// Ensure the onChange function from formProps is being called when an item is selected
|
|
@@ -6991,28 +7704,584 @@ var ComboBoxComponent$1 = _ref => {
|
|
|
6991
7704
|
*/
|
|
6992
7705
|
var FormikComboBox = ComboBoxComponent$1;
|
|
6993
7706
|
|
|
6994
|
-
//
|
|
6995
|
-
var
|
|
6996
|
-
|
|
6997
|
-
|
|
6998
|
-
|
|
6999
|
-
|
|
7000
|
-
|
|
7001
|
-
|
|
7002
|
-
|
|
7003
|
-
|
|
7004
|
-
|
|
7005
|
-
|
|
7006
|
-
|
|
7007
|
-
|
|
7008
|
-
|
|
7009
|
-
|
|
7010
|
-
|
|
7011
|
-
|
|
7012
|
-
|
|
7707
|
+
// Clamp value between min and max
|
|
7708
|
+
var clamp = (value, min, max) => Math.min(Math.max(value, min), max);
|
|
7709
|
+
// Calculate value based on position, track dimensions, min, max, step
|
|
7710
|
+
var calculateValue = (position, trackRect, min, max, step, orientation, stepValues) => {
|
|
7711
|
+
var range = max - min;
|
|
7712
|
+
var percentage;
|
|
7713
|
+
if (orientation === 'horizontal') {
|
|
7714
|
+
var trackLength = trackRect.width;
|
|
7715
|
+
var relativePosition = position - trackRect.left;
|
|
7716
|
+
percentage = clamp(relativePosition / trackLength, 0, 1);
|
|
7717
|
+
} else {
|
|
7718
|
+
// Vertical: top is max, bottom is min (reversed from the provided code)
|
|
7719
|
+
var _trackLength = trackRect.height;
|
|
7720
|
+
var _relativePosition = trackRect.bottom - position; // Y position relative to track bottom
|
|
7721
|
+
percentage = clamp(_relativePosition / _trackLength, 0, 1);
|
|
7722
|
+
}
|
|
7723
|
+
// If stepValues are provided, find the closest value in the array
|
|
7724
|
+
if (stepValues && stepValues.length > 0) {
|
|
7725
|
+
var rawValue = min + percentage * range;
|
|
7726
|
+
// Find the closest value in stepValues
|
|
7727
|
+
var closestValue = stepValues[0];
|
|
7728
|
+
var minDistance = Math.abs(rawValue - closestValue);
|
|
7729
|
+
for (var i = 1; i < stepValues.length; i++) {
|
|
7730
|
+
var distance = Math.abs(rawValue - stepValues[i]);
|
|
7731
|
+
if (distance < minDistance) {
|
|
7732
|
+
minDistance = distance;
|
|
7733
|
+
closestValue = stepValues[i];
|
|
7734
|
+
}
|
|
7013
7735
|
}
|
|
7014
|
-
return
|
|
7015
|
-
|
|
7736
|
+
return closestValue;
|
|
7737
|
+
} else {
|
|
7738
|
+
// Use regular step logic
|
|
7739
|
+
var _rawValue = min + percentage * range;
|
|
7740
|
+
var steppedValue = Math.round(_rawValue / step) * step;
|
|
7741
|
+
// Final clamp to ensure step rounding doesn't exceed bounds
|
|
7742
|
+
return clamp(steppedValue, min, max);
|
|
7743
|
+
}
|
|
7744
|
+
};
|
|
7745
|
+
var useSliderState = _ref => {
|
|
7746
|
+
var _ref2;
|
|
7747
|
+
var {
|
|
7748
|
+
min = 0,
|
|
7749
|
+
max = 100,
|
|
7750
|
+
step = 1,
|
|
7751
|
+
value: controlledValue = 0,
|
|
7752
|
+
defaultValue,
|
|
7753
|
+
onChange,
|
|
7754
|
+
onDrag,
|
|
7755
|
+
orientation = 'horizontal',
|
|
7756
|
+
isDisabled = false,
|
|
7757
|
+
stepValues
|
|
7758
|
+
} = _ref;
|
|
7759
|
+
var initialValue = clamp((_ref2 = controlledValue != null ? controlledValue : defaultValue) != null ? _ref2 : min, min, max);
|
|
7760
|
+
var [internalValue, setInternalValue] = React.useState(initialValue);
|
|
7761
|
+
var [isDragging, setIsDragging] = React.useState(false);
|
|
7762
|
+
var [isHovered, setIsHovered] = React.useState(false);
|
|
7763
|
+
var trackRef = React.useRef(null);
|
|
7764
|
+
var thumbRef = React.useRef(null);
|
|
7765
|
+
var isControlled = controlledValue !== undefined;
|
|
7766
|
+
var currentValue = isControlled ? controlledValue : internalValue;
|
|
7767
|
+
// Update internal state if controlled value changes
|
|
7768
|
+
React.useEffect(() => {
|
|
7769
|
+
if (isControlled) {
|
|
7770
|
+
setInternalValue(clamp(controlledValue, min, max));
|
|
7771
|
+
}
|
|
7772
|
+
}, [controlledValue, isControlled, min, max]);
|
|
7773
|
+
var updateValue = React.useCallback(newValue => {
|
|
7774
|
+
var clampedValue = clamp(newValue, min, max);
|
|
7775
|
+
if (!isControlled) {
|
|
7776
|
+
setInternalValue(clampedValue);
|
|
7777
|
+
}
|
|
7778
|
+
if (onChange && clampedValue !== currentValue) {
|
|
7779
|
+
onChange(clampedValue);
|
|
7780
|
+
}
|
|
7781
|
+
if (isDragging && onDrag) {
|
|
7782
|
+
onDrag(clampedValue);
|
|
7783
|
+
}
|
|
7784
|
+
}, [isControlled, min, max, onChange, currentValue, isDragging, onDrag]);
|
|
7785
|
+
var handleInteraction = React.useCallback(event => {
|
|
7786
|
+
if (isDisabled || !trackRef.current) return;
|
|
7787
|
+
var trackRect = trackRef.current.getBoundingClientRect();
|
|
7788
|
+
var position;
|
|
7789
|
+
if ('touches' in event) {
|
|
7790
|
+
position = orientation === 'horizontal' ? event.touches[0].clientX : event.touches[0].clientY;
|
|
7791
|
+
} else {
|
|
7792
|
+
position = orientation === 'horizontal' ? event.clientX : event.clientY;
|
|
7793
|
+
}
|
|
7794
|
+
var newValue = calculateValue(position, trackRect, min, max, step, orientation, stepValues);
|
|
7795
|
+
updateValue(newValue);
|
|
7796
|
+
}, [min, max, step, orientation, updateValue, isDisabled, stepValues]);
|
|
7797
|
+
var handleMouseDown = React.useCallback(event => {
|
|
7798
|
+
if (isDisabled) return;
|
|
7799
|
+
event.preventDefault(); // Prevent text selection during drag
|
|
7800
|
+
setIsDragging(true);
|
|
7801
|
+
handleInteraction(event); // Update value immediately on click/touch
|
|
7802
|
+
var handleMouseMove = moveEvent => {
|
|
7803
|
+
handleInteraction(moveEvent);
|
|
7804
|
+
};
|
|
7805
|
+
var handleMouseUp = () => {
|
|
7806
|
+
setIsDragging(false);
|
|
7807
|
+
document.removeEventListener('mousemove', handleMouseMove);
|
|
7808
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
7809
|
+
document.removeEventListener('touchmove', handleMouseMove);
|
|
7810
|
+
document.removeEventListener('touchend', handleMouseUp);
|
|
7811
|
+
};
|
|
7812
|
+
document.addEventListener('mousemove', handleMouseMove);
|
|
7813
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
7814
|
+
document.addEventListener('touchmove', handleMouseMove);
|
|
7815
|
+
document.addEventListener('touchend', handleMouseUp);
|
|
7816
|
+
}, [handleInteraction, isDisabled]);
|
|
7817
|
+
// Allow clicking directly on the track
|
|
7818
|
+
var handleTrackMouseDown = React.useCallback(event => {
|
|
7819
|
+
// Prevent triggering if click is on the thumb itself
|
|
7820
|
+
if (thumbRef.current && thumbRef.current.contains(event.target)) {
|
|
7821
|
+
return;
|
|
7822
|
+
}
|
|
7823
|
+
handleMouseDown(event);
|
|
7824
|
+
}, [handleMouseDown]);
|
|
7825
|
+
var handleKeyDown = React.useCallback(event => {
|
|
7826
|
+
if (isDisabled) return;
|
|
7827
|
+
var newValue = currentValue;
|
|
7828
|
+
switch (event.key) {
|
|
7829
|
+
case 'ArrowLeft':
|
|
7830
|
+
case 'ArrowDown':
|
|
7831
|
+
newValue = currentValue - step;
|
|
7832
|
+
break;
|
|
7833
|
+
case 'ArrowRight':
|
|
7834
|
+
case 'ArrowUp':
|
|
7835
|
+
newValue = currentValue + step;
|
|
7836
|
+
break;
|
|
7837
|
+
case 'Home':
|
|
7838
|
+
newValue = min;
|
|
7839
|
+
break;
|
|
7840
|
+
case 'End':
|
|
7841
|
+
newValue = max;
|
|
7842
|
+
break;
|
|
7843
|
+
default:
|
|
7844
|
+
return;
|
|
7845
|
+
// Exit if key is not handled
|
|
7846
|
+
}
|
|
7847
|
+
event.preventDefault(); // Prevent page scroll
|
|
7848
|
+
updateValue(newValue);
|
|
7849
|
+
}, [currentValue, min, max, step, updateValue, isDisabled]);
|
|
7850
|
+
var range = max - min;
|
|
7851
|
+
var thumbPositionPercent = range === 0 ? 0 : (currentValue - min) / range * 100;
|
|
7852
|
+
return {
|
|
7853
|
+
currentValue,
|
|
7854
|
+
isDragging,
|
|
7855
|
+
isHovered,
|
|
7856
|
+
setIsHovered,
|
|
7857
|
+
trackRef,
|
|
7858
|
+
thumbRef,
|
|
7859
|
+
handleThumbMouseDown: handleMouseDown,
|
|
7860
|
+
handleTrackMouseDown,
|
|
7861
|
+
handleKeyDown,
|
|
7862
|
+
thumbPositionPercent
|
|
7863
|
+
};
|
|
7864
|
+
};
|
|
7865
|
+
|
|
7866
|
+
var SliderSizes$1 = {
|
|
7867
|
+
xs: {
|
|
7868
|
+
height: 4,
|
|
7869
|
+
width: '100%'
|
|
7870
|
+
},
|
|
7871
|
+
sm: {
|
|
7872
|
+
height: 6,
|
|
7873
|
+
width: '100%'
|
|
7874
|
+
},
|
|
7875
|
+
md: {
|
|
7876
|
+
height: 8,
|
|
7877
|
+
width: '100%'
|
|
7878
|
+
},
|
|
7879
|
+
lg: {
|
|
7880
|
+
height: 10,
|
|
7881
|
+
width: '100%'
|
|
7882
|
+
},
|
|
7883
|
+
xl: {
|
|
7884
|
+
height: 12,
|
|
7885
|
+
width: '100%'
|
|
7886
|
+
}
|
|
7887
|
+
};
|
|
7888
|
+
var ThumbSizes = {
|
|
7889
|
+
xs: {
|
|
7890
|
+
width: 12,
|
|
7891
|
+
height: 12
|
|
7892
|
+
},
|
|
7893
|
+
sm: {
|
|
7894
|
+
width: 16,
|
|
7895
|
+
height: 16
|
|
7896
|
+
},
|
|
7897
|
+
md: {
|
|
7898
|
+
width: 20,
|
|
7899
|
+
height: 20
|
|
7900
|
+
},
|
|
7901
|
+
lg: {
|
|
7902
|
+
width: 24,
|
|
7903
|
+
height: 24
|
|
7904
|
+
},
|
|
7905
|
+
xl: {
|
|
7906
|
+
width: 28,
|
|
7907
|
+
height: 28
|
|
7908
|
+
}
|
|
7909
|
+
};
|
|
7910
|
+
var SliderShapes = {
|
|
7911
|
+
sharp: 0,
|
|
7912
|
+
rounded: 4,
|
|
7913
|
+
pillShaped: 24
|
|
7914
|
+
};
|
|
7915
|
+
var SliderVariants = {
|
|
7916
|
+
default: {
|
|
7917
|
+
backgroundColor: 'color.blueGray.200'
|
|
7918
|
+
},
|
|
7919
|
+
outline: {
|
|
7920
|
+
backgroundColor: 'transparent',
|
|
7921
|
+
borderWidth: 1,
|
|
7922
|
+
borderStyle: 'solid',
|
|
7923
|
+
borderColor: 'color.blueGray.300'
|
|
7924
|
+
}
|
|
7925
|
+
};
|
|
7926
|
+
// Maps Size enum to track height/width and thumb size for the new implementation
|
|
7927
|
+
var EnhancedSliderSizes = {
|
|
7928
|
+
xs: {
|
|
7929
|
+
trackCrossAxisSize: 4,
|
|
7930
|
+
thumbSize: 12
|
|
7931
|
+
},
|
|
7932
|
+
sm: {
|
|
7933
|
+
trackCrossAxisSize: 6,
|
|
7934
|
+
thumbSize: 16
|
|
7935
|
+
},
|
|
7936
|
+
md: {
|
|
7937
|
+
trackCrossAxisSize: 8,
|
|
7938
|
+
thumbSize: 20
|
|
7939
|
+
},
|
|
7940
|
+
lg: {
|
|
7941
|
+
trackCrossAxisSize: 10,
|
|
7942
|
+
thumbSize: 24
|
|
7943
|
+
},
|
|
7944
|
+
xl: {
|
|
7945
|
+
trackCrossAxisSize: 12,
|
|
7946
|
+
thumbSize: 28
|
|
7947
|
+
}
|
|
7948
|
+
};
|
|
7949
|
+
// Basic styles for horizontal and vertical orientation
|
|
7950
|
+
var OrientationStyles = {
|
|
7951
|
+
horizontal: {
|
|
7952
|
+
width: '100%',
|
|
7953
|
+
minWidth: '120px',
|
|
7954
|
+
height: 'auto',
|
|
7955
|
+
flexDirection: 'row',
|
|
7956
|
+
paddingVertical: 8
|
|
7957
|
+
},
|
|
7958
|
+
vertical: {
|
|
7959
|
+
height: '100%',
|
|
7960
|
+
minHeight: '120px',
|
|
7961
|
+
width: 'auto',
|
|
7962
|
+
flexDirection: 'column-reverse',
|
|
7963
|
+
paddingHorizontal: 8
|
|
7964
|
+
}
|
|
7965
|
+
};
|
|
7966
|
+
|
|
7967
|
+
var _excluded$A = ["min", "max", "step", "currentValue", "stepValues", "shape", "size", "variant", "orientation", "isDisabled", "showValue", "showTooltip", "colorScheme", "label", "helperText", "themeMode", "shadow", "isDragging", "isHovered", "setIsHovered", "trackRef", "thumbRef", "handleThumbMouseDown", "handleTrackMouseDown", "handleKeyDown", "thumbPositionPercent", "ariaLabel", "views"];
|
|
7968
|
+
var SliderView = _ref => {
|
|
7969
|
+
var _views$tooltip, _views$tooltip2;
|
|
7970
|
+
var {
|
|
7971
|
+
min = 0,
|
|
7972
|
+
max = 100,
|
|
7973
|
+
step = 1,
|
|
7974
|
+
currentValue,
|
|
7975
|
+
stepValues,
|
|
7976
|
+
shape = 'rounded',
|
|
7977
|
+
size = 'md',
|
|
7978
|
+
variant = 'default',
|
|
7979
|
+
orientation = 'horizontal',
|
|
7980
|
+
isDisabled = false,
|
|
7981
|
+
showValue = false,
|
|
7982
|
+
showTooltip = false,
|
|
7983
|
+
colorScheme = 'theme.primary',
|
|
7984
|
+
label,
|
|
7985
|
+
helperText,
|
|
7986
|
+
themeMode: elementMode,
|
|
7987
|
+
shadow = {},
|
|
7988
|
+
isDragging,
|
|
7989
|
+
isHovered,
|
|
7990
|
+
setIsHovered,
|
|
7991
|
+
trackRef,
|
|
7992
|
+
thumbRef,
|
|
7993
|
+
handleThumbMouseDown,
|
|
7994
|
+
handleTrackMouseDown,
|
|
7995
|
+
handleKeyDown,
|
|
7996
|
+
thumbPositionPercent,
|
|
7997
|
+
ariaLabel = 'Slider',
|
|
7998
|
+
views = {
|
|
7999
|
+
container: {},
|
|
8000
|
+
track: {},
|
|
8001
|
+
progress: {},
|
|
8002
|
+
filledTrack: {},
|
|
8003
|
+
thumb: {},
|
|
8004
|
+
label: {},
|
|
8005
|
+
valueLabel: {},
|
|
8006
|
+
stepMarks: {},
|
|
8007
|
+
tooltip: {}
|
|
8008
|
+
}
|
|
8009
|
+
} = _ref,
|
|
8010
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
|
|
8011
|
+
var {
|
|
8012
|
+
getColor,
|
|
8013
|
+
themeMode
|
|
8014
|
+
} = appStudio.useTheme();
|
|
8015
|
+
var themeColor = getColor(colorScheme, elementMode || themeMode);
|
|
8016
|
+
var disabledColor = getColor('theme.disabled', elementMode || themeMode);
|
|
8017
|
+
var trackColor = getColor(SliderVariants[variant].backgroundColor, elementMode || themeMode);
|
|
8018
|
+
var isVertical = orientation === 'vertical';
|
|
8019
|
+
var {
|
|
8020
|
+
trackCrossAxisSize,
|
|
8021
|
+
thumbSize
|
|
8022
|
+
} = EnhancedSliderSizes[size] || {
|
|
8023
|
+
trackCrossAxisSize: SliderSizes$1[size].height,
|
|
8024
|
+
thumbSize: ThumbSizes[size].width || 16
|
|
8025
|
+
};
|
|
8026
|
+
// For backward compatibility with the old implementation
|
|
8027
|
+
var legacyView = /*#__PURE__*/React__default.createElement(Vertical, Object.assign({
|
|
8028
|
+
width: "100%",
|
|
8029
|
+
gap: 8
|
|
8030
|
+
}, views.container, props), label && (/*#__PURE__*/React__default.createElement(Horizontal, {
|
|
8031
|
+
justifyContent: "space-between",
|
|
8032
|
+
alignItems: "center"
|
|
8033
|
+
}, /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
8034
|
+
fontSize: 14,
|
|
8035
|
+
fontWeight: 500
|
|
8036
|
+
}, views.label), label), showValue && (/*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
8037
|
+
fontSize: 14,
|
|
8038
|
+
color: "color.blueGray.500"
|
|
8039
|
+
}, views.valueLabel), currentValue)))), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
8040
|
+
ref: trackRef,
|
|
8041
|
+
position: "relative",
|
|
8042
|
+
cursor: isDisabled ? 'not-allowed' : 'pointer',
|
|
8043
|
+
opacity: isDisabled ? 0.6 : 1,
|
|
8044
|
+
onMouseDown: handleTrackMouseDown,
|
|
8045
|
+
onMouseEnter: () => setIsHovered(true),
|
|
8046
|
+
onMouseLeave: () => setIsHovered(false)
|
|
8047
|
+
}, SliderSizes$1[size], {
|
|
8048
|
+
borderRadius: SliderShapes[shape],
|
|
8049
|
+
backgroundColor: trackColor
|
|
8050
|
+
}, SliderVariants[variant], shadow, views.track), stepValues && stepValues.length > 0 && (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, stepValues.map(stepValue => {
|
|
8051
|
+
var stepPercentage = (stepValue - min) / (max - min) * 100;
|
|
8052
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
8053
|
+
key: stepValue,
|
|
8054
|
+
position: "absolute",
|
|
8055
|
+
top: "50%",
|
|
8056
|
+
left: stepPercentage + "%",
|
|
8057
|
+
transform: "translate(-50%, -50%)",
|
|
8058
|
+
width: 4,
|
|
8059
|
+
height: 4,
|
|
8060
|
+
borderRadius: "50%",
|
|
8061
|
+
backgroundColor: isDisabled ? disabledColor : themeColor,
|
|
8062
|
+
zIndex: 1
|
|
8063
|
+
}, views.stepMarks));
|
|
8064
|
+
}))), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
8065
|
+
position: "absolute",
|
|
8066
|
+
top: 0,
|
|
8067
|
+
left: 0,
|
|
8068
|
+
height: "100%",
|
|
8069
|
+
width: thumbPositionPercent + "%",
|
|
8070
|
+
backgroundColor: isDisabled ? disabledColor : themeColor,
|
|
8071
|
+
borderRadius: SliderShapes[shape],
|
|
8072
|
+
transition: "width 0.1s ease-in-out"
|
|
8073
|
+
}, views.progress, views.filledTrack)), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
8074
|
+
ref: thumbRef,
|
|
8075
|
+
role: "slider",
|
|
8076
|
+
tabIndex: isDisabled ? -1 : 0,
|
|
8077
|
+
"aria-valuemin": min,
|
|
8078
|
+
"aria-valuemax": max,
|
|
8079
|
+
"aria-valuenow": currentValue,
|
|
8080
|
+
"aria-orientation": orientation,
|
|
8081
|
+
"aria-disabled": isDisabled,
|
|
8082
|
+
"aria-label": ariaLabel,
|
|
8083
|
+
position: "absolute",
|
|
8084
|
+
top: "50%",
|
|
8085
|
+
left: thumbPositionPercent + "%",
|
|
8086
|
+
borderRadius: "50%",
|
|
8087
|
+
backgroundColor: "white",
|
|
8088
|
+
boxShadow: "0 2px 4px rgba(0, 0, 0, 0.2)",
|
|
8089
|
+
border: "2px solid " + (isDisabled ? disabledColor : themeColor),
|
|
8090
|
+
transition: isDragging ? 'none' : 'transform 0.1s ease-in-out',
|
|
8091
|
+
transform: isHovered ? 'translate(-50%, -50%) scale(1.1)' : 'translate(-50%, -50%)',
|
|
8092
|
+
zIndex: 2,
|
|
8093
|
+
onMouseDown: handleThumbMouseDown,
|
|
8094
|
+
onTouchStart: handleThumbMouseDown,
|
|
8095
|
+
onKeyDown: handleKeyDown
|
|
8096
|
+
}, ThumbSizes[size], views.thumb), showTooltip && (isHovered || isDragging) && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
8097
|
+
position: "absolute",
|
|
8098
|
+
bottom: "100%",
|
|
8099
|
+
left: "50%",
|
|
8100
|
+
transform: "translateX(-50%)",
|
|
8101
|
+
marginBottom: 8,
|
|
8102
|
+
padding: "4px 8px",
|
|
8103
|
+
backgroundColor: "color.black",
|
|
8104
|
+
color: "color.white",
|
|
8105
|
+
borderRadius: 4,
|
|
8106
|
+
fontSize: 12,
|
|
8107
|
+
whiteSpace: "nowrap",
|
|
8108
|
+
zIndex: 3
|
|
8109
|
+
}, views.tooltip), /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({}, (_views$tooltip = views.tooltip) == null ? void 0 : _views$tooltip.text), currentValue == null ? void 0 : currentValue.toFixed(step < 1 ? 1 : 0)))))), helperText && /*#__PURE__*/React__default.createElement(HelperText, null, helperText));
|
|
8110
|
+
// Enhanced view with vertical support and other features
|
|
8111
|
+
var enhancedView = /*#__PURE__*/React__default.createElement(Center
|
|
8112
|
+
// Use Center to easily manage orientation layout
|
|
8113
|
+
, Object.assign({}, OrientationStyles[orientation], {
|
|
8114
|
+
position: "relative" // Needed for absolute positioning of thumb/tooltip
|
|
8115
|
+
,
|
|
8116
|
+
onMouseEnter: () => !isDisabled && setIsHovered(true),
|
|
8117
|
+
onMouseLeave: () => !isDisabled && setIsHovered(false)
|
|
8118
|
+
}, props, views == null ? void 0 : views.container), label && (/*#__PURE__*/React__default.createElement(Horizontal, {
|
|
8119
|
+
justifyContent: "space-between",
|
|
8120
|
+
alignItems: "center",
|
|
8121
|
+
marginBottom: 8,
|
|
8122
|
+
width: "100%"
|
|
8123
|
+
}, /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
8124
|
+
fontSize: 14,
|
|
8125
|
+
fontWeight: 500
|
|
8126
|
+
}, views.label), label), showValue && (/*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
8127
|
+
fontSize: 14,
|
|
8128
|
+
color: "color.blueGray.500"
|
|
8129
|
+
}, views.valueLabel), currentValue)))), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
8130
|
+
ref: trackRef,
|
|
8131
|
+
position: "relative",
|
|
8132
|
+
borderRadius: trackCrossAxisSize / 2,
|
|
8133
|
+
backgroundColor: isDisabled ? disabledColor : trackColor,
|
|
8134
|
+
cursor: isDisabled ? 'not-allowed' : 'pointer',
|
|
8135
|
+
width: isVertical ? trackCrossAxisSize + "px" : '100%',
|
|
8136
|
+
height: isVertical ? '100%' : trackCrossAxisSize + "px",
|
|
8137
|
+
onMouseDown: handleTrackMouseDown,
|
|
8138
|
+
onTouchStart: handleTrackMouseDown
|
|
8139
|
+
}, views == null ? void 0 : views.track), stepValues && stepValues.length > 0 && (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, stepValues.map(stepValue => {
|
|
8140
|
+
var stepPercentage = (stepValue - min) / (max - min) * 100;
|
|
8141
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
8142
|
+
key: stepValue,
|
|
8143
|
+
position: "absolute",
|
|
8144
|
+
width: 4,
|
|
8145
|
+
height: 4,
|
|
8146
|
+
borderRadius: "50%",
|
|
8147
|
+
backgroundColor: isDisabled ? disabledColor : themeColor,
|
|
8148
|
+
zIndex: 1
|
|
8149
|
+
}, isVertical ? {
|
|
8150
|
+
bottom: stepPercentage + "%",
|
|
8151
|
+
left: '50%',
|
|
8152
|
+
transform: 'translate(-50%, 50%)'
|
|
8153
|
+
} : {
|
|
8154
|
+
left: stepPercentage + "%",
|
|
8155
|
+
top: '50%',
|
|
8156
|
+
transform: 'translate(-50%, -50%)'
|
|
8157
|
+
}, views.stepMarks));
|
|
8158
|
+
}))), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
8159
|
+
position: "absolute",
|
|
8160
|
+
borderRadius: trackCrossAxisSize / 2,
|
|
8161
|
+
backgroundColor: isDisabled ? disabledColor : themeColor
|
|
8162
|
+
}, isVertical ? {
|
|
8163
|
+
bottom: 0,
|
|
8164
|
+
left: 0,
|
|
8165
|
+
width: '100%',
|
|
8166
|
+
height: thumbPositionPercent + "%"
|
|
8167
|
+
} : {
|
|
8168
|
+
top: 0,
|
|
8169
|
+
left: 0,
|
|
8170
|
+
height: '100%',
|
|
8171
|
+
width: thumbPositionPercent + "%"
|
|
8172
|
+
}, views == null ? void 0 : views.filledTrack, views == null ? void 0 : views.progress)), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
8173
|
+
ref: thumbRef,
|
|
8174
|
+
role: "slider",
|
|
8175
|
+
tabIndex: isDisabled ? -1 : 0,
|
|
8176
|
+
"aria-valuemin": min,
|
|
8177
|
+
"aria-valuemax": max,
|
|
8178
|
+
"aria-valuenow": currentValue,
|
|
8179
|
+
"aria-orientation": orientation,
|
|
8180
|
+
"aria-disabled": isDisabled,
|
|
8181
|
+
"aria-label": ariaLabel,
|
|
8182
|
+
position: "absolute",
|
|
8183
|
+
width: thumbSize + "px",
|
|
8184
|
+
height: thumbSize + "px",
|
|
8185
|
+
borderRadius: "50%",
|
|
8186
|
+
backgroundColor: isDisabled ? disabledColor : themeColor,
|
|
8187
|
+
border: "2px solid " + getColor('color.white'),
|
|
8188
|
+
boxShadow: "0 1px 3px rgba(0, 0, 0, 0.2)",
|
|
8189
|
+
cursor: isDisabled ? 'not-allowed' : 'grab',
|
|
8190
|
+
transform: isVertical ? 'translateX(-50%)' : 'translateY(-50%)',
|
|
8191
|
+
zIndex: 2,
|
|
8192
|
+
transition: isDragging ? 'none' : 'left 0.1s, bottom 0.1s'
|
|
8193
|
+
}, isVertical ? {
|
|
8194
|
+
left: '50%',
|
|
8195
|
+
bottom: thumbPositionPercent + "%"
|
|
8196
|
+
} : {
|
|
8197
|
+
top: '50%',
|
|
8198
|
+
left: thumbPositionPercent + "%"
|
|
8199
|
+
}, {
|
|
8200
|
+
onMouseDown: handleThumbMouseDown,
|
|
8201
|
+
onTouchStart: handleThumbMouseDown,
|
|
8202
|
+
onKeyDown: handleKeyDown
|
|
8203
|
+
}, views == null ? void 0 : views.thumb), showTooltip && (isHovered || isDragging) && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
8204
|
+
position: "absolute",
|
|
8205
|
+
padding: "4px 8px",
|
|
8206
|
+
backgroundColor: getColor('color.black'),
|
|
8207
|
+
color: getColor('color.white'),
|
|
8208
|
+
borderRadius: "4px",
|
|
8209
|
+
fontSize: "12px",
|
|
8210
|
+
whiteSpace: "nowrap",
|
|
8211
|
+
zIndex: 3
|
|
8212
|
+
}, isVertical ? {
|
|
8213
|
+
left: '100%',
|
|
8214
|
+
marginLeft: '8px',
|
|
8215
|
+
bottom: '0',
|
|
8216
|
+
transform: 'translateY(50%)'
|
|
8217
|
+
} : {
|
|
8218
|
+
bottom: '100%',
|
|
8219
|
+
left: '50%',
|
|
8220
|
+
marginBottom: '8px',
|
|
8221
|
+
transform: 'translateX(-50%)'
|
|
8222
|
+
}, views == null ? void 0 : views.tooltip), /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({}, views == null || (_views$tooltip2 = views.tooltip) == null ? void 0 : _views$tooltip2.text), currentValue == null ? void 0 : currentValue.toFixed(step < 1 ? 1 : 0)))))), helperText && /*#__PURE__*/React__default.createElement(HelperText, {
|
|
8223
|
+
marginTop: 8
|
|
8224
|
+
}, helperText));
|
|
8225
|
+
// Use the enhanced view if orientation is vertical or showTooltip is true
|
|
8226
|
+
// Otherwise use the legacy view for backward compatibility
|
|
8227
|
+
return isVertical || showTooltip ? enhancedView : legacyView;
|
|
8228
|
+
};
|
|
8229
|
+
|
|
8230
|
+
var SliderComponent = props => {
|
|
8231
|
+
// Get Formik props (value, onChange, etc.)
|
|
8232
|
+
var formProps = useFormikInput(props);
|
|
8233
|
+
// Get slider state and handlers
|
|
8234
|
+
var sliderState = useSliderState(Object.assign({}, props, {
|
|
8235
|
+
value: formProps.value !== undefined ? Number(formProps.value) : undefined,
|
|
8236
|
+
onChange: value => {
|
|
8237
|
+
// Call Formik's onChange
|
|
8238
|
+
formProps.onChange(value);
|
|
8239
|
+
// Call the original onChange if provided
|
|
8240
|
+
props.onChange == null || props.onChange(value);
|
|
8241
|
+
}
|
|
8242
|
+
}));
|
|
8243
|
+
// Render the slider with both Formik props and slider state
|
|
8244
|
+
return /*#__PURE__*/React__default.createElement(SliderView, Object.assign({}, props, sliderState, formProps));
|
|
8245
|
+
};
|
|
8246
|
+
/**
|
|
8247
|
+
* Slider component integrated with Formik for form state management.
|
|
8248
|
+
* Allows users to select a value from a range by moving a handle.
|
|
8249
|
+
*/
|
|
8250
|
+
var FormikSlider = SliderComponent;
|
|
8251
|
+
|
|
8252
|
+
var SliderComponent$1 = props => {
|
|
8253
|
+
// Get state and handlers from the custom hook
|
|
8254
|
+
var sliderState = useSliderState(props);
|
|
8255
|
+
// Render the view component, passing down props and state
|
|
8256
|
+
return /*#__PURE__*/React__default.createElement(SliderView, Object.assign({}, props, sliderState));
|
|
8257
|
+
};
|
|
8258
|
+
/**
|
|
8259
|
+
* Slider allows users to select a value from a range by moving a handle.
|
|
8260
|
+
*/
|
|
8261
|
+
var Slider = SliderComponent$1;
|
|
8262
|
+
|
|
8263
|
+
// Create your store with the initial state and actions.
|
|
8264
|
+
var useMessageStore = /*#__PURE__*/zustand.create(set => ({
|
|
8265
|
+
// initial state
|
|
8266
|
+
visible: false,
|
|
8267
|
+
title: '',
|
|
8268
|
+
subtitle: '',
|
|
8269
|
+
variant: 'info',
|
|
8270
|
+
isClosable: false,
|
|
8271
|
+
views: {},
|
|
8272
|
+
action: () => {},
|
|
8273
|
+
actionText: '',
|
|
8274
|
+
showIcon: false,
|
|
8275
|
+
timeout: 3000,
|
|
8276
|
+
show: function show(variant, title, subtitle, isClosable, views, action, actionText, showIcon, timeout) {
|
|
8277
|
+
if (title === void 0) {
|
|
8278
|
+
title = '';
|
|
8279
|
+
}
|
|
8280
|
+
if (subtitle === void 0) {
|
|
8281
|
+
subtitle = '';
|
|
8282
|
+
}
|
|
8283
|
+
return set({
|
|
8284
|
+
visible: true,
|
|
7016
8285
|
variant,
|
|
7017
8286
|
title,
|
|
7018
8287
|
subtitle,
|
|
@@ -7523,7 +8792,7 @@ var UploadView = _ref => {
|
|
|
7523
8792
|
}, views == null ? void 0 : views.view)));
|
|
7524
8793
|
};
|
|
7525
8794
|
|
|
7526
|
-
var _excluded$
|
|
8795
|
+
var _excluded$B = ["accept", "icon", "text", "maxSize", "onFileSelect", "validateFile", "isLoading", "progress"];
|
|
7527
8796
|
var Uploader = _ref => {
|
|
7528
8797
|
var {
|
|
7529
8798
|
accept = '*/*',
|
|
@@ -7535,7 +8804,7 @@ var Uploader = _ref => {
|
|
|
7535
8804
|
isLoading = false,
|
|
7536
8805
|
progress = 0
|
|
7537
8806
|
} = _ref,
|
|
7538
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8807
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
|
|
7539
8808
|
var {
|
|
7540
8809
|
previewUrl,
|
|
7541
8810
|
thumbnailUrl,
|
|
@@ -7672,11 +8941,11 @@ var HeaderIconSizes = {
|
|
|
7672
8941
|
xl: 28
|
|
7673
8942
|
};
|
|
7674
8943
|
|
|
7675
|
-
var _excluded$
|
|
7676
|
-
_excluded2$
|
|
7677
|
-
_excluded3$
|
|
7678
|
-
_excluded4$
|
|
7679
|
-
_excluded5$
|
|
8944
|
+
var _excluded$C = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
|
|
8945
|
+
_excluded2$8 = ["children", "shadow", "isFullScreen", "shape", "views"],
|
|
8946
|
+
_excluded3$5 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
|
|
8947
|
+
_excluded4$4 = ["children", "views"],
|
|
8948
|
+
_excluded5$2 = ["children", "views"];
|
|
7680
8949
|
var ModalOverlay = _ref => {
|
|
7681
8950
|
var {
|
|
7682
8951
|
children,
|
|
@@ -7687,7 +8956,7 @@ var ModalOverlay = _ref => {
|
|
|
7687
8956
|
position = 'center',
|
|
7688
8957
|
views
|
|
7689
8958
|
} = _ref,
|
|
7690
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8959
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$C);
|
|
7691
8960
|
var handleClick = () => {
|
|
7692
8961
|
if (!isClosePrevented) onClose();
|
|
7693
8962
|
};
|
|
@@ -7721,7 +8990,7 @@ var ModalContainer = _ref2 => {
|
|
|
7721
8990
|
shape = 'rounded',
|
|
7722
8991
|
views
|
|
7723
8992
|
} = _ref2,
|
|
7724
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
8993
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$8);
|
|
7725
8994
|
var defaultShadow = typeof document !== undefined ? {
|
|
7726
8995
|
boxShadow: '0px 2px 8px rgba(0, 0, 0, 0.3)'
|
|
7727
8996
|
} : {
|
|
@@ -7753,7 +9022,7 @@ var ModalHeader = _ref3 => {
|
|
|
7753
9022
|
buttonPosition = 'right',
|
|
7754
9023
|
views
|
|
7755
9024
|
} = _ref3,
|
|
7756
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
9025
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$5);
|
|
7757
9026
|
var onClose = props.onClose ? props.onClose : hideModal;
|
|
7758
9027
|
var buttonIcon = /*#__PURE__*/React__default.createElement(Button, {
|
|
7759
9028
|
onClick: onClose,
|
|
@@ -7778,7 +9047,7 @@ var ModalBody = _ref4 => {
|
|
|
7778
9047
|
children,
|
|
7779
9048
|
views
|
|
7780
9049
|
} = _ref4,
|
|
7781
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$
|
|
9050
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$4);
|
|
7782
9051
|
var defaultBorder = {
|
|
7783
9052
|
borderBottomWidth: 2,
|
|
7784
9053
|
borderTopWidth: 2,
|
|
@@ -7795,7 +9064,7 @@ var ModalFooter = _ref5 => {
|
|
|
7795
9064
|
children,
|
|
7796
9065
|
views
|
|
7797
9066
|
} = _ref5,
|
|
7798
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded5$
|
|
9067
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded5$2);
|
|
7799
9068
|
return /*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
|
|
7800
9069
|
marginTop: "auto",
|
|
7801
9070
|
alignItems: "center",
|
|
@@ -7857,6 +9126,344 @@ Modal.Body = ModalBody;
|
|
|
7857
9126
|
Modal.Footer = ModalFooter;
|
|
7858
9127
|
Modal.Layout = ModalLayout;
|
|
7859
9128
|
|
|
9129
|
+
var useNavigationMenuState = function useNavigationMenuState(defaultActiveItemId, defaultExpandedItemIds) {
|
|
9130
|
+
if (defaultActiveItemId === void 0) {
|
|
9131
|
+
defaultActiveItemId = null;
|
|
9132
|
+
}
|
|
9133
|
+
if (defaultExpandedItemIds === void 0) {
|
|
9134
|
+
defaultExpandedItemIds = [];
|
|
9135
|
+
}
|
|
9136
|
+
var [activeItemId, setActiveItemId] = React.useState(defaultActiveItemId);
|
|
9137
|
+
var [expandedItemIds, setExpandedItemIds] = React.useState(defaultExpandedItemIds);
|
|
9138
|
+
var toggleExpandedItem = itemId => {
|
|
9139
|
+
setExpandedItemIds(prevExpandedItemIds => {
|
|
9140
|
+
// Check if the item is already expanded
|
|
9141
|
+
var isExpanded = prevExpandedItemIds.includes(itemId);
|
|
9142
|
+
if (isExpanded) {
|
|
9143
|
+
// If expanded, remove it from the list
|
|
9144
|
+
return prevExpandedItemIds.filter(id => id !== itemId);
|
|
9145
|
+
} else {
|
|
9146
|
+
// If not expanded, add it to the list
|
|
9147
|
+
return [...prevExpandedItemIds, itemId];
|
|
9148
|
+
}
|
|
9149
|
+
});
|
|
9150
|
+
};
|
|
9151
|
+
var isItemExpanded = itemId => {
|
|
9152
|
+
return expandedItemIds.includes(itemId);
|
|
9153
|
+
};
|
|
9154
|
+
return {
|
|
9155
|
+
activeItemId,
|
|
9156
|
+
setActiveItemId,
|
|
9157
|
+
expandedItemIds,
|
|
9158
|
+
toggleExpandedItem,
|
|
9159
|
+
isItemExpanded
|
|
9160
|
+
};
|
|
9161
|
+
};
|
|
9162
|
+
|
|
9163
|
+
var NavigationMenuSizes = {
|
|
9164
|
+
sm: {
|
|
9165
|
+
padding: '8px 12px',
|
|
9166
|
+
fontSize: '14px'
|
|
9167
|
+
},
|
|
9168
|
+
md: {
|
|
9169
|
+
padding: '10px 16px',
|
|
9170
|
+
fontSize: '16px'
|
|
9171
|
+
},
|
|
9172
|
+
lg: {
|
|
9173
|
+
padding: '12px 20px',
|
|
9174
|
+
fontSize: '18px'
|
|
9175
|
+
}
|
|
9176
|
+
};
|
|
9177
|
+
var NavigationMenuVariants = {
|
|
9178
|
+
default: {
|
|
9179
|
+
backgroundColor: 'transparent',
|
|
9180
|
+
color: 'color.gray.800'
|
|
9181
|
+
},
|
|
9182
|
+
filled: {
|
|
9183
|
+
backgroundColor: 'color.gray.100',
|
|
9184
|
+
color: 'color.gray.800'
|
|
9185
|
+
},
|
|
9186
|
+
outline: {
|
|
9187
|
+
backgroundColor: 'transparent',
|
|
9188
|
+
borderWidth: '1px',
|
|
9189
|
+
borderStyle: 'solid',
|
|
9190
|
+
borderColor: 'color.gray.200',
|
|
9191
|
+
color: 'color.gray.800'
|
|
9192
|
+
}
|
|
9193
|
+
};
|
|
9194
|
+
var NavigationMenuOrientations = {
|
|
9195
|
+
horizontal: {
|
|
9196
|
+
flexDirection: 'row'
|
|
9197
|
+
},
|
|
9198
|
+
vertical: {
|
|
9199
|
+
flexDirection: 'column'
|
|
9200
|
+
}
|
|
9201
|
+
};
|
|
9202
|
+
var NavigationMenuItemStates = {
|
|
9203
|
+
active: {
|
|
9204
|
+
backgroundColor: 'color.gray.200',
|
|
9205
|
+
fontWeight: 'bold'
|
|
9206
|
+
},
|
|
9207
|
+
hover: {
|
|
9208
|
+
backgroundColor: 'color.gray.100'
|
|
9209
|
+
},
|
|
9210
|
+
disabled: {
|
|
9211
|
+
opacity: 0.5,
|
|
9212
|
+
cursor: 'not-allowed'
|
|
9213
|
+
}
|
|
9214
|
+
};
|
|
9215
|
+
|
|
9216
|
+
// Create context for the NavigationMenu
|
|
9217
|
+
var NavigationMenuContext = /*#__PURE__*/React.createContext({
|
|
9218
|
+
activeItemId: null,
|
|
9219
|
+
setActiveItemId: () => {},
|
|
9220
|
+
expandedItemIds: [],
|
|
9221
|
+
toggleExpandedItem: () => {},
|
|
9222
|
+
isItemExpanded: () => false,
|
|
9223
|
+
orientation: 'vertical',
|
|
9224
|
+
size: 'md',
|
|
9225
|
+
variant: 'default'
|
|
9226
|
+
});
|
|
9227
|
+
// Provider component for the NavigationMenu context
|
|
9228
|
+
var NavigationMenuProvider = _ref => {
|
|
9229
|
+
var {
|
|
9230
|
+
children,
|
|
9231
|
+
value
|
|
9232
|
+
} = _ref;
|
|
9233
|
+
return /*#__PURE__*/React__default.createElement(NavigationMenuContext.Provider, {
|
|
9234
|
+
value: value
|
|
9235
|
+
}, children);
|
|
9236
|
+
};
|
|
9237
|
+
// Hook to use the NavigationMenu context
|
|
9238
|
+
var useNavigationMenuContext = () => {
|
|
9239
|
+
var context = React.useContext(NavigationMenuContext);
|
|
9240
|
+
if (!context) {
|
|
9241
|
+
throw new Error('useNavigationMenuContext must be used within a NavigationMenuProvider');
|
|
9242
|
+
}
|
|
9243
|
+
return context;
|
|
9244
|
+
};
|
|
9245
|
+
// NavigationMenu List component
|
|
9246
|
+
var NavigationMenuList = _ref2 => {
|
|
9247
|
+
var {
|
|
9248
|
+
children,
|
|
9249
|
+
views
|
|
9250
|
+
} = _ref2;
|
|
9251
|
+
var {
|
|
9252
|
+
orientation
|
|
9253
|
+
} = useNavigationMenuContext();
|
|
9254
|
+
var Container = orientation === 'horizontal' ? appStudio.Horizontal : appStudio.Vertical;
|
|
9255
|
+
return /*#__PURE__*/React__default.createElement(Container, Object.assign({
|
|
9256
|
+
width: "100%",
|
|
9257
|
+
gap: 2
|
|
9258
|
+
}, NavigationMenuOrientations[orientation], views == null ? void 0 : views.container), children);
|
|
9259
|
+
};
|
|
9260
|
+
// NavigationMenu Item component
|
|
9261
|
+
var NavigationMenuItem = _ref3 => {
|
|
9262
|
+
var {
|
|
9263
|
+
item,
|
|
9264
|
+
views
|
|
9265
|
+
} = _ref3;
|
|
9266
|
+
var {
|
|
9267
|
+
activeItemId,
|
|
9268
|
+
setActiveItemId,
|
|
9269
|
+
// isItemExpanded,
|
|
9270
|
+
orientation,
|
|
9271
|
+
size,
|
|
9272
|
+
variant,
|
|
9273
|
+
onItemActivate
|
|
9274
|
+
} = useNavigationMenuContext();
|
|
9275
|
+
var isActive = activeItemId === item.id;
|
|
9276
|
+
var hasSubItems = item.items && item.items.length > 0;
|
|
9277
|
+
// const isExpanded = hasSubItems && isItemExpanded(item.id);
|
|
9278
|
+
var handleClick = () => {
|
|
9279
|
+
if (item.disabled) return;
|
|
9280
|
+
setActiveItemId(item.id);
|
|
9281
|
+
if (onItemActivate) {
|
|
9282
|
+
onItemActivate(item.id);
|
|
9283
|
+
}
|
|
9284
|
+
};
|
|
9285
|
+
var Container = orientation === 'horizontal' ? appStudio.Horizontal : appStudio.Vertical;
|
|
9286
|
+
// Render item with sub-items
|
|
9287
|
+
if (hasSubItems) {
|
|
9288
|
+
var _item$items;
|
|
9289
|
+
return /*#__PURE__*/React__default.createElement(Container, Object.assign({
|
|
9290
|
+
width: "100%",
|
|
9291
|
+
flexDirection: orientation === 'horizontal' ? 'column' : 'column',
|
|
9292
|
+
position: "relative"
|
|
9293
|
+
}, views == null ? void 0 : views.item), /*#__PURE__*/React__default.createElement(NavigationMenuTrigger, {
|
|
9294
|
+
itemId: item.id,
|
|
9295
|
+
disabled: item.disabled,
|
|
9296
|
+
views: views
|
|
9297
|
+
}, item.icon && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
9298
|
+
marginRight: 8
|
|
9299
|
+
}, views == null ? void 0 : views.icon), item.icon)), item.label), /*#__PURE__*/React__default.createElement(NavigationMenuContent, {
|
|
9300
|
+
itemId: item.id
|
|
9301
|
+
}, /*#__PURE__*/React__default.createElement(NavigationMenuList, null, (_item$items = item.items) == null ? void 0 : _item$items.map(subItem => (/*#__PURE__*/React__default.createElement(NavigationMenuItem, {
|
|
9302
|
+
key: subItem.id,
|
|
9303
|
+
item: subItem
|
|
9304
|
+
}))))));
|
|
9305
|
+
}
|
|
9306
|
+
// Render regular item (no sub-items)
|
|
9307
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
9308
|
+
as: item.href ? 'a' : 'div',
|
|
9309
|
+
to: item.href,
|
|
9310
|
+
onClick: handleClick,
|
|
9311
|
+
cursor: item.disabled ? 'not-allowed' : 'pointer',
|
|
9312
|
+
opacity: item.disabled ? 0.5 : 1,
|
|
9313
|
+
width: "100%",
|
|
9314
|
+
display: "flex",
|
|
9315
|
+
alignItems: "center",
|
|
9316
|
+
borderRadius: 4,
|
|
9317
|
+
transition: "background-color 0.2s ease"
|
|
9318
|
+
}, NavigationMenuSizes[size], NavigationMenuVariants[variant], isActive ? NavigationMenuItemStates.active : {}, {
|
|
9319
|
+
_hover: !item.disabled ? NavigationMenuItemStates.hover : {}
|
|
9320
|
+
}, views == null ? void 0 : views.item), item.icon && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
9321
|
+
marginRight: 8
|
|
9322
|
+
}, views == null ? void 0 : views.icon), item.icon)), item.label);
|
|
9323
|
+
};
|
|
9324
|
+
// NavigationMenu Trigger component
|
|
9325
|
+
var NavigationMenuTrigger = _ref4 => {
|
|
9326
|
+
var {
|
|
9327
|
+
children,
|
|
9328
|
+
itemId,
|
|
9329
|
+
disabled,
|
|
9330
|
+
views
|
|
9331
|
+
} = _ref4;
|
|
9332
|
+
var {
|
|
9333
|
+
activeItemId,
|
|
9334
|
+
toggleExpandedItem,
|
|
9335
|
+
isItemExpanded,
|
|
9336
|
+
size,
|
|
9337
|
+
variant
|
|
9338
|
+
} = useNavigationMenuContext();
|
|
9339
|
+
var isActive = activeItemId === itemId;
|
|
9340
|
+
var isExpanded = isItemExpanded(itemId);
|
|
9341
|
+
var handleClick = e => {
|
|
9342
|
+
e.preventDefault();
|
|
9343
|
+
if (disabled) return;
|
|
9344
|
+
toggleExpandedItem(itemId);
|
|
9345
|
+
};
|
|
9346
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
9347
|
+
onClick: handleClick,
|
|
9348
|
+
cursor: disabled ? 'not-allowed' : 'pointer',
|
|
9349
|
+
opacity: disabled ? 0.5 : 1,
|
|
9350
|
+
width: "100%",
|
|
9351
|
+
display: "flex",
|
|
9352
|
+
alignItems: "center",
|
|
9353
|
+
justifyContent: "space-between",
|
|
9354
|
+
borderRadius: 4,
|
|
9355
|
+
transition: "background-color 0.2s ease"
|
|
9356
|
+
}, NavigationMenuSizes[size], NavigationMenuVariants[variant], isActive ? NavigationMenuItemStates.active : {}, {
|
|
9357
|
+
_hover: !disabled ? NavigationMenuItemStates.hover : {}
|
|
9358
|
+
}, views == null ? void 0 : views.trigger), /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
9359
|
+
display: "flex",
|
|
9360
|
+
alignItems: "center"
|
|
9361
|
+
}, children), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
9362
|
+
transition: "transform 0.2s ease",
|
|
9363
|
+
transform: isExpanded ? 'rotate(180deg)' : 'rotate(0deg)'
|
|
9364
|
+
}, views == null ? void 0 : views.indicator), /*#__PURE__*/React__default.createElement("svg", {
|
|
9365
|
+
width: "16",
|
|
9366
|
+
height: "16",
|
|
9367
|
+
viewBox: "0 0 24 24",
|
|
9368
|
+
fill: "none",
|
|
9369
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
9370
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
9371
|
+
d: "M16.59 8.59L12 13.17L7.41 8.59L6 10L12 16L18 10L16.59 8.59Z",
|
|
9372
|
+
fill: "currentColor"
|
|
9373
|
+
}))));
|
|
9374
|
+
};
|
|
9375
|
+
// NavigationMenu Content component
|
|
9376
|
+
var NavigationMenuContent = _ref5 => {
|
|
9377
|
+
var {
|
|
9378
|
+
children,
|
|
9379
|
+
itemId,
|
|
9380
|
+
views
|
|
9381
|
+
} = _ref5;
|
|
9382
|
+
var {
|
|
9383
|
+
isItemExpanded,
|
|
9384
|
+
orientation
|
|
9385
|
+
} = useNavigationMenuContext();
|
|
9386
|
+
var isExpanded = isItemExpanded(itemId);
|
|
9387
|
+
if (!isExpanded) {
|
|
9388
|
+
return null;
|
|
9389
|
+
}
|
|
9390
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
9391
|
+
paddingLeft: orientation === 'vertical' ? 16 : 0,
|
|
9392
|
+
paddingTop: orientation === 'horizontal' ? 8 : 0,
|
|
9393
|
+
overflow: "hidden",
|
|
9394
|
+
width: "100%"
|
|
9395
|
+
}, views == null ? void 0 : views.container), children);
|
|
9396
|
+
};
|
|
9397
|
+
// Main NavigationMenu View component
|
|
9398
|
+
var NavigationMenuView = _ref6 => {
|
|
9399
|
+
var {
|
|
9400
|
+
items,
|
|
9401
|
+
orientation,
|
|
9402
|
+
//size, variant,
|
|
9403
|
+
views
|
|
9404
|
+
} = _ref6;
|
|
9405
|
+
var Container = orientation === 'horizontal' ? appStudio.Horizontal : appStudio.Vertical;
|
|
9406
|
+
return /*#__PURE__*/React__default.createElement(Container, Object.assign({
|
|
9407
|
+
width: "100%"
|
|
9408
|
+
}, NavigationMenuOrientations[orientation], views == null ? void 0 : views.container), /*#__PURE__*/React__default.createElement(NavigationMenuList, {
|
|
9409
|
+
views: views
|
|
9410
|
+
}, items.map(item => (/*#__PURE__*/React__default.createElement(NavigationMenuItem, {
|
|
9411
|
+
key: item.id,
|
|
9412
|
+
item: item,
|
|
9413
|
+
views: views
|
|
9414
|
+
})))));
|
|
9415
|
+
};
|
|
9416
|
+
|
|
9417
|
+
var _excluded$D = ["items", "orientation", "size", "variant", "defaultActiveItemId", "defaultExpandedItemIds", "onItemActivate", "views"];
|
|
9418
|
+
/**
|
|
9419
|
+
* NavigationMenu component for creating navigation menus with optional nested items.
|
|
9420
|
+
*/
|
|
9421
|
+
var NavigationMenuComponent = _ref => {
|
|
9422
|
+
var {
|
|
9423
|
+
items,
|
|
9424
|
+
orientation = 'vertical',
|
|
9425
|
+
size = 'md',
|
|
9426
|
+
variant = 'default',
|
|
9427
|
+
defaultActiveItemId = null,
|
|
9428
|
+
defaultExpandedItemIds = [],
|
|
9429
|
+
onItemActivate,
|
|
9430
|
+
views
|
|
9431
|
+
} = _ref,
|
|
9432
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$D);
|
|
9433
|
+
var {
|
|
9434
|
+
activeItemId,
|
|
9435
|
+
setActiveItemId,
|
|
9436
|
+
expandedItemIds,
|
|
9437
|
+
toggleExpandedItem,
|
|
9438
|
+
isItemExpanded
|
|
9439
|
+
} = useNavigationMenuState(defaultActiveItemId, defaultExpandedItemIds);
|
|
9440
|
+
return /*#__PURE__*/React__default.createElement(NavigationMenuProvider, {
|
|
9441
|
+
value: {
|
|
9442
|
+
activeItemId,
|
|
9443
|
+
setActiveItemId,
|
|
9444
|
+
expandedItemIds,
|
|
9445
|
+
toggleExpandedItem,
|
|
9446
|
+
isItemExpanded,
|
|
9447
|
+
orientation,
|
|
9448
|
+
size,
|
|
9449
|
+
variant,
|
|
9450
|
+
onItemActivate
|
|
9451
|
+
}
|
|
9452
|
+
}, /*#__PURE__*/React__default.createElement(NavigationMenuView, Object.assign({
|
|
9453
|
+
items: items,
|
|
9454
|
+
orientation: orientation,
|
|
9455
|
+
size: size,
|
|
9456
|
+
variant: variant,
|
|
9457
|
+
views: views
|
|
9458
|
+
}, props)));
|
|
9459
|
+
};
|
|
9460
|
+
var NavigationMenu = NavigationMenuComponent;
|
|
9461
|
+
// Assign the sub-components to the main component
|
|
9462
|
+
NavigationMenu.List = NavigationMenuList;
|
|
9463
|
+
NavigationMenu.Item = NavigationMenuItem;
|
|
9464
|
+
NavigationMenu.Trigger = NavigationMenuTrigger;
|
|
9465
|
+
NavigationMenu.Content = NavigationMenuContent;
|
|
9466
|
+
|
|
7860
9467
|
var defaultStyles = {};
|
|
7861
9468
|
// Create a context that includes both styles and the onClick function
|
|
7862
9469
|
var TableContext = /*#__PURE__*/React.createContext({
|
|
@@ -8166,7 +9773,7 @@ var useToggleState = defaultToggled => {
|
|
|
8166
9773
|
};
|
|
8167
9774
|
};
|
|
8168
9775
|
|
|
8169
|
-
var _excluded$
|
|
9776
|
+
var _excluded$E = ["children", "shape", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle", "views"];
|
|
8170
9777
|
var ToggleView = _ref => {
|
|
8171
9778
|
var {
|
|
8172
9779
|
children,
|
|
@@ -8180,7 +9787,7 @@ var ToggleView = _ref => {
|
|
|
8180
9787
|
onToggle,
|
|
8181
9788
|
views
|
|
8182
9789
|
} = _ref,
|
|
8183
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
9790
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$E);
|
|
8184
9791
|
var toggleColor = !isDisabled ? 'color.trueGray.400' : 'theme.disabled';
|
|
8185
9792
|
var isActive = !!(isToggle || isHovered);
|
|
8186
9793
|
var toggleVariants = {
|
|
@@ -8223,7 +9830,7 @@ var ToggleView = _ref => {
|
|
|
8223
9830
|
}, toggleVariants[variant], props, views == null ? void 0 : views.container), children);
|
|
8224
9831
|
};
|
|
8225
9832
|
|
|
8226
|
-
var _excluded$
|
|
9833
|
+
var _excluded$F = ["children", "shape", "variant", "isDisabled", "isToggled", "onToggle"];
|
|
8227
9834
|
// Destructuring properties from ToggleProps to be used within the ToggleComponent.
|
|
8228
9835
|
var ToggleComponent = _ref => {
|
|
8229
9836
|
var {
|
|
@@ -8235,7 +9842,7 @@ var ToggleComponent = _ref => {
|
|
|
8235
9842
|
isToggled = false,
|
|
8236
9843
|
onToggle
|
|
8237
9844
|
} = _ref,
|
|
8238
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
9845
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$F);
|
|
8239
9846
|
// Initializing toggle state and set state functions using the custom hook useToggleState.
|
|
8240
9847
|
var {
|
|
8241
9848
|
isHovered,
|
|
@@ -8475,6 +10082,552 @@ var DragAndDropComponent = props => {
|
|
|
8475
10082
|
};
|
|
8476
10083
|
var DragAndDrop = DragAndDropComponent;
|
|
8477
10084
|
|
|
10085
|
+
var useDropdownMenuState = function useDropdownMenuState(defaultOpen) {
|
|
10086
|
+
if (defaultOpen === void 0) {
|
|
10087
|
+
defaultOpen = false;
|
|
10088
|
+
}
|
|
10089
|
+
var [isOpen, setIsOpen] = React.useState(defaultOpen);
|
|
10090
|
+
var [activeSubmenuId, setActiveSubmenuId] = React.useState(null);
|
|
10091
|
+
// Close the dropdown menu when clicking outside
|
|
10092
|
+
React.useEffect(() => {
|
|
10093
|
+
var handleClickOutside = event => {
|
|
10094
|
+
var path = event.composedPath();
|
|
10095
|
+
var isOutside = !path.some(element => (element == null ? void 0 : element.id) === 'dropdown-menu' || (element == null ? void 0 : element.id) === 'dropdown-trigger');
|
|
10096
|
+
if (isOutside && isOpen) {
|
|
10097
|
+
setIsOpen(false);
|
|
10098
|
+
setActiveSubmenuId(null);
|
|
10099
|
+
}
|
|
10100
|
+
};
|
|
10101
|
+
// Close the dropdown menu when the window is resized
|
|
10102
|
+
var handleResize = () => {
|
|
10103
|
+
if (isOpen) {
|
|
10104
|
+
setIsOpen(false);
|
|
10105
|
+
setActiveSubmenuId(null);
|
|
10106
|
+
}
|
|
10107
|
+
};
|
|
10108
|
+
// Close the dropdown menu when the escape key is pressed
|
|
10109
|
+
var handleKeyDown = event => {
|
|
10110
|
+
if (event.key === 'Escape' && isOpen) {
|
|
10111
|
+
setIsOpen(false);
|
|
10112
|
+
setActiveSubmenuId(null);
|
|
10113
|
+
}
|
|
10114
|
+
};
|
|
10115
|
+
document.addEventListener('mousedown', handleClickOutside);
|
|
10116
|
+
window.addEventListener('resize', handleResize);
|
|
10117
|
+
document.addEventListener('keydown', handleKeyDown);
|
|
10118
|
+
return () => {
|
|
10119
|
+
document.removeEventListener('mousedown', handleClickOutside);
|
|
10120
|
+
window.removeEventListener('resize', handleResize);
|
|
10121
|
+
document.removeEventListener('keydown', handleKeyDown);
|
|
10122
|
+
};
|
|
10123
|
+
}, [isOpen]);
|
|
10124
|
+
return {
|
|
10125
|
+
isOpen,
|
|
10126
|
+
setIsOpen,
|
|
10127
|
+
activeSubmenuId,
|
|
10128
|
+
setActiveSubmenuId
|
|
10129
|
+
};
|
|
10130
|
+
};
|
|
10131
|
+
|
|
10132
|
+
var DropdownMenuSizes = {
|
|
10133
|
+
sm: {
|
|
10134
|
+
padding: '6px 8px',
|
|
10135
|
+
fontSize: '14px',
|
|
10136
|
+
minWidth: '160px'
|
|
10137
|
+
},
|
|
10138
|
+
md: {
|
|
10139
|
+
padding: '8px 12px',
|
|
10140
|
+
fontSize: '16px',
|
|
10141
|
+
minWidth: '180px'
|
|
10142
|
+
},
|
|
10143
|
+
lg: {
|
|
10144
|
+
padding: '10px 16px',
|
|
10145
|
+
fontSize: '18px',
|
|
10146
|
+
minWidth: '200px'
|
|
10147
|
+
}
|
|
10148
|
+
};
|
|
10149
|
+
var DropdownMenuVariants = {
|
|
10150
|
+
default: {
|
|
10151
|
+
backgroundColor: 'white',
|
|
10152
|
+
color: 'color.gray.800'
|
|
10153
|
+
},
|
|
10154
|
+
filled: {
|
|
10155
|
+
backgroundColor: 'color.gray.100',
|
|
10156
|
+
color: 'color.gray.800'
|
|
10157
|
+
},
|
|
10158
|
+
outline: {
|
|
10159
|
+
backgroundColor: 'white',
|
|
10160
|
+
borderWidth: '1px',
|
|
10161
|
+
borderStyle: 'solid',
|
|
10162
|
+
borderColor: 'color.gray.200',
|
|
10163
|
+
color: 'color.gray.800'
|
|
10164
|
+
}
|
|
10165
|
+
};
|
|
10166
|
+
var DropdownMenuItemStates = {
|
|
10167
|
+
hover: {
|
|
10168
|
+
backgroundColor: 'color.gray.100'
|
|
10169
|
+
},
|
|
10170
|
+
active: {
|
|
10171
|
+
backgroundColor: 'color.gray.200'
|
|
10172
|
+
},
|
|
10173
|
+
disabled: {
|
|
10174
|
+
opacity: 0.5,
|
|
10175
|
+
cursor: 'not-allowed'
|
|
10176
|
+
}
|
|
10177
|
+
};
|
|
10178
|
+
// Helper function to calculate position based on side and alignment
|
|
10179
|
+
var getDropdownPosition = function getDropdownPosition(side, align) {
|
|
10180
|
+
if (side === void 0) {
|
|
10181
|
+
side = 'bottom';
|
|
10182
|
+
}
|
|
10183
|
+
if (align === void 0) {
|
|
10184
|
+
align = 'start';
|
|
10185
|
+
}
|
|
10186
|
+
var positions = {
|
|
10187
|
+
top: Object.assign({
|
|
10188
|
+
bottom: '100%',
|
|
10189
|
+
marginBottom: '8px'
|
|
10190
|
+
}, align === 'start' && {
|
|
10191
|
+
left: 0
|
|
10192
|
+
}, align === 'center' && {
|
|
10193
|
+
left: '50%',
|
|
10194
|
+
transform: 'translateX(-50%)'
|
|
10195
|
+
}, align === 'end' && {
|
|
10196
|
+
right: 0
|
|
10197
|
+
}),
|
|
10198
|
+
right: Object.assign({
|
|
10199
|
+
left: '100%',
|
|
10200
|
+
marginLeft: '8px'
|
|
10201
|
+
}, align === 'start' && {
|
|
10202
|
+
top: 0
|
|
10203
|
+
}, align === 'center' && {
|
|
10204
|
+
top: '50%',
|
|
10205
|
+
transform: 'translateY(-50%)'
|
|
10206
|
+
}, align === 'end' && {
|
|
10207
|
+
bottom: 0
|
|
10208
|
+
}),
|
|
10209
|
+
bottom: Object.assign({
|
|
10210
|
+
top: '100%',
|
|
10211
|
+
marginTop: '8px'
|
|
10212
|
+
}, align === 'start' && {
|
|
10213
|
+
left: 0
|
|
10214
|
+
}, align === 'center' && {
|
|
10215
|
+
left: '50%',
|
|
10216
|
+
transform: 'translateX(-50%)'
|
|
10217
|
+
}, align === 'end' && {
|
|
10218
|
+
right: 0
|
|
10219
|
+
}),
|
|
10220
|
+
left: Object.assign({
|
|
10221
|
+
right: '100%',
|
|
10222
|
+
marginRight: '8px'
|
|
10223
|
+
}, align === 'start' && {
|
|
10224
|
+
top: 0
|
|
10225
|
+
}, align === 'center' && {
|
|
10226
|
+
top: '50%',
|
|
10227
|
+
transform: 'translateY(-50%)'
|
|
10228
|
+
}, align === 'end' && {
|
|
10229
|
+
bottom: 0
|
|
10230
|
+
})
|
|
10231
|
+
};
|
|
10232
|
+
return positions[side];
|
|
10233
|
+
};
|
|
10234
|
+
|
|
10235
|
+
var _excluded$G = ["children", "views"],
|
|
10236
|
+
_excluded2$9 = ["items", "side", "align", "views"],
|
|
10237
|
+
_excluded3$6 = ["item", "views"],
|
|
10238
|
+
_excluded4$5 = ["views"],
|
|
10239
|
+
_excluded5$3 = ["trigger", "items", "side", "align", "views"];
|
|
10240
|
+
// Create context for the DropdownMenu
|
|
10241
|
+
var DropdownMenuContext = /*#__PURE__*/React.createContext({
|
|
10242
|
+
isOpen: false,
|
|
10243
|
+
setIsOpen: () => {},
|
|
10244
|
+
activeSubmenuId: null,
|
|
10245
|
+
setActiveSubmenuId: () => {},
|
|
10246
|
+
size: 'md',
|
|
10247
|
+
variant: 'default'
|
|
10248
|
+
});
|
|
10249
|
+
// Provider component for the DropdownMenu context
|
|
10250
|
+
var DropdownMenuProvider = _ref => {
|
|
10251
|
+
var {
|
|
10252
|
+
children,
|
|
10253
|
+
value
|
|
10254
|
+
} = _ref;
|
|
10255
|
+
return /*#__PURE__*/React__default.createElement(DropdownMenuContext.Provider, {
|
|
10256
|
+
value: value
|
|
10257
|
+
}, children);
|
|
10258
|
+
};
|
|
10259
|
+
// Hook to use the DropdownMenu context
|
|
10260
|
+
var useDropdownMenuContext = () => {
|
|
10261
|
+
var context = React.useContext(DropdownMenuContext);
|
|
10262
|
+
if (!context) {
|
|
10263
|
+
throw new Error('useDropdownMenuContext must be used within a DropdownMenuProvider');
|
|
10264
|
+
}
|
|
10265
|
+
return context;
|
|
10266
|
+
};
|
|
10267
|
+
// DropdownMenu Trigger component
|
|
10268
|
+
var DropdownMenuTrigger = _ref2 => {
|
|
10269
|
+
var {
|
|
10270
|
+
children,
|
|
10271
|
+
views
|
|
10272
|
+
} = _ref2,
|
|
10273
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$G);
|
|
10274
|
+
var {
|
|
10275
|
+
isOpen,
|
|
10276
|
+
setIsOpen
|
|
10277
|
+
} = useDropdownMenuContext();
|
|
10278
|
+
var handleClick = e => {
|
|
10279
|
+
e.stopPropagation();
|
|
10280
|
+
setIsOpen(!isOpen);
|
|
10281
|
+
};
|
|
10282
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
10283
|
+
id: "dropdown-trigger",
|
|
10284
|
+
onClick: handleClick,
|
|
10285
|
+
cursor: "pointer",
|
|
10286
|
+
position: "relative",
|
|
10287
|
+
display: "inline-block"
|
|
10288
|
+
}, views == null ? void 0 : views.container, props), children);
|
|
10289
|
+
};
|
|
10290
|
+
// DropdownMenu Content component
|
|
10291
|
+
var DropdownMenuContent = _ref3 => {
|
|
10292
|
+
var {
|
|
10293
|
+
items,
|
|
10294
|
+
side = 'bottom',
|
|
10295
|
+
align = 'start',
|
|
10296
|
+
views
|
|
10297
|
+
} = _ref3,
|
|
10298
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$9);
|
|
10299
|
+
var {
|
|
10300
|
+
isOpen,
|
|
10301
|
+
//activeSubmenuId, setActiveSubmenuId, size,
|
|
10302
|
+
variant
|
|
10303
|
+
} = useDropdownMenuContext();
|
|
10304
|
+
if (!isOpen) {
|
|
10305
|
+
return null;
|
|
10306
|
+
}
|
|
10307
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
10308
|
+
id: "dropdown-menu",
|
|
10309
|
+
position: "absolute",
|
|
10310
|
+
zIndex: 1000,
|
|
10311
|
+
borderRadius: 4,
|
|
10312
|
+
boxShadow: "0px 2px 8px rgba(0, 0, 0, 0.15)",
|
|
10313
|
+
overflow: "hidden"
|
|
10314
|
+
}, getDropdownPosition(side, align), DropdownMenuVariants[variant], views == null ? void 0 : views.menu, props), items.map((item, index) => {
|
|
10315
|
+
if (item.divider) {
|
|
10316
|
+
return /*#__PURE__*/React__default.createElement(DropdownMenuDivider, {
|
|
10317
|
+
key: "divider-" + index,
|
|
10318
|
+
views: views
|
|
10319
|
+
});
|
|
10320
|
+
}
|
|
10321
|
+
return /*#__PURE__*/React__default.createElement(DropdownMenuItem, {
|
|
10322
|
+
key: item.id,
|
|
10323
|
+
item: item,
|
|
10324
|
+
views: views
|
|
10325
|
+
});
|
|
10326
|
+
}));
|
|
10327
|
+
};
|
|
10328
|
+
// DropdownMenu Item component
|
|
10329
|
+
var DropdownMenuItem = _ref4 => {
|
|
10330
|
+
var {
|
|
10331
|
+
item,
|
|
10332
|
+
views
|
|
10333
|
+
} = _ref4,
|
|
10334
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$6);
|
|
10335
|
+
var {
|
|
10336
|
+
activeSubmenuId,
|
|
10337
|
+
setActiveSubmenuId,
|
|
10338
|
+
size
|
|
10339
|
+
} = useDropdownMenuContext();
|
|
10340
|
+
var [isHovered, setIsHovered] = React.useState(false);
|
|
10341
|
+
var hasSubmenu = item.items && item.items.length > 0;
|
|
10342
|
+
var isSubmenuActive = activeSubmenuId === item.id;
|
|
10343
|
+
var itemRef = React.useRef(null);
|
|
10344
|
+
// Handle mouse enter event
|
|
10345
|
+
var handleMouseEnter = () => {
|
|
10346
|
+
setIsHovered(true);
|
|
10347
|
+
if (hasSubmenu) {
|
|
10348
|
+
setActiveSubmenuId(item.id);
|
|
10349
|
+
}
|
|
10350
|
+
};
|
|
10351
|
+
// Handle mouse leave event
|
|
10352
|
+
var handleMouseLeave = () => {
|
|
10353
|
+
setIsHovered(false);
|
|
10354
|
+
};
|
|
10355
|
+
// Handle click event
|
|
10356
|
+
var handleClick = e => {
|
|
10357
|
+
e.stopPropagation();
|
|
10358
|
+
if (item.disabled) return;
|
|
10359
|
+
if (!hasSubmenu && item.onClick) {
|
|
10360
|
+
item.onClick();
|
|
10361
|
+
}
|
|
10362
|
+
};
|
|
10363
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
10364
|
+
ref: itemRef,
|
|
10365
|
+
display: "flex",
|
|
10366
|
+
alignItems: "center",
|
|
10367
|
+
cursor: item.disabled ? 'not-allowed' : 'pointer',
|
|
10368
|
+
opacity: item.disabled ? 0.5 : 1,
|
|
10369
|
+
position: "relative"
|
|
10370
|
+
}, DropdownMenuSizes[size], {
|
|
10371
|
+
_hover: !item.disabled ? DropdownMenuItemStates.hover : {},
|
|
10372
|
+
backgroundColor: isHovered && !item.disabled ? 'color.gray.100' : 'transparent',
|
|
10373
|
+
onMouseEnter: handleMouseEnter,
|
|
10374
|
+
onMouseLeave: handleMouseLeave,
|
|
10375
|
+
onClick: handleClick
|
|
10376
|
+
}, views == null ? void 0 : views.item, props), item.icon && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
10377
|
+
marginRight: 8
|
|
10378
|
+
}, views == null ? void 0 : views.icon), item.icon)), /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
10379
|
+
flexGrow: 1
|
|
10380
|
+
}, item.label), hasSubmenu && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
10381
|
+
marginLeft: 8
|
|
10382
|
+
}, views == null ? void 0 : views.submenuIndicator), /*#__PURE__*/React__default.createElement("svg", {
|
|
10383
|
+
width: "16",
|
|
10384
|
+
height: "16",
|
|
10385
|
+
viewBox: "0 0 24 24",
|
|
10386
|
+
fill: "none",
|
|
10387
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
10388
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
10389
|
+
d: "M8.59 16.59L13.17 12L8.59 7.41L10 6L16 12L10 18L8.59 16.59Z",
|
|
10390
|
+
fill: "currentColor"
|
|
10391
|
+
})))), isSubmenuActive && hasSubmenu && (/*#__PURE__*/React__default.createElement(DropdownMenuContent, {
|
|
10392
|
+
items: item.items || [],
|
|
10393
|
+
side: "right",
|
|
10394
|
+
align: "start",
|
|
10395
|
+
views: views
|
|
10396
|
+
})));
|
|
10397
|
+
};
|
|
10398
|
+
// DropdownMenu Divider component
|
|
10399
|
+
var DropdownMenuDivider = _ref5 => {
|
|
10400
|
+
var {
|
|
10401
|
+
views
|
|
10402
|
+
} = _ref5,
|
|
10403
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$5);
|
|
10404
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
10405
|
+
height: "1px",
|
|
10406
|
+
backgroundColor: "color.gray.200",
|
|
10407
|
+
margin: "4px 0"
|
|
10408
|
+
}, views == null ? void 0 : views.divider, props));
|
|
10409
|
+
};
|
|
10410
|
+
// Main DropdownMenu View component
|
|
10411
|
+
var DropdownMenuView = _ref6 => {
|
|
10412
|
+
var {
|
|
10413
|
+
trigger,
|
|
10414
|
+
items,
|
|
10415
|
+
side = 'bottom',
|
|
10416
|
+
align = 'start',
|
|
10417
|
+
views
|
|
10418
|
+
} = _ref6,
|
|
10419
|
+
props = _objectWithoutPropertiesLoose(_ref6, _excluded5$3);
|
|
10420
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
10421
|
+
position: "relative",
|
|
10422
|
+
display: "inline-block"
|
|
10423
|
+
}, views == null ? void 0 : views.container, props), /*#__PURE__*/React__default.createElement(DropdownMenuTrigger, {
|
|
10424
|
+
views: views
|
|
10425
|
+
}, trigger), /*#__PURE__*/React__default.createElement(DropdownMenuContent, {
|
|
10426
|
+
items: items,
|
|
10427
|
+
side: side,
|
|
10428
|
+
align: align,
|
|
10429
|
+
views: views
|
|
10430
|
+
}));
|
|
10431
|
+
};
|
|
10432
|
+
|
|
10433
|
+
var _excluded$H = ["trigger", "items", "size", "variant", "side", "align", "defaultOpen", "views"];
|
|
10434
|
+
/**
|
|
10435
|
+
* DropdownMenu component for displaying a menu when clicking on a trigger element.
|
|
10436
|
+
*/
|
|
10437
|
+
var DropdownMenuComponent = _ref => {
|
|
10438
|
+
var {
|
|
10439
|
+
trigger,
|
|
10440
|
+
items,
|
|
10441
|
+
size = 'md',
|
|
10442
|
+
variant = 'default',
|
|
10443
|
+
side = 'bottom',
|
|
10444
|
+
align = 'start',
|
|
10445
|
+
defaultOpen = false,
|
|
10446
|
+
views
|
|
10447
|
+
} = _ref,
|
|
10448
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$H);
|
|
10449
|
+
var {
|
|
10450
|
+
isOpen,
|
|
10451
|
+
setIsOpen,
|
|
10452
|
+
activeSubmenuId,
|
|
10453
|
+
setActiveSubmenuId
|
|
10454
|
+
} = useDropdownMenuState(defaultOpen);
|
|
10455
|
+
return /*#__PURE__*/React__default.createElement(DropdownMenuProvider, {
|
|
10456
|
+
value: {
|
|
10457
|
+
isOpen,
|
|
10458
|
+
setIsOpen,
|
|
10459
|
+
activeSubmenuId,
|
|
10460
|
+
setActiveSubmenuId,
|
|
10461
|
+
size,
|
|
10462
|
+
variant
|
|
10463
|
+
}
|
|
10464
|
+
}, /*#__PURE__*/React__default.createElement(DropdownMenuView, Object.assign({
|
|
10465
|
+
trigger: trigger,
|
|
10466
|
+
items: items,
|
|
10467
|
+
side: side,
|
|
10468
|
+
align: align,
|
|
10469
|
+
views: views
|
|
10470
|
+
}, props)));
|
|
10471
|
+
};
|
|
10472
|
+
var DropdownMenu = DropdownMenuComponent;
|
|
10473
|
+
// Assign the sub-components to the main component
|
|
10474
|
+
DropdownMenu.Trigger = DropdownMenuTrigger;
|
|
10475
|
+
DropdownMenu.Content = DropdownMenuContent;
|
|
10476
|
+
DropdownMenu.Item = DropdownMenuItem;
|
|
10477
|
+
DropdownMenu.Divider = DropdownMenuDivider;
|
|
10478
|
+
|
|
10479
|
+
var useHoverCardState = () => {
|
|
10480
|
+
var [isOpen, setIsOpen] = React.useState(false);
|
|
10481
|
+
return {
|
|
10482
|
+
isOpen,
|
|
10483
|
+
setIsOpen
|
|
10484
|
+
};
|
|
10485
|
+
};
|
|
10486
|
+
|
|
10487
|
+
var ContentPositions = {
|
|
10488
|
+
top: align => Object.assign({
|
|
10489
|
+
position: 'absolute',
|
|
10490
|
+
bottom: '100%',
|
|
10491
|
+
marginBottom: '8px'
|
|
10492
|
+
}, align === 'start' && {
|
|
10493
|
+
left: 0
|
|
10494
|
+
}, align === 'center' && {
|
|
10495
|
+
left: '50%',
|
|
10496
|
+
transform: 'translateX(-50%)'
|
|
10497
|
+
}, align === 'end' && {
|
|
10498
|
+
right: 0
|
|
10499
|
+
}),
|
|
10500
|
+
right: align => Object.assign({
|
|
10501
|
+
position: 'absolute',
|
|
10502
|
+
left: '100%',
|
|
10503
|
+
marginLeft: '8px'
|
|
10504
|
+
}, align === 'start' && {
|
|
10505
|
+
top: 0
|
|
10506
|
+
}, align === 'center' && {
|
|
10507
|
+
top: '50%',
|
|
10508
|
+
transform: 'translateY(-50%)'
|
|
10509
|
+
}, align === 'end' && {
|
|
10510
|
+
bottom: 0
|
|
10511
|
+
}),
|
|
10512
|
+
bottom: align => Object.assign({
|
|
10513
|
+
position: 'absolute',
|
|
10514
|
+
top: '100%',
|
|
10515
|
+
marginTop: '8px'
|
|
10516
|
+
}, align === 'start' && {
|
|
10517
|
+
left: 0
|
|
10518
|
+
}, align === 'center' && {
|
|
10519
|
+
left: '50%',
|
|
10520
|
+
transform: 'translateX(-50%)'
|
|
10521
|
+
}, align === 'end' && {
|
|
10522
|
+
right: 0
|
|
10523
|
+
}),
|
|
10524
|
+
left: align => Object.assign({
|
|
10525
|
+
position: 'absolute',
|
|
10526
|
+
right: '100%',
|
|
10527
|
+
marginRight: '8px'
|
|
10528
|
+
}, align === 'start' && {
|
|
10529
|
+
top: 0
|
|
10530
|
+
}, align === 'center' && {
|
|
10531
|
+
top: '50%',
|
|
10532
|
+
transform: 'translateY(-50%)'
|
|
10533
|
+
}, align === 'end' && {
|
|
10534
|
+
bottom: 0
|
|
10535
|
+
})
|
|
10536
|
+
};
|
|
10537
|
+
|
|
10538
|
+
var _excluded$I = ["children", "views"],
|
|
10539
|
+
_excluded2$a = ["children", "views", "side", "align"];
|
|
10540
|
+
// Create context for the HoverCard
|
|
10541
|
+
var HoverCardContext = /*#__PURE__*/React.createContext({
|
|
10542
|
+
isOpen: false,
|
|
10543
|
+
setIsOpen: () => {}
|
|
10544
|
+
});
|
|
10545
|
+
var HoverCardProvider = _ref => {
|
|
10546
|
+
var {
|
|
10547
|
+
children,
|
|
10548
|
+
value
|
|
10549
|
+
} = _ref;
|
|
10550
|
+
return /*#__PURE__*/React__default.createElement(HoverCardContext.Provider, {
|
|
10551
|
+
value: value
|
|
10552
|
+
}, children);
|
|
10553
|
+
};
|
|
10554
|
+
var useHoverCardContext = () => {
|
|
10555
|
+
var context = React.useContext(HoverCardContext);
|
|
10556
|
+
if (!context) {
|
|
10557
|
+
throw new Error('useHoverCardContext must be used within a HoverCardProvider');
|
|
10558
|
+
}
|
|
10559
|
+
return context;
|
|
10560
|
+
};
|
|
10561
|
+
var HoverCardTrigger = _ref2 => {
|
|
10562
|
+
var {
|
|
10563
|
+
children,
|
|
10564
|
+
views
|
|
10565
|
+
} = _ref2,
|
|
10566
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$I);
|
|
10567
|
+
var {
|
|
10568
|
+
setIsOpen
|
|
10569
|
+
} = useHoverCardContext();
|
|
10570
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
10571
|
+
position: "relative",
|
|
10572
|
+
display: "inline-block",
|
|
10573
|
+
onMouseEnter: () => setIsOpen(true),
|
|
10574
|
+
onMouseLeave: () => setIsOpen(false)
|
|
10575
|
+
}, views == null ? void 0 : views.container, props), children);
|
|
10576
|
+
};
|
|
10577
|
+
var HoverCardContent = _ref3 => {
|
|
10578
|
+
var {
|
|
10579
|
+
children,
|
|
10580
|
+
views,
|
|
10581
|
+
side = 'bottom',
|
|
10582
|
+
align = 'center'
|
|
10583
|
+
} = _ref3,
|
|
10584
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$a);
|
|
10585
|
+
var {
|
|
10586
|
+
isOpen
|
|
10587
|
+
} = useHoverCardContext();
|
|
10588
|
+
if (!isOpen) {
|
|
10589
|
+
return null;
|
|
10590
|
+
}
|
|
10591
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
10592
|
+
backgroundColor: "white",
|
|
10593
|
+
borderRadius: "4px",
|
|
10594
|
+
boxShadow: "0px 2px 8px rgba(0, 0, 0, 0.15)",
|
|
10595
|
+
padding: "12px",
|
|
10596
|
+
minWidth: "200px",
|
|
10597
|
+
maxWidth: "300px",
|
|
10598
|
+
zIndex: 1000
|
|
10599
|
+
}, ContentPositions[side](align), views == null ? void 0 : views.container, props), children);
|
|
10600
|
+
};
|
|
10601
|
+
|
|
10602
|
+
var _excluded$J = ["children", "views"];
|
|
10603
|
+
/**
|
|
10604
|
+
* HoverCard component displays floating content when hovering over a trigger element.
|
|
10605
|
+
*/
|
|
10606
|
+
var HoverCardComponent = _ref => {
|
|
10607
|
+
var {
|
|
10608
|
+
children,
|
|
10609
|
+
views
|
|
10610
|
+
} = _ref,
|
|
10611
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$J);
|
|
10612
|
+
var {
|
|
10613
|
+
isOpen,
|
|
10614
|
+
setIsOpen
|
|
10615
|
+
} = useHoverCardState();
|
|
10616
|
+
return /*#__PURE__*/React__default.createElement(HoverCardProvider, {
|
|
10617
|
+
value: {
|
|
10618
|
+
isOpen,
|
|
10619
|
+
setIsOpen
|
|
10620
|
+
}
|
|
10621
|
+
}, /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
10622
|
+
position: "relative",
|
|
10623
|
+
display: "inline-block"
|
|
10624
|
+
}, views == null ? void 0 : views.container, props), children));
|
|
10625
|
+
};
|
|
10626
|
+
var HoverCard = HoverCardComponent;
|
|
10627
|
+
HoverCard.Trigger = HoverCardTrigger;
|
|
10628
|
+
HoverCard.Content = HoverCardContent;
|
|
10629
|
+
|
|
10630
|
+
exports.Accordion = Accordion;
|
|
8478
10631
|
exports.Alert = Alert;
|
|
8479
10632
|
exports.ArrowIcon = ArrowIcon;
|
|
8480
10633
|
exports.AspectRatio = AspectRatio;
|
|
@@ -8497,14 +10650,17 @@ exports.CloseEyeIcon = CloseEyeIcon;
|
|
|
8497
10650
|
exports.CloseIcon = CloseIcon;
|
|
8498
10651
|
exports.CloudIcon = CloudIcon;
|
|
8499
10652
|
exports.ComboBox = ComboBox;
|
|
10653
|
+
exports.ContextMenu = ContextMenu;
|
|
8500
10654
|
exports.CopyIcon = CopyIcon;
|
|
8501
10655
|
exports.CountryPicker = CountryPicker;
|
|
8502
10656
|
exports.CropIcon = CropIcon;
|
|
8503
10657
|
exports.DatePicker = DatePicker;
|
|
10658
|
+
exports.DeleteIcon = DeleteIcon;
|
|
8504
10659
|
exports.DownloadIcon = DownloadIcon;
|
|
8505
10660
|
exports.DragAndDrop = DragAndDrop;
|
|
8506
10661
|
exports.DragAndDropComponent = DragAndDropComponent;
|
|
8507
10662
|
exports.DragHandleIcon = DragHandleIcon;
|
|
10663
|
+
exports.DropdownMenu = DropdownMenu;
|
|
8508
10664
|
exports.DustBinIcon = DustBinIcon;
|
|
8509
10665
|
exports.EditIcon = EditIcon;
|
|
8510
10666
|
exports.ErrorIcon = ErrorIcon;
|
|
@@ -8521,13 +10677,16 @@ exports.FormikDatePicker = FormikDatePicker;
|
|
|
8521
10677
|
exports.FormikForm = FormikForm;
|
|
8522
10678
|
exports.FormikPassword = FormikPassword;
|
|
8523
10679
|
exports.FormikSelect = FormikSelect;
|
|
10680
|
+
exports.FormikSlider = FormikSlider;
|
|
8524
10681
|
exports.FormikSwitch = FormikSwitch;
|
|
8525
10682
|
exports.FormikTextArea = FormikTextArea;
|
|
8526
10683
|
exports.FormikTextField = FormikTextField;
|
|
8527
10684
|
exports.HeartIcon = HeartIcon;
|
|
10685
|
+
exports.HelpIcon = HelpIcon;
|
|
8528
10686
|
exports.HomeIcon = HomeIcon;
|
|
8529
10687
|
exports.Horizontal = Horizontal;
|
|
8530
10688
|
exports.HorizontalBase = HorizontalBase;
|
|
10689
|
+
exports.HoverCard = HoverCard;
|
|
8531
10690
|
exports.Icon = Icon;
|
|
8532
10691
|
exports.ImageIcon = ImageIcon;
|
|
8533
10692
|
exports.InfoIcon = InfoIcon;
|
|
@@ -8548,6 +10707,7 @@ exports.MicrophoneIcon = MicrophoneIcon;
|
|
|
8548
10707
|
exports.MinusIcon = MinusIcon;
|
|
8549
10708
|
exports.Modal = Modal;
|
|
8550
10709
|
exports.MoonIcon = MoonIcon;
|
|
10710
|
+
exports.NavigationMenu = NavigationMenu;
|
|
8551
10711
|
exports.NotificationIcon = NotificationIcon;
|
|
8552
10712
|
exports.OpenEyeIcon = OpenEyeIcon;
|
|
8553
10713
|
exports.PanelIcon = PanelIcon;
|
|
@@ -8566,6 +10726,7 @@ exports.Select = Select;
|
|
|
8566
10726
|
exports.SettingsIcon = SettingsIcon;
|
|
8567
10727
|
exports.ShapeIcon = ShapeIcon;
|
|
8568
10728
|
exports.ShareIcon = ShareIcon;
|
|
10729
|
+
exports.Slider = Slider;
|
|
8569
10730
|
exports.SliderIcon = SliderIcon;
|
|
8570
10731
|
exports.SliderVerticalIcon = SliderVerticalIcon;
|
|
8571
10732
|
exports.SpinnerIcon = SpinnerIcon;
|
|
@@ -8589,6 +10750,7 @@ exports.UnLikeIcon = UnLikeIcon;
|
|
|
8589
10750
|
exports.UnlockIcon = UnlockIcon;
|
|
8590
10751
|
exports.UploadIcon = UploadIcon;
|
|
8591
10752
|
exports.Uploader = Uploader;
|
|
10753
|
+
exports.UserIcon = UserIcon;
|
|
8592
10754
|
exports.Vertical = Vertical;
|
|
8593
10755
|
exports.VerticalBase = VerticalBase;
|
|
8594
10756
|
exports.VideoIcon = VideoIcon;
|