@app-studio/web 0.8.72 → 0.8.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Accordion/Accordion/Accordion.props.d.ts +91 -0
- package/dist/components/Accordion/Accordion/Accordion.state.d.ts +5 -0
- package/dist/components/Accordion/Accordion/Accordion.style.d.ts +4 -0
- package/dist/components/Accordion/Accordion/Accordion.type.d.ts +15 -0
- package/dist/components/Accordion/Accordion/Accordion.view.d.ts +22 -0
- package/dist/components/Accordion/Accordion.d.ts +2 -0
- package/dist/components/Accordion/examples/default.d.ts +2 -0
- package/dist/components/Accordion/examples/disabled.d.ts +2 -0
- package/dist/components/Accordion/examples/index.d.ts +4 -0
- package/dist/components/Accordion/examples/multiple.d.ts +2 -0
- package/dist/components/Accordion/examples/variants.d.ts +2 -0
- package/dist/components/ContextMenu/ContextMenu/ContextMenu.props.d.ts +120 -0
- package/dist/components/ContextMenu/ContextMenu/ContextMenu.state.d.ts +15 -0
- package/dist/components/ContextMenu/ContextMenu/ContextMenu.style.d.ts +20 -0
- package/dist/components/ContextMenu/ContextMenu/ContextMenu.type.d.ts +41 -0
- package/dist/components/ContextMenu/ContextMenu/ContextMenu.view.d.ts +20 -0
- package/dist/components/ContextMenu/ContextMenu.d.ts +2 -0
- package/dist/components/ContextMenu/examples/custom.d.ts +2 -0
- package/dist/components/ContextMenu/examples/default.d.ts +2 -0
- package/dist/components/ContextMenu/examples/index.d.ts +4 -0
- package/dist/components/ContextMenu/examples/sizes.d.ts +2 -0
- package/dist/components/ContextMenu/examples/variants.d.ts +2 -0
- package/dist/components/DropdownMenu/DropdownMenu/DropdownMenu.props.d.ts +117 -0
- package/dist/components/DropdownMenu/DropdownMenu/DropdownMenu.state.d.ts +7 -0
- package/dist/components/DropdownMenu/DropdownMenu/DropdownMenu.style.d.ts +17 -0
- package/dist/components/DropdownMenu/DropdownMenu/DropdownMenu.type.d.ts +34 -0
- package/dist/components/DropdownMenu/DropdownMenu/DropdownMenu.view.d.ts +19 -0
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +2 -0
- package/dist/components/DropdownMenu/examples/custom.d.ts +2 -0
- package/dist/components/DropdownMenu/examples/default.d.ts +2 -0
- package/dist/components/DropdownMenu/examples/index.d.ts +5 -0
- package/dist/components/DropdownMenu/examples/positions.d.ts +2 -0
- package/dist/components/DropdownMenu/examples/sizes.d.ts +2 -0
- package/dist/components/DropdownMenu/examples/variants.d.ts +2 -0
- package/dist/components/Form/Password/Password/Password.state.d.ts +1 -1
- package/dist/components/Formik/Formik.Slider.d.ts +7 -0
- package/dist/components/Formik/examples/FormikSlider.d.ts +2 -0
- package/dist/components/Formik/examples/index.d.ts +1 -0
- package/dist/components/Formik/index.d.ts +1 -0
- package/dist/components/HoverCard/HoverCard/HoverCard.props.d.ts +65 -0
- package/dist/components/HoverCard/HoverCard/HoverCard.state.d.ts +5 -0
- package/dist/components/HoverCard/HoverCard/HoverCard.style.d.ts +3 -0
- package/dist/components/HoverCard/HoverCard/HoverCard.type.d.ts +6 -0
- package/dist/components/HoverCard/HoverCard/HoverCard.view.d.ts +10 -0
- package/dist/components/HoverCard/HoverCard.d.ts +2 -0
- package/dist/components/HoverCard/examples/default.d.ts +2 -0
- package/dist/components/HoverCard/examples/index.d.ts +1 -0
- package/dist/components/Icon/Icon.d.ts +3 -0
- package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.props.d.ts +126 -0
- package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.state.d.ts +8 -0
- package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.style.d.ts +18 -0
- package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.type.d.ts +34 -0
- package/dist/components/NavigationMenu/NavigationMenu/NavigationMenu.view.d.ts +19 -0
- package/dist/components/NavigationMenu/NavigationMenu.d.ts +2 -0
- package/dist/components/NavigationMenu/examples/default.d.ts +2 -0
- package/dist/components/NavigationMenu/examples/horizontal.d.ts +2 -0
- package/dist/components/NavigationMenu/examples/index.d.ts +4 -0
- package/dist/components/NavigationMenu/examples/sizes.d.ts +2 -0
- package/dist/components/NavigationMenu/examples/variants.d.ts +2 -0
- package/dist/components/Slider/Slider/Slider.props.d.ts +112 -0
- package/dist/components/Slider/Slider/Slider.state.d.ts +14 -0
- package/dist/components/Slider/Slider/Slider.style.d.ts +11 -0
- package/dist/components/Slider/Slider/Slider.type.d.ts +18 -0
- package/dist/components/Slider/Slider/Slider.view.d.ts +3 -0
- package/dist/components/Slider/Slider.d.ts +6 -0
- package/dist/components/Slider/examples/controlled.d.ts +2 -0
- package/dist/components/Slider/examples/custom.d.ts +2 -0
- package/dist/components/Slider/examples/default.d.ts +2 -0
- package/dist/components/Slider/examples/disabled.d.ts +2 -0
- package/dist/components/Slider/examples/range.d.ts +2 -0
- package/dist/components/Slider/examples/shapes.d.ts +2 -0
- package/dist/components/Slider/examples/sizes.d.ts +2 -0
- package/dist/components/Slider/examples/stepValues.d.ts +3 -0
- package/dist/components/Slider/examples/tooltip.d.ts +2 -0
- package/dist/components/Slider/examples/variants.d.ts +2 -0
- package/dist/components/Slider/examples/vertical.d.ts +2 -0
- package/dist/components/Slider/index.d.ts +1 -0
- package/dist/components/Table/Table.d.ts +8 -8
- package/dist/components/index.d.ts +11 -0
- package/dist/pages/accordion.page.d.ts +3 -0
- package/dist/pages/components.page.d.ts +5 -0
- package/dist/pages/contextMenu.page.d.ts +3 -0
- package/dist/pages/dropdownMenu.page.d.ts +3 -0
- package/dist/pages/hoverCard.page.d.ts +3 -0
- package/dist/pages/navigationMenu.page.d.ts +3 -0
- package/dist/pages/slider.page.d.ts +3 -0
- package/dist/web.cjs.development.js +2546 -384
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +2539 -387
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +2594 -433
- package/dist/web.umd.development.js.map +1 -1
- package/dist/web.umd.production.min.js +1 -1
- package/dist/web.umd.production.min.js.map +1 -1
- package/package.json +1 -1
- package/dist/utils/componentsPageImports.d.ts +0 -6
|
@@ -1,12 +1,230 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', '
|
|
4
|
-
(global = global || self, factory(global['@app-studio/web'] = {},
|
|
5
|
-
}(this, (function (exports,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('core-js/modules/es.array.includes.js'), require('core-js/modules/es.array.iterator.js'), require('core-js/modules/es.string.includes.js'), require('core-js/modules/web.dom-collections.iterator.js'), require('core-js/modules/es.object.assign.js'), require('app-studio'), require('core-js/modules/es.symbol.description.js'), require('core-js/modules/es.parse-float.js'), require('react-router-dom'), require('core-js/modules/es.string.starts-with.js'), require('date-fns/format'), require('formik'), require('core-js/modules/es.number.to-fixed.js'), require('core-js/modules/web.url.js'), require('core-js/modules/web.url.to-json.js'), require('core-js/modules/web.url-search-params.js'), require('zustand'), require('src/components/Layout')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'react', 'core-js/modules/es.array.includes.js', 'core-js/modules/es.array.iterator.js', 'core-js/modules/es.string.includes.js', 'core-js/modules/web.dom-collections.iterator.js', 'core-js/modules/es.object.assign.js', 'app-studio', 'core-js/modules/es.symbol.description.js', 'core-js/modules/es.parse-float.js', 'react-router-dom', 'core-js/modules/es.string.starts-with.js', 'date-fns/format', 'formik', 'core-js/modules/es.number.to-fixed.js', 'core-js/modules/web.url.js', 'core-js/modules/web.url.to-json.js', 'core-js/modules/web.url-search-params.js', 'zustand', 'src/components/Layout'], factory) :
|
|
4
|
+
(global = global || self, factory(global['@app-studio/web'] = {}, global.React, null, null, null, null, null, global.appStudio, null, null, global.reactRouterDom, null, global.format, global.formik, null, null, null, null, global.zustand, global.Layout));
|
|
5
|
+
}(this, (function (exports, React, es_array_includes_js, es_array_iterator_js, es_string_includes_js, web_domCollections_iterator_js, es_object_assign_js, appStudio, es_symbol_description_js, es_parseFloat_js, reactRouterDom, es_string_startsWith_js, format, formik, es_number_toFixed_js, web_url_js, web_url_toJson_js, web_urlSearchParams_js, zustand, Layout) { 'use strict';
|
|
6
6
|
|
|
7
7
|
var React__default = 'default' in React ? React['default'] : React;
|
|
8
8
|
format = format && Object.prototype.hasOwnProperty.call(format, 'default') ? format['default'] : format;
|
|
9
9
|
|
|
10
|
+
var useAccordionState = function useAccordionState(defaultExpandedItems, allowMultiple) {
|
|
11
|
+
if (defaultExpandedItems === void 0) {
|
|
12
|
+
defaultExpandedItems = [];
|
|
13
|
+
}
|
|
14
|
+
if (allowMultiple === void 0) {
|
|
15
|
+
allowMultiple = false;
|
|
16
|
+
}
|
|
17
|
+
var [expandedItems, setExpandedItems] = React.useState(defaultExpandedItems);
|
|
18
|
+
var toggleItem = itemId => {
|
|
19
|
+
setExpandedItems(prevExpandedItems => {
|
|
20
|
+
// Check if the item is already expanded
|
|
21
|
+
var isExpanded = prevExpandedItems.includes(itemId);
|
|
22
|
+
if (isExpanded) {
|
|
23
|
+
// If expanded, remove it from the list
|
|
24
|
+
return prevExpandedItems.filter(id => id !== itemId);
|
|
25
|
+
} else {
|
|
26
|
+
// If not expanded, add it to the list
|
|
27
|
+
// If allowMultiple is false, replace the current expanded item
|
|
28
|
+
return allowMultiple ? [...prevExpandedItems, itemId] : [itemId];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
var isItemExpanded = itemId => {
|
|
33
|
+
return expandedItems.includes(itemId);
|
|
34
|
+
};
|
|
35
|
+
return {
|
|
36
|
+
expandedItems,
|
|
37
|
+
toggleItem,
|
|
38
|
+
isItemExpanded
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
var AccordionShapes = {
|
|
43
|
+
sharp: {
|
|
44
|
+
borderRadius: 0
|
|
45
|
+
},
|
|
46
|
+
rounded: {
|
|
47
|
+
borderRadius: 8
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
var AccordionVariants = {
|
|
51
|
+
default: {
|
|
52
|
+
backgroundColor: 'transparent',
|
|
53
|
+
borderWidth: 0
|
|
54
|
+
},
|
|
55
|
+
outline: {
|
|
56
|
+
borderWidth: 1,
|
|
57
|
+
borderStyle: 'solid',
|
|
58
|
+
borderColor: 'color.gray.200'
|
|
59
|
+
},
|
|
60
|
+
filled: {
|
|
61
|
+
backgroundColor: 'color.gray.50'
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
// Create context for the Accordion
|
|
66
|
+
var AccordionContext = /*#__PURE__*/React.createContext({
|
|
67
|
+
expandedItems: [],
|
|
68
|
+
toggleItem: () => {},
|
|
69
|
+
isItemExpanded: () => false
|
|
70
|
+
});
|
|
71
|
+
// Provider component for the Accordion context
|
|
72
|
+
var AccordionProvider = _ref => {
|
|
73
|
+
var {
|
|
74
|
+
children,
|
|
75
|
+
value
|
|
76
|
+
} = _ref;
|
|
77
|
+
return /*#__PURE__*/React__default.createElement(AccordionContext.Provider, {
|
|
78
|
+
value: value
|
|
79
|
+
}, children);
|
|
80
|
+
};
|
|
81
|
+
// Hook to use the Accordion context
|
|
82
|
+
var useAccordionContext = () => {
|
|
83
|
+
var context = React.useContext(AccordionContext);
|
|
84
|
+
if (!context) {
|
|
85
|
+
throw new Error('useAccordionContext must be used within an AccordionProvider');
|
|
86
|
+
}
|
|
87
|
+
return context;
|
|
88
|
+
};
|
|
89
|
+
// Accordion Item component
|
|
90
|
+
var AccordionItem = _ref2 => {
|
|
91
|
+
var {
|
|
92
|
+
id,
|
|
93
|
+
children,
|
|
94
|
+
isDisabled = false,
|
|
95
|
+
views
|
|
96
|
+
} = _ref2;
|
|
97
|
+
var {
|
|
98
|
+
isItemExpanded
|
|
99
|
+
} = useAccordionContext();
|
|
100
|
+
var isExpanded = isItemExpanded(id);
|
|
101
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
102
|
+
borderWidth: 1,
|
|
103
|
+
borderStyle: "solid",
|
|
104
|
+
borderColor: "color.gray.200",
|
|
105
|
+
marginBottom: 8,
|
|
106
|
+
overflow: "hidden",
|
|
107
|
+
opacity: isDisabled ? 0.5 : 1,
|
|
108
|
+
pointerEvents: isDisabled ? 'none' : 'auto'
|
|
109
|
+
}, views == null ? void 0 : views.item), React__default.Children.map(children, child => {
|
|
110
|
+
if (/*#__PURE__*/React__default.isValidElement(child)) {
|
|
111
|
+
// Pass the id and isExpanded props to AccordionHeader and AccordionContent
|
|
112
|
+
return /*#__PURE__*/React__default.cloneElement(child, Object.assign({}, child.props, {
|
|
113
|
+
id,
|
|
114
|
+
isExpanded
|
|
115
|
+
}));
|
|
116
|
+
}
|
|
117
|
+
return child;
|
|
118
|
+
}));
|
|
119
|
+
};
|
|
120
|
+
// Accordion Header component
|
|
121
|
+
var AccordionHeader = _ref3 => {
|
|
122
|
+
var {
|
|
123
|
+
children,
|
|
124
|
+
id,
|
|
125
|
+
isExpanded,
|
|
126
|
+
views
|
|
127
|
+
} = _ref3;
|
|
128
|
+
var {
|
|
129
|
+
toggleItem
|
|
130
|
+
} = useAccordionContext();
|
|
131
|
+
var handleClick = () => {
|
|
132
|
+
if (id) {
|
|
133
|
+
toggleItem(id);
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
return /*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
|
|
137
|
+
padding: 16,
|
|
138
|
+
cursor: "pointer",
|
|
139
|
+
alignItems: "center",
|
|
140
|
+
justifyContent: "space-between",
|
|
141
|
+
backgroundColor: "color.white",
|
|
142
|
+
onClick: handleClick
|
|
143
|
+
}, views == null ? void 0 : views.container), children, /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
144
|
+
width: 24,
|
|
145
|
+
height: 24,
|
|
146
|
+
display: "flex",
|
|
147
|
+
alignItems: "center",
|
|
148
|
+
justifyContent: "center",
|
|
149
|
+
transition: "transform 0.2s ease",
|
|
150
|
+
transform: isExpanded ? 'rotate(180deg)' : 'rotate(0deg)'
|
|
151
|
+
}, views == null ? void 0 : views.icon), /*#__PURE__*/React__default.createElement("svg", {
|
|
152
|
+
width: "16",
|
|
153
|
+
height: "16",
|
|
154
|
+
viewBox: "0 0 24 24",
|
|
155
|
+
fill: "none",
|
|
156
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
157
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
158
|
+
d: "M16.59 8.59L12 13.17L7.41 8.59L6 10L12 16L18 10L16.59 8.59Z",
|
|
159
|
+
fill: "currentColor"
|
|
160
|
+
}))));
|
|
161
|
+
};
|
|
162
|
+
// Accordion Content component
|
|
163
|
+
var AccordionContent = _ref4 => {
|
|
164
|
+
var {
|
|
165
|
+
children,
|
|
166
|
+
isExpanded,
|
|
167
|
+
views
|
|
168
|
+
} = _ref4;
|
|
169
|
+
if (!isExpanded) {
|
|
170
|
+
return null;
|
|
171
|
+
}
|
|
172
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
173
|
+
padding: 16,
|
|
174
|
+
backgroundColor: "color.white",
|
|
175
|
+
maxHeight: isExpanded ? '1000px' : '0',
|
|
176
|
+
transition: "max-height 0.3s ease-in-out",
|
|
177
|
+
overflow: "hidden"
|
|
178
|
+
}, views == null ? void 0 : views.container), children);
|
|
179
|
+
};
|
|
180
|
+
// Main Accordion View component
|
|
181
|
+
var AccordionView = _ref5 => {
|
|
182
|
+
var {
|
|
183
|
+
children,
|
|
184
|
+
shape = 'rounded',
|
|
185
|
+
variant = 'default',
|
|
186
|
+
views
|
|
187
|
+
} = _ref5;
|
|
188
|
+
return /*#__PURE__*/React__default.createElement(appStudio.Vertical, Object.assign({
|
|
189
|
+
width: "100%"
|
|
190
|
+
}, AccordionShapes[shape], AccordionVariants[variant], views == null ? void 0 : views.container), children);
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Accordion component for displaying collapsible content panels.
|
|
195
|
+
*/
|
|
196
|
+
var AccordionComponent = _ref => {
|
|
197
|
+
var {
|
|
198
|
+
children,
|
|
199
|
+
allowMultiple = false,
|
|
200
|
+
defaultExpandedItems = [],
|
|
201
|
+
shape = 'rounded',
|
|
202
|
+
variant = 'default',
|
|
203
|
+
views
|
|
204
|
+
} = _ref;
|
|
205
|
+
var {
|
|
206
|
+
expandedItems,
|
|
207
|
+
toggleItem,
|
|
208
|
+
isItemExpanded
|
|
209
|
+
} = useAccordionState(defaultExpandedItems, allowMultiple);
|
|
210
|
+
return /*#__PURE__*/React__default.createElement(AccordionProvider, {
|
|
211
|
+
value: {
|
|
212
|
+
expandedItems,
|
|
213
|
+
toggleItem,
|
|
214
|
+
isItemExpanded
|
|
215
|
+
}
|
|
216
|
+
}, /*#__PURE__*/React__default.createElement(AccordionView, {
|
|
217
|
+
shape: shape,
|
|
218
|
+
variant: variant,
|
|
219
|
+
views: views
|
|
220
|
+
}, children));
|
|
221
|
+
};
|
|
222
|
+
var Accordion = AccordionComponent;
|
|
223
|
+
// Assign the sub-components to the main component
|
|
224
|
+
Accordion.Item = AccordionItem;
|
|
225
|
+
Accordion.Header = AccordionHeader;
|
|
226
|
+
Accordion.Content = AccordionContent;
|
|
227
|
+
|
|
10
228
|
var Top = props => (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
11
229
|
marginBottom: "auto"
|
|
12
230
|
}, props)));
|
|
@@ -245,17 +463,17 @@
|
|
|
245
463
|
_excluded27 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
246
464
|
_excluded28 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
247
465
|
_excluded29 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
248
|
-
_excluded30 = ["widthHeight", "color", "
|
|
466
|
+
_excluded30 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
249
467
|
_excluded31 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
250
468
|
_excluded32 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
251
469
|
_excluded33 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
252
470
|
_excluded34 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
253
471
|
_excluded35 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
254
472
|
_excluded36 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
255
|
-
_excluded37 = ["widthHeight", "color", "
|
|
473
|
+
_excluded37 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
256
474
|
_excluded38 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
257
|
-
_excluded39 = ["widthHeight", "color", "
|
|
258
|
-
_excluded40 = ["widthHeight", "color", "
|
|
475
|
+
_excluded39 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
476
|
+
_excluded40 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
259
477
|
_excluded41 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
260
478
|
_excluded42 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
261
479
|
_excluded43 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
@@ -266,10 +484,10 @@
|
|
|
266
484
|
_excluded48 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
267
485
|
_excluded49 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
268
486
|
_excluded50 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
269
|
-
_excluded51 = ["widthHeight", "color", "
|
|
270
|
-
_excluded52 = ["widthHeight", "color", "
|
|
271
|
-
_excluded53 = ["widthHeight", "color", "
|
|
272
|
-
_excluded54 = ["widthHeight", "color", "
|
|
487
|
+
_excluded51 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
488
|
+
_excluded52 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
489
|
+
_excluded53 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
490
|
+
_excluded54 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
273
491
|
_excluded55 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
274
492
|
_excluded56 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
275
493
|
_excluded57 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
@@ -281,14 +499,16 @@
|
|
|
281
499
|
_excluded63 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
282
500
|
_excluded64 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
283
501
|
_excluded65 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
284
|
-
_excluded66 = ["widthHeight", "color", "
|
|
285
|
-
_excluded67 = ["widthHeight", "color", "
|
|
502
|
+
_excluded66 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
503
|
+
_excluded67 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
286
504
|
_excluded68 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
287
505
|
_excluded69 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
288
506
|
_excluded70 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
289
507
|
_excluded71 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
290
508
|
_excluded72 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
291
|
-
_excluded73 = ["widthHeight", "color", "strokeWidth", "filled"]
|
|
509
|
+
_excluded73 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
510
|
+
_excluded74 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
511
|
+
_excluded75 = ["widthHeight", "color", "strokeWidth", "filled"];
|
|
292
512
|
// Default wrapper component for consistent sizing and styling
|
|
293
513
|
var IconWrapper = _ref => {
|
|
294
514
|
var {
|
|
@@ -317,8 +537,7 @@
|
|
|
317
537
|
strokeLinejoin: 'round'
|
|
318
538
|
};
|
|
319
539
|
};
|
|
320
|
-
|
|
321
|
-
var ChevronIcon = _ref2 => {
|
|
540
|
+
var UserIcon = _ref2 => {
|
|
322
541
|
var {
|
|
323
542
|
widthHeight = 24,
|
|
324
543
|
color = 'currentColor',
|
|
@@ -334,10 +553,10 @@
|
|
|
334
553
|
"aria-hidden": "true",
|
|
335
554
|
focusable: "false"
|
|
336
555
|
}, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React__default.createElement("path", {
|
|
337
|
-
d: "M12.
|
|
556
|
+
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"
|
|
338
557
|
})));
|
|
339
558
|
};
|
|
340
|
-
var
|
|
559
|
+
var HelpIcon = _ref3 => {
|
|
341
560
|
var {
|
|
342
561
|
widthHeight = 24,
|
|
343
562
|
color = 'currentColor',
|
|
@@ -352,6 +571,45 @@
|
|
|
352
571
|
viewBox: "0 0 24 24",
|
|
353
572
|
"aria-hidden": "true",
|
|
354
573
|
focusable: "false"
|
|
574
|
+
}, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React__default.createElement("path", {
|
|
575
|
+
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"
|
|
576
|
+
})));
|
|
577
|
+
};
|
|
578
|
+
// Example Icon Component: ChevronIcon
|
|
579
|
+
var ChevronIcon = _ref4 => {
|
|
580
|
+
var {
|
|
581
|
+
widthHeight = 24,
|
|
582
|
+
color = 'currentColor',
|
|
583
|
+
filled = true,
|
|
584
|
+
strokeWidth = 1
|
|
585
|
+
} = _ref4,
|
|
586
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4);
|
|
587
|
+
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
588
|
+
widthHeight: widthHeight,
|
|
589
|
+
color: color
|
|
590
|
+
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
591
|
+
viewBox: "0 0 24 24",
|
|
592
|
+
"aria-hidden": "true",
|
|
593
|
+
focusable: "false"
|
|
594
|
+
}, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React__default.createElement("path", {
|
|
595
|
+
d: "M12.771 7.115a.829.829 0 0 0-1.2 0L3 15.686l1.2 1.2 7.971-7.971 7.972 7.971 1.2-1.2-8.572-8.571Z"
|
|
596
|
+
})));
|
|
597
|
+
};
|
|
598
|
+
var DragHandleIcon = _ref5 => {
|
|
599
|
+
var {
|
|
600
|
+
widthHeight = 24,
|
|
601
|
+
color = 'currentColor',
|
|
602
|
+
filled = true,
|
|
603
|
+
strokeWidth = 1
|
|
604
|
+
} = _ref5,
|
|
605
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded5);
|
|
606
|
+
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
607
|
+
widthHeight: widthHeight,
|
|
608
|
+
color: color
|
|
609
|
+
}, props), /*#__PURE__*/React__default.createElement("svg", Object.assign({
|
|
610
|
+
viewBox: "0 0 24 24",
|
|
611
|
+
"aria-hidden": "true",
|
|
612
|
+
focusable: "false"
|
|
355
613
|
}, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React__default.createElement("g", null, /*#__PURE__*/React__default.createElement("circle", {
|
|
356
614
|
cx: "9",
|
|
357
615
|
cy: "6",
|
|
@@ -379,14 +637,14 @@
|
|
|
379
637
|
}))));
|
|
380
638
|
};
|
|
381
639
|
// File Icon Component
|
|
382
|
-
var FileIcon =
|
|
640
|
+
var FileIcon = _ref6 => {
|
|
383
641
|
var {
|
|
384
642
|
widthHeight = 24,
|
|
385
643
|
color = 'currentColor',
|
|
386
644
|
filled = true,
|
|
387
645
|
strokeWidth = 1
|
|
388
|
-
} =
|
|
389
|
-
props = _objectWithoutPropertiesLoose(
|
|
646
|
+
} = _ref6,
|
|
647
|
+
props = _objectWithoutPropertiesLoose(_ref6, _excluded6);
|
|
390
648
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
391
649
|
widthHeight: widthHeight,
|
|
392
650
|
color: color
|
|
@@ -407,14 +665,14 @@
|
|
|
407
665
|
})));
|
|
408
666
|
};
|
|
409
667
|
// Video Icon Component
|
|
410
|
-
var VideoIcon =
|
|
668
|
+
var VideoIcon = _ref7 => {
|
|
411
669
|
var {
|
|
412
670
|
widthHeight = 24,
|
|
413
671
|
color = 'currentColor',
|
|
414
672
|
filled = true,
|
|
415
673
|
strokeWidth = 1
|
|
416
|
-
} =
|
|
417
|
-
props = _objectWithoutPropertiesLoose(
|
|
674
|
+
} = _ref7,
|
|
675
|
+
props = _objectWithoutPropertiesLoose(_ref7, _excluded7);
|
|
418
676
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
419
677
|
widthHeight: widthHeight,
|
|
420
678
|
color: color
|
|
@@ -440,14 +698,14 @@
|
|
|
440
698
|
})));
|
|
441
699
|
};
|
|
442
700
|
// Image Icon Component
|
|
443
|
-
var ImageIcon =
|
|
701
|
+
var ImageIcon = _ref8 => {
|
|
444
702
|
var {
|
|
445
703
|
widthHeight = 24,
|
|
446
704
|
color = 'currentColor',
|
|
447
705
|
filled = true,
|
|
448
706
|
strokeWidth = 1
|
|
449
|
-
} =
|
|
450
|
-
props = _objectWithoutPropertiesLoose(
|
|
707
|
+
} = _ref8,
|
|
708
|
+
props = _objectWithoutPropertiesLoose(_ref8, _excluded8);
|
|
451
709
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
452
710
|
widthHeight: widthHeight,
|
|
453
711
|
color: color
|
|
@@ -479,14 +737,14 @@
|
|
|
479
737
|
strokeWidth: strokeWidth
|
|
480
738
|
})));
|
|
481
739
|
};
|
|
482
|
-
var TwitterIcon =
|
|
740
|
+
var TwitterIcon = _ref9 => {
|
|
483
741
|
var {
|
|
484
742
|
widthHeight = 24,
|
|
485
743
|
color = 'currentColor',
|
|
486
744
|
filled = true,
|
|
487
745
|
strokeWidth = 1
|
|
488
|
-
} =
|
|
489
|
-
props = _objectWithoutPropertiesLoose(
|
|
746
|
+
} = _ref9,
|
|
747
|
+
props = _objectWithoutPropertiesLoose(_ref9, _excluded9);
|
|
490
748
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
491
749
|
widthHeight: widthHeight,
|
|
492
750
|
color: color
|
|
@@ -501,14 +759,14 @@
|
|
|
501
759
|
strokeWidth: filled ? 0 : strokeWidth
|
|
502
760
|
})));
|
|
503
761
|
};
|
|
504
|
-
var XIcon =
|
|
762
|
+
var XIcon = _ref10 => {
|
|
505
763
|
var {
|
|
506
764
|
widthHeight = 24,
|
|
507
765
|
color = 'currentColor',
|
|
508
766
|
filled = true,
|
|
509
767
|
strokeWidth = 1
|
|
510
|
-
} =
|
|
511
|
-
props = _objectWithoutPropertiesLoose(
|
|
768
|
+
} = _ref10,
|
|
769
|
+
props = _objectWithoutPropertiesLoose(_ref10, _excluded10);
|
|
512
770
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
513
771
|
widthHeight: widthHeight,
|
|
514
772
|
color: color
|
|
@@ -524,14 +782,14 @@
|
|
|
524
782
|
})));
|
|
525
783
|
};
|
|
526
784
|
// Example of a Twitch Icon
|
|
527
|
-
var TwitchIcon =
|
|
785
|
+
var TwitchIcon = _ref11 => {
|
|
528
786
|
var {
|
|
529
787
|
widthHeight = 24,
|
|
530
788
|
color = 'currentColor',
|
|
531
789
|
filled = true,
|
|
532
790
|
strokeWidth = 1
|
|
533
|
-
} =
|
|
534
|
-
props = _objectWithoutPropertiesLoose(
|
|
791
|
+
} = _ref11,
|
|
792
|
+
props = _objectWithoutPropertiesLoose(_ref11, _excluded11);
|
|
535
793
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
536
794
|
widthHeight: widthHeight,
|
|
537
795
|
color: color
|
|
@@ -552,14 +810,14 @@
|
|
|
552
810
|
})));
|
|
553
811
|
};
|
|
554
812
|
// Example of another Icon: CloseIcon
|
|
555
|
-
var CloseIcon =
|
|
813
|
+
var CloseIcon = _ref12 => {
|
|
556
814
|
var {
|
|
557
815
|
widthHeight = 24,
|
|
558
816
|
color = 'currentColor',
|
|
559
817
|
filled = false,
|
|
560
818
|
strokeWidth = 1
|
|
561
|
-
} =
|
|
562
|
-
props = _objectWithoutPropertiesLoose(
|
|
819
|
+
} = _ref12,
|
|
820
|
+
props = _objectWithoutPropertiesLoose(_ref12, _excluded12);
|
|
563
821
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
564
822
|
widthHeight: widthHeight,
|
|
565
823
|
color: color
|
|
@@ -581,14 +839,14 @@
|
|
|
581
839
|
y2: "18"
|
|
582
840
|
})));
|
|
583
841
|
};
|
|
584
|
-
var InstagramIcon =
|
|
842
|
+
var InstagramIcon = _ref13 => {
|
|
585
843
|
var {
|
|
586
844
|
widthHeight = 24,
|
|
587
845
|
color = 'currentColor',
|
|
588
846
|
filled = false,
|
|
589
847
|
strokeWidth = 1
|
|
590
|
-
} =
|
|
591
|
-
props = _objectWithoutPropertiesLoose(
|
|
848
|
+
} = _ref13,
|
|
849
|
+
props = _objectWithoutPropertiesLoose(_ref13, _excluded13);
|
|
592
850
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
593
851
|
widthHeight: widthHeight,
|
|
594
852
|
color: color
|
|
@@ -612,14 +870,14 @@
|
|
|
612
870
|
y2: "6.5"
|
|
613
871
|
})));
|
|
614
872
|
};
|
|
615
|
-
var YoutubeIcon =
|
|
873
|
+
var YoutubeIcon = _ref14 => {
|
|
616
874
|
var {
|
|
617
875
|
widthHeight = 24,
|
|
618
876
|
color = 'currentColor',
|
|
619
877
|
filled = true,
|
|
620
878
|
strokeWidth = 1
|
|
621
|
-
} =
|
|
622
|
-
props = _objectWithoutPropertiesLoose(
|
|
879
|
+
} = _ref14,
|
|
880
|
+
props = _objectWithoutPropertiesLoose(_ref14, _excluded14);
|
|
623
881
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
624
882
|
widthHeight: widthHeight,
|
|
625
883
|
color: color
|
|
@@ -640,14 +898,14 @@
|
|
|
640
898
|
strokeWidth: strokeWidth
|
|
641
899
|
})));
|
|
642
900
|
};
|
|
643
|
-
var FacebookIcon =
|
|
901
|
+
var FacebookIcon = _ref15 => {
|
|
644
902
|
var {
|
|
645
903
|
widthHeight = 24,
|
|
646
904
|
color = 'currentColor',
|
|
647
905
|
filled = true,
|
|
648
906
|
strokeWidth = 1
|
|
649
|
-
} =
|
|
650
|
-
props = _objectWithoutPropertiesLoose(
|
|
907
|
+
} = _ref15,
|
|
908
|
+
props = _objectWithoutPropertiesLoose(_ref15, _excluded15);
|
|
651
909
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
652
910
|
widthHeight: widthHeight,
|
|
653
911
|
color: color
|
|
@@ -662,14 +920,14 @@
|
|
|
662
920
|
strokeWidth: filled ? 0 : strokeWidth
|
|
663
921
|
})));
|
|
664
922
|
};
|
|
665
|
-
var LinkedinIcon =
|
|
923
|
+
var LinkedinIcon = _ref16 => {
|
|
666
924
|
var {
|
|
667
925
|
widthHeight = 24,
|
|
668
926
|
color = 'currentColor',
|
|
669
927
|
filled = true,
|
|
670
928
|
strokeWidth = 1
|
|
671
|
-
} =
|
|
672
|
-
props = _objectWithoutPropertiesLoose(
|
|
929
|
+
} = _ref16,
|
|
930
|
+
props = _objectWithoutPropertiesLoose(_ref16, _excluded16);
|
|
673
931
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
674
932
|
widthHeight: widthHeight,
|
|
675
933
|
color: color
|
|
@@ -688,14 +946,14 @@
|
|
|
688
946
|
r: "2"
|
|
689
947
|
})));
|
|
690
948
|
};
|
|
691
|
-
var ThreadsIcon =
|
|
949
|
+
var ThreadsIcon = _ref17 => {
|
|
692
950
|
var {
|
|
693
951
|
widthHeight = 24,
|
|
694
952
|
color = 'currentColor',
|
|
695
953
|
filled = false,
|
|
696
954
|
strokeWidth = 1
|
|
697
|
-
} =
|
|
698
|
-
props = _objectWithoutPropertiesLoose(
|
|
955
|
+
} = _ref17,
|
|
956
|
+
props = _objectWithoutPropertiesLoose(_ref17, _excluded17);
|
|
699
957
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
700
958
|
widthHeight: widthHeight,
|
|
701
959
|
color: color
|
|
@@ -706,19 +964,19 @@
|
|
|
706
964
|
d: "M0 0h24v24H0z",
|
|
707
965
|
fill: "none"
|
|
708
966
|
}), /*#__PURE__*/React__default.createElement("path", {
|
|
709
|
-
d: "M19 7.5c-1.333 -3 -3.667 -4.5 -7 -4.5c-5 0 -8 2.5 -8 9s3.5 9 8 9s7 -3 7\n -5s-1 -5 -7 -5c-2.5 0 -3 1.25 -3 2.5c0 1.5 1 2.5 2.5 2.5c2.5 0 3.5 -1.5
|
|
967
|
+
d: "M19 7.5c-1.333 -3 -3.667 -4.5 -7 -4.5c-5 0 -8 2.5 -8 9s3.5 9 8 9s7 -3 7\n -5s-1 -5 -7 -5c-2.5 0 -3 1.25 -3 2.5c0 1.5 1 2.5 2.5 2.5c2.5 0 3.5 -1.5\n 3.5 -5s-2 -4 -3 -4s-1.833 .333 -2.5 1"
|
|
710
968
|
})));
|
|
711
969
|
};
|
|
712
970
|
// Example Refactored Icon: MinusIcon without undefined 'padding' prop
|
|
713
|
-
var MinusIcon =
|
|
971
|
+
var MinusIcon = _ref18 => {
|
|
714
972
|
var {
|
|
715
973
|
widthHeight = 24,
|
|
716
974
|
color = 'currentColor',
|
|
717
975
|
filled = false,
|
|
718
976
|
// Assuming minus can be filled; adjust as needed
|
|
719
977
|
strokeWidth = 1
|
|
720
|
-
} =
|
|
721
|
-
props = _objectWithoutPropertiesLoose(
|
|
978
|
+
} = _ref18,
|
|
979
|
+
props = _objectWithoutPropertiesLoose(_ref18, _excluded18);
|
|
722
980
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
723
981
|
widthHeight: widthHeight,
|
|
724
982
|
color: color
|
|
@@ -735,14 +993,14 @@
|
|
|
735
993
|
})));
|
|
736
994
|
};
|
|
737
995
|
// Example Refactored Icon: InfoIcon with accessibility enhancements
|
|
738
|
-
var InfoIcon =
|
|
996
|
+
var InfoIcon = _ref19 => {
|
|
739
997
|
var {
|
|
740
998
|
widthHeight = 24,
|
|
741
999
|
color = 'currentColor',
|
|
742
1000
|
filled = false,
|
|
743
1001
|
strokeWidth = 1
|
|
744
|
-
} =
|
|
745
|
-
props = _objectWithoutPropertiesLoose(
|
|
1002
|
+
} = _ref19,
|
|
1003
|
+
props = _objectWithoutPropertiesLoose(_ref19, _excluded19);
|
|
746
1004
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
747
1005
|
widthHeight: widthHeight,
|
|
748
1006
|
color: color
|
|
@@ -756,14 +1014,14 @@
|
|
|
756
1014
|
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"
|
|
757
1015
|
})));
|
|
758
1016
|
};
|
|
759
|
-
var PlayIcon =
|
|
1017
|
+
var PlayIcon = _ref20 => {
|
|
760
1018
|
var {
|
|
761
1019
|
widthHeight = 24,
|
|
762
1020
|
color = 'currentColor',
|
|
763
1021
|
filled = true,
|
|
764
1022
|
strokeWidth = 1
|
|
765
|
-
} =
|
|
766
|
-
props = _objectWithoutPropertiesLoose(
|
|
1023
|
+
} = _ref20,
|
|
1024
|
+
props = _objectWithoutPropertiesLoose(_ref20, _excluded20);
|
|
767
1025
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
768
1026
|
widthHeight: widthHeight,
|
|
769
1027
|
color: color
|
|
@@ -775,14 +1033,14 @@
|
|
|
775
1033
|
d: "M8 5v14l11-7z"
|
|
776
1034
|
})));
|
|
777
1035
|
};
|
|
778
|
-
var PauseIcon =
|
|
1036
|
+
var PauseIcon = _ref21 => {
|
|
779
1037
|
var {
|
|
780
1038
|
widthHeight = 24,
|
|
781
1039
|
color = 'currentColor',
|
|
782
1040
|
filled = true,
|
|
783
1041
|
strokeWidth = 1
|
|
784
|
-
} =
|
|
785
|
-
props = _objectWithoutPropertiesLoose(
|
|
1042
|
+
} = _ref21,
|
|
1043
|
+
props = _objectWithoutPropertiesLoose(_ref21, _excluded21);
|
|
786
1044
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
787
1045
|
widthHeight: widthHeight,
|
|
788
1046
|
color: color
|
|
@@ -794,14 +1052,14 @@
|
|
|
794
1052
|
d: "M6 4h4v16H6V4zm8 0h4v16h-4V4z"
|
|
795
1053
|
})));
|
|
796
1054
|
};
|
|
797
|
-
var HeartIcon =
|
|
1055
|
+
var HeartIcon = _ref22 => {
|
|
798
1056
|
var {
|
|
799
1057
|
widthHeight = 24,
|
|
800
1058
|
color = 'currentColor',
|
|
801
1059
|
filled = true,
|
|
802
1060
|
strokeWidth = 1
|
|
803
|
-
} =
|
|
804
|
-
props = _objectWithoutPropertiesLoose(
|
|
1061
|
+
} = _ref22,
|
|
1062
|
+
props = _objectWithoutPropertiesLoose(_ref22, _excluded22);
|
|
805
1063
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
806
1064
|
widthHeight: widthHeight,
|
|
807
1065
|
color: color
|
|
@@ -813,14 +1071,14 @@
|
|
|
813
1071
|
d: "M20.84 4.61c-1.54-1.56-4.04-1.56-5.59 0l-.7.72-.7-.72a3.95 3.95 0 0 0-5.59 0c-1.56 1.56-1.56 4.09 0 5.66l6.29 6.36 6.29-6.36c1.56-1.56 1.56-4.09 0-5.66z"
|
|
814
1072
|
})));
|
|
815
1073
|
};
|
|
816
|
-
var StarIcon =
|
|
1074
|
+
var StarIcon = _ref23 => {
|
|
817
1075
|
var {
|
|
818
1076
|
widthHeight = 24,
|
|
819
1077
|
color = 'currentColor',
|
|
820
1078
|
filled = true,
|
|
821
1079
|
strokeWidth = 1
|
|
822
|
-
} =
|
|
823
|
-
props = _objectWithoutPropertiesLoose(
|
|
1080
|
+
} = _ref23,
|
|
1081
|
+
props = _objectWithoutPropertiesLoose(_ref23, _excluded23);
|
|
824
1082
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
825
1083
|
widthHeight: widthHeight,
|
|
826
1084
|
color: color
|
|
@@ -832,14 +1090,14 @@
|
|
|
832
1090
|
points: "12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"
|
|
833
1091
|
})));
|
|
834
1092
|
};
|
|
835
|
-
var SaveIcon =
|
|
1093
|
+
var SaveIcon = _ref24 => {
|
|
836
1094
|
var {
|
|
837
1095
|
widthHeight = 24,
|
|
838
1096
|
color = 'currentColor',
|
|
839
1097
|
filled = false,
|
|
840
1098
|
strokeWidth = 1
|
|
841
|
-
} =
|
|
842
|
-
props = _objectWithoutPropertiesLoose(
|
|
1099
|
+
} = _ref24,
|
|
1100
|
+
props = _objectWithoutPropertiesLoose(_ref24, _excluded24);
|
|
843
1101
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
844
1102
|
widthHeight: widthHeight,
|
|
845
1103
|
color: color
|
|
@@ -855,14 +1113,14 @@
|
|
|
855
1113
|
points: "7 3 7 8 15 8"
|
|
856
1114
|
})));
|
|
857
1115
|
};
|
|
858
|
-
var WarningIcon =
|
|
1116
|
+
var WarningIcon = _ref25 => {
|
|
859
1117
|
var {
|
|
860
1118
|
widthHeight = 24,
|
|
861
1119
|
color = 'currentColor',
|
|
862
1120
|
filled = false,
|
|
863
1121
|
strokeWidth = 1
|
|
864
|
-
} =
|
|
865
|
-
props = _objectWithoutPropertiesLoose(
|
|
1122
|
+
} = _ref25,
|
|
1123
|
+
props = _objectWithoutPropertiesLoose(_ref25, _excluded25);
|
|
866
1124
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
867
1125
|
widthHeight: widthHeight,
|
|
868
1126
|
color: color
|
|
@@ -886,14 +1144,14 @@
|
|
|
886
1144
|
y2: "15"
|
|
887
1145
|
})));
|
|
888
1146
|
};
|
|
889
|
-
var BatteryIcon =
|
|
1147
|
+
var BatteryIcon = _ref26 => {
|
|
890
1148
|
var {
|
|
891
1149
|
widthHeight = 24,
|
|
892
1150
|
color = 'currentColor',
|
|
893
1151
|
filled = true,
|
|
894
1152
|
strokeWidth = 1
|
|
895
|
-
} =
|
|
896
|
-
props = _objectWithoutPropertiesLoose(
|
|
1153
|
+
} = _ref26,
|
|
1154
|
+
props = _objectWithoutPropertiesLoose(_ref26, _excluded26);
|
|
897
1155
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
898
1156
|
widthHeight: widthHeight,
|
|
899
1157
|
color: color
|
|
@@ -905,14 +1163,14 @@
|
|
|
905
1163
|
d: "M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z"
|
|
906
1164
|
})));
|
|
907
1165
|
};
|
|
908
|
-
var BookmarkIcon =
|
|
1166
|
+
var BookmarkIcon = _ref27 => {
|
|
909
1167
|
var {
|
|
910
1168
|
widthHeight = 24,
|
|
911
1169
|
color = 'currentColor',
|
|
912
1170
|
filled = false,
|
|
913
1171
|
strokeWidth = 1
|
|
914
|
-
} =
|
|
915
|
-
props = _objectWithoutPropertiesLoose(
|
|
1172
|
+
} = _ref27,
|
|
1173
|
+
props = _objectWithoutPropertiesLoose(_ref27, _excluded27);
|
|
916
1174
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
917
1175
|
widthHeight: widthHeight,
|
|
918
1176
|
color: color
|
|
@@ -924,14 +1182,14 @@
|
|
|
924
1182
|
d: "M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2z"
|
|
925
1183
|
})));
|
|
926
1184
|
};
|
|
927
|
-
var CloudIcon =
|
|
1185
|
+
var CloudIcon = _ref28 => {
|
|
928
1186
|
var {
|
|
929
1187
|
widthHeight = 24,
|
|
930
1188
|
color = 'currentColor',
|
|
931
1189
|
filled = true,
|
|
932
1190
|
strokeWidth = 1
|
|
933
|
-
} =
|
|
934
|
-
props = _objectWithoutPropertiesLoose(
|
|
1191
|
+
} = _ref28,
|
|
1192
|
+
props = _objectWithoutPropertiesLoose(_ref28, _excluded28);
|
|
935
1193
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
936
1194
|
widthHeight: widthHeight,
|
|
937
1195
|
color: color
|
|
@@ -943,14 +1201,14 @@
|
|
|
943
1201
|
d: "M18 10h-1.26A8 8 0 109 20h9a5 5 0 000-10z"
|
|
944
1202
|
})));
|
|
945
1203
|
};
|
|
946
|
-
var CopyIcon =
|
|
1204
|
+
var CopyIcon = _ref29 => {
|
|
947
1205
|
var {
|
|
948
1206
|
widthHeight = 24,
|
|
949
1207
|
color = 'currentColor',
|
|
950
1208
|
filled = false,
|
|
951
1209
|
strokeWidth = 1
|
|
952
|
-
} =
|
|
953
|
-
props = _objectWithoutPropertiesLoose(
|
|
1210
|
+
} = _ref29,
|
|
1211
|
+
props = _objectWithoutPropertiesLoose(_ref29, _excluded29);
|
|
954
1212
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
955
1213
|
widthHeight: widthHeight,
|
|
956
1214
|
color: color
|
|
@@ -969,14 +1227,14 @@
|
|
|
969
1227
|
d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"
|
|
970
1228
|
})));
|
|
971
1229
|
};
|
|
972
|
-
var DustBinIcon =
|
|
1230
|
+
var DustBinIcon = _ref30 => {
|
|
973
1231
|
var {
|
|
974
1232
|
widthHeight = 24,
|
|
975
1233
|
color = 'currentColor',
|
|
976
1234
|
filled = false,
|
|
977
1235
|
strokeWidth = 1
|
|
978
|
-
} =
|
|
979
|
-
props = _objectWithoutPropertiesLoose(
|
|
1236
|
+
} = _ref30,
|
|
1237
|
+
props = _objectWithoutPropertiesLoose(_ref30, _excluded30);
|
|
980
1238
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
981
1239
|
widthHeight: widthHeight,
|
|
982
1240
|
color: color
|
|
@@ -988,14 +1246,15 @@
|
|
|
988
1246
|
d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"
|
|
989
1247
|
})));
|
|
990
1248
|
};
|
|
991
|
-
var
|
|
1249
|
+
var DeleteIcon = DustBinIcon;
|
|
1250
|
+
var EditIcon = _ref31 => {
|
|
992
1251
|
var {
|
|
993
1252
|
widthHeight = 24,
|
|
994
1253
|
color = 'currentColor',
|
|
995
1254
|
filled = false,
|
|
996
1255
|
strokeWidth = 1
|
|
997
|
-
} =
|
|
998
|
-
props = _objectWithoutPropertiesLoose(
|
|
1256
|
+
} = _ref31,
|
|
1257
|
+
props = _objectWithoutPropertiesLoose(_ref31, _excluded31);
|
|
999
1258
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1000
1259
|
widthHeight: widthHeight,
|
|
1001
1260
|
color: color
|
|
@@ -1007,14 +1266,14 @@
|
|
|
1007
1266
|
d: "M18.3785 8.44975L8.9636 17.8648C8.6844 18.144 8.3288 18.3343 7.94161 18.4117L4.99988 19.0001L5.58823 16.0583C5.66566 15.6711 5.85597 15.3155 6.13517 15.0363L15.5501 5.62132M18.3785 8.44975L19.7927 7.03553C20.1832 6.64501 20.1832 6.01184 19.7927 5.62132L18.3785 4.20711C17.988 3.81658 17.3548 3.81658 16.9643 4.20711L15.5501 5.62132M18.3785 8.44975L15.5501 5.62132"
|
|
1008
1267
|
})));
|
|
1009
1268
|
};
|
|
1010
|
-
var ErrorIcon =
|
|
1269
|
+
var ErrorIcon = _ref32 => {
|
|
1011
1270
|
var {
|
|
1012
1271
|
widthHeight = 24,
|
|
1013
1272
|
color = 'currentColor',
|
|
1014
1273
|
strokeWidth = 1,
|
|
1015
1274
|
filled = true
|
|
1016
|
-
} =
|
|
1017
|
-
props = _objectWithoutPropertiesLoose(
|
|
1275
|
+
} = _ref32,
|
|
1276
|
+
props = _objectWithoutPropertiesLoose(_ref32, _excluded32);
|
|
1018
1277
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1019
1278
|
widthHeight: widthHeight,
|
|
1020
1279
|
color: color
|
|
@@ -1040,14 +1299,14 @@
|
|
|
1040
1299
|
stroke: filled ? 'white' : color
|
|
1041
1300
|
})));
|
|
1042
1301
|
};
|
|
1043
|
-
var DownloadIcon =
|
|
1302
|
+
var DownloadIcon = _ref33 => {
|
|
1044
1303
|
var {
|
|
1045
1304
|
widthHeight = 24,
|
|
1046
1305
|
color = 'currentColor',
|
|
1047
1306
|
filled = true,
|
|
1048
1307
|
strokeWidth = 1
|
|
1049
|
-
} =
|
|
1050
|
-
props = _objectWithoutPropertiesLoose(
|
|
1308
|
+
} = _ref33,
|
|
1309
|
+
props = _objectWithoutPropertiesLoose(_ref33, _excluded33);
|
|
1051
1310
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1052
1311
|
widthHeight: widthHeight,
|
|
1053
1312
|
color: color
|
|
@@ -1059,14 +1318,14 @@
|
|
|
1059
1318
|
d: "M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"
|
|
1060
1319
|
})));
|
|
1061
1320
|
};
|
|
1062
|
-
var MenuIcon =
|
|
1321
|
+
var MenuIcon = _ref34 => {
|
|
1063
1322
|
var {
|
|
1064
1323
|
widthHeight = 24,
|
|
1065
1324
|
color = 'currentColor',
|
|
1066
1325
|
strokeWidth = 1,
|
|
1067
1326
|
filled = false
|
|
1068
|
-
} =
|
|
1069
|
-
props = _objectWithoutPropertiesLoose(
|
|
1327
|
+
} = _ref34,
|
|
1328
|
+
props = _objectWithoutPropertiesLoose(_ref34, _excluded34);
|
|
1070
1329
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1071
1330
|
widthHeight: widthHeight,
|
|
1072
1331
|
color: color
|
|
@@ -1094,14 +1353,14 @@
|
|
|
1094
1353
|
y2: "18"
|
|
1095
1354
|
})));
|
|
1096
1355
|
};
|
|
1097
|
-
var ShareIcon =
|
|
1356
|
+
var ShareIcon = _ref35 => {
|
|
1098
1357
|
var {
|
|
1099
1358
|
widthHeight = 24,
|
|
1100
1359
|
color = 'currentColor',
|
|
1101
1360
|
filled = false,
|
|
1102
1361
|
strokeWidth = 1
|
|
1103
|
-
} =
|
|
1104
|
-
props = _objectWithoutPropertiesLoose(
|
|
1362
|
+
} = _ref35,
|
|
1363
|
+
props = _objectWithoutPropertiesLoose(_ref35, _excluded35);
|
|
1105
1364
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1106
1365
|
widthHeight: widthHeight,
|
|
1107
1366
|
color: color
|
|
@@ -1135,14 +1394,14 @@
|
|
|
1135
1394
|
y2: "10.49"
|
|
1136
1395
|
})));
|
|
1137
1396
|
};
|
|
1138
|
-
var RefreshIcon =
|
|
1397
|
+
var RefreshIcon = _ref36 => {
|
|
1139
1398
|
var {
|
|
1140
1399
|
widthHeight = 24,
|
|
1141
1400
|
color = 'currentColor',
|
|
1142
1401
|
strokeWidth = 1,
|
|
1143
1402
|
filled = false
|
|
1144
|
-
} =
|
|
1145
|
-
props = _objectWithoutPropertiesLoose(
|
|
1403
|
+
} = _ref36,
|
|
1404
|
+
props = _objectWithoutPropertiesLoose(_ref36, _excluded36);
|
|
1146
1405
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1147
1406
|
widthHeight: widthHeight,
|
|
1148
1407
|
color: color
|
|
@@ -1156,14 +1415,14 @@
|
|
|
1156
1415
|
d: "M20.49 15a9 9 0 1 1-2.13-9.36L23 10"
|
|
1157
1416
|
})));
|
|
1158
1417
|
};
|
|
1159
|
-
var PrintIcon =
|
|
1418
|
+
var PrintIcon = _ref37 => {
|
|
1160
1419
|
var {
|
|
1161
1420
|
widthHeight = 24,
|
|
1162
1421
|
color = 'currentColor',
|
|
1163
1422
|
filled = true,
|
|
1164
1423
|
strokeWidth = 1
|
|
1165
|
-
} =
|
|
1166
|
-
props = _objectWithoutPropertiesLoose(
|
|
1424
|
+
} = _ref37,
|
|
1425
|
+
props = _objectWithoutPropertiesLoose(_ref37, _excluded37);
|
|
1167
1426
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1168
1427
|
widthHeight: widthHeight,
|
|
1169
1428
|
color: color
|
|
@@ -1176,14 +1435,14 @@
|
|
|
1176
1435
|
d: "M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"
|
|
1177
1436
|
})));
|
|
1178
1437
|
};
|
|
1179
|
-
var MagicWandIcon =
|
|
1438
|
+
var MagicWandIcon = _ref38 => {
|
|
1180
1439
|
var {
|
|
1181
1440
|
widthHeight = 24,
|
|
1182
1441
|
color = 'currentColor',
|
|
1183
1442
|
strokeWidth = 1,
|
|
1184
1443
|
filled = true
|
|
1185
|
-
} =
|
|
1186
|
-
props = _objectWithoutPropertiesLoose(
|
|
1444
|
+
} = _ref38,
|
|
1445
|
+
props = _objectWithoutPropertiesLoose(_ref38, _excluded38);
|
|
1187
1446
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1188
1447
|
widthHeight: widthHeight,
|
|
1189
1448
|
color: color
|
|
@@ -1206,14 +1465,14 @@
|
|
|
1206
1465
|
d: "M16 15L16.7 16.5L18 17L16.7 17.5L16 19L15.3 17.5L14 17L15.3 16.5L16 15Z"
|
|
1207
1466
|
})));
|
|
1208
1467
|
};
|
|
1209
|
-
var SliderVerticalIcon =
|
|
1468
|
+
var SliderVerticalIcon = _ref39 => {
|
|
1210
1469
|
var {
|
|
1211
1470
|
widthHeight = 24,
|
|
1212
1471
|
color = 'currentColor',
|
|
1213
1472
|
strokeWidth = 1,
|
|
1214
1473
|
filled = false
|
|
1215
|
-
} =
|
|
1216
|
-
props = _objectWithoutPropertiesLoose(
|
|
1474
|
+
} = _ref39,
|
|
1475
|
+
props = _objectWithoutPropertiesLoose(_ref39, _excluded39);
|
|
1217
1476
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1218
1477
|
widthHeight: widthHeight,
|
|
1219
1478
|
color: color
|
|
@@ -1277,14 +1536,14 @@
|
|
|
1277
1536
|
y2: "16"
|
|
1278
1537
|
})));
|
|
1279
1538
|
};
|
|
1280
|
-
var PanelIcon =
|
|
1539
|
+
var PanelIcon = _ref40 => {
|
|
1281
1540
|
var {
|
|
1282
1541
|
widthHeight = 24,
|
|
1283
1542
|
color = 'currentColor',
|
|
1284
1543
|
strokeWidth = 1,
|
|
1285
1544
|
filled = false
|
|
1286
|
-
} =
|
|
1287
|
-
props = _objectWithoutPropertiesLoose(
|
|
1545
|
+
} = _ref40,
|
|
1546
|
+
props = _objectWithoutPropertiesLoose(_ref40, _excluded40);
|
|
1288
1547
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1289
1548
|
widthHeight: widthHeight,
|
|
1290
1549
|
color: color
|
|
@@ -1320,14 +1579,14 @@
|
|
|
1320
1579
|
y2: "15"
|
|
1321
1580
|
})));
|
|
1322
1581
|
};
|
|
1323
|
-
var FilterIcon =
|
|
1582
|
+
var FilterIcon = _ref41 => {
|
|
1324
1583
|
var {
|
|
1325
1584
|
widthHeight = 24,
|
|
1326
1585
|
color = 'currentColor',
|
|
1327
1586
|
filled = false,
|
|
1328
1587
|
strokeWidth = 1
|
|
1329
|
-
} =
|
|
1330
|
-
props = _objectWithoutPropertiesLoose(
|
|
1588
|
+
} = _ref41,
|
|
1589
|
+
props = _objectWithoutPropertiesLoose(_ref41, _excluded41);
|
|
1331
1590
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1332
1591
|
widthHeight: widthHeight,
|
|
1333
1592
|
color: color
|
|
@@ -1339,14 +1598,14 @@
|
|
|
1339
1598
|
d: "M3 4h18l-7 10v5l-4 2v-7L3 4z"
|
|
1340
1599
|
})));
|
|
1341
1600
|
};
|
|
1342
|
-
var HomeIcon =
|
|
1601
|
+
var HomeIcon = _ref42 => {
|
|
1343
1602
|
var {
|
|
1344
1603
|
widthHeight = 24,
|
|
1345
1604
|
color = 'currentColor',
|
|
1346
1605
|
filled = true,
|
|
1347
1606
|
strokeWidth = 1
|
|
1348
|
-
} =
|
|
1349
|
-
props = _objectWithoutPropertiesLoose(
|
|
1607
|
+
} = _ref42,
|
|
1608
|
+
props = _objectWithoutPropertiesLoose(_ref42, _excluded42);
|
|
1350
1609
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1351
1610
|
widthHeight: widthHeight,
|
|
1352
1611
|
color: color
|
|
@@ -1358,14 +1617,14 @@
|
|
|
1358
1617
|
d: "M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8h5z"
|
|
1359
1618
|
})));
|
|
1360
1619
|
};
|
|
1361
|
-
var LocationIcon =
|
|
1620
|
+
var LocationIcon = _ref43 => {
|
|
1362
1621
|
var {
|
|
1363
1622
|
widthHeight = 24,
|
|
1364
1623
|
color = 'currentColor',
|
|
1365
1624
|
filled = true,
|
|
1366
1625
|
strokeWidth = 1
|
|
1367
|
-
} =
|
|
1368
|
-
props = _objectWithoutPropertiesLoose(
|
|
1626
|
+
} = _ref43,
|
|
1627
|
+
props = _objectWithoutPropertiesLoose(_ref43, _excluded43);
|
|
1369
1628
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1370
1629
|
widthHeight: widthHeight,
|
|
1371
1630
|
color: color
|
|
@@ -1377,14 +1636,14 @@
|
|
|
1377
1636
|
d: "M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"
|
|
1378
1637
|
})));
|
|
1379
1638
|
};
|
|
1380
|
-
var LockIcon =
|
|
1639
|
+
var LockIcon = _ref44 => {
|
|
1381
1640
|
var {
|
|
1382
1641
|
widthHeight = 24,
|
|
1383
1642
|
color = 'currentColor',
|
|
1384
1643
|
filled = false,
|
|
1385
1644
|
strokeWidth = 1
|
|
1386
|
-
} =
|
|
1387
|
-
props = _objectWithoutPropertiesLoose(
|
|
1645
|
+
} = _ref44,
|
|
1646
|
+
props = _objectWithoutPropertiesLoose(_ref44, _excluded44);
|
|
1388
1647
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1389
1648
|
widthHeight: widthHeight,
|
|
1390
1649
|
color: color
|
|
@@ -1392,7 +1651,9 @@
|
|
|
1392
1651
|
viewBox: "0 0 24 24",
|
|
1393
1652
|
"aria-hidden": "false",
|
|
1394
1653
|
focusable: "false"
|
|
1395
|
-
}, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React__default.createElement("
|
|
1654
|
+
}, getSvgProps(filled, color, strokeWidth)), filled ? (/*#__PURE__*/React__default.createElement("path", {
|
|
1655
|
+
d: "M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"
|
|
1656
|
+
})) : (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("rect", {
|
|
1396
1657
|
x: "3",
|
|
1397
1658
|
y: "11",
|
|
1398
1659
|
width: "18",
|
|
@@ -1401,16 +1662,20 @@
|
|
|
1401
1662
|
ry: "2"
|
|
1402
1663
|
}), /*#__PURE__*/React__default.createElement("path", {
|
|
1403
1664
|
d: "M7 11V7a5 5 0 0 1 10 0v4"
|
|
1404
|
-
})
|
|
1665
|
+
}), /*#__PURE__*/React__default.createElement("circle", {
|
|
1666
|
+
cx: "12",
|
|
1667
|
+
cy: "16",
|
|
1668
|
+
r: "1.5"
|
|
1669
|
+
})))));
|
|
1405
1670
|
};
|
|
1406
|
-
var MicrophoneIcon =
|
|
1671
|
+
var MicrophoneIcon = _ref45 => {
|
|
1407
1672
|
var {
|
|
1408
1673
|
widthHeight = 24,
|
|
1409
1674
|
color = 'currentColor',
|
|
1410
1675
|
filled = false,
|
|
1411
1676
|
strokeWidth = 1
|
|
1412
|
-
} =
|
|
1413
|
-
props = _objectWithoutPropertiesLoose(
|
|
1677
|
+
} = _ref45,
|
|
1678
|
+
props = _objectWithoutPropertiesLoose(_ref45, _excluded45);
|
|
1414
1679
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1415
1680
|
widthHeight: widthHeight,
|
|
1416
1681
|
color: color
|
|
@@ -1436,14 +1701,14 @@
|
|
|
1436
1701
|
y2: "23"
|
|
1437
1702
|
})));
|
|
1438
1703
|
};
|
|
1439
|
-
var MoonIcon =
|
|
1704
|
+
var MoonIcon = _ref46 => {
|
|
1440
1705
|
var {
|
|
1441
1706
|
widthHeight = 24,
|
|
1442
1707
|
color = 'currentColor',
|
|
1443
1708
|
filled = true,
|
|
1444
1709
|
strokeWidth = 1
|
|
1445
|
-
} =
|
|
1446
|
-
props = _objectWithoutPropertiesLoose(
|
|
1710
|
+
} = _ref46,
|
|
1711
|
+
props = _objectWithoutPropertiesLoose(_ref46, _excluded46);
|
|
1447
1712
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1448
1713
|
widthHeight: widthHeight,
|
|
1449
1714
|
color: color
|
|
@@ -1455,14 +1720,14 @@
|
|
|
1455
1720
|
d: "M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"
|
|
1456
1721
|
})));
|
|
1457
1722
|
};
|
|
1458
|
-
var NotificationIcon =
|
|
1723
|
+
var NotificationIcon = _ref47 => {
|
|
1459
1724
|
var {
|
|
1460
1725
|
widthHeight = 24,
|
|
1461
1726
|
color = 'currentColor',
|
|
1462
1727
|
filled = false,
|
|
1463
1728
|
strokeWidth = 1
|
|
1464
|
-
} =
|
|
1465
|
-
props = _objectWithoutPropertiesLoose(
|
|
1729
|
+
} = _ref47,
|
|
1730
|
+
props = _objectWithoutPropertiesLoose(_ref47, _excluded47);
|
|
1466
1731
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1467
1732
|
widthHeight: widthHeight,
|
|
1468
1733
|
color: color
|
|
@@ -1476,14 +1741,14 @@
|
|
|
1476
1741
|
d: "M13.73 21a2 2 0 0 1-3.46 0"
|
|
1477
1742
|
})));
|
|
1478
1743
|
};
|
|
1479
|
-
var OpenEyeIcon =
|
|
1744
|
+
var OpenEyeIcon = _ref48 => {
|
|
1480
1745
|
var {
|
|
1481
1746
|
widthHeight = 24,
|
|
1482
1747
|
color = 'currentColor',
|
|
1483
1748
|
filled = true,
|
|
1484
1749
|
strokeWidth = 1
|
|
1485
|
-
} =
|
|
1486
|
-
props = _objectWithoutPropertiesLoose(
|
|
1750
|
+
} = _ref48,
|
|
1751
|
+
props = _objectWithoutPropertiesLoose(_ref48, _excluded48);
|
|
1487
1752
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1488
1753
|
widthHeight: widthHeight,
|
|
1489
1754
|
color: color
|
|
@@ -1495,14 +1760,14 @@
|
|
|
1495
1760
|
d: "M12 4C7 4 2.73 7.11 1 12c1.73 4.89 6 8 11 8s9.27-3.11 11-8c-1.73-4.89-6-8-11-8zm0 12.5c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"
|
|
1496
1761
|
})));
|
|
1497
1762
|
};
|
|
1498
|
-
var ProfileIcon =
|
|
1763
|
+
var ProfileIcon = _ref49 => {
|
|
1499
1764
|
var {
|
|
1500
1765
|
widthHeight = 24,
|
|
1501
1766
|
color = 'currentColor',
|
|
1502
1767
|
filled = true,
|
|
1503
1768
|
strokeWidth = 1
|
|
1504
|
-
} =
|
|
1505
|
-
props = _objectWithoutPropertiesLoose(
|
|
1769
|
+
} = _ref49,
|
|
1770
|
+
props = _objectWithoutPropertiesLoose(_ref49, _excluded49);
|
|
1506
1771
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1507
1772
|
widthHeight: widthHeight,
|
|
1508
1773
|
color: color
|
|
@@ -1515,14 +1780,14 @@
|
|
|
1515
1780
|
d: "M12 13c-2.67 0-8 1.34-8 4v2c0 .55.45 1 1 1h14c.55 0 1-.45 1-1v-2c0-2.66-5.33-4-8-4zm0-9c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z M12 2C9.79 2 8 3.79 8 6s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4z M12 13c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z"
|
|
1516
1781
|
}), ' '));
|
|
1517
1782
|
};
|
|
1518
|
-
var SettingsIcon =
|
|
1783
|
+
var SettingsIcon = _ref50 => {
|
|
1519
1784
|
var {
|
|
1520
1785
|
widthHeight = 24,
|
|
1521
1786
|
color = 'currentColor',
|
|
1522
1787
|
filled = false,
|
|
1523
1788
|
strokeWidth = 1
|
|
1524
|
-
} =
|
|
1525
|
-
props = _objectWithoutPropertiesLoose(
|
|
1789
|
+
} = _ref50,
|
|
1790
|
+
props = _objectWithoutPropertiesLoose(_ref50, _excluded50);
|
|
1526
1791
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1527
1792
|
widthHeight: widthHeight,
|
|
1528
1793
|
color: color
|
|
@@ -1534,14 +1799,14 @@
|
|
|
1534
1799
|
d: "M19.4 13c0-.3.1-.6.1-1s0-.7-.1-1l2.1-1.6c.2-.2.2-.4.1-.6l-2-3.5c-.1-.2-.4-.3-.6-.2l-2.5 1c-.5-.4-1.1-.7-1.7-.9l-.4-2.6c0-.2-.3-.4-.5-.4h-4c-.2 0-.5.2-.5.4l-.4 2.6c-.6.2-1.2.5-1.7.9l-2.5-1c-.2-.1-.5 0-.6.2l-2 3.5c-.1.2-.1.4.1.6L4.6 11c0 .3-.1.6-.1 1s0 .7.1 1l-2.1 1.6c-.2.2-.2.4-.1.6l2 3.5c.1.2.4.3.6.2l2.5-1c.5.4 1.1.7 1.7.9l.4 2.6c0 .2.3.4.5.4h4c.2 0 .5-.2.5-.4l.4-2.6c.6-.2 1.2-.5 1.7-.9l2.5 1c.2.1.5 0 .6-.2l2-3.5c.1-.2.1-.4-.1-.6L19.4 13zM12 15.5c-1.9 0-3.5-1.6-3.5-3.5s1.6-3.5 3.5-3.5 3.5 1.6 3.5 3.5-1.6 3.5-3.5 3.5z"
|
|
1535
1800
|
})));
|
|
1536
1801
|
};
|
|
1537
|
-
var SuccessIcon =
|
|
1802
|
+
var SuccessIcon = _ref51 => {
|
|
1538
1803
|
var {
|
|
1539
1804
|
widthHeight = 24,
|
|
1540
1805
|
color = 'currentColor',
|
|
1541
1806
|
filled = true,
|
|
1542
1807
|
strokeWidth = 1
|
|
1543
|
-
} =
|
|
1544
|
-
props = _objectWithoutPropertiesLoose(
|
|
1808
|
+
} = _ref51,
|
|
1809
|
+
props = _objectWithoutPropertiesLoose(_ref51, _excluded51);
|
|
1545
1810
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1546
1811
|
widthHeight: widthHeight,
|
|
1547
1812
|
color: color
|
|
@@ -1553,14 +1818,14 @@
|
|
|
1553
1818
|
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
|
|
1554
1819
|
})));
|
|
1555
1820
|
};
|
|
1556
|
-
var UnLikeIcon =
|
|
1821
|
+
var UnLikeIcon = _ref52 => {
|
|
1557
1822
|
var {
|
|
1558
1823
|
widthHeight = 24,
|
|
1559
1824
|
color = 'currentColor',
|
|
1560
1825
|
filled = true,
|
|
1561
1826
|
strokeWidth = 1
|
|
1562
|
-
} =
|
|
1563
|
-
props = _objectWithoutPropertiesLoose(
|
|
1827
|
+
} = _ref52,
|
|
1828
|
+
props = _objectWithoutPropertiesLoose(_ref52, _excluded52);
|
|
1564
1829
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1565
1830
|
widthHeight: widthHeight,
|
|
1566
1831
|
color: color
|
|
@@ -1572,14 +1837,14 @@
|
|
|
1572
1837
|
d: "M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z"
|
|
1573
1838
|
})));
|
|
1574
1839
|
};
|
|
1575
|
-
var ClockIcon =
|
|
1840
|
+
var ClockIcon = _ref53 => {
|
|
1576
1841
|
var {
|
|
1577
1842
|
widthHeight = 24,
|
|
1578
1843
|
color = 'currentColor',
|
|
1579
1844
|
strokeWidth = 1,
|
|
1580
1845
|
filled = false
|
|
1581
|
-
} =
|
|
1582
|
-
props = _objectWithoutPropertiesLoose(
|
|
1846
|
+
} = _ref53,
|
|
1847
|
+
props = _objectWithoutPropertiesLoose(_ref53, _excluded53);
|
|
1583
1848
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1584
1849
|
widthHeight: widthHeight,
|
|
1585
1850
|
color: color
|
|
@@ -1595,14 +1860,14 @@
|
|
|
1595
1860
|
points: "12 6 12 12 16 14"
|
|
1596
1861
|
})));
|
|
1597
1862
|
};
|
|
1598
|
-
var CameraIcon =
|
|
1863
|
+
var CameraIcon = _ref54 => {
|
|
1599
1864
|
var {
|
|
1600
1865
|
widthHeight = 24,
|
|
1601
1866
|
color = 'currentColor',
|
|
1602
1867
|
strokeWidth = 1,
|
|
1603
1868
|
filled = false
|
|
1604
|
-
} =
|
|
1605
|
-
props = _objectWithoutPropertiesLoose(
|
|
1869
|
+
} = _ref54,
|
|
1870
|
+
props = _objectWithoutPropertiesLoose(_ref54, _excluded54);
|
|
1606
1871
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1607
1872
|
widthHeight: widthHeight,
|
|
1608
1873
|
color: color
|
|
@@ -1618,14 +1883,14 @@
|
|
|
1618
1883
|
r: "4"
|
|
1619
1884
|
})));
|
|
1620
1885
|
};
|
|
1621
|
-
var BluetoothIcon =
|
|
1886
|
+
var BluetoothIcon = _ref55 => {
|
|
1622
1887
|
var {
|
|
1623
1888
|
widthHeight = 24,
|
|
1624
1889
|
color = 'currentColor',
|
|
1625
1890
|
filled = true,
|
|
1626
1891
|
strokeWidth = 1
|
|
1627
|
-
} =
|
|
1628
|
-
props = _objectWithoutPropertiesLoose(
|
|
1892
|
+
} = _ref55,
|
|
1893
|
+
props = _objectWithoutPropertiesLoose(_ref55, _excluded55);
|
|
1629
1894
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1630
1895
|
widthHeight: widthHeight,
|
|
1631
1896
|
color: color
|
|
@@ -1637,14 +1902,14 @@
|
|
|
1637
1902
|
d: "M17.71 7.71L12 2h-1v7.59L6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 5.83l1.88 1.88L13 9.59V5.83zm1.88 10.46L13 18.17v-3.76l1.88 1.88z"
|
|
1638
1903
|
})));
|
|
1639
1904
|
};
|
|
1640
|
-
var LikeIcon =
|
|
1905
|
+
var LikeIcon = _ref56 => {
|
|
1641
1906
|
var {
|
|
1642
1907
|
widthHeight = 24,
|
|
1643
1908
|
color = 'currentColor',
|
|
1644
1909
|
filled = true,
|
|
1645
1910
|
strokeWidth = 1
|
|
1646
|
-
} =
|
|
1647
|
-
props = _objectWithoutPropertiesLoose(
|
|
1911
|
+
} = _ref56,
|
|
1912
|
+
props = _objectWithoutPropertiesLoose(_ref56, _excluded56);
|
|
1648
1913
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1649
1914
|
widthHeight: widthHeight,
|
|
1650
1915
|
color: color
|
|
@@ -1656,14 +1921,14 @@
|
|
|
1656
1921
|
d: "M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-2z"
|
|
1657
1922
|
})));
|
|
1658
1923
|
};
|
|
1659
|
-
var UnlockIcon =
|
|
1924
|
+
var UnlockIcon = _ref57 => {
|
|
1660
1925
|
var {
|
|
1661
1926
|
widthHeight = 24,
|
|
1662
1927
|
color = 'currentColor',
|
|
1663
1928
|
filled = false,
|
|
1664
1929
|
strokeWidth = 1
|
|
1665
|
-
} =
|
|
1666
|
-
props = _objectWithoutPropertiesLoose(
|
|
1930
|
+
} = _ref57,
|
|
1931
|
+
props = _objectWithoutPropertiesLoose(_ref57, _excluded57);
|
|
1667
1932
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1668
1933
|
widthHeight: widthHeight,
|
|
1669
1934
|
color: color
|
|
@@ -1671,7 +1936,9 @@
|
|
|
1671
1936
|
viewBox: "0 0 24 24",
|
|
1672
1937
|
"aria-hidden": "false",
|
|
1673
1938
|
focusable: "false"
|
|
1674
|
-
}, getSvgProps(filled, color, strokeWidth)), /*#__PURE__*/React__default.createElement("
|
|
1939
|
+
}, getSvgProps(filled, color, strokeWidth)), filled ? (/*#__PURE__*/React__default.createElement("path", {
|
|
1940
|
+
d: "M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2z"
|
|
1941
|
+
})) : (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("rect", {
|
|
1675
1942
|
x: "3",
|
|
1676
1943
|
y: "11",
|
|
1677
1944
|
width: "18",
|
|
@@ -1680,16 +1947,20 @@
|
|
|
1680
1947
|
ry: "2"
|
|
1681
1948
|
}), /*#__PURE__*/React__default.createElement("path", {
|
|
1682
1949
|
d: "M7 11V7a5 5 0 0 1 9.9-1"
|
|
1683
|
-
})
|
|
1950
|
+
}), /*#__PURE__*/React__default.createElement("circle", {
|
|
1951
|
+
cx: "12",
|
|
1952
|
+
cy: "16",
|
|
1953
|
+
r: "1.5"
|
|
1954
|
+
})))));
|
|
1684
1955
|
};
|
|
1685
|
-
var WifiIcon =
|
|
1956
|
+
var WifiIcon = _ref58 => {
|
|
1686
1957
|
var {
|
|
1687
1958
|
widthHeight = 24,
|
|
1688
1959
|
color = 'currentColor',
|
|
1689
1960
|
filled = false,
|
|
1690
1961
|
strokeWidth = 1
|
|
1691
|
-
} =
|
|
1692
|
-
props = _objectWithoutPropertiesLoose(
|
|
1962
|
+
} = _ref58,
|
|
1963
|
+
props = _objectWithoutPropertiesLoose(_ref58, _excluded58);
|
|
1693
1964
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1694
1965
|
widthHeight: widthHeight,
|
|
1695
1966
|
color: color
|
|
@@ -1701,14 +1972,14 @@
|
|
|
1701
1972
|
d: "M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3c-1.65-1.66-4.34-1.66-6 0zm-4-4l2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9.14 8.87 9.14 5 13z"
|
|
1702
1973
|
})));
|
|
1703
1974
|
};
|
|
1704
|
-
var UploadIcon =
|
|
1975
|
+
var UploadIcon = _ref59 => {
|
|
1705
1976
|
var {
|
|
1706
1977
|
widthHeight = 24,
|
|
1707
1978
|
color = 'currentColor',
|
|
1708
1979
|
filled = false,
|
|
1709
1980
|
strokeWidth = 1
|
|
1710
|
-
} =
|
|
1711
|
-
props = _objectWithoutPropertiesLoose(
|
|
1981
|
+
} = _ref59,
|
|
1982
|
+
props = _objectWithoutPropertiesLoose(_ref59, _excluded59);
|
|
1712
1983
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1713
1984
|
widthHeight: widthHeight,
|
|
1714
1985
|
color: color
|
|
@@ -1724,14 +1995,14 @@
|
|
|
1724
1995
|
d: "M12 12l0 9"
|
|
1725
1996
|
})));
|
|
1726
1997
|
};
|
|
1727
|
-
var SearchIcon =
|
|
1998
|
+
var SearchIcon = _ref60 => {
|
|
1728
1999
|
var {
|
|
1729
2000
|
widthHeight = 24,
|
|
1730
2001
|
color = 'currentColor',
|
|
1731
2002
|
filled = true,
|
|
1732
2003
|
strokeWidth = 1
|
|
1733
|
-
} =
|
|
1734
|
-
props = _objectWithoutPropertiesLoose(
|
|
2004
|
+
} = _ref60,
|
|
2005
|
+
props = _objectWithoutPropertiesLoose(_ref60, _excluded60);
|
|
1735
2006
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1736
2007
|
widthHeight: widthHeight,
|
|
1737
2008
|
color: color
|
|
@@ -1743,14 +2014,14 @@
|
|
|
1743
2014
|
d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"
|
|
1744
2015
|
})));
|
|
1745
2016
|
};
|
|
1746
|
-
var CloseEyeIcon =
|
|
2017
|
+
var CloseEyeIcon = _ref61 => {
|
|
1747
2018
|
var {
|
|
1748
2019
|
widthHeight = 24,
|
|
1749
2020
|
color = 'currentColor',
|
|
1750
2021
|
filled = true,
|
|
1751
2022
|
strokeWidth = 1
|
|
1752
|
-
} =
|
|
1753
|
-
props = _objectWithoutPropertiesLoose(
|
|
2023
|
+
} = _ref61,
|
|
2024
|
+
props = _objectWithoutPropertiesLoose(_ref61, _excluded61);
|
|
1754
2025
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1755
2026
|
widthHeight: widthHeight,
|
|
1756
2027
|
color: color
|
|
@@ -1763,14 +2034,14 @@
|
|
|
1763
2034
|
fill: "currentColor"
|
|
1764
2035
|
})));
|
|
1765
2036
|
};
|
|
1766
|
-
var ExternalLinkIcon =
|
|
2037
|
+
var ExternalLinkIcon = _ref62 => {
|
|
1767
2038
|
var {
|
|
1768
2039
|
widthHeight = 24,
|
|
1769
2040
|
color = 'currentColor',
|
|
1770
2041
|
filled = true,
|
|
1771
2042
|
strokeWidth = 1
|
|
1772
|
-
} =
|
|
1773
|
-
props = _objectWithoutPropertiesLoose(
|
|
2043
|
+
} = _ref62,
|
|
2044
|
+
props = _objectWithoutPropertiesLoose(_ref62, _excluded62);
|
|
1774
2045
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1775
2046
|
widthHeight: widthHeight,
|
|
1776
2047
|
color: color
|
|
@@ -1782,14 +2053,14 @@
|
|
|
1782
2053
|
d: "M14 3h7v7h-2V5.41l-9.29 9.3-1.42-1.42 9.3-9.29H14V3ZM5 5h5v2H6v11h11v-4h2v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1Z"
|
|
1783
2054
|
})));
|
|
1784
2055
|
};
|
|
1785
|
-
var PlusIcon =
|
|
2056
|
+
var PlusIcon = _ref63 => {
|
|
1786
2057
|
var {
|
|
1787
2058
|
widthHeight = 24,
|
|
1788
2059
|
color = 'currentColor',
|
|
1789
2060
|
filled = false,
|
|
1790
2061
|
strokeWidth = 1
|
|
1791
|
-
} =
|
|
1792
|
-
props = _objectWithoutPropertiesLoose(
|
|
2062
|
+
} = _ref63,
|
|
2063
|
+
props = _objectWithoutPropertiesLoose(_ref63, _excluded63);
|
|
1793
2064
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1794
2065
|
widthHeight: widthHeight,
|
|
1795
2066
|
color: color
|
|
@@ -1811,14 +2082,14 @@
|
|
|
1811
2082
|
y2: "12"
|
|
1812
2083
|
})));
|
|
1813
2084
|
};
|
|
1814
|
-
var TickIcon =
|
|
2085
|
+
var TickIcon = _ref64 => {
|
|
1815
2086
|
var {
|
|
1816
2087
|
widthHeight = 24,
|
|
1817
2088
|
color = 'currentColor',
|
|
1818
2089
|
filled = false,
|
|
1819
2090
|
strokeWidth = 1
|
|
1820
|
-
} =
|
|
1821
|
-
props = _objectWithoutPropertiesLoose(
|
|
2091
|
+
} = _ref64,
|
|
2092
|
+
props = _objectWithoutPropertiesLoose(_ref64, _excluded64);
|
|
1822
2093
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1823
2094
|
widthHeight: widthHeight,
|
|
1824
2095
|
color: color
|
|
@@ -1832,14 +2103,14 @@
|
|
|
1832
2103
|
strokeLinejoin: "round"
|
|
1833
2104
|
})));
|
|
1834
2105
|
};
|
|
1835
|
-
var BoldArrowIcon =
|
|
2106
|
+
var BoldArrowIcon = _ref65 => {
|
|
1836
2107
|
var {
|
|
1837
2108
|
widthHeight = 24,
|
|
1838
2109
|
color = 'currentColor',
|
|
1839
2110
|
filled = true,
|
|
1840
2111
|
strokeWidth = 1
|
|
1841
|
-
} =
|
|
1842
|
-
props = _objectWithoutPropertiesLoose(
|
|
2112
|
+
} = _ref65,
|
|
2113
|
+
props = _objectWithoutPropertiesLoose(_ref65, _excluded65);
|
|
1843
2114
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1844
2115
|
widthHeight: widthHeight,
|
|
1845
2116
|
color: color
|
|
@@ -1851,14 +2122,14 @@
|
|
|
1851
2122
|
d: "M12 4l7 7h-4v7h-6v-7H5l7-7z"
|
|
1852
2123
|
})));
|
|
1853
2124
|
};
|
|
1854
|
-
var ArrowIcon =
|
|
2125
|
+
var ArrowIcon = _ref66 => {
|
|
1855
2126
|
var {
|
|
1856
2127
|
widthHeight = 24,
|
|
1857
2128
|
color = 'currentColor',
|
|
1858
2129
|
filled = false,
|
|
1859
2130
|
strokeWidth = 1
|
|
1860
|
-
} =
|
|
1861
|
-
props = _objectWithoutPropertiesLoose(
|
|
2131
|
+
} = _ref66,
|
|
2132
|
+
props = _objectWithoutPropertiesLoose(_ref66, _excluded66);
|
|
1862
2133
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1863
2134
|
widthHeight: widthHeight,
|
|
1864
2135
|
color: color
|
|
@@ -1876,14 +2147,14 @@
|
|
|
1876
2147
|
points: "6 12 12 6 18 12"
|
|
1877
2148
|
})));
|
|
1878
2149
|
};
|
|
1879
|
-
var SpinnerIcon =
|
|
2150
|
+
var SpinnerIcon = _ref67 => {
|
|
1880
2151
|
var {
|
|
1881
2152
|
widthHeight = 24,
|
|
1882
2153
|
color = 'currentColor',
|
|
1883
2154
|
filled = false,
|
|
1884
2155
|
strokeWidth = 1
|
|
1885
|
-
} =
|
|
1886
|
-
props = _objectWithoutPropertiesLoose(
|
|
2156
|
+
} = _ref67,
|
|
2157
|
+
props = _objectWithoutPropertiesLoose(_ref67, _excluded67);
|
|
1887
2158
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1888
2159
|
widthHeight: widthHeight,
|
|
1889
2160
|
color: color
|
|
@@ -1901,14 +2172,14 @@
|
|
|
1901
2172
|
strokeOpacity: "1"
|
|
1902
2173
|
})));
|
|
1903
2174
|
};
|
|
1904
|
-
var CalendarIcon =
|
|
2175
|
+
var CalendarIcon = _ref68 => {
|
|
1905
2176
|
var {
|
|
1906
2177
|
widthHeight = 24,
|
|
1907
2178
|
color = 'currentColor',
|
|
1908
2179
|
strokeWidth = 1,
|
|
1909
2180
|
filled = false
|
|
1910
|
-
} =
|
|
1911
|
-
props = _objectWithoutPropertiesLoose(
|
|
2181
|
+
} = _ref68,
|
|
2182
|
+
props = _objectWithoutPropertiesLoose(_ref68, _excluded68);
|
|
1912
2183
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1913
2184
|
widthHeight: widthHeight,
|
|
1914
2185
|
color: color
|
|
@@ -1943,14 +2214,14 @@
|
|
|
1943
2214
|
y2: "10"
|
|
1944
2215
|
})));
|
|
1945
2216
|
};
|
|
1946
|
-
var SliderIcon =
|
|
2217
|
+
var SliderIcon = _ref69 => {
|
|
1947
2218
|
var {
|
|
1948
2219
|
widthHeight = 24,
|
|
1949
2220
|
color = 'currentColor',
|
|
1950
2221
|
strokeWidth = 1,
|
|
1951
2222
|
filled = false
|
|
1952
|
-
} =
|
|
1953
|
-
props = _objectWithoutPropertiesLoose(
|
|
2223
|
+
} = _ref69,
|
|
2224
|
+
props = _objectWithoutPropertiesLoose(_ref69, _excluded69);
|
|
1954
2225
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
1955
2226
|
widthHeight: widthHeight,
|
|
1956
2227
|
color: color
|
|
@@ -2005,14 +2276,14 @@
|
|
|
2005
2276
|
y2: "23"
|
|
2006
2277
|
})));
|
|
2007
2278
|
};
|
|
2008
|
-
var CropIcon =
|
|
2279
|
+
var CropIcon = _ref70 => {
|
|
2009
2280
|
var {
|
|
2010
2281
|
widthHeight = 24,
|
|
2011
2282
|
color = 'currentColor',
|
|
2012
2283
|
strokeWidth = 1,
|
|
2013
2284
|
filled = false
|
|
2014
|
-
} =
|
|
2015
|
-
props = _objectWithoutPropertiesLoose(
|
|
2285
|
+
} = _ref70,
|
|
2286
|
+
props = _objectWithoutPropertiesLoose(_ref70, _excluded70);
|
|
2016
2287
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2017
2288
|
widthHeight: widthHeight,
|
|
2018
2289
|
color: color
|
|
@@ -2026,14 +2297,14 @@
|
|
|
2026
2297
|
d: "M18 22V8a2 2 0 0 0-2-2H2"
|
|
2027
2298
|
})));
|
|
2028
2299
|
};
|
|
2029
|
-
var ZoomInIcon =
|
|
2300
|
+
var ZoomInIcon = _ref71 => {
|
|
2030
2301
|
var {
|
|
2031
2302
|
widthHeight = 24,
|
|
2032
2303
|
color = 'currentColor',
|
|
2033
2304
|
strokeWidth = 1,
|
|
2034
2305
|
filled = false
|
|
2035
|
-
} =
|
|
2036
|
-
props = _objectWithoutPropertiesLoose(
|
|
2306
|
+
} = _ref71,
|
|
2307
|
+
props = _objectWithoutPropertiesLoose(_ref71, _excluded71);
|
|
2037
2308
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2038
2309
|
widthHeight: widthHeight,
|
|
2039
2310
|
color: color
|
|
@@ -2062,14 +2333,14 @@
|
|
|
2062
2333
|
y2: "11"
|
|
2063
2334
|
})));
|
|
2064
2335
|
};
|
|
2065
|
-
var ZoomOutIcon =
|
|
2336
|
+
var ZoomOutIcon = _ref72 => {
|
|
2066
2337
|
var {
|
|
2067
2338
|
widthHeight = 24,
|
|
2068
2339
|
color = 'currentColor',
|
|
2069
2340
|
strokeWidth = 1,
|
|
2070
2341
|
filled = false
|
|
2071
|
-
} =
|
|
2072
|
-
props = _objectWithoutPropertiesLoose(
|
|
2342
|
+
} = _ref72,
|
|
2343
|
+
props = _objectWithoutPropertiesLoose(_ref72, _excluded72);
|
|
2073
2344
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2074
2345
|
widthHeight: widthHeight,
|
|
2075
2346
|
color: color
|
|
@@ -2093,14 +2364,14 @@
|
|
|
2093
2364
|
y2: "11"
|
|
2094
2365
|
})));
|
|
2095
2366
|
};
|
|
2096
|
-
var TextIcon =
|
|
2367
|
+
var TextIcon = _ref73 => {
|
|
2097
2368
|
var {
|
|
2098
2369
|
widthHeight = 24,
|
|
2099
2370
|
color = 'currentColor',
|
|
2100
2371
|
strokeWidth = 1,
|
|
2101
2372
|
filled = false
|
|
2102
|
-
} =
|
|
2103
|
-
props = _objectWithoutPropertiesLoose(
|
|
2373
|
+
} = _ref73,
|
|
2374
|
+
props = _objectWithoutPropertiesLoose(_ref73, _excluded73);
|
|
2104
2375
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2105
2376
|
widthHeight: widthHeight,
|
|
2106
2377
|
color: color
|
|
@@ -2125,14 +2396,14 @@
|
|
|
2125
2396
|
y2: "18"
|
|
2126
2397
|
})));
|
|
2127
2398
|
};
|
|
2128
|
-
var ShapeIcon =
|
|
2399
|
+
var ShapeIcon = _ref74 => {
|
|
2129
2400
|
var {
|
|
2130
2401
|
widthHeight = 24,
|
|
2131
2402
|
color = 'currentColor',
|
|
2132
2403
|
strokeWidth = 1,
|
|
2133
2404
|
filled = false
|
|
2134
|
-
} =
|
|
2135
|
-
props = _objectWithoutPropertiesLoose(
|
|
2405
|
+
} = _ref74,
|
|
2406
|
+
props = _objectWithoutPropertiesLoose(_ref74, _excluded74);
|
|
2136
2407
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2137
2408
|
widthHeight: widthHeight,
|
|
2138
2409
|
color: color
|
|
@@ -2153,14 +2424,14 @@
|
|
|
2153
2424
|
points: "16,4 19,8 13,8"
|
|
2154
2425
|
})));
|
|
2155
2426
|
};
|
|
2156
|
-
var RotateIcon =
|
|
2427
|
+
var RotateIcon = _ref75 => {
|
|
2157
2428
|
var {
|
|
2158
2429
|
widthHeight = 24,
|
|
2159
2430
|
color = 'currentColor',
|
|
2160
2431
|
strokeWidth = 1,
|
|
2161
2432
|
filled = false
|
|
2162
|
-
} =
|
|
2163
|
-
props = _objectWithoutPropertiesLoose(
|
|
2433
|
+
} = _ref75,
|
|
2434
|
+
props = _objectWithoutPropertiesLoose(_ref75, _excluded75);
|
|
2164
2435
|
return /*#__PURE__*/React__default.createElement(IconWrapper, Object.assign({
|
|
2165
2436
|
widthHeight: widthHeight,
|
|
2166
2437
|
color: color
|
|
@@ -2177,6 +2448,8 @@
|
|
|
2177
2448
|
|
|
2178
2449
|
var Icon = {
|
|
2179
2450
|
__proto__: null,
|
|
2451
|
+
UserIcon: UserIcon,
|
|
2452
|
+
HelpIcon: HelpIcon,
|
|
2180
2453
|
ChevronIcon: ChevronIcon,
|
|
2181
2454
|
DragHandleIcon: DragHandleIcon,
|
|
2182
2455
|
FileIcon: FileIcon,
|
|
@@ -2204,6 +2477,7 @@
|
|
|
2204
2477
|
CloudIcon: CloudIcon,
|
|
2205
2478
|
CopyIcon: CopyIcon,
|
|
2206
2479
|
DustBinIcon: DustBinIcon,
|
|
2480
|
+
DeleteIcon: DeleteIcon,
|
|
2207
2481
|
EditIcon: EditIcon,
|
|
2208
2482
|
ErrorIcon: ErrorIcon,
|
|
2209
2483
|
DownloadIcon: DownloadIcon,
|
|
@@ -3164,21 +3438,459 @@
|
|
|
3164
3438
|
};
|
|
3165
3439
|
var Button = ButtonComponent;
|
|
3166
3440
|
|
|
3167
|
-
var
|
|
3168
|
-
|
|
3169
|
-
|
|
3441
|
+
var useContextMenuState = () => {
|
|
3442
|
+
var [isOpen, setIsOpen] = React.useState(false);
|
|
3443
|
+
var [position, setPosition] = React.useState({
|
|
3444
|
+
x: 0,
|
|
3445
|
+
y: 0
|
|
3446
|
+
});
|
|
3447
|
+
var [activeSubmenuId, setActiveSubmenuId] = React.useState(null);
|
|
3448
|
+
// Close the context menu when clicking outside
|
|
3449
|
+
React.useEffect(() => {
|
|
3450
|
+
var handleClickOutside = event => {
|
|
3451
|
+
var path = event.composedPath();
|
|
3452
|
+
var isOutside = !path.some(element => (element == null ? void 0 : element.id) === 'context-menu');
|
|
3453
|
+
if (isOutside && isOpen) {
|
|
3454
|
+
setIsOpen(false);
|
|
3455
|
+
setActiveSubmenuId(null);
|
|
3456
|
+
}
|
|
3457
|
+
};
|
|
3458
|
+
// Close the context menu when the window is resized
|
|
3459
|
+
var handleResize = () => {
|
|
3460
|
+
if (isOpen) {
|
|
3461
|
+
setIsOpen(false);
|
|
3462
|
+
setActiveSubmenuId(null);
|
|
3463
|
+
}
|
|
3464
|
+
};
|
|
3465
|
+
// Close the context menu when the escape key is pressed
|
|
3466
|
+
var handleKeyDown = event => {
|
|
3467
|
+
if (event.key === 'Escape' && isOpen) {
|
|
3468
|
+
setIsOpen(false);
|
|
3469
|
+
setActiveSubmenuId(null);
|
|
3470
|
+
}
|
|
3471
|
+
};
|
|
3472
|
+
document.addEventListener('mousedown', handleClickOutside);
|
|
3473
|
+
window.addEventListener('resize', handleResize);
|
|
3474
|
+
document.addEventListener('keydown', handleKeyDown);
|
|
3475
|
+
return () => {
|
|
3476
|
+
document.removeEventListener('mousedown', handleClickOutside);
|
|
3477
|
+
window.removeEventListener('resize', handleResize);
|
|
3478
|
+
document.removeEventListener('keydown', handleKeyDown);
|
|
3479
|
+
};
|
|
3480
|
+
}, [isOpen]);
|
|
3481
|
+
return {
|
|
3482
|
+
isOpen,
|
|
3483
|
+
setIsOpen,
|
|
3484
|
+
position,
|
|
3485
|
+
setPosition,
|
|
3486
|
+
activeSubmenuId,
|
|
3487
|
+
setActiveSubmenuId
|
|
3488
|
+
};
|
|
3489
|
+
};
|
|
3490
|
+
|
|
3491
|
+
var ContextMenuSizes = {
|
|
3492
|
+
sm: {
|
|
3493
|
+
padding: '6px 8px',
|
|
3494
|
+
fontSize: '14px',
|
|
3495
|
+
minWidth: '160px'
|
|
3496
|
+
},
|
|
3497
|
+
md: {
|
|
3498
|
+
padding: '8px 12px',
|
|
3499
|
+
fontSize: '16px',
|
|
3500
|
+
minWidth: '180px'
|
|
3501
|
+
},
|
|
3502
|
+
lg: {
|
|
3503
|
+
padding: '10px 16px',
|
|
3504
|
+
fontSize: '18px',
|
|
3505
|
+
minWidth: '200px'
|
|
3506
|
+
}
|
|
3507
|
+
};
|
|
3508
|
+
var ContextMenuVariants = {
|
|
3509
|
+
default: {
|
|
3510
|
+
backgroundColor: 'white',
|
|
3511
|
+
color: 'color.gray.800'
|
|
3512
|
+
},
|
|
3513
|
+
filled: {
|
|
3514
|
+
backgroundColor: 'color.gray.100',
|
|
3515
|
+
color: 'color.gray.800'
|
|
3516
|
+
},
|
|
3517
|
+
outline: {
|
|
3518
|
+
backgroundColor: 'white',
|
|
3519
|
+
borderWidth: '1px',
|
|
3520
|
+
borderStyle: 'solid',
|
|
3521
|
+
borderColor: 'color.gray.200',
|
|
3522
|
+
color: 'color.gray.800'
|
|
3523
|
+
}
|
|
3524
|
+
};
|
|
3525
|
+
var ContextMenuItemStates = {
|
|
3526
|
+
hover: {
|
|
3527
|
+
backgroundColor: 'color.gray.100'
|
|
3528
|
+
},
|
|
3529
|
+
active: {
|
|
3530
|
+
backgroundColor: 'color.gray.200'
|
|
3531
|
+
},
|
|
3532
|
+
disabled: {
|
|
3533
|
+
opacity: 0.5,
|
|
3534
|
+
cursor: 'not-allowed'
|
|
3535
|
+
}
|
|
3536
|
+
};
|
|
3537
|
+
// Helper function to calculate position based on available space
|
|
3538
|
+
var calculateMenuPosition = function calculateMenuPosition(x, y, menuWidth, menuHeight, windowWidth, windowHeight, side, align) {
|
|
3539
|
+
if (side === void 0) {
|
|
3540
|
+
side = 'right';
|
|
3541
|
+
}
|
|
3542
|
+
if (align === void 0) {
|
|
3543
|
+
align = 'start';
|
|
3544
|
+
}
|
|
3545
|
+
var posX = x;
|
|
3546
|
+
var posY = y;
|
|
3547
|
+
// Adjust horizontal position based on side
|
|
3548
|
+
if (side === 'left') {
|
|
3549
|
+
posX = x - menuWidth;
|
|
3550
|
+
} else if (side === 'right') {
|
|
3551
|
+
posX = x;
|
|
3552
|
+
} else if (side === 'top' || side === 'bottom') {
|
|
3553
|
+
// Adjust horizontal position based on alignment for top/bottom
|
|
3554
|
+
if (align === 'center') {
|
|
3555
|
+
posX = x - menuWidth / 2;
|
|
3556
|
+
} else if (align === 'end') {
|
|
3557
|
+
posX = x - menuWidth;
|
|
3558
|
+
}
|
|
3559
|
+
}
|
|
3560
|
+
// Adjust vertical position based on side
|
|
3561
|
+
if (side === 'top') {
|
|
3562
|
+
posY = y - menuHeight;
|
|
3563
|
+
} else if (side === 'bottom') {
|
|
3564
|
+
posY = y;
|
|
3565
|
+
} else if (side === 'left' || side === 'right') {
|
|
3566
|
+
// Adjust vertical position based on alignment for left/right
|
|
3567
|
+
if (align === 'center') {
|
|
3568
|
+
posY = y - menuHeight / 2;
|
|
3569
|
+
} else if (align === 'end') {
|
|
3570
|
+
posY = y - menuHeight;
|
|
3571
|
+
}
|
|
3572
|
+
}
|
|
3573
|
+
// Ensure menu stays within window bounds
|
|
3574
|
+
if (posX + menuWidth > windowWidth) {
|
|
3575
|
+
posX = windowWidth - menuWidth;
|
|
3576
|
+
}
|
|
3577
|
+
if (posX < 0) {
|
|
3578
|
+
posX = 0;
|
|
3579
|
+
}
|
|
3580
|
+
if (posY + menuHeight > windowHeight) {
|
|
3581
|
+
posY = windowHeight - menuHeight;
|
|
3582
|
+
}
|
|
3583
|
+
if (posY < 0) {
|
|
3584
|
+
posY = 0;
|
|
3585
|
+
}
|
|
3586
|
+
return {
|
|
3587
|
+
x: posX,
|
|
3588
|
+
y: posY
|
|
3589
|
+
};
|
|
3590
|
+
};
|
|
3591
|
+
|
|
3592
|
+
var _excluded$a = ["children", "disableNativeContextMenu", "views"],
|
|
3593
|
+
_excluded2$2 = ["items", "position", "side", "align", "views"],
|
|
3594
|
+
_excluded3$2 = ["item", "views"],
|
|
3595
|
+
_excluded4$2 = ["views"],
|
|
3596
|
+
_excluded5$1 = ["children", "items", "size", "variant", "disableNativeContextMenu", "views"];
|
|
3597
|
+
// Create context for the ContextMenu
|
|
3598
|
+
var ContextMenuContext = /*#__PURE__*/React.createContext({
|
|
3599
|
+
isOpen: false,
|
|
3600
|
+
setIsOpen: () => {},
|
|
3601
|
+
position: {
|
|
3602
|
+
x: 0,
|
|
3603
|
+
y: 0
|
|
3604
|
+
},
|
|
3605
|
+
setPosition: () => {},
|
|
3606
|
+
activeSubmenuId: null,
|
|
3607
|
+
setActiveSubmenuId: () => {},
|
|
3608
|
+
size: 'md',
|
|
3609
|
+
variant: 'default'
|
|
3610
|
+
});
|
|
3611
|
+
// Provider component for the ContextMenu context
|
|
3612
|
+
var ContextMenuProvider = _ref => {
|
|
3170
3613
|
var {
|
|
3171
|
-
|
|
3172
|
-
|
|
3614
|
+
children,
|
|
3615
|
+
value
|
|
3616
|
+
} = _ref;
|
|
3617
|
+
return /*#__PURE__*/React__default.createElement(ContextMenuContext.Provider, {
|
|
3618
|
+
value: value
|
|
3619
|
+
}, children);
|
|
3620
|
+
};
|
|
3621
|
+
// Hook to use the ContextMenu context
|
|
3622
|
+
var useContextMenuContext = () => {
|
|
3623
|
+
var context = React.useContext(ContextMenuContext);
|
|
3624
|
+
if (!context) {
|
|
3625
|
+
throw new Error('useContextMenuContext must be used within a ContextMenuProvider');
|
|
3626
|
+
}
|
|
3627
|
+
return context;
|
|
3628
|
+
};
|
|
3629
|
+
// ContextMenu Trigger component
|
|
3630
|
+
var ContextMenuTrigger = _ref2 => {
|
|
3631
|
+
var {
|
|
3632
|
+
children,
|
|
3633
|
+
disableNativeContextMenu = true,
|
|
3173
3634
|
views
|
|
3174
|
-
} =
|
|
3175
|
-
props = _objectWithoutPropertiesLoose(
|
|
3635
|
+
} = _ref2,
|
|
3636
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$a);
|
|
3176
3637
|
var {
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
} =
|
|
3180
|
-
var
|
|
3181
|
-
|
|
3638
|
+
setIsOpen,
|
|
3639
|
+
setPosition
|
|
3640
|
+
} = useContextMenuContext();
|
|
3641
|
+
var handleContextMenu = e => {
|
|
3642
|
+
if (disableNativeContextMenu) {
|
|
3643
|
+
e.preventDefault();
|
|
3644
|
+
}
|
|
3645
|
+
setPosition({
|
|
3646
|
+
x: e.clientX,
|
|
3647
|
+
y: e.clientY
|
|
3648
|
+
});
|
|
3649
|
+
setIsOpen(true);
|
|
3650
|
+
};
|
|
3651
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
3652
|
+
onContextMenu: handleContextMenu
|
|
3653
|
+
}, views == null ? void 0 : views.container, props), children);
|
|
3654
|
+
};
|
|
3655
|
+
// ContextMenu Content component
|
|
3656
|
+
var ContextMenuContent = _ref3 => {
|
|
3657
|
+
var {
|
|
3658
|
+
items,
|
|
3659
|
+
position,
|
|
3660
|
+
side = 'right',
|
|
3661
|
+
align = 'start',
|
|
3662
|
+
views
|
|
3663
|
+
} = _ref3,
|
|
3664
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$2);
|
|
3665
|
+
var {
|
|
3666
|
+
isOpen,
|
|
3667
|
+
position: contextPosition,
|
|
3668
|
+
// activeSubmenuId,
|
|
3669
|
+
// setActiveSubmenuId,
|
|
3670
|
+
// size,
|
|
3671
|
+
variant
|
|
3672
|
+
} = useContextMenuContext();
|
|
3673
|
+
var menuRef = React.useRef(null);
|
|
3674
|
+
var [menuPosition, setMenuPosition] = React.useState({
|
|
3675
|
+
x: 0,
|
|
3676
|
+
y: 0
|
|
3677
|
+
});
|
|
3678
|
+
// Calculate the position of the menu
|
|
3679
|
+
React.useEffect(() => {
|
|
3680
|
+
if (isOpen && menuRef.current) {
|
|
3681
|
+
var menuWidth = menuRef.current.offsetWidth;
|
|
3682
|
+
var menuHeight = menuRef.current.offsetHeight;
|
|
3683
|
+
var windowWidth = window.innerWidth;
|
|
3684
|
+
var windowHeight = window.innerHeight;
|
|
3685
|
+
var pos = position || contextPosition;
|
|
3686
|
+
var calculatedPosition = calculateMenuPosition(pos.x, pos.y, menuWidth, menuHeight, windowWidth, windowHeight, side, align);
|
|
3687
|
+
setMenuPosition(calculatedPosition);
|
|
3688
|
+
}
|
|
3689
|
+
}, [isOpen, contextPosition, position, side, align]);
|
|
3690
|
+
if (!isOpen) {
|
|
3691
|
+
return null;
|
|
3692
|
+
}
|
|
3693
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
3694
|
+
id: "context-menu",
|
|
3695
|
+
ref: menuRef,
|
|
3696
|
+
position: "fixed",
|
|
3697
|
+
top: menuPosition.y,
|
|
3698
|
+
left: menuPosition.x,
|
|
3699
|
+
zIndex: 1000,
|
|
3700
|
+
borderRadius: 4,
|
|
3701
|
+
boxShadow: "0px 2px 8px rgba(0, 0, 0, 0.15)",
|
|
3702
|
+
overflow: "hidden"
|
|
3703
|
+
}, ContextMenuVariants[variant], views == null ? void 0 : views.menu, props), items.map((item, index) => {
|
|
3704
|
+
if (item.divider) {
|
|
3705
|
+
return /*#__PURE__*/React__default.createElement(ContextMenuDivider, {
|
|
3706
|
+
key: "divider-" + index,
|
|
3707
|
+
views: views
|
|
3708
|
+
});
|
|
3709
|
+
}
|
|
3710
|
+
return /*#__PURE__*/React__default.createElement(ContextMenuItem, {
|
|
3711
|
+
key: item.id,
|
|
3712
|
+
item: item,
|
|
3713
|
+
views: views
|
|
3714
|
+
});
|
|
3715
|
+
}));
|
|
3716
|
+
};
|
|
3717
|
+
// ContextMenu Item component
|
|
3718
|
+
var ContextMenuItem = _ref4 => {
|
|
3719
|
+
var {
|
|
3720
|
+
item,
|
|
3721
|
+
views
|
|
3722
|
+
} = _ref4,
|
|
3723
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$2);
|
|
3724
|
+
var {
|
|
3725
|
+
activeSubmenuId,
|
|
3726
|
+
setActiveSubmenuId,
|
|
3727
|
+
size
|
|
3728
|
+
} = useContextMenuContext();
|
|
3729
|
+
var [isHovered, setIsHovered] = React.useState(false);
|
|
3730
|
+
var hasSubmenu = item.items && item.items.length > 0;
|
|
3731
|
+
var isSubmenuActive = activeSubmenuId === item.id;
|
|
3732
|
+
var itemRef = React.useRef(null);
|
|
3733
|
+
var [submenuPosition, setSubmenuPosition] = React.useState({
|
|
3734
|
+
x: 0,
|
|
3735
|
+
y: 0
|
|
3736
|
+
});
|
|
3737
|
+
// Handle mouse enter event
|
|
3738
|
+
var handleMouseEnter = () => {
|
|
3739
|
+
setIsHovered(true);
|
|
3740
|
+
if (hasSubmenu) {
|
|
3741
|
+
setActiveSubmenuId(item.id);
|
|
3742
|
+
}
|
|
3743
|
+
};
|
|
3744
|
+
// Handle mouse leave event
|
|
3745
|
+
var handleMouseLeave = () => {
|
|
3746
|
+
setIsHovered(false);
|
|
3747
|
+
};
|
|
3748
|
+
// Handle click event
|
|
3749
|
+
var handleClick = () => {
|
|
3750
|
+
if (item.disabled) return;
|
|
3751
|
+
if (!hasSubmenu && item.onClick) {
|
|
3752
|
+
item.onClick();
|
|
3753
|
+
}
|
|
3754
|
+
};
|
|
3755
|
+
// Calculate the position of the submenu
|
|
3756
|
+
React.useEffect(() => {
|
|
3757
|
+
if (isSubmenuActive && itemRef.current) {
|
|
3758
|
+
var rect = itemRef.current.getBoundingClientRect();
|
|
3759
|
+
setSubmenuPosition({
|
|
3760
|
+
x: rect.right,
|
|
3761
|
+
y: rect.top
|
|
3762
|
+
});
|
|
3763
|
+
}
|
|
3764
|
+
}, [isSubmenuActive]);
|
|
3765
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
3766
|
+
ref: itemRef,
|
|
3767
|
+
display: "flex",
|
|
3768
|
+
alignItems: "center",
|
|
3769
|
+
cursor: item.disabled ? 'not-allowed' : 'pointer',
|
|
3770
|
+
opacity: item.disabled ? 0.5 : 1,
|
|
3771
|
+
position: "relative"
|
|
3772
|
+
}, ContextMenuSizes[size], {
|
|
3773
|
+
_hover: !item.disabled ? ContextMenuItemStates.hover : {},
|
|
3774
|
+
backgroundColor: isHovered && !item.disabled ? 'color.gray.100' : 'transparent',
|
|
3775
|
+
onMouseEnter: handleMouseEnter,
|
|
3776
|
+
onMouseLeave: handleMouseLeave,
|
|
3777
|
+
onClick: handleClick
|
|
3778
|
+
}, views == null ? void 0 : views.item, props), item.icon && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
3779
|
+
marginRight: 8
|
|
3780
|
+
}, views == null ? void 0 : views.icon), item.icon)), /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
3781
|
+
flexGrow: 1
|
|
3782
|
+
}, item.label), hasSubmenu && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
3783
|
+
marginLeft: 8
|
|
3784
|
+
}, views == null ? void 0 : views.submenuIndicator), /*#__PURE__*/React__default.createElement("svg", {
|
|
3785
|
+
width: "16",
|
|
3786
|
+
height: "16",
|
|
3787
|
+
viewBox: "0 0 24 24",
|
|
3788
|
+
fill: "none",
|
|
3789
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
3790
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
3791
|
+
d: "M8.59 16.59L13.17 12L8.59 7.41L10 6L16 12L10 18L8.59 16.59Z",
|
|
3792
|
+
fill: "currentColor"
|
|
3793
|
+
})))), isSubmenuActive && hasSubmenu && (/*#__PURE__*/React__default.createElement(ContextMenuContent, {
|
|
3794
|
+
items: item.items || [],
|
|
3795
|
+
position: submenuPosition,
|
|
3796
|
+
side: "right",
|
|
3797
|
+
align: "start",
|
|
3798
|
+
views: views
|
|
3799
|
+
})));
|
|
3800
|
+
};
|
|
3801
|
+
// ContextMenu Divider component
|
|
3802
|
+
var ContextMenuDivider = _ref5 => {
|
|
3803
|
+
var {
|
|
3804
|
+
views
|
|
3805
|
+
} = _ref5,
|
|
3806
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$2);
|
|
3807
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
3808
|
+
height: "1px",
|
|
3809
|
+
backgroundColor: "color.gray.200",
|
|
3810
|
+
margin: "4px 0"
|
|
3811
|
+
}, views == null ? void 0 : views.divider, props));
|
|
3812
|
+
};
|
|
3813
|
+
// Main ContextMenu View component
|
|
3814
|
+
var ContextMenuView = _ref6 => {
|
|
3815
|
+
var {
|
|
3816
|
+
children,
|
|
3817
|
+
items,
|
|
3818
|
+
disableNativeContextMenu = true,
|
|
3819
|
+
views
|
|
3820
|
+
} = _ref6,
|
|
3821
|
+
props = _objectWithoutPropertiesLoose(_ref6, _excluded5$1);
|
|
3822
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(ContextMenuTrigger, Object.assign({
|
|
3823
|
+
disableNativeContextMenu: disableNativeContextMenu,
|
|
3824
|
+
views: views
|
|
3825
|
+
}, props), children), /*#__PURE__*/React__default.createElement(ContextMenuContent, {
|
|
3826
|
+
items: items,
|
|
3827
|
+
views: views
|
|
3828
|
+
}));
|
|
3829
|
+
};
|
|
3830
|
+
|
|
3831
|
+
var _excluded$b = ["children", "items", "size", "variant", "disableNativeContextMenu", "views"];
|
|
3832
|
+
/**
|
|
3833
|
+
* ContextMenu component for displaying a custom context menu on right-click.
|
|
3834
|
+
*/
|
|
3835
|
+
var ContextMenuComponent = _ref => {
|
|
3836
|
+
var {
|
|
3837
|
+
children,
|
|
3838
|
+
items,
|
|
3839
|
+
size = 'md',
|
|
3840
|
+
variant = 'default',
|
|
3841
|
+
disableNativeContextMenu = true,
|
|
3842
|
+
views
|
|
3843
|
+
} = _ref,
|
|
3844
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
3845
|
+
var {
|
|
3846
|
+
isOpen,
|
|
3847
|
+
setIsOpen,
|
|
3848
|
+
position,
|
|
3849
|
+
setPosition,
|
|
3850
|
+
activeSubmenuId,
|
|
3851
|
+
setActiveSubmenuId
|
|
3852
|
+
} = useContextMenuState();
|
|
3853
|
+
return /*#__PURE__*/React__default.createElement(ContextMenuProvider, {
|
|
3854
|
+
value: {
|
|
3855
|
+
isOpen,
|
|
3856
|
+
setIsOpen,
|
|
3857
|
+
position,
|
|
3858
|
+
setPosition,
|
|
3859
|
+
activeSubmenuId,
|
|
3860
|
+
setActiveSubmenuId,
|
|
3861
|
+
size,
|
|
3862
|
+
variant
|
|
3863
|
+
}
|
|
3864
|
+
}, /*#__PURE__*/React__default.createElement(ContextMenuView, Object.assign({
|
|
3865
|
+
items: items,
|
|
3866
|
+
size: size,
|
|
3867
|
+
variant: variant,
|
|
3868
|
+
disableNativeContextMenu: disableNativeContextMenu,
|
|
3869
|
+
views: views
|
|
3870
|
+
}, props), children));
|
|
3871
|
+
};
|
|
3872
|
+
var ContextMenu = ContextMenuComponent;
|
|
3873
|
+
// Assign the sub-components to the main component
|
|
3874
|
+
ContextMenu.Trigger = ContextMenuTrigger;
|
|
3875
|
+
ContextMenu.Content = ContextMenuContent;
|
|
3876
|
+
ContextMenu.Item = ContextMenuItem;
|
|
3877
|
+
ContextMenu.Divider = ContextMenuDivider;
|
|
3878
|
+
|
|
3879
|
+
var _excluded$c = ["src", "color", "views", "themeMode"],
|
|
3880
|
+
_excluded2$3 = ["path"];
|
|
3881
|
+
var FileSVG = _ref => {
|
|
3882
|
+
var {
|
|
3883
|
+
src,
|
|
3884
|
+
color,
|
|
3885
|
+
views
|
|
3886
|
+
} = _ref,
|
|
3887
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
3888
|
+
var {
|
|
3889
|
+
getColor,
|
|
3890
|
+
themeMode
|
|
3891
|
+
} = appStudio.useTheme();
|
|
3892
|
+
var Colorprops = color ? {
|
|
3893
|
+
fill: getColor(color, {
|
|
3182
3894
|
themeMode
|
|
3183
3895
|
}),
|
|
3184
3896
|
stroke: getColor(color, {
|
|
@@ -3195,7 +3907,7 @@
|
|
|
3195
3907
|
var {
|
|
3196
3908
|
path
|
|
3197
3909
|
} = _ref2,
|
|
3198
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
3910
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$3);
|
|
3199
3911
|
return /*#__PURE__*/React__default.createElement(appStudio.Image, Object.assign({
|
|
3200
3912
|
src: path
|
|
3201
3913
|
}, props));
|
|
@@ -3246,7 +3958,7 @@
|
|
|
3246
3958
|
};
|
|
3247
3959
|
};
|
|
3248
3960
|
|
|
3249
|
-
var _excluded$
|
|
3961
|
+
var _excluded$d = ["children", "views"];
|
|
3250
3962
|
var HelperText = _ref => {
|
|
3251
3963
|
var {
|
|
3252
3964
|
children,
|
|
@@ -3254,7 +3966,7 @@
|
|
|
3254
3966
|
helperText: {}
|
|
3255
3967
|
}
|
|
3256
3968
|
} = _ref,
|
|
3257
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3969
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
3258
3970
|
return /*#__PURE__*/React__default.createElement(Text, Object.assign({
|
|
3259
3971
|
size: "xs",
|
|
3260
3972
|
marginVertical: 0,
|
|
@@ -3263,7 +3975,7 @@
|
|
|
3263
3975
|
}, views['helperText'], props), children);
|
|
3264
3976
|
};
|
|
3265
3977
|
|
|
3266
|
-
var _excluded$
|
|
3978
|
+
var _excluded$e = ["children", "helperText", "error", "views"];
|
|
3267
3979
|
var FieldContainer = _ref => {
|
|
3268
3980
|
var {
|
|
3269
3981
|
children,
|
|
@@ -3271,7 +3983,7 @@
|
|
|
3271
3983
|
error = false,
|
|
3272
3984
|
views
|
|
3273
3985
|
} = _ref,
|
|
3274
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3986
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
|
3275
3987
|
return /*#__PURE__*/React__default.createElement(Vertical, Object.assign({
|
|
3276
3988
|
gap: 5,
|
|
3277
3989
|
position: "relative"
|
|
@@ -3330,7 +4042,7 @@
|
|
|
3330
4042
|
paddingRight: 16
|
|
3331
4043
|
};
|
|
3332
4044
|
|
|
3333
|
-
var _excluded$
|
|
4045
|
+
var _excluded$f = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "isWithLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "views"];
|
|
3334
4046
|
var FieldContent = _ref => {
|
|
3335
4047
|
var {
|
|
3336
4048
|
shadow,
|
|
@@ -3348,7 +4060,7 @@
|
|
|
3348
4060
|
pickerBox: {}
|
|
3349
4061
|
}
|
|
3350
4062
|
} = _ref,
|
|
3351
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4063
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
|
|
3352
4064
|
var isInteractive = (isHovered || isFocused) && !isDisabled;
|
|
3353
4065
|
var color = error ? 'error' : isInteractive ? 'theme.primary' : 'midgray';
|
|
3354
4066
|
return /*#__PURE__*/React__default.createElement(Horizontal, Object.assign({
|
|
@@ -3369,12 +4081,12 @@
|
|
|
3369
4081
|
}, isWithLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant], views['box'], props), children);
|
|
3370
4082
|
};
|
|
3371
4083
|
|
|
3372
|
-
var _excluded$
|
|
4084
|
+
var _excluded$g = ["children"];
|
|
3373
4085
|
var FieldIcons = _ref => {
|
|
3374
4086
|
var {
|
|
3375
4087
|
children
|
|
3376
4088
|
} = _ref,
|
|
3377
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4089
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
3378
4090
|
return /*#__PURE__*/React__default.createElement(Center, Object.assign({
|
|
3379
4091
|
gap: 10,
|
|
3380
4092
|
right: 16,
|
|
@@ -3426,7 +4138,7 @@
|
|
|
3426
4138
|
}
|
|
3427
4139
|
};
|
|
3428
4140
|
|
|
3429
|
-
var _excluded$
|
|
4141
|
+
var _excluded$h = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
|
|
3430
4142
|
var LabelView = _ref => {
|
|
3431
4143
|
var {
|
|
3432
4144
|
children,
|
|
@@ -3442,7 +4154,7 @@
|
|
|
3442
4154
|
size = 'sm'
|
|
3443
4155
|
// The fontSize prop for the Element is determined by the 'size' prop passed to LabelView.
|
|
3444
4156
|
} = _ref,
|
|
3445
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4157
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
3446
4158
|
// The fontStyle prop toggles between 'italic' and 'normal' based on the 'isItalic' boolean prop.
|
|
3447
4159
|
var headingStyles = heading ? HeadingSizes$1[heading] : {};
|
|
3448
4160
|
// fontWeight is derived from the Typography module, ensuring consistent font weighting across the app.
|
|
@@ -3474,7 +4186,7 @@
|
|
|
3474
4186
|
var Label = LabelComponent;
|
|
3475
4187
|
// Export the 'LabelComponent' as 'Label' to be reused throughout the project.
|
|
3476
4188
|
|
|
3477
|
-
var _excluded$
|
|
4189
|
+
var _excluded$i = ["children", "size", "error", "color", "views", "helperText"];
|
|
3478
4190
|
var FieldLabel = _ref => {
|
|
3479
4191
|
var {
|
|
3480
4192
|
children,
|
|
@@ -3485,7 +4197,7 @@
|
|
|
3485
4197
|
label: {}
|
|
3486
4198
|
}
|
|
3487
4199
|
} = _ref,
|
|
3488
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4200
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
3489
4201
|
return /*#__PURE__*/React__default.createElement(Label, Object.assign({
|
|
3490
4202
|
top: 6,
|
|
3491
4203
|
zIndex: 1000,
|
|
@@ -3498,12 +4210,12 @@
|
|
|
3498
4210
|
}, views['label'], props), children);
|
|
3499
4211
|
};
|
|
3500
4212
|
|
|
3501
|
-
var _excluded$
|
|
4213
|
+
var _excluded$j = ["children"];
|
|
3502
4214
|
var FieldWrapper = _ref => {
|
|
3503
4215
|
var {
|
|
3504
4216
|
children
|
|
3505
4217
|
} = _ref,
|
|
3506
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4218
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
3507
4219
|
return /*#__PURE__*/React__default.createElement(Vertical, Object.assign({
|
|
3508
4220
|
width: "100%",
|
|
3509
4221
|
maxWidth: '100%'
|
|
@@ -3520,10 +4232,10 @@
|
|
|
3520
4232
|
xl: 16
|
|
3521
4233
|
};
|
|
3522
4234
|
|
|
3523
|
-
var _excluded$
|
|
3524
|
-
_excluded2$
|
|
3525
|
-
_excluded3$
|
|
3526
|
-
_excluded4$
|
|
4235
|
+
var _excluded$k = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
|
|
4236
|
+
_excluded2$4 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
|
|
4237
|
+
_excluded3$3 = ["option", "size", "removeOption"],
|
|
4238
|
+
_excluded4$3 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isMulti", "isFocused", "isHovered", "isDisabled", "isReadOnly", "options", "shadow", "size", "shape", "variant", "views", "onChange", "setHide", "setValue", "setIsHovered", "setIsFocused", "setHighlightedIndex", "highlightedIndex"];
|
|
3527
4239
|
// Defines a component to render individual selection items within a list.
|
|
3528
4240
|
var Item = _ref => {
|
|
3529
4241
|
var {
|
|
@@ -3534,7 +4246,7 @@
|
|
|
3534
4246
|
callback = () => {},
|
|
3535
4247
|
style
|
|
3536
4248
|
} = _ref,
|
|
3537
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4249
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
|
3538
4250
|
// Handles the click event on an option by invoking the callback with the selected option's value.
|
|
3539
4251
|
var handleOptionClick = option => callback(option);
|
|
3540
4252
|
// Toggles the hover state on the item.
|
|
@@ -3604,7 +4316,7 @@
|
|
|
3604
4316
|
isReadOnly = false,
|
|
3605
4317
|
options = []
|
|
3606
4318
|
} = _ref4,
|
|
3607
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded2$
|
|
4319
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded2$4);
|
|
3608
4320
|
var handleChange = event => {
|
|
3609
4321
|
if (onChange) onChange(event);
|
|
3610
4322
|
};
|
|
@@ -3694,7 +4406,7 @@
|
|
|
3694
4406
|
size = 'md',
|
|
3695
4407
|
removeOption = () => {}
|
|
3696
4408
|
} = _ref6,
|
|
3697
|
-
props = _objectWithoutPropertiesLoose(_ref6, _excluded3$
|
|
4409
|
+
props = _objectWithoutPropertiesLoose(_ref6, _excluded3$3);
|
|
3698
4410
|
var handleClick = () => removeOption(option);
|
|
3699
4411
|
return /*#__PURE__*/React__default.createElement(Horizontal, Object.assign({
|
|
3700
4412
|
gap: 10,
|
|
@@ -3749,7 +4461,7 @@
|
|
|
3749
4461
|
setHighlightedIndex,
|
|
3750
4462
|
highlightedIndex
|
|
3751
4463
|
} = _ref7,
|
|
3752
|
-
props = _objectWithoutPropertiesLoose(_ref7, _excluded4$
|
|
4464
|
+
props = _objectWithoutPropertiesLoose(_ref7, _excluded4$3);
|
|
3753
4465
|
var isWithLabel = !!(isFocused && label);
|
|
3754
4466
|
var handleHover = () => setIsHovered(!isHovered);
|
|
3755
4467
|
var handleFocus = () => setIsFocused(true);
|
|
@@ -3994,7 +4706,7 @@
|
|
|
3994
4706
|
}
|
|
3995
4707
|
};
|
|
3996
4708
|
|
|
3997
|
-
var _excluded$
|
|
4709
|
+
var _excluded$l = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "value", "isHovered", "isDisabled", "isReadOnly", "on", "setOn", "onChange", "setValue", "setIsHovered", "helperText", "views"];
|
|
3998
4710
|
var SwitchContent = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
|
|
3999
4711
|
type: "checkbox"
|
|
4000
4712
|
}, props));
|
|
@@ -4023,7 +4735,7 @@
|
|
|
4023
4735
|
label: {}
|
|
4024
4736
|
}
|
|
4025
4737
|
} = _ref,
|
|
4026
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4738
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
4027
4739
|
var handleToggle = event => {
|
|
4028
4740
|
if (!isReadOnly) {
|
|
4029
4741
|
setValue(!value);
|
|
@@ -4113,7 +4825,7 @@
|
|
|
4113
4825
|
// Export of the useTextAreaState hook for external usage.
|
|
4114
4826
|
};
|
|
4115
4827
|
|
|
4116
|
-
var _excluded$
|
|
4828
|
+
var _excluded$m = ["id", "name", "hint", "error", "value", "label", "shadow", "helperText", "placeholder", "size", "shape", "variant", "isHovered", "isFocused", "isEditable", "isReadOnly", "isDisabled", "isAutoFocus", "isMultiline", "maxRows", "maxCols", "onBlur", "onChange", "onFocus", "onChangeText", "setHint", "setValue", "setIsFocused", "setIsHovered", "views"];
|
|
4117
4829
|
var TextAreaView = _ref => {
|
|
4118
4830
|
var {
|
|
4119
4831
|
id,
|
|
@@ -4152,7 +4864,7 @@
|
|
|
4152
4864
|
field: {}
|
|
4153
4865
|
}
|
|
4154
4866
|
} = _ref,
|
|
4155
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4867
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
|
|
4156
4868
|
var isWithLabel = !!(isFocused && label);
|
|
4157
4869
|
var fieldStyles = Object.assign({
|
|
4158
4870
|
margin: 0,
|
|
@@ -4281,7 +4993,7 @@
|
|
|
4281
4993
|
};
|
|
4282
4994
|
};
|
|
4283
4995
|
|
|
4284
|
-
var _excluded$
|
|
4996
|
+
var _excluded$n = ["id", "name", "label", "hint", "value", "onChange", "left", "right", "helperText", "placeholder", "onChangeText", "shadow", "views", "size", "shape", "variant", "error", "isFocused", "isHovered", "isDisabled", "isReadOnly", "isClearable", "isAutoFocus", "setHint", "setIsFocused", "setIsHovered", "setValue", "onClick", "onFocus", "onBlur", "themeMode"];
|
|
4285
4997
|
var TextFieldInput = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
|
|
4286
4998
|
type: "text"
|
|
4287
4999
|
}, props));
|
|
@@ -4324,7 +5036,7 @@
|
|
|
4324
5036
|
onBlur = () => {},
|
|
4325
5037
|
themeMode: elementMode
|
|
4326
5038
|
} = _ref,
|
|
4327
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5039
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
4328
5040
|
var {
|
|
4329
5041
|
getColor,
|
|
4330
5042
|
themeMode
|
|
@@ -4505,7 +5217,7 @@
|
|
|
4505
5217
|
'6xl': 60
|
|
4506
5218
|
};
|
|
4507
5219
|
|
|
4508
|
-
var _excluded$
|
|
5220
|
+
var _excluded$o = ["id", "icon", "name", "label", "isChecked", "onChange", "onValueChange", "shadow", "labelPosition", "size", "error", "isSelected", "isHovered", "isDisabled", "isReadOnly", "isIndeterminate", "defaultIsSelected", "setIsSelected", "setIsHovered", "views", "infoText", "helperText"];
|
|
4509
5221
|
var CheckboxView = _ref => {
|
|
4510
5222
|
var {
|
|
4511
5223
|
id,
|
|
@@ -4532,7 +5244,7 @@
|
|
|
4532
5244
|
},
|
|
4533
5245
|
infoText
|
|
4534
5246
|
} = _ref,
|
|
4535
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5247
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
|
|
4536
5248
|
var handleHover = () => setIsHovered(!isHovered);
|
|
4537
5249
|
var handleChange = () => {
|
|
4538
5250
|
if (!isReadOnly && !isDisabled) {
|
|
@@ -6096,11 +6808,11 @@
|
|
|
6096
6808
|
xl: 16
|
|
6097
6809
|
};
|
|
6098
6810
|
|
|
6099
|
-
var _excluded$
|
|
6100
|
-
_excluded2$
|
|
6101
|
-
_excluded3$
|
|
6811
|
+
var _excluded$p = ["size"],
|
|
6812
|
+
_excluded2$5 = ["size"],
|
|
6813
|
+
_excluded3$4 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isHovered", "isFocused", "isAutoFocus", "isDisabled", "isReadOnly", "shadow", "newOptions", "size", "variant", "shape", "onChange", "onBlur", "setHide", "setNewOptions", "setIsHovered", "setIsFocused", "setValue", "views", "themeMode"];
|
|
6102
6814
|
var CountryList = _ref => {
|
|
6103
|
-
var props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
6815
|
+
var props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
6104
6816
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
6105
6817
|
as: "ul"
|
|
6106
6818
|
}, props));
|
|
@@ -6109,7 +6821,7 @@
|
|
|
6109
6821
|
type: "country"
|
|
6110
6822
|
}, props)));
|
|
6111
6823
|
var CountryItem = _ref2 => {
|
|
6112
|
-
var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
6824
|
+
var props = _objectWithoutPropertiesLoose(_ref2, _excluded2$5);
|
|
6113
6825
|
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
6114
6826
|
as: "li"
|
|
6115
6827
|
}, props));
|
|
@@ -6212,7 +6924,7 @@
|
|
|
6212
6924
|
},
|
|
6213
6925
|
themeMode: elementMode
|
|
6214
6926
|
} = _ref5,
|
|
6215
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded3$
|
|
6927
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded3$4);
|
|
6216
6928
|
var {
|
|
6217
6929
|
getColor,
|
|
6218
6930
|
themeMode
|
|
@@ -6339,7 +7051,7 @@
|
|
|
6339
7051
|
};
|
|
6340
7052
|
};
|
|
6341
7053
|
|
|
6342
|
-
var _excluded$
|
|
7054
|
+
var _excluded$q = ["id", "icon", "name", "label", "date", "children", "helperText", "shadow", "size", "variant", "shape", "views", "error", "isHovered", "isFocused", "isDisabled", "isReadOnly", "setDate", "setIsFocused", "setIsHovered", "onChange", "onChangeText"];
|
|
6343
7055
|
var DatePickerContent = props => /*#__PURE__*/React__default.createElement(appStudio.Input, Object.assign({
|
|
6344
7056
|
type: "date"
|
|
6345
7057
|
}, props));
|
|
@@ -6372,7 +7084,7 @@
|
|
|
6372
7084
|
onChange,
|
|
6373
7085
|
onChangeText
|
|
6374
7086
|
} = _ref,
|
|
6375
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7087
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
|
|
6376
7088
|
var isWithLabel = !!(isFocused && label);
|
|
6377
7089
|
var handleHover = () => setIsHovered(!isHovered);
|
|
6378
7090
|
var handleFocus = () => setIsFocused(true);
|
|
@@ -6459,8 +7171,8 @@
|
|
|
6459
7171
|
}, props, textFieldStates);
|
|
6460
7172
|
};
|
|
6461
7173
|
|
|
6462
|
-
var _excluded$
|
|
6463
|
-
_excluded2$
|
|
7174
|
+
var _excluded$r = ["visibleIcon", "hiddenIcon"],
|
|
7175
|
+
_excluded2$6 = ["isVisible", "setIsVisible"];
|
|
6464
7176
|
var PasswordComponent = _ref => {
|
|
6465
7177
|
var {
|
|
6466
7178
|
visibleIcon = /*#__PURE__*/React__default.createElement(OpenEyeIcon, {
|
|
@@ -6470,13 +7182,13 @@
|
|
|
6470
7182
|
widthHeight: 14
|
|
6471
7183
|
})
|
|
6472
7184
|
} = _ref,
|
|
6473
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7185
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
|
|
6474
7186
|
var _usePasswordState = usePasswordState(props),
|
|
6475
7187
|
{
|
|
6476
7188
|
isVisible,
|
|
6477
7189
|
setIsVisible
|
|
6478
7190
|
} = _usePasswordState,
|
|
6479
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
7191
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$6);
|
|
6480
7192
|
return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
6481
7193
|
type: isVisible ? 'text' : 'password',
|
|
6482
7194
|
isClearable: false,
|
|
@@ -6524,7 +7236,7 @@
|
|
|
6524
7236
|
};
|
|
6525
7237
|
};
|
|
6526
7238
|
|
|
6527
|
-
var _excluded$
|
|
7239
|
+
var _excluded$s = ["placeholder", "items", "showTick", "onSelect", "searchEnabled", "left", "right", "label", "filteredItems", "setSelectedItem", "selectedItem", "highlightedIndex", "setHighlightedIndex", "searchQuery", "setSearchQuery", "setFilteredItems", "views", "isDropdownVisible", "setIsDropdownVisible"];
|
|
6528
7240
|
// Defines the functional component 'ComboBoxView' with destructured props.
|
|
6529
7241
|
var ComboBoxView = _ref => {
|
|
6530
7242
|
var {
|
|
@@ -6549,7 +7261,7 @@
|
|
|
6549
7261
|
setIsDropdownVisible
|
|
6550
7262
|
// Collects all further props not destructured explicitly.
|
|
6551
7263
|
} = _ref,
|
|
6552
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7264
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
|
|
6553
7265
|
// Sets up an effect to handle clicking outside the dropdown to close it.
|
|
6554
7266
|
React.useEffect(() => {
|
|
6555
7267
|
var handleClickOutside = event => {
|
|
@@ -6660,7 +7372,7 @@
|
|
|
6660
7372
|
}))))))))))));
|
|
6661
7373
|
};
|
|
6662
7374
|
|
|
6663
|
-
var _excluded$
|
|
7375
|
+
var _excluded$t = ["id", "name", "items", "placeholder", "searchPlaceholder"];
|
|
6664
7376
|
// Defines the ComboBoxComponent functional component with ComboBoxProps
|
|
6665
7377
|
var ComboBoxComponent = _ref => {
|
|
6666
7378
|
var {
|
|
@@ -6676,7 +7388,7 @@
|
|
|
6676
7388
|
searchPlaceholder
|
|
6677
7389
|
// Destructures the rest of the props not explicitly defined
|
|
6678
7390
|
} = _ref,
|
|
6679
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7391
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
6680
7392
|
// Initializes ComboBox state using custom hook with items and placeholders
|
|
6681
7393
|
var state = useComboBoxState(items, placeholder, searchPlaceholder);
|
|
6682
7394
|
return (
|
|
@@ -6692,7 +7404,7 @@
|
|
|
6692
7404
|
// Exports the ComboBoxComponent as ComboBox
|
|
6693
7405
|
var ComboBox = ComboBoxComponent;
|
|
6694
7406
|
|
|
6695
|
-
var _excluded$
|
|
7407
|
+
var _excluded$u = ["children", "autoFocus", "initFocus", "onChange"];
|
|
6696
7408
|
var FocusContext = /*#__PURE__*/React.createContext({
|
|
6697
7409
|
active: false,
|
|
6698
7410
|
focusNextInput: () => {},
|
|
@@ -6708,7 +7420,7 @@
|
|
|
6708
7420
|
initFocus,
|
|
6709
7421
|
onChange = () => {}
|
|
6710
7422
|
} = _ref,
|
|
6711
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7423
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
|
|
6712
7424
|
var formik$1 = formik.useFormikContext();
|
|
6713
7425
|
React.useEffect(() => {
|
|
6714
7426
|
onChange(formik$1.values);
|
|
@@ -6756,7 +7468,7 @@
|
|
|
6756
7468
|
}, /*#__PURE__*/React__default.createElement(appStudio.Form, Object.assign({}, props), children));
|
|
6757
7469
|
};
|
|
6758
7470
|
|
|
6759
|
-
var _excluded$
|
|
7471
|
+
var _excluded$v = ["name", "type"];
|
|
6760
7472
|
var getInputTypeProps = type => {
|
|
6761
7473
|
switch (type) {
|
|
6762
7474
|
case 'email':
|
|
@@ -6795,7 +7507,7 @@
|
|
|
6795
7507
|
name,
|
|
6796
7508
|
type
|
|
6797
7509
|
} = _ref,
|
|
6798
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7510
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
|
|
6799
7511
|
var focus = useFormFocus();
|
|
6800
7512
|
var {
|
|
6801
7513
|
touched,
|
|
@@ -6839,13 +7551,13 @@
|
|
|
6839
7551
|
} : {});
|
|
6840
7552
|
};
|
|
6841
7553
|
|
|
6842
|
-
var _excluded$
|
|
7554
|
+
var _excluded$w = ["value"];
|
|
6843
7555
|
var CheckboxComponent$1 = props => {
|
|
6844
7556
|
var _useFormikInput = useFormikInput(props),
|
|
6845
7557
|
{
|
|
6846
7558
|
value
|
|
6847
7559
|
} = _useFormikInput,
|
|
6848
|
-
formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$
|
|
7560
|
+
formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$w);
|
|
6849
7561
|
formProps.isChecked = value;
|
|
6850
7562
|
var checkboxStates = useCheckboxState(props);
|
|
6851
7563
|
return /*#__PURE__*/React__default.createElement(CheckboxView, Object.assign({}, checkboxStates, formProps));
|
|
@@ -6903,11 +7615,11 @@
|
|
|
6903
7615
|
*/
|
|
6904
7616
|
var FormikTextArea = TextAreaComponent$1;
|
|
6905
7617
|
|
|
6906
|
-
var _excluded$
|
|
7618
|
+
var _excluded$x = ["value"];
|
|
6907
7619
|
var TextFieldComponent$1 = props => {
|
|
6908
7620
|
var formProps = useFormikInput(props);
|
|
6909
7621
|
var _useTextFieldState = useTextFieldState(props),
|
|
6910
|
-
textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$
|
|
7622
|
+
textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$x);
|
|
6911
7623
|
return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, textFieldStates, formProps));
|
|
6912
7624
|
};
|
|
6913
7625
|
/**
|
|
@@ -6915,8 +7627,8 @@
|
|
|
6915
7627
|
*/
|
|
6916
7628
|
var FormikTextField = TextFieldComponent$1;
|
|
6917
7629
|
|
|
6918
|
-
var _excluded$
|
|
6919
|
-
_excluded2$
|
|
7630
|
+
var _excluded$y = ["visibleIcon", "hiddenIcon"],
|
|
7631
|
+
_excluded2$7 = ["isVisible", "setIsVisible"];
|
|
6920
7632
|
var PasswordComponent$1 = _ref => {
|
|
6921
7633
|
var {
|
|
6922
7634
|
visibleIcon = /*#__PURE__*/React__default.createElement(OpenEyeIcon, {
|
|
@@ -6926,14 +7638,14 @@
|
|
|
6926
7638
|
widthHeight: 14
|
|
6927
7639
|
})
|
|
6928
7640
|
} = _ref,
|
|
6929
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7641
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
|
|
6930
7642
|
var formProps = useFormikInput(props);
|
|
6931
7643
|
var _usePasswordState = usePasswordState(formProps),
|
|
6932
7644
|
{
|
|
6933
7645
|
isVisible,
|
|
6934
7646
|
setIsVisible
|
|
6935
7647
|
} = _usePasswordState,
|
|
6936
|
-
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$
|
|
7648
|
+
passwordProps = _objectWithoutPropertiesLoose(_usePasswordState, _excluded2$7);
|
|
6937
7649
|
return /*#__PURE__*/React__default.createElement(TextFieldView, Object.assign({}, passwordProps, {
|
|
6938
7650
|
type: isVisible ? 'text' : 'password',
|
|
6939
7651
|
isClearable: false,
|
|
@@ -6951,14 +7663,14 @@
|
|
|
6951
7663
|
*/
|
|
6952
7664
|
var FormikPassword = PasswordComponent$1;
|
|
6953
7665
|
|
|
6954
|
-
var _excluded$
|
|
7666
|
+
var _excluded$z = ["items", "placeholder", "searchPlaceholder"];
|
|
6955
7667
|
var ComboBoxComponent$1 = _ref => {
|
|
6956
7668
|
var {
|
|
6957
7669
|
items,
|
|
6958
7670
|
placeholder,
|
|
6959
7671
|
searchPlaceholder
|
|
6960
7672
|
} = _ref,
|
|
6961
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7673
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
|
|
6962
7674
|
var formProps = useFormikInput(props);
|
|
6963
7675
|
var ComboBoxStates = useComboBoxState(items, placeholder, searchPlaceholder);
|
|
6964
7676
|
// Ensure the onChange function from formProps is being called when an item is selected
|
|
@@ -6974,98 +7686,654 @@
|
|
|
6974
7686
|
*/
|
|
6975
7687
|
var FormikComboBox = ComboBoxComponent$1;
|
|
6976
7688
|
|
|
6977
|
-
//
|
|
6978
|
-
var
|
|
6979
|
-
|
|
6980
|
-
|
|
6981
|
-
|
|
6982
|
-
|
|
6983
|
-
|
|
6984
|
-
|
|
6985
|
-
|
|
6986
|
-
|
|
6987
|
-
|
|
6988
|
-
|
|
6989
|
-
|
|
6990
|
-
|
|
6991
|
-
|
|
6992
|
-
|
|
6993
|
-
|
|
6994
|
-
|
|
6995
|
-
|
|
7689
|
+
// Clamp value between min and max
|
|
7690
|
+
var clamp = (value, min, max) => Math.min(Math.max(value, min), max);
|
|
7691
|
+
// Calculate value based on position, track dimensions, min, max, step
|
|
7692
|
+
var calculateValue = (position, trackRect, min, max, step, orientation, stepValues) => {
|
|
7693
|
+
var range = max - min;
|
|
7694
|
+
var percentage;
|
|
7695
|
+
if (orientation === 'horizontal') {
|
|
7696
|
+
var trackLength = trackRect.width;
|
|
7697
|
+
var relativePosition = position - trackRect.left;
|
|
7698
|
+
percentage = clamp(relativePosition / trackLength, 0, 1);
|
|
7699
|
+
} else {
|
|
7700
|
+
// Vertical: top is max, bottom is min (reversed from the provided code)
|
|
7701
|
+
var _trackLength = trackRect.height;
|
|
7702
|
+
var _relativePosition = trackRect.bottom - position; // Y position relative to track bottom
|
|
7703
|
+
percentage = clamp(_relativePosition / _trackLength, 0, 1);
|
|
7704
|
+
}
|
|
7705
|
+
// If stepValues are provided, find the closest value in the array
|
|
7706
|
+
if (stepValues && stepValues.length > 0) {
|
|
7707
|
+
var rawValue = min + percentage * range;
|
|
7708
|
+
// Find the closest value in stepValues
|
|
7709
|
+
var closestValue = stepValues[0];
|
|
7710
|
+
var minDistance = Math.abs(rawValue - closestValue);
|
|
7711
|
+
for (var i = 1; i < stepValues.length; i++) {
|
|
7712
|
+
var distance = Math.abs(rawValue - stepValues[i]);
|
|
7713
|
+
if (distance < minDistance) {
|
|
7714
|
+
minDistance = distance;
|
|
7715
|
+
closestValue = stepValues[i];
|
|
7716
|
+
}
|
|
6996
7717
|
}
|
|
6997
|
-
return
|
|
6998
|
-
|
|
6999
|
-
|
|
7000
|
-
|
|
7001
|
-
|
|
7002
|
-
|
|
7003
|
-
|
|
7004
|
-
|
|
7005
|
-
actionText,
|
|
7006
|
-
showIcon,
|
|
7007
|
-
timeout
|
|
7008
|
-
});
|
|
7009
|
-
},
|
|
7010
|
-
hide: () => set({
|
|
7011
|
-
visible: false
|
|
7012
|
-
})
|
|
7013
|
-
}));
|
|
7014
|
-
var showMessage = (variant, title, subtitle, props) => {
|
|
7015
|
-
useMessageStore.getState().show(variant, title, subtitle, props == null ? void 0 : props.isClosable, props == null ? void 0 : props.views, props == null ? void 0 : props.action, props == null ? void 0 : props.actionText, props == null ? void 0 : props.showIcon, props == null ? void 0 : props.timeout);
|
|
7718
|
+
return closestValue;
|
|
7719
|
+
} else {
|
|
7720
|
+
// Use regular step logic
|
|
7721
|
+
var _rawValue = min + percentage * range;
|
|
7722
|
+
var steppedValue = Math.round(_rawValue / step) * step;
|
|
7723
|
+
// Final clamp to ensure step rounding doesn't exceed bounds
|
|
7724
|
+
return clamp(steppedValue, min, max);
|
|
7725
|
+
}
|
|
7016
7726
|
};
|
|
7017
|
-
var
|
|
7018
|
-
|
|
7727
|
+
var useSliderState = _ref => {
|
|
7728
|
+
var _ref2;
|
|
7729
|
+
var {
|
|
7730
|
+
min = 0,
|
|
7731
|
+
max = 100,
|
|
7732
|
+
step = 1,
|
|
7733
|
+
value: controlledValue = 0,
|
|
7734
|
+
defaultValue,
|
|
7735
|
+
onChange,
|
|
7736
|
+
onDrag,
|
|
7737
|
+
orientation = 'horizontal',
|
|
7738
|
+
isDisabled = false,
|
|
7739
|
+
stepValues
|
|
7740
|
+
} = _ref;
|
|
7741
|
+
var initialValue = clamp((_ref2 = controlledValue != null ? controlledValue : defaultValue) != null ? _ref2 : min, min, max);
|
|
7742
|
+
var [internalValue, setInternalValue] = React.useState(initialValue);
|
|
7743
|
+
var [isDragging, setIsDragging] = React.useState(false);
|
|
7744
|
+
var [isHovered, setIsHovered] = React.useState(false);
|
|
7745
|
+
var trackRef = React.useRef(null);
|
|
7746
|
+
var thumbRef = React.useRef(null);
|
|
7747
|
+
var isControlled = controlledValue !== undefined;
|
|
7748
|
+
var currentValue = isControlled ? controlledValue : internalValue;
|
|
7749
|
+
// Update internal state if controlled value changes
|
|
7750
|
+
React.useEffect(() => {
|
|
7751
|
+
if (isControlled) {
|
|
7752
|
+
setInternalValue(clamp(controlledValue, min, max));
|
|
7753
|
+
}
|
|
7754
|
+
}, [controlledValue, isControlled, min, max]);
|
|
7755
|
+
var updateValue = React.useCallback(newValue => {
|
|
7756
|
+
var clampedValue = clamp(newValue, min, max);
|
|
7757
|
+
if (!isControlled) {
|
|
7758
|
+
setInternalValue(clampedValue);
|
|
7759
|
+
}
|
|
7760
|
+
if (onChange && clampedValue !== currentValue) {
|
|
7761
|
+
onChange(clampedValue);
|
|
7762
|
+
}
|
|
7763
|
+
if (isDragging && onDrag) {
|
|
7764
|
+
onDrag(clampedValue);
|
|
7765
|
+
}
|
|
7766
|
+
}, [isControlled, min, max, onChange, currentValue, isDragging, onDrag]);
|
|
7767
|
+
var handleInteraction = React.useCallback(event => {
|
|
7768
|
+
if (isDisabled || !trackRef.current) return;
|
|
7769
|
+
var trackRect = trackRef.current.getBoundingClientRect();
|
|
7770
|
+
var position;
|
|
7771
|
+
if ('touches' in event) {
|
|
7772
|
+
position = orientation === 'horizontal' ? event.touches[0].clientX : event.touches[0].clientY;
|
|
7773
|
+
} else {
|
|
7774
|
+
position = orientation === 'horizontal' ? event.clientX : event.clientY;
|
|
7775
|
+
}
|
|
7776
|
+
var newValue = calculateValue(position, trackRect, min, max, step, orientation, stepValues);
|
|
7777
|
+
updateValue(newValue);
|
|
7778
|
+
}, [min, max, step, orientation, updateValue, isDisabled, stepValues]);
|
|
7779
|
+
var handleMouseDown = React.useCallback(event => {
|
|
7780
|
+
if (isDisabled) return;
|
|
7781
|
+
event.preventDefault(); // Prevent text selection during drag
|
|
7782
|
+
setIsDragging(true);
|
|
7783
|
+
handleInteraction(event); // Update value immediately on click/touch
|
|
7784
|
+
var handleMouseMove = moveEvent => {
|
|
7785
|
+
handleInteraction(moveEvent);
|
|
7786
|
+
};
|
|
7787
|
+
var handleMouseUp = () => {
|
|
7788
|
+
setIsDragging(false);
|
|
7789
|
+
document.removeEventListener('mousemove', handleMouseMove);
|
|
7790
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
7791
|
+
document.removeEventListener('touchmove', handleMouseMove);
|
|
7792
|
+
document.removeEventListener('touchend', handleMouseUp);
|
|
7793
|
+
};
|
|
7794
|
+
document.addEventListener('mousemove', handleMouseMove);
|
|
7795
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
7796
|
+
document.addEventListener('touchmove', handleMouseMove);
|
|
7797
|
+
document.addEventListener('touchend', handleMouseUp);
|
|
7798
|
+
}, [handleInteraction, isDisabled]);
|
|
7799
|
+
// Allow clicking directly on the track
|
|
7800
|
+
var handleTrackMouseDown = React.useCallback(event => {
|
|
7801
|
+
// Prevent triggering if click is on the thumb itself
|
|
7802
|
+
if (thumbRef.current && thumbRef.current.contains(event.target)) {
|
|
7803
|
+
return;
|
|
7804
|
+
}
|
|
7805
|
+
handleMouseDown(event);
|
|
7806
|
+
}, [handleMouseDown]);
|
|
7807
|
+
var handleKeyDown = React.useCallback(event => {
|
|
7808
|
+
if (isDisabled) return;
|
|
7809
|
+
var newValue = currentValue;
|
|
7810
|
+
switch (event.key) {
|
|
7811
|
+
case 'ArrowLeft':
|
|
7812
|
+
case 'ArrowDown':
|
|
7813
|
+
newValue = currentValue - step;
|
|
7814
|
+
break;
|
|
7815
|
+
case 'ArrowRight':
|
|
7816
|
+
case 'ArrowUp':
|
|
7817
|
+
newValue = currentValue + step;
|
|
7818
|
+
break;
|
|
7819
|
+
case 'Home':
|
|
7820
|
+
newValue = min;
|
|
7821
|
+
break;
|
|
7822
|
+
case 'End':
|
|
7823
|
+
newValue = max;
|
|
7824
|
+
break;
|
|
7825
|
+
default:
|
|
7826
|
+
return;
|
|
7827
|
+
// Exit if key is not handled
|
|
7828
|
+
}
|
|
7829
|
+
event.preventDefault(); // Prevent page scroll
|
|
7830
|
+
updateValue(newValue);
|
|
7831
|
+
}, [currentValue, min, max, step, updateValue, isDisabled]);
|
|
7832
|
+
var range = max - min;
|
|
7833
|
+
var thumbPositionPercent = range === 0 ? 0 : (currentValue - min) / range * 100;
|
|
7834
|
+
return {
|
|
7835
|
+
currentValue,
|
|
7836
|
+
isDragging,
|
|
7837
|
+
isHovered,
|
|
7838
|
+
setIsHovered,
|
|
7839
|
+
trackRef,
|
|
7840
|
+
thumbRef,
|
|
7841
|
+
handleThumbMouseDown: handleMouseDown,
|
|
7842
|
+
handleTrackMouseDown,
|
|
7843
|
+
handleKeyDown,
|
|
7844
|
+
thumbPositionPercent
|
|
7845
|
+
};
|
|
7019
7846
|
};
|
|
7020
7847
|
|
|
7021
|
-
var
|
|
7022
|
-
|
|
7023
|
-
|
|
7024
|
-
|
|
7025
|
-
border: 'color.blue.400'
|
|
7026
|
-
},
|
|
7027
|
-
icon: {
|
|
7028
|
-
color: 'color.blue.500',
|
|
7029
|
-
name: 'InformationIcon'
|
|
7030
|
-
},
|
|
7031
|
-
content: {
|
|
7032
|
-
color: 'color.blue.500'
|
|
7033
|
-
},
|
|
7034
|
-
close: {
|
|
7035
|
-
color: 'color.blue.500',
|
|
7036
|
-
name: 'CloseIcon'
|
|
7037
|
-
}
|
|
7848
|
+
var SliderSizes$1 = {
|
|
7849
|
+
xs: {
|
|
7850
|
+
height: 4,
|
|
7851
|
+
width: '100%'
|
|
7038
7852
|
},
|
|
7039
|
-
|
|
7040
|
-
|
|
7041
|
-
|
|
7042
|
-
border: 'color.green.400'
|
|
7043
|
-
},
|
|
7044
|
-
icon: {
|
|
7045
|
-
color: 'color.green.500',
|
|
7046
|
-
name: 'CheckCircleIcon'
|
|
7047
|
-
},
|
|
7048
|
-
content: {
|
|
7049
|
-
color: 'color.green.500'
|
|
7050
|
-
},
|
|
7051
|
-
close: {
|
|
7052
|
-
color: 'color.green.500',
|
|
7053
|
-
name: 'CloseIcon'
|
|
7054
|
-
}
|
|
7853
|
+
sm: {
|
|
7854
|
+
height: 6,
|
|
7855
|
+
width: '100%'
|
|
7055
7856
|
},
|
|
7056
|
-
|
|
7057
|
-
|
|
7058
|
-
|
|
7059
|
-
|
|
7060
|
-
|
|
7061
|
-
|
|
7062
|
-
|
|
7063
|
-
|
|
7064
|
-
|
|
7065
|
-
|
|
7066
|
-
|
|
7067
|
-
|
|
7068
|
-
|
|
7857
|
+
md: {
|
|
7858
|
+
height: 8,
|
|
7859
|
+
width: '100%'
|
|
7860
|
+
},
|
|
7861
|
+
lg: {
|
|
7862
|
+
height: 10,
|
|
7863
|
+
width: '100%'
|
|
7864
|
+
},
|
|
7865
|
+
xl: {
|
|
7866
|
+
height: 12,
|
|
7867
|
+
width: '100%'
|
|
7868
|
+
}
|
|
7869
|
+
};
|
|
7870
|
+
var ThumbSizes = {
|
|
7871
|
+
xs: {
|
|
7872
|
+
width: 12,
|
|
7873
|
+
height: 12
|
|
7874
|
+
},
|
|
7875
|
+
sm: {
|
|
7876
|
+
width: 16,
|
|
7877
|
+
height: 16
|
|
7878
|
+
},
|
|
7879
|
+
md: {
|
|
7880
|
+
width: 20,
|
|
7881
|
+
height: 20
|
|
7882
|
+
},
|
|
7883
|
+
lg: {
|
|
7884
|
+
width: 24,
|
|
7885
|
+
height: 24
|
|
7886
|
+
},
|
|
7887
|
+
xl: {
|
|
7888
|
+
width: 28,
|
|
7889
|
+
height: 28
|
|
7890
|
+
}
|
|
7891
|
+
};
|
|
7892
|
+
var SliderShapes = {
|
|
7893
|
+
sharp: 0,
|
|
7894
|
+
rounded: 4,
|
|
7895
|
+
pillShaped: 24
|
|
7896
|
+
};
|
|
7897
|
+
var SliderVariants = {
|
|
7898
|
+
default: {
|
|
7899
|
+
backgroundColor: 'color.blueGray.200'
|
|
7900
|
+
},
|
|
7901
|
+
outline: {
|
|
7902
|
+
backgroundColor: 'transparent',
|
|
7903
|
+
borderWidth: 1,
|
|
7904
|
+
borderStyle: 'solid',
|
|
7905
|
+
borderColor: 'color.blueGray.300'
|
|
7906
|
+
}
|
|
7907
|
+
};
|
|
7908
|
+
// Maps Size enum to track height/width and thumb size for the new implementation
|
|
7909
|
+
var EnhancedSliderSizes = {
|
|
7910
|
+
xs: {
|
|
7911
|
+
trackCrossAxisSize: 4,
|
|
7912
|
+
thumbSize: 12
|
|
7913
|
+
},
|
|
7914
|
+
sm: {
|
|
7915
|
+
trackCrossAxisSize: 6,
|
|
7916
|
+
thumbSize: 16
|
|
7917
|
+
},
|
|
7918
|
+
md: {
|
|
7919
|
+
trackCrossAxisSize: 8,
|
|
7920
|
+
thumbSize: 20
|
|
7921
|
+
},
|
|
7922
|
+
lg: {
|
|
7923
|
+
trackCrossAxisSize: 10,
|
|
7924
|
+
thumbSize: 24
|
|
7925
|
+
},
|
|
7926
|
+
xl: {
|
|
7927
|
+
trackCrossAxisSize: 12,
|
|
7928
|
+
thumbSize: 28
|
|
7929
|
+
}
|
|
7930
|
+
};
|
|
7931
|
+
// Basic styles for horizontal and vertical orientation
|
|
7932
|
+
var OrientationStyles = {
|
|
7933
|
+
horizontal: {
|
|
7934
|
+
width: '100%',
|
|
7935
|
+
minWidth: '120px',
|
|
7936
|
+
height: 'auto',
|
|
7937
|
+
flexDirection: 'row',
|
|
7938
|
+
paddingVertical: 8
|
|
7939
|
+
},
|
|
7940
|
+
vertical: {
|
|
7941
|
+
height: '100%',
|
|
7942
|
+
minHeight: '120px',
|
|
7943
|
+
width: 'auto',
|
|
7944
|
+
flexDirection: 'column-reverse',
|
|
7945
|
+
paddingHorizontal: 8
|
|
7946
|
+
}
|
|
7947
|
+
};
|
|
7948
|
+
|
|
7949
|
+
var _excluded$A = ["min", "max", "step", "currentValue", "stepValues", "shape", "size", "variant", "orientation", "isDisabled", "showValue", "showTooltip", "colorScheme", "label", "helperText", "themeMode", "shadow", "isDragging", "isHovered", "setIsHovered", "trackRef", "thumbRef", "handleThumbMouseDown", "handleTrackMouseDown", "handleKeyDown", "thumbPositionPercent", "ariaLabel", "views"];
|
|
7950
|
+
var SliderView = _ref => {
|
|
7951
|
+
var _views$tooltip, _views$tooltip2;
|
|
7952
|
+
var {
|
|
7953
|
+
min = 0,
|
|
7954
|
+
max = 100,
|
|
7955
|
+
step = 1,
|
|
7956
|
+
currentValue,
|
|
7957
|
+
stepValues,
|
|
7958
|
+
shape = 'rounded',
|
|
7959
|
+
size = 'md',
|
|
7960
|
+
variant = 'default',
|
|
7961
|
+
orientation = 'horizontal',
|
|
7962
|
+
isDisabled = false,
|
|
7963
|
+
showValue = false,
|
|
7964
|
+
showTooltip = false,
|
|
7965
|
+
colorScheme = 'theme.primary',
|
|
7966
|
+
label,
|
|
7967
|
+
helperText,
|
|
7968
|
+
themeMode: elementMode,
|
|
7969
|
+
shadow = {},
|
|
7970
|
+
isDragging,
|
|
7971
|
+
isHovered,
|
|
7972
|
+
setIsHovered,
|
|
7973
|
+
trackRef,
|
|
7974
|
+
thumbRef,
|
|
7975
|
+
handleThumbMouseDown,
|
|
7976
|
+
handleTrackMouseDown,
|
|
7977
|
+
handleKeyDown,
|
|
7978
|
+
thumbPositionPercent,
|
|
7979
|
+
ariaLabel = 'Slider',
|
|
7980
|
+
views = {
|
|
7981
|
+
container: {},
|
|
7982
|
+
track: {},
|
|
7983
|
+
progress: {},
|
|
7984
|
+
filledTrack: {},
|
|
7985
|
+
thumb: {},
|
|
7986
|
+
label: {},
|
|
7987
|
+
valueLabel: {},
|
|
7988
|
+
stepMarks: {},
|
|
7989
|
+
tooltip: {}
|
|
7990
|
+
}
|
|
7991
|
+
} = _ref,
|
|
7992
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
|
|
7993
|
+
var {
|
|
7994
|
+
getColor,
|
|
7995
|
+
themeMode
|
|
7996
|
+
} = appStudio.useTheme();
|
|
7997
|
+
var themeColor = getColor(colorScheme, elementMode || themeMode);
|
|
7998
|
+
var disabledColor = getColor('theme.disabled', elementMode || themeMode);
|
|
7999
|
+
var trackColor = getColor(SliderVariants[variant].backgroundColor, elementMode || themeMode);
|
|
8000
|
+
var isVertical = orientation === 'vertical';
|
|
8001
|
+
var {
|
|
8002
|
+
trackCrossAxisSize,
|
|
8003
|
+
thumbSize
|
|
8004
|
+
} = EnhancedSliderSizes[size] || {
|
|
8005
|
+
trackCrossAxisSize: SliderSizes$1[size].height,
|
|
8006
|
+
thumbSize: ThumbSizes[size].width || 16
|
|
8007
|
+
};
|
|
8008
|
+
// For backward compatibility with the old implementation
|
|
8009
|
+
var legacyView = /*#__PURE__*/React__default.createElement(Vertical, Object.assign({
|
|
8010
|
+
width: "100%",
|
|
8011
|
+
gap: 8
|
|
8012
|
+
}, views.container, props), label && (/*#__PURE__*/React__default.createElement(Horizontal, {
|
|
8013
|
+
justifyContent: "space-between",
|
|
8014
|
+
alignItems: "center"
|
|
8015
|
+
}, /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
8016
|
+
fontSize: 14,
|
|
8017
|
+
fontWeight: 500
|
|
8018
|
+
}, views.label), label), showValue && (/*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
8019
|
+
fontSize: 14,
|
|
8020
|
+
color: "color.blueGray.500"
|
|
8021
|
+
}, views.valueLabel), currentValue)))), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
8022
|
+
ref: trackRef,
|
|
8023
|
+
position: "relative",
|
|
8024
|
+
cursor: isDisabled ? 'not-allowed' : 'pointer',
|
|
8025
|
+
opacity: isDisabled ? 0.6 : 1,
|
|
8026
|
+
onMouseDown: handleTrackMouseDown,
|
|
8027
|
+
onMouseEnter: () => setIsHovered(true),
|
|
8028
|
+
onMouseLeave: () => setIsHovered(false)
|
|
8029
|
+
}, SliderSizes$1[size], {
|
|
8030
|
+
borderRadius: SliderShapes[shape],
|
|
8031
|
+
backgroundColor: trackColor
|
|
8032
|
+
}, SliderVariants[variant], shadow, views.track), stepValues && stepValues.length > 0 && (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, stepValues.map(stepValue => {
|
|
8033
|
+
var stepPercentage = (stepValue - min) / (max - min) * 100;
|
|
8034
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
8035
|
+
key: stepValue,
|
|
8036
|
+
position: "absolute",
|
|
8037
|
+
top: "50%",
|
|
8038
|
+
left: stepPercentage + "%",
|
|
8039
|
+
transform: "translate(-50%, -50%)",
|
|
8040
|
+
width: 4,
|
|
8041
|
+
height: 4,
|
|
8042
|
+
borderRadius: "50%",
|
|
8043
|
+
backgroundColor: isDisabled ? disabledColor : themeColor,
|
|
8044
|
+
zIndex: 1
|
|
8045
|
+
}, views.stepMarks));
|
|
8046
|
+
}))), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
8047
|
+
position: "absolute",
|
|
8048
|
+
top: 0,
|
|
8049
|
+
left: 0,
|
|
8050
|
+
height: "100%",
|
|
8051
|
+
width: thumbPositionPercent + "%",
|
|
8052
|
+
backgroundColor: isDisabled ? disabledColor : themeColor,
|
|
8053
|
+
borderRadius: SliderShapes[shape],
|
|
8054
|
+
transition: "width 0.1s ease-in-out"
|
|
8055
|
+
}, views.progress, views.filledTrack)), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
8056
|
+
ref: thumbRef,
|
|
8057
|
+
role: "slider",
|
|
8058
|
+
tabIndex: isDisabled ? -1 : 0,
|
|
8059
|
+
"aria-valuemin": min,
|
|
8060
|
+
"aria-valuemax": max,
|
|
8061
|
+
"aria-valuenow": currentValue,
|
|
8062
|
+
"aria-orientation": orientation,
|
|
8063
|
+
"aria-disabled": isDisabled,
|
|
8064
|
+
"aria-label": ariaLabel,
|
|
8065
|
+
position: "absolute",
|
|
8066
|
+
top: "50%",
|
|
8067
|
+
left: thumbPositionPercent + "%",
|
|
8068
|
+
borderRadius: "50%",
|
|
8069
|
+
backgroundColor: "white",
|
|
8070
|
+
boxShadow: "0 2px 4px rgba(0, 0, 0, 0.2)",
|
|
8071
|
+
border: "2px solid " + (isDisabled ? disabledColor : themeColor),
|
|
8072
|
+
transition: isDragging ? 'none' : 'transform 0.1s ease-in-out',
|
|
8073
|
+
transform: isHovered ? 'translate(-50%, -50%) scale(1.1)' : 'translate(-50%, -50%)',
|
|
8074
|
+
zIndex: 2,
|
|
8075
|
+
onMouseDown: handleThumbMouseDown,
|
|
8076
|
+
onTouchStart: handleThumbMouseDown,
|
|
8077
|
+
onKeyDown: handleKeyDown
|
|
8078
|
+
}, ThumbSizes[size], views.thumb), showTooltip && (isHovered || isDragging) && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
8079
|
+
position: "absolute",
|
|
8080
|
+
bottom: "100%",
|
|
8081
|
+
left: "50%",
|
|
8082
|
+
transform: "translateX(-50%)",
|
|
8083
|
+
marginBottom: 8,
|
|
8084
|
+
padding: "4px 8px",
|
|
8085
|
+
backgroundColor: "color.black",
|
|
8086
|
+
color: "color.white",
|
|
8087
|
+
borderRadius: 4,
|
|
8088
|
+
fontSize: 12,
|
|
8089
|
+
whiteSpace: "nowrap",
|
|
8090
|
+
zIndex: 3
|
|
8091
|
+
}, views.tooltip), /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({}, (_views$tooltip = views.tooltip) == null ? void 0 : _views$tooltip.text), currentValue == null ? void 0 : currentValue.toFixed(step < 1 ? 1 : 0)))))), helperText && /*#__PURE__*/React__default.createElement(HelperText, null, helperText));
|
|
8092
|
+
// Enhanced view with vertical support and other features
|
|
8093
|
+
var enhancedView = /*#__PURE__*/React__default.createElement(Center
|
|
8094
|
+
// Use Center to easily manage orientation layout
|
|
8095
|
+
, Object.assign({}, OrientationStyles[orientation], {
|
|
8096
|
+
position: "relative" // Needed for absolute positioning of thumb/tooltip
|
|
8097
|
+
,
|
|
8098
|
+
onMouseEnter: () => !isDisabled && setIsHovered(true),
|
|
8099
|
+
onMouseLeave: () => !isDisabled && setIsHovered(false)
|
|
8100
|
+
}, props, views == null ? void 0 : views.container), label && (/*#__PURE__*/React__default.createElement(Horizontal, {
|
|
8101
|
+
justifyContent: "space-between",
|
|
8102
|
+
alignItems: "center",
|
|
8103
|
+
marginBottom: 8,
|
|
8104
|
+
width: "100%"
|
|
8105
|
+
}, /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
8106
|
+
fontSize: 14,
|
|
8107
|
+
fontWeight: 500
|
|
8108
|
+
}, views.label), label), showValue && (/*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
8109
|
+
fontSize: 14,
|
|
8110
|
+
color: "color.blueGray.500"
|
|
8111
|
+
}, views.valueLabel), currentValue)))), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
8112
|
+
ref: trackRef,
|
|
8113
|
+
position: "relative",
|
|
8114
|
+
borderRadius: trackCrossAxisSize / 2,
|
|
8115
|
+
backgroundColor: isDisabled ? disabledColor : trackColor,
|
|
8116
|
+
cursor: isDisabled ? 'not-allowed' : 'pointer',
|
|
8117
|
+
width: isVertical ? trackCrossAxisSize + "px" : '100%',
|
|
8118
|
+
height: isVertical ? '100%' : trackCrossAxisSize + "px",
|
|
8119
|
+
onMouseDown: handleTrackMouseDown,
|
|
8120
|
+
onTouchStart: handleTrackMouseDown
|
|
8121
|
+
}, views == null ? void 0 : views.track), stepValues && stepValues.length > 0 && (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, stepValues.map(stepValue => {
|
|
8122
|
+
var stepPercentage = (stepValue - min) / (max - min) * 100;
|
|
8123
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
8124
|
+
key: stepValue,
|
|
8125
|
+
position: "absolute",
|
|
8126
|
+
width: 4,
|
|
8127
|
+
height: 4,
|
|
8128
|
+
borderRadius: "50%",
|
|
8129
|
+
backgroundColor: isDisabled ? disabledColor : themeColor,
|
|
8130
|
+
zIndex: 1
|
|
8131
|
+
}, isVertical ? {
|
|
8132
|
+
bottom: stepPercentage + "%",
|
|
8133
|
+
left: '50%',
|
|
8134
|
+
transform: 'translate(-50%, 50%)'
|
|
8135
|
+
} : {
|
|
8136
|
+
left: stepPercentage + "%",
|
|
8137
|
+
top: '50%',
|
|
8138
|
+
transform: 'translate(-50%, -50%)'
|
|
8139
|
+
}, views.stepMarks));
|
|
8140
|
+
}))), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
8141
|
+
position: "absolute",
|
|
8142
|
+
borderRadius: trackCrossAxisSize / 2,
|
|
8143
|
+
backgroundColor: isDisabled ? disabledColor : themeColor
|
|
8144
|
+
}, isVertical ? {
|
|
8145
|
+
bottom: 0,
|
|
8146
|
+
left: 0,
|
|
8147
|
+
width: '100%',
|
|
8148
|
+
height: thumbPositionPercent + "%"
|
|
8149
|
+
} : {
|
|
8150
|
+
top: 0,
|
|
8151
|
+
left: 0,
|
|
8152
|
+
height: '100%',
|
|
8153
|
+
width: thumbPositionPercent + "%"
|
|
8154
|
+
}, views == null ? void 0 : views.filledTrack, views == null ? void 0 : views.progress)), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
8155
|
+
ref: thumbRef,
|
|
8156
|
+
role: "slider",
|
|
8157
|
+
tabIndex: isDisabled ? -1 : 0,
|
|
8158
|
+
"aria-valuemin": min,
|
|
8159
|
+
"aria-valuemax": max,
|
|
8160
|
+
"aria-valuenow": currentValue,
|
|
8161
|
+
"aria-orientation": orientation,
|
|
8162
|
+
"aria-disabled": isDisabled,
|
|
8163
|
+
"aria-label": ariaLabel,
|
|
8164
|
+
position: "absolute",
|
|
8165
|
+
width: thumbSize + "px",
|
|
8166
|
+
height: thumbSize + "px",
|
|
8167
|
+
borderRadius: "50%",
|
|
8168
|
+
backgroundColor: isDisabled ? disabledColor : themeColor,
|
|
8169
|
+
border: "2px solid " + getColor('color.white'),
|
|
8170
|
+
boxShadow: "0 1px 3px rgba(0, 0, 0, 0.2)",
|
|
8171
|
+
cursor: isDisabled ? 'not-allowed' : 'grab',
|
|
8172
|
+
transform: isVertical ? 'translateX(-50%)' : 'translateY(-50%)',
|
|
8173
|
+
zIndex: 2,
|
|
8174
|
+
transition: isDragging ? 'none' : 'left 0.1s, bottom 0.1s'
|
|
8175
|
+
}, isVertical ? {
|
|
8176
|
+
left: '50%',
|
|
8177
|
+
bottom: thumbPositionPercent + "%"
|
|
8178
|
+
} : {
|
|
8179
|
+
top: '50%',
|
|
8180
|
+
left: thumbPositionPercent + "%"
|
|
8181
|
+
}, {
|
|
8182
|
+
onMouseDown: handleThumbMouseDown,
|
|
8183
|
+
onTouchStart: handleThumbMouseDown,
|
|
8184
|
+
onKeyDown: handleKeyDown
|
|
8185
|
+
}, views == null ? void 0 : views.thumb), showTooltip && (isHovered || isDragging) && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
8186
|
+
position: "absolute",
|
|
8187
|
+
padding: "4px 8px",
|
|
8188
|
+
backgroundColor: getColor('color.black'),
|
|
8189
|
+
color: getColor('color.white'),
|
|
8190
|
+
borderRadius: "4px",
|
|
8191
|
+
fontSize: "12px",
|
|
8192
|
+
whiteSpace: "nowrap",
|
|
8193
|
+
zIndex: 3
|
|
8194
|
+
}, isVertical ? {
|
|
8195
|
+
left: '100%',
|
|
8196
|
+
marginLeft: '8px',
|
|
8197
|
+
bottom: '0',
|
|
8198
|
+
transform: 'translateY(50%)'
|
|
8199
|
+
} : {
|
|
8200
|
+
bottom: '100%',
|
|
8201
|
+
left: '50%',
|
|
8202
|
+
marginBottom: '8px',
|
|
8203
|
+
transform: 'translateX(-50%)'
|
|
8204
|
+
}, views == null ? void 0 : views.tooltip), /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({}, views == null || (_views$tooltip2 = views.tooltip) == null ? void 0 : _views$tooltip2.text), currentValue == null ? void 0 : currentValue.toFixed(step < 1 ? 1 : 0)))))), helperText && /*#__PURE__*/React__default.createElement(HelperText, {
|
|
8205
|
+
marginTop: 8
|
|
8206
|
+
}, helperText));
|
|
8207
|
+
// Use the enhanced view if orientation is vertical or showTooltip is true
|
|
8208
|
+
// Otherwise use the legacy view for backward compatibility
|
|
8209
|
+
return isVertical || showTooltip ? enhancedView : legacyView;
|
|
8210
|
+
};
|
|
8211
|
+
|
|
8212
|
+
var SliderComponent = props => {
|
|
8213
|
+
// Get Formik props (value, onChange, etc.)
|
|
8214
|
+
var formProps = useFormikInput(props);
|
|
8215
|
+
// Get slider state and handlers
|
|
8216
|
+
var sliderState = useSliderState(Object.assign({}, props, {
|
|
8217
|
+
value: formProps.value !== undefined ? Number(formProps.value) : undefined,
|
|
8218
|
+
onChange: value => {
|
|
8219
|
+
// Call Formik's onChange
|
|
8220
|
+
formProps.onChange(value);
|
|
8221
|
+
// Call the original onChange if provided
|
|
8222
|
+
props.onChange == null || props.onChange(value);
|
|
8223
|
+
}
|
|
8224
|
+
}));
|
|
8225
|
+
// Render the slider with both Formik props and slider state
|
|
8226
|
+
return /*#__PURE__*/React__default.createElement(SliderView, Object.assign({}, props, sliderState, formProps));
|
|
8227
|
+
};
|
|
8228
|
+
/**
|
|
8229
|
+
* Slider component integrated with Formik for form state management.
|
|
8230
|
+
* Allows users to select a value from a range by moving a handle.
|
|
8231
|
+
*/
|
|
8232
|
+
var FormikSlider = SliderComponent;
|
|
8233
|
+
|
|
8234
|
+
var SliderComponent$1 = props => {
|
|
8235
|
+
// Get state and handlers from the custom hook
|
|
8236
|
+
var sliderState = useSliderState(props);
|
|
8237
|
+
// Render the view component, passing down props and state
|
|
8238
|
+
return /*#__PURE__*/React__default.createElement(SliderView, Object.assign({}, props, sliderState));
|
|
8239
|
+
};
|
|
8240
|
+
/**
|
|
8241
|
+
* Slider allows users to select a value from a range by moving a handle.
|
|
8242
|
+
*/
|
|
8243
|
+
var Slider = SliderComponent$1;
|
|
8244
|
+
|
|
8245
|
+
// Create your store with the initial state and actions.
|
|
8246
|
+
var useMessageStore = /*#__PURE__*/zustand.create(set => ({
|
|
8247
|
+
// initial state
|
|
8248
|
+
visible: false,
|
|
8249
|
+
title: '',
|
|
8250
|
+
subtitle: '',
|
|
8251
|
+
variant: 'info',
|
|
8252
|
+
isClosable: false,
|
|
8253
|
+
views: {},
|
|
8254
|
+
action: () => {},
|
|
8255
|
+
actionText: '',
|
|
8256
|
+
showIcon: false,
|
|
8257
|
+
timeout: 3000,
|
|
8258
|
+
show: function show(variant, title, subtitle, isClosable, views, action, actionText, showIcon, timeout) {
|
|
8259
|
+
if (title === void 0) {
|
|
8260
|
+
title = '';
|
|
8261
|
+
}
|
|
8262
|
+
if (subtitle === void 0) {
|
|
8263
|
+
subtitle = '';
|
|
8264
|
+
}
|
|
8265
|
+
return set({
|
|
8266
|
+
visible: true,
|
|
8267
|
+
variant,
|
|
8268
|
+
title,
|
|
8269
|
+
subtitle,
|
|
8270
|
+
isClosable,
|
|
8271
|
+
views,
|
|
8272
|
+
action,
|
|
8273
|
+
actionText,
|
|
8274
|
+
showIcon,
|
|
8275
|
+
timeout
|
|
8276
|
+
});
|
|
8277
|
+
},
|
|
8278
|
+
hide: () => set({
|
|
8279
|
+
visible: false
|
|
8280
|
+
})
|
|
8281
|
+
}));
|
|
8282
|
+
var showMessage = (variant, title, subtitle, props) => {
|
|
8283
|
+
useMessageStore.getState().show(variant, title, subtitle, props == null ? void 0 : props.isClosable, props == null ? void 0 : props.views, props == null ? void 0 : props.action, props == null ? void 0 : props.actionText, props == null ? void 0 : props.showIcon, props == null ? void 0 : props.timeout);
|
|
8284
|
+
};
|
|
8285
|
+
var hideMessage = () => {
|
|
8286
|
+
useMessageStore.getState().hide();
|
|
8287
|
+
};
|
|
8288
|
+
|
|
8289
|
+
var Themes$1 = {
|
|
8290
|
+
info: {
|
|
8291
|
+
container: {
|
|
8292
|
+
backgroundColor: 'color.blue.200',
|
|
8293
|
+
border: 'color.blue.400'
|
|
8294
|
+
},
|
|
8295
|
+
icon: {
|
|
8296
|
+
color: 'color.blue.500',
|
|
8297
|
+
name: 'InformationIcon'
|
|
8298
|
+
},
|
|
8299
|
+
content: {
|
|
8300
|
+
color: 'color.blue.500'
|
|
8301
|
+
},
|
|
8302
|
+
close: {
|
|
8303
|
+
color: 'color.blue.500',
|
|
8304
|
+
name: 'CloseIcon'
|
|
8305
|
+
}
|
|
8306
|
+
},
|
|
8307
|
+
success: {
|
|
8308
|
+
container: {
|
|
8309
|
+
backgroundColor: 'color.green.200',
|
|
8310
|
+
border: 'color.green.400'
|
|
8311
|
+
},
|
|
8312
|
+
icon: {
|
|
8313
|
+
color: 'color.green.500',
|
|
8314
|
+
name: 'CheckCircleIcon'
|
|
8315
|
+
},
|
|
8316
|
+
content: {
|
|
8317
|
+
color: 'color.green.500'
|
|
8318
|
+
},
|
|
8319
|
+
close: {
|
|
8320
|
+
color: 'color.green.500',
|
|
8321
|
+
name: 'CloseIcon'
|
|
8322
|
+
}
|
|
8323
|
+
},
|
|
8324
|
+
error: {
|
|
8325
|
+
container: {
|
|
8326
|
+
backgroundColor: 'color.red.200',
|
|
8327
|
+
border: 'color.red.400'
|
|
8328
|
+
},
|
|
8329
|
+
icon: {
|
|
8330
|
+
color: 'color.red.500',
|
|
8331
|
+
name: 'ErrrorIcon'
|
|
8332
|
+
},
|
|
8333
|
+
content: {
|
|
8334
|
+
color: 'color.red.500'
|
|
8335
|
+
},
|
|
8336
|
+
close: {
|
|
7069
8337
|
color: 'color.red.500',
|
|
7070
8338
|
name: 'CloseIcon'
|
|
7071
8339
|
}
|
|
@@ -7506,7 +8774,7 @@
|
|
|
7506
8774
|
}, views == null ? void 0 : views.view)));
|
|
7507
8775
|
};
|
|
7508
8776
|
|
|
7509
|
-
var _excluded$
|
|
8777
|
+
var _excluded$B = ["accept", "icon", "text", "maxSize", "onFileSelect", "validateFile", "isLoading", "progress"];
|
|
7510
8778
|
var Uploader = _ref => {
|
|
7511
8779
|
var {
|
|
7512
8780
|
accept = '*/*',
|
|
@@ -7518,7 +8786,7 @@
|
|
|
7518
8786
|
isLoading = false,
|
|
7519
8787
|
progress = 0
|
|
7520
8788
|
} = _ref,
|
|
7521
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8789
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
|
|
7522
8790
|
var {
|
|
7523
8791
|
previewUrl,
|
|
7524
8792
|
thumbnailUrl,
|
|
@@ -7655,11 +8923,11 @@
|
|
|
7655
8923
|
xl: 28
|
|
7656
8924
|
};
|
|
7657
8925
|
|
|
7658
|
-
var _excluded$
|
|
7659
|
-
_excluded2$
|
|
7660
|
-
_excluded3$
|
|
7661
|
-
_excluded4$
|
|
7662
|
-
_excluded5$
|
|
8926
|
+
var _excluded$C = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
|
|
8927
|
+
_excluded2$8 = ["children", "shadow", "isFullScreen", "shape", "views"],
|
|
8928
|
+
_excluded3$5 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
|
|
8929
|
+
_excluded4$4 = ["children", "views"],
|
|
8930
|
+
_excluded5$2 = ["children", "views"];
|
|
7663
8931
|
var ModalOverlay = _ref => {
|
|
7664
8932
|
var {
|
|
7665
8933
|
children,
|
|
@@ -7670,7 +8938,7 @@
|
|
|
7670
8938
|
position = 'center',
|
|
7671
8939
|
views
|
|
7672
8940
|
} = _ref,
|
|
7673
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8941
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$C);
|
|
7674
8942
|
var handleClick = () => {
|
|
7675
8943
|
if (!isClosePrevented) onClose();
|
|
7676
8944
|
};
|
|
@@ -7704,7 +8972,7 @@
|
|
|
7704
8972
|
shape = 'rounded',
|
|
7705
8973
|
views
|
|
7706
8974
|
} = _ref2,
|
|
7707
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$
|
|
8975
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$8);
|
|
7708
8976
|
var defaultShadow = typeof document !== undefined ? {
|
|
7709
8977
|
boxShadow: '0px 2px 8px rgba(0, 0, 0, 0.3)'
|
|
7710
8978
|
} : {
|
|
@@ -7736,7 +9004,7 @@
|
|
|
7736
9004
|
buttonPosition = 'right',
|
|
7737
9005
|
views
|
|
7738
9006
|
} = _ref3,
|
|
7739
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$
|
|
9007
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$5);
|
|
7740
9008
|
var onClose = props.onClose ? props.onClose : hideModal;
|
|
7741
9009
|
var buttonIcon = /*#__PURE__*/React__default.createElement(Button, {
|
|
7742
9010
|
onClick: onClose,
|
|
@@ -7761,7 +9029,7 @@
|
|
|
7761
9029
|
children,
|
|
7762
9030
|
views
|
|
7763
9031
|
} = _ref4,
|
|
7764
|
-
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$
|
|
9032
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$4);
|
|
7765
9033
|
var defaultBorder = {
|
|
7766
9034
|
borderBottomWidth: 2,
|
|
7767
9035
|
borderTopWidth: 2,
|
|
@@ -7778,7 +9046,7 @@
|
|
|
7778
9046
|
children,
|
|
7779
9047
|
views
|
|
7780
9048
|
} = _ref5,
|
|
7781
|
-
props = _objectWithoutPropertiesLoose(_ref5, _excluded5$
|
|
9049
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded5$2);
|
|
7782
9050
|
return /*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
|
|
7783
9051
|
marginTop: "auto",
|
|
7784
9052
|
alignItems: "center",
|
|
@@ -7840,33 +9108,371 @@
|
|
|
7840
9108
|
Modal.Footer = ModalFooter;
|
|
7841
9109
|
Modal.Layout = ModalLayout;
|
|
7842
9110
|
|
|
7843
|
-
var
|
|
7844
|
-
|
|
7845
|
-
|
|
7846
|
-
|
|
7847
|
-
|
|
7848
|
-
|
|
7849
|
-
|
|
7850
|
-
var
|
|
7851
|
-
|
|
7852
|
-
|
|
7853
|
-
|
|
7854
|
-
|
|
7855
|
-
|
|
7856
|
-
|
|
7857
|
-
|
|
7858
|
-
|
|
7859
|
-
|
|
7860
|
-
|
|
7861
|
-
|
|
9111
|
+
var useNavigationMenuState = function useNavigationMenuState(defaultActiveItemId, defaultExpandedItemIds) {
|
|
9112
|
+
if (defaultActiveItemId === void 0) {
|
|
9113
|
+
defaultActiveItemId = null;
|
|
9114
|
+
}
|
|
9115
|
+
if (defaultExpandedItemIds === void 0) {
|
|
9116
|
+
defaultExpandedItemIds = [];
|
|
9117
|
+
}
|
|
9118
|
+
var [activeItemId, setActiveItemId] = React.useState(defaultActiveItemId);
|
|
9119
|
+
var [expandedItemIds, setExpandedItemIds] = React.useState(defaultExpandedItemIds);
|
|
9120
|
+
var toggleExpandedItem = itemId => {
|
|
9121
|
+
setExpandedItemIds(prevExpandedItemIds => {
|
|
9122
|
+
// Check if the item is already expanded
|
|
9123
|
+
var isExpanded = prevExpandedItemIds.includes(itemId);
|
|
9124
|
+
if (isExpanded) {
|
|
9125
|
+
// If expanded, remove it from the list
|
|
9126
|
+
return prevExpandedItemIds.filter(id => id !== itemId);
|
|
9127
|
+
} else {
|
|
9128
|
+
// If not expanded, add it to the list
|
|
9129
|
+
return [...prevExpandedItemIds, itemId];
|
|
7862
9130
|
}
|
|
7863
|
-
}
|
|
7864
|
-
|
|
9131
|
+
});
|
|
9132
|
+
};
|
|
9133
|
+
var isItemExpanded = itemId => {
|
|
9134
|
+
return expandedItemIds.includes(itemId);
|
|
9135
|
+
};
|
|
9136
|
+
return {
|
|
9137
|
+
activeItemId,
|
|
9138
|
+
setActiveItemId,
|
|
9139
|
+
expandedItemIds,
|
|
9140
|
+
toggleExpandedItem,
|
|
9141
|
+
isItemExpanded
|
|
9142
|
+
};
|
|
7865
9143
|
};
|
|
7866
|
-
// Custom hook to consume the context and get the styles and onClick handler
|
|
7867
|
-
var useTableContext = () => React.useContext(TableContext);
|
|
7868
9144
|
|
|
7869
|
-
var
|
|
9145
|
+
var NavigationMenuSizes = {
|
|
9146
|
+
sm: {
|
|
9147
|
+
padding: '8px 12px',
|
|
9148
|
+
fontSize: '14px'
|
|
9149
|
+
},
|
|
9150
|
+
md: {
|
|
9151
|
+
padding: '10px 16px',
|
|
9152
|
+
fontSize: '16px'
|
|
9153
|
+
},
|
|
9154
|
+
lg: {
|
|
9155
|
+
padding: '12px 20px',
|
|
9156
|
+
fontSize: '18px'
|
|
9157
|
+
}
|
|
9158
|
+
};
|
|
9159
|
+
var NavigationMenuVariants = {
|
|
9160
|
+
default: {
|
|
9161
|
+
backgroundColor: 'transparent',
|
|
9162
|
+
color: 'color.gray.800'
|
|
9163
|
+
},
|
|
9164
|
+
filled: {
|
|
9165
|
+
backgroundColor: 'color.gray.100',
|
|
9166
|
+
color: 'color.gray.800'
|
|
9167
|
+
},
|
|
9168
|
+
outline: {
|
|
9169
|
+
backgroundColor: 'transparent',
|
|
9170
|
+
borderWidth: '1px',
|
|
9171
|
+
borderStyle: 'solid',
|
|
9172
|
+
borderColor: 'color.gray.200',
|
|
9173
|
+
color: 'color.gray.800'
|
|
9174
|
+
}
|
|
9175
|
+
};
|
|
9176
|
+
var NavigationMenuOrientations = {
|
|
9177
|
+
horizontal: {
|
|
9178
|
+
flexDirection: 'row'
|
|
9179
|
+
},
|
|
9180
|
+
vertical: {
|
|
9181
|
+
flexDirection: 'column'
|
|
9182
|
+
}
|
|
9183
|
+
};
|
|
9184
|
+
var NavigationMenuItemStates = {
|
|
9185
|
+
active: {
|
|
9186
|
+
backgroundColor: 'color.gray.200',
|
|
9187
|
+
fontWeight: 'bold'
|
|
9188
|
+
},
|
|
9189
|
+
hover: {
|
|
9190
|
+
backgroundColor: 'color.gray.100'
|
|
9191
|
+
},
|
|
9192
|
+
disabled: {
|
|
9193
|
+
opacity: 0.5,
|
|
9194
|
+
cursor: 'not-allowed'
|
|
9195
|
+
}
|
|
9196
|
+
};
|
|
9197
|
+
|
|
9198
|
+
// Create context for the NavigationMenu
|
|
9199
|
+
var NavigationMenuContext = /*#__PURE__*/React.createContext({
|
|
9200
|
+
activeItemId: null,
|
|
9201
|
+
setActiveItemId: () => {},
|
|
9202
|
+
expandedItemIds: [],
|
|
9203
|
+
toggleExpandedItem: () => {},
|
|
9204
|
+
isItemExpanded: () => false,
|
|
9205
|
+
orientation: 'vertical',
|
|
9206
|
+
size: 'md',
|
|
9207
|
+
variant: 'default'
|
|
9208
|
+
});
|
|
9209
|
+
// Provider component for the NavigationMenu context
|
|
9210
|
+
var NavigationMenuProvider = _ref => {
|
|
9211
|
+
var {
|
|
9212
|
+
children,
|
|
9213
|
+
value
|
|
9214
|
+
} = _ref;
|
|
9215
|
+
return /*#__PURE__*/React__default.createElement(NavigationMenuContext.Provider, {
|
|
9216
|
+
value: value
|
|
9217
|
+
}, children);
|
|
9218
|
+
};
|
|
9219
|
+
// Hook to use the NavigationMenu context
|
|
9220
|
+
var useNavigationMenuContext = () => {
|
|
9221
|
+
var context = React.useContext(NavigationMenuContext);
|
|
9222
|
+
if (!context) {
|
|
9223
|
+
throw new Error('useNavigationMenuContext must be used within a NavigationMenuProvider');
|
|
9224
|
+
}
|
|
9225
|
+
return context;
|
|
9226
|
+
};
|
|
9227
|
+
// NavigationMenu List component
|
|
9228
|
+
var NavigationMenuList = _ref2 => {
|
|
9229
|
+
var {
|
|
9230
|
+
children,
|
|
9231
|
+
views
|
|
9232
|
+
} = _ref2;
|
|
9233
|
+
var {
|
|
9234
|
+
orientation
|
|
9235
|
+
} = useNavigationMenuContext();
|
|
9236
|
+
var Container = orientation === 'horizontal' ? appStudio.Horizontal : appStudio.Vertical;
|
|
9237
|
+
return /*#__PURE__*/React__default.createElement(Container, Object.assign({
|
|
9238
|
+
width: "100%",
|
|
9239
|
+
gap: 2
|
|
9240
|
+
}, NavigationMenuOrientations[orientation], views == null ? void 0 : views.container), children);
|
|
9241
|
+
};
|
|
9242
|
+
// NavigationMenu Item component
|
|
9243
|
+
var NavigationMenuItem = _ref3 => {
|
|
9244
|
+
var {
|
|
9245
|
+
item,
|
|
9246
|
+
views
|
|
9247
|
+
} = _ref3;
|
|
9248
|
+
var {
|
|
9249
|
+
activeItemId,
|
|
9250
|
+
setActiveItemId,
|
|
9251
|
+
// isItemExpanded,
|
|
9252
|
+
orientation,
|
|
9253
|
+
size,
|
|
9254
|
+
variant,
|
|
9255
|
+
onItemActivate
|
|
9256
|
+
} = useNavigationMenuContext();
|
|
9257
|
+
var isActive = activeItemId === item.id;
|
|
9258
|
+
var hasSubItems = item.items && item.items.length > 0;
|
|
9259
|
+
// const isExpanded = hasSubItems && isItemExpanded(item.id);
|
|
9260
|
+
var handleClick = () => {
|
|
9261
|
+
if (item.disabled) return;
|
|
9262
|
+
setActiveItemId(item.id);
|
|
9263
|
+
if (onItemActivate) {
|
|
9264
|
+
onItemActivate(item.id);
|
|
9265
|
+
}
|
|
9266
|
+
};
|
|
9267
|
+
var Container = orientation === 'horizontal' ? appStudio.Horizontal : appStudio.Vertical;
|
|
9268
|
+
// Render item with sub-items
|
|
9269
|
+
if (hasSubItems) {
|
|
9270
|
+
var _item$items;
|
|
9271
|
+
return /*#__PURE__*/React__default.createElement(Container, Object.assign({
|
|
9272
|
+
width: "100%",
|
|
9273
|
+
flexDirection: orientation === 'horizontal' ? 'column' : 'column',
|
|
9274
|
+
position: "relative"
|
|
9275
|
+
}, views == null ? void 0 : views.item), /*#__PURE__*/React__default.createElement(NavigationMenuTrigger, {
|
|
9276
|
+
itemId: item.id,
|
|
9277
|
+
disabled: item.disabled,
|
|
9278
|
+
views: views
|
|
9279
|
+
}, item.icon && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
9280
|
+
marginRight: 8
|
|
9281
|
+
}, views == null ? void 0 : views.icon), item.icon)), item.label), /*#__PURE__*/React__default.createElement(NavigationMenuContent, {
|
|
9282
|
+
itemId: item.id
|
|
9283
|
+
}, /*#__PURE__*/React__default.createElement(NavigationMenuList, null, (_item$items = item.items) == null ? void 0 : _item$items.map(subItem => (/*#__PURE__*/React__default.createElement(NavigationMenuItem, {
|
|
9284
|
+
key: subItem.id,
|
|
9285
|
+
item: subItem
|
|
9286
|
+
}))))));
|
|
9287
|
+
}
|
|
9288
|
+
// Render regular item (no sub-items)
|
|
9289
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
9290
|
+
as: item.href ? 'a' : 'div',
|
|
9291
|
+
to: item.href,
|
|
9292
|
+
onClick: handleClick,
|
|
9293
|
+
cursor: item.disabled ? 'not-allowed' : 'pointer',
|
|
9294
|
+
opacity: item.disabled ? 0.5 : 1,
|
|
9295
|
+
width: "100%",
|
|
9296
|
+
display: "flex",
|
|
9297
|
+
alignItems: "center",
|
|
9298
|
+
borderRadius: 4,
|
|
9299
|
+
transition: "background-color 0.2s ease"
|
|
9300
|
+
}, NavigationMenuSizes[size], NavigationMenuVariants[variant], isActive ? NavigationMenuItemStates.active : {}, {
|
|
9301
|
+
_hover: !item.disabled ? NavigationMenuItemStates.hover : {}
|
|
9302
|
+
}, views == null ? void 0 : views.item), item.icon && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
9303
|
+
marginRight: 8
|
|
9304
|
+
}, views == null ? void 0 : views.icon), item.icon)), item.label);
|
|
9305
|
+
};
|
|
9306
|
+
// NavigationMenu Trigger component
|
|
9307
|
+
var NavigationMenuTrigger = _ref4 => {
|
|
9308
|
+
var {
|
|
9309
|
+
children,
|
|
9310
|
+
itemId,
|
|
9311
|
+
disabled,
|
|
9312
|
+
views
|
|
9313
|
+
} = _ref4;
|
|
9314
|
+
var {
|
|
9315
|
+
activeItemId,
|
|
9316
|
+
toggleExpandedItem,
|
|
9317
|
+
isItemExpanded,
|
|
9318
|
+
size,
|
|
9319
|
+
variant
|
|
9320
|
+
} = useNavigationMenuContext();
|
|
9321
|
+
var isActive = activeItemId === itemId;
|
|
9322
|
+
var isExpanded = isItemExpanded(itemId);
|
|
9323
|
+
var handleClick = e => {
|
|
9324
|
+
e.preventDefault();
|
|
9325
|
+
if (disabled) return;
|
|
9326
|
+
toggleExpandedItem(itemId);
|
|
9327
|
+
};
|
|
9328
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
9329
|
+
onClick: handleClick,
|
|
9330
|
+
cursor: disabled ? 'not-allowed' : 'pointer',
|
|
9331
|
+
opacity: disabled ? 0.5 : 1,
|
|
9332
|
+
width: "100%",
|
|
9333
|
+
display: "flex",
|
|
9334
|
+
alignItems: "center",
|
|
9335
|
+
justifyContent: "space-between",
|
|
9336
|
+
borderRadius: 4,
|
|
9337
|
+
transition: "background-color 0.2s ease"
|
|
9338
|
+
}, NavigationMenuSizes[size], NavigationMenuVariants[variant], isActive ? NavigationMenuItemStates.active : {}, {
|
|
9339
|
+
_hover: !disabled ? NavigationMenuItemStates.hover : {}
|
|
9340
|
+
}, views == null ? void 0 : views.trigger), /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
9341
|
+
display: "flex",
|
|
9342
|
+
alignItems: "center"
|
|
9343
|
+
}, children), /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
9344
|
+
transition: "transform 0.2s ease",
|
|
9345
|
+
transform: isExpanded ? 'rotate(180deg)' : 'rotate(0deg)'
|
|
9346
|
+
}, views == null ? void 0 : views.indicator), /*#__PURE__*/React__default.createElement("svg", {
|
|
9347
|
+
width: "16",
|
|
9348
|
+
height: "16",
|
|
9349
|
+
viewBox: "0 0 24 24",
|
|
9350
|
+
fill: "none",
|
|
9351
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
9352
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
9353
|
+
d: "M16.59 8.59L12 13.17L7.41 8.59L6 10L12 16L18 10L16.59 8.59Z",
|
|
9354
|
+
fill: "currentColor"
|
|
9355
|
+
}))));
|
|
9356
|
+
};
|
|
9357
|
+
// NavigationMenu Content component
|
|
9358
|
+
var NavigationMenuContent = _ref5 => {
|
|
9359
|
+
var {
|
|
9360
|
+
children,
|
|
9361
|
+
itemId,
|
|
9362
|
+
views
|
|
9363
|
+
} = _ref5;
|
|
9364
|
+
var {
|
|
9365
|
+
isItemExpanded,
|
|
9366
|
+
orientation
|
|
9367
|
+
} = useNavigationMenuContext();
|
|
9368
|
+
var isExpanded = isItemExpanded(itemId);
|
|
9369
|
+
if (!isExpanded) {
|
|
9370
|
+
return null;
|
|
9371
|
+
}
|
|
9372
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
9373
|
+
paddingLeft: orientation === 'vertical' ? 16 : 0,
|
|
9374
|
+
paddingTop: orientation === 'horizontal' ? 8 : 0,
|
|
9375
|
+
overflow: "hidden",
|
|
9376
|
+
width: "100%"
|
|
9377
|
+
}, views == null ? void 0 : views.container), children);
|
|
9378
|
+
};
|
|
9379
|
+
// Main NavigationMenu View component
|
|
9380
|
+
var NavigationMenuView = _ref6 => {
|
|
9381
|
+
var {
|
|
9382
|
+
items,
|
|
9383
|
+
orientation,
|
|
9384
|
+
//size, variant,
|
|
9385
|
+
views
|
|
9386
|
+
} = _ref6;
|
|
9387
|
+
var Container = orientation === 'horizontal' ? appStudio.Horizontal : appStudio.Vertical;
|
|
9388
|
+
return /*#__PURE__*/React__default.createElement(Container, Object.assign({
|
|
9389
|
+
width: "100%"
|
|
9390
|
+
}, NavigationMenuOrientations[orientation], views == null ? void 0 : views.container), /*#__PURE__*/React__default.createElement(NavigationMenuList, {
|
|
9391
|
+
views: views
|
|
9392
|
+
}, items.map(item => (/*#__PURE__*/React__default.createElement(NavigationMenuItem, {
|
|
9393
|
+
key: item.id,
|
|
9394
|
+
item: item,
|
|
9395
|
+
views: views
|
|
9396
|
+
})))));
|
|
9397
|
+
};
|
|
9398
|
+
|
|
9399
|
+
var _excluded$D = ["items", "orientation", "size", "variant", "defaultActiveItemId", "defaultExpandedItemIds", "onItemActivate", "views"];
|
|
9400
|
+
/**
|
|
9401
|
+
* NavigationMenu component for creating navigation menus with optional nested items.
|
|
9402
|
+
*/
|
|
9403
|
+
var NavigationMenuComponent = _ref => {
|
|
9404
|
+
var {
|
|
9405
|
+
items,
|
|
9406
|
+
orientation = 'vertical',
|
|
9407
|
+
size = 'md',
|
|
9408
|
+
variant = 'default',
|
|
9409
|
+
defaultActiveItemId = null,
|
|
9410
|
+
defaultExpandedItemIds = [],
|
|
9411
|
+
onItemActivate,
|
|
9412
|
+
views
|
|
9413
|
+
} = _ref,
|
|
9414
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$D);
|
|
9415
|
+
var {
|
|
9416
|
+
activeItemId,
|
|
9417
|
+
setActiveItemId,
|
|
9418
|
+
expandedItemIds,
|
|
9419
|
+
toggleExpandedItem,
|
|
9420
|
+
isItemExpanded
|
|
9421
|
+
} = useNavigationMenuState(defaultActiveItemId, defaultExpandedItemIds);
|
|
9422
|
+
return /*#__PURE__*/React__default.createElement(NavigationMenuProvider, {
|
|
9423
|
+
value: {
|
|
9424
|
+
activeItemId,
|
|
9425
|
+
setActiveItemId,
|
|
9426
|
+
expandedItemIds,
|
|
9427
|
+
toggleExpandedItem,
|
|
9428
|
+
isItemExpanded,
|
|
9429
|
+
orientation,
|
|
9430
|
+
size,
|
|
9431
|
+
variant,
|
|
9432
|
+
onItemActivate
|
|
9433
|
+
}
|
|
9434
|
+
}, /*#__PURE__*/React__default.createElement(NavigationMenuView, Object.assign({
|
|
9435
|
+
items: items,
|
|
9436
|
+
orientation: orientation,
|
|
9437
|
+
size: size,
|
|
9438
|
+
variant: variant,
|
|
9439
|
+
views: views
|
|
9440
|
+
}, props)));
|
|
9441
|
+
};
|
|
9442
|
+
var NavigationMenu = NavigationMenuComponent;
|
|
9443
|
+
// Assign the sub-components to the main component
|
|
9444
|
+
NavigationMenu.List = NavigationMenuList;
|
|
9445
|
+
NavigationMenu.Item = NavigationMenuItem;
|
|
9446
|
+
NavigationMenu.Trigger = NavigationMenuTrigger;
|
|
9447
|
+
NavigationMenu.Content = NavigationMenuContent;
|
|
9448
|
+
|
|
9449
|
+
var defaultStyles = {};
|
|
9450
|
+
// Create a context that includes both styles and the onClick function
|
|
9451
|
+
var TableContext = /*#__PURE__*/React.createContext({
|
|
9452
|
+
views: defaultStyles,
|
|
9453
|
+
onRowClick: () => {}
|
|
9454
|
+
});
|
|
9455
|
+
var TableProvider = _ref => {
|
|
9456
|
+
var {
|
|
9457
|
+
children,
|
|
9458
|
+
views = defaultStyles,
|
|
9459
|
+
onRowClick
|
|
9460
|
+
} = _ref;
|
|
9461
|
+
return (
|
|
9462
|
+
/*#__PURE__*/
|
|
9463
|
+
// Pass both styles and onClick to the context
|
|
9464
|
+
React__default.createElement(TableContext.Provider, {
|
|
9465
|
+
value: {
|
|
9466
|
+
views,
|
|
9467
|
+
onRowClick
|
|
9468
|
+
}
|
|
9469
|
+
}, children)
|
|
9470
|
+
);
|
|
9471
|
+
};
|
|
9472
|
+
// Custom hook to consume the context and get the styles and onClick handler
|
|
9473
|
+
var useTableContext = () => React.useContext(TableContext);
|
|
9474
|
+
|
|
9475
|
+
var TableContainer = props => {
|
|
7870
9476
|
var {
|
|
7871
9477
|
views
|
|
7872
9478
|
} = useTableContext();
|
|
@@ -8149,7 +9755,7 @@
|
|
|
8149
9755
|
};
|
|
8150
9756
|
};
|
|
8151
9757
|
|
|
8152
|
-
var _excluded$
|
|
9758
|
+
var _excluded$E = ["children", "shape", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle", "views"];
|
|
8153
9759
|
var ToggleView = _ref => {
|
|
8154
9760
|
var {
|
|
8155
9761
|
children,
|
|
@@ -8163,7 +9769,7 @@
|
|
|
8163
9769
|
onToggle,
|
|
8164
9770
|
views
|
|
8165
9771
|
} = _ref,
|
|
8166
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
9772
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$E);
|
|
8167
9773
|
var toggleColor = !isDisabled ? 'color.trueGray.400' : 'theme.disabled';
|
|
8168
9774
|
var isActive = !!(isToggle || isHovered);
|
|
8169
9775
|
var toggleVariants = {
|
|
@@ -8206,7 +9812,7 @@
|
|
|
8206
9812
|
}, toggleVariants[variant], props, views == null ? void 0 : views.container), children);
|
|
8207
9813
|
};
|
|
8208
9814
|
|
|
8209
|
-
var _excluded$
|
|
9815
|
+
var _excluded$F = ["children", "shape", "variant", "isDisabled", "isToggled", "onToggle"];
|
|
8210
9816
|
// Destructuring properties from ToggleProps to be used within the ToggleComponent.
|
|
8211
9817
|
var ToggleComponent = _ref => {
|
|
8212
9818
|
var {
|
|
@@ -8218,7 +9824,7 @@
|
|
|
8218
9824
|
isToggled = false,
|
|
8219
9825
|
onToggle
|
|
8220
9826
|
} = _ref,
|
|
8221
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
9827
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$F);
|
|
8222
9828
|
// Initializing toggle state and set state functions using the custom hook useToggleState.
|
|
8223
9829
|
var {
|
|
8224
9830
|
isHovered,
|
|
@@ -8458,6 +10064,552 @@
|
|
|
8458
10064
|
};
|
|
8459
10065
|
var DragAndDrop = DragAndDropComponent;
|
|
8460
10066
|
|
|
10067
|
+
var useDropdownMenuState = function useDropdownMenuState(defaultOpen) {
|
|
10068
|
+
if (defaultOpen === void 0) {
|
|
10069
|
+
defaultOpen = false;
|
|
10070
|
+
}
|
|
10071
|
+
var [isOpen, setIsOpen] = React.useState(defaultOpen);
|
|
10072
|
+
var [activeSubmenuId, setActiveSubmenuId] = React.useState(null);
|
|
10073
|
+
// Close the dropdown menu when clicking outside
|
|
10074
|
+
React.useEffect(() => {
|
|
10075
|
+
var handleClickOutside = event => {
|
|
10076
|
+
var path = event.composedPath();
|
|
10077
|
+
var isOutside = !path.some(element => (element == null ? void 0 : element.id) === 'dropdown-menu' || (element == null ? void 0 : element.id) === 'dropdown-trigger');
|
|
10078
|
+
if (isOutside && isOpen) {
|
|
10079
|
+
setIsOpen(false);
|
|
10080
|
+
setActiveSubmenuId(null);
|
|
10081
|
+
}
|
|
10082
|
+
};
|
|
10083
|
+
// Close the dropdown menu when the window is resized
|
|
10084
|
+
var handleResize = () => {
|
|
10085
|
+
if (isOpen) {
|
|
10086
|
+
setIsOpen(false);
|
|
10087
|
+
setActiveSubmenuId(null);
|
|
10088
|
+
}
|
|
10089
|
+
};
|
|
10090
|
+
// Close the dropdown menu when the escape key is pressed
|
|
10091
|
+
var handleKeyDown = event => {
|
|
10092
|
+
if (event.key === 'Escape' && isOpen) {
|
|
10093
|
+
setIsOpen(false);
|
|
10094
|
+
setActiveSubmenuId(null);
|
|
10095
|
+
}
|
|
10096
|
+
};
|
|
10097
|
+
document.addEventListener('mousedown', handleClickOutside);
|
|
10098
|
+
window.addEventListener('resize', handleResize);
|
|
10099
|
+
document.addEventListener('keydown', handleKeyDown);
|
|
10100
|
+
return () => {
|
|
10101
|
+
document.removeEventListener('mousedown', handleClickOutside);
|
|
10102
|
+
window.removeEventListener('resize', handleResize);
|
|
10103
|
+
document.removeEventListener('keydown', handleKeyDown);
|
|
10104
|
+
};
|
|
10105
|
+
}, [isOpen]);
|
|
10106
|
+
return {
|
|
10107
|
+
isOpen,
|
|
10108
|
+
setIsOpen,
|
|
10109
|
+
activeSubmenuId,
|
|
10110
|
+
setActiveSubmenuId
|
|
10111
|
+
};
|
|
10112
|
+
};
|
|
10113
|
+
|
|
10114
|
+
var DropdownMenuSizes = {
|
|
10115
|
+
sm: {
|
|
10116
|
+
padding: '6px 8px',
|
|
10117
|
+
fontSize: '14px',
|
|
10118
|
+
minWidth: '160px'
|
|
10119
|
+
},
|
|
10120
|
+
md: {
|
|
10121
|
+
padding: '8px 12px',
|
|
10122
|
+
fontSize: '16px',
|
|
10123
|
+
minWidth: '180px'
|
|
10124
|
+
},
|
|
10125
|
+
lg: {
|
|
10126
|
+
padding: '10px 16px',
|
|
10127
|
+
fontSize: '18px',
|
|
10128
|
+
minWidth: '200px'
|
|
10129
|
+
}
|
|
10130
|
+
};
|
|
10131
|
+
var DropdownMenuVariants = {
|
|
10132
|
+
default: {
|
|
10133
|
+
backgroundColor: 'white',
|
|
10134
|
+
color: 'color.gray.800'
|
|
10135
|
+
},
|
|
10136
|
+
filled: {
|
|
10137
|
+
backgroundColor: 'color.gray.100',
|
|
10138
|
+
color: 'color.gray.800'
|
|
10139
|
+
},
|
|
10140
|
+
outline: {
|
|
10141
|
+
backgroundColor: 'white',
|
|
10142
|
+
borderWidth: '1px',
|
|
10143
|
+
borderStyle: 'solid',
|
|
10144
|
+
borderColor: 'color.gray.200',
|
|
10145
|
+
color: 'color.gray.800'
|
|
10146
|
+
}
|
|
10147
|
+
};
|
|
10148
|
+
var DropdownMenuItemStates = {
|
|
10149
|
+
hover: {
|
|
10150
|
+
backgroundColor: 'color.gray.100'
|
|
10151
|
+
},
|
|
10152
|
+
active: {
|
|
10153
|
+
backgroundColor: 'color.gray.200'
|
|
10154
|
+
},
|
|
10155
|
+
disabled: {
|
|
10156
|
+
opacity: 0.5,
|
|
10157
|
+
cursor: 'not-allowed'
|
|
10158
|
+
}
|
|
10159
|
+
};
|
|
10160
|
+
// Helper function to calculate position based on side and alignment
|
|
10161
|
+
var getDropdownPosition = function getDropdownPosition(side, align) {
|
|
10162
|
+
if (side === void 0) {
|
|
10163
|
+
side = 'bottom';
|
|
10164
|
+
}
|
|
10165
|
+
if (align === void 0) {
|
|
10166
|
+
align = 'start';
|
|
10167
|
+
}
|
|
10168
|
+
var positions = {
|
|
10169
|
+
top: Object.assign({
|
|
10170
|
+
bottom: '100%',
|
|
10171
|
+
marginBottom: '8px'
|
|
10172
|
+
}, align === 'start' && {
|
|
10173
|
+
left: 0
|
|
10174
|
+
}, align === 'center' && {
|
|
10175
|
+
left: '50%',
|
|
10176
|
+
transform: 'translateX(-50%)'
|
|
10177
|
+
}, align === 'end' && {
|
|
10178
|
+
right: 0
|
|
10179
|
+
}),
|
|
10180
|
+
right: Object.assign({
|
|
10181
|
+
left: '100%',
|
|
10182
|
+
marginLeft: '8px'
|
|
10183
|
+
}, align === 'start' && {
|
|
10184
|
+
top: 0
|
|
10185
|
+
}, align === 'center' && {
|
|
10186
|
+
top: '50%',
|
|
10187
|
+
transform: 'translateY(-50%)'
|
|
10188
|
+
}, align === 'end' && {
|
|
10189
|
+
bottom: 0
|
|
10190
|
+
}),
|
|
10191
|
+
bottom: Object.assign({
|
|
10192
|
+
top: '100%',
|
|
10193
|
+
marginTop: '8px'
|
|
10194
|
+
}, align === 'start' && {
|
|
10195
|
+
left: 0
|
|
10196
|
+
}, align === 'center' && {
|
|
10197
|
+
left: '50%',
|
|
10198
|
+
transform: 'translateX(-50%)'
|
|
10199
|
+
}, align === 'end' && {
|
|
10200
|
+
right: 0
|
|
10201
|
+
}),
|
|
10202
|
+
left: Object.assign({
|
|
10203
|
+
right: '100%',
|
|
10204
|
+
marginRight: '8px'
|
|
10205
|
+
}, align === 'start' && {
|
|
10206
|
+
top: 0
|
|
10207
|
+
}, align === 'center' && {
|
|
10208
|
+
top: '50%',
|
|
10209
|
+
transform: 'translateY(-50%)'
|
|
10210
|
+
}, align === 'end' && {
|
|
10211
|
+
bottom: 0
|
|
10212
|
+
})
|
|
10213
|
+
};
|
|
10214
|
+
return positions[side];
|
|
10215
|
+
};
|
|
10216
|
+
|
|
10217
|
+
var _excluded$G = ["children", "views"],
|
|
10218
|
+
_excluded2$9 = ["items", "side", "align", "views"],
|
|
10219
|
+
_excluded3$6 = ["item", "views"],
|
|
10220
|
+
_excluded4$5 = ["views"],
|
|
10221
|
+
_excluded5$3 = ["trigger", "items", "side", "align", "views"];
|
|
10222
|
+
// Create context for the DropdownMenu
|
|
10223
|
+
var DropdownMenuContext = /*#__PURE__*/React.createContext({
|
|
10224
|
+
isOpen: false,
|
|
10225
|
+
setIsOpen: () => {},
|
|
10226
|
+
activeSubmenuId: null,
|
|
10227
|
+
setActiveSubmenuId: () => {},
|
|
10228
|
+
size: 'md',
|
|
10229
|
+
variant: 'default'
|
|
10230
|
+
});
|
|
10231
|
+
// Provider component for the DropdownMenu context
|
|
10232
|
+
var DropdownMenuProvider = _ref => {
|
|
10233
|
+
var {
|
|
10234
|
+
children,
|
|
10235
|
+
value
|
|
10236
|
+
} = _ref;
|
|
10237
|
+
return /*#__PURE__*/React__default.createElement(DropdownMenuContext.Provider, {
|
|
10238
|
+
value: value
|
|
10239
|
+
}, children);
|
|
10240
|
+
};
|
|
10241
|
+
// Hook to use the DropdownMenu context
|
|
10242
|
+
var useDropdownMenuContext = () => {
|
|
10243
|
+
var context = React.useContext(DropdownMenuContext);
|
|
10244
|
+
if (!context) {
|
|
10245
|
+
throw new Error('useDropdownMenuContext must be used within a DropdownMenuProvider');
|
|
10246
|
+
}
|
|
10247
|
+
return context;
|
|
10248
|
+
};
|
|
10249
|
+
// DropdownMenu Trigger component
|
|
10250
|
+
var DropdownMenuTrigger = _ref2 => {
|
|
10251
|
+
var {
|
|
10252
|
+
children,
|
|
10253
|
+
views
|
|
10254
|
+
} = _ref2,
|
|
10255
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$G);
|
|
10256
|
+
var {
|
|
10257
|
+
isOpen,
|
|
10258
|
+
setIsOpen
|
|
10259
|
+
} = useDropdownMenuContext();
|
|
10260
|
+
var handleClick = e => {
|
|
10261
|
+
e.stopPropagation();
|
|
10262
|
+
setIsOpen(!isOpen);
|
|
10263
|
+
};
|
|
10264
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
10265
|
+
id: "dropdown-trigger",
|
|
10266
|
+
onClick: handleClick,
|
|
10267
|
+
cursor: "pointer",
|
|
10268
|
+
position: "relative",
|
|
10269
|
+
display: "inline-block"
|
|
10270
|
+
}, views == null ? void 0 : views.container, props), children);
|
|
10271
|
+
};
|
|
10272
|
+
// DropdownMenu Content component
|
|
10273
|
+
var DropdownMenuContent = _ref3 => {
|
|
10274
|
+
var {
|
|
10275
|
+
items,
|
|
10276
|
+
side = 'bottom',
|
|
10277
|
+
align = 'start',
|
|
10278
|
+
views
|
|
10279
|
+
} = _ref3,
|
|
10280
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$9);
|
|
10281
|
+
var {
|
|
10282
|
+
isOpen,
|
|
10283
|
+
//activeSubmenuId, setActiveSubmenuId, size,
|
|
10284
|
+
variant
|
|
10285
|
+
} = useDropdownMenuContext();
|
|
10286
|
+
if (!isOpen) {
|
|
10287
|
+
return null;
|
|
10288
|
+
}
|
|
10289
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
10290
|
+
id: "dropdown-menu",
|
|
10291
|
+
position: "absolute",
|
|
10292
|
+
zIndex: 1000,
|
|
10293
|
+
borderRadius: 4,
|
|
10294
|
+
boxShadow: "0px 2px 8px rgba(0, 0, 0, 0.15)",
|
|
10295
|
+
overflow: "hidden"
|
|
10296
|
+
}, getDropdownPosition(side, align), DropdownMenuVariants[variant], views == null ? void 0 : views.menu, props), items.map((item, index) => {
|
|
10297
|
+
if (item.divider) {
|
|
10298
|
+
return /*#__PURE__*/React__default.createElement(DropdownMenuDivider, {
|
|
10299
|
+
key: "divider-" + index,
|
|
10300
|
+
views: views
|
|
10301
|
+
});
|
|
10302
|
+
}
|
|
10303
|
+
return /*#__PURE__*/React__default.createElement(DropdownMenuItem, {
|
|
10304
|
+
key: item.id,
|
|
10305
|
+
item: item,
|
|
10306
|
+
views: views
|
|
10307
|
+
});
|
|
10308
|
+
}));
|
|
10309
|
+
};
|
|
10310
|
+
// DropdownMenu Item component
|
|
10311
|
+
var DropdownMenuItem = _ref4 => {
|
|
10312
|
+
var {
|
|
10313
|
+
item,
|
|
10314
|
+
views
|
|
10315
|
+
} = _ref4,
|
|
10316
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$6);
|
|
10317
|
+
var {
|
|
10318
|
+
activeSubmenuId,
|
|
10319
|
+
setActiveSubmenuId,
|
|
10320
|
+
size
|
|
10321
|
+
} = useDropdownMenuContext();
|
|
10322
|
+
var [isHovered, setIsHovered] = React.useState(false);
|
|
10323
|
+
var hasSubmenu = item.items && item.items.length > 0;
|
|
10324
|
+
var isSubmenuActive = activeSubmenuId === item.id;
|
|
10325
|
+
var itemRef = React.useRef(null);
|
|
10326
|
+
// Handle mouse enter event
|
|
10327
|
+
var handleMouseEnter = () => {
|
|
10328
|
+
setIsHovered(true);
|
|
10329
|
+
if (hasSubmenu) {
|
|
10330
|
+
setActiveSubmenuId(item.id);
|
|
10331
|
+
}
|
|
10332
|
+
};
|
|
10333
|
+
// Handle mouse leave event
|
|
10334
|
+
var handleMouseLeave = () => {
|
|
10335
|
+
setIsHovered(false);
|
|
10336
|
+
};
|
|
10337
|
+
// Handle click event
|
|
10338
|
+
var handleClick = e => {
|
|
10339
|
+
e.stopPropagation();
|
|
10340
|
+
if (item.disabled) return;
|
|
10341
|
+
if (!hasSubmenu && item.onClick) {
|
|
10342
|
+
item.onClick();
|
|
10343
|
+
}
|
|
10344
|
+
};
|
|
10345
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
10346
|
+
ref: itemRef,
|
|
10347
|
+
display: "flex",
|
|
10348
|
+
alignItems: "center",
|
|
10349
|
+
cursor: item.disabled ? 'not-allowed' : 'pointer',
|
|
10350
|
+
opacity: item.disabled ? 0.5 : 1,
|
|
10351
|
+
position: "relative"
|
|
10352
|
+
}, DropdownMenuSizes[size], {
|
|
10353
|
+
_hover: !item.disabled ? DropdownMenuItemStates.hover : {},
|
|
10354
|
+
backgroundColor: isHovered && !item.disabled ? 'color.gray.100' : 'transparent',
|
|
10355
|
+
onMouseEnter: handleMouseEnter,
|
|
10356
|
+
onMouseLeave: handleMouseLeave,
|
|
10357
|
+
onClick: handleClick
|
|
10358
|
+
}, views == null ? void 0 : views.item, props), item.icon && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
10359
|
+
marginRight: 8
|
|
10360
|
+
}, views == null ? void 0 : views.icon), item.icon)), /*#__PURE__*/React__default.createElement(appStudio.View, {
|
|
10361
|
+
flexGrow: 1
|
|
10362
|
+
}, item.label), hasSubmenu && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
10363
|
+
marginLeft: 8
|
|
10364
|
+
}, views == null ? void 0 : views.submenuIndicator), /*#__PURE__*/React__default.createElement("svg", {
|
|
10365
|
+
width: "16",
|
|
10366
|
+
height: "16",
|
|
10367
|
+
viewBox: "0 0 24 24",
|
|
10368
|
+
fill: "none",
|
|
10369
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
10370
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
10371
|
+
d: "M8.59 16.59L13.17 12L8.59 7.41L10 6L16 12L10 18L8.59 16.59Z",
|
|
10372
|
+
fill: "currentColor"
|
|
10373
|
+
})))), isSubmenuActive && hasSubmenu && (/*#__PURE__*/React__default.createElement(DropdownMenuContent, {
|
|
10374
|
+
items: item.items || [],
|
|
10375
|
+
side: "right",
|
|
10376
|
+
align: "start",
|
|
10377
|
+
views: views
|
|
10378
|
+
})));
|
|
10379
|
+
};
|
|
10380
|
+
// DropdownMenu Divider component
|
|
10381
|
+
var DropdownMenuDivider = _ref5 => {
|
|
10382
|
+
var {
|
|
10383
|
+
views
|
|
10384
|
+
} = _ref5,
|
|
10385
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$5);
|
|
10386
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
10387
|
+
height: "1px",
|
|
10388
|
+
backgroundColor: "color.gray.200",
|
|
10389
|
+
margin: "4px 0"
|
|
10390
|
+
}, views == null ? void 0 : views.divider, props));
|
|
10391
|
+
};
|
|
10392
|
+
// Main DropdownMenu View component
|
|
10393
|
+
var DropdownMenuView = _ref6 => {
|
|
10394
|
+
var {
|
|
10395
|
+
trigger,
|
|
10396
|
+
items,
|
|
10397
|
+
side = 'bottom',
|
|
10398
|
+
align = 'start',
|
|
10399
|
+
views
|
|
10400
|
+
} = _ref6,
|
|
10401
|
+
props = _objectWithoutPropertiesLoose(_ref6, _excluded5$3);
|
|
10402
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
10403
|
+
position: "relative",
|
|
10404
|
+
display: "inline-block"
|
|
10405
|
+
}, views == null ? void 0 : views.container, props), /*#__PURE__*/React__default.createElement(DropdownMenuTrigger, {
|
|
10406
|
+
views: views
|
|
10407
|
+
}, trigger), /*#__PURE__*/React__default.createElement(DropdownMenuContent, {
|
|
10408
|
+
items: items,
|
|
10409
|
+
side: side,
|
|
10410
|
+
align: align,
|
|
10411
|
+
views: views
|
|
10412
|
+
}));
|
|
10413
|
+
};
|
|
10414
|
+
|
|
10415
|
+
var _excluded$H = ["trigger", "items", "size", "variant", "side", "align", "defaultOpen", "views"];
|
|
10416
|
+
/**
|
|
10417
|
+
* DropdownMenu component for displaying a menu when clicking on a trigger element.
|
|
10418
|
+
*/
|
|
10419
|
+
var DropdownMenuComponent = _ref => {
|
|
10420
|
+
var {
|
|
10421
|
+
trigger,
|
|
10422
|
+
items,
|
|
10423
|
+
size = 'md',
|
|
10424
|
+
variant = 'default',
|
|
10425
|
+
side = 'bottom',
|
|
10426
|
+
align = 'start',
|
|
10427
|
+
defaultOpen = false,
|
|
10428
|
+
views
|
|
10429
|
+
} = _ref,
|
|
10430
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$H);
|
|
10431
|
+
var {
|
|
10432
|
+
isOpen,
|
|
10433
|
+
setIsOpen,
|
|
10434
|
+
activeSubmenuId,
|
|
10435
|
+
setActiveSubmenuId
|
|
10436
|
+
} = useDropdownMenuState(defaultOpen);
|
|
10437
|
+
return /*#__PURE__*/React__default.createElement(DropdownMenuProvider, {
|
|
10438
|
+
value: {
|
|
10439
|
+
isOpen,
|
|
10440
|
+
setIsOpen,
|
|
10441
|
+
activeSubmenuId,
|
|
10442
|
+
setActiveSubmenuId,
|
|
10443
|
+
size,
|
|
10444
|
+
variant
|
|
10445
|
+
}
|
|
10446
|
+
}, /*#__PURE__*/React__default.createElement(DropdownMenuView, Object.assign({
|
|
10447
|
+
trigger: trigger,
|
|
10448
|
+
items: items,
|
|
10449
|
+
side: side,
|
|
10450
|
+
align: align,
|
|
10451
|
+
views: views
|
|
10452
|
+
}, props)));
|
|
10453
|
+
};
|
|
10454
|
+
var DropdownMenu = DropdownMenuComponent;
|
|
10455
|
+
// Assign the sub-components to the main component
|
|
10456
|
+
DropdownMenu.Trigger = DropdownMenuTrigger;
|
|
10457
|
+
DropdownMenu.Content = DropdownMenuContent;
|
|
10458
|
+
DropdownMenu.Item = DropdownMenuItem;
|
|
10459
|
+
DropdownMenu.Divider = DropdownMenuDivider;
|
|
10460
|
+
|
|
10461
|
+
var useHoverCardState = () => {
|
|
10462
|
+
var [isOpen, setIsOpen] = React.useState(false);
|
|
10463
|
+
return {
|
|
10464
|
+
isOpen,
|
|
10465
|
+
setIsOpen
|
|
10466
|
+
};
|
|
10467
|
+
};
|
|
10468
|
+
|
|
10469
|
+
var ContentPositions = {
|
|
10470
|
+
top: align => Object.assign({
|
|
10471
|
+
position: 'absolute',
|
|
10472
|
+
bottom: '100%',
|
|
10473
|
+
marginBottom: '8px'
|
|
10474
|
+
}, align === 'start' && {
|
|
10475
|
+
left: 0
|
|
10476
|
+
}, align === 'center' && {
|
|
10477
|
+
left: '50%',
|
|
10478
|
+
transform: 'translateX(-50%)'
|
|
10479
|
+
}, align === 'end' && {
|
|
10480
|
+
right: 0
|
|
10481
|
+
}),
|
|
10482
|
+
right: align => Object.assign({
|
|
10483
|
+
position: 'absolute',
|
|
10484
|
+
left: '100%',
|
|
10485
|
+
marginLeft: '8px'
|
|
10486
|
+
}, align === 'start' && {
|
|
10487
|
+
top: 0
|
|
10488
|
+
}, align === 'center' && {
|
|
10489
|
+
top: '50%',
|
|
10490
|
+
transform: 'translateY(-50%)'
|
|
10491
|
+
}, align === 'end' && {
|
|
10492
|
+
bottom: 0
|
|
10493
|
+
}),
|
|
10494
|
+
bottom: align => Object.assign({
|
|
10495
|
+
position: 'absolute',
|
|
10496
|
+
top: '100%',
|
|
10497
|
+
marginTop: '8px'
|
|
10498
|
+
}, align === 'start' && {
|
|
10499
|
+
left: 0
|
|
10500
|
+
}, align === 'center' && {
|
|
10501
|
+
left: '50%',
|
|
10502
|
+
transform: 'translateX(-50%)'
|
|
10503
|
+
}, align === 'end' && {
|
|
10504
|
+
right: 0
|
|
10505
|
+
}),
|
|
10506
|
+
left: align => Object.assign({
|
|
10507
|
+
position: 'absolute',
|
|
10508
|
+
right: '100%',
|
|
10509
|
+
marginRight: '8px'
|
|
10510
|
+
}, align === 'start' && {
|
|
10511
|
+
top: 0
|
|
10512
|
+
}, align === 'center' && {
|
|
10513
|
+
top: '50%',
|
|
10514
|
+
transform: 'translateY(-50%)'
|
|
10515
|
+
}, align === 'end' && {
|
|
10516
|
+
bottom: 0
|
|
10517
|
+
})
|
|
10518
|
+
};
|
|
10519
|
+
|
|
10520
|
+
var _excluded$I = ["children", "views"],
|
|
10521
|
+
_excluded2$a = ["children", "views", "side", "align"];
|
|
10522
|
+
// Create context for the HoverCard
|
|
10523
|
+
var HoverCardContext = /*#__PURE__*/React.createContext({
|
|
10524
|
+
isOpen: false,
|
|
10525
|
+
setIsOpen: () => {}
|
|
10526
|
+
});
|
|
10527
|
+
var HoverCardProvider = _ref => {
|
|
10528
|
+
var {
|
|
10529
|
+
children,
|
|
10530
|
+
value
|
|
10531
|
+
} = _ref;
|
|
10532
|
+
return /*#__PURE__*/React__default.createElement(HoverCardContext.Provider, {
|
|
10533
|
+
value: value
|
|
10534
|
+
}, children);
|
|
10535
|
+
};
|
|
10536
|
+
var useHoverCardContext = () => {
|
|
10537
|
+
var context = React.useContext(HoverCardContext);
|
|
10538
|
+
if (!context) {
|
|
10539
|
+
throw new Error('useHoverCardContext must be used within a HoverCardProvider');
|
|
10540
|
+
}
|
|
10541
|
+
return context;
|
|
10542
|
+
};
|
|
10543
|
+
var HoverCardTrigger = _ref2 => {
|
|
10544
|
+
var {
|
|
10545
|
+
children,
|
|
10546
|
+
views
|
|
10547
|
+
} = _ref2,
|
|
10548
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$I);
|
|
10549
|
+
var {
|
|
10550
|
+
setIsOpen
|
|
10551
|
+
} = useHoverCardContext();
|
|
10552
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
10553
|
+
position: "relative",
|
|
10554
|
+
display: "inline-block",
|
|
10555
|
+
onMouseEnter: () => setIsOpen(true),
|
|
10556
|
+
onMouseLeave: () => setIsOpen(false)
|
|
10557
|
+
}, views == null ? void 0 : views.container, props), children);
|
|
10558
|
+
};
|
|
10559
|
+
var HoverCardContent = _ref3 => {
|
|
10560
|
+
var {
|
|
10561
|
+
children,
|
|
10562
|
+
views,
|
|
10563
|
+
side = 'bottom',
|
|
10564
|
+
align = 'center'
|
|
10565
|
+
} = _ref3,
|
|
10566
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded2$a);
|
|
10567
|
+
var {
|
|
10568
|
+
isOpen
|
|
10569
|
+
} = useHoverCardContext();
|
|
10570
|
+
if (!isOpen) {
|
|
10571
|
+
return null;
|
|
10572
|
+
}
|
|
10573
|
+
return /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
10574
|
+
backgroundColor: "white",
|
|
10575
|
+
borderRadius: "4px",
|
|
10576
|
+
boxShadow: "0px 2px 8px rgba(0, 0, 0, 0.15)",
|
|
10577
|
+
padding: "12px",
|
|
10578
|
+
minWidth: "200px",
|
|
10579
|
+
maxWidth: "300px",
|
|
10580
|
+
zIndex: 1000
|
|
10581
|
+
}, ContentPositions[side](align), views == null ? void 0 : views.container, props), children);
|
|
10582
|
+
};
|
|
10583
|
+
|
|
10584
|
+
var _excluded$J = ["children", "views"];
|
|
10585
|
+
/**
|
|
10586
|
+
* HoverCard component displays floating content when hovering over a trigger element.
|
|
10587
|
+
*/
|
|
10588
|
+
var HoverCardComponent = _ref => {
|
|
10589
|
+
var {
|
|
10590
|
+
children,
|
|
10591
|
+
views
|
|
10592
|
+
} = _ref,
|
|
10593
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$J);
|
|
10594
|
+
var {
|
|
10595
|
+
isOpen,
|
|
10596
|
+
setIsOpen
|
|
10597
|
+
} = useHoverCardState();
|
|
10598
|
+
return /*#__PURE__*/React__default.createElement(HoverCardProvider, {
|
|
10599
|
+
value: {
|
|
10600
|
+
isOpen,
|
|
10601
|
+
setIsOpen
|
|
10602
|
+
}
|
|
10603
|
+
}, /*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
10604
|
+
position: "relative",
|
|
10605
|
+
display: "inline-block"
|
|
10606
|
+
}, views == null ? void 0 : views.container, props), children));
|
|
10607
|
+
};
|
|
10608
|
+
var HoverCard = HoverCardComponent;
|
|
10609
|
+
HoverCard.Trigger = HoverCardTrigger;
|
|
10610
|
+
HoverCard.Content = HoverCardContent;
|
|
10611
|
+
|
|
10612
|
+
exports.Accordion = Accordion;
|
|
8461
10613
|
exports.Alert = Alert;
|
|
8462
10614
|
exports.ArrowIcon = ArrowIcon;
|
|
8463
10615
|
exports.AspectRatio = AspectRatio;
|
|
@@ -8480,14 +10632,17 @@
|
|
|
8480
10632
|
exports.CloseIcon = CloseIcon;
|
|
8481
10633
|
exports.CloudIcon = CloudIcon;
|
|
8482
10634
|
exports.ComboBox = ComboBox;
|
|
10635
|
+
exports.ContextMenu = ContextMenu;
|
|
8483
10636
|
exports.CopyIcon = CopyIcon;
|
|
8484
10637
|
exports.CountryPicker = CountryPicker;
|
|
8485
10638
|
exports.CropIcon = CropIcon;
|
|
8486
10639
|
exports.DatePicker = DatePicker;
|
|
10640
|
+
exports.DeleteIcon = DeleteIcon;
|
|
8487
10641
|
exports.DownloadIcon = DownloadIcon;
|
|
8488
10642
|
exports.DragAndDrop = DragAndDrop;
|
|
8489
10643
|
exports.DragAndDropComponent = DragAndDropComponent;
|
|
8490
10644
|
exports.DragHandleIcon = DragHandleIcon;
|
|
10645
|
+
exports.DropdownMenu = DropdownMenu;
|
|
8491
10646
|
exports.DustBinIcon = DustBinIcon;
|
|
8492
10647
|
exports.EditIcon = EditIcon;
|
|
8493
10648
|
exports.ErrorIcon = ErrorIcon;
|
|
@@ -8504,13 +10659,16 @@
|
|
|
8504
10659
|
exports.FormikForm = FormikForm;
|
|
8505
10660
|
exports.FormikPassword = FormikPassword;
|
|
8506
10661
|
exports.FormikSelect = FormikSelect;
|
|
10662
|
+
exports.FormikSlider = FormikSlider;
|
|
8507
10663
|
exports.FormikSwitch = FormikSwitch;
|
|
8508
10664
|
exports.FormikTextArea = FormikTextArea;
|
|
8509
10665
|
exports.FormikTextField = FormikTextField;
|
|
8510
10666
|
exports.HeartIcon = HeartIcon;
|
|
10667
|
+
exports.HelpIcon = HelpIcon;
|
|
8511
10668
|
exports.HomeIcon = HomeIcon;
|
|
8512
10669
|
exports.Horizontal = Horizontal;
|
|
8513
10670
|
exports.HorizontalBase = HorizontalBase;
|
|
10671
|
+
exports.HoverCard = HoverCard;
|
|
8514
10672
|
exports.Icon = Icon;
|
|
8515
10673
|
exports.ImageIcon = ImageIcon;
|
|
8516
10674
|
exports.InfoIcon = InfoIcon;
|
|
@@ -8531,6 +10689,7 @@
|
|
|
8531
10689
|
exports.MinusIcon = MinusIcon;
|
|
8532
10690
|
exports.Modal = Modal;
|
|
8533
10691
|
exports.MoonIcon = MoonIcon;
|
|
10692
|
+
exports.NavigationMenu = NavigationMenu;
|
|
8534
10693
|
exports.NotificationIcon = NotificationIcon;
|
|
8535
10694
|
exports.OpenEyeIcon = OpenEyeIcon;
|
|
8536
10695
|
exports.PanelIcon = PanelIcon;
|
|
@@ -8549,6 +10708,7 @@
|
|
|
8549
10708
|
exports.SettingsIcon = SettingsIcon;
|
|
8550
10709
|
exports.ShapeIcon = ShapeIcon;
|
|
8551
10710
|
exports.ShareIcon = ShareIcon;
|
|
10711
|
+
exports.Slider = Slider;
|
|
8552
10712
|
exports.SliderIcon = SliderIcon;
|
|
8553
10713
|
exports.SliderVerticalIcon = SliderVerticalIcon;
|
|
8554
10714
|
exports.SpinnerIcon = SpinnerIcon;
|
|
@@ -8572,6 +10732,7 @@
|
|
|
8572
10732
|
exports.UnlockIcon = UnlockIcon;
|
|
8573
10733
|
exports.UploadIcon = UploadIcon;
|
|
8574
10734
|
exports.Uploader = Uploader;
|
|
10735
|
+
exports.UserIcon = UserIcon;
|
|
8575
10736
|
exports.Vertical = Vertical;
|
|
8576
10737
|
exports.VerticalBase = VerticalBase;
|
|
8577
10738
|
exports.VideoIcon = VideoIcon;
|