@app-studio/web 0.8.73 → 0.8.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/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/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/index.d.ts +8 -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/navigationMenu.page.d.ts +3 -0
- package/dist/web.cjs.development.js +1840 -378
- 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 +1835 -381
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +1811 -349
- 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/components/Slider/SliderDemo.d.ts +0 -3
- package/dist/utils/componentsPageImports.d.ts +0 -6
package/dist/web.esm.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import
|
|
3
|
-
import 'core-js/modules/es.object.assign.js';
|
|
4
|
-
import { View as View$1, Element, Typography, Image, useTheme, Vertical as Vertical$1, Input, Form, Text as Text$1, Horizontal as Horizontal$1 } from 'app-studio';
|
|
1
|
+
import React, { useState, useContext, createContext, useRef, useEffect, useCallback, useMemo, Fragment } from 'react';
|
|
2
|
+
import 'core-js/modules/es.array.includes.js';
|
|
5
3
|
import 'core-js/modules/es.array.iterator.js';
|
|
6
|
-
import 'core-js/modules/es.
|
|
4
|
+
import 'core-js/modules/es.string.includes.js';
|
|
7
5
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
8
|
-
import 'core-js/modules/es.
|
|
6
|
+
import 'core-js/modules/es.object.assign.js';
|
|
7
|
+
import { View as View$1, Horizontal as Horizontal$1, Vertical as Vertical$1, Element, Typography, Image, useTheme, Input, Form, Text as Text$1 } from 'app-studio';
|
|
8
|
+
import 'core-js/modules/es.symbol.description.js';
|
|
9
|
+
import 'core-js/modules/es.parse-float.js';
|
|
9
10
|
import { Link as Link$1 } from 'react-router-dom';
|
|
10
|
-
import 'core-js/modules/es.string.includes.js';
|
|
11
11
|
import 'core-js/modules/es.string.starts-with.js';
|
|
12
12
|
import format from 'date-fns/format';
|
|
13
13
|
import { useFormikContext, getIn } from 'formik';
|
|
@@ -18,6 +18,224 @@ import 'core-js/modules/web.url-search-params.js';
|
|
|
18
18
|
import { create } from 'zustand';
|
|
19
19
|
import { Center as Center$1 } from 'src/components/Layout';
|
|
20
20
|
|
|
21
|
+
var useAccordionState = function useAccordionState(defaultExpandedItems, allowMultiple) {
|
|
22
|
+
if (defaultExpandedItems === void 0) {
|
|
23
|
+
defaultExpandedItems = [];
|
|
24
|
+
}
|
|
25
|
+
if (allowMultiple === void 0) {
|
|
26
|
+
allowMultiple = false;
|
|
27
|
+
}
|
|
28
|
+
var [expandedItems, setExpandedItems] = useState(defaultExpandedItems);
|
|
29
|
+
var toggleItem = itemId => {
|
|
30
|
+
setExpandedItems(prevExpandedItems => {
|
|
31
|
+
// Check if the item is already expanded
|
|
32
|
+
var isExpanded = prevExpandedItems.includes(itemId);
|
|
33
|
+
if (isExpanded) {
|
|
34
|
+
// If expanded, remove it from the list
|
|
35
|
+
return prevExpandedItems.filter(id => id !== itemId);
|
|
36
|
+
} else {
|
|
37
|
+
// If not expanded, add it to the list
|
|
38
|
+
// If allowMultiple is false, replace the current expanded item
|
|
39
|
+
return allowMultiple ? [...prevExpandedItems, itemId] : [itemId];
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
var isItemExpanded = itemId => {
|
|
44
|
+
return expandedItems.includes(itemId);
|
|
45
|
+
};
|
|
46
|
+
return {
|
|
47
|
+
expandedItems,
|
|
48
|
+
toggleItem,
|
|
49
|
+
isItemExpanded
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
var AccordionShapes = {
|
|
54
|
+
sharp: {
|
|
55
|
+
borderRadius: 0
|
|
56
|
+
},
|
|
57
|
+
rounded: {
|
|
58
|
+
borderRadius: 8
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
var AccordionVariants = {
|
|
62
|
+
default: {
|
|
63
|
+
backgroundColor: 'transparent',
|
|
64
|
+
borderWidth: 0
|
|
65
|
+
},
|
|
66
|
+
outline: {
|
|
67
|
+
borderWidth: 1,
|
|
68
|
+
borderStyle: 'solid',
|
|
69
|
+
borderColor: 'color.gray.200'
|
|
70
|
+
},
|
|
71
|
+
filled: {
|
|
72
|
+
backgroundColor: 'color.gray.50'
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
// Create context for the Accordion
|
|
77
|
+
var AccordionContext = /*#__PURE__*/createContext({
|
|
78
|
+
expandedItems: [],
|
|
79
|
+
toggleItem: () => {},
|
|
80
|
+
isItemExpanded: () => false
|
|
81
|
+
});
|
|
82
|
+
// Provider component for the Accordion context
|
|
83
|
+
var AccordionProvider = _ref => {
|
|
84
|
+
var {
|
|
85
|
+
children,
|
|
86
|
+
value
|
|
87
|
+
} = _ref;
|
|
88
|
+
return /*#__PURE__*/React.createElement(AccordionContext.Provider, {
|
|
89
|
+
value: value
|
|
90
|
+
}, children);
|
|
91
|
+
};
|
|
92
|
+
// Hook to use the Accordion context
|
|
93
|
+
var useAccordionContext = () => {
|
|
94
|
+
var context = useContext(AccordionContext);
|
|
95
|
+
if (!context) {
|
|
96
|
+
throw new Error('useAccordionContext must be used within an AccordionProvider');
|
|
97
|
+
}
|
|
98
|
+
return context;
|
|
99
|
+
};
|
|
100
|
+
// Accordion Item component
|
|
101
|
+
var AccordionItem = _ref2 => {
|
|
102
|
+
var {
|
|
103
|
+
id,
|
|
104
|
+
children,
|
|
105
|
+
isDisabled = false,
|
|
106
|
+
views
|
|
107
|
+
} = _ref2;
|
|
108
|
+
var {
|
|
109
|
+
isItemExpanded
|
|
110
|
+
} = useAccordionContext();
|
|
111
|
+
var isExpanded = isItemExpanded(id);
|
|
112
|
+
return /*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
113
|
+
borderWidth: 1,
|
|
114
|
+
borderStyle: "solid",
|
|
115
|
+
borderColor: "color.gray.200",
|
|
116
|
+
marginBottom: 8,
|
|
117
|
+
overflow: "hidden",
|
|
118
|
+
opacity: isDisabled ? 0.5 : 1,
|
|
119
|
+
pointerEvents: isDisabled ? 'none' : 'auto'
|
|
120
|
+
}, views == null ? void 0 : views.item), React.Children.map(children, child => {
|
|
121
|
+
if (/*#__PURE__*/React.isValidElement(child)) {
|
|
122
|
+
// Pass the id and isExpanded props to AccordionHeader and AccordionContent
|
|
123
|
+
return /*#__PURE__*/React.cloneElement(child, Object.assign({}, child.props, {
|
|
124
|
+
id,
|
|
125
|
+
isExpanded
|
|
126
|
+
}));
|
|
127
|
+
}
|
|
128
|
+
return child;
|
|
129
|
+
}));
|
|
130
|
+
};
|
|
131
|
+
// Accordion Header component
|
|
132
|
+
var AccordionHeader = _ref3 => {
|
|
133
|
+
var {
|
|
134
|
+
children,
|
|
135
|
+
id,
|
|
136
|
+
isExpanded,
|
|
137
|
+
views
|
|
138
|
+
} = _ref3;
|
|
139
|
+
var {
|
|
140
|
+
toggleItem
|
|
141
|
+
} = useAccordionContext();
|
|
142
|
+
var handleClick = () => {
|
|
143
|
+
if (id) {
|
|
144
|
+
toggleItem(id);
|
|
145
|
+
}
|
|
146
|
+
};
|
|
147
|
+
return /*#__PURE__*/React.createElement(Horizontal$1, Object.assign({
|
|
148
|
+
padding: 16,
|
|
149
|
+
cursor: "pointer",
|
|
150
|
+
alignItems: "center",
|
|
151
|
+
justifyContent: "space-between",
|
|
152
|
+
backgroundColor: "color.white",
|
|
153
|
+
onClick: handleClick
|
|
154
|
+
}, views == null ? void 0 : views.container), children, /*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
155
|
+
width: 24,
|
|
156
|
+
height: 24,
|
|
157
|
+
display: "flex",
|
|
158
|
+
alignItems: "center",
|
|
159
|
+
justifyContent: "center",
|
|
160
|
+
transition: "transform 0.2s ease",
|
|
161
|
+
transform: isExpanded ? 'rotate(180deg)' : 'rotate(0deg)'
|
|
162
|
+
}, views == null ? void 0 : views.icon), /*#__PURE__*/React.createElement("svg", {
|
|
163
|
+
width: "16",
|
|
164
|
+
height: "16",
|
|
165
|
+
viewBox: "0 0 24 24",
|
|
166
|
+
fill: "none",
|
|
167
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
168
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
169
|
+
d: "M16.59 8.59L12 13.17L7.41 8.59L6 10L12 16L18 10L16.59 8.59Z",
|
|
170
|
+
fill: "currentColor"
|
|
171
|
+
}))));
|
|
172
|
+
};
|
|
173
|
+
// Accordion Content component
|
|
174
|
+
var AccordionContent = _ref4 => {
|
|
175
|
+
var {
|
|
176
|
+
children,
|
|
177
|
+
isExpanded,
|
|
178
|
+
views
|
|
179
|
+
} = _ref4;
|
|
180
|
+
if (!isExpanded) {
|
|
181
|
+
return null;
|
|
182
|
+
}
|
|
183
|
+
return /*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
184
|
+
padding: 16,
|
|
185
|
+
backgroundColor: "color.white",
|
|
186
|
+
maxHeight: isExpanded ? '1000px' : '0',
|
|
187
|
+
transition: "max-height 0.3s ease-in-out",
|
|
188
|
+
overflow: "hidden"
|
|
189
|
+
}, views == null ? void 0 : views.container), children);
|
|
190
|
+
};
|
|
191
|
+
// Main Accordion View component
|
|
192
|
+
var AccordionView = _ref5 => {
|
|
193
|
+
var {
|
|
194
|
+
children,
|
|
195
|
+
shape = 'rounded',
|
|
196
|
+
variant = 'default',
|
|
197
|
+
views
|
|
198
|
+
} = _ref5;
|
|
199
|
+
return /*#__PURE__*/React.createElement(Vertical$1, Object.assign({
|
|
200
|
+
width: "100%"
|
|
201
|
+
}, AccordionShapes[shape], AccordionVariants[variant], views == null ? void 0 : views.container), children);
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Accordion component for displaying collapsible content panels.
|
|
206
|
+
*/
|
|
207
|
+
var AccordionComponent = _ref => {
|
|
208
|
+
var {
|
|
209
|
+
children,
|
|
210
|
+
allowMultiple = false,
|
|
211
|
+
defaultExpandedItems = [],
|
|
212
|
+
shape = 'rounded',
|
|
213
|
+
variant = 'default',
|
|
214
|
+
views
|
|
215
|
+
} = _ref;
|
|
216
|
+
var {
|
|
217
|
+
expandedItems,
|
|
218
|
+
toggleItem,
|
|
219
|
+
isItemExpanded
|
|
220
|
+
} = useAccordionState(defaultExpandedItems, allowMultiple);
|
|
221
|
+
return /*#__PURE__*/React.createElement(AccordionProvider, {
|
|
222
|
+
value: {
|
|
223
|
+
expandedItems,
|
|
224
|
+
toggleItem,
|
|
225
|
+
isItemExpanded
|
|
226
|
+
}
|
|
227
|
+
}, /*#__PURE__*/React.createElement(AccordionView, {
|
|
228
|
+
shape: shape,
|
|
229
|
+
variant: variant,
|
|
230
|
+
views: views
|
|
231
|
+
}, children));
|
|
232
|
+
};
|
|
233
|
+
var Accordion = AccordionComponent;
|
|
234
|
+
// Assign the sub-components to the main component
|
|
235
|
+
Accordion.Item = AccordionItem;
|
|
236
|
+
Accordion.Header = AccordionHeader;
|
|
237
|
+
Accordion.Content = AccordionContent;
|
|
238
|
+
|
|
21
239
|
var Top = props => (/*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
22
240
|
marginBottom: "auto"
|
|
23
241
|
}, props)));
|
|
@@ -256,17 +474,17 @@ var _excluded$4 = ["widthHeight", "color", "transform", "orientation", "children
|
|
|
256
474
|
_excluded27 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
257
475
|
_excluded28 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
258
476
|
_excluded29 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
259
|
-
_excluded30 = ["widthHeight", "color", "
|
|
477
|
+
_excluded30 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
260
478
|
_excluded31 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
261
479
|
_excluded32 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
262
480
|
_excluded33 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
263
481
|
_excluded34 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
264
482
|
_excluded35 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
265
483
|
_excluded36 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
266
|
-
_excluded37 = ["widthHeight", "color", "
|
|
484
|
+
_excluded37 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
267
485
|
_excluded38 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
268
|
-
_excluded39 = ["widthHeight", "color", "
|
|
269
|
-
_excluded40 = ["widthHeight", "color", "
|
|
486
|
+
_excluded39 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
487
|
+
_excluded40 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
270
488
|
_excluded41 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
271
489
|
_excluded42 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
272
490
|
_excluded43 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
@@ -277,10 +495,10 @@ var _excluded$4 = ["widthHeight", "color", "transform", "orientation", "children
|
|
|
277
495
|
_excluded48 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
278
496
|
_excluded49 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
279
497
|
_excluded50 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
280
|
-
_excluded51 = ["widthHeight", "color", "
|
|
281
|
-
_excluded52 = ["widthHeight", "color", "
|
|
282
|
-
_excluded53 = ["widthHeight", "color", "
|
|
283
|
-
_excluded54 = ["widthHeight", "color", "
|
|
498
|
+
_excluded51 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
499
|
+
_excluded52 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
500
|
+
_excluded53 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
501
|
+
_excluded54 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
284
502
|
_excluded55 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
285
503
|
_excluded56 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
286
504
|
_excluded57 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
@@ -292,14 +510,16 @@ var _excluded$4 = ["widthHeight", "color", "transform", "orientation", "children
|
|
|
292
510
|
_excluded63 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
293
511
|
_excluded64 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
294
512
|
_excluded65 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
295
|
-
_excluded66 = ["widthHeight", "color", "
|
|
296
|
-
_excluded67 = ["widthHeight", "color", "
|
|
513
|
+
_excluded66 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
514
|
+
_excluded67 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
297
515
|
_excluded68 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
298
516
|
_excluded69 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
299
517
|
_excluded70 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
300
518
|
_excluded71 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
301
519
|
_excluded72 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
302
|
-
_excluded73 = ["widthHeight", "color", "strokeWidth", "filled"]
|
|
520
|
+
_excluded73 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
521
|
+
_excluded74 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
522
|
+
_excluded75 = ["widthHeight", "color", "strokeWidth", "filled"];
|
|
303
523
|
// Default wrapper component for consistent sizing and styling
|
|
304
524
|
var IconWrapper = _ref => {
|
|
305
525
|
var {
|
|
@@ -328,8 +548,7 @@ var getSvgProps = (filled, color, strokeWidth) => {
|
|
|
328
548
|
strokeLinejoin: 'round'
|
|
329
549
|
};
|
|
330
550
|
};
|
|
331
|
-
|
|
332
|
-
var ChevronIcon = _ref2 => {
|
|
551
|
+
var UserIcon = _ref2 => {
|
|
333
552
|
var {
|
|
334
553
|
widthHeight = 24,
|
|
335
554
|
color = 'currentColor',
|
|
@@ -345,10 +564,10 @@ var ChevronIcon = _ref2 => {
|
|
|
345
564
|
"aria-hidden": "true",
|
|
346
565
|
focusable: "false"
|
|
347
566
|
}, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React.createElement("path", {
|
|
348
|
-
d: "M12.
|
|
567
|
+
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"
|
|
349
568
|
})));
|
|
350
569
|
};
|
|
351
|
-
var
|
|
570
|
+
var HelpIcon = _ref3 => {
|
|
352
571
|
var {
|
|
353
572
|
widthHeight = 24,
|
|
354
573
|
color = 'currentColor',
|
|
@@ -363,6 +582,45 @@ var DragHandleIcon = _ref3 => {
|
|
|
363
582
|
viewBox: "0 0 24 24",
|
|
364
583
|
"aria-hidden": "true",
|
|
365
584
|
focusable: "false"
|
|
585
|
+
}, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React.createElement("path", {
|
|
586
|
+
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"
|
|
587
|
+
})));
|
|
588
|
+
};
|
|
589
|
+
// Example Icon Component: ChevronIcon
|
|
590
|
+
var ChevronIcon = _ref4 => {
|
|
591
|
+
var {
|
|
592
|
+
widthHeight = 24,
|
|
593
|
+
color = 'currentColor',
|
|
594
|
+
filled = true,
|
|
595
|
+
strokeWidth = 1
|
|
596
|
+
} = _ref4,
|
|
597
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4);
|
|
598
|
+
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
599
|
+
widthHeight: widthHeight,
|
|
600
|
+
color: color
|
|
601
|
+
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
602
|
+
viewBox: "0 0 24 24",
|
|
603
|
+
"aria-hidden": "true",
|
|
604
|
+
focusable: "false"
|
|
605
|
+
}, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React.createElement("path", {
|
|
606
|
+
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"
|
|
607
|
+
})));
|
|
608
|
+
};
|
|
609
|
+
var DragHandleIcon = _ref5 => {
|
|
610
|
+
var {
|
|
611
|
+
widthHeight = 24,
|
|
612
|
+
color = 'currentColor',
|
|
613
|
+
filled = true,
|
|
614
|
+
strokeWidth = 1
|
|
615
|
+
} = _ref5,
|
|
616
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded5);
|
|
617
|
+
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
618
|
+
widthHeight: widthHeight,
|
|
619
|
+
color: color
|
|
620
|
+
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
621
|
+
viewBox: "0 0 24 24",
|
|
622
|
+
"aria-hidden": "true",
|
|
623
|
+
focusable: "false"
|
|
366
624
|
}, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("circle", {
|
|
367
625
|
cx: "9",
|
|
368
626
|
cy: "6",
|
|
@@ -390,14 +648,14 @@ var DragHandleIcon = _ref3 => {
|
|
|
390
648
|
}))));
|
|
391
649
|
};
|
|
392
650
|
// File Icon Component
|
|
393
|
-
var FileIcon =
|
|
651
|
+
var FileIcon = _ref6 => {
|
|
394
652
|
var {
|
|
395
653
|
widthHeight = 24,
|
|
396
654
|
color = 'currentColor',
|
|
397
655
|
filled = true,
|
|
398
656
|
strokeWidth = 1
|
|
399
|
-
} =
|
|
400
|
-
props = _objectWithoutPropertiesLoose(
|
|
657
|
+
} = _ref6,
|
|
658
|
+
props = _objectWithoutPropertiesLoose(_ref6, _excluded6);
|
|
401
659
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
402
660
|
widthHeight: widthHeight,
|
|
403
661
|
color: color
|
|
@@ -418,14 +676,14 @@ var FileIcon = _ref4 => {
|
|
|
418
676
|
})));
|
|
419
677
|
};
|
|
420
678
|
// Video Icon Component
|
|
421
|
-
var VideoIcon =
|
|
679
|
+
var VideoIcon = _ref7 => {
|
|
422
680
|
var {
|
|
423
681
|
widthHeight = 24,
|
|
424
682
|
color = 'currentColor',
|
|
425
683
|
filled = true,
|
|
426
684
|
strokeWidth = 1
|
|
427
|
-
} =
|
|
428
|
-
props = _objectWithoutPropertiesLoose(
|
|
685
|
+
} = _ref7,
|
|
686
|
+
props = _objectWithoutPropertiesLoose(_ref7, _excluded7);
|
|
429
687
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
430
688
|
widthHeight: widthHeight,
|
|
431
689
|
color: color
|
|
@@ -451,14 +709,14 @@ var VideoIcon = _ref5 => {
|
|
|
451
709
|
})));
|
|
452
710
|
};
|
|
453
711
|
// Image Icon Component
|
|
454
|
-
var ImageIcon =
|
|
712
|
+
var ImageIcon = _ref8 => {
|
|
455
713
|
var {
|
|
456
714
|
widthHeight = 24,
|
|
457
715
|
color = 'currentColor',
|
|
458
716
|
filled = true,
|
|
459
717
|
strokeWidth = 1
|
|
460
|
-
} =
|
|
461
|
-
props = _objectWithoutPropertiesLoose(
|
|
718
|
+
} = _ref8,
|
|
719
|
+
props = _objectWithoutPropertiesLoose(_ref8, _excluded8);
|
|
462
720
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
463
721
|
widthHeight: widthHeight,
|
|
464
722
|
color: color
|
|
@@ -490,14 +748,14 @@ var ImageIcon = _ref6 => {
|
|
|
490
748
|
strokeWidth: strokeWidth
|
|
491
749
|
})));
|
|
492
750
|
};
|
|
493
|
-
var TwitterIcon =
|
|
751
|
+
var TwitterIcon = _ref9 => {
|
|
494
752
|
var {
|
|
495
753
|
widthHeight = 24,
|
|
496
754
|
color = 'currentColor',
|
|
497
755
|
filled = true,
|
|
498
756
|
strokeWidth = 1
|
|
499
|
-
} =
|
|
500
|
-
props = _objectWithoutPropertiesLoose(
|
|
757
|
+
} = _ref9,
|
|
758
|
+
props = _objectWithoutPropertiesLoose(_ref9, _excluded9);
|
|
501
759
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
502
760
|
widthHeight: widthHeight,
|
|
503
761
|
color: color
|
|
@@ -512,14 +770,14 @@ var TwitterIcon = _ref7 => {
|
|
|
512
770
|
strokeWidth: filled ? 0 : strokeWidth
|
|
513
771
|
})));
|
|
514
772
|
};
|
|
515
|
-
var XIcon =
|
|
773
|
+
var XIcon = _ref10 => {
|
|
516
774
|
var {
|
|
517
775
|
widthHeight = 24,
|
|
518
776
|
color = 'currentColor',
|
|
519
777
|
filled = true,
|
|
520
778
|
strokeWidth = 1
|
|
521
|
-
} =
|
|
522
|
-
props = _objectWithoutPropertiesLoose(
|
|
779
|
+
} = _ref10,
|
|
780
|
+
props = _objectWithoutPropertiesLoose(_ref10, _excluded10);
|
|
523
781
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
524
782
|
widthHeight: widthHeight,
|
|
525
783
|
color: color
|
|
@@ -535,14 +793,14 @@ var XIcon = _ref8 => {
|
|
|
535
793
|
})));
|
|
536
794
|
};
|
|
537
795
|
// Example of a Twitch Icon
|
|
538
|
-
var TwitchIcon =
|
|
796
|
+
var TwitchIcon = _ref11 => {
|
|
539
797
|
var {
|
|
540
798
|
widthHeight = 24,
|
|
541
799
|
color = 'currentColor',
|
|
542
800
|
filled = true,
|
|
543
801
|
strokeWidth = 1
|
|
544
|
-
} =
|
|
545
|
-
props = _objectWithoutPropertiesLoose(
|
|
802
|
+
} = _ref11,
|
|
803
|
+
props = _objectWithoutPropertiesLoose(_ref11, _excluded11);
|
|
546
804
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
547
805
|
widthHeight: widthHeight,
|
|
548
806
|
color: color
|
|
@@ -563,14 +821,14 @@ var TwitchIcon = _ref9 => {
|
|
|
563
821
|
})));
|
|
564
822
|
};
|
|
565
823
|
// Example of another Icon: CloseIcon
|
|
566
|
-
var CloseIcon =
|
|
824
|
+
var CloseIcon = _ref12 => {
|
|
567
825
|
var {
|
|
568
826
|
widthHeight = 24,
|
|
569
827
|
color = 'currentColor',
|
|
570
828
|
filled = false,
|
|
571
829
|
strokeWidth = 1
|
|
572
|
-
} =
|
|
573
|
-
props = _objectWithoutPropertiesLoose(
|
|
830
|
+
} = _ref12,
|
|
831
|
+
props = _objectWithoutPropertiesLoose(_ref12, _excluded12);
|
|
574
832
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
575
833
|
widthHeight: widthHeight,
|
|
576
834
|
color: color
|
|
@@ -592,14 +850,14 @@ var CloseIcon = _ref10 => {
|
|
|
592
850
|
y2: "18"
|
|
593
851
|
})));
|
|
594
852
|
};
|
|
595
|
-
var InstagramIcon =
|
|
853
|
+
var InstagramIcon = _ref13 => {
|
|
596
854
|
var {
|
|
597
855
|
widthHeight = 24,
|
|
598
856
|
color = 'currentColor',
|
|
599
857
|
filled = false,
|
|
600
858
|
strokeWidth = 1
|
|
601
|
-
} =
|
|
602
|
-
props = _objectWithoutPropertiesLoose(
|
|
859
|
+
} = _ref13,
|
|
860
|
+
props = _objectWithoutPropertiesLoose(_ref13, _excluded13);
|
|
603
861
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
604
862
|
widthHeight: widthHeight,
|
|
605
863
|
color: color
|
|
@@ -623,14 +881,14 @@ var InstagramIcon = _ref11 => {
|
|
|
623
881
|
y2: "6.5"
|
|
624
882
|
})));
|
|
625
883
|
};
|
|
626
|
-
var YoutubeIcon =
|
|
884
|
+
var YoutubeIcon = _ref14 => {
|
|
627
885
|
var {
|
|
628
886
|
widthHeight = 24,
|
|
629
887
|
color = 'currentColor',
|
|
630
888
|
filled = true,
|
|
631
889
|
strokeWidth = 1
|
|
632
|
-
} =
|
|
633
|
-
props = _objectWithoutPropertiesLoose(
|
|
890
|
+
} = _ref14,
|
|
891
|
+
props = _objectWithoutPropertiesLoose(_ref14, _excluded14);
|
|
634
892
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
635
893
|
widthHeight: widthHeight,
|
|
636
894
|
color: color
|
|
@@ -651,14 +909,14 @@ var YoutubeIcon = _ref12 => {
|
|
|
651
909
|
strokeWidth: strokeWidth
|
|
652
910
|
})));
|
|
653
911
|
};
|
|
654
|
-
var FacebookIcon =
|
|
912
|
+
var FacebookIcon = _ref15 => {
|
|
655
913
|
var {
|
|
656
914
|
widthHeight = 24,
|
|
657
915
|
color = 'currentColor',
|
|
658
916
|
filled = true,
|
|
659
917
|
strokeWidth = 1
|
|
660
|
-
} =
|
|
661
|
-
props = _objectWithoutPropertiesLoose(
|
|
918
|
+
} = _ref15,
|
|
919
|
+
props = _objectWithoutPropertiesLoose(_ref15, _excluded15);
|
|
662
920
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
663
921
|
widthHeight: widthHeight,
|
|
664
922
|
color: color
|
|
@@ -673,14 +931,14 @@ var FacebookIcon = _ref13 => {
|
|
|
673
931
|
strokeWidth: filled ? 0 : strokeWidth
|
|
674
932
|
})));
|
|
675
933
|
};
|
|
676
|
-
var LinkedinIcon =
|
|
934
|
+
var LinkedinIcon = _ref16 => {
|
|
677
935
|
var {
|
|
678
936
|
widthHeight = 24,
|
|
679
937
|
color = 'currentColor',
|
|
680
938
|
filled = true,
|
|
681
939
|
strokeWidth = 1
|
|
682
|
-
} =
|
|
683
|
-
props = _objectWithoutPropertiesLoose(
|
|
940
|
+
} = _ref16,
|
|
941
|
+
props = _objectWithoutPropertiesLoose(_ref16, _excluded16);
|
|
684
942
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
685
943
|
widthHeight: widthHeight,
|
|
686
944
|
color: color
|
|
@@ -699,14 +957,14 @@ var LinkedinIcon = _ref14 => {
|
|
|
699
957
|
r: "2"
|
|
700
958
|
})));
|
|
701
959
|
};
|
|
702
|
-
var ThreadsIcon =
|
|
960
|
+
var ThreadsIcon = _ref17 => {
|
|
703
961
|
var {
|
|
704
962
|
widthHeight = 24,
|
|
705
963
|
color = 'currentColor',
|
|
706
964
|
filled = false,
|
|
707
965
|
strokeWidth = 1
|
|
708
|
-
} =
|
|
709
|
-
props = _objectWithoutPropertiesLoose(
|
|
966
|
+
} = _ref17,
|
|
967
|
+
props = _objectWithoutPropertiesLoose(_ref17, _excluded17);
|
|
710
968
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
711
969
|
widthHeight: widthHeight,
|
|
712
970
|
color: color
|
|
@@ -721,15 +979,15 @@ var ThreadsIcon = _ref15 => {
|
|
|
721
979
|
})));
|
|
722
980
|
};
|
|
723
981
|
// Example Refactored Icon: MinusIcon without undefined 'padding' prop
|
|
724
|
-
var MinusIcon =
|
|
982
|
+
var MinusIcon = _ref18 => {
|
|
725
983
|
var {
|
|
726
984
|
widthHeight = 24,
|
|
727
985
|
color = 'currentColor',
|
|
728
986
|
filled = false,
|
|
729
987
|
// Assuming minus can be filled; adjust as needed
|
|
730
988
|
strokeWidth = 1
|
|
731
|
-
} =
|
|
732
|
-
props = _objectWithoutPropertiesLoose(
|
|
989
|
+
} = _ref18,
|
|
990
|
+
props = _objectWithoutPropertiesLoose(_ref18, _excluded18);
|
|
733
991
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
734
992
|
widthHeight: widthHeight,
|
|
735
993
|
color: color
|
|
@@ -746,14 +1004,14 @@ var MinusIcon = _ref16 => {
|
|
|
746
1004
|
})));
|
|
747
1005
|
};
|
|
748
1006
|
// Example Refactored Icon: InfoIcon with accessibility enhancements
|
|
749
|
-
var InfoIcon =
|
|
1007
|
+
var InfoIcon = _ref19 => {
|
|
750
1008
|
var {
|
|
751
1009
|
widthHeight = 24,
|
|
752
1010
|
color = 'currentColor',
|
|
753
1011
|
filled = false,
|
|
754
1012
|
strokeWidth = 1
|
|
755
|
-
} =
|
|
756
|
-
props = _objectWithoutPropertiesLoose(
|
|
1013
|
+
} = _ref19,
|
|
1014
|
+
props = _objectWithoutPropertiesLoose(_ref19, _excluded19);
|
|
757
1015
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
758
1016
|
widthHeight: widthHeight,
|
|
759
1017
|
color: color
|
|
@@ -767,14 +1025,14 @@ var InfoIcon = _ref17 => {
|
|
|
767
1025
|
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"
|
|
768
1026
|
})));
|
|
769
1027
|
};
|
|
770
|
-
var PlayIcon =
|
|
1028
|
+
var PlayIcon = _ref20 => {
|
|
771
1029
|
var {
|
|
772
1030
|
widthHeight = 24,
|
|
773
1031
|
color = 'currentColor',
|
|
774
1032
|
filled = true,
|
|
775
1033
|
strokeWidth = 1
|
|
776
|
-
} =
|
|
777
|
-
props = _objectWithoutPropertiesLoose(
|
|
1034
|
+
} = _ref20,
|
|
1035
|
+
props = _objectWithoutPropertiesLoose(_ref20, _excluded20);
|
|
778
1036
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
779
1037
|
widthHeight: widthHeight,
|
|
780
1038
|
color: color
|
|
@@ -786,14 +1044,14 @@ var PlayIcon = _ref18 => {
|
|
|
786
1044
|
d: "M8 5v14l11-7z"
|
|
787
1045
|
})));
|
|
788
1046
|
};
|
|
789
|
-
var PauseIcon =
|
|
1047
|
+
var PauseIcon = _ref21 => {
|
|
790
1048
|
var {
|
|
791
1049
|
widthHeight = 24,
|
|
792
1050
|
color = 'currentColor',
|
|
793
1051
|
filled = true,
|
|
794
1052
|
strokeWidth = 1
|
|
795
|
-
} =
|
|
796
|
-
props = _objectWithoutPropertiesLoose(
|
|
1053
|
+
} = _ref21,
|
|
1054
|
+
props = _objectWithoutPropertiesLoose(_ref21, _excluded21);
|
|
797
1055
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
798
1056
|
widthHeight: widthHeight,
|
|
799
1057
|
color: color
|
|
@@ -805,14 +1063,14 @@ var PauseIcon = _ref19 => {
|
|
|
805
1063
|
d: "M6 4h4v16H6V4zm8 0h4v16h-4V4z"
|
|
806
1064
|
})));
|
|
807
1065
|
};
|
|
808
|
-
var HeartIcon =
|
|
1066
|
+
var HeartIcon = _ref22 => {
|
|
809
1067
|
var {
|
|
810
1068
|
widthHeight = 24,
|
|
811
1069
|
color = 'currentColor',
|
|
812
1070
|
filled = true,
|
|
813
1071
|
strokeWidth = 1
|
|
814
|
-
} =
|
|
815
|
-
props = _objectWithoutPropertiesLoose(
|
|
1072
|
+
} = _ref22,
|
|
1073
|
+
props = _objectWithoutPropertiesLoose(_ref22, _excluded22);
|
|
816
1074
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
817
1075
|
widthHeight: widthHeight,
|
|
818
1076
|
color: color
|
|
@@ -824,14 +1082,14 @@ var HeartIcon = _ref20 => {
|
|
|
824
1082
|
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"
|
|
825
1083
|
})));
|
|
826
1084
|
};
|
|
827
|
-
var StarIcon =
|
|
1085
|
+
var StarIcon = _ref23 => {
|
|
828
1086
|
var {
|
|
829
1087
|
widthHeight = 24,
|
|
830
1088
|
color = 'currentColor',
|
|
831
1089
|
filled = true,
|
|
832
1090
|
strokeWidth = 1
|
|
833
|
-
} =
|
|
834
|
-
props = _objectWithoutPropertiesLoose(
|
|
1091
|
+
} = _ref23,
|
|
1092
|
+
props = _objectWithoutPropertiesLoose(_ref23, _excluded23);
|
|
835
1093
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
836
1094
|
widthHeight: widthHeight,
|
|
837
1095
|
color: color
|
|
@@ -843,14 +1101,14 @@ var StarIcon = _ref21 => {
|
|
|
843
1101
|
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"
|
|
844
1102
|
})));
|
|
845
1103
|
};
|
|
846
|
-
var SaveIcon =
|
|
1104
|
+
var SaveIcon = _ref24 => {
|
|
847
1105
|
var {
|
|
848
1106
|
widthHeight = 24,
|
|
849
1107
|
color = 'currentColor',
|
|
850
1108
|
filled = false,
|
|
851
1109
|
strokeWidth = 1
|
|
852
|
-
} =
|
|
853
|
-
props = _objectWithoutPropertiesLoose(
|
|
1110
|
+
} = _ref24,
|
|
1111
|
+
props = _objectWithoutPropertiesLoose(_ref24, _excluded24);
|
|
854
1112
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
855
1113
|
widthHeight: widthHeight,
|
|
856
1114
|
color: color
|
|
@@ -866,14 +1124,14 @@ var SaveIcon = _ref22 => {
|
|
|
866
1124
|
points: "7 3 7 8 15 8"
|
|
867
1125
|
})));
|
|
868
1126
|
};
|
|
869
|
-
var WarningIcon =
|
|
1127
|
+
var WarningIcon = _ref25 => {
|
|
870
1128
|
var {
|
|
871
1129
|
widthHeight = 24,
|
|
872
1130
|
color = 'currentColor',
|
|
873
1131
|
filled = false,
|
|
874
1132
|
strokeWidth = 1
|
|
875
|
-
} =
|
|
876
|
-
props = _objectWithoutPropertiesLoose(
|
|
1133
|
+
} = _ref25,
|
|
1134
|
+
props = _objectWithoutPropertiesLoose(_ref25, _excluded25);
|
|
877
1135
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
878
1136
|
widthHeight: widthHeight,
|
|
879
1137
|
color: color
|
|
@@ -897,14 +1155,14 @@ var WarningIcon = _ref23 => {
|
|
|
897
1155
|
y2: "15"
|
|
898
1156
|
})));
|
|
899
1157
|
};
|
|
900
|
-
var BatteryIcon =
|
|
1158
|
+
var BatteryIcon = _ref26 => {
|
|
901
1159
|
var {
|
|
902
1160
|
widthHeight = 24,
|
|
903
1161
|
color = 'currentColor',
|
|
904
1162
|
filled = true,
|
|
905
1163
|
strokeWidth = 1
|
|
906
|
-
} =
|
|
907
|
-
props = _objectWithoutPropertiesLoose(
|
|
1164
|
+
} = _ref26,
|
|
1165
|
+
props = _objectWithoutPropertiesLoose(_ref26, _excluded26);
|
|
908
1166
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
909
1167
|
widthHeight: widthHeight,
|
|
910
1168
|
color: color
|
|
@@ -916,14 +1174,14 @@ var BatteryIcon = _ref24 => {
|
|
|
916
1174
|
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"
|
|
917
1175
|
})));
|
|
918
1176
|
};
|
|
919
|
-
var BookmarkIcon =
|
|
1177
|
+
var BookmarkIcon = _ref27 => {
|
|
920
1178
|
var {
|
|
921
1179
|
widthHeight = 24,
|
|
922
1180
|
color = 'currentColor',
|
|
923
1181
|
filled = false,
|
|
924
1182
|
strokeWidth = 1
|
|
925
|
-
} =
|
|
926
|
-
props = _objectWithoutPropertiesLoose(
|
|
1183
|
+
} = _ref27,
|
|
1184
|
+
props = _objectWithoutPropertiesLoose(_ref27, _excluded27);
|
|
927
1185
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
928
1186
|
widthHeight: widthHeight,
|
|
929
1187
|
color: color
|
|
@@ -935,14 +1193,14 @@ var BookmarkIcon = _ref25 => {
|
|
|
935
1193
|
d: "M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2z"
|
|
936
1194
|
})));
|
|
937
1195
|
};
|
|
938
|
-
var CloudIcon =
|
|
1196
|
+
var CloudIcon = _ref28 => {
|
|
939
1197
|
var {
|
|
940
1198
|
widthHeight = 24,
|
|
941
1199
|
color = 'currentColor',
|
|
942
1200
|
filled = true,
|
|
943
1201
|
strokeWidth = 1
|
|
944
|
-
} =
|
|
945
|
-
props = _objectWithoutPropertiesLoose(
|
|
1202
|
+
} = _ref28,
|
|
1203
|
+
props = _objectWithoutPropertiesLoose(_ref28, _excluded28);
|
|
946
1204
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
947
1205
|
widthHeight: widthHeight,
|
|
948
1206
|
color: color
|
|
@@ -954,14 +1212,14 @@ var CloudIcon = _ref26 => {
|
|
|
954
1212
|
d: "M18 10h-1.26A8 8 0 109 20h9a5 5 0 000-10z"
|
|
955
1213
|
})));
|
|
956
1214
|
};
|
|
957
|
-
var CopyIcon =
|
|
1215
|
+
var CopyIcon = _ref29 => {
|
|
958
1216
|
var {
|
|
959
1217
|
widthHeight = 24,
|
|
960
1218
|
color = 'currentColor',
|
|
961
1219
|
filled = false,
|
|
962
1220
|
strokeWidth = 1
|
|
963
|
-
} =
|
|
964
|
-
props = _objectWithoutPropertiesLoose(
|
|
1221
|
+
} = _ref29,
|
|
1222
|
+
props = _objectWithoutPropertiesLoose(_ref29, _excluded29);
|
|
965
1223
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
966
1224
|
widthHeight: widthHeight,
|
|
967
1225
|
color: color
|
|
@@ -980,14 +1238,14 @@ var CopyIcon = _ref27 => {
|
|
|
980
1238
|
d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"
|
|
981
1239
|
})));
|
|
982
1240
|
};
|
|
983
|
-
var DustBinIcon =
|
|
1241
|
+
var DustBinIcon = _ref30 => {
|
|
984
1242
|
var {
|
|
985
1243
|
widthHeight = 24,
|
|
986
1244
|
color = 'currentColor',
|
|
987
1245
|
filled = false,
|
|
988
1246
|
strokeWidth = 1
|
|
989
|
-
} =
|
|
990
|
-
props = _objectWithoutPropertiesLoose(
|
|
1247
|
+
} = _ref30,
|
|
1248
|
+
props = _objectWithoutPropertiesLoose(_ref30, _excluded30);
|
|
991
1249
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
992
1250
|
widthHeight: widthHeight,
|
|
993
1251
|
color: color
|
|
@@ -999,14 +1257,15 @@ var DustBinIcon = _ref28 => {
|
|
|
999
1257
|
d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"
|
|
1000
1258
|
})));
|
|
1001
1259
|
};
|
|
1002
|
-
var
|
|
1260
|
+
var DeleteIcon = DustBinIcon;
|
|
1261
|
+
var EditIcon = _ref31 => {
|
|
1003
1262
|
var {
|
|
1004
1263
|
widthHeight = 24,
|
|
1005
1264
|
color = 'currentColor',
|
|
1006
1265
|
filled = false,
|
|
1007
1266
|
strokeWidth = 1
|
|
1008
|
-
} =
|
|
1009
|
-
props = _objectWithoutPropertiesLoose(
|
|
1267
|
+
} = _ref31,
|
|
1268
|
+
props = _objectWithoutPropertiesLoose(_ref31, _excluded31);
|
|
1010
1269
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1011
1270
|
widthHeight: widthHeight,
|
|
1012
1271
|
color: color
|
|
@@ -1018,14 +1277,14 @@ var EditIcon = _ref29 => {
|
|
|
1018
1277
|
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"
|
|
1019
1278
|
})));
|
|
1020
1279
|
};
|
|
1021
|
-
var ErrorIcon =
|
|
1280
|
+
var ErrorIcon = _ref32 => {
|
|
1022
1281
|
var {
|
|
1023
1282
|
widthHeight = 24,
|
|
1024
1283
|
color = 'currentColor',
|
|
1025
1284
|
strokeWidth = 1,
|
|
1026
1285
|
filled = true
|
|
1027
|
-
} =
|
|
1028
|
-
props = _objectWithoutPropertiesLoose(
|
|
1286
|
+
} = _ref32,
|
|
1287
|
+
props = _objectWithoutPropertiesLoose(_ref32, _excluded32);
|
|
1029
1288
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1030
1289
|
widthHeight: widthHeight,
|
|
1031
1290
|
color: color
|
|
@@ -1051,14 +1310,14 @@ var ErrorIcon = _ref30 => {
|
|
|
1051
1310
|
stroke: filled ? 'white' : color
|
|
1052
1311
|
})));
|
|
1053
1312
|
};
|
|
1054
|
-
var DownloadIcon =
|
|
1313
|
+
var DownloadIcon = _ref33 => {
|
|
1055
1314
|
var {
|
|
1056
1315
|
widthHeight = 24,
|
|
1057
1316
|
color = 'currentColor',
|
|
1058
1317
|
filled = true,
|
|
1059
1318
|
strokeWidth = 1
|
|
1060
|
-
} =
|
|
1061
|
-
props = _objectWithoutPropertiesLoose(
|
|
1319
|
+
} = _ref33,
|
|
1320
|
+
props = _objectWithoutPropertiesLoose(_ref33, _excluded33);
|
|
1062
1321
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1063
1322
|
widthHeight: widthHeight,
|
|
1064
1323
|
color: color
|
|
@@ -1070,14 +1329,14 @@ var DownloadIcon = _ref31 => {
|
|
|
1070
1329
|
d: "M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"
|
|
1071
1330
|
})));
|
|
1072
1331
|
};
|
|
1073
|
-
var MenuIcon =
|
|
1332
|
+
var MenuIcon = _ref34 => {
|
|
1074
1333
|
var {
|
|
1075
1334
|
widthHeight = 24,
|
|
1076
1335
|
color = 'currentColor',
|
|
1077
1336
|
strokeWidth = 1,
|
|
1078
1337
|
filled = false
|
|
1079
|
-
} =
|
|
1080
|
-
props = _objectWithoutPropertiesLoose(
|
|
1338
|
+
} = _ref34,
|
|
1339
|
+
props = _objectWithoutPropertiesLoose(_ref34, _excluded34);
|
|
1081
1340
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1082
1341
|
widthHeight: widthHeight,
|
|
1083
1342
|
color: color
|
|
@@ -1105,14 +1364,14 @@ var MenuIcon = _ref32 => {
|
|
|
1105
1364
|
y2: "18"
|
|
1106
1365
|
})));
|
|
1107
1366
|
};
|
|
1108
|
-
var ShareIcon =
|
|
1367
|
+
var ShareIcon = _ref35 => {
|
|
1109
1368
|
var {
|
|
1110
1369
|
widthHeight = 24,
|
|
1111
1370
|
color = 'currentColor',
|
|
1112
1371
|
filled = false,
|
|
1113
1372
|
strokeWidth = 1
|
|
1114
|
-
} =
|
|
1115
|
-
props = _objectWithoutPropertiesLoose(
|
|
1373
|
+
} = _ref35,
|
|
1374
|
+
props = _objectWithoutPropertiesLoose(_ref35, _excluded35);
|
|
1116
1375
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1117
1376
|
widthHeight: widthHeight,
|
|
1118
1377
|
color: color
|
|
@@ -1146,14 +1405,14 @@ var ShareIcon = _ref33 => {
|
|
|
1146
1405
|
y2: "10.49"
|
|
1147
1406
|
})));
|
|
1148
1407
|
};
|
|
1149
|
-
var RefreshIcon =
|
|
1408
|
+
var RefreshIcon = _ref36 => {
|
|
1150
1409
|
var {
|
|
1151
1410
|
widthHeight = 24,
|
|
1152
1411
|
color = 'currentColor',
|
|
1153
1412
|
strokeWidth = 1,
|
|
1154
1413
|
filled = false
|
|
1155
|
-
} =
|
|
1156
|
-
props = _objectWithoutPropertiesLoose(
|
|
1414
|
+
} = _ref36,
|
|
1415
|
+
props = _objectWithoutPropertiesLoose(_ref36, _excluded36);
|
|
1157
1416
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1158
1417
|
widthHeight: widthHeight,
|
|
1159
1418
|
color: color
|
|
@@ -1167,14 +1426,14 @@ var RefreshIcon = _ref34 => {
|
|
|
1167
1426
|
d: "M20.49 15a9 9 0 1 1-2.13-9.36L23 10"
|
|
1168
1427
|
})));
|
|
1169
1428
|
};
|
|
1170
|
-
var PrintIcon =
|
|
1429
|
+
var PrintIcon = _ref37 => {
|
|
1171
1430
|
var {
|
|
1172
1431
|
widthHeight = 24,
|
|
1173
1432
|
color = 'currentColor',
|
|
1174
1433
|
filled = true,
|
|
1175
1434
|
strokeWidth = 1
|
|
1176
|
-
} =
|
|
1177
|
-
props = _objectWithoutPropertiesLoose(
|
|
1435
|
+
} = _ref37,
|
|
1436
|
+
props = _objectWithoutPropertiesLoose(_ref37, _excluded37);
|
|
1178
1437
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1179
1438
|
widthHeight: widthHeight,
|
|
1180
1439
|
color: color
|
|
@@ -1187,14 +1446,14 @@ var PrintIcon = _ref35 => {
|
|
|
1187
1446
|
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"
|
|
1188
1447
|
})));
|
|
1189
1448
|
};
|
|
1190
|
-
var MagicWandIcon =
|
|
1449
|
+
var MagicWandIcon = _ref38 => {
|
|
1191
1450
|
var {
|
|
1192
1451
|
widthHeight = 24,
|
|
1193
1452
|
color = 'currentColor',
|
|
1194
1453
|
strokeWidth = 1,
|
|
1195
1454
|
filled = true
|
|
1196
|
-
} =
|
|
1197
|
-
props = _objectWithoutPropertiesLoose(
|
|
1455
|
+
} = _ref38,
|
|
1456
|
+
props = _objectWithoutPropertiesLoose(_ref38, _excluded38);
|
|
1198
1457
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1199
1458
|
widthHeight: widthHeight,
|
|
1200
1459
|
color: color
|
|
@@ -1217,14 +1476,14 @@ var MagicWandIcon = _ref36 => {
|
|
|
1217
1476
|
d: "M16 15L16.7 16.5L18 17L16.7 17.5L16 19L15.3 17.5L14 17L15.3 16.5L16 15Z"
|
|
1218
1477
|
})));
|
|
1219
1478
|
};
|
|
1220
|
-
var SliderVerticalIcon =
|
|
1479
|
+
var SliderVerticalIcon = _ref39 => {
|
|
1221
1480
|
var {
|
|
1222
1481
|
widthHeight = 24,
|
|
1223
1482
|
color = 'currentColor',
|
|
1224
1483
|
strokeWidth = 1,
|
|
1225
1484
|
filled = false
|
|
1226
|
-
} =
|
|
1227
|
-
props = _objectWithoutPropertiesLoose(
|
|
1485
|
+
} = _ref39,
|
|
1486
|
+
props = _objectWithoutPropertiesLoose(_ref39, _excluded39);
|
|
1228
1487
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1229
1488
|
widthHeight: widthHeight,
|
|
1230
1489
|
color: color
|
|
@@ -1288,14 +1547,14 @@ var SliderVerticalIcon = _ref37 => {
|
|
|
1288
1547
|
y2: "16"
|
|
1289
1548
|
})));
|
|
1290
1549
|
};
|
|
1291
|
-
var PanelIcon =
|
|
1550
|
+
var PanelIcon = _ref40 => {
|
|
1292
1551
|
var {
|
|
1293
1552
|
widthHeight = 24,
|
|
1294
1553
|
color = 'currentColor',
|
|
1295
1554
|
strokeWidth = 1,
|
|
1296
1555
|
filled = false
|
|
1297
|
-
} =
|
|
1298
|
-
props = _objectWithoutPropertiesLoose(
|
|
1556
|
+
} = _ref40,
|
|
1557
|
+
props = _objectWithoutPropertiesLoose(_ref40, _excluded40);
|
|
1299
1558
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1300
1559
|
widthHeight: widthHeight,
|
|
1301
1560
|
color: color
|
|
@@ -1331,14 +1590,14 @@ var PanelIcon = _ref38 => {
|
|
|
1331
1590
|
y2: "15"
|
|
1332
1591
|
})));
|
|
1333
1592
|
};
|
|
1334
|
-
var FilterIcon =
|
|
1593
|
+
var FilterIcon = _ref41 => {
|
|
1335
1594
|
var {
|
|
1336
1595
|
widthHeight = 24,
|
|
1337
1596
|
color = 'currentColor',
|
|
1338
1597
|
filled = false,
|
|
1339
1598
|
strokeWidth = 1
|
|
1340
|
-
} =
|
|
1341
|
-
props = _objectWithoutPropertiesLoose(
|
|
1599
|
+
} = _ref41,
|
|
1600
|
+
props = _objectWithoutPropertiesLoose(_ref41, _excluded41);
|
|
1342
1601
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1343
1602
|
widthHeight: widthHeight,
|
|
1344
1603
|
color: color
|
|
@@ -1350,14 +1609,14 @@ var FilterIcon = _ref39 => {
|
|
|
1350
1609
|
d: "M3 4h18l-7 10v5l-4 2v-7L3 4z"
|
|
1351
1610
|
})));
|
|
1352
1611
|
};
|
|
1353
|
-
var HomeIcon =
|
|
1612
|
+
var HomeIcon = _ref42 => {
|
|
1354
1613
|
var {
|
|
1355
1614
|
widthHeight = 24,
|
|
1356
1615
|
color = 'currentColor',
|
|
1357
1616
|
filled = true,
|
|
1358
1617
|
strokeWidth = 1
|
|
1359
|
-
} =
|
|
1360
|
-
props = _objectWithoutPropertiesLoose(
|
|
1618
|
+
} = _ref42,
|
|
1619
|
+
props = _objectWithoutPropertiesLoose(_ref42, _excluded42);
|
|
1361
1620
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1362
1621
|
widthHeight: widthHeight,
|
|
1363
1622
|
color: color
|
|
@@ -1369,14 +1628,14 @@ var HomeIcon = _ref40 => {
|
|
|
1369
1628
|
d: "M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8h5z"
|
|
1370
1629
|
})));
|
|
1371
1630
|
};
|
|
1372
|
-
var LocationIcon =
|
|
1631
|
+
var LocationIcon = _ref43 => {
|
|
1373
1632
|
var {
|
|
1374
1633
|
widthHeight = 24,
|
|
1375
1634
|
color = 'currentColor',
|
|
1376
1635
|
filled = true,
|
|
1377
1636
|
strokeWidth = 1
|
|
1378
|
-
} =
|
|
1379
|
-
props = _objectWithoutPropertiesLoose(
|
|
1637
|
+
} = _ref43,
|
|
1638
|
+
props = _objectWithoutPropertiesLoose(_ref43, _excluded43);
|
|
1380
1639
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1381
1640
|
widthHeight: widthHeight,
|
|
1382
1641
|
color: color
|
|
@@ -1388,14 +1647,14 @@ var LocationIcon = _ref41 => {
|
|
|
1388
1647
|
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"
|
|
1389
1648
|
})));
|
|
1390
1649
|
};
|
|
1391
|
-
var LockIcon =
|
|
1650
|
+
var LockIcon = _ref44 => {
|
|
1392
1651
|
var {
|
|
1393
1652
|
widthHeight = 24,
|
|
1394
1653
|
color = 'currentColor',
|
|
1395
1654
|
filled = false,
|
|
1396
1655
|
strokeWidth = 1
|
|
1397
|
-
} =
|
|
1398
|
-
props = _objectWithoutPropertiesLoose(
|
|
1656
|
+
} = _ref44,
|
|
1657
|
+
props = _objectWithoutPropertiesLoose(_ref44, _excluded44);
|
|
1399
1658
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1400
1659
|
widthHeight: widthHeight,
|
|
1401
1660
|
color: color
|
|
@@ -1420,14 +1679,14 @@ var LockIcon = _ref42 => {
|
|
|
1420
1679
|
r: "1.5"
|
|
1421
1680
|
})))));
|
|
1422
1681
|
};
|
|
1423
|
-
var MicrophoneIcon =
|
|
1682
|
+
var MicrophoneIcon = _ref45 => {
|
|
1424
1683
|
var {
|
|
1425
1684
|
widthHeight = 24,
|
|
1426
1685
|
color = 'currentColor',
|
|
1427
1686
|
filled = false,
|
|
1428
1687
|
strokeWidth = 1
|
|
1429
|
-
} =
|
|
1430
|
-
props = _objectWithoutPropertiesLoose(
|
|
1688
|
+
} = _ref45,
|
|
1689
|
+
props = _objectWithoutPropertiesLoose(_ref45, _excluded45);
|
|
1431
1690
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1432
1691
|
widthHeight: widthHeight,
|
|
1433
1692
|
color: color
|
|
@@ -1453,14 +1712,14 @@ var MicrophoneIcon = _ref43 => {
|
|
|
1453
1712
|
y2: "23"
|
|
1454
1713
|
})));
|
|
1455
1714
|
};
|
|
1456
|
-
var MoonIcon =
|
|
1715
|
+
var MoonIcon = _ref46 => {
|
|
1457
1716
|
var {
|
|
1458
1717
|
widthHeight = 24,
|
|
1459
1718
|
color = 'currentColor',
|
|
1460
1719
|
filled = true,
|
|
1461
1720
|
strokeWidth = 1
|
|
1462
|
-
} =
|
|
1463
|
-
props = _objectWithoutPropertiesLoose(
|
|
1721
|
+
} = _ref46,
|
|
1722
|
+
props = _objectWithoutPropertiesLoose(_ref46, _excluded46);
|
|
1464
1723
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1465
1724
|
widthHeight: widthHeight,
|
|
1466
1725
|
color: color
|
|
@@ -1472,14 +1731,14 @@ var MoonIcon = _ref44 => {
|
|
|
1472
1731
|
d: "M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"
|
|
1473
1732
|
})));
|
|
1474
1733
|
};
|
|
1475
|
-
var NotificationIcon =
|
|
1734
|
+
var NotificationIcon = _ref47 => {
|
|
1476
1735
|
var {
|
|
1477
1736
|
widthHeight = 24,
|
|
1478
1737
|
color = 'currentColor',
|
|
1479
1738
|
filled = false,
|
|
1480
1739
|
strokeWidth = 1
|
|
1481
|
-
} =
|
|
1482
|
-
props = _objectWithoutPropertiesLoose(
|
|
1740
|
+
} = _ref47,
|
|
1741
|
+
props = _objectWithoutPropertiesLoose(_ref47, _excluded47);
|
|
1483
1742
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1484
1743
|
widthHeight: widthHeight,
|
|
1485
1744
|
color: color
|
|
@@ -1493,14 +1752,14 @@ var NotificationIcon = _ref45 => {
|
|
|
1493
1752
|
d: "M13.73 21a2 2 0 0 1-3.46 0"
|
|
1494
1753
|
})));
|
|
1495
1754
|
};
|
|
1496
|
-
var OpenEyeIcon =
|
|
1755
|
+
var OpenEyeIcon = _ref48 => {
|
|
1497
1756
|
var {
|
|
1498
1757
|
widthHeight = 24,
|
|
1499
1758
|
color = 'currentColor',
|
|
1500
1759
|
filled = true,
|
|
1501
1760
|
strokeWidth = 1
|
|
1502
|
-
} =
|
|
1503
|
-
props = _objectWithoutPropertiesLoose(
|
|
1761
|
+
} = _ref48,
|
|
1762
|
+
props = _objectWithoutPropertiesLoose(_ref48, _excluded48);
|
|
1504
1763
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1505
1764
|
widthHeight: widthHeight,
|
|
1506
1765
|
color: color
|
|
@@ -1512,14 +1771,14 @@ var OpenEyeIcon = _ref46 => {
|
|
|
1512
1771
|
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
1772
|
})));
|
|
1514
1773
|
};
|
|
1515
|
-
var ProfileIcon =
|
|
1774
|
+
var ProfileIcon = _ref49 => {
|
|
1516
1775
|
var {
|
|
1517
1776
|
widthHeight = 24,
|
|
1518
1777
|
color = 'currentColor',
|
|
1519
1778
|
filled = true,
|
|
1520
1779
|
strokeWidth = 1
|
|
1521
|
-
} =
|
|
1522
|
-
props = _objectWithoutPropertiesLoose(
|
|
1780
|
+
} = _ref49,
|
|
1781
|
+
props = _objectWithoutPropertiesLoose(_ref49, _excluded49);
|
|
1523
1782
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1524
1783
|
widthHeight: widthHeight,
|
|
1525
1784
|
color: color
|
|
@@ -1532,14 +1791,14 @@ var ProfileIcon = _ref47 => {
|
|
|
1532
1791
|
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
1792
|
}), ' '));
|
|
1534
1793
|
};
|
|
1535
|
-
var SettingsIcon =
|
|
1794
|
+
var SettingsIcon = _ref50 => {
|
|
1536
1795
|
var {
|
|
1537
1796
|
widthHeight = 24,
|
|
1538
1797
|
color = 'currentColor',
|
|
1539
1798
|
filled = false,
|
|
1540
1799
|
strokeWidth = 1
|
|
1541
|
-
} =
|
|
1542
|
-
props = _objectWithoutPropertiesLoose(
|
|
1800
|
+
} = _ref50,
|
|
1801
|
+
props = _objectWithoutPropertiesLoose(_ref50, _excluded50);
|
|
1543
1802
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1544
1803
|
widthHeight: widthHeight,
|
|
1545
1804
|
color: color
|
|
@@ -1551,14 +1810,14 @@ var SettingsIcon = _ref48 => {
|
|
|
1551
1810
|
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
1811
|
})));
|
|
1553
1812
|
};
|
|
1554
|
-
var SuccessIcon =
|
|
1813
|
+
var SuccessIcon = _ref51 => {
|
|
1555
1814
|
var {
|
|
1556
1815
|
widthHeight = 24,
|
|
1557
1816
|
color = 'currentColor',
|
|
1558
1817
|
filled = true,
|
|
1559
1818
|
strokeWidth = 1
|
|
1560
|
-
} =
|
|
1561
|
-
props = _objectWithoutPropertiesLoose(
|
|
1819
|
+
} = _ref51,
|
|
1820
|
+
props = _objectWithoutPropertiesLoose(_ref51, _excluded51);
|
|
1562
1821
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1563
1822
|
widthHeight: widthHeight,
|
|
1564
1823
|
color: color
|
|
@@ -1570,14 +1829,14 @@ var SuccessIcon = _ref49 => {
|
|
|
1570
1829
|
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
1830
|
})));
|
|
1572
1831
|
};
|
|
1573
|
-
var UnLikeIcon =
|
|
1832
|
+
var UnLikeIcon = _ref52 => {
|
|
1574
1833
|
var {
|
|
1575
1834
|
widthHeight = 24,
|
|
1576
1835
|
color = 'currentColor',
|
|
1577
1836
|
filled = true,
|
|
1578
1837
|
strokeWidth = 1
|
|
1579
|
-
} =
|
|
1580
|
-
props = _objectWithoutPropertiesLoose(
|
|
1838
|
+
} = _ref52,
|
|
1839
|
+
props = _objectWithoutPropertiesLoose(_ref52, _excluded52);
|
|
1581
1840
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1582
1841
|
widthHeight: widthHeight,
|
|
1583
1842
|
color: color
|
|
@@ -1589,14 +1848,14 @@ var UnLikeIcon = _ref50 => {
|
|
|
1589
1848
|
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
1849
|
})));
|
|
1591
1850
|
};
|
|
1592
|
-
var ClockIcon =
|
|
1851
|
+
var ClockIcon = _ref53 => {
|
|
1593
1852
|
var {
|
|
1594
1853
|
widthHeight = 24,
|
|
1595
1854
|
color = 'currentColor',
|
|
1596
1855
|
strokeWidth = 1,
|
|
1597
1856
|
filled = false
|
|
1598
|
-
} =
|
|
1599
|
-
props = _objectWithoutPropertiesLoose(
|
|
1857
|
+
} = _ref53,
|
|
1858
|
+
props = _objectWithoutPropertiesLoose(_ref53, _excluded53);
|
|
1600
1859
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1601
1860
|
widthHeight: widthHeight,
|
|
1602
1861
|
color: color
|
|
@@ -1612,14 +1871,14 @@ var ClockIcon = _ref51 => {
|
|
|
1612
1871
|
points: "12 6 12 12 16 14"
|
|
1613
1872
|
})));
|
|
1614
1873
|
};
|
|
1615
|
-
var CameraIcon =
|
|
1874
|
+
var CameraIcon = _ref54 => {
|
|
1616
1875
|
var {
|
|
1617
1876
|
widthHeight = 24,
|
|
1618
1877
|
color = 'currentColor',
|
|
1619
1878
|
strokeWidth = 1,
|
|
1620
1879
|
filled = false
|
|
1621
|
-
} =
|
|
1622
|
-
props = _objectWithoutPropertiesLoose(
|
|
1880
|
+
} = _ref54,
|
|
1881
|
+
props = _objectWithoutPropertiesLoose(_ref54, _excluded54);
|
|
1623
1882
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1624
1883
|
widthHeight: widthHeight,
|
|
1625
1884
|
color: color
|
|
@@ -1635,14 +1894,14 @@ var CameraIcon = _ref52 => {
|
|
|
1635
1894
|
r: "4"
|
|
1636
1895
|
})));
|
|
1637
1896
|
};
|
|
1638
|
-
var BluetoothIcon =
|
|
1897
|
+
var BluetoothIcon = _ref55 => {
|
|
1639
1898
|
var {
|
|
1640
1899
|
widthHeight = 24,
|
|
1641
1900
|
color = 'currentColor',
|
|
1642
1901
|
filled = true,
|
|
1643
1902
|
strokeWidth = 1
|
|
1644
|
-
} =
|
|
1645
|
-
props = _objectWithoutPropertiesLoose(
|
|
1903
|
+
} = _ref55,
|
|
1904
|
+
props = _objectWithoutPropertiesLoose(_ref55, _excluded55);
|
|
1646
1905
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1647
1906
|
widthHeight: widthHeight,
|
|
1648
1907
|
color: color
|
|
@@ -1654,14 +1913,14 @@ var BluetoothIcon = _ref53 => {
|
|
|
1654
1913
|
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
1914
|
})));
|
|
1656
1915
|
};
|
|
1657
|
-
var LikeIcon =
|
|
1916
|
+
var LikeIcon = _ref56 => {
|
|
1658
1917
|
var {
|
|
1659
1918
|
widthHeight = 24,
|
|
1660
1919
|
color = 'currentColor',
|
|
1661
1920
|
filled = true,
|
|
1662
1921
|
strokeWidth = 1
|
|
1663
|
-
} =
|
|
1664
|
-
props = _objectWithoutPropertiesLoose(
|
|
1922
|
+
} = _ref56,
|
|
1923
|
+
props = _objectWithoutPropertiesLoose(_ref56, _excluded56);
|
|
1665
1924
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1666
1925
|
widthHeight: widthHeight,
|
|
1667
1926
|
color: color
|
|
@@ -1673,14 +1932,14 @@ var LikeIcon = _ref54 => {
|
|
|
1673
1932
|
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
1933
|
})));
|
|
1675
1934
|
};
|
|
1676
|
-
var UnlockIcon =
|
|
1935
|
+
var UnlockIcon = _ref57 => {
|
|
1677
1936
|
var {
|
|
1678
1937
|
widthHeight = 24,
|
|
1679
1938
|
color = 'currentColor',
|
|
1680
1939
|
filled = false,
|
|
1681
1940
|
strokeWidth = 1
|
|
1682
|
-
} =
|
|
1683
|
-
props = _objectWithoutPropertiesLoose(
|
|
1941
|
+
} = _ref57,
|
|
1942
|
+
props = _objectWithoutPropertiesLoose(_ref57, _excluded57);
|
|
1684
1943
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1685
1944
|
widthHeight: widthHeight,
|
|
1686
1945
|
color: color
|
|
@@ -1705,14 +1964,14 @@ var UnlockIcon = _ref55 => {
|
|
|
1705
1964
|
r: "1.5"
|
|
1706
1965
|
})))));
|
|
1707
1966
|
};
|
|
1708
|
-
var WifiIcon =
|
|
1967
|
+
var WifiIcon = _ref58 => {
|
|
1709
1968
|
var {
|
|
1710
1969
|
widthHeight = 24,
|
|
1711
1970
|
color = 'currentColor',
|
|
1712
1971
|
filled = false,
|
|
1713
1972
|
strokeWidth = 1
|
|
1714
|
-
} =
|
|
1715
|
-
props = _objectWithoutPropertiesLoose(
|
|
1973
|
+
} = _ref58,
|
|
1974
|
+
props = _objectWithoutPropertiesLoose(_ref58, _excluded58);
|
|
1716
1975
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1717
1976
|
widthHeight: widthHeight,
|
|
1718
1977
|
color: color
|
|
@@ -1724,14 +1983,14 @@ var WifiIcon = _ref56 => {
|
|
|
1724
1983
|
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"
|
|
1725
1984
|
})));
|
|
1726
1985
|
};
|
|
1727
|
-
var UploadIcon =
|
|
1986
|
+
var UploadIcon = _ref59 => {
|
|
1728
1987
|
var {
|
|
1729
1988
|
widthHeight = 24,
|
|
1730
1989
|
color = 'currentColor',
|
|
1731
1990
|
filled = false,
|
|
1732
1991
|
strokeWidth = 1
|
|
1733
|
-
} =
|
|
1734
|
-
props = _objectWithoutPropertiesLoose(
|
|
1992
|
+
} = _ref59,
|
|
1993
|
+
props = _objectWithoutPropertiesLoose(_ref59, _excluded59);
|
|
1735
1994
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1736
1995
|
widthHeight: widthHeight,
|
|
1737
1996
|
color: color
|
|
@@ -1747,14 +2006,14 @@ var UploadIcon = _ref57 => {
|
|
|
1747
2006
|
d: "M12 12l0 9"
|
|
1748
2007
|
})));
|
|
1749
2008
|
};
|
|
1750
|
-
var SearchIcon =
|
|
2009
|
+
var SearchIcon = _ref60 => {
|
|
1751
2010
|
var {
|
|
1752
2011
|
widthHeight = 24,
|
|
1753
2012
|
color = 'currentColor',
|
|
1754
2013
|
filled = true,
|
|
1755
2014
|
strokeWidth = 1
|
|
1756
|
-
} =
|
|
1757
|
-
props = _objectWithoutPropertiesLoose(
|
|
2015
|
+
} = _ref60,
|
|
2016
|
+
props = _objectWithoutPropertiesLoose(_ref60, _excluded60);
|
|
1758
2017
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1759
2018
|
widthHeight: widthHeight,
|
|
1760
2019
|
color: color
|
|
@@ -1766,14 +2025,14 @@ var SearchIcon = _ref58 => {
|
|
|
1766
2025
|
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"
|
|
1767
2026
|
})));
|
|
1768
2027
|
};
|
|
1769
|
-
var CloseEyeIcon =
|
|
2028
|
+
var CloseEyeIcon = _ref61 => {
|
|
1770
2029
|
var {
|
|
1771
2030
|
widthHeight = 24,
|
|
1772
2031
|
color = 'currentColor',
|
|
1773
2032
|
filled = true,
|
|
1774
2033
|
strokeWidth = 1
|
|
1775
|
-
} =
|
|
1776
|
-
props = _objectWithoutPropertiesLoose(
|
|
2034
|
+
} = _ref61,
|
|
2035
|
+
props = _objectWithoutPropertiesLoose(_ref61, _excluded61);
|
|
1777
2036
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1778
2037
|
widthHeight: widthHeight,
|
|
1779
2038
|
color: color
|
|
@@ -1786,14 +2045,14 @@ var CloseEyeIcon = _ref59 => {
|
|
|
1786
2045
|
fill: "currentColor"
|
|
1787
2046
|
})));
|
|
1788
2047
|
};
|
|
1789
|
-
var ExternalLinkIcon =
|
|
2048
|
+
var ExternalLinkIcon = _ref62 => {
|
|
1790
2049
|
var {
|
|
1791
2050
|
widthHeight = 24,
|
|
1792
2051
|
color = 'currentColor',
|
|
1793
2052
|
filled = true,
|
|
1794
2053
|
strokeWidth = 1
|
|
1795
|
-
} =
|
|
1796
|
-
props = _objectWithoutPropertiesLoose(
|
|
2054
|
+
} = _ref62,
|
|
2055
|
+
props = _objectWithoutPropertiesLoose(_ref62, _excluded62);
|
|
1797
2056
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1798
2057
|
widthHeight: widthHeight,
|
|
1799
2058
|
color: color
|
|
@@ -1805,14 +2064,14 @@ var ExternalLinkIcon = _ref60 => {
|
|
|
1805
2064
|
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"
|
|
1806
2065
|
})));
|
|
1807
2066
|
};
|
|
1808
|
-
var PlusIcon =
|
|
2067
|
+
var PlusIcon = _ref63 => {
|
|
1809
2068
|
var {
|
|
1810
2069
|
widthHeight = 24,
|
|
1811
2070
|
color = 'currentColor',
|
|
1812
2071
|
filled = false,
|
|
1813
2072
|
strokeWidth = 1
|
|
1814
|
-
} =
|
|
1815
|
-
props = _objectWithoutPropertiesLoose(
|
|
2073
|
+
} = _ref63,
|
|
2074
|
+
props = _objectWithoutPropertiesLoose(_ref63, _excluded63);
|
|
1816
2075
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1817
2076
|
widthHeight: widthHeight,
|
|
1818
2077
|
color: color
|
|
@@ -1834,14 +2093,14 @@ var PlusIcon = _ref61 => {
|
|
|
1834
2093
|
y2: "12"
|
|
1835
2094
|
})));
|
|
1836
2095
|
};
|
|
1837
|
-
var TickIcon =
|
|
2096
|
+
var TickIcon = _ref64 => {
|
|
1838
2097
|
var {
|
|
1839
2098
|
widthHeight = 24,
|
|
1840
2099
|
color = 'currentColor',
|
|
1841
2100
|
filled = false,
|
|
1842
2101
|
strokeWidth = 1
|
|
1843
|
-
} =
|
|
1844
|
-
props = _objectWithoutPropertiesLoose(
|
|
2102
|
+
} = _ref64,
|
|
2103
|
+
props = _objectWithoutPropertiesLoose(_ref64, _excluded64);
|
|
1845
2104
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1846
2105
|
widthHeight: widthHeight,
|
|
1847
2106
|
color: color
|
|
@@ -1855,14 +2114,14 @@ var TickIcon = _ref62 => {
|
|
|
1855
2114
|
strokeLinejoin: "round"
|
|
1856
2115
|
})));
|
|
1857
2116
|
};
|
|
1858
|
-
var BoldArrowIcon =
|
|
2117
|
+
var BoldArrowIcon = _ref65 => {
|
|
1859
2118
|
var {
|
|
1860
2119
|
widthHeight = 24,
|
|
1861
2120
|
color = 'currentColor',
|
|
1862
2121
|
filled = true,
|
|
1863
2122
|
strokeWidth = 1
|
|
1864
|
-
} =
|
|
1865
|
-
props = _objectWithoutPropertiesLoose(
|
|
2123
|
+
} = _ref65,
|
|
2124
|
+
props = _objectWithoutPropertiesLoose(_ref65, _excluded65);
|
|
1866
2125
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1867
2126
|
widthHeight: widthHeight,
|
|
1868
2127
|
color: color
|
|
@@ -1874,14 +2133,14 @@ var BoldArrowIcon = _ref63 => {
|
|
|
1874
2133
|
d: "M12 4l7 7h-4v7h-6v-7H5l7-7z"
|
|
1875
2134
|
})));
|
|
1876
2135
|
};
|
|
1877
|
-
var ArrowIcon =
|
|
2136
|
+
var ArrowIcon = _ref66 => {
|
|
1878
2137
|
var {
|
|
1879
2138
|
widthHeight = 24,
|
|
1880
2139
|
color = 'currentColor',
|
|
1881
2140
|
filled = false,
|
|
1882
2141
|
strokeWidth = 1
|
|
1883
|
-
} =
|
|
1884
|
-
props = _objectWithoutPropertiesLoose(
|
|
2142
|
+
} = _ref66,
|
|
2143
|
+
props = _objectWithoutPropertiesLoose(_ref66, _excluded66);
|
|
1885
2144
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1886
2145
|
widthHeight: widthHeight,
|
|
1887
2146
|
color: color
|
|
@@ -1899,14 +2158,14 @@ var ArrowIcon = _ref64 => {
|
|
|
1899
2158
|
points: "6 12 12 6 18 12"
|
|
1900
2159
|
})));
|
|
1901
2160
|
};
|
|
1902
|
-
var SpinnerIcon =
|
|
2161
|
+
var SpinnerIcon = _ref67 => {
|
|
1903
2162
|
var {
|
|
1904
2163
|
widthHeight = 24,
|
|
1905
2164
|
color = 'currentColor',
|
|
1906
2165
|
filled = false,
|
|
1907
2166
|
strokeWidth = 1
|
|
1908
|
-
} =
|
|
1909
|
-
props = _objectWithoutPropertiesLoose(
|
|
2167
|
+
} = _ref67,
|
|
2168
|
+
props = _objectWithoutPropertiesLoose(_ref67, _excluded67);
|
|
1910
2169
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1911
2170
|
widthHeight: widthHeight,
|
|
1912
2171
|
color: color
|
|
@@ -1924,14 +2183,14 @@ var SpinnerIcon = _ref65 => {
|
|
|
1924
2183
|
strokeOpacity: "1"
|
|
1925
2184
|
})));
|
|
1926
2185
|
};
|
|
1927
|
-
var CalendarIcon =
|
|
2186
|
+
var CalendarIcon = _ref68 => {
|
|
1928
2187
|
var {
|
|
1929
2188
|
widthHeight = 24,
|
|
1930
2189
|
color = 'currentColor',
|
|
1931
2190
|
strokeWidth = 1,
|
|
1932
2191
|
filled = false
|
|
1933
|
-
} =
|
|
1934
|
-
props = _objectWithoutPropertiesLoose(
|
|
2192
|
+
} = _ref68,
|
|
2193
|
+
props = _objectWithoutPropertiesLoose(_ref68, _excluded68);
|
|
1935
2194
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1936
2195
|
widthHeight: widthHeight,
|
|
1937
2196
|
color: color
|
|
@@ -1966,14 +2225,14 @@ var CalendarIcon = _ref66 => {
|
|
|
1966
2225
|
y2: "10"
|
|
1967
2226
|
})));
|
|
1968
2227
|
};
|
|
1969
|
-
var SliderIcon =
|
|
2228
|
+
var SliderIcon = _ref69 => {
|
|
1970
2229
|
var {
|
|
1971
2230
|
widthHeight = 24,
|
|
1972
2231
|
color = 'currentColor',
|
|
1973
2232
|
strokeWidth = 1,
|
|
1974
2233
|
filled = false
|
|
1975
|
-
} =
|
|
1976
|
-
props = _objectWithoutPropertiesLoose(
|
|
2234
|
+
} = _ref69,
|
|
2235
|
+
props = _objectWithoutPropertiesLoose(_ref69, _excluded69);
|
|
1977
2236
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1978
2237
|
widthHeight: widthHeight,
|
|
1979
2238
|
color: color
|
|
@@ -2028,14 +2287,14 @@ var SliderIcon = _ref67 => {
|
|
|
2028
2287
|
y2: "23"
|
|
2029
2288
|
})));
|
|
2030
2289
|
};
|
|
2031
|
-
var CropIcon =
|
|
2290
|
+
var CropIcon = _ref70 => {
|
|
2032
2291
|
var {
|
|
2033
2292
|
widthHeight = 24,
|
|
2034
2293
|
color = 'currentColor',
|
|
2035
2294
|
strokeWidth = 1,
|
|
2036
2295
|
filled = false
|
|
2037
|
-
} =
|
|
2038
|
-
props = _objectWithoutPropertiesLoose(
|
|
2296
|
+
} = _ref70,
|
|
2297
|
+
props = _objectWithoutPropertiesLoose(_ref70, _excluded70);
|
|
2039
2298
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
2040
2299
|
widthHeight: widthHeight,
|
|
2041
2300
|
color: color
|
|
@@ -2049,14 +2308,14 @@ var CropIcon = _ref68 => {
|
|
|
2049
2308
|
d: "M18 22V8a2 2 0 0 0-2-2H2"
|
|
2050
2309
|
})));
|
|
2051
2310
|
};
|
|
2052
|
-
var ZoomInIcon =
|
|
2311
|
+
var ZoomInIcon = _ref71 => {
|
|
2053
2312
|
var {
|
|
2054
2313
|
widthHeight = 24,
|
|
2055
2314
|
color = 'currentColor',
|
|
2056
2315
|
strokeWidth = 1,
|
|
2057
2316
|
filled = false
|
|
2058
|
-
} =
|
|
2059
|
-
props = _objectWithoutPropertiesLoose(
|
|
2317
|
+
} = _ref71,
|
|
2318
|
+
props = _objectWithoutPropertiesLoose(_ref71, _excluded71);
|
|
2060
2319
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
2061
2320
|
widthHeight: widthHeight,
|
|
2062
2321
|
color: color
|
|
@@ -2085,14 +2344,14 @@ var ZoomInIcon = _ref69 => {
|
|
|
2085
2344
|
y2: "11"
|
|
2086
2345
|
})));
|
|
2087
2346
|
};
|
|
2088
|
-
var ZoomOutIcon =
|
|
2347
|
+
var ZoomOutIcon = _ref72 => {
|
|
2089
2348
|
var {
|
|
2090
2349
|
widthHeight = 24,
|
|
2091
2350
|
color = 'currentColor',
|
|
2092
2351
|
strokeWidth = 1,
|
|
2093
2352
|
filled = false
|
|
2094
|
-
} =
|
|
2095
|
-
props = _objectWithoutPropertiesLoose(
|
|
2353
|
+
} = _ref72,
|
|
2354
|
+
props = _objectWithoutPropertiesLoose(_ref72, _excluded72);
|
|
2096
2355
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
2097
2356
|
widthHeight: widthHeight,
|
|
2098
2357
|
color: color
|
|
@@ -2116,14 +2375,14 @@ var ZoomOutIcon = _ref70 => {
|
|
|
2116
2375
|
y2: "11"
|
|
2117
2376
|
})));
|
|
2118
2377
|
};
|
|
2119
|
-
var TextIcon =
|
|
2378
|
+
var TextIcon = _ref73 => {
|
|
2120
2379
|
var {
|
|
2121
2380
|
widthHeight = 24,
|
|
2122
2381
|
color = 'currentColor',
|
|
2123
2382
|
strokeWidth = 1,
|
|
2124
2383
|
filled = false
|
|
2125
|
-
} =
|
|
2126
|
-
props = _objectWithoutPropertiesLoose(
|
|
2384
|
+
} = _ref73,
|
|
2385
|
+
props = _objectWithoutPropertiesLoose(_ref73, _excluded73);
|
|
2127
2386
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
2128
2387
|
widthHeight: widthHeight,
|
|
2129
2388
|
color: color
|
|
@@ -2148,14 +2407,14 @@ var TextIcon = _ref71 => {
|
|
|
2148
2407
|
y2: "18"
|
|
2149
2408
|
})));
|
|
2150
2409
|
};
|
|
2151
|
-
var ShapeIcon =
|
|
2410
|
+
var ShapeIcon = _ref74 => {
|
|
2152
2411
|
var {
|
|
2153
2412
|
widthHeight = 24,
|
|
2154
2413
|
color = 'currentColor',
|
|
2155
2414
|
strokeWidth = 1,
|
|
2156
2415
|
filled = false
|
|
2157
|
-
} =
|
|
2158
|
-
props = _objectWithoutPropertiesLoose(
|
|
2416
|
+
} = _ref74,
|
|
2417
|
+
props = _objectWithoutPropertiesLoose(_ref74, _excluded74);
|
|
2159
2418
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
2160
2419
|
widthHeight: widthHeight,
|
|
2161
2420
|
color: color
|
|
@@ -2176,14 +2435,14 @@ var ShapeIcon = _ref72 => {
|
|
|
2176
2435
|
points: "16,4 19,8 13,8"
|
|
2177
2436
|
})));
|
|
2178
2437
|
};
|
|
2179
|
-
var RotateIcon =
|
|
2438
|
+
var RotateIcon = _ref75 => {
|
|
2180
2439
|
var {
|
|
2181
2440
|
widthHeight = 24,
|
|
2182
2441
|
color = 'currentColor',
|
|
2183
2442
|
strokeWidth = 1,
|
|
2184
2443
|
filled = false
|
|
2185
|
-
} =
|
|
2186
|
-
props = _objectWithoutPropertiesLoose(
|
|
2444
|
+
} = _ref75,
|
|
2445
|
+
props = _objectWithoutPropertiesLoose(_ref75, _excluded75);
|
|
2187
2446
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
2188
2447
|
widthHeight: widthHeight,
|
|
2189
2448
|
color: color
|
|
@@ -2200,6 +2459,8 @@ var RotateIcon = _ref73 => {
|
|
|
2200
2459
|
|
|
2201
2460
|
var Icon = {
|
|
2202
2461
|
__proto__: null,
|
|
2462
|
+
UserIcon: UserIcon,
|
|
2463
|
+
HelpIcon: HelpIcon,
|
|
2203
2464
|
ChevronIcon: ChevronIcon,
|
|
2204
2465
|
DragHandleIcon: DragHandleIcon,
|
|
2205
2466
|
FileIcon: FileIcon,
|
|
@@ -2227,6 +2488,7 @@ var Icon = {
|
|
|
2227
2488
|
CloudIcon: CloudIcon,
|
|
2228
2489
|
CopyIcon: CopyIcon,
|
|
2229
2490
|
DustBinIcon: DustBinIcon,
|
|
2491
|
+
DeleteIcon: DeleteIcon,
|
|
2230
2492
|
EditIcon: EditIcon,
|
|
2231
2493
|
ErrorIcon: ErrorIcon,
|
|
2232
2494
|
DownloadIcon: DownloadIcon,
|
|
@@ -3187,65 +3449,503 @@ var ButtonComponent = props => {
|
|
|
3187
3449
|
};
|
|
3188
3450
|
var Button = ButtonComponent;
|
|
3189
3451
|
|
|
3190
|
-
var
|
|
3191
|
-
|
|
3192
|
-
var
|
|
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
|
-
|
|
3219
|
-
|
|
3220
|
-
}
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3452
|
+
var useContextMenuState = () => {
|
|
3453
|
+
var [isOpen, setIsOpen] = useState(false);
|
|
3454
|
+
var [position, setPosition] = useState({
|
|
3455
|
+
x: 0,
|
|
3456
|
+
y: 0
|
|
3457
|
+
});
|
|
3458
|
+
var [activeSubmenuId, setActiveSubmenuId] = useState(null);
|
|
3459
|
+
// Close the context menu when clicking outside
|
|
3460
|
+
useEffect(() => {
|
|
3461
|
+
var handleClickOutside = event => {
|
|
3462
|
+
var path = event.composedPath();
|
|
3463
|
+
var isOutside = !path.some(element => (element == null ? void 0 : element.id) === 'context-menu');
|
|
3464
|
+
if (isOutside && isOpen) {
|
|
3465
|
+
setIsOpen(false);
|
|
3466
|
+
setActiveSubmenuId(null);
|
|
3467
|
+
}
|
|
3468
|
+
};
|
|
3469
|
+
// Close the context menu when the window is resized
|
|
3470
|
+
var handleResize = () => {
|
|
3471
|
+
if (isOpen) {
|
|
3472
|
+
setIsOpen(false);
|
|
3473
|
+
setActiveSubmenuId(null);
|
|
3474
|
+
}
|
|
3475
|
+
};
|
|
3476
|
+
// Close the context menu when the escape key is pressed
|
|
3477
|
+
var handleKeyDown = event => {
|
|
3478
|
+
if (event.key === 'Escape' && isOpen) {
|
|
3479
|
+
setIsOpen(false);
|
|
3480
|
+
setActiveSubmenuId(null);
|
|
3481
|
+
}
|
|
3482
|
+
};
|
|
3483
|
+
document.addEventListener('mousedown', handleClickOutside);
|
|
3484
|
+
window.addEventListener('resize', handleResize);
|
|
3485
|
+
document.addEventListener('keydown', handleKeyDown);
|
|
3486
|
+
return () => {
|
|
3487
|
+
document.removeEventListener('mousedown', handleClickOutside);
|
|
3488
|
+
window.removeEventListener('resize', handleResize);
|
|
3489
|
+
document.removeEventListener('keydown', handleKeyDown);
|
|
3490
|
+
};
|
|
3491
|
+
}, [isOpen]);
|
|
3492
|
+
return {
|
|
3493
|
+
isOpen,
|
|
3494
|
+
setIsOpen,
|
|
3495
|
+
position,
|
|
3496
|
+
setPosition,
|
|
3497
|
+
activeSubmenuId,
|
|
3498
|
+
setActiveSubmenuId
|
|
3499
|
+
};
|
|
3225
3500
|
};
|
|
3226
3501
|
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3502
|
+
var ContextMenuSizes = {
|
|
3503
|
+
sm: {
|
|
3504
|
+
padding: '6px 8px',
|
|
3505
|
+
fontSize: '14px',
|
|
3506
|
+
minWidth: '160px'
|
|
3507
|
+
},
|
|
3508
|
+
md: {
|
|
3509
|
+
padding: '8px 12px',
|
|
3510
|
+
fontSize: '16px',
|
|
3511
|
+
minWidth: '180px'
|
|
3512
|
+
},
|
|
3513
|
+
lg: {
|
|
3514
|
+
padding: '10px 16px',
|
|
3515
|
+
fontSize: '18px',
|
|
3516
|
+
minWidth: '200px'
|
|
3517
|
+
}
|
|
3518
|
+
};
|
|
3519
|
+
var ContextMenuVariants = {
|
|
3520
|
+
default: {
|
|
3521
|
+
backgroundColor: 'white',
|
|
3522
|
+
color: 'color.gray.800'
|
|
3523
|
+
},
|
|
3524
|
+
filled: {
|
|
3525
|
+
backgroundColor: 'color.gray.100',
|
|
3526
|
+
color: 'color.gray.800'
|
|
3527
|
+
},
|
|
3528
|
+
outline: {
|
|
3529
|
+
backgroundColor: 'white',
|
|
3530
|
+
borderWidth: '1px',
|
|
3531
|
+
borderStyle: 'solid',
|
|
3532
|
+
borderColor: 'color.gray.200',
|
|
3533
|
+
color: 'color.gray.800'
|
|
3534
|
+
}
|
|
3535
|
+
};
|
|
3536
|
+
var ContextMenuItemStates = {
|
|
3537
|
+
hover: {
|
|
3538
|
+
backgroundColor: 'color.gray.100'
|
|
3539
|
+
},
|
|
3540
|
+
active: {
|
|
3541
|
+
backgroundColor: 'color.gray.200'
|
|
3542
|
+
},
|
|
3543
|
+
disabled: {
|
|
3544
|
+
opacity: 0.5,
|
|
3545
|
+
cursor: 'not-allowed'
|
|
3546
|
+
}
|
|
3547
|
+
};
|
|
3548
|
+
// Helper function to calculate position based on available space
|
|
3549
|
+
var calculateMenuPosition = function calculateMenuPosition(x, y, menuWidth, menuHeight, windowWidth, windowHeight, side, align) {
|
|
3550
|
+
if (side === void 0) {
|
|
3551
|
+
side = 'right';
|
|
3552
|
+
}
|
|
3553
|
+
if (align === void 0) {
|
|
3554
|
+
align = 'start';
|
|
3555
|
+
}
|
|
3556
|
+
var posX = x;
|
|
3557
|
+
var posY = y;
|
|
3558
|
+
// Adjust horizontal position based on side
|
|
3559
|
+
if (side === 'left') {
|
|
3560
|
+
posX = x - menuWidth;
|
|
3561
|
+
} else if (side === 'right') {
|
|
3562
|
+
posX = x;
|
|
3563
|
+
} else if (side === 'top' || side === 'bottom') {
|
|
3564
|
+
// Adjust horizontal position based on alignment for top/bottom
|
|
3565
|
+
if (align === 'center') {
|
|
3566
|
+
posX = x - menuWidth / 2;
|
|
3567
|
+
} else if (align === 'end') {
|
|
3568
|
+
posX = x - menuWidth;
|
|
3569
|
+
}
|
|
3570
|
+
}
|
|
3571
|
+
// Adjust vertical position based on side
|
|
3572
|
+
if (side === 'top') {
|
|
3573
|
+
posY = y - menuHeight;
|
|
3574
|
+
} else if (side === 'bottom') {
|
|
3575
|
+
posY = y;
|
|
3576
|
+
} else if (side === 'left' || side === 'right') {
|
|
3577
|
+
// Adjust vertical position based on alignment for left/right
|
|
3578
|
+
if (align === 'center') {
|
|
3579
|
+
posY = y - menuHeight / 2;
|
|
3580
|
+
} else if (align === 'end') {
|
|
3581
|
+
posY = y - menuHeight;
|
|
3582
|
+
}
|
|
3583
|
+
}
|
|
3584
|
+
// Ensure menu stays within window bounds
|
|
3585
|
+
if (posX + menuWidth > windowWidth) {
|
|
3586
|
+
posX = windowWidth - menuWidth;
|
|
3587
|
+
}
|
|
3588
|
+
if (posX < 0) {
|
|
3589
|
+
posX = 0;
|
|
3590
|
+
}
|
|
3591
|
+
if (posY + menuHeight > windowHeight) {
|
|
3592
|
+
posY = windowHeight - menuHeight;
|
|
3593
|
+
}
|
|
3594
|
+
if (posY < 0) {
|
|
3595
|
+
posY = 0;
|
|
3596
|
+
}
|
|
3597
|
+
return {
|
|
3598
|
+
x: posX,
|
|
3599
|
+
y: posY
|
|
3600
|
+
};
|
|
3601
|
+
};
|
|
3602
|
+
|
|
3603
|
+
var _excluded$a = ["children", "disableNativeContextMenu", "views"],
|
|
3604
|
+
_excluded2$2 = ["items", "position", "side", "align", "views"],
|
|
3605
|
+
_excluded3$2 = ["item", "views"],
|
|
3606
|
+
_excluded4$2 = ["views"],
|
|
3607
|
+
_excluded5$1 = ["children", "items", "size", "variant", "disableNativeContextMenu", "views"];
|
|
3608
|
+
// Create context for the ContextMenu
|
|
3609
|
+
var ContextMenuContext = /*#__PURE__*/createContext({
|
|
3610
|
+
isOpen: false,
|
|
3611
|
+
setIsOpen: () => {},
|
|
3612
|
+
position: {
|
|
3613
|
+
x: 0,
|
|
3614
|
+
y: 0
|
|
3615
|
+
},
|
|
3616
|
+
setPosition: () => {},
|
|
3617
|
+
activeSubmenuId: null,
|
|
3618
|
+
setActiveSubmenuId: () => {},
|
|
3619
|
+
size: 'md',
|
|
3620
|
+
variant: 'default'
|
|
3621
|
+
});
|
|
3622
|
+
// Provider component for the ContextMenu context
|
|
3623
|
+
var ContextMenuProvider = _ref => {
|
|
3624
|
+
var {
|
|
3625
|
+
children,
|
|
3626
|
+
value
|
|
3627
|
+
} = _ref;
|
|
3628
|
+
return /*#__PURE__*/React.createElement(ContextMenuContext.Provider, {
|
|
3629
|
+
value: value
|
|
3630
|
+
}, children);
|
|
3631
|
+
};
|
|
3632
|
+
// Hook to use the ContextMenu context
|
|
3633
|
+
var useContextMenuContext = () => {
|
|
3634
|
+
var context = useContext(ContextMenuContext);
|
|
3635
|
+
if (!context) {
|
|
3636
|
+
throw new Error('useContextMenuContext must be used within a ContextMenuProvider');
|
|
3637
|
+
}
|
|
3638
|
+
return context;
|
|
3639
|
+
};
|
|
3640
|
+
// ContextMenu Trigger component
|
|
3641
|
+
var ContextMenuTrigger = _ref2 => {
|
|
3642
|
+
var {
|
|
3643
|
+
children,
|
|
3644
|
+
disableNativeContextMenu = true,
|
|
3645
|
+
views
|
|
3646
|
+
} = _ref2,
|
|
3647
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$a);
|
|
3648
|
+
var {
|
|
3649
|
+
setIsOpen,
|
|
3650
|
+
setPosition
|
|
3651
|
+
} = useContextMenuContext();
|
|
3652
|
+
var handleContextMenu = e => {
|
|
3653
|
+
if (disableNativeContextMenu) {
|
|
3654
|
+
e.preventDefault();
|
|
3655
|
+
}
|
|
3656
|
+
setPosition({
|
|
3657
|
+
x: e.clientX,
|
|
3658
|
+
y: e.clientY
|
|
3659
|
+
});
|
|
3660
|
+
setIsOpen(true);
|
|
3661
|
+
};
|
|
3662
|
+
return /*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
3663
|
+
onContextMenu: handleContextMenu
|
|
3664
|
+
}, views == null ? void 0 : views.container, props), children);
|
|
3665
|
+
};
|
|
3666
|
+
// ContextMenu Content component
|
|
3667
|
+
var ContextMenuContent = _ref3 => {
|
|
3668
|
+
var {
|
|
3669
|
+
items,
|
|
3670
|
+
position,
|
|
3671
|
+
side = 'right',
|
|
3672
|
+
align = 'start',
|
|
3673
|
+
views
|
|
3674
|
+
} = _ref3,
|
|
3675
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$2);
|
|
3676
|
+
var {
|
|
3677
|
+
isOpen,
|
|
3678
|
+
position: contextPosition,
|
|
3679
|
+
// activeSubmenuId,
|
|
3680
|
+
// setActiveSubmenuId,
|
|
3681
|
+
// size,
|
|
3682
|
+
variant
|
|
3683
|
+
} = useContextMenuContext();
|
|
3684
|
+
var menuRef = useRef(null);
|
|
3685
|
+
var [menuPosition, setMenuPosition] = useState({
|
|
3686
|
+
x: 0,
|
|
3687
|
+
y: 0
|
|
3688
|
+
});
|
|
3689
|
+
// Calculate the position of the menu
|
|
3690
|
+
useEffect(() => {
|
|
3691
|
+
if (isOpen && menuRef.current) {
|
|
3692
|
+
var menuWidth = menuRef.current.offsetWidth;
|
|
3693
|
+
var menuHeight = menuRef.current.offsetHeight;
|
|
3694
|
+
var windowWidth = window.innerWidth;
|
|
3695
|
+
var windowHeight = window.innerHeight;
|
|
3696
|
+
var pos = position || contextPosition;
|
|
3697
|
+
var calculatedPosition = calculateMenuPosition(pos.x, pos.y, menuWidth, menuHeight, windowWidth, windowHeight, side, align);
|
|
3698
|
+
setMenuPosition(calculatedPosition);
|
|
3699
|
+
}
|
|
3700
|
+
}, [isOpen, contextPosition, position, side, align]);
|
|
3701
|
+
if (!isOpen) {
|
|
3702
|
+
return null;
|
|
3703
|
+
}
|
|
3704
|
+
return /*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
3705
|
+
id: "context-menu",
|
|
3706
|
+
ref: menuRef,
|
|
3707
|
+
position: "fixed",
|
|
3708
|
+
top: menuPosition.y,
|
|
3709
|
+
left: menuPosition.x,
|
|
3710
|
+
zIndex: 1000,
|
|
3711
|
+
borderRadius: 4,
|
|
3712
|
+
boxShadow: "0px 2px 8px rgba(0, 0, 0, 0.15)",
|
|
3713
|
+
overflow: "hidden"
|
|
3714
|
+
}, ContextMenuVariants[variant], views == null ? void 0 : views.menu, props), items.map((item, index) => {
|
|
3715
|
+
if (item.divider) {
|
|
3716
|
+
return /*#__PURE__*/React.createElement(ContextMenuDivider, {
|
|
3717
|
+
key: "divider-" + index,
|
|
3718
|
+
views: views
|
|
3719
|
+
});
|
|
3720
|
+
}
|
|
3721
|
+
return /*#__PURE__*/React.createElement(ContextMenuItem, {
|
|
3722
|
+
key: item.id,
|
|
3723
|
+
item: item,
|
|
3724
|
+
views: views
|
|
3725
|
+
});
|
|
3726
|
+
}));
|
|
3727
|
+
};
|
|
3728
|
+
// ContextMenu Item component
|
|
3729
|
+
var ContextMenuItem = _ref4 => {
|
|
3730
|
+
var {
|
|
3731
|
+
item,
|
|
3732
|
+
views
|
|
3733
|
+
} = _ref4,
|
|
3734
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$2);
|
|
3735
|
+
var {
|
|
3736
|
+
activeSubmenuId,
|
|
3737
|
+
setActiveSubmenuId,
|
|
3738
|
+
size
|
|
3739
|
+
} = useContextMenuContext();
|
|
3740
|
+
var [isHovered, setIsHovered] = useState(false);
|
|
3741
|
+
var hasSubmenu = item.items && item.items.length > 0;
|
|
3742
|
+
var isSubmenuActive = activeSubmenuId === item.id;
|
|
3743
|
+
var itemRef = useRef(null);
|
|
3744
|
+
var [submenuPosition, setSubmenuPosition] = useState({
|
|
3745
|
+
x: 0,
|
|
3746
|
+
y: 0
|
|
3747
|
+
});
|
|
3748
|
+
// Handle mouse enter event
|
|
3749
|
+
var handleMouseEnter = () => {
|
|
3750
|
+
setIsHovered(true);
|
|
3751
|
+
if (hasSubmenu) {
|
|
3752
|
+
setActiveSubmenuId(item.id);
|
|
3753
|
+
}
|
|
3754
|
+
};
|
|
3755
|
+
// Handle mouse leave event
|
|
3756
|
+
var handleMouseLeave = () => {
|
|
3757
|
+
setIsHovered(false);
|
|
3758
|
+
};
|
|
3759
|
+
// Handle click event
|
|
3760
|
+
var handleClick = () => {
|
|
3761
|
+
if (item.disabled) return;
|
|
3762
|
+
if (!hasSubmenu && item.onClick) {
|
|
3763
|
+
item.onClick();
|
|
3764
|
+
}
|
|
3765
|
+
};
|
|
3766
|
+
// Calculate the position of the submenu
|
|
3767
|
+
useEffect(() => {
|
|
3768
|
+
if (isSubmenuActive && itemRef.current) {
|
|
3769
|
+
var rect = itemRef.current.getBoundingClientRect();
|
|
3770
|
+
setSubmenuPosition({
|
|
3771
|
+
x: rect.right,
|
|
3772
|
+
y: rect.top
|
|
3773
|
+
});
|
|
3774
|
+
}
|
|
3775
|
+
}, [isSubmenuActive]);
|
|
3776
|
+
return /*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
3777
|
+
ref: itemRef,
|
|
3778
|
+
display: "flex",
|
|
3779
|
+
alignItems: "center",
|
|
3780
|
+
cursor: item.disabled ? 'not-allowed' : 'pointer',
|
|
3781
|
+
opacity: item.disabled ? 0.5 : 1,
|
|
3782
|
+
position: "relative"
|
|
3783
|
+
}, ContextMenuSizes[size], {
|
|
3784
|
+
_hover: !item.disabled ? ContextMenuItemStates.hover : {},
|
|
3785
|
+
backgroundColor: isHovered && !item.disabled ? 'color.gray.100' : 'transparent',
|
|
3786
|
+
onMouseEnter: handleMouseEnter,
|
|
3787
|
+
onMouseLeave: handleMouseLeave,
|
|
3788
|
+
onClick: handleClick
|
|
3789
|
+
}, views == null ? void 0 : views.item, props), item.icon && (/*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
3790
|
+
marginRight: 8
|
|
3791
|
+
}, views == null ? void 0 : views.icon), item.icon)), /*#__PURE__*/React.createElement(View$1, {
|
|
3792
|
+
flexGrow: 1
|
|
3793
|
+
}, item.label), hasSubmenu && (/*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
3794
|
+
marginLeft: 8
|
|
3795
|
+
}, views == null ? void 0 : views.submenuIndicator), /*#__PURE__*/React.createElement("svg", {
|
|
3796
|
+
width: "16",
|
|
3797
|
+
height: "16",
|
|
3798
|
+
viewBox: "0 0 24 24",
|
|
3799
|
+
fill: "none",
|
|
3800
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
3801
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
3802
|
+
d: "M8.59 16.59L13.17 12L8.59 7.41L10 6L16 12L10 18L8.59 16.59Z",
|
|
3803
|
+
fill: "currentColor"
|
|
3804
|
+
})))), isSubmenuActive && hasSubmenu && (/*#__PURE__*/React.createElement(ContextMenuContent, {
|
|
3805
|
+
items: item.items || [],
|
|
3806
|
+
position: submenuPosition,
|
|
3807
|
+
side: "right",
|
|
3808
|
+
align: "start",
|
|
3809
|
+
views: views
|
|
3810
|
+
})));
|
|
3811
|
+
};
|
|
3812
|
+
// ContextMenu Divider component
|
|
3813
|
+
var ContextMenuDivider = _ref5 => {
|
|
3814
|
+
var {
|
|
3815
|
+
views
|
|
3816
|
+
} = _ref5,
|
|
3817
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$2);
|
|
3818
|
+
return /*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
3819
|
+
height: "1px",
|
|
3820
|
+
backgroundColor: "color.gray.200",
|
|
3821
|
+
margin: "4px 0"
|
|
3822
|
+
}, views == null ? void 0 : views.divider, props));
|
|
3823
|
+
};
|
|
3824
|
+
// Main ContextMenu View component
|
|
3825
|
+
var ContextMenuView = _ref6 => {
|
|
3826
|
+
var {
|
|
3827
|
+
children,
|
|
3828
|
+
items,
|
|
3829
|
+
disableNativeContextMenu = true,
|
|
3830
|
+
views
|
|
3831
|
+
} = _ref6,
|
|
3832
|
+
props = _objectWithoutPropertiesLoose(_ref6, _excluded5$1);
|
|
3833
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ContextMenuTrigger, Object.assign({
|
|
3834
|
+
disableNativeContextMenu: disableNativeContextMenu,
|
|
3835
|
+
views: views
|
|
3836
|
+
}, props), children), /*#__PURE__*/React.createElement(ContextMenuContent, {
|
|
3837
|
+
items: items,
|
|
3838
|
+
views: views
|
|
3839
|
+
}));
|
|
3840
|
+
};
|
|
3841
|
+
|
|
3842
|
+
var _excluded$b = ["children", "items", "size", "variant", "disableNativeContextMenu", "views"];
|
|
3843
|
+
/**
|
|
3844
|
+
* ContextMenu component for displaying a custom context menu on right-click.
|
|
3845
|
+
*/
|
|
3846
|
+
var ContextMenuComponent = _ref => {
|
|
3847
|
+
var {
|
|
3848
|
+
children,
|
|
3849
|
+
items,
|
|
3850
|
+
size = 'md',
|
|
3851
|
+
variant = 'default',
|
|
3852
|
+
disableNativeContextMenu = true,
|
|
3853
|
+
views
|
|
3854
|
+
} = _ref,
|
|
3855
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
3856
|
+
var {
|
|
3857
|
+
isOpen,
|
|
3858
|
+
setIsOpen,
|
|
3859
|
+
position,
|
|
3860
|
+
setPosition,
|
|
3861
|
+
activeSubmenuId,
|
|
3862
|
+
setActiveSubmenuId
|
|
3863
|
+
} = useContextMenuState();
|
|
3864
|
+
return /*#__PURE__*/React.createElement(ContextMenuProvider, {
|
|
3865
|
+
value: {
|
|
3866
|
+
isOpen,
|
|
3867
|
+
setIsOpen,
|
|
3868
|
+
position,
|
|
3869
|
+
setPosition,
|
|
3870
|
+
activeSubmenuId,
|
|
3871
|
+
setActiveSubmenuId,
|
|
3872
|
+
size,
|
|
3873
|
+
variant
|
|
3874
|
+
}
|
|
3875
|
+
}, /*#__PURE__*/React.createElement(ContextMenuView, Object.assign({
|
|
3876
|
+
items: items,
|
|
3877
|
+
size: size,
|
|
3878
|
+
variant: variant,
|
|
3879
|
+
disableNativeContextMenu: disableNativeContextMenu,
|
|
3880
|
+
views: views
|
|
3881
|
+
}, props), children));
|
|
3882
|
+
};
|
|
3883
|
+
var ContextMenu = ContextMenuComponent;
|
|
3884
|
+
// Assign the sub-components to the main component
|
|
3885
|
+
ContextMenu.Trigger = ContextMenuTrigger;
|
|
3886
|
+
ContextMenu.Content = ContextMenuContent;
|
|
3887
|
+
ContextMenu.Item = ContextMenuItem;
|
|
3888
|
+
ContextMenu.Divider = ContextMenuDivider;
|
|
3889
|
+
|
|
3890
|
+
var _excluded$c = ["src", "color", "views", "themeMode"],
|
|
3891
|
+
_excluded2$3 = ["path"];
|
|
3892
|
+
var FileSVG = _ref => {
|
|
3893
|
+
var {
|
|
3894
|
+
src,
|
|
3895
|
+
color,
|
|
3896
|
+
views
|
|
3897
|
+
} = _ref,
|
|
3898
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
3899
|
+
var {
|
|
3900
|
+
getColor,
|
|
3901
|
+
themeMode
|
|
3902
|
+
} = useTheme();
|
|
3903
|
+
var Colorprops = color ? {
|
|
3904
|
+
fill: getColor(color, {
|
|
3905
|
+
themeMode
|
|
3906
|
+
}),
|
|
3907
|
+
stroke: getColor(color, {
|
|
3908
|
+
themeMode
|
|
3909
|
+
})
|
|
3910
|
+
} : {};
|
|
3911
|
+
return /*#__PURE__*/React.createElement(Center, Object.assign({}, props, views == null ? void 0 : views.container), /*#__PURE__*/React.createElement(Image, Object.assign({}, Colorprops, {
|
|
3912
|
+
content: 'url("' + src + '")',
|
|
3913
|
+
width: "100%",
|
|
3914
|
+
height: "100%"
|
|
3915
|
+
}, views == null ? void 0 : views.image)));
|
|
3916
|
+
};
|
|
3917
|
+
var FileImage = _ref2 => {
|
|
3918
|
+
var {
|
|
3919
|
+
path
|
|
3920
|
+
} = _ref2,
|
|
3921
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$3);
|
|
3922
|
+
return /*#__PURE__*/React.createElement(Image, Object.assign({
|
|
3923
|
+
src: path
|
|
3924
|
+
}, props));
|
|
3925
|
+
};
|
|
3926
|
+
|
|
3927
|
+
// Initializes the custom hook 'useSelectState' for managing the state of the Select component
|
|
3928
|
+
var useSelectState = _ref => {
|
|
3929
|
+
var {
|
|
3930
|
+
placeholder,
|
|
3931
|
+
isMulti,
|
|
3932
|
+
options
|
|
3933
|
+
} = _ref;
|
|
3934
|
+
// 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
|
|
3935
|
+
var defaultValue = placeholder ? isMulti ? [] : '' // If there's a placeholder, set default to empty array for multi-select or empty string for single select
|
|
3936
|
+
: Array.isArray(options) && options.length > 0 ? options[0].value : ''; // If no placeholder, use the first option value if available, otherwise undefined
|
|
3937
|
+
// State hook for managing visibility of the Select dropdown, initially set to hidden
|
|
3938
|
+
var [hide, setHide] = React.useState(true);
|
|
3939
|
+
// State hook for tracking mouse hover status over the Select component
|
|
3940
|
+
var [isHovered, setIsHovered] = React.useState(false);
|
|
3941
|
+
// State hook for tracking focus status of the Select input field
|
|
3942
|
+
var [isFocused, setIsFocused] = React.useState(false);
|
|
3943
|
+
// State hook for managing the value(s) selected by the user, initialized with the default value
|
|
3944
|
+
var [value, setValue] = React.useState(defaultValue);
|
|
3945
|
+
// State hook for keeping track of the currently highlighted index in the options list
|
|
3946
|
+
var [highlightedIndex, setHighlightedIndex] = React.useState(0);
|
|
3947
|
+
// Returns an object containing all stateful values and their associated setters to manage the Select component's state
|
|
3948
|
+
return {
|
|
3249
3949
|
value,
|
|
3250
3950
|
setValue,
|
|
3251
3951
|
hide,
|
|
@@ -3269,7 +3969,7 @@ var useItemState = () => {
|
|
|
3269
3969
|
};
|
|
3270
3970
|
};
|
|
3271
3971
|
|
|
3272
|
-
var _excluded$
|
|
3972
|
+
var _excluded$d = ["children", "views"];
|
|
3273
3973
|
var HelperText = _ref => {
|
|
3274
3974
|
var {
|
|
3275
3975
|
children,
|
|
@@ -3277,7 +3977,7 @@ var HelperText = _ref => {
|
|
|
3277
3977
|
helperText: {}
|
|
3278
3978
|
}
|
|
3279
3979
|
} = _ref,
|
|
3280
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3980
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
3281
3981
|
return /*#__PURE__*/React.createElement(Text, Object.assign({
|
|
3282
3982
|
size: "xs",
|
|
3283
3983
|
marginVertical: 0,
|
|
@@ -3286,7 +3986,7 @@ var HelperText = _ref => {
|
|
|
3286
3986
|
}, views['helperText'], props), children);
|
|
3287
3987
|
};
|
|
3288
3988
|
|
|
3289
|
-
var _excluded$
|
|
3989
|
+
var _excluded$e = ["children", "helperText", "error", "views"];
|
|
3290
3990
|
var FieldContainer = _ref => {
|
|
3291
3991
|
var {
|
|
3292
3992
|
children,
|
|
@@ -3294,7 +3994,7 @@ var FieldContainer = _ref => {
|
|
|
3294
3994
|
error = false,
|
|
3295
3995
|
views
|
|
3296
3996
|
} = _ref,
|
|
3297
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3997
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
|
3298
3998
|
return /*#__PURE__*/React.createElement(Vertical, Object.assign({
|
|
3299
3999
|
gap: 5,
|
|
3300
4000
|
position: "relative"
|
|
@@ -3353,7 +4053,7 @@ var PaddingWithoutLabel = {
|
|
|
3353
4053
|
paddingRight: 16
|
|
3354
4054
|
};
|
|
3355
4055
|
|
|
3356
|
-
var _excluded$
|
|
4056
|
+
var _excluded$f = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "isWithLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "views"];
|
|
3357
4057
|
var FieldContent = _ref => {
|
|
3358
4058
|
var {
|
|
3359
4059
|
shadow,
|
|
@@ -3371,7 +4071,7 @@ var FieldContent = _ref => {
|
|
|
3371
4071
|
pickerBox: {}
|
|
3372
4072
|
}
|
|
3373
4073
|
} = _ref,
|
|
3374
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4074
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
|
|
3375
4075
|
var isInteractive = (isHovered || isFocused) && !isDisabled;
|
|
3376
4076
|
var color = error ? 'error' : isInteractive ? 'theme.primary' : 'midgray';
|
|
3377
4077
|
return /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
@@ -3392,12 +4092,12 @@ var FieldContent = _ref => {
|
|
|
3392
4092
|
}, isWithLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant], views['box'], props), children);
|
|
3393
4093
|
};
|
|
3394
4094
|
|
|
3395
|
-
var _excluded$
|
|
4095
|
+
var _excluded$g = ["children"];
|
|
3396
4096
|
var FieldIcons = _ref => {
|
|
3397
4097
|
var {
|
|
3398
4098
|
children
|
|
3399
4099
|
} = _ref,
|
|
3400
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4100
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
3401
4101
|
return /*#__PURE__*/React.createElement(Center, Object.assign({
|
|
3402
4102
|
gap: 10,
|
|
3403
4103
|
right: 16,
|
|
@@ -3449,7 +4149,7 @@ var HeadingSizes$1 = {
|
|
|
3449
4149
|
}
|
|
3450
4150
|
};
|
|
3451
4151
|
|
|
3452
|
-
var _excluded$
|
|
4152
|
+
var _excluded$h = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
|
|
3453
4153
|
var LabelView = _ref => {
|
|
3454
4154
|
var {
|
|
3455
4155
|
children,
|
|
@@ -3465,7 +4165,7 @@ var LabelView = _ref => {
|
|
|
3465
4165
|
size = 'sm'
|
|
3466
4166
|
// The fontSize prop for the Element is determined by the 'size' prop passed to LabelView.
|
|
3467
4167
|
} = _ref,
|
|
3468
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4168
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
3469
4169
|
// The fontStyle prop toggles between 'italic' and 'normal' based on the 'isItalic' boolean prop.
|
|
3470
4170
|
var headingStyles = heading ? HeadingSizes$1[heading] : {};
|
|
3471
4171
|
// fontWeight is derived from the Typography module, ensuring consistent font weighting across the app.
|
|
@@ -3497,7 +4197,7 @@ React.createElement(LabelView, Object.assign({}, props))
|
|
|
3497
4197
|
var Label = LabelComponent;
|
|
3498
4198
|
// Export the 'LabelComponent' as 'Label' to be reused throughout the project.
|
|
3499
4199
|
|
|
3500
|
-
var _excluded$
|
|
4200
|
+
var _excluded$i = ["children", "size", "error", "color", "views", "helperText"];
|
|
3501
4201
|
var FieldLabel = _ref => {
|
|
3502
4202
|
var {
|
|
3503
4203
|
children,
|
|
@@ -3508,7 +4208,7 @@ var FieldLabel = _ref => {
|
|
|
3508
4208
|
label: {}
|
|
3509
4209
|
}
|
|
3510
4210
|
} = _ref,
|
|
3511
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4211
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
3512
4212
|
return /*#__PURE__*/React.createElement(Label, Object.assign({
|
|
3513
4213
|
top: 6,
|
|
3514
4214
|
zIndex: 1000,
|
|
@@ -3521,12 +4221,12 @@ var FieldLabel = _ref => {
|
|
|
3521
4221
|
}, views['label'], props), children);
|
|
3522
4222
|
};
|
|
3523
4223
|
|
|
3524
|
-
var _excluded$
|
|
4224
|
+
var _excluded$j = ["children"];
|
|
3525
4225
|
var FieldWrapper = _ref => {
|
|
3526
4226
|
var {
|
|
3527
4227
|
children
|
|
3528
4228
|
} = _ref,
|
|
3529
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4229
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
3530
4230
|
return /*#__PURE__*/React.createElement(Vertical, Object.assign({
|
|
3531
4231
|
width: "100%",
|
|
3532
4232
|
maxWidth: '100%'
|
|
@@ -3543,10 +4243,10 @@ var IconSizes$2 = {
|
|
|
3543
4243
|
xl: 16
|
|
3544
4244
|
};
|
|
3545
4245
|
|
|
3546
|
-
var _excluded$
|
|
3547
|
-
_excluded2$
|
|
3548
|
-
_excluded3$
|
|
3549
|
-
_excluded4$
|
|
4246
|
+
var _excluded$k = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
|
|
4247
|
+
_excluded2$4 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
|
|
4248
|
+
_excluded3$3 = ["option", "size", "removeOption"],
|
|
4249
|
+
_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"];
|
|
3550
4250
|
// Defines a component to render individual selection items within a list.
|
|
3551
4251
|
var Item = _ref => {
|
|
3552
4252
|
var {
|
|
@@ -3557,7 +4257,7 @@ var Item = _ref => {
|
|
|
3557
4257
|
callback = () => {},
|
|
3558
4258
|
style
|
|
3559
4259
|
} = _ref,
|
|
3560
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4260
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
|
3561
4261
|
// Handles the click event on an option by invoking the callback with the selected option's value.
|
|
3562
4262
|
var handleOptionClick = option => callback(option);
|
|
3563
4263
|
// Toggles the hover state on the item.
|
|
@@ -3627,7 +4327,7 @@ var HiddenSelect = _ref4 => {
|
|
|
3627
4327
|
isReadOnly = false,
|
|
3628
4328
|
options = []
|
|
3629
4329
|
} = _ref4,
|
|
3630
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded2$
|
|
4330
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded2$4);
|
|
3631
4331
|
var handleChange = event => {
|
|
3632
4332
|
if (onChange) onChange(event);
|
|
3633
4333
|
};
|
|
@@ -3717,7 +4417,7 @@ var MultiSelect = _ref6 => {
|
|
|
3717
4417
|
size = 'md',
|
|
3718
4418
|
removeOption = () => {}
|
|
3719
4419
|
} = _ref6,
|
|
3720
|
-
props = _objectWithoutPropertiesLoose(_ref6, _excluded3$
|
|
4420
|
+
props = _objectWithoutPropertiesLoose(_ref6, _excluded3$3);
|
|
3721
4421
|
var handleClick = () => removeOption(option);
|
|
3722
4422
|
return /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
3723
4423
|
gap: 10,
|
|
@@ -3772,7 +4472,7 @@ var SelectView = _ref7 => {
|
|
|
3772
4472
|
setHighlightedIndex,
|
|
3773
4473
|
highlightedIndex
|
|
3774
4474
|
} = _ref7,
|
|
3775
|
-
props = _objectWithoutPropertiesLoose(_ref7, _excluded4$
|
|
4475
|
+
props = _objectWithoutPropertiesLoose(_ref7, _excluded4$3);
|
|
3776
4476
|
var isWithLabel = !!(isFocused && label);
|
|
3777
4477
|
var handleHover = () => setIsHovered(!isHovered);
|
|
3778
4478
|
var handleFocus = () => setIsFocused(true);
|
|
@@ -4017,7 +4717,7 @@ var SliderPadding = {
|
|
|
4017
4717
|
}
|
|
4018
4718
|
};
|
|
4019
4719
|
|
|
4020
|
-
var _excluded$
|
|
4720
|
+
var _excluded$l = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "value", "isHovered", "isDisabled", "isReadOnly", "on", "setOn", "onChange", "setValue", "setIsHovered", "helperText", "views"];
|
|
4021
4721
|
var SwitchContent = props => /*#__PURE__*/React.createElement(Input, Object.assign({
|
|
4022
4722
|
type: "checkbox"
|
|
4023
4723
|
}, props));
|
|
@@ -4046,7 +4746,7 @@ var SwitchView = _ref => {
|
|
|
4046
4746
|
label: {}
|
|
4047
4747
|
}
|
|
4048
4748
|
} = _ref,
|
|
4049
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4749
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
4050
4750
|
var handleToggle = event => {
|
|
4051
4751
|
if (!isReadOnly) {
|
|
4052
4752
|
setValue(!value);
|
|
@@ -4136,7 +4836,7 @@ var useTextAreaState = _ref => {
|
|
|
4136
4836
|
// Export of the useTextAreaState hook for external usage.
|
|
4137
4837
|
};
|
|
4138
4838
|
|
|
4139
|
-
var _excluded$
|
|
4839
|
+
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"];
|
|
4140
4840
|
var TextAreaView = _ref => {
|
|
4141
4841
|
var {
|
|
4142
4842
|
id,
|
|
@@ -4175,7 +4875,7 @@ var TextAreaView = _ref => {
|
|
|
4175
4875
|
field: {}
|
|
4176
4876
|
}
|
|
4177
4877
|
} = _ref,
|
|
4178
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4878
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
|
|
4179
4879
|
var isWithLabel = !!(isFocused && label);
|
|
4180
4880
|
var fieldStyles = Object.assign({
|
|
4181
4881
|
margin: 0,
|
|
@@ -4304,7 +5004,7 @@ var useTextFieldState = _ref => {
|
|
|
4304
5004
|
};
|
|
4305
5005
|
};
|
|
4306
5006
|
|
|
4307
|
-
var _excluded$
|
|
5007
|
+
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"];
|
|
4308
5008
|
var TextFieldInput = props => /*#__PURE__*/React.createElement(Input, Object.assign({
|
|
4309
5009
|
type: "text"
|
|
4310
5010
|
}, props));
|
|
@@ -4347,7 +5047,7 @@ var TextFieldView = _ref => {
|
|
|
4347
5047
|
onBlur = () => {},
|
|
4348
5048
|
themeMode: elementMode
|
|
4349
5049
|
} = _ref,
|
|
4350
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5050
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
4351
5051
|
var {
|
|
4352
5052
|
getColor,
|
|
4353
5053
|
themeMode
|
|
@@ -4528,7 +5228,7 @@ var IconSizes$3 = {
|
|
|
4528
5228
|
'6xl': 60
|
|
4529
5229
|
};
|
|
4530
5230
|
|
|
4531
|
-
var _excluded$
|
|
5231
|
+
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"];
|
|
4532
5232
|
var CheckboxView = _ref => {
|
|
4533
5233
|
var {
|
|
4534
5234
|
id,
|
|
@@ -4555,7 +5255,7 @@ var CheckboxView = _ref => {
|
|
|
4555
5255
|
},
|
|
4556
5256
|
infoText
|
|
4557
5257
|
} = _ref,
|
|
4558
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5258
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
|
|
4559
5259
|
var handleHover = () => setIsHovered(!isHovered);
|
|
4560
5260
|
var handleChange = () => {
|
|
4561
5261
|
if (!isReadOnly && !isDisabled) {
|
|
@@ -6119,11 +6819,11 @@ var IconSizes$4 = {
|
|
|
6119
6819
|
xl: 16
|
|
6120
6820
|
};
|
|
6121
6821
|
|
|
6122
|
-
var _excluded$
|
|
6123
|
-
_excluded2$
|
|
6124
|
-
_excluded3$
|
|
6822
|
+
var _excluded$p = ["size"],
|
|
6823
|
+
_excluded2$5 = ["size"],
|
|
6824
|
+
_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"];
|
|
6125
6825
|
var CountryList = _ref => {
|
|
6126
|
-
var props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6826
|
+
var props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
6127
6827
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
6128
6828
|
as: "ul"
|
|
6129
6829
|
}, props));
|
|
@@ -6132,7 +6832,7 @@ var CountrySelector = props => (/*#__PURE__*/React.createElement(Input, Object.a
|
|
|
6132
6832
|
type: "country"
|
|
6133
6833
|
}, props)));
|
|
6134
6834
|
var CountryItem = _ref2 => {
|
|
6135
|
-
var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
6835
|
+
var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$5);
|
|
6136
6836
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
6137
6837
|
as: "li"
|
|
6138
6838
|
}, props));
|
|
@@ -6235,7 +6935,7 @@ var CountryPickerView = _ref5 => {
|
|
|
6235
6935
|
},
|
|
6236
6936
|
themeMode: elementMode
|
|
6237
6937
|
} = _ref5,
|
|
6238
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded3$
|
|
6938
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded3$4);
|
|
6239
6939
|
var {
|
|
6240
6940
|
getColor,
|
|
6241
6941
|
themeMode
|
|
@@ -6362,7 +7062,7 @@ var useDatePickerState = () => {
|
|
|
6362
7062
|
};
|
|
6363
7063
|
};
|
|
6364
7064
|
|
|
6365
|
-
var _excluded$
|
|
7065
|
+
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"];
|
|
6366
7066
|
var DatePickerContent = props => /*#__PURE__*/React.createElement(Input, Object.assign({
|
|
6367
7067
|
type: "date"
|
|
6368
7068
|
}, props));
|
|
@@ -6395,7 +7095,7 @@ var DatePickerView = _ref => {
|
|
|
6395
7095
|
onChange,
|
|
6396
7096
|
onChangeText
|
|
6397
7097
|
} = _ref,
|
|
6398
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7098
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
|
|
6399
7099
|
var isWithLabel = !!(isFocused && label);
|
|
6400
7100
|
var handleHover = () => setIsHovered(!isHovered);
|
|
6401
7101
|
var handleFocus = () => setIsFocused(true);
|
|
@@ -6482,8 +7182,8 @@ var usePasswordState = props => {
|
|
|
6482
7182
|
}, props, textFieldStates);
|
|
6483
7183
|
};
|
|
6484
7184
|
|
|
6485
|
-
var _excluded$
|
|
6486
|
-
_excluded2$
|
|
7185
|
+
var _excluded$r = ["visibleIcon", "hiddenIcon"],
|
|
7186
|
+
_excluded2$6 = ["isVisible", "setIsVisible"];
|
|
6487
7187
|
var PasswordComponent = _ref => {
|
|
6488
7188
|
var {
|
|
6489
7189
|
visibleIcon = /*#__PURE__*/React.createElement(OpenEyeIcon, {
|
|
@@ -6493,13 +7193,13 @@ var PasswordComponent = _ref => {
|
|
|
6493
7193
|
widthHeight: 14
|
|
6494
7194
|
})
|
|
6495
7195
|
} = _ref,
|
|
6496
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7196
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
|
|
6497
7197
|
var _usePasswordState = usePasswordState(props),
|
|
6498
7198
|
{
|
|
6499
7199
|
isVisible,
|
|
6500
7200
|
setIsVisible
|
|
6501
7201
|
} = _usePasswordState,
|
|
6502
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
7202
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$6);
|
|
6503
7203
|
return /*#__PURE__*/React.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
6504
7204
|
type: isVisible ? 'text' : 'password',
|
|
6505
7205
|
isClearable: false,
|
|
@@ -6547,7 +7247,7 @@ var useComboBoxState = (items, placeholder, searchPlaceholder) => {
|
|
|
6547
7247
|
};
|
|
6548
7248
|
};
|
|
6549
7249
|
|
|
6550
|
-
var _excluded$
|
|
7250
|
+
var _excluded$s = ["placeholder", "items", "showTick", "onSelect", "searchEnabled", "left", "right", "label", "filteredItems", "setSelectedItem", "selectedItem", "highlightedIndex", "setHighlightedIndex", "searchQuery", "setSearchQuery", "setFilteredItems", "views", "isDropdownVisible", "setIsDropdownVisible"];
|
|
6551
7251
|
// Defines the functional component 'ComboBoxView' with destructured props.
|
|
6552
7252
|
var ComboBoxView = _ref => {
|
|
6553
7253
|
var {
|
|
@@ -6572,7 +7272,7 @@ var ComboBoxView = _ref => {
|
|
|
6572
7272
|
setIsDropdownVisible
|
|
6573
7273
|
// Collects all further props not destructured explicitly.
|
|
6574
7274
|
} = _ref,
|
|
6575
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7275
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
|
|
6576
7276
|
// Sets up an effect to handle clicking outside the dropdown to close it.
|
|
6577
7277
|
useEffect(() => {
|
|
6578
7278
|
var handleClickOutside = event => {
|
|
@@ -6683,7 +7383,7 @@ var ComboBoxView = _ref => {
|
|
|
6683
7383
|
}))))))))))));
|
|
6684
7384
|
};
|
|
6685
7385
|
|
|
6686
|
-
var _excluded$
|
|
7386
|
+
var _excluded$t = ["id", "name", "items", "placeholder", "searchPlaceholder"];
|
|
6687
7387
|
// Defines the ComboBoxComponent functional component with ComboBoxProps
|
|
6688
7388
|
var ComboBoxComponent = _ref => {
|
|
6689
7389
|
var {
|
|
@@ -6699,7 +7399,7 @@ var ComboBoxComponent = _ref => {
|
|
|
6699
7399
|
searchPlaceholder
|
|
6700
7400
|
// Destructures the rest of the props not explicitly defined
|
|
6701
7401
|
} = _ref,
|
|
6702
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7402
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
6703
7403
|
// Initializes ComboBox state using custom hook with items and placeholders
|
|
6704
7404
|
var state = useComboBoxState(items, placeholder, searchPlaceholder);
|
|
6705
7405
|
return (
|
|
@@ -6715,7 +7415,7 @@ var ComboBoxComponent = _ref => {
|
|
|
6715
7415
|
// Exports the ComboBoxComponent as ComboBox
|
|
6716
7416
|
var ComboBox = ComboBoxComponent;
|
|
6717
7417
|
|
|
6718
|
-
var _excluded$
|
|
7418
|
+
var _excluded$u = ["children", "autoFocus", "initFocus", "onChange"];
|
|
6719
7419
|
var FocusContext = /*#__PURE__*/createContext({
|
|
6720
7420
|
active: false,
|
|
6721
7421
|
focusNextInput: () => {},
|
|
@@ -6731,7 +7431,7 @@ var FormikForm = _ref => {
|
|
|
6731
7431
|
initFocus,
|
|
6732
7432
|
onChange = () => {}
|
|
6733
7433
|
} = _ref,
|
|
6734
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7434
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
|
|
6735
7435
|
var formik = useFormikContext();
|
|
6736
7436
|
useEffect(() => {
|
|
6737
7437
|
onChange(formik.values);
|
|
@@ -6779,7 +7479,7 @@ var FormikForm = _ref => {
|
|
|
6779
7479
|
}, /*#__PURE__*/React.createElement(Form, Object.assign({}, props), children));
|
|
6780
7480
|
};
|
|
6781
7481
|
|
|
6782
|
-
var _excluded$
|
|
7482
|
+
var _excluded$v = ["name", "type"];
|
|
6783
7483
|
var getInputTypeProps = type => {
|
|
6784
7484
|
switch (type) {
|
|
6785
7485
|
case 'email':
|
|
@@ -6818,7 +7518,7 @@ var useFormikInput = _ref => {
|
|
|
6818
7518
|
name,
|
|
6819
7519
|
type
|
|
6820
7520
|
} = _ref,
|
|
6821
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7521
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
|
|
6822
7522
|
var focus = useFormFocus();
|
|
6823
7523
|
var {
|
|
6824
7524
|
touched,
|
|
@@ -6862,13 +7562,13 @@ var useFormikInput = _ref => {
|
|
|
6862
7562
|
} : {});
|
|
6863
7563
|
};
|
|
6864
7564
|
|
|
6865
|
-
var _excluded$
|
|
7565
|
+
var _excluded$w = ["value"];
|
|
6866
7566
|
var CheckboxComponent$1 = props => {
|
|
6867
7567
|
var _useFormikInput = useFormikInput(props),
|
|
6868
7568
|
{
|
|
6869
7569
|
value
|
|
6870
7570
|
} = _useFormikInput,
|
|
6871
|
-
formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$
|
|
7571
|
+
formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$w);
|
|
6872
7572
|
formProps.isChecked = value;
|
|
6873
7573
|
var checkboxStates = useCheckboxState(props);
|
|
6874
7574
|
return /*#__PURE__*/React.createElement(CheckboxView, Object.assign({}, checkboxStates, formProps));
|
|
@@ -6926,11 +7626,11 @@ var TextAreaComponent$1 = props => {
|
|
|
6926
7626
|
*/
|
|
6927
7627
|
var FormikTextArea = TextAreaComponent$1;
|
|
6928
7628
|
|
|
6929
|
-
var _excluded$
|
|
7629
|
+
var _excluded$x = ["value"];
|
|
6930
7630
|
var TextFieldComponent$1 = props => {
|
|
6931
7631
|
var formProps = useFormikInput(props);
|
|
6932
7632
|
var _useTextFieldState = useTextFieldState(props),
|
|
6933
|
-
textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$
|
|
7633
|
+
textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$x);
|
|
6934
7634
|
return /*#__PURE__*/React.createElement(TextFieldView, Object.assign({}, textFieldStates, formProps));
|
|
6935
7635
|
};
|
|
6936
7636
|
/**
|
|
@@ -6938,8 +7638,8 @@ var TextFieldComponent$1 = props => {
|
|
|
6938
7638
|
*/
|
|
6939
7639
|
var FormikTextField = TextFieldComponent$1;
|
|
6940
7640
|
|
|
6941
|
-
var _excluded$
|
|
6942
|
-
_excluded2$
|
|
7641
|
+
var _excluded$y = ["visibleIcon", "hiddenIcon"],
|
|
7642
|
+
_excluded2$7 = ["isVisible", "setIsVisible"];
|
|
6943
7643
|
var PasswordComponent$1 = _ref => {
|
|
6944
7644
|
var {
|
|
6945
7645
|
visibleIcon = /*#__PURE__*/React.createElement(OpenEyeIcon, {
|
|
@@ -6949,14 +7649,14 @@ var PasswordComponent$1 = _ref => {
|
|
|
6949
7649
|
widthHeight: 14
|
|
6950
7650
|
})
|
|
6951
7651
|
} = _ref,
|
|
6952
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7652
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
|
|
6953
7653
|
var formProps = useFormikInput(props);
|
|
6954
7654
|
var _usePasswordState = usePasswordState(formProps),
|
|
6955
7655
|
{
|
|
6956
7656
|
isVisible,
|
|
6957
7657
|
setIsVisible
|
|
6958
7658
|
} = _usePasswordState,
|
|
6959
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
7659
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$7);
|
|
6960
7660
|
return /*#__PURE__*/React.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
6961
7661
|
type: isVisible ? 'text' : 'password',
|
|
6962
7662
|
isClearable: false,
|
|
@@ -6974,14 +7674,14 @@ var PasswordComponent$1 = _ref => {
|
|
|
6974
7674
|
*/
|
|
6975
7675
|
var FormikPassword = PasswordComponent$1;
|
|
6976
7676
|
|
|
6977
|
-
var _excluded$
|
|
7677
|
+
var _excluded$z = ["items", "placeholder", "searchPlaceholder"];
|
|
6978
7678
|
var ComboBoxComponent$1 = _ref => {
|
|
6979
7679
|
var {
|
|
6980
7680
|
items,
|
|
6981
7681
|
placeholder,
|
|
6982
7682
|
searchPlaceholder
|
|
6983
7683
|
} = _ref,
|
|
6984
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7684
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
|
|
6985
7685
|
var formProps = useFormikInput(props);
|
|
6986
7686
|
var ComboBoxStates = useComboBoxState(items, placeholder, searchPlaceholder);
|
|
6987
7687
|
// Ensure the onChange function from formProps is being called when an item is selected
|
|
@@ -7257,7 +7957,7 @@ var OrientationStyles = {
|
|
|
7257
7957
|
}
|
|
7258
7958
|
};
|
|
7259
7959
|
|
|
7260
|
-
var _excluded$
|
|
7960
|
+
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"];
|
|
7261
7961
|
var SliderView = _ref => {
|
|
7262
7962
|
var _views$tooltip, _views$tooltip2;
|
|
7263
7963
|
var {
|
|
@@ -7300,7 +8000,7 @@ var SliderView = _ref => {
|
|
|
7300
8000
|
tooltip: {}
|
|
7301
8001
|
}
|
|
7302
8002
|
} = _ref,
|
|
7303
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8003
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
|
|
7304
8004
|
var {
|
|
7305
8005
|
getColor,
|
|
7306
8006
|
themeMode
|
|
@@ -7521,15 +8221,37 @@ var SliderView = _ref => {
|
|
|
7521
8221
|
};
|
|
7522
8222
|
|
|
7523
8223
|
var SliderComponent = props => {
|
|
7524
|
-
// Get
|
|
7525
|
-
var
|
|
7526
|
-
//
|
|
7527
|
-
|
|
7528
|
-
|
|
7529
|
-
|
|
8224
|
+
// Get Formik props (value, onChange, etc.)
|
|
8225
|
+
var formProps = useFormikInput(props);
|
|
8226
|
+
// Get slider state and handlers
|
|
8227
|
+
var sliderState = useSliderState(Object.assign({}, props, {
|
|
8228
|
+
value: formProps.value !== undefined ? Number(formProps.value) : undefined,
|
|
8229
|
+
onChange: value => {
|
|
8230
|
+
// Call Formik's onChange
|
|
8231
|
+
formProps.onChange(value);
|
|
8232
|
+
// Call the original onChange if provided
|
|
8233
|
+
props.onChange == null || props.onChange(value);
|
|
8234
|
+
}
|
|
8235
|
+
}));
|
|
8236
|
+
// Render the slider with both Formik props and slider state
|
|
8237
|
+
return /*#__PURE__*/React.createElement(SliderView, Object.assign({}, props, sliderState, formProps));
|
|
8238
|
+
};
|
|
8239
|
+
/**
|
|
8240
|
+
* Slider component integrated with Formik for form state management.
|
|
8241
|
+
* Allows users to select a value from a range by moving a handle.
|
|
8242
|
+
*/
|
|
8243
|
+
var FormikSlider = SliderComponent;
|
|
8244
|
+
|
|
8245
|
+
var SliderComponent$1 = props => {
|
|
8246
|
+
// Get state and handlers from the custom hook
|
|
8247
|
+
var sliderState = useSliderState(props);
|
|
8248
|
+
// Render the view component, passing down props and state
|
|
8249
|
+
return /*#__PURE__*/React.createElement(SliderView, Object.assign({}, props, sliderState));
|
|
8250
|
+
};
|
|
8251
|
+
/**
|
|
7530
8252
|
* Slider allows users to select a value from a range by moving a handle.
|
|
7531
8253
|
*/
|
|
7532
|
-
var Slider = SliderComponent;
|
|
8254
|
+
var Slider = SliderComponent$1;
|
|
7533
8255
|
|
|
7534
8256
|
// Create your store with the initial state and actions.
|
|
7535
8257
|
var useMessageStore = /*#__PURE__*/create(set => ({
|
|
@@ -8063,7 +8785,7 @@ var UploadView = _ref => {
|
|
|
8063
8785
|
}, views == null ? void 0 : views.view)));
|
|
8064
8786
|
};
|
|
8065
8787
|
|
|
8066
|
-
var _excluded$
|
|
8788
|
+
var _excluded$B = ["accept", "icon", "text", "maxSize", "onFileSelect", "validateFile", "isLoading", "progress"];
|
|
8067
8789
|
var Uploader = _ref => {
|
|
8068
8790
|
var {
|
|
8069
8791
|
accept = '*/*',
|
|
@@ -8075,7 +8797,7 @@ var Uploader = _ref => {
|
|
|
8075
8797
|
isLoading = false,
|
|
8076
8798
|
progress = 0
|
|
8077
8799
|
} = _ref,
|
|
8078
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8800
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
|
|
8079
8801
|
var {
|
|
8080
8802
|
previewUrl,
|
|
8081
8803
|
thumbnailUrl,
|
|
@@ -8212,11 +8934,11 @@ var HeaderIconSizes = {
|
|
|
8212
8934
|
xl: 28
|
|
8213
8935
|
};
|
|
8214
8936
|
|
|
8215
|
-
var _excluded$
|
|
8216
|
-
_excluded2$
|
|
8217
|
-
_excluded3$
|
|
8218
|
-
_excluded4$
|
|
8219
|
-
_excluded5$
|
|
8937
|
+
var _excluded$C = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
|
|
8938
|
+
_excluded2$8 = ["children", "shadow", "isFullScreen", "shape", "views"],
|
|
8939
|
+
_excluded3$5 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
|
|
8940
|
+
_excluded4$4 = ["children", "views"],
|
|
8941
|
+
_excluded5$2 = ["children", "views"];
|
|
8220
8942
|
var ModalOverlay = _ref => {
|
|
8221
8943
|
var {
|
|
8222
8944
|
children,
|
|
@@ -8227,7 +8949,7 @@ var ModalOverlay = _ref => {
|
|
|
8227
8949
|
position = 'center',
|
|
8228
8950
|
views
|
|
8229
8951
|
} = _ref,
|
|
8230
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8952
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$C);
|
|
8231
8953
|
var handleClick = () => {
|
|
8232
8954
|
if (!isClosePrevented) onClose();
|
|
8233
8955
|
};
|
|
@@ -8261,7 +8983,7 @@ var ModalContainer = _ref2 => {
|
|
|
8261
8983
|
shape = 'rounded',
|
|
8262
8984
|
views
|
|
8263
8985
|
} = _ref2,
|
|
8264
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
8986
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$8);
|
|
8265
8987
|
var defaultShadow = typeof document !== undefined ? {
|
|
8266
8988
|
boxShadow: '0px 2px 8px rgba(0, 0, 0, 0.3)'
|
|
8267
8989
|
} : {
|
|
@@ -8293,7 +9015,7 @@ var ModalHeader = _ref3 => {
|
|
|
8293
9015
|
buttonPosition = 'right',
|
|
8294
9016
|
views
|
|
8295
9017
|
} = _ref3,
|
|
8296
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
9018
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$5);
|
|
8297
9019
|
var onClose = props.onClose ? props.onClose : hideModal;
|
|
8298
9020
|
var buttonIcon = /*#__PURE__*/React.createElement(Button, {
|
|
8299
9021
|
onClick: onClose,
|
|
@@ -8318,7 +9040,7 @@ var ModalBody = _ref4 => {
|
|
|
8318
9040
|
children,
|
|
8319
9041
|
views
|
|
8320
9042
|
} = _ref4,
|
|
8321
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$
|
|
9043
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$4);
|
|
8322
9044
|
var defaultBorder = {
|
|
8323
9045
|
borderBottomWidth: 2,
|
|
8324
9046
|
borderTopWidth: 2,
|
|
@@ -8335,7 +9057,7 @@ var ModalFooter = _ref5 => {
|
|
|
8335
9057
|
children,
|
|
8336
9058
|
views
|
|
8337
9059
|
} = _ref5,
|
|
8338
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded5$
|
|
9060
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded5$2);
|
|
8339
9061
|
return /*#__PURE__*/React.createElement(Horizontal$1, Object.assign({
|
|
8340
9062
|
marginTop: "auto",
|
|
8341
9063
|
alignItems: "center",
|
|
@@ -8397,6 +9119,344 @@ Modal.Body = ModalBody;
|
|
|
8397
9119
|
Modal.Footer = ModalFooter;
|
|
8398
9120
|
Modal.Layout = ModalLayout;
|
|
8399
9121
|
|
|
9122
|
+
var useNavigationMenuState = function useNavigationMenuState(defaultActiveItemId, defaultExpandedItemIds) {
|
|
9123
|
+
if (defaultActiveItemId === void 0) {
|
|
9124
|
+
defaultActiveItemId = null;
|
|
9125
|
+
}
|
|
9126
|
+
if (defaultExpandedItemIds === void 0) {
|
|
9127
|
+
defaultExpandedItemIds = [];
|
|
9128
|
+
}
|
|
9129
|
+
var [activeItemId, setActiveItemId] = useState(defaultActiveItemId);
|
|
9130
|
+
var [expandedItemIds, setExpandedItemIds] = useState(defaultExpandedItemIds);
|
|
9131
|
+
var toggleExpandedItem = itemId => {
|
|
9132
|
+
setExpandedItemIds(prevExpandedItemIds => {
|
|
9133
|
+
// Check if the item is already expanded
|
|
9134
|
+
var isExpanded = prevExpandedItemIds.includes(itemId);
|
|
9135
|
+
if (isExpanded) {
|
|
9136
|
+
// If expanded, remove it from the list
|
|
9137
|
+
return prevExpandedItemIds.filter(id => id !== itemId);
|
|
9138
|
+
} else {
|
|
9139
|
+
// If not expanded, add it to the list
|
|
9140
|
+
return [...prevExpandedItemIds, itemId];
|
|
9141
|
+
}
|
|
9142
|
+
});
|
|
9143
|
+
};
|
|
9144
|
+
var isItemExpanded = itemId => {
|
|
9145
|
+
return expandedItemIds.includes(itemId);
|
|
9146
|
+
};
|
|
9147
|
+
return {
|
|
9148
|
+
activeItemId,
|
|
9149
|
+
setActiveItemId,
|
|
9150
|
+
expandedItemIds,
|
|
9151
|
+
toggleExpandedItem,
|
|
9152
|
+
isItemExpanded
|
|
9153
|
+
};
|
|
9154
|
+
};
|
|
9155
|
+
|
|
9156
|
+
var NavigationMenuSizes = {
|
|
9157
|
+
sm: {
|
|
9158
|
+
padding: '8px 12px',
|
|
9159
|
+
fontSize: '14px'
|
|
9160
|
+
},
|
|
9161
|
+
md: {
|
|
9162
|
+
padding: '10px 16px',
|
|
9163
|
+
fontSize: '16px'
|
|
9164
|
+
},
|
|
9165
|
+
lg: {
|
|
9166
|
+
padding: '12px 20px',
|
|
9167
|
+
fontSize: '18px'
|
|
9168
|
+
}
|
|
9169
|
+
};
|
|
9170
|
+
var NavigationMenuVariants = {
|
|
9171
|
+
default: {
|
|
9172
|
+
backgroundColor: 'transparent',
|
|
9173
|
+
color: 'color.gray.800'
|
|
9174
|
+
},
|
|
9175
|
+
filled: {
|
|
9176
|
+
backgroundColor: 'color.gray.100',
|
|
9177
|
+
color: 'color.gray.800'
|
|
9178
|
+
},
|
|
9179
|
+
outline: {
|
|
9180
|
+
backgroundColor: 'transparent',
|
|
9181
|
+
borderWidth: '1px',
|
|
9182
|
+
borderStyle: 'solid',
|
|
9183
|
+
borderColor: 'color.gray.200',
|
|
9184
|
+
color: 'color.gray.800'
|
|
9185
|
+
}
|
|
9186
|
+
};
|
|
9187
|
+
var NavigationMenuOrientations = {
|
|
9188
|
+
horizontal: {
|
|
9189
|
+
flexDirection: 'row'
|
|
9190
|
+
},
|
|
9191
|
+
vertical: {
|
|
9192
|
+
flexDirection: 'column'
|
|
9193
|
+
}
|
|
9194
|
+
};
|
|
9195
|
+
var NavigationMenuItemStates = {
|
|
9196
|
+
active: {
|
|
9197
|
+
backgroundColor: 'color.gray.200',
|
|
9198
|
+
fontWeight: 'bold'
|
|
9199
|
+
},
|
|
9200
|
+
hover: {
|
|
9201
|
+
backgroundColor: 'color.gray.100'
|
|
9202
|
+
},
|
|
9203
|
+
disabled: {
|
|
9204
|
+
opacity: 0.5,
|
|
9205
|
+
cursor: 'not-allowed'
|
|
9206
|
+
}
|
|
9207
|
+
};
|
|
9208
|
+
|
|
9209
|
+
// Create context for the NavigationMenu
|
|
9210
|
+
var NavigationMenuContext = /*#__PURE__*/createContext({
|
|
9211
|
+
activeItemId: null,
|
|
9212
|
+
setActiveItemId: () => {},
|
|
9213
|
+
expandedItemIds: [],
|
|
9214
|
+
toggleExpandedItem: () => {},
|
|
9215
|
+
isItemExpanded: () => false,
|
|
9216
|
+
orientation: 'vertical',
|
|
9217
|
+
size: 'md',
|
|
9218
|
+
variant: 'default'
|
|
9219
|
+
});
|
|
9220
|
+
// Provider component for the NavigationMenu context
|
|
9221
|
+
var NavigationMenuProvider = _ref => {
|
|
9222
|
+
var {
|
|
9223
|
+
children,
|
|
9224
|
+
value
|
|
9225
|
+
} = _ref;
|
|
9226
|
+
return /*#__PURE__*/React.createElement(NavigationMenuContext.Provider, {
|
|
9227
|
+
value: value
|
|
9228
|
+
}, children);
|
|
9229
|
+
};
|
|
9230
|
+
// Hook to use the NavigationMenu context
|
|
9231
|
+
var useNavigationMenuContext = () => {
|
|
9232
|
+
var context = useContext(NavigationMenuContext);
|
|
9233
|
+
if (!context) {
|
|
9234
|
+
throw new Error('useNavigationMenuContext must be used within a NavigationMenuProvider');
|
|
9235
|
+
}
|
|
9236
|
+
return context;
|
|
9237
|
+
};
|
|
9238
|
+
// NavigationMenu List component
|
|
9239
|
+
var NavigationMenuList = _ref2 => {
|
|
9240
|
+
var {
|
|
9241
|
+
children,
|
|
9242
|
+
views
|
|
9243
|
+
} = _ref2;
|
|
9244
|
+
var {
|
|
9245
|
+
orientation
|
|
9246
|
+
} = useNavigationMenuContext();
|
|
9247
|
+
var Container = orientation === 'horizontal' ? Horizontal$1 : Vertical$1;
|
|
9248
|
+
return /*#__PURE__*/React.createElement(Container, Object.assign({
|
|
9249
|
+
width: "100%",
|
|
9250
|
+
gap: 2
|
|
9251
|
+
}, NavigationMenuOrientations[orientation], views == null ? void 0 : views.container), children);
|
|
9252
|
+
};
|
|
9253
|
+
// NavigationMenu Item component
|
|
9254
|
+
var NavigationMenuItem = _ref3 => {
|
|
9255
|
+
var {
|
|
9256
|
+
item,
|
|
9257
|
+
views
|
|
9258
|
+
} = _ref3;
|
|
9259
|
+
var {
|
|
9260
|
+
activeItemId,
|
|
9261
|
+
setActiveItemId,
|
|
9262
|
+
// isItemExpanded,
|
|
9263
|
+
orientation,
|
|
9264
|
+
size,
|
|
9265
|
+
variant,
|
|
9266
|
+
onItemActivate
|
|
9267
|
+
} = useNavigationMenuContext();
|
|
9268
|
+
var isActive = activeItemId === item.id;
|
|
9269
|
+
var hasSubItems = item.items && item.items.length > 0;
|
|
9270
|
+
// const isExpanded = hasSubItems && isItemExpanded(item.id);
|
|
9271
|
+
var handleClick = () => {
|
|
9272
|
+
if (item.disabled) return;
|
|
9273
|
+
setActiveItemId(item.id);
|
|
9274
|
+
if (onItemActivate) {
|
|
9275
|
+
onItemActivate(item.id);
|
|
9276
|
+
}
|
|
9277
|
+
};
|
|
9278
|
+
var Container = orientation === 'horizontal' ? Horizontal$1 : Vertical$1;
|
|
9279
|
+
// Render item with sub-items
|
|
9280
|
+
if (hasSubItems) {
|
|
9281
|
+
var _item$items;
|
|
9282
|
+
return /*#__PURE__*/React.createElement(Container, Object.assign({
|
|
9283
|
+
width: "100%",
|
|
9284
|
+
flexDirection: orientation === 'horizontal' ? 'column' : 'column',
|
|
9285
|
+
position: "relative"
|
|
9286
|
+
}, views == null ? void 0 : views.item), /*#__PURE__*/React.createElement(NavigationMenuTrigger, {
|
|
9287
|
+
itemId: item.id,
|
|
9288
|
+
disabled: item.disabled,
|
|
9289
|
+
views: views
|
|
9290
|
+
}, item.icon && (/*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
9291
|
+
marginRight: 8
|
|
9292
|
+
}, views == null ? void 0 : views.icon), item.icon)), item.label), /*#__PURE__*/React.createElement(NavigationMenuContent, {
|
|
9293
|
+
itemId: item.id
|
|
9294
|
+
}, /*#__PURE__*/React.createElement(NavigationMenuList, null, (_item$items = item.items) == null ? void 0 : _item$items.map(subItem => (/*#__PURE__*/React.createElement(NavigationMenuItem, {
|
|
9295
|
+
key: subItem.id,
|
|
9296
|
+
item: subItem
|
|
9297
|
+
}))))));
|
|
9298
|
+
}
|
|
9299
|
+
// Render regular item (no sub-items)
|
|
9300
|
+
return /*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
9301
|
+
as: item.href ? 'a' : 'div',
|
|
9302
|
+
to: item.href,
|
|
9303
|
+
onClick: handleClick,
|
|
9304
|
+
cursor: item.disabled ? 'not-allowed' : 'pointer',
|
|
9305
|
+
opacity: item.disabled ? 0.5 : 1,
|
|
9306
|
+
width: "100%",
|
|
9307
|
+
display: "flex",
|
|
9308
|
+
alignItems: "center",
|
|
9309
|
+
borderRadius: 4,
|
|
9310
|
+
transition: "background-color 0.2s ease"
|
|
9311
|
+
}, NavigationMenuSizes[size], NavigationMenuVariants[variant], isActive ? NavigationMenuItemStates.active : {}, {
|
|
9312
|
+
_hover: !item.disabled ? NavigationMenuItemStates.hover : {}
|
|
9313
|
+
}, views == null ? void 0 : views.item), item.icon && (/*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
9314
|
+
marginRight: 8
|
|
9315
|
+
}, views == null ? void 0 : views.icon), item.icon)), item.label);
|
|
9316
|
+
};
|
|
9317
|
+
// NavigationMenu Trigger component
|
|
9318
|
+
var NavigationMenuTrigger = _ref4 => {
|
|
9319
|
+
var {
|
|
9320
|
+
children,
|
|
9321
|
+
itemId,
|
|
9322
|
+
disabled,
|
|
9323
|
+
views
|
|
9324
|
+
} = _ref4;
|
|
9325
|
+
var {
|
|
9326
|
+
activeItemId,
|
|
9327
|
+
toggleExpandedItem,
|
|
9328
|
+
isItemExpanded,
|
|
9329
|
+
size,
|
|
9330
|
+
variant
|
|
9331
|
+
} = useNavigationMenuContext();
|
|
9332
|
+
var isActive = activeItemId === itemId;
|
|
9333
|
+
var isExpanded = isItemExpanded(itemId);
|
|
9334
|
+
var handleClick = e => {
|
|
9335
|
+
e.preventDefault();
|
|
9336
|
+
if (disabled) return;
|
|
9337
|
+
toggleExpandedItem(itemId);
|
|
9338
|
+
};
|
|
9339
|
+
return /*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
9340
|
+
onClick: handleClick,
|
|
9341
|
+
cursor: disabled ? 'not-allowed' : 'pointer',
|
|
9342
|
+
opacity: disabled ? 0.5 : 1,
|
|
9343
|
+
width: "100%",
|
|
9344
|
+
display: "flex",
|
|
9345
|
+
alignItems: "center",
|
|
9346
|
+
justifyContent: "space-between",
|
|
9347
|
+
borderRadius: 4,
|
|
9348
|
+
transition: "background-color 0.2s ease"
|
|
9349
|
+
}, NavigationMenuSizes[size], NavigationMenuVariants[variant], isActive ? NavigationMenuItemStates.active : {}, {
|
|
9350
|
+
_hover: !disabled ? NavigationMenuItemStates.hover : {}
|
|
9351
|
+
}, views == null ? void 0 : views.trigger), /*#__PURE__*/React.createElement(View$1, {
|
|
9352
|
+
display: "flex",
|
|
9353
|
+
alignItems: "center"
|
|
9354
|
+
}, children), /*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
9355
|
+
transition: "transform 0.2s ease",
|
|
9356
|
+
transform: isExpanded ? 'rotate(180deg)' : 'rotate(0deg)'
|
|
9357
|
+
}, views == null ? void 0 : views.indicator), /*#__PURE__*/React.createElement("svg", {
|
|
9358
|
+
width: "16",
|
|
9359
|
+
height: "16",
|
|
9360
|
+
viewBox: "0 0 24 24",
|
|
9361
|
+
fill: "none",
|
|
9362
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
9363
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
9364
|
+
d: "M16.59 8.59L12 13.17L7.41 8.59L6 10L12 16L18 10L16.59 8.59Z",
|
|
9365
|
+
fill: "currentColor"
|
|
9366
|
+
}))));
|
|
9367
|
+
};
|
|
9368
|
+
// NavigationMenu Content component
|
|
9369
|
+
var NavigationMenuContent = _ref5 => {
|
|
9370
|
+
var {
|
|
9371
|
+
children,
|
|
9372
|
+
itemId,
|
|
9373
|
+
views
|
|
9374
|
+
} = _ref5;
|
|
9375
|
+
var {
|
|
9376
|
+
isItemExpanded,
|
|
9377
|
+
orientation
|
|
9378
|
+
} = useNavigationMenuContext();
|
|
9379
|
+
var isExpanded = isItemExpanded(itemId);
|
|
9380
|
+
if (!isExpanded) {
|
|
9381
|
+
return null;
|
|
9382
|
+
}
|
|
9383
|
+
return /*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
9384
|
+
paddingLeft: orientation === 'vertical' ? 16 : 0,
|
|
9385
|
+
paddingTop: orientation === 'horizontal' ? 8 : 0,
|
|
9386
|
+
overflow: "hidden",
|
|
9387
|
+
width: "100%"
|
|
9388
|
+
}, views == null ? void 0 : views.container), children);
|
|
9389
|
+
};
|
|
9390
|
+
// Main NavigationMenu View component
|
|
9391
|
+
var NavigationMenuView = _ref6 => {
|
|
9392
|
+
var {
|
|
9393
|
+
items,
|
|
9394
|
+
orientation,
|
|
9395
|
+
//size, variant,
|
|
9396
|
+
views
|
|
9397
|
+
} = _ref6;
|
|
9398
|
+
var Container = orientation === 'horizontal' ? Horizontal$1 : Vertical$1;
|
|
9399
|
+
return /*#__PURE__*/React.createElement(Container, Object.assign({
|
|
9400
|
+
width: "100%"
|
|
9401
|
+
}, NavigationMenuOrientations[orientation], views == null ? void 0 : views.container), /*#__PURE__*/React.createElement(NavigationMenuList, {
|
|
9402
|
+
views: views
|
|
9403
|
+
}, items.map(item => (/*#__PURE__*/React.createElement(NavigationMenuItem, {
|
|
9404
|
+
key: item.id,
|
|
9405
|
+
item: item,
|
|
9406
|
+
views: views
|
|
9407
|
+
})))));
|
|
9408
|
+
};
|
|
9409
|
+
|
|
9410
|
+
var _excluded$D = ["items", "orientation", "size", "variant", "defaultActiveItemId", "defaultExpandedItemIds", "onItemActivate", "views"];
|
|
9411
|
+
/**
|
|
9412
|
+
* NavigationMenu component for creating navigation menus with optional nested items.
|
|
9413
|
+
*/
|
|
9414
|
+
var NavigationMenuComponent = _ref => {
|
|
9415
|
+
var {
|
|
9416
|
+
items,
|
|
9417
|
+
orientation = 'vertical',
|
|
9418
|
+
size = 'md',
|
|
9419
|
+
variant = 'default',
|
|
9420
|
+
defaultActiveItemId = null,
|
|
9421
|
+
defaultExpandedItemIds = [],
|
|
9422
|
+
onItemActivate,
|
|
9423
|
+
views
|
|
9424
|
+
} = _ref,
|
|
9425
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$D);
|
|
9426
|
+
var {
|
|
9427
|
+
activeItemId,
|
|
9428
|
+
setActiveItemId,
|
|
9429
|
+
expandedItemIds,
|
|
9430
|
+
toggleExpandedItem,
|
|
9431
|
+
isItemExpanded
|
|
9432
|
+
} = useNavigationMenuState(defaultActiveItemId, defaultExpandedItemIds);
|
|
9433
|
+
return /*#__PURE__*/React.createElement(NavigationMenuProvider, {
|
|
9434
|
+
value: {
|
|
9435
|
+
activeItemId,
|
|
9436
|
+
setActiveItemId,
|
|
9437
|
+
expandedItemIds,
|
|
9438
|
+
toggleExpandedItem,
|
|
9439
|
+
isItemExpanded,
|
|
9440
|
+
orientation,
|
|
9441
|
+
size,
|
|
9442
|
+
variant,
|
|
9443
|
+
onItemActivate
|
|
9444
|
+
}
|
|
9445
|
+
}, /*#__PURE__*/React.createElement(NavigationMenuView, Object.assign({
|
|
9446
|
+
items: items,
|
|
9447
|
+
orientation: orientation,
|
|
9448
|
+
size: size,
|
|
9449
|
+
variant: variant,
|
|
9450
|
+
views: views
|
|
9451
|
+
}, props)));
|
|
9452
|
+
};
|
|
9453
|
+
var NavigationMenu = NavigationMenuComponent;
|
|
9454
|
+
// Assign the sub-components to the main component
|
|
9455
|
+
NavigationMenu.List = NavigationMenuList;
|
|
9456
|
+
NavigationMenu.Item = NavigationMenuItem;
|
|
9457
|
+
NavigationMenu.Trigger = NavigationMenuTrigger;
|
|
9458
|
+
NavigationMenu.Content = NavigationMenuContent;
|
|
9459
|
+
|
|
8400
9460
|
var defaultStyles = {};
|
|
8401
9461
|
// Create a context that includes both styles and the onClick function
|
|
8402
9462
|
var TableContext = /*#__PURE__*/createContext({
|
|
@@ -8706,7 +9766,7 @@ var useToggleState = defaultToggled => {
|
|
|
8706
9766
|
};
|
|
8707
9767
|
};
|
|
8708
9768
|
|
|
8709
|
-
var _excluded$
|
|
9769
|
+
var _excluded$E = ["children", "shape", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle", "views"];
|
|
8710
9770
|
var ToggleView = _ref => {
|
|
8711
9771
|
var {
|
|
8712
9772
|
children,
|
|
@@ -8720,7 +9780,7 @@ var ToggleView = _ref => {
|
|
|
8720
9780
|
onToggle,
|
|
8721
9781
|
views
|
|
8722
9782
|
} = _ref,
|
|
8723
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
9783
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$E);
|
|
8724
9784
|
var toggleColor = !isDisabled ? 'color.trueGray.400' : 'theme.disabled';
|
|
8725
9785
|
var isActive = !!(isToggle || isHovered);
|
|
8726
9786
|
var toggleVariants = {
|
|
@@ -8763,7 +9823,7 @@ var ToggleView = _ref => {
|
|
|
8763
9823
|
}, toggleVariants[variant], props, views == null ? void 0 : views.container), children);
|
|
8764
9824
|
};
|
|
8765
9825
|
|
|
8766
|
-
var _excluded$
|
|
9826
|
+
var _excluded$F = ["children", "shape", "variant", "isDisabled", "isToggled", "onToggle"];
|
|
8767
9827
|
// Destructuring properties from ToggleProps to be used within the ToggleComponent.
|
|
8768
9828
|
var ToggleComponent = _ref => {
|
|
8769
9829
|
var {
|
|
@@ -8775,7 +9835,7 @@ var ToggleComponent = _ref => {
|
|
|
8775
9835
|
isToggled = false,
|
|
8776
9836
|
onToggle
|
|
8777
9837
|
} = _ref,
|
|
8778
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
9838
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$F);
|
|
8779
9839
|
// Initializing toggle state and set state functions using the custom hook useToggleState.
|
|
8780
9840
|
var {
|
|
8781
9841
|
isHovered,
|
|
@@ -9015,6 +10075,400 @@ var DragAndDropComponent = props => {
|
|
|
9015
10075
|
};
|
|
9016
10076
|
var DragAndDrop = DragAndDropComponent;
|
|
9017
10077
|
|
|
10078
|
+
var useDropdownMenuState = function useDropdownMenuState(defaultOpen) {
|
|
10079
|
+
if (defaultOpen === void 0) {
|
|
10080
|
+
defaultOpen = false;
|
|
10081
|
+
}
|
|
10082
|
+
var [isOpen, setIsOpen] = useState(defaultOpen);
|
|
10083
|
+
var [activeSubmenuId, setActiveSubmenuId] = useState(null);
|
|
10084
|
+
// Close the dropdown menu when clicking outside
|
|
10085
|
+
useEffect(() => {
|
|
10086
|
+
var handleClickOutside = event => {
|
|
10087
|
+
var path = event.composedPath();
|
|
10088
|
+
var isOutside = !path.some(element => (element == null ? void 0 : element.id) === 'dropdown-menu' || (element == null ? void 0 : element.id) === 'dropdown-trigger');
|
|
10089
|
+
if (isOutside && isOpen) {
|
|
10090
|
+
setIsOpen(false);
|
|
10091
|
+
setActiveSubmenuId(null);
|
|
10092
|
+
}
|
|
10093
|
+
};
|
|
10094
|
+
// Close the dropdown menu when the window is resized
|
|
10095
|
+
var handleResize = () => {
|
|
10096
|
+
if (isOpen) {
|
|
10097
|
+
setIsOpen(false);
|
|
10098
|
+
setActiveSubmenuId(null);
|
|
10099
|
+
}
|
|
10100
|
+
};
|
|
10101
|
+
// Close the dropdown menu when the escape key is pressed
|
|
10102
|
+
var handleKeyDown = event => {
|
|
10103
|
+
if (event.key === 'Escape' && isOpen) {
|
|
10104
|
+
setIsOpen(false);
|
|
10105
|
+
setActiveSubmenuId(null);
|
|
10106
|
+
}
|
|
10107
|
+
};
|
|
10108
|
+
document.addEventListener('mousedown', handleClickOutside);
|
|
10109
|
+
window.addEventListener('resize', handleResize);
|
|
10110
|
+
document.addEventListener('keydown', handleKeyDown);
|
|
10111
|
+
return () => {
|
|
10112
|
+
document.removeEventListener('mousedown', handleClickOutside);
|
|
10113
|
+
window.removeEventListener('resize', handleResize);
|
|
10114
|
+
document.removeEventListener('keydown', handleKeyDown);
|
|
10115
|
+
};
|
|
10116
|
+
}, [isOpen]);
|
|
10117
|
+
return {
|
|
10118
|
+
isOpen,
|
|
10119
|
+
setIsOpen,
|
|
10120
|
+
activeSubmenuId,
|
|
10121
|
+
setActiveSubmenuId
|
|
10122
|
+
};
|
|
10123
|
+
};
|
|
10124
|
+
|
|
10125
|
+
var DropdownMenuSizes = {
|
|
10126
|
+
sm: {
|
|
10127
|
+
padding: '6px 8px',
|
|
10128
|
+
fontSize: '14px',
|
|
10129
|
+
minWidth: '160px'
|
|
10130
|
+
},
|
|
10131
|
+
md: {
|
|
10132
|
+
padding: '8px 12px',
|
|
10133
|
+
fontSize: '16px',
|
|
10134
|
+
minWidth: '180px'
|
|
10135
|
+
},
|
|
10136
|
+
lg: {
|
|
10137
|
+
padding: '10px 16px',
|
|
10138
|
+
fontSize: '18px',
|
|
10139
|
+
minWidth: '200px'
|
|
10140
|
+
}
|
|
10141
|
+
};
|
|
10142
|
+
var DropdownMenuVariants = {
|
|
10143
|
+
default: {
|
|
10144
|
+
backgroundColor: 'white',
|
|
10145
|
+
color: 'color.gray.800'
|
|
10146
|
+
},
|
|
10147
|
+
filled: {
|
|
10148
|
+
backgroundColor: 'color.gray.100',
|
|
10149
|
+
color: 'color.gray.800'
|
|
10150
|
+
},
|
|
10151
|
+
outline: {
|
|
10152
|
+
backgroundColor: 'white',
|
|
10153
|
+
borderWidth: '1px',
|
|
10154
|
+
borderStyle: 'solid',
|
|
10155
|
+
borderColor: 'color.gray.200',
|
|
10156
|
+
color: 'color.gray.800'
|
|
10157
|
+
}
|
|
10158
|
+
};
|
|
10159
|
+
var DropdownMenuItemStates = {
|
|
10160
|
+
hover: {
|
|
10161
|
+
backgroundColor: 'color.gray.100'
|
|
10162
|
+
},
|
|
10163
|
+
active: {
|
|
10164
|
+
backgroundColor: 'color.gray.200'
|
|
10165
|
+
},
|
|
10166
|
+
disabled: {
|
|
10167
|
+
opacity: 0.5,
|
|
10168
|
+
cursor: 'not-allowed'
|
|
10169
|
+
}
|
|
10170
|
+
};
|
|
10171
|
+
// Helper function to calculate position based on side and alignment
|
|
10172
|
+
var getDropdownPosition = function getDropdownPosition(side, align) {
|
|
10173
|
+
if (side === void 0) {
|
|
10174
|
+
side = 'bottom';
|
|
10175
|
+
}
|
|
10176
|
+
if (align === void 0) {
|
|
10177
|
+
align = 'start';
|
|
10178
|
+
}
|
|
10179
|
+
var positions = {
|
|
10180
|
+
top: Object.assign({
|
|
10181
|
+
bottom: '100%',
|
|
10182
|
+
marginBottom: '8px'
|
|
10183
|
+
}, align === 'start' && {
|
|
10184
|
+
left: 0
|
|
10185
|
+
}, align === 'center' && {
|
|
10186
|
+
left: '50%',
|
|
10187
|
+
transform: 'translateX(-50%)'
|
|
10188
|
+
}, align === 'end' && {
|
|
10189
|
+
right: 0
|
|
10190
|
+
}),
|
|
10191
|
+
right: Object.assign({
|
|
10192
|
+
left: '100%',
|
|
10193
|
+
marginLeft: '8px'
|
|
10194
|
+
}, align === 'start' && {
|
|
10195
|
+
top: 0
|
|
10196
|
+
}, align === 'center' && {
|
|
10197
|
+
top: '50%',
|
|
10198
|
+
transform: 'translateY(-50%)'
|
|
10199
|
+
}, align === 'end' && {
|
|
10200
|
+
bottom: 0
|
|
10201
|
+
}),
|
|
10202
|
+
bottom: Object.assign({
|
|
10203
|
+
top: '100%',
|
|
10204
|
+
marginTop: '8px'
|
|
10205
|
+
}, align === 'start' && {
|
|
10206
|
+
left: 0
|
|
10207
|
+
}, align === 'center' && {
|
|
10208
|
+
left: '50%',
|
|
10209
|
+
transform: 'translateX(-50%)'
|
|
10210
|
+
}, align === 'end' && {
|
|
10211
|
+
right: 0
|
|
10212
|
+
}),
|
|
10213
|
+
left: Object.assign({
|
|
10214
|
+
right: '100%',
|
|
10215
|
+
marginRight: '8px'
|
|
10216
|
+
}, align === 'start' && {
|
|
10217
|
+
top: 0
|
|
10218
|
+
}, align === 'center' && {
|
|
10219
|
+
top: '50%',
|
|
10220
|
+
transform: 'translateY(-50%)'
|
|
10221
|
+
}, align === 'end' && {
|
|
10222
|
+
bottom: 0
|
|
10223
|
+
})
|
|
10224
|
+
};
|
|
10225
|
+
return positions[side];
|
|
10226
|
+
};
|
|
10227
|
+
|
|
10228
|
+
var _excluded$G = ["children", "views"],
|
|
10229
|
+
_excluded2$9 = ["items", "side", "align", "views"],
|
|
10230
|
+
_excluded3$6 = ["item", "views"],
|
|
10231
|
+
_excluded4$5 = ["views"],
|
|
10232
|
+
_excluded5$3 = ["trigger", "items", "side", "align", "views"];
|
|
10233
|
+
// Create context for the DropdownMenu
|
|
10234
|
+
var DropdownMenuContext = /*#__PURE__*/createContext({
|
|
10235
|
+
isOpen: false,
|
|
10236
|
+
setIsOpen: () => {},
|
|
10237
|
+
activeSubmenuId: null,
|
|
10238
|
+
setActiveSubmenuId: () => {},
|
|
10239
|
+
size: 'md',
|
|
10240
|
+
variant: 'default'
|
|
10241
|
+
});
|
|
10242
|
+
// Provider component for the DropdownMenu context
|
|
10243
|
+
var DropdownMenuProvider = _ref => {
|
|
10244
|
+
var {
|
|
10245
|
+
children,
|
|
10246
|
+
value
|
|
10247
|
+
} = _ref;
|
|
10248
|
+
return /*#__PURE__*/React.createElement(DropdownMenuContext.Provider, {
|
|
10249
|
+
value: value
|
|
10250
|
+
}, children);
|
|
10251
|
+
};
|
|
10252
|
+
// Hook to use the DropdownMenu context
|
|
10253
|
+
var useDropdownMenuContext = () => {
|
|
10254
|
+
var context = useContext(DropdownMenuContext);
|
|
10255
|
+
if (!context) {
|
|
10256
|
+
throw new Error('useDropdownMenuContext must be used within a DropdownMenuProvider');
|
|
10257
|
+
}
|
|
10258
|
+
return context;
|
|
10259
|
+
};
|
|
10260
|
+
// DropdownMenu Trigger component
|
|
10261
|
+
var DropdownMenuTrigger = _ref2 => {
|
|
10262
|
+
var {
|
|
10263
|
+
children,
|
|
10264
|
+
views
|
|
10265
|
+
} = _ref2,
|
|
10266
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$G);
|
|
10267
|
+
var {
|
|
10268
|
+
isOpen,
|
|
10269
|
+
setIsOpen
|
|
10270
|
+
} = useDropdownMenuContext();
|
|
10271
|
+
var handleClick = e => {
|
|
10272
|
+
e.stopPropagation();
|
|
10273
|
+
setIsOpen(!isOpen);
|
|
10274
|
+
};
|
|
10275
|
+
return /*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
10276
|
+
id: "dropdown-trigger",
|
|
10277
|
+
onClick: handleClick,
|
|
10278
|
+
cursor: "pointer",
|
|
10279
|
+
position: "relative",
|
|
10280
|
+
display: "inline-block"
|
|
10281
|
+
}, views == null ? void 0 : views.container, props), children);
|
|
10282
|
+
};
|
|
10283
|
+
// DropdownMenu Content component
|
|
10284
|
+
var DropdownMenuContent = _ref3 => {
|
|
10285
|
+
var {
|
|
10286
|
+
items,
|
|
10287
|
+
side = 'bottom',
|
|
10288
|
+
align = 'start',
|
|
10289
|
+
views
|
|
10290
|
+
} = _ref3,
|
|
10291
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$9);
|
|
10292
|
+
var {
|
|
10293
|
+
isOpen,
|
|
10294
|
+
//activeSubmenuId, setActiveSubmenuId, size,
|
|
10295
|
+
variant
|
|
10296
|
+
} = useDropdownMenuContext();
|
|
10297
|
+
if (!isOpen) {
|
|
10298
|
+
return null;
|
|
10299
|
+
}
|
|
10300
|
+
return /*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
10301
|
+
id: "dropdown-menu",
|
|
10302
|
+
position: "absolute",
|
|
10303
|
+
zIndex: 1000,
|
|
10304
|
+
borderRadius: 4,
|
|
10305
|
+
boxShadow: "0px 2px 8px rgba(0, 0, 0, 0.15)",
|
|
10306
|
+
overflow: "hidden"
|
|
10307
|
+
}, getDropdownPosition(side, align), DropdownMenuVariants[variant], views == null ? void 0 : views.menu, props), items.map((item, index) => {
|
|
10308
|
+
if (item.divider) {
|
|
10309
|
+
return /*#__PURE__*/React.createElement(DropdownMenuDivider, {
|
|
10310
|
+
key: "divider-" + index,
|
|
10311
|
+
views: views
|
|
10312
|
+
});
|
|
10313
|
+
}
|
|
10314
|
+
return /*#__PURE__*/React.createElement(DropdownMenuItem, {
|
|
10315
|
+
key: item.id,
|
|
10316
|
+
item: item,
|
|
10317
|
+
views: views
|
|
10318
|
+
});
|
|
10319
|
+
}));
|
|
10320
|
+
};
|
|
10321
|
+
// DropdownMenu Item component
|
|
10322
|
+
var DropdownMenuItem = _ref4 => {
|
|
10323
|
+
var {
|
|
10324
|
+
item,
|
|
10325
|
+
views
|
|
10326
|
+
} = _ref4,
|
|
10327
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$6);
|
|
10328
|
+
var {
|
|
10329
|
+
activeSubmenuId,
|
|
10330
|
+
setActiveSubmenuId,
|
|
10331
|
+
size
|
|
10332
|
+
} = useDropdownMenuContext();
|
|
10333
|
+
var [isHovered, setIsHovered] = useState(false);
|
|
10334
|
+
var hasSubmenu = item.items && item.items.length > 0;
|
|
10335
|
+
var isSubmenuActive = activeSubmenuId === item.id;
|
|
10336
|
+
var itemRef = useRef(null);
|
|
10337
|
+
// Handle mouse enter event
|
|
10338
|
+
var handleMouseEnter = () => {
|
|
10339
|
+
setIsHovered(true);
|
|
10340
|
+
if (hasSubmenu) {
|
|
10341
|
+
setActiveSubmenuId(item.id);
|
|
10342
|
+
}
|
|
10343
|
+
};
|
|
10344
|
+
// Handle mouse leave event
|
|
10345
|
+
var handleMouseLeave = () => {
|
|
10346
|
+
setIsHovered(false);
|
|
10347
|
+
};
|
|
10348
|
+
// Handle click event
|
|
10349
|
+
var handleClick = e => {
|
|
10350
|
+
e.stopPropagation();
|
|
10351
|
+
if (item.disabled) return;
|
|
10352
|
+
if (!hasSubmenu && item.onClick) {
|
|
10353
|
+
item.onClick();
|
|
10354
|
+
}
|
|
10355
|
+
};
|
|
10356
|
+
return /*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
10357
|
+
ref: itemRef,
|
|
10358
|
+
display: "flex",
|
|
10359
|
+
alignItems: "center",
|
|
10360
|
+
cursor: item.disabled ? 'not-allowed' : 'pointer',
|
|
10361
|
+
opacity: item.disabled ? 0.5 : 1,
|
|
10362
|
+
position: "relative"
|
|
10363
|
+
}, DropdownMenuSizes[size], {
|
|
10364
|
+
_hover: !item.disabled ? DropdownMenuItemStates.hover : {},
|
|
10365
|
+
backgroundColor: isHovered && !item.disabled ? 'color.gray.100' : 'transparent',
|
|
10366
|
+
onMouseEnter: handleMouseEnter,
|
|
10367
|
+
onMouseLeave: handleMouseLeave,
|
|
10368
|
+
onClick: handleClick
|
|
10369
|
+
}, views == null ? void 0 : views.item, props), item.icon && (/*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
10370
|
+
marginRight: 8
|
|
10371
|
+
}, views == null ? void 0 : views.icon), item.icon)), /*#__PURE__*/React.createElement(View$1, {
|
|
10372
|
+
flexGrow: 1
|
|
10373
|
+
}, item.label), hasSubmenu && (/*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
10374
|
+
marginLeft: 8
|
|
10375
|
+
}, views == null ? void 0 : views.submenuIndicator), /*#__PURE__*/React.createElement("svg", {
|
|
10376
|
+
width: "16",
|
|
10377
|
+
height: "16",
|
|
10378
|
+
viewBox: "0 0 24 24",
|
|
10379
|
+
fill: "none",
|
|
10380
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
10381
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
10382
|
+
d: "M8.59 16.59L13.17 12L8.59 7.41L10 6L16 12L10 18L8.59 16.59Z",
|
|
10383
|
+
fill: "currentColor"
|
|
10384
|
+
})))), isSubmenuActive && hasSubmenu && (/*#__PURE__*/React.createElement(DropdownMenuContent, {
|
|
10385
|
+
items: item.items || [],
|
|
10386
|
+
side: "right",
|
|
10387
|
+
align: "start",
|
|
10388
|
+
views: views
|
|
10389
|
+
})));
|
|
10390
|
+
};
|
|
10391
|
+
// DropdownMenu Divider component
|
|
10392
|
+
var DropdownMenuDivider = _ref5 => {
|
|
10393
|
+
var {
|
|
10394
|
+
views
|
|
10395
|
+
} = _ref5,
|
|
10396
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$5);
|
|
10397
|
+
return /*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
10398
|
+
height: "1px",
|
|
10399
|
+
backgroundColor: "color.gray.200",
|
|
10400
|
+
margin: "4px 0"
|
|
10401
|
+
}, views == null ? void 0 : views.divider, props));
|
|
10402
|
+
};
|
|
10403
|
+
// Main DropdownMenu View component
|
|
10404
|
+
var DropdownMenuView = _ref6 => {
|
|
10405
|
+
var {
|
|
10406
|
+
trigger,
|
|
10407
|
+
items,
|
|
10408
|
+
side = 'bottom',
|
|
10409
|
+
align = 'start',
|
|
10410
|
+
views
|
|
10411
|
+
} = _ref6,
|
|
10412
|
+
props = _objectWithoutPropertiesLoose(_ref6, _excluded5$3);
|
|
10413
|
+
return /*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
10414
|
+
position: "relative",
|
|
10415
|
+
display: "inline-block"
|
|
10416
|
+
}, views == null ? void 0 : views.container, props), /*#__PURE__*/React.createElement(DropdownMenuTrigger, {
|
|
10417
|
+
views: views
|
|
10418
|
+
}, trigger), /*#__PURE__*/React.createElement(DropdownMenuContent, {
|
|
10419
|
+
items: items,
|
|
10420
|
+
side: side,
|
|
10421
|
+
align: align,
|
|
10422
|
+
views: views
|
|
10423
|
+
}));
|
|
10424
|
+
};
|
|
10425
|
+
|
|
10426
|
+
var _excluded$H = ["trigger", "items", "size", "variant", "side", "align", "defaultOpen", "views"];
|
|
10427
|
+
/**
|
|
10428
|
+
* DropdownMenu component for displaying a menu when clicking on a trigger element.
|
|
10429
|
+
*/
|
|
10430
|
+
var DropdownMenuComponent = _ref => {
|
|
10431
|
+
var {
|
|
10432
|
+
trigger,
|
|
10433
|
+
items,
|
|
10434
|
+
size = 'md',
|
|
10435
|
+
variant = 'default',
|
|
10436
|
+
side = 'bottom',
|
|
10437
|
+
align = 'start',
|
|
10438
|
+
defaultOpen = false,
|
|
10439
|
+
views
|
|
10440
|
+
} = _ref,
|
|
10441
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$H);
|
|
10442
|
+
var {
|
|
10443
|
+
isOpen,
|
|
10444
|
+
setIsOpen,
|
|
10445
|
+
activeSubmenuId,
|
|
10446
|
+
setActiveSubmenuId
|
|
10447
|
+
} = useDropdownMenuState(defaultOpen);
|
|
10448
|
+
return /*#__PURE__*/React.createElement(DropdownMenuProvider, {
|
|
10449
|
+
value: {
|
|
10450
|
+
isOpen,
|
|
10451
|
+
setIsOpen,
|
|
10452
|
+
activeSubmenuId,
|
|
10453
|
+
setActiveSubmenuId,
|
|
10454
|
+
size,
|
|
10455
|
+
variant
|
|
10456
|
+
}
|
|
10457
|
+
}, /*#__PURE__*/React.createElement(DropdownMenuView, Object.assign({
|
|
10458
|
+
trigger: trigger,
|
|
10459
|
+
items: items,
|
|
10460
|
+
side: side,
|
|
10461
|
+
align: align,
|
|
10462
|
+
views: views
|
|
10463
|
+
}, props)));
|
|
10464
|
+
};
|
|
10465
|
+
var DropdownMenu = DropdownMenuComponent;
|
|
10466
|
+
// Assign the sub-components to the main component
|
|
10467
|
+
DropdownMenu.Trigger = DropdownMenuTrigger;
|
|
10468
|
+
DropdownMenu.Content = DropdownMenuContent;
|
|
10469
|
+
DropdownMenu.Item = DropdownMenuItem;
|
|
10470
|
+
DropdownMenu.Divider = DropdownMenuDivider;
|
|
10471
|
+
|
|
9018
10472
|
var useHoverCardState = () => {
|
|
9019
10473
|
var [isOpen, setIsOpen] = useState(false);
|
|
9020
10474
|
return {
|
|
@@ -9074,8 +10528,8 @@ var ContentPositions = {
|
|
|
9074
10528
|
})
|
|
9075
10529
|
};
|
|
9076
10530
|
|
|
9077
|
-
var _excluded$
|
|
9078
|
-
_excluded2$
|
|
10531
|
+
var _excluded$I = ["children", "views"],
|
|
10532
|
+
_excluded2$a = ["children", "views", "side", "align"];
|
|
9079
10533
|
// Create context for the HoverCard
|
|
9080
10534
|
var HoverCardContext = /*#__PURE__*/createContext({
|
|
9081
10535
|
isOpen: false,
|
|
@@ -9102,7 +10556,7 @@ var HoverCardTrigger = _ref2 => {
|
|
|
9102
10556
|
children,
|
|
9103
10557
|
views
|
|
9104
10558
|
} = _ref2,
|
|
9105
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
10559
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$I);
|
|
9106
10560
|
var {
|
|
9107
10561
|
setIsOpen
|
|
9108
10562
|
} = useHoverCardContext();
|
|
@@ -9120,7 +10574,7 @@ var HoverCardContent = _ref3 => {
|
|
|
9120
10574
|
side = 'bottom',
|
|
9121
10575
|
align = 'center'
|
|
9122
10576
|
} = _ref3,
|
|
9123
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$
|
|
10577
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$a);
|
|
9124
10578
|
var {
|
|
9125
10579
|
isOpen
|
|
9126
10580
|
} = useHoverCardContext();
|
|
@@ -9138,7 +10592,7 @@ var HoverCardContent = _ref3 => {
|
|
|
9138
10592
|
}, ContentPositions[side](align), views == null ? void 0 : views.container, props), children);
|
|
9139
10593
|
};
|
|
9140
10594
|
|
|
9141
|
-
var _excluded$
|
|
10595
|
+
var _excluded$J = ["children", "views"];
|
|
9142
10596
|
/**
|
|
9143
10597
|
* HoverCard component displays floating content when hovering over a trigger element.
|
|
9144
10598
|
*/
|
|
@@ -9147,7 +10601,7 @@ var HoverCardComponent = _ref => {
|
|
|
9147
10601
|
children,
|
|
9148
10602
|
views
|
|
9149
10603
|
} = _ref,
|
|
9150
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
10604
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$J);
|
|
9151
10605
|
var {
|
|
9152
10606
|
isOpen,
|
|
9153
10607
|
setIsOpen
|
|
@@ -9166,5 +10620,5 @@ var HoverCard = HoverCardComponent;
|
|
|
9166
10620
|
HoverCard.Trigger = HoverCardTrigger;
|
|
9167
10621
|
HoverCard.Content = HoverCardContent;
|
|
9168
10622
|
|
|
9169
|
-
export { Alert, ArrowIcon, AspectRatio, Avatar, Badge, BatteryIcon, BluetoothIcon, BoldArrowIcon, BookmarkIcon, Bottom, Button, CalendarIcon, CameraIcon, Center, CenterBase, Checkbox, ChevronIcon, ClockIcon, CloseEyeIcon, CloseIcon, CloudIcon, ComboBox, CopyIcon, CountryPicker, CropIcon, DatePicker, DownloadIcon, DragAndDrop, DragAndDropComponent, DragHandleIcon, DustBinIcon, EditIcon, ErrorIcon, ExternalLinkIcon, FacebookIcon, FileIcon, FileImage, FileSVG, FilterIcon, FormikCheckbox, FormikComboBox, FormikCountryPicker, FormikDatePicker, FormikForm, FormikPassword, FormikSelect, FormikSwitch, FormikTextArea, FormikTextField, HeartIcon, HomeIcon, Horizontal, HorizontalBase, HoverCard, Icon, ImageIcon, InfoIcon, Inline, InstagramIcon, Left, LikeIcon, Link, LinkedinIcon, Loader, LocationIcon, LockIcon, MagicWandIcon, MenuIcon, MessageLayout, MessageView, MicrophoneIcon, MinusIcon, Modal, MoonIcon, NotificationIcon, OpenEyeIcon, PanelIcon, Password, PauseIcon, PlayIcon, PlusIcon, PrintIcon, ProfileIcon, RefreshIcon, Right, RotateIcon, SaveIcon, SearchIcon, Select, SettingsIcon, ShapeIcon, ShareIcon, Slider, SliderIcon, SliderVerticalIcon, SpinnerIcon, StarIcon, SuccessIcon, Switch, Table, Tabs, Text, TextArea, TextField, TextIcon, ThreadsIcon, TickIcon, Toggle, ToggleGroup, Top, TwitchIcon, TwitterIcon, UnLikeIcon, UnlockIcon, UploadIcon, Uploader, Vertical, VerticalBase, VideoIcon, View, WarningIcon, WifiIcon, XIcon, YoutubeIcon, ZoomInIcon, ZoomOutIcon, hideMessage, hideModal, showMessage, showModal, useMessageStore, useModalStore };
|
|
10623
|
+
export { Accordion, Alert, ArrowIcon, AspectRatio, Avatar, Badge, BatteryIcon, BluetoothIcon, BoldArrowIcon, BookmarkIcon, Bottom, Button, CalendarIcon, CameraIcon, Center, CenterBase, Checkbox, ChevronIcon, ClockIcon, CloseEyeIcon, CloseIcon, CloudIcon, ComboBox, ContextMenu, CopyIcon, CountryPicker, CropIcon, DatePicker, DeleteIcon, DownloadIcon, DragAndDrop, DragAndDropComponent, DragHandleIcon, DropdownMenu, DustBinIcon, EditIcon, ErrorIcon, ExternalLinkIcon, FacebookIcon, FileIcon, FileImage, FileSVG, FilterIcon, FormikCheckbox, FormikComboBox, FormikCountryPicker, FormikDatePicker, FormikForm, FormikPassword, FormikSelect, FormikSlider, FormikSwitch, FormikTextArea, FormikTextField, HeartIcon, HelpIcon, HomeIcon, Horizontal, HorizontalBase, HoverCard, Icon, ImageIcon, InfoIcon, Inline, InstagramIcon, Left, LikeIcon, Link, LinkedinIcon, Loader, LocationIcon, LockIcon, MagicWandIcon, MenuIcon, MessageLayout, MessageView, MicrophoneIcon, MinusIcon, Modal, MoonIcon, NavigationMenu, NotificationIcon, OpenEyeIcon, PanelIcon, Password, PauseIcon, PlayIcon, PlusIcon, PrintIcon, ProfileIcon, RefreshIcon, Right, RotateIcon, SaveIcon, SearchIcon, Select, SettingsIcon, ShapeIcon, ShareIcon, Slider, SliderIcon, SliderVerticalIcon, SpinnerIcon, StarIcon, SuccessIcon, Switch, Table, Tabs, Text, TextArea, TextField, TextIcon, ThreadsIcon, TickIcon, Toggle, ToggleGroup, Top, TwitchIcon, TwitterIcon, UnLikeIcon, UnlockIcon, UploadIcon, Uploader, UserIcon, Vertical, VerticalBase, VideoIcon, View, WarningIcon, WifiIcon, XIcon, YoutubeIcon, ZoomInIcon, ZoomOutIcon, hideMessage, hideModal, showMessage, showModal, useMessageStore, useModalStore };
|
|
9170
10624
|
//# sourceMappingURL=web.esm.js.map
|