@app-studio/web 0.8.66 → 0.8.69
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/Alert/Alert/Alert.type.d.ts +5 -5
- package/dist/components/AspectRatio/AspectRatio/AspectRatio.props.d.ts +5 -0
- package/dist/components/AspectRatio/AspectRatio/AspectRatio.view.d.ts +1 -1
- package/dist/components/Avatar/Avatar/Avatar.type.d.ts +4 -4
- package/dist/components/Badge/Badge/Badge.style.d.ts +3 -2
- package/dist/components/Badge/Badge/Badge.type.d.ts +3 -3
- package/dist/components/Button/Button/Button.props.d.ts +2 -2
- package/dist/components/Button/Button/Button.style.d.ts +3 -3
- package/dist/components/Button/Button/Button.view.d.ts +9 -1
- package/dist/components/DragAndDrop/DragAndDrop/DragAndDrop.props.d.ts +10 -0
- package/dist/components/DragAndDrop/DragAndDrop/DragAndDrop.view.d.ts +1 -8
- package/dist/components/File/File.d.ts +7 -3
- package/dist/components/Form/Checkbox/Checkbox/Checkbox.props.d.ts +3 -2
- package/dist/components/Form/Checkbox/Checkbox/Checkbox.style.d.ts +2 -2
- package/dist/components/Form/CountryPicker/CountryPicker/CountryPicker.props.d.ts +5 -6
- package/dist/components/Form/DatePicker/DatePicker/DatePicker.props.d.ts +2 -2
- package/dist/components/Form/Select/Select/Select.props.d.ts +2 -3
- package/dist/components/Form/Select/Select/Select.style.d.ts +2 -2
- package/dist/components/Form/Switch/Switch/Switch.props.d.ts +3 -3
- package/dist/components/Form/Switch/Switch/Switch.style.d.ts +3 -3
- package/dist/components/Form/TextArea/TextArea/TextArea.props.d.ts +2 -3
- package/dist/components/Form/TextArea/TextArea/TextArea.type.d.ts +6 -6
- package/dist/components/Form/TextField/TextField/TextField.props.d.ts +3 -3
- package/dist/components/Icon/Icon.d.ts +1 -3
- package/dist/components/Layout/Center/Center.props.d.ts +1 -1
- package/dist/components/Layout/Input/FieldContent/FieldContent/FieldContent.props.d.ts +2 -2
- package/dist/components/Layout/Input/FieldLabel/FieldLabel/FieldLabel.props.d.ts +1 -1
- package/dist/components/Layout/View/View.d.ts +3 -3
- package/dist/components/Layout/configs/Input.style.d.ts +3 -3
- package/dist/components/Layout/configs/Input.type.d.ts +5 -5
- package/dist/components/Loader/Loader/Loader.view.d.ts +8 -1
- package/dist/components/Message/Message/Message.style.d.ts +2 -2
- package/dist/components/Message/Message/Message.type.d.ts +8 -7
- package/dist/components/Modal/Modal/Modal.props.d.ts +18 -5
- package/dist/components/Modal/Modal/Modal.style.d.ts +4 -4
- package/dist/components/Modal/Modal/Modal.view.d.ts +16 -2
- package/dist/components/Table/Table/Table.context.d.ts +16 -13
- package/dist/components/Table/Table/Table.view.d.ts +9 -8
- package/dist/components/Text/Text/Text.props.d.ts +2 -2
- package/dist/components/Text/Text/Text.view.d.ts +7 -1
- package/dist/components/Text/Text.d.ts +1 -2
- package/dist/components/Toggle/Toggle/Toggle.view.d.ts +7 -1
- package/dist/components/ToggleGroup/ToggleGroup/ToggleGroup.props.d.ts +5 -1
- package/dist/components/ToggleGroup/ToggleGroup/ToggleGroup.view.d.ts +1 -1
- package/dist/components/Uploader/Uploader/Uploader.props.d.ts +7 -0
- package/dist/web.cjs.development.js +318 -312
- 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 +319 -313
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +321 -316
- 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/web.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'core-js/modules/es.symbol.description.js';
|
|
2
2
|
import React, { useRef, useState, useEffect, useCallback, useMemo, createContext, useContext, Fragment } from 'react';
|
|
3
3
|
import 'core-js/modules/es.object.assign.js';
|
|
4
|
-
import { View as View$1, Element, Typography, Image, useTheme, Animation, Input, Form, Text as Text$1, Horizontal as Horizontal$1 } from 'app-studio';
|
|
4
|
+
import { View as View$1, Element, Typography, Image, useTheme, Animation, Input, Form, Text as Text$1, Horizontal as Horizontal$1, Vertical as Vertical$1 } from 'app-studio';
|
|
5
5
|
import 'core-js/modules/es.array.iterator.js';
|
|
6
6
|
import 'core-js/modules/es.parse-float.js';
|
|
7
7
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
@@ -15,6 +15,7 @@ import 'core-js/modules/web.url.js';
|
|
|
15
15
|
import 'core-js/modules/web.url.to-json.js';
|
|
16
16
|
import 'core-js/modules/web.url-search-params.js';
|
|
17
17
|
import { create } from 'zustand';
|
|
18
|
+
import { Center as Center$1 } from 'src/components/Layout';
|
|
18
19
|
|
|
19
20
|
var Top = props => (/*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
20
21
|
marginBottom: "auto"
|
|
@@ -77,19 +78,25 @@ var HeadingSizes = {
|
|
|
77
78
|
}
|
|
78
79
|
};
|
|
79
80
|
|
|
80
|
-
var _excluded = ["children", "heading", "maxLines", "isItalic", "isUnderlined", "isSub", "isSup", "isStriked", "weight", "size"];
|
|
81
|
+
var _excluded = ["children", "heading", "maxLines", "isItalic", "isUnderlined", "isSub", "isSup", "isStriked", "weight", "size", "views"];
|
|
81
82
|
var TextContent = _ref => {
|
|
82
83
|
var {
|
|
83
84
|
children,
|
|
84
85
|
isSub,
|
|
85
|
-
isSup
|
|
86
|
+
isSup,
|
|
87
|
+
views
|
|
86
88
|
} = _ref;
|
|
87
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, typeof children === 'string' ? (/*#__PURE__*/React.createElement(React.Fragment, null, isSub &&
|
|
89
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, typeof children === 'string' ? (/*#__PURE__*/React.createElement(React.Fragment, null, isSub && (/*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
90
|
+
as: "sup"
|
|
91
|
+
}, views == null ? void 0 : views.sup), children)), isSup && (/*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
92
|
+
as: "sup"
|
|
93
|
+
}, views == null ? void 0 : views.sup), children)), !isSub && !isSup && /*#__PURE__*/React.createElement(React.Fragment, null, children))) : children);
|
|
88
94
|
};
|
|
89
95
|
var TruncateText = _ref2 => {
|
|
90
96
|
var {
|
|
91
97
|
text,
|
|
92
|
-
maxLines = 1
|
|
98
|
+
maxLines = 1,
|
|
99
|
+
views
|
|
93
100
|
} = _ref2;
|
|
94
101
|
var containerRef = useRef(null);
|
|
95
102
|
var [truncatedLength, setTruncatedLength] = useState(text.length);
|
|
@@ -118,9 +125,9 @@ var TruncateText = _ref2 => {
|
|
|
118
125
|
updateTruncatedText();
|
|
119
126
|
}, [text, maxLines]);
|
|
120
127
|
var displayText = text.length > truncatedLength ? text.substring(0, truncatedLength) + '...' : text;
|
|
121
|
-
return /*#__PURE__*/React.createElement(
|
|
128
|
+
return /*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
122
129
|
ref: containerRef
|
|
123
|
-
}, displayText);
|
|
130
|
+
}, views == null ? void 0 : views.truncateText), displayText);
|
|
124
131
|
};
|
|
125
132
|
var TextView = _ref3 => {
|
|
126
133
|
var {
|
|
@@ -133,7 +140,8 @@ var TextView = _ref3 => {
|
|
|
133
140
|
isSup = false,
|
|
134
141
|
isStriked = false,
|
|
135
142
|
weight = 'normal',
|
|
136
|
-
size = 'md'
|
|
143
|
+
size = 'md',
|
|
144
|
+
views
|
|
137
145
|
} = _ref3,
|
|
138
146
|
props = _objectWithoutPropertiesLoose(_ref3, _excluded);
|
|
139
147
|
var headingStyles = heading ? HeadingSizes[heading] : {};
|
|
@@ -147,13 +155,13 @@ var TextView = _ref3 => {
|
|
|
147
155
|
fontStyle: isItalic ? 'italic' : 'normal',
|
|
148
156
|
fontWeight: Typography.fontWeights[weight],
|
|
149
157
|
textDecoration: isStriked ? 'line-through' : isUnderlined ? 'underline' : 'none'
|
|
150
|
-
}, noLineBreak, headingStyles, props), maxLines && typeof children === 'string' ? (/*#__PURE__*/React.createElement(TruncateText, {
|
|
158
|
+
}, noLineBreak, headingStyles, props, views == null ? void 0 : views.container), maxLines && typeof children === 'string' ? (/*#__PURE__*/React.createElement(TruncateText, {
|
|
151
159
|
text: children,
|
|
152
160
|
maxLines: maxLines
|
|
153
|
-
})) : (/*#__PURE__*/React.createElement(TextContent,
|
|
161
|
+
})) : (/*#__PURE__*/React.createElement(TextContent, {
|
|
154
162
|
isSub: isSub,
|
|
155
163
|
isSup: isSup
|
|
156
|
-
},
|
|
164
|
+
}, children)));
|
|
157
165
|
};
|
|
158
166
|
|
|
159
167
|
var TextComponent = props => {
|
|
@@ -218,74 +226,74 @@ var CenterBase = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
218
226
|
CenterBase.displayName = 'Center';
|
|
219
227
|
var Center = CenterBase;
|
|
220
228
|
|
|
221
|
-
var _excluded$4 = ["
|
|
222
|
-
_excluded2 = ["
|
|
223
|
-
_excluded3 = ["
|
|
224
|
-
_excluded4 = ["
|
|
225
|
-
_excluded5 = ["
|
|
226
|
-
_excluded6 = ["
|
|
227
|
-
_excluded7 = ["
|
|
228
|
-
_excluded8 = ["
|
|
229
|
-
_excluded9 = ["
|
|
230
|
-
_excluded10 = ["
|
|
231
|
-
_excluded11 = ["
|
|
232
|
-
_excluded12 = ["
|
|
233
|
-
_excluded13 = ["
|
|
234
|
-
_excluded14 = ["
|
|
235
|
-
_excluded15 = ["
|
|
236
|
-
_excluded16 = ["
|
|
237
|
-
_excluded17 = ["
|
|
238
|
-
_excluded18 = ["
|
|
239
|
-
_excluded19 = ["
|
|
240
|
-
_excluded20 = ["
|
|
241
|
-
_excluded21 = ["
|
|
242
|
-
_excluded22 = ["
|
|
243
|
-
_excluded23 = ["
|
|
244
|
-
_excluded24 = ["
|
|
245
|
-
_excluded25 = ["
|
|
246
|
-
_excluded26 = ["
|
|
247
|
-
_excluded27 = ["
|
|
248
|
-
_excluded28 = ["
|
|
249
|
-
_excluded29 = ["
|
|
250
|
-
_excluded30 = ["
|
|
251
|
-
_excluded31 = ["
|
|
252
|
-
_excluded32 = ["
|
|
253
|
-
_excluded33 = ["
|
|
254
|
-
_excluded34 = ["
|
|
255
|
-
_excluded35 = ["
|
|
256
|
-
_excluded36 = ["
|
|
257
|
-
_excluded37 = ["
|
|
258
|
-
_excluded38 = ["
|
|
259
|
-
_excluded39 = ["
|
|
260
|
-
_excluded40 = ["
|
|
261
|
-
_excluded41 = ["
|
|
262
|
-
_excluded42 = ["
|
|
263
|
-
_excluded43 = ["
|
|
264
|
-
_excluded44 = ["
|
|
265
|
-
_excluded45 = ["
|
|
266
|
-
_excluded46 = ["
|
|
267
|
-
_excluded47 = ["
|
|
268
|
-
_excluded48 = ["
|
|
269
|
-
_excluded49 = ["
|
|
270
|
-
_excluded50 = ["
|
|
271
|
-
_excluded51 = ["
|
|
272
|
-
_excluded52 = ["
|
|
273
|
-
_excluded53 = ["
|
|
274
|
-
_excluded54 = ["
|
|
275
|
-
_excluded55 = ["
|
|
276
|
-
_excluded56 = ["
|
|
277
|
-
_excluded57 = ["
|
|
278
|
-
_excluded58 = ["
|
|
279
|
-
_excluded59 = ["
|
|
280
|
-
_excluded60 = ["
|
|
281
|
-
_excluded61 = ["
|
|
282
|
-
_excluded62 = ["
|
|
283
|
-
_excluded63 = ["
|
|
284
|
-
_excluded64 = ["
|
|
229
|
+
var _excluded$4 = ["widthHeight", "color", "transform", "orientation", "children"],
|
|
230
|
+
_excluded2 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
231
|
+
_excluded3 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
232
|
+
_excluded4 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
233
|
+
_excluded5 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
234
|
+
_excluded6 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
235
|
+
_excluded7 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
236
|
+
_excluded8 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
237
|
+
_excluded9 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
238
|
+
_excluded10 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
239
|
+
_excluded11 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
240
|
+
_excluded12 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
241
|
+
_excluded13 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
242
|
+
_excluded14 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
243
|
+
_excluded15 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
244
|
+
_excluded16 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
245
|
+
_excluded17 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
246
|
+
_excluded18 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
247
|
+
_excluded19 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
248
|
+
_excluded20 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
249
|
+
_excluded21 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
250
|
+
_excluded22 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
251
|
+
_excluded23 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
252
|
+
_excluded24 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
253
|
+
_excluded25 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
254
|
+
_excluded26 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
255
|
+
_excluded27 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
256
|
+
_excluded28 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
257
|
+
_excluded29 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
258
|
+
_excluded30 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
259
|
+
_excluded31 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
260
|
+
_excluded32 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
261
|
+
_excluded33 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
262
|
+
_excluded34 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
263
|
+
_excluded35 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
264
|
+
_excluded36 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
265
|
+
_excluded37 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
266
|
+
_excluded38 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
267
|
+
_excluded39 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
268
|
+
_excluded40 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
269
|
+
_excluded41 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
270
|
+
_excluded42 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
271
|
+
_excluded43 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
272
|
+
_excluded44 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
273
|
+
_excluded45 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
274
|
+
_excluded46 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
275
|
+
_excluded47 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
276
|
+
_excluded48 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
277
|
+
_excluded49 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
278
|
+
_excluded50 = ["widthHeight", "color", "strokeWidth", "filled"],
|
|
279
|
+
_excluded51 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
280
|
+
_excluded52 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
281
|
+
_excluded53 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
282
|
+
_excluded54 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
283
|
+
_excluded55 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
284
|
+
_excluded56 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
285
|
+
_excluded57 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
286
|
+
_excluded58 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
287
|
+
_excluded59 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
288
|
+
_excluded60 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
289
|
+
_excluded61 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
290
|
+
_excluded62 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
291
|
+
_excluded63 = ["widthHeight", "color", "filled", "strokeWidth"],
|
|
292
|
+
_excluded64 = ["widthHeight", "color", "strokeWidth", "filled"];
|
|
285
293
|
// Default wrapper component for consistent sizing and styling
|
|
286
294
|
var IconWrapper = _ref => {
|
|
287
295
|
var {
|
|
288
|
-
|
|
296
|
+
widthHeight,
|
|
289
297
|
color = 'black',
|
|
290
298
|
transform,
|
|
291
299
|
orientation = 'up',
|
|
@@ -293,8 +301,8 @@ var IconWrapper = _ref => {
|
|
|
293
301
|
} = _ref,
|
|
294
302
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
295
303
|
return /*#__PURE__*/React.createElement(Center, Object.assign({
|
|
296
|
-
widthHeight:
|
|
297
|
-
lineHeight:
|
|
304
|
+
widthHeight: widthHeight,
|
|
305
|
+
lineHeight: widthHeight,
|
|
298
306
|
color: color,
|
|
299
307
|
display: "flex",
|
|
300
308
|
transform: transform ? transform : orientation === 'left' ? 'rotate(-90deg)' : orientation === 'right' ? 'rotate(90deg)' : orientation === 'up' ? 'rotate(0deg)' : orientation === 'down' ? 'rotate(180deg)' : 'none'
|
|
@@ -313,14 +321,14 @@ var getSvgProps = (filled, color, strokeWidth) => {
|
|
|
313
321
|
// Example Icon Component: ChevronIcon
|
|
314
322
|
var ChevronIcon = _ref2 => {
|
|
315
323
|
var {
|
|
316
|
-
|
|
324
|
+
widthHeight = 24,
|
|
317
325
|
color = 'currentColor',
|
|
318
326
|
filled = true,
|
|
319
327
|
strokeWidth = 1
|
|
320
328
|
} = _ref2,
|
|
321
329
|
props = _objectWithoutPropertiesLoose(_ref2, _excluded2);
|
|
322
330
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
323
|
-
widthHeight:
|
|
331
|
+
widthHeight: widthHeight,
|
|
324
332
|
color: color
|
|
325
333
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
326
334
|
viewBox: "0 0 24 24",
|
|
@@ -332,14 +340,14 @@ var ChevronIcon = _ref2 => {
|
|
|
332
340
|
};
|
|
333
341
|
var DragHandleIcon = _ref3 => {
|
|
334
342
|
var {
|
|
335
|
-
|
|
343
|
+
widthHeight = 24,
|
|
336
344
|
color = 'currentColor',
|
|
337
345
|
filled = true,
|
|
338
346
|
strokeWidth = 1
|
|
339
347
|
} = _ref3,
|
|
340
348
|
props = _objectWithoutPropertiesLoose(_ref3, _excluded3);
|
|
341
349
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
342
|
-
widthHeight:
|
|
350
|
+
widthHeight: widthHeight,
|
|
343
351
|
color: color
|
|
344
352
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
345
353
|
viewBox: "0 0 24 24",
|
|
@@ -374,14 +382,14 @@ var DragHandleIcon = _ref3 => {
|
|
|
374
382
|
// File Icon Component
|
|
375
383
|
var FileIcon = _ref4 => {
|
|
376
384
|
var {
|
|
377
|
-
|
|
385
|
+
widthHeight = 24,
|
|
378
386
|
color = 'currentColor',
|
|
379
387
|
filled = true,
|
|
380
388
|
strokeWidth = 1
|
|
381
389
|
} = _ref4,
|
|
382
390
|
props = _objectWithoutPropertiesLoose(_ref4, _excluded4);
|
|
383
391
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
384
|
-
widthHeight:
|
|
392
|
+
widthHeight: widthHeight,
|
|
385
393
|
color: color
|
|
386
394
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
387
395
|
viewBox: "0 0 24 24",
|
|
@@ -402,14 +410,14 @@ var FileIcon = _ref4 => {
|
|
|
402
410
|
// Video Icon Component
|
|
403
411
|
var VideoIcon = _ref5 => {
|
|
404
412
|
var {
|
|
405
|
-
|
|
413
|
+
widthHeight = 24,
|
|
406
414
|
color = 'currentColor',
|
|
407
415
|
filled = true,
|
|
408
416
|
strokeWidth = 1
|
|
409
417
|
} = _ref5,
|
|
410
418
|
props = _objectWithoutPropertiesLoose(_ref5, _excluded5);
|
|
411
419
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
412
|
-
widthHeight:
|
|
420
|
+
widthHeight: widthHeight,
|
|
413
421
|
color: color
|
|
414
422
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
415
423
|
viewBox: "0 0 24 24",
|
|
@@ -435,14 +443,14 @@ var VideoIcon = _ref5 => {
|
|
|
435
443
|
// Image Icon Component
|
|
436
444
|
var ImageIcon = _ref6 => {
|
|
437
445
|
var {
|
|
438
|
-
|
|
446
|
+
widthHeight = 24,
|
|
439
447
|
color = 'currentColor',
|
|
440
448
|
filled = true,
|
|
441
449
|
strokeWidth = 1
|
|
442
450
|
} = _ref6,
|
|
443
451
|
props = _objectWithoutPropertiesLoose(_ref6, _excluded6);
|
|
444
452
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
445
|
-
widthHeight:
|
|
453
|
+
widthHeight: widthHeight,
|
|
446
454
|
color: color
|
|
447
455
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
448
456
|
viewBox: "0 0 24 24",
|
|
@@ -474,14 +482,14 @@ var ImageIcon = _ref6 => {
|
|
|
474
482
|
};
|
|
475
483
|
var TwitterIcon = _ref7 => {
|
|
476
484
|
var {
|
|
477
|
-
|
|
485
|
+
widthHeight = 24,
|
|
478
486
|
color = 'currentColor',
|
|
479
487
|
filled = true,
|
|
480
488
|
strokeWidth = 1
|
|
481
489
|
} = _ref7,
|
|
482
490
|
props = _objectWithoutPropertiesLoose(_ref7, _excluded7);
|
|
483
491
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
484
|
-
widthHeight:
|
|
492
|
+
widthHeight: widthHeight,
|
|
485
493
|
color: color
|
|
486
494
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
487
495
|
viewBox: "0 0 24 24",
|
|
@@ -496,14 +504,14 @@ var TwitterIcon = _ref7 => {
|
|
|
496
504
|
};
|
|
497
505
|
var XIcon = _ref8 => {
|
|
498
506
|
var {
|
|
499
|
-
|
|
507
|
+
widthHeight = 24,
|
|
500
508
|
color = 'currentColor',
|
|
501
509
|
filled = true,
|
|
502
510
|
strokeWidth = 1
|
|
503
511
|
} = _ref8,
|
|
504
512
|
props = _objectWithoutPropertiesLoose(_ref8, _excluded8);
|
|
505
513
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
506
|
-
widthHeight:
|
|
514
|
+
widthHeight: widthHeight,
|
|
507
515
|
color: color
|
|
508
516
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
509
517
|
viewBox: "0 0 24 24",
|
|
@@ -519,14 +527,14 @@ var XIcon = _ref8 => {
|
|
|
519
527
|
// Example of a Twitch Icon
|
|
520
528
|
var TwitchIcon = _ref9 => {
|
|
521
529
|
var {
|
|
522
|
-
|
|
530
|
+
widthHeight = 24,
|
|
523
531
|
color = 'currentColor',
|
|
524
532
|
filled = true,
|
|
525
533
|
strokeWidth = 1
|
|
526
534
|
} = _ref9,
|
|
527
535
|
props = _objectWithoutPropertiesLoose(_ref9, _excluded9);
|
|
528
536
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
529
|
-
widthHeight:
|
|
537
|
+
widthHeight: widthHeight,
|
|
530
538
|
color: color
|
|
531
539
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
532
540
|
viewBox: "0 0 24 24",
|
|
@@ -547,14 +555,14 @@ var TwitchIcon = _ref9 => {
|
|
|
547
555
|
// Example of another Icon: CloseIcon
|
|
548
556
|
var CloseIcon = _ref10 => {
|
|
549
557
|
var {
|
|
550
|
-
|
|
558
|
+
widthHeight = 24,
|
|
551
559
|
color = 'currentColor',
|
|
552
560
|
filled = false,
|
|
553
561
|
strokeWidth = 1
|
|
554
562
|
} = _ref10,
|
|
555
563
|
props = _objectWithoutPropertiesLoose(_ref10, _excluded10);
|
|
556
564
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
557
|
-
widthHeight:
|
|
565
|
+
widthHeight: widthHeight,
|
|
558
566
|
color: color
|
|
559
567
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
560
568
|
viewBox: "0 0 24 24",
|
|
@@ -576,14 +584,14 @@ var CloseIcon = _ref10 => {
|
|
|
576
584
|
};
|
|
577
585
|
var InstagramIcon = _ref11 => {
|
|
578
586
|
var {
|
|
579
|
-
|
|
587
|
+
widthHeight = 24,
|
|
580
588
|
color = 'currentColor',
|
|
581
589
|
filled = false,
|
|
582
590
|
strokeWidth = 1
|
|
583
591
|
} = _ref11,
|
|
584
592
|
props = _objectWithoutPropertiesLoose(_ref11, _excluded11);
|
|
585
593
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
586
|
-
widthHeight:
|
|
594
|
+
widthHeight: widthHeight,
|
|
587
595
|
color: color
|
|
588
596
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
589
597
|
viewBox: "0 0 24 24",
|
|
@@ -607,14 +615,14 @@ var InstagramIcon = _ref11 => {
|
|
|
607
615
|
};
|
|
608
616
|
var YoutubeIcon = _ref12 => {
|
|
609
617
|
var {
|
|
610
|
-
|
|
618
|
+
widthHeight = 24,
|
|
611
619
|
color = 'currentColor',
|
|
612
620
|
filled = true,
|
|
613
621
|
strokeWidth = 1
|
|
614
622
|
} = _ref12,
|
|
615
623
|
props = _objectWithoutPropertiesLoose(_ref12, _excluded12);
|
|
616
624
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
617
|
-
widthHeight:
|
|
625
|
+
widthHeight: widthHeight,
|
|
618
626
|
color: color
|
|
619
627
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
620
628
|
viewBox: "0 0 24 24",
|
|
@@ -635,14 +643,14 @@ var YoutubeIcon = _ref12 => {
|
|
|
635
643
|
};
|
|
636
644
|
var FacebookIcon = _ref13 => {
|
|
637
645
|
var {
|
|
638
|
-
|
|
646
|
+
widthHeight = 24,
|
|
639
647
|
color = 'currentColor',
|
|
640
648
|
filled = true,
|
|
641
649
|
strokeWidth = 1
|
|
642
650
|
} = _ref13,
|
|
643
651
|
props = _objectWithoutPropertiesLoose(_ref13, _excluded13);
|
|
644
652
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
645
|
-
widthHeight:
|
|
653
|
+
widthHeight: widthHeight,
|
|
646
654
|
color: color
|
|
647
655
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
648
656
|
viewBox: "0 0 24 24",
|
|
@@ -657,14 +665,14 @@ var FacebookIcon = _ref13 => {
|
|
|
657
665
|
};
|
|
658
666
|
var LinkedinIcon = _ref14 => {
|
|
659
667
|
var {
|
|
660
|
-
|
|
668
|
+
widthHeight = 24,
|
|
661
669
|
color = 'currentColor',
|
|
662
670
|
filled = true,
|
|
663
671
|
strokeWidth = 1
|
|
664
672
|
} = _ref14,
|
|
665
673
|
props = _objectWithoutPropertiesLoose(_ref14, _excluded14);
|
|
666
674
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
667
|
-
widthHeight:
|
|
675
|
+
widthHeight: widthHeight,
|
|
668
676
|
color: color
|
|
669
677
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
670
678
|
viewBox: "0 0 24 24"
|
|
@@ -683,14 +691,14 @@ var LinkedinIcon = _ref14 => {
|
|
|
683
691
|
};
|
|
684
692
|
var ThreadsIcon = _ref15 => {
|
|
685
693
|
var {
|
|
686
|
-
|
|
694
|
+
widthHeight = 24,
|
|
687
695
|
color = 'currentColor',
|
|
688
696
|
filled = false,
|
|
689
697
|
strokeWidth = 1
|
|
690
698
|
} = _ref15,
|
|
691
699
|
props = _objectWithoutPropertiesLoose(_ref15, _excluded15);
|
|
692
700
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
693
|
-
widthHeight:
|
|
701
|
+
widthHeight: widthHeight,
|
|
694
702
|
color: color
|
|
695
703
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
696
704
|
viewBox: "0 0 24 24"
|
|
@@ -705,7 +713,7 @@ var ThreadsIcon = _ref15 => {
|
|
|
705
713
|
// Example Refactored Icon: MinusIcon without undefined 'padding' prop
|
|
706
714
|
var MinusIcon = _ref16 => {
|
|
707
715
|
var {
|
|
708
|
-
|
|
716
|
+
widthHeight = 24,
|
|
709
717
|
color = 'currentColor',
|
|
710
718
|
filled = false,
|
|
711
719
|
// Assuming minus can be filled; adjust as needed
|
|
@@ -713,7 +721,7 @@ var MinusIcon = _ref16 => {
|
|
|
713
721
|
} = _ref16,
|
|
714
722
|
props = _objectWithoutPropertiesLoose(_ref16, _excluded16);
|
|
715
723
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
716
|
-
widthHeight:
|
|
724
|
+
widthHeight: widthHeight,
|
|
717
725
|
color: color
|
|
718
726
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
719
727
|
viewBox: "0 0 24 24",
|
|
@@ -730,14 +738,14 @@ var MinusIcon = _ref16 => {
|
|
|
730
738
|
// Example Refactored Icon: InfoIcon with accessibility enhancements
|
|
731
739
|
var InfoIcon = _ref17 => {
|
|
732
740
|
var {
|
|
733
|
-
|
|
741
|
+
widthHeight = 24,
|
|
734
742
|
color = 'currentColor',
|
|
735
743
|
filled = false,
|
|
736
744
|
strokeWidth = 1
|
|
737
745
|
} = _ref17,
|
|
738
746
|
props = _objectWithoutPropertiesLoose(_ref17, _excluded17);
|
|
739
747
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
740
|
-
widthHeight:
|
|
748
|
+
widthHeight: widthHeight,
|
|
741
749
|
color: color
|
|
742
750
|
}, props, {
|
|
743
751
|
"aria-label": "Information"
|
|
@@ -751,14 +759,14 @@ var InfoIcon = _ref17 => {
|
|
|
751
759
|
};
|
|
752
760
|
var PlayIcon = _ref18 => {
|
|
753
761
|
var {
|
|
754
|
-
|
|
762
|
+
widthHeight = 24,
|
|
755
763
|
color = 'currentColor',
|
|
756
764
|
filled = true,
|
|
757
765
|
strokeWidth = 1
|
|
758
766
|
} = _ref18,
|
|
759
767
|
props = _objectWithoutPropertiesLoose(_ref18, _excluded18);
|
|
760
768
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
761
|
-
widthHeight:
|
|
769
|
+
widthHeight: widthHeight,
|
|
762
770
|
color: color
|
|
763
771
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
764
772
|
viewBox: "0 0 24 24",
|
|
@@ -770,14 +778,14 @@ var PlayIcon = _ref18 => {
|
|
|
770
778
|
};
|
|
771
779
|
var PauseIcon = _ref19 => {
|
|
772
780
|
var {
|
|
773
|
-
|
|
781
|
+
widthHeight = 24,
|
|
774
782
|
color = 'currentColor',
|
|
775
783
|
filled = true,
|
|
776
784
|
strokeWidth = 1
|
|
777
785
|
} = _ref19,
|
|
778
786
|
props = _objectWithoutPropertiesLoose(_ref19, _excluded19);
|
|
779
787
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
780
|
-
widthHeight:
|
|
788
|
+
widthHeight: widthHeight,
|
|
781
789
|
color: color
|
|
782
790
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
783
791
|
viewBox: "0 0 24 24",
|
|
@@ -789,14 +797,14 @@ var PauseIcon = _ref19 => {
|
|
|
789
797
|
};
|
|
790
798
|
var HeartIcon = _ref20 => {
|
|
791
799
|
var {
|
|
792
|
-
|
|
800
|
+
widthHeight = 24,
|
|
793
801
|
color = 'currentColor',
|
|
794
802
|
filled = true,
|
|
795
803
|
strokeWidth = 1
|
|
796
804
|
} = _ref20,
|
|
797
805
|
props = _objectWithoutPropertiesLoose(_ref20, _excluded20);
|
|
798
806
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
799
|
-
widthHeight:
|
|
807
|
+
widthHeight: widthHeight,
|
|
800
808
|
color: color
|
|
801
809
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
802
810
|
viewBox: "0 0 24 24",
|
|
@@ -808,14 +816,14 @@ var HeartIcon = _ref20 => {
|
|
|
808
816
|
};
|
|
809
817
|
var StarIcon = _ref21 => {
|
|
810
818
|
var {
|
|
811
|
-
|
|
819
|
+
widthHeight = 24,
|
|
812
820
|
color = 'currentColor',
|
|
813
821
|
filled = true,
|
|
814
822
|
strokeWidth = 1
|
|
815
823
|
} = _ref21,
|
|
816
824
|
props = _objectWithoutPropertiesLoose(_ref21, _excluded21);
|
|
817
825
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
818
|
-
widthHeight:
|
|
826
|
+
widthHeight: widthHeight,
|
|
819
827
|
color: color
|
|
820
828
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
821
829
|
viewBox: "0 0 24 24",
|
|
@@ -827,14 +835,14 @@ var StarIcon = _ref21 => {
|
|
|
827
835
|
};
|
|
828
836
|
var SaveIcon = _ref22 => {
|
|
829
837
|
var {
|
|
830
|
-
|
|
838
|
+
widthHeight = 24,
|
|
831
839
|
color = 'currentColor',
|
|
832
840
|
filled = false,
|
|
833
841
|
strokeWidth = 1
|
|
834
842
|
} = _ref22,
|
|
835
843
|
props = _objectWithoutPropertiesLoose(_ref22, _excluded22);
|
|
836
844
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
837
|
-
widthHeight:
|
|
845
|
+
widthHeight: widthHeight,
|
|
838
846
|
color: color
|
|
839
847
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
840
848
|
viewBox: "0 0 24 24",
|
|
@@ -850,14 +858,14 @@ var SaveIcon = _ref22 => {
|
|
|
850
858
|
};
|
|
851
859
|
var WarningIcon = _ref23 => {
|
|
852
860
|
var {
|
|
853
|
-
|
|
861
|
+
widthHeight = 24,
|
|
854
862
|
color = 'currentColor',
|
|
855
863
|
filled = false,
|
|
856
864
|
strokeWidth = 1
|
|
857
865
|
} = _ref23,
|
|
858
866
|
props = _objectWithoutPropertiesLoose(_ref23, _excluded23);
|
|
859
867
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
860
|
-
widthHeight:
|
|
868
|
+
widthHeight: widthHeight,
|
|
861
869
|
color: color
|
|
862
870
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
863
871
|
viewBox: "0 0 24 24",
|
|
@@ -881,14 +889,14 @@ var WarningIcon = _ref23 => {
|
|
|
881
889
|
};
|
|
882
890
|
var BatteryIcon = _ref24 => {
|
|
883
891
|
var {
|
|
884
|
-
|
|
892
|
+
widthHeight = 24,
|
|
885
893
|
color = 'currentColor',
|
|
886
894
|
filled = true,
|
|
887
895
|
strokeWidth = 1
|
|
888
896
|
} = _ref24,
|
|
889
897
|
props = _objectWithoutPropertiesLoose(_ref24, _excluded24);
|
|
890
898
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
891
|
-
widthHeight:
|
|
899
|
+
widthHeight: widthHeight,
|
|
892
900
|
color: color
|
|
893
901
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
894
902
|
viewBox: "0 0 24 24",
|
|
@@ -900,14 +908,14 @@ var BatteryIcon = _ref24 => {
|
|
|
900
908
|
};
|
|
901
909
|
var BookmarkIcon = _ref25 => {
|
|
902
910
|
var {
|
|
903
|
-
|
|
911
|
+
widthHeight = 24,
|
|
904
912
|
color = 'currentColor',
|
|
905
913
|
filled = false,
|
|
906
914
|
strokeWidth = 1
|
|
907
915
|
} = _ref25,
|
|
908
916
|
props = _objectWithoutPropertiesLoose(_ref25, _excluded25);
|
|
909
917
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
910
|
-
widthHeight:
|
|
918
|
+
widthHeight: widthHeight,
|
|
911
919
|
color: color
|
|
912
920
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
913
921
|
viewBox: "0 0 24 24",
|
|
@@ -919,14 +927,14 @@ var BookmarkIcon = _ref25 => {
|
|
|
919
927
|
};
|
|
920
928
|
var CloudIcon = _ref26 => {
|
|
921
929
|
var {
|
|
922
|
-
|
|
930
|
+
widthHeight = 24,
|
|
923
931
|
color = 'currentColor',
|
|
924
932
|
filled = true,
|
|
925
933
|
strokeWidth = 1
|
|
926
934
|
} = _ref26,
|
|
927
935
|
props = _objectWithoutPropertiesLoose(_ref26, _excluded26);
|
|
928
936
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
929
|
-
widthHeight:
|
|
937
|
+
widthHeight: widthHeight,
|
|
930
938
|
color: color
|
|
931
939
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
932
940
|
viewBox: "0 0 24 24",
|
|
@@ -938,14 +946,14 @@ var CloudIcon = _ref26 => {
|
|
|
938
946
|
};
|
|
939
947
|
var CopyIcon = _ref27 => {
|
|
940
948
|
var {
|
|
941
|
-
|
|
949
|
+
widthHeight = 24,
|
|
942
950
|
color = 'currentColor',
|
|
943
951
|
filled = false,
|
|
944
952
|
strokeWidth = 1
|
|
945
953
|
} = _ref27,
|
|
946
954
|
props = _objectWithoutPropertiesLoose(_ref27, _excluded27);
|
|
947
955
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
948
|
-
widthHeight:
|
|
956
|
+
widthHeight: widthHeight,
|
|
949
957
|
color: color
|
|
950
958
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
951
959
|
viewBox: "0 0 24 24",
|
|
@@ -964,14 +972,14 @@ var CopyIcon = _ref27 => {
|
|
|
964
972
|
};
|
|
965
973
|
var DustBinIcon = _ref28 => {
|
|
966
974
|
var {
|
|
967
|
-
|
|
975
|
+
widthHeight = 24,
|
|
968
976
|
color = 'currentColor',
|
|
969
977
|
filled = false,
|
|
970
978
|
strokeWidth = 1
|
|
971
979
|
} = _ref28,
|
|
972
980
|
props = _objectWithoutPropertiesLoose(_ref28, _excluded28);
|
|
973
981
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
974
|
-
widthHeight:
|
|
982
|
+
widthHeight: widthHeight,
|
|
975
983
|
color: color
|
|
976
984
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
977
985
|
viewBox: "0 0 24 24",
|
|
@@ -983,14 +991,14 @@ var DustBinIcon = _ref28 => {
|
|
|
983
991
|
};
|
|
984
992
|
var EditIcon = _ref29 => {
|
|
985
993
|
var {
|
|
986
|
-
|
|
994
|
+
widthHeight = 24,
|
|
987
995
|
color = 'currentColor',
|
|
988
996
|
filled = false,
|
|
989
997
|
strokeWidth = 1
|
|
990
998
|
} = _ref29,
|
|
991
999
|
props = _objectWithoutPropertiesLoose(_ref29, _excluded29);
|
|
992
1000
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
993
|
-
widthHeight:
|
|
1001
|
+
widthHeight: widthHeight,
|
|
994
1002
|
color: color
|
|
995
1003
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
996
1004
|
viewBox: "0 0 24 24",
|
|
@@ -1002,14 +1010,14 @@ var EditIcon = _ref29 => {
|
|
|
1002
1010
|
};
|
|
1003
1011
|
var ErrorIcon = _ref30 => {
|
|
1004
1012
|
var {
|
|
1005
|
-
|
|
1013
|
+
widthHeight = 24,
|
|
1006
1014
|
color = 'currentColor',
|
|
1007
1015
|
strokeWidth = 1,
|
|
1008
1016
|
filled = true
|
|
1009
1017
|
} = _ref30,
|
|
1010
1018
|
props = _objectWithoutPropertiesLoose(_ref30, _excluded30);
|
|
1011
1019
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1012
|
-
widthHeight:
|
|
1020
|
+
widthHeight: widthHeight,
|
|
1013
1021
|
color: color
|
|
1014
1022
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1015
1023
|
viewBox: "0 0 24 24",
|
|
@@ -1035,14 +1043,14 @@ var ErrorIcon = _ref30 => {
|
|
|
1035
1043
|
};
|
|
1036
1044
|
var DownloadIcon = _ref31 => {
|
|
1037
1045
|
var {
|
|
1038
|
-
|
|
1046
|
+
widthHeight = 24,
|
|
1039
1047
|
color = 'currentColor',
|
|
1040
1048
|
filled = true,
|
|
1041
1049
|
strokeWidth = 1
|
|
1042
1050
|
} = _ref31,
|
|
1043
1051
|
props = _objectWithoutPropertiesLoose(_ref31, _excluded31);
|
|
1044
1052
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1045
|
-
widthHeight:
|
|
1053
|
+
widthHeight: widthHeight,
|
|
1046
1054
|
color: color
|
|
1047
1055
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1048
1056
|
viewBox: "0 0 24 24",
|
|
@@ -1054,14 +1062,14 @@ var DownloadIcon = _ref31 => {
|
|
|
1054
1062
|
};
|
|
1055
1063
|
var MenuIcon = _ref32 => {
|
|
1056
1064
|
var {
|
|
1057
|
-
|
|
1065
|
+
widthHeight = 24,
|
|
1058
1066
|
color = 'currentColor',
|
|
1059
1067
|
strokeWidth = 1,
|
|
1060
1068
|
filled = false
|
|
1061
1069
|
} = _ref32,
|
|
1062
1070
|
props = _objectWithoutPropertiesLoose(_ref32, _excluded32);
|
|
1063
1071
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1064
|
-
widthHeight:
|
|
1072
|
+
widthHeight: widthHeight,
|
|
1065
1073
|
color: color
|
|
1066
1074
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1067
1075
|
viewBox: "0 0 24 24",
|
|
@@ -1089,14 +1097,14 @@ var MenuIcon = _ref32 => {
|
|
|
1089
1097
|
};
|
|
1090
1098
|
var ShareIcon = _ref33 => {
|
|
1091
1099
|
var {
|
|
1092
|
-
|
|
1100
|
+
widthHeight = 24,
|
|
1093
1101
|
color = 'currentColor',
|
|
1094
1102
|
filled = false,
|
|
1095
1103
|
strokeWidth = 1
|
|
1096
1104
|
} = _ref33,
|
|
1097
1105
|
props = _objectWithoutPropertiesLoose(_ref33, _excluded33);
|
|
1098
1106
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1099
|
-
widthHeight:
|
|
1107
|
+
widthHeight: widthHeight,
|
|
1100
1108
|
color: color
|
|
1101
1109
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1102
1110
|
viewBox: "0 0 24 24",
|
|
@@ -1130,14 +1138,14 @@ var ShareIcon = _ref33 => {
|
|
|
1130
1138
|
};
|
|
1131
1139
|
var RefreshIcon = _ref34 => {
|
|
1132
1140
|
var {
|
|
1133
|
-
|
|
1141
|
+
widthHeight = 24,
|
|
1134
1142
|
color = 'currentColor',
|
|
1135
1143
|
strokeWidth = 1,
|
|
1136
1144
|
filled = false
|
|
1137
1145
|
} = _ref34,
|
|
1138
1146
|
props = _objectWithoutPropertiesLoose(_ref34, _excluded34);
|
|
1139
1147
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1140
|
-
widthHeight:
|
|
1148
|
+
widthHeight: widthHeight,
|
|
1141
1149
|
color: color
|
|
1142
1150
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1143
1151
|
viewBox: "0 0 24 24",
|
|
@@ -1151,14 +1159,14 @@ var RefreshIcon = _ref34 => {
|
|
|
1151
1159
|
};
|
|
1152
1160
|
var PrintIcon = _ref35 => {
|
|
1153
1161
|
var {
|
|
1154
|
-
|
|
1162
|
+
widthHeight = 24,
|
|
1155
1163
|
color = 'currentColor',
|
|
1156
1164
|
filled = true,
|
|
1157
1165
|
strokeWidth = 1
|
|
1158
1166
|
} = _ref35,
|
|
1159
1167
|
props = _objectWithoutPropertiesLoose(_ref35, _excluded35);
|
|
1160
1168
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1161
|
-
widthHeight:
|
|
1169
|
+
widthHeight: widthHeight,
|
|
1162
1170
|
color: color
|
|
1163
1171
|
}, props), /*#__PURE__*/React.createElement("svg", {
|
|
1164
1172
|
viewBox: "0 0 24 24",
|
|
@@ -1171,14 +1179,14 @@ var PrintIcon = _ref35 => {
|
|
|
1171
1179
|
};
|
|
1172
1180
|
var PanelIcon = _ref36 => {
|
|
1173
1181
|
var {
|
|
1174
|
-
|
|
1182
|
+
widthHeight = 24,
|
|
1175
1183
|
color = 'currentColor',
|
|
1176
1184
|
strokeWidth = 1,
|
|
1177
1185
|
filled = false
|
|
1178
1186
|
} = _ref36,
|
|
1179
1187
|
props = _objectWithoutPropertiesLoose(_ref36, _excluded36);
|
|
1180
1188
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1181
|
-
widthHeight:
|
|
1189
|
+
widthHeight: widthHeight,
|
|
1182
1190
|
color: color
|
|
1183
1191
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1184
1192
|
viewBox: "0 0 24 24",
|
|
@@ -1242,14 +1250,14 @@ var PanelIcon = _ref36 => {
|
|
|
1242
1250
|
};
|
|
1243
1251
|
var FilterIcon = _ref37 => {
|
|
1244
1252
|
var {
|
|
1245
|
-
|
|
1253
|
+
widthHeight = 24,
|
|
1246
1254
|
color = 'currentColor',
|
|
1247
1255
|
filled = false,
|
|
1248
1256
|
strokeWidth = 1
|
|
1249
1257
|
} = _ref37,
|
|
1250
1258
|
props = _objectWithoutPropertiesLoose(_ref37, _excluded37);
|
|
1251
1259
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1252
|
-
widthHeight:
|
|
1260
|
+
widthHeight: widthHeight,
|
|
1253
1261
|
color: color
|
|
1254
1262
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1255
1263
|
viewBox: "0 0 24 24",
|
|
@@ -1261,14 +1269,14 @@ var FilterIcon = _ref37 => {
|
|
|
1261
1269
|
};
|
|
1262
1270
|
var HomeIcon = _ref38 => {
|
|
1263
1271
|
var {
|
|
1264
|
-
|
|
1272
|
+
widthHeight = 24,
|
|
1265
1273
|
color = 'currentColor',
|
|
1266
1274
|
filled = true,
|
|
1267
1275
|
strokeWidth = 1
|
|
1268
1276
|
} = _ref38,
|
|
1269
1277
|
props = _objectWithoutPropertiesLoose(_ref38, _excluded38);
|
|
1270
1278
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1271
|
-
widthHeight:
|
|
1279
|
+
widthHeight: widthHeight,
|
|
1272
1280
|
color: color
|
|
1273
1281
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1274
1282
|
viewBox: "0 0 24 24",
|
|
@@ -1280,14 +1288,14 @@ var HomeIcon = _ref38 => {
|
|
|
1280
1288
|
};
|
|
1281
1289
|
var LocationIcon = _ref39 => {
|
|
1282
1290
|
var {
|
|
1283
|
-
|
|
1291
|
+
widthHeight = 24,
|
|
1284
1292
|
color = 'currentColor',
|
|
1285
1293
|
filled = true,
|
|
1286
1294
|
strokeWidth = 1
|
|
1287
1295
|
} = _ref39,
|
|
1288
1296
|
props = _objectWithoutPropertiesLoose(_ref39, _excluded39);
|
|
1289
1297
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1290
|
-
widthHeight:
|
|
1298
|
+
widthHeight: widthHeight,
|
|
1291
1299
|
color: color
|
|
1292
1300
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1293
1301
|
viewBox: "0 0 24 24",
|
|
@@ -1299,14 +1307,14 @@ var LocationIcon = _ref39 => {
|
|
|
1299
1307
|
};
|
|
1300
1308
|
var LockIcon = _ref40 => {
|
|
1301
1309
|
var {
|
|
1302
|
-
|
|
1310
|
+
widthHeight = 24,
|
|
1303
1311
|
color = 'currentColor',
|
|
1304
1312
|
filled = false,
|
|
1305
1313
|
strokeWidth = 1
|
|
1306
1314
|
} = _ref40,
|
|
1307
1315
|
props = _objectWithoutPropertiesLoose(_ref40, _excluded40);
|
|
1308
1316
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1309
|
-
widthHeight:
|
|
1317
|
+
widthHeight: widthHeight,
|
|
1310
1318
|
color: color
|
|
1311
1319
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1312
1320
|
viewBox: "0 0 24 24",
|
|
@@ -1325,14 +1333,14 @@ var LockIcon = _ref40 => {
|
|
|
1325
1333
|
};
|
|
1326
1334
|
var MicrophoneIcon = _ref41 => {
|
|
1327
1335
|
var {
|
|
1328
|
-
|
|
1336
|
+
widthHeight = 24,
|
|
1329
1337
|
color = 'currentColor',
|
|
1330
1338
|
filled = false,
|
|
1331
1339
|
strokeWidth = 1
|
|
1332
1340
|
} = _ref41,
|
|
1333
1341
|
props = _objectWithoutPropertiesLoose(_ref41, _excluded41);
|
|
1334
1342
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1335
|
-
widthHeight:
|
|
1343
|
+
widthHeight: widthHeight,
|
|
1336
1344
|
color: color
|
|
1337
1345
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1338
1346
|
viewBox: "0 0 24 24",
|
|
@@ -1358,14 +1366,14 @@ var MicrophoneIcon = _ref41 => {
|
|
|
1358
1366
|
};
|
|
1359
1367
|
var MoonIcon = _ref42 => {
|
|
1360
1368
|
var {
|
|
1361
|
-
|
|
1369
|
+
widthHeight = 24,
|
|
1362
1370
|
color = 'currentColor',
|
|
1363
1371
|
filled = true,
|
|
1364
1372
|
strokeWidth = 1
|
|
1365
1373
|
} = _ref42,
|
|
1366
1374
|
props = _objectWithoutPropertiesLoose(_ref42, _excluded42);
|
|
1367
1375
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1368
|
-
widthHeight:
|
|
1376
|
+
widthHeight: widthHeight,
|
|
1369
1377
|
color: color
|
|
1370
1378
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1371
1379
|
viewBox: "0 0 24 24",
|
|
@@ -1377,14 +1385,14 @@ var MoonIcon = _ref42 => {
|
|
|
1377
1385
|
};
|
|
1378
1386
|
var NotificationIcon = _ref43 => {
|
|
1379
1387
|
var {
|
|
1380
|
-
|
|
1388
|
+
widthHeight = 24,
|
|
1381
1389
|
color = 'currentColor',
|
|
1382
1390
|
filled = false,
|
|
1383
1391
|
strokeWidth = 1
|
|
1384
1392
|
} = _ref43,
|
|
1385
1393
|
props = _objectWithoutPropertiesLoose(_ref43, _excluded43);
|
|
1386
1394
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1387
|
-
widthHeight:
|
|
1395
|
+
widthHeight: widthHeight,
|
|
1388
1396
|
color: color
|
|
1389
1397
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1390
1398
|
viewBox: "0 0 24 24",
|
|
@@ -1398,14 +1406,14 @@ var NotificationIcon = _ref43 => {
|
|
|
1398
1406
|
};
|
|
1399
1407
|
var OpenEyeIcon = _ref44 => {
|
|
1400
1408
|
var {
|
|
1401
|
-
|
|
1409
|
+
widthHeight = 24,
|
|
1402
1410
|
color = 'currentColor',
|
|
1403
1411
|
filled = true,
|
|
1404
1412
|
strokeWidth = 1
|
|
1405
1413
|
} = _ref44,
|
|
1406
1414
|
props = _objectWithoutPropertiesLoose(_ref44, _excluded44);
|
|
1407
1415
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1408
|
-
widthHeight:
|
|
1416
|
+
widthHeight: widthHeight,
|
|
1409
1417
|
color: color
|
|
1410
1418
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1411
1419
|
viewBox: "0 0 24 24",
|
|
@@ -1417,14 +1425,14 @@ var OpenEyeIcon = _ref44 => {
|
|
|
1417
1425
|
};
|
|
1418
1426
|
var ProfileIcon = _ref45 => {
|
|
1419
1427
|
var {
|
|
1420
|
-
|
|
1428
|
+
widthHeight = 24,
|
|
1421
1429
|
color = 'currentColor',
|
|
1422
1430
|
filled = true,
|
|
1423
1431
|
strokeWidth = 1
|
|
1424
1432
|
} = _ref45,
|
|
1425
1433
|
props = _objectWithoutPropertiesLoose(_ref45, _excluded45);
|
|
1426
1434
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1427
|
-
widthHeight:
|
|
1435
|
+
widthHeight: widthHeight,
|
|
1428
1436
|
color: color
|
|
1429
1437
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1430
1438
|
viewBox: "0 0 24 24",
|
|
@@ -1437,14 +1445,14 @@ var ProfileIcon = _ref45 => {
|
|
|
1437
1445
|
};
|
|
1438
1446
|
var SettingsIcon = _ref46 => {
|
|
1439
1447
|
var {
|
|
1440
|
-
|
|
1448
|
+
widthHeight = 24,
|
|
1441
1449
|
color = 'currentColor',
|
|
1442
1450
|
filled = false,
|
|
1443
1451
|
strokeWidth = 1
|
|
1444
1452
|
} = _ref46,
|
|
1445
1453
|
props = _objectWithoutPropertiesLoose(_ref46, _excluded46);
|
|
1446
1454
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1447
|
-
widthHeight:
|
|
1455
|
+
widthHeight: widthHeight,
|
|
1448
1456
|
color: color
|
|
1449
1457
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1450
1458
|
viewBox: "0 0 24 24",
|
|
@@ -1456,14 +1464,14 @@ var SettingsIcon = _ref46 => {
|
|
|
1456
1464
|
};
|
|
1457
1465
|
var SuccessIcon = _ref47 => {
|
|
1458
1466
|
var {
|
|
1459
|
-
|
|
1467
|
+
widthHeight = 24,
|
|
1460
1468
|
color = 'currentColor',
|
|
1461
1469
|
filled = true,
|
|
1462
1470
|
strokeWidth = 1
|
|
1463
1471
|
} = _ref47,
|
|
1464
1472
|
props = _objectWithoutPropertiesLoose(_ref47, _excluded47);
|
|
1465
1473
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1466
|
-
widthHeight:
|
|
1474
|
+
widthHeight: widthHeight,
|
|
1467
1475
|
color: color
|
|
1468
1476
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1469
1477
|
viewBox: "0 0 24 24",
|
|
@@ -1475,14 +1483,14 @@ var SuccessIcon = _ref47 => {
|
|
|
1475
1483
|
};
|
|
1476
1484
|
var UnLikeIcon = _ref48 => {
|
|
1477
1485
|
var {
|
|
1478
|
-
|
|
1486
|
+
widthHeight = 24,
|
|
1479
1487
|
color = 'currentColor',
|
|
1480
1488
|
filled = true,
|
|
1481
1489
|
strokeWidth = 1
|
|
1482
1490
|
} = _ref48,
|
|
1483
1491
|
props = _objectWithoutPropertiesLoose(_ref48, _excluded48);
|
|
1484
1492
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1485
|
-
widthHeight:
|
|
1493
|
+
widthHeight: widthHeight,
|
|
1486
1494
|
color: color
|
|
1487
1495
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1488
1496
|
viewBox: "0 0 24 24",
|
|
@@ -1494,14 +1502,14 @@ var UnLikeIcon = _ref48 => {
|
|
|
1494
1502
|
};
|
|
1495
1503
|
var ClockIcon = _ref49 => {
|
|
1496
1504
|
var {
|
|
1497
|
-
|
|
1505
|
+
widthHeight = 24,
|
|
1498
1506
|
color = 'currentColor',
|
|
1499
1507
|
strokeWidth = 1,
|
|
1500
1508
|
filled = false
|
|
1501
1509
|
} = _ref49,
|
|
1502
1510
|
props = _objectWithoutPropertiesLoose(_ref49, _excluded49);
|
|
1503
1511
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1504
|
-
widthHeight:
|
|
1512
|
+
widthHeight: widthHeight,
|
|
1505
1513
|
color: color
|
|
1506
1514
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1507
1515
|
viewBox: "0 0 24 24",
|
|
@@ -1517,14 +1525,14 @@ var ClockIcon = _ref49 => {
|
|
|
1517
1525
|
};
|
|
1518
1526
|
var CameraIcon = _ref50 => {
|
|
1519
1527
|
var {
|
|
1520
|
-
|
|
1528
|
+
widthHeight = 24,
|
|
1521
1529
|
color = 'currentColor',
|
|
1522
1530
|
strokeWidth = 1,
|
|
1523
1531
|
filled = false
|
|
1524
1532
|
} = _ref50,
|
|
1525
1533
|
props = _objectWithoutPropertiesLoose(_ref50, _excluded50);
|
|
1526
1534
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1527
|
-
widthHeight:
|
|
1535
|
+
widthHeight: widthHeight,
|
|
1528
1536
|
color: color
|
|
1529
1537
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1530
1538
|
viewBox: "0 0 24 24",
|
|
@@ -1540,14 +1548,14 @@ var CameraIcon = _ref50 => {
|
|
|
1540
1548
|
};
|
|
1541
1549
|
var BluetoothIcon = _ref51 => {
|
|
1542
1550
|
var {
|
|
1543
|
-
|
|
1551
|
+
widthHeight = 24,
|
|
1544
1552
|
color = 'currentColor',
|
|
1545
1553
|
filled = true,
|
|
1546
1554
|
strokeWidth = 1
|
|
1547
1555
|
} = _ref51,
|
|
1548
1556
|
props = _objectWithoutPropertiesLoose(_ref51, _excluded51);
|
|
1549
1557
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1550
|
-
widthHeight:
|
|
1558
|
+
widthHeight: widthHeight,
|
|
1551
1559
|
color: color
|
|
1552
1560
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1553
1561
|
viewBox: "0 0 24 24",
|
|
@@ -1559,14 +1567,14 @@ var BluetoothIcon = _ref51 => {
|
|
|
1559
1567
|
};
|
|
1560
1568
|
var LikeIcon = _ref52 => {
|
|
1561
1569
|
var {
|
|
1562
|
-
|
|
1570
|
+
widthHeight = 24,
|
|
1563
1571
|
color = 'currentColor',
|
|
1564
1572
|
filled = true,
|
|
1565
1573
|
strokeWidth = 1
|
|
1566
1574
|
} = _ref52,
|
|
1567
1575
|
props = _objectWithoutPropertiesLoose(_ref52, _excluded52);
|
|
1568
1576
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1569
|
-
widthHeight:
|
|
1577
|
+
widthHeight: widthHeight,
|
|
1570
1578
|
color: color
|
|
1571
1579
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1572
1580
|
viewBox: "0 0 24 24",
|
|
@@ -1578,14 +1586,14 @@ var LikeIcon = _ref52 => {
|
|
|
1578
1586
|
};
|
|
1579
1587
|
var UnlockIcon = _ref53 => {
|
|
1580
1588
|
var {
|
|
1581
|
-
|
|
1589
|
+
widthHeight = 24,
|
|
1582
1590
|
color = 'currentColor',
|
|
1583
1591
|
filled = false,
|
|
1584
1592
|
strokeWidth = 1
|
|
1585
1593
|
} = _ref53,
|
|
1586
1594
|
props = _objectWithoutPropertiesLoose(_ref53, _excluded53);
|
|
1587
1595
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1588
|
-
widthHeight:
|
|
1596
|
+
widthHeight: widthHeight,
|
|
1589
1597
|
color: color
|
|
1590
1598
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1591
1599
|
viewBox: "0 0 24 24",
|
|
@@ -1604,14 +1612,14 @@ var UnlockIcon = _ref53 => {
|
|
|
1604
1612
|
};
|
|
1605
1613
|
var WifiIcon = _ref54 => {
|
|
1606
1614
|
var {
|
|
1607
|
-
|
|
1615
|
+
widthHeight = 24,
|
|
1608
1616
|
color = 'currentColor',
|
|
1609
1617
|
filled = false,
|
|
1610
1618
|
strokeWidth = 1
|
|
1611
1619
|
} = _ref54,
|
|
1612
1620
|
props = _objectWithoutPropertiesLoose(_ref54, _excluded54);
|
|
1613
1621
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1614
|
-
widthHeight:
|
|
1622
|
+
widthHeight: widthHeight,
|
|
1615
1623
|
color: color
|
|
1616
1624
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1617
1625
|
viewBox: "0 0 24 24",
|
|
@@ -1623,14 +1631,14 @@ var WifiIcon = _ref54 => {
|
|
|
1623
1631
|
};
|
|
1624
1632
|
var UploadIcon = _ref55 => {
|
|
1625
1633
|
var {
|
|
1626
|
-
|
|
1634
|
+
widthHeight = 24,
|
|
1627
1635
|
color = 'currentColor',
|
|
1628
1636
|
filled = false,
|
|
1629
1637
|
strokeWidth = 1
|
|
1630
1638
|
} = _ref55,
|
|
1631
1639
|
props = _objectWithoutPropertiesLoose(_ref55, _excluded55);
|
|
1632
1640
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1633
|
-
widthHeight:
|
|
1641
|
+
widthHeight: widthHeight,
|
|
1634
1642
|
color: color
|
|
1635
1643
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1636
1644
|
viewBox: "0 0 24 24",
|
|
@@ -1646,14 +1654,14 @@ var UploadIcon = _ref55 => {
|
|
|
1646
1654
|
};
|
|
1647
1655
|
var SearchIcon = _ref56 => {
|
|
1648
1656
|
var {
|
|
1649
|
-
|
|
1657
|
+
widthHeight = 24,
|
|
1650
1658
|
color = 'currentColor',
|
|
1651
1659
|
filled = true,
|
|
1652
1660
|
strokeWidth = 1
|
|
1653
1661
|
} = _ref56,
|
|
1654
1662
|
props = _objectWithoutPropertiesLoose(_ref56, _excluded56);
|
|
1655
1663
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1656
|
-
widthHeight:
|
|
1664
|
+
widthHeight: widthHeight,
|
|
1657
1665
|
color: color
|
|
1658
1666
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1659
1667
|
viewBox: "0 0 24 24",
|
|
@@ -1665,14 +1673,14 @@ var SearchIcon = _ref56 => {
|
|
|
1665
1673
|
};
|
|
1666
1674
|
var CloseEyeIcon = _ref57 => {
|
|
1667
1675
|
var {
|
|
1668
|
-
|
|
1676
|
+
widthHeight = 24,
|
|
1669
1677
|
color = 'currentColor',
|
|
1670
1678
|
filled = true,
|
|
1671
1679
|
strokeWidth = 1
|
|
1672
1680
|
} = _ref57,
|
|
1673
1681
|
props = _objectWithoutPropertiesLoose(_ref57, _excluded57);
|
|
1674
1682
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1675
|
-
widthHeight:
|
|
1683
|
+
widthHeight: widthHeight,
|
|
1676
1684
|
color: color
|
|
1677
1685
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1678
1686
|
viewBox: "0 0 24 24",
|
|
@@ -1685,14 +1693,14 @@ var CloseEyeIcon = _ref57 => {
|
|
|
1685
1693
|
};
|
|
1686
1694
|
var ExternalLinkIcon = _ref58 => {
|
|
1687
1695
|
var {
|
|
1688
|
-
|
|
1696
|
+
widthHeight = 24,
|
|
1689
1697
|
color = 'currentColor',
|
|
1690
1698
|
filled = true,
|
|
1691
1699
|
strokeWidth = 1
|
|
1692
1700
|
} = _ref58,
|
|
1693
1701
|
props = _objectWithoutPropertiesLoose(_ref58, _excluded58);
|
|
1694
1702
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1695
|
-
widthHeight:
|
|
1703
|
+
widthHeight: widthHeight,
|
|
1696
1704
|
color: color
|
|
1697
1705
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1698
1706
|
viewBox: "0 0 24 24",
|
|
@@ -1704,14 +1712,14 @@ var ExternalLinkIcon = _ref58 => {
|
|
|
1704
1712
|
};
|
|
1705
1713
|
var PlusIcon = _ref59 => {
|
|
1706
1714
|
var {
|
|
1707
|
-
|
|
1715
|
+
widthHeight = 24,
|
|
1708
1716
|
color = 'currentColor',
|
|
1709
1717
|
filled = false,
|
|
1710
1718
|
strokeWidth = 1
|
|
1711
1719
|
} = _ref59,
|
|
1712
1720
|
props = _objectWithoutPropertiesLoose(_ref59, _excluded59);
|
|
1713
1721
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1714
|
-
widthHeight:
|
|
1722
|
+
widthHeight: widthHeight,
|
|
1715
1723
|
color: color
|
|
1716
1724
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1717
1725
|
viewBox: "0 0 24 24",
|
|
@@ -1733,14 +1741,14 @@ var PlusIcon = _ref59 => {
|
|
|
1733
1741
|
};
|
|
1734
1742
|
var TickIcon = _ref60 => {
|
|
1735
1743
|
var {
|
|
1736
|
-
|
|
1744
|
+
widthHeight = 24,
|
|
1737
1745
|
color = 'currentColor',
|
|
1738
1746
|
filled = false,
|
|
1739
1747
|
strokeWidth = 1
|
|
1740
1748
|
} = _ref60,
|
|
1741
1749
|
props = _objectWithoutPropertiesLoose(_ref60, _excluded60);
|
|
1742
1750
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1743
|
-
widthHeight:
|
|
1751
|
+
widthHeight: widthHeight,
|
|
1744
1752
|
color: color
|
|
1745
1753
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1746
1754
|
viewBox: "0 0 24 24",
|
|
@@ -1754,14 +1762,14 @@ var TickIcon = _ref60 => {
|
|
|
1754
1762
|
};
|
|
1755
1763
|
var BoldArrowIcon = _ref61 => {
|
|
1756
1764
|
var {
|
|
1757
|
-
|
|
1765
|
+
widthHeight = 24,
|
|
1758
1766
|
color = 'currentColor',
|
|
1759
1767
|
filled = true,
|
|
1760
1768
|
strokeWidth = 1
|
|
1761
1769
|
} = _ref61,
|
|
1762
1770
|
props = _objectWithoutPropertiesLoose(_ref61, _excluded61);
|
|
1763
1771
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1764
|
-
widthHeight:
|
|
1772
|
+
widthHeight: widthHeight,
|
|
1765
1773
|
color: color
|
|
1766
1774
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1767
1775
|
viewBox: "0 0 24 24",
|
|
@@ -1773,14 +1781,14 @@ var BoldArrowIcon = _ref61 => {
|
|
|
1773
1781
|
};
|
|
1774
1782
|
var ArrowIcon = _ref62 => {
|
|
1775
1783
|
var {
|
|
1776
|
-
|
|
1784
|
+
widthHeight = 24,
|
|
1777
1785
|
color = 'currentColor',
|
|
1778
1786
|
filled = false,
|
|
1779
1787
|
strokeWidth = 1
|
|
1780
1788
|
} = _ref62,
|
|
1781
1789
|
props = _objectWithoutPropertiesLoose(_ref62, _excluded62);
|
|
1782
1790
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1783
|
-
widthHeight:
|
|
1791
|
+
widthHeight: widthHeight,
|
|
1784
1792
|
color: color
|
|
1785
1793
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1786
1794
|
viewBox: "0 0 24 24",
|
|
@@ -1798,14 +1806,14 @@ var ArrowIcon = _ref62 => {
|
|
|
1798
1806
|
};
|
|
1799
1807
|
var SpinnerIcon = _ref63 => {
|
|
1800
1808
|
var {
|
|
1801
|
-
|
|
1809
|
+
widthHeight = 24,
|
|
1802
1810
|
color = 'currentColor',
|
|
1803
1811
|
filled = false,
|
|
1804
1812
|
strokeWidth = 1
|
|
1805
1813
|
} = _ref63,
|
|
1806
1814
|
props = _objectWithoutPropertiesLoose(_ref63, _excluded63);
|
|
1807
1815
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1808
|
-
widthHeight:
|
|
1816
|
+
widthHeight: widthHeight,
|
|
1809
1817
|
color: color
|
|
1810
1818
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1811
1819
|
viewBox: "0 0 24 24",
|
|
@@ -1823,14 +1831,14 @@ var SpinnerIcon = _ref63 => {
|
|
|
1823
1831
|
};
|
|
1824
1832
|
var CalendarIcon = _ref64 => {
|
|
1825
1833
|
var {
|
|
1826
|
-
|
|
1834
|
+
widthHeight = 24,
|
|
1827
1835
|
color = 'currentColor',
|
|
1828
1836
|
strokeWidth = 1,
|
|
1829
1837
|
filled = false
|
|
1830
1838
|
} = _ref64,
|
|
1831
1839
|
props = _objectWithoutPropertiesLoose(_ref64, _excluded64);
|
|
1832
1840
|
return /*#__PURE__*/React.createElement(IconWrapper, Object.assign({
|
|
1833
|
-
widthHeight:
|
|
1841
|
+
widthHeight: widthHeight,
|
|
1834
1842
|
color: color
|
|
1835
1843
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1836
1844
|
viewBox: "0 0 24 24",
|
|
@@ -1992,7 +2000,7 @@ var Themes = {
|
|
|
1992
2000
|
|
|
1993
2001
|
// Defines AlertView as a functional component using destructuring to extract props.
|
|
1994
2002
|
var AlertView = _ref => {
|
|
1995
|
-
var _views$icon$color;
|
|
2003
|
+
var _views$icon$color, _views$icon;
|
|
1996
2004
|
var {
|
|
1997
2005
|
icon,
|
|
1998
2006
|
title,
|
|
@@ -2011,8 +2019,8 @@ var AlertView = _ref => {
|
|
|
2011
2019
|
}, views == null ? void 0 : views.container), /*#__PURE__*/React.createElement(View, {
|
|
2012
2020
|
alignSelf: 'center'
|
|
2013
2021
|
}, icon ? icon : (/*#__PURE__*/React.createElement(WarningIcon, {
|
|
2014
|
-
|
|
2015
|
-
color: (_views$icon$color = views == null ? void 0 :
|
|
2022
|
+
widthHeight: 24,
|
|
2023
|
+
color: (_views$icon$color = views == null || (_views$icon = views.icon) == null ? void 0 : _views$icon.color) != null ? _views$icon$color : Themes[variant].content.color
|
|
2016
2024
|
}))), /*#__PURE__*/React.createElement(Vertical, {
|
|
2017
2025
|
gap: 10
|
|
2018
2026
|
}, /*#__PURE__*/React.createElement(Text, Object.assign({
|
|
@@ -2044,14 +2052,15 @@ var AlertComponent = _ref => {
|
|
|
2044
2052
|
// Exporting the AlertComponent as 'Alert' for use in other parts of the application.
|
|
2045
2053
|
var Alert = AlertComponent;
|
|
2046
2054
|
|
|
2047
|
-
var _excluded$5 = ["ratio", "children"];
|
|
2055
|
+
var _excluded$5 = ["ratio", "children", "views"];
|
|
2048
2056
|
// Declaration of a functional component named AspectRatioView.
|
|
2049
2057
|
var AspectRatioView = _ref => {
|
|
2050
2058
|
var {
|
|
2051
2059
|
// Set a default aspect ratio of 16:9 if no ratio is provided as a prop.
|
|
2052
2060
|
ratio = 16 / 9,
|
|
2053
2061
|
// children prop used to render enclosed components.
|
|
2054
|
-
children
|
|
2062
|
+
children,
|
|
2063
|
+
views
|
|
2055
2064
|
// Spread the rest of the props to inherit additional properties.
|
|
2056
2065
|
} = _ref,
|
|
2057
2066
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
@@ -2061,13 +2070,13 @@ var AspectRatioView = _ref => {
|
|
|
2061
2070
|
overflow: "hidden",
|
|
2062
2071
|
paddingTop: 1 / ratio * 100 + "%",
|
|
2063
2072
|
borderRadius: 8
|
|
2064
|
-
}, props), /*#__PURE__*/React.createElement(View, {
|
|
2073
|
+
}, props, views == null ? void 0 : views.center), /*#__PURE__*/React.createElement(View, Object.assign({
|
|
2065
2074
|
position: "absolute",
|
|
2066
2075
|
top: 0,
|
|
2067
2076
|
right: 0,
|
|
2068
2077
|
bottom: 0,
|
|
2069
2078
|
left: 0
|
|
2070
|
-
}, children));
|
|
2079
|
+
}, views == null ? void 0 : views.view), children));
|
|
2071
2080
|
};
|
|
2072
2081
|
|
|
2073
2082
|
var _excluded$6 = ["ratio", "children"];
|
|
@@ -2530,7 +2539,7 @@ var DefaultSpeeds = {
|
|
|
2530
2539
|
var _excluded$8 = ["size", "speed", "color", "themeMode"],
|
|
2531
2540
|
_excluded2$1 = ["size", "speed", "color", "themeMode"],
|
|
2532
2541
|
_excluded3$1 = ["size", "speed", "color", "themeMode"],
|
|
2533
|
-
_excluded4$1 = ["size", "children", "textColor", "loaderColor", "type", "speed", "textPosition"];
|
|
2542
|
+
_excluded4$1 = ["size", "children", "textColor", "loaderColor", "type", "speed", "textPosition", "views"];
|
|
2534
2543
|
var DefaultSpinner = _ref => {
|
|
2535
2544
|
var {
|
|
2536
2545
|
size = 'md',
|
|
@@ -2671,7 +2680,8 @@ var LoaderView = _ref4 => {
|
|
|
2671
2680
|
loaderColor,
|
|
2672
2681
|
type = 'default',
|
|
2673
2682
|
speed = 'normal',
|
|
2674
|
-
textPosition = 'right'
|
|
2683
|
+
textPosition = 'right',
|
|
2684
|
+
views
|
|
2675
2685
|
} = _ref4,
|
|
2676
2686
|
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$1);
|
|
2677
2687
|
var style = {
|
|
@@ -2687,11 +2697,11 @@ var LoaderView = _ref4 => {
|
|
|
2687
2697
|
return /*#__PURE__*/React.createElement(Center, Object.assign({
|
|
2688
2698
|
gap: 10,
|
|
2689
2699
|
flexDirection: textPosition === 'top' || textPosition === 'bottom' ? 'column' : 'row'
|
|
2690
|
-
}, props), (textPosition === 'left' || textPosition === 'top') && children && (/*#__PURE__*/React.createElement(View, {
|
|
2700
|
+
}, props, views == null ? void 0 : views.container), (textPosition === 'left' || textPosition === 'top') && children && (/*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
2691
2701
|
color: textColor
|
|
2692
|
-
}, children)), variants[type], (textPosition === 'right' || textPosition === 'bottom') && children && (/*#__PURE__*/React.createElement(View, {
|
|
2702
|
+
}, views == null ? void 0 : views.text), children)), variants[type], (textPosition === 'right' || textPosition === 'bottom') && children && (/*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
2693
2703
|
color: textColor
|
|
2694
|
-
}, children)));
|
|
2704
|
+
}, views == null ? void 0 : views.text), children)));
|
|
2695
2705
|
};
|
|
2696
2706
|
|
|
2697
2707
|
// Defines a LoaderComponent as a functional component with props defined by LoaderProps and returns the LoaderView component, passing along any received props.
|
|
@@ -2702,7 +2712,7 @@ React.createElement(LoaderView, Object.assign({}, props)));
|
|
|
2702
2712
|
// Exports the LoaderComponent as Loader, making it available for use in other parts of the application.
|
|
2703
2713
|
var Loader = LoaderComponent;
|
|
2704
2714
|
|
|
2705
|
-
var _excluded$9 = ["icon", "shadow", "children", "ariaLabel", "to", "isAuto", "isFilled", "isIconRounded", "isLoading", "isDisabled", "size", "variant", "iconPosition", "shape", "onClick", "loaderProps", "loaderPosition", "effect", "isHovered", "setIsHovered", "isExternal", "themeMode", "containerProps", "linkProps"];
|
|
2715
|
+
var _excluded$9 = ["icon", "shadow", "children", "ariaLabel", "to", "isAuto", "isFilled", "isIconRounded", "isLoading", "isDisabled", "size", "variant", "iconPosition", "shape", "onClick", "loaderProps", "loaderPosition", "effect", "isHovered", "setIsHovered", "isExternal", "themeMode", "containerProps", "linkProps", "views"];
|
|
2706
2716
|
var contrast = /*#__PURE__*/require('contrast');
|
|
2707
2717
|
var ButtonView = _ref => {
|
|
2708
2718
|
var _props$onClick;
|
|
@@ -2710,24 +2720,16 @@ var ButtonView = _ref => {
|
|
|
2710
2720
|
icon,
|
|
2711
2721
|
shadow,
|
|
2712
2722
|
children,
|
|
2713
|
-
// Defines the functional component ButtonView with its expected props detailed in ButtonProps.
|
|
2714
2723
|
ariaLabel,
|
|
2715
|
-
// Initializes default values for the ButtonProps object; useful for defining states like isAuto, isFilled, etc.
|
|
2716
2724
|
to,
|
|
2717
2725
|
isAuto = false,
|
|
2718
|
-
// Determines if button should be active based on isDisabled and isLoading properties.
|
|
2719
2726
|
isFilled = false,
|
|
2720
|
-
// Prepares default properties for the native button element based on isActive state.
|
|
2721
2727
|
isIconRounded = false,
|
|
2722
|
-
// Sets button color; defaults to the theme's disabled color if button is not active.
|
|
2723
2728
|
isLoading = false,
|
|
2724
|
-
// Determines if the hover effect shall be applied based on isHovered and effect property.
|
|
2725
2729
|
isDisabled = false,
|
|
2726
|
-
// Determines if the reverse style shall be applied based on isHovered and effect property.
|
|
2727
2730
|
size = 'md',
|
|
2728
2731
|
variant = 'filled',
|
|
2729
2732
|
iconPosition = 'left',
|
|
2730
|
-
// Defines CSS properties for 'filled' variant of the button with conditional styles based on reverse state.
|
|
2731
2733
|
shape = 'rounded',
|
|
2732
2734
|
onClick = () => {},
|
|
2733
2735
|
loaderProps = {},
|
|
@@ -2737,9 +2739,8 @@ var ButtonView = _ref => {
|
|
|
2737
2739
|
setIsHovered = () => {},
|
|
2738
2740
|
isExternal = false,
|
|
2739
2741
|
themeMode: elementMode,
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
// Defines CSS properties for 'outline' variant of the button with conditional styles based on reverse state.
|
|
2742
|
+
linkProps,
|
|
2743
|
+
views
|
|
2743
2744
|
} = _ref,
|
|
2744
2745
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
2745
2746
|
var {
|
|
@@ -2757,7 +2758,6 @@ var ButtonView = _ref => {
|
|
|
2757
2758
|
var isLight = contrast(getColor(buttonColor, elementMode ? elementMode : themeMode)) == 'light';
|
|
2758
2759
|
var ButtonVariants = {
|
|
2759
2760
|
filled: {
|
|
2760
|
-
// Defines CSS properties for 'link' variant of the button with conditional styles based on reverse state, includes text decoration.
|
|
2761
2761
|
backgroundColor: reverse ? 'transparent' : buttonColor,
|
|
2762
2762
|
color: reverse ? isLight ? 'white' : buttonColor : isLight ? buttonColor : 'white',
|
|
2763
2763
|
borderWidth: 1,
|
|
@@ -2766,42 +2766,36 @@ var ButtonView = _ref => {
|
|
|
2766
2766
|
},
|
|
2767
2767
|
outline: {
|
|
2768
2768
|
backgroundColor: reverse ? buttonColor : 'transparent',
|
|
2769
|
-
// Defines CSS properties for 'ghost' variant of the button with conditional styles based on reverse state.
|
|
2770
2769
|
borderWidth: 1,
|
|
2771
2770
|
borderStyle: 'solid',
|
|
2772
2771
|
borderColor: reverse ? buttonColor : 'theme.primary',
|
|
2773
|
-
// Fetches size-specific styles from ButtonSizes based on the 'size' prop.
|
|
2774
2772
|
color: reverse ? 'white' : buttonColor
|
|
2775
2773
|
},
|
|
2776
|
-
// Adjusts button width based on isAuto and isFilled properties, using buttonSizeStyles for fallback width.
|
|
2777
2774
|
link: {
|
|
2778
2775
|
backgroundColor: 'transparent',
|
|
2779
|
-
// Changes padding for the button based on whether isIconRounded is true or false.
|
|
2780
2776
|
borderWidth: 1,
|
|
2781
2777
|
borderStyle: 'solid',
|
|
2782
|
-
// Creates the content for the button including loaders and icons positioned based on their respective properties.
|
|
2783
2778
|
borderColor: reverse ? buttonColor : 'transparent',
|
|
2784
2779
|
color: buttonColor,
|
|
2785
2780
|
textDecoration: reverse ? 'none' : 'underline'
|
|
2786
2781
|
},
|
|
2787
2782
|
ghost: {
|
|
2788
|
-
backgroundColor:
|
|
2783
|
+
backgroundColor: 'transparent',
|
|
2789
2784
|
color: reverse ? 'white' : buttonColor,
|
|
2790
2785
|
borderWidth: 1,
|
|
2791
2786
|
borderStyle: 'solid',
|
|
2792
2787
|
borderColor: reverse ? buttonColor : 'transparent'
|
|
2793
2788
|
}
|
|
2794
2789
|
};
|
|
2795
|
-
// Executes rendering of the button or a link element based on the variant; applies conditional rendering for to in 'link' variant.
|
|
2796
2790
|
var buttonSizeStyles = ButtonSizes[size];
|
|
2797
2791
|
var buttonVariant = ButtonVariants[variant];
|
|
2798
2792
|
var scaleWidth = {
|
|
2799
2793
|
width: isAuto === true ? 'fit-content' : isFilled ? '100%' : buttonSizeStyles.width
|
|
2800
2794
|
};
|
|
2801
2795
|
var changePadding = isIconRounded ? IconSizes$1[size] : ButtonSizes[size];
|
|
2802
|
-
var content = /*#__PURE__*/React.createElement(Horizontal, {
|
|
2796
|
+
var content = /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
2803
2797
|
gap: 10
|
|
2804
|
-
}, isLoading && loaderPosition === 'left' && /*#__PURE__*/React.createElement(Loader, Object.assign({}, loaderProps)), icon && iconPosition === 'left' && !isLoading && (/*#__PURE__*/React.createElement(View$1, Object.assign({}, isHovered ? {
|
|
2798
|
+
}, views == null ? void 0 : views.horizontal), isLoading && loaderPosition === 'left' && /*#__PURE__*/React.createElement(Loader, Object.assign({}, loaderProps)), icon && iconPosition === 'left' && !isLoading && (/*#__PURE__*/React.createElement(View$1, Object.assign({}, isHovered ? {
|
|
2805
2799
|
animate: Animation.jackInTheBox({})
|
|
2806
2800
|
} : {}), icon)), children, icon && iconPosition === 'right' && !isLoading && (/*#__PURE__*/React.createElement(View$1, Object.assign({}, isHovered ? {
|
|
2807
2801
|
animate: Animation.jackInTheBox({})
|
|
@@ -2825,11 +2819,11 @@ var ButtonView = _ref => {
|
|
|
2825
2819
|
}, hovering && !props.isDisabled ? {
|
|
2826
2820
|
transition: 'transform 0.3s ease',
|
|
2827
2821
|
transform: 'translateY(-5px)'
|
|
2828
|
-
} : {}, defaultNativeProps, buttonSizeStyles, buttonVariant, scaleWidth, props.padding || props.paddingHorizontal || props.paddingVertical || props.paddingLeft || props.paddingRight || props.paddingTop || props.paddingBottom ? {} : changePadding, shadow, props,
|
|
2822
|
+
} : {}, defaultNativeProps, buttonSizeStyles, buttonVariant, scaleWidth, props.padding || props.paddingHorizontal || props.paddingVertical || props.paddingLeft || props.paddingRight || props.paddingTop || props.paddingBottom ? {} : changePadding, shadow, props, views == null ? void 0 : views.container), variant === 'link' && to ? (/*#__PURE__*/React.createElement(Link, Object.assign({
|
|
2829
2823
|
to: to,
|
|
2830
2824
|
textDecorationColor: 'theme.primary',
|
|
2831
2825
|
isExternal: isExternal
|
|
2832
|
-
}, linkProps), content)) : content);
|
|
2826
|
+
}, linkProps, views == null ? void 0 : views.link), content)) : content);
|
|
2833
2827
|
};
|
|
2834
2828
|
|
|
2835
2829
|
// Importing a custom hook to manage the state specific to the button component.
|
|
@@ -2859,12 +2853,13 @@ var ButtonComponent = props => {
|
|
|
2859
2853
|
};
|
|
2860
2854
|
var Button = ButtonComponent;
|
|
2861
2855
|
|
|
2862
|
-
var _excluded$a = ["src", "color", "themeMode"],
|
|
2856
|
+
var _excluded$a = ["src", "color", "views", "themeMode"],
|
|
2863
2857
|
_excluded2$2 = ["path"];
|
|
2864
2858
|
var FileSVG = _ref => {
|
|
2865
2859
|
var {
|
|
2866
2860
|
src,
|
|
2867
|
-
color
|
|
2861
|
+
color,
|
|
2862
|
+
views
|
|
2868
2863
|
} = _ref,
|
|
2869
2864
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
2870
2865
|
var {
|
|
@@ -2879,11 +2874,11 @@ var FileSVG = _ref => {
|
|
|
2879
2874
|
themeMode
|
|
2880
2875
|
})
|
|
2881
2876
|
} : {};
|
|
2882
|
-
return /*#__PURE__*/React.createElement(Center, Object.assign({}, props), /*#__PURE__*/React.createElement(Image, Object.assign({}, Colorprops, {
|
|
2877
|
+
return /*#__PURE__*/React.createElement(Center, Object.assign({}, props, views == null ? void 0 : views.container), /*#__PURE__*/React.createElement(Image, Object.assign({}, Colorprops, {
|
|
2883
2878
|
content: 'url("' + src + '")',
|
|
2884
2879
|
width: "100%",
|
|
2885
2880
|
height: "100%"
|
|
2886
|
-
})));
|
|
2881
|
+
}, views == null ? void 0 : views.image)));
|
|
2887
2882
|
};
|
|
2888
2883
|
var FileImage = _ref2 => {
|
|
2889
2884
|
var {
|
|
@@ -3403,7 +3398,7 @@ var MultiSelect = _ref6 => {
|
|
|
3403
3398
|
}, option), /*#__PURE__*/React.createElement(CloseIcon, {
|
|
3404
3399
|
role: "close-button",
|
|
3405
3400
|
color: "inherit",
|
|
3406
|
-
|
|
3401
|
+
widthHeight: IconSizes$2[size],
|
|
3407
3402
|
onClick: handleClick
|
|
3408
3403
|
}));
|
|
3409
3404
|
};
|
|
@@ -3514,13 +3509,13 @@ var SelectView = _ref7 => {
|
|
|
3514
3509
|
removeOption: handleRemoveOption
|
|
3515
3510
|
})), /*#__PURE__*/React.createElement(FieldIcons, null, !isReadOnly && !isDisabled && (/*#__PURE__*/React.createElement(React.Fragment, null, hide ? (/*#__PURE__*/React.createElement(ChevronIcon, {
|
|
3516
3511
|
color: "inherit",
|
|
3517
|
-
|
|
3512
|
+
widthHeight: IconSizes$2[size],
|
|
3518
3513
|
style: views.icon,
|
|
3519
3514
|
orientation: "down"
|
|
3520
3515
|
})) : (/*#__PURE__*/React.createElement(ChevronIcon, {
|
|
3521
3516
|
color: "inherit",
|
|
3522
3517
|
orientation: "up",
|
|
3523
|
-
|
|
3518
|
+
widthHeight: IconSizes$2[size],
|
|
3524
3519
|
style: views.icon
|
|
3525
3520
|
})))))), !hide && (/*#__PURE__*/React.createElement(DropDown, {
|
|
3526
3521
|
size: size,
|
|
@@ -4115,7 +4110,7 @@ var TextFieldView = _ref => {
|
|
|
4115
4110
|
onChange: handleChange,
|
|
4116
4111
|
value: value
|
|
4117
4112
|
}))), isClearable && value && !isReadOnly && !isDisabled && (/*#__PURE__*/React.createElement(FieldIcons, null, /*#__PURE__*/React.createElement(CloseIcon, {
|
|
4118
|
-
|
|
4113
|
+
widthHeight: Typography.fontSizes[size],
|
|
4119
4114
|
color: IconColor,
|
|
4120
4115
|
onClick: handleClear
|
|
4121
4116
|
}))), right));
|
|
@@ -4274,10 +4269,10 @@ var CheckboxView = _ref => {
|
|
|
4274
4269
|
}, labelPosition === 'left' && label && (/*#__PURE__*/React.createElement(Text, Object.assign({
|
|
4275
4270
|
size: size
|
|
4276
4271
|
}, views == null ? void 0 : views.label), label)), /*#__PURE__*/React.createElement(Center, Object.assign({}, checkboxStyle.checkbox), isIndeterminate ? (/*#__PURE__*/React.createElement(MinusIcon, {
|
|
4277
|
-
|
|
4272
|
+
widthHeight: IconSizes$3[size],
|
|
4278
4273
|
color: "white"
|
|
4279
4274
|
})) : (isChecked || isSelected) && (icon != null ? icon : /*#__PURE__*/React.createElement(TickIcon, {
|
|
4280
|
-
|
|
4275
|
+
widthHeight: IconSizes$3[size],
|
|
4281
4276
|
color: "white"
|
|
4282
4277
|
}))), labelPosition === 'right' && label && (/*#__PURE__*/React.createElement(Text, Object.assign({
|
|
4283
4278
|
size: size
|
|
@@ -5843,7 +5838,7 @@ var DropDown$1 = _ref4 => {
|
|
|
5843
5838
|
views = {
|
|
5844
5839
|
dropDown: {}
|
|
5845
5840
|
},
|
|
5846
|
-
options,
|
|
5841
|
+
options = [],
|
|
5847
5842
|
callback = () => {}
|
|
5848
5843
|
} = _ref4;
|
|
5849
5844
|
var handleCallback = option => callback(option);
|
|
@@ -5993,12 +5988,12 @@ var CountryPickerView = _ref5 => {
|
|
|
5993
5988
|
onChange: handleChange
|
|
5994
5989
|
}))), /*#__PURE__*/React.createElement(FieldIcons, null, hide ? (/*#__PURE__*/React.createElement(ChevronIcon, {
|
|
5995
5990
|
orientation: "down",
|
|
5996
|
-
|
|
5991
|
+
widthHeight: IconSizes$4[size],
|
|
5997
5992
|
color: IconColor,
|
|
5998
5993
|
style: views['icon']
|
|
5999
5994
|
})) : (/*#__PURE__*/React.createElement(ChevronIcon, {
|
|
6000
5995
|
orientation: "up",
|
|
6001
|
-
|
|
5996
|
+
widthHeight: IconSizes$4[size],
|
|
6002
5997
|
color: IconColor,
|
|
6003
5998
|
style: views['icon']
|
|
6004
5999
|
})))), !hide && (/*#__PURE__*/React.createElement(DropDown$1, {
|
|
@@ -7065,7 +7060,7 @@ var UploadView = _ref => {
|
|
|
7065
7060
|
color: "red",
|
|
7066
7061
|
fontSize: 12,
|
|
7067
7062
|
marginTop: 8
|
|
7068
|
-
}, errorMessageProps), errorMessage);
|
|
7063
|
+
}, errorMessageProps, views == null ? void 0 : views.text), errorMessage);
|
|
7069
7064
|
},
|
|
7070
7065
|
renderText = _ref3 => {
|
|
7071
7066
|
var {
|
|
@@ -7074,20 +7069,20 @@ var UploadView = _ref => {
|
|
|
7074
7069
|
} = _ref3;
|
|
7075
7070
|
return /*#__PURE__*/React.createElement(Text$1, Object.assign({
|
|
7076
7071
|
marginTop: 8
|
|
7077
|
-
}, textProps), text);
|
|
7072
|
+
}, textProps, views == null ? void 0 : views.text), text);
|
|
7078
7073
|
},
|
|
7079
7074
|
renderFile = _ref4 => {
|
|
7080
7075
|
var {
|
|
7081
7076
|
selectedFile,
|
|
7082
7077
|
textProps
|
|
7083
7078
|
} = _ref4;
|
|
7084
|
-
return selectedFile ? (/*#__PURE__*/React.createElement(Center, {
|
|
7079
|
+
return selectedFile ? (/*#__PURE__*/React.createElement(Center, Object.assign({
|
|
7085
7080
|
marginTop: 8,
|
|
7086
7081
|
gap: 10,
|
|
7087
7082
|
flexDirection: "column"
|
|
7088
|
-
}, /*#__PURE__*/React.createElement(Text$1, Object.assign({
|
|
7083
|
+
}, views == null ? void 0 : views.container), /*#__PURE__*/React.createElement(Text$1, Object.assign({
|
|
7089
7084
|
maxLines: 2
|
|
7090
|
-
}, textProps), selectedFile.name), /*#__PURE__*/React.createElement(Text$1, Object.assign({}, textProps), "(", Math.round(selectedFile.size / 1024), " KB)"))) : null;
|
|
7085
|
+
}, textProps, views == null ? void 0 : views.text), selectedFile.name), /*#__PURE__*/React.createElement(Text$1, Object.assign({}, textProps, views == null ? void 0 : views.text), "(", Math.round(selectedFile.size / 1024), " KB)"))) : null;
|
|
7091
7086
|
},
|
|
7092
7087
|
renderVideo = _ref5 => {
|
|
7093
7088
|
var {
|
|
@@ -7097,11 +7092,11 @@ var UploadView = _ref => {
|
|
|
7097
7092
|
videoProps,
|
|
7098
7093
|
imageProps
|
|
7099
7094
|
} = _ref5;
|
|
7100
|
-
return /*#__PURE__*/React.createElement(View$1, {
|
|
7095
|
+
return /*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
7101
7096
|
width: "100%",
|
|
7102
7097
|
height: "100%",
|
|
7103
7098
|
position: "relative"
|
|
7104
|
-
}, /*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
7099
|
+
}, views == null ? void 0 : views.view), /*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
7105
7100
|
as: "video",
|
|
7106
7101
|
width: "100%",
|
|
7107
7102
|
height: "100%",
|
|
@@ -7110,13 +7105,13 @@ var UploadView = _ref => {
|
|
|
7110
7105
|
objectFit: 'cover'
|
|
7111
7106
|
},
|
|
7112
7107
|
ref: videoRef
|
|
7113
|
-
}, videoProps)), thumbnailUrl && (/*#__PURE__*/React.createElement(Image, Object.assign({
|
|
7108
|
+
}, videoProps, views == null ? void 0 : views.view)), thumbnailUrl && (/*#__PURE__*/React.createElement(Image, Object.assign({
|
|
7114
7109
|
src: thumbnailUrl,
|
|
7115
7110
|
alt: "Video Thumbnail",
|
|
7116
7111
|
width: "100%",
|
|
7117
7112
|
height: "100%",
|
|
7118
7113
|
objectFit: "cover"
|
|
7119
|
-
}, imageProps))));
|
|
7114
|
+
}, imageProps, views == null ? void 0 : views.image))));
|
|
7120
7115
|
},
|
|
7121
7116
|
renderImage = _ref6 => {
|
|
7122
7117
|
var {
|
|
@@ -7129,7 +7124,7 @@ var UploadView = _ref => {
|
|
|
7129
7124
|
width: "100%",
|
|
7130
7125
|
height: "100%",
|
|
7131
7126
|
objectFit: "cover"
|
|
7132
|
-
}, imageProps));
|
|
7127
|
+
}, imageProps, views == null ? void 0 : views.image));
|
|
7133
7128
|
},
|
|
7134
7129
|
renderProgress = _ref7 => {
|
|
7135
7130
|
var {
|
|
@@ -7139,20 +7134,21 @@ var UploadView = _ref => {
|
|
|
7139
7134
|
return /*#__PURE__*/React.createElement(Horizontal$1, Object.assign({
|
|
7140
7135
|
gap: 8,
|
|
7141
7136
|
alignItems: "center"
|
|
7142
|
-
}, progressProps), /*#__PURE__*/React.createElement(View$1, {
|
|
7137
|
+
}, progressProps, views == null ? void 0 : views.horizontal), /*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
7143
7138
|
height: 4,
|
|
7144
7139
|
backgroundColor: "rgba(0,0,0,0.1)",
|
|
7145
7140
|
width: "100%",
|
|
7146
7141
|
borderRadius: 2
|
|
7147
|
-
}, /*#__PURE__*/React.createElement(View$1, {
|
|
7142
|
+
}, views == null ? void 0 : views.view), /*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
7148
7143
|
height: 4,
|
|
7149
7144
|
width: progress + "%",
|
|
7150
7145
|
borderRadius: 2,
|
|
7151
7146
|
backgroundColor: "#000"
|
|
7152
|
-
})), /*#__PURE__*/React.createElement(Text$1, {
|
|
7147
|
+
}, views == null ? void 0 : views.view))), /*#__PURE__*/React.createElement(Text$1, Object.assign({
|
|
7153
7148
|
fontSize: 12
|
|
7154
|
-
}, progress, "%"));
|
|
7155
|
-
}
|
|
7149
|
+
}, views == null ? void 0 : views.text), progress, "%"));
|
|
7150
|
+
},
|
|
7151
|
+
views = {}
|
|
7156
7152
|
} = _ref;
|
|
7157
7153
|
var finalPreviewUrl = externalPreviewUrl || previewUrl;
|
|
7158
7154
|
return /*#__PURE__*/React.createElement(Center, Object.assign({
|
|
@@ -7164,7 +7160,7 @@ var UploadView = _ref => {
|
|
|
7164
7160
|
flexDirection: "column",
|
|
7165
7161
|
overflow: "hidden",
|
|
7166
7162
|
position: "relative"
|
|
7167
|
-
}, containerProps), progress === 100 && fileType === 'image' && finalPreviewUrl && renderImage({
|
|
7163
|
+
}, containerProps, views == null ? void 0 : views.container), progress === 100 && fileType === 'image' && finalPreviewUrl && renderImage({
|
|
7168
7164
|
previewUrl: finalPreviewUrl,
|
|
7169
7165
|
imageProps
|
|
7170
7166
|
}), progress === 100 && fileType === 'video' && thumbnailUrl && renderVideo({
|
|
@@ -7187,7 +7183,7 @@ var UploadView = _ref => {
|
|
|
7187
7183
|
}), errorMessage && renderError({
|
|
7188
7184
|
errorMessage,
|
|
7189
7185
|
errorMessageProps
|
|
7190
|
-
}), /*#__PURE__*/React.createElement(View$1, {
|
|
7186
|
+
}), /*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
7191
7187
|
as: "input",
|
|
7192
7188
|
type: "file",
|
|
7193
7189
|
ref: fileInputRef,
|
|
@@ -7196,7 +7192,7 @@ var UploadView = _ref => {
|
|
|
7196
7192
|
style: {
|
|
7197
7193
|
display: 'none'
|
|
7198
7194
|
}
|
|
7199
|
-
}));
|
|
7195
|
+
}, views == null ? void 0 : views.view)));
|
|
7200
7196
|
};
|
|
7201
7197
|
|
|
7202
7198
|
var _excluded$y = ["accept", "icon", "text", "maxSize", "onFileSelect", "validateFile", "isLoading", "progress"];
|
|
@@ -7348,11 +7344,11 @@ var HeaderIconSizes = {
|
|
|
7348
7344
|
xl: 28
|
|
7349
7345
|
};
|
|
7350
7346
|
|
|
7351
|
-
var _excluded$z = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position"],
|
|
7352
|
-
_excluded2$7 = ["children", "shadow", "isFullScreen", "shape"],
|
|
7353
|
-
_excluded3$4 = ["children", "buttonColor", "iconSize", "buttonPosition"],
|
|
7354
|
-
_excluded4$3 = ["children"],
|
|
7355
|
-
_excluded5$1 = ["children"];
|
|
7347
|
+
var _excluded$z = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position", "views"],
|
|
7348
|
+
_excluded2$7 = ["children", "shadow", "isFullScreen", "shape", "views"],
|
|
7349
|
+
_excluded3$4 = ["children", "buttonColor", "iconSize", "buttonPosition", "views"],
|
|
7350
|
+
_excluded4$3 = ["children", "views"],
|
|
7351
|
+
_excluded5$1 = ["children", "views"];
|
|
7356
7352
|
var ModalOverlay = _ref => {
|
|
7357
7353
|
var {
|
|
7358
7354
|
children,
|
|
@@ -7360,13 +7356,14 @@ var ModalOverlay = _ref => {
|
|
|
7360
7356
|
isOpen = false,
|
|
7361
7357
|
isClosePrevented = false,
|
|
7362
7358
|
onClose = () => {},
|
|
7363
|
-
position = 'center'
|
|
7359
|
+
position = 'center',
|
|
7360
|
+
views
|
|
7364
7361
|
} = _ref,
|
|
7365
7362
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
|
|
7366
7363
|
var handleClick = () => {
|
|
7367
7364
|
if (!isClosePrevented) onClose();
|
|
7368
7365
|
};
|
|
7369
|
-
return /*#__PURE__*/React.createElement(Center, {
|
|
7366
|
+
return /*#__PURE__*/React.createElement(Center$1, Object.assign({
|
|
7370
7367
|
position: "fixed",
|
|
7371
7368
|
top: 0,
|
|
7372
7369
|
left: 0,
|
|
@@ -7375,7 +7372,7 @@ var ModalOverlay = _ref => {
|
|
|
7375
7372
|
zIndex: 1000,
|
|
7376
7373
|
onClick: handleClick,
|
|
7377
7374
|
visibility: isOpen ? 'visible' : 'hidden'
|
|
7378
|
-
}, /*#__PURE__*/React.createElement(View, Object.assign({
|
|
7375
|
+
}, views == null ? void 0 : views.container), /*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
7379
7376
|
position: "absolute",
|
|
7380
7377
|
top: 0,
|
|
7381
7378
|
left: 0,
|
|
@@ -7386,14 +7383,15 @@ var ModalOverlay = _ref => {
|
|
|
7386
7383
|
backgroundColor: "color.blackAlpha.500",
|
|
7387
7384
|
backdropFilter: blur ? "blur(" + blur + "px)" : undefined,
|
|
7388
7385
|
onClick: handleClick
|
|
7389
|
-
}, OverlayAlignments[position], props), children));
|
|
7386
|
+
}, OverlayAlignments[position], props, views == null ? void 0 : views.view), children));
|
|
7390
7387
|
};
|
|
7391
7388
|
var ModalContainer = _ref2 => {
|
|
7392
7389
|
var {
|
|
7393
7390
|
children,
|
|
7394
7391
|
shadow,
|
|
7395
7392
|
isFullScreen = false,
|
|
7396
|
-
shape = 'rounded'
|
|
7393
|
+
shape = 'rounded',
|
|
7394
|
+
views
|
|
7397
7395
|
} = _ref2,
|
|
7398
7396
|
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$7);
|
|
7399
7397
|
var defaultShadow = typeof document !== undefined ? {
|
|
@@ -7411,20 +7409,21 @@ var ModalContainer = _ref2 => {
|
|
|
7411
7409
|
var handleClick = event => {
|
|
7412
7410
|
if (event && event.stopPropagation) event.stopPropagation();
|
|
7413
7411
|
};
|
|
7414
|
-
return /*#__PURE__*/React.createElement(Vertical, Object.assign({
|
|
7412
|
+
return /*#__PURE__*/React.createElement(Vertical$1, Object.assign({
|
|
7415
7413
|
cursor: "default",
|
|
7416
7414
|
backgroundColor: "white",
|
|
7417
7415
|
width: isFullScreen ? '100%' : 600,
|
|
7418
7416
|
height: isFullScreen ? '100%' : 'fit-content',
|
|
7419
7417
|
onClick: handleClick
|
|
7420
|
-
}, shadow ? shadow : defaultShadow, ContainerShapes[shape], props), children);
|
|
7418
|
+
}, shadow ? shadow : defaultShadow, ContainerShapes[shape], props, views == null ? void 0 : views.container), children);
|
|
7421
7419
|
};
|
|
7422
7420
|
var ModalHeader = _ref3 => {
|
|
7423
7421
|
var {
|
|
7424
7422
|
children,
|
|
7425
7423
|
buttonColor = 'theme.primary',
|
|
7426
7424
|
iconSize = 'md',
|
|
7427
|
-
buttonPosition = 'right'
|
|
7425
|
+
buttonPosition = 'right',
|
|
7426
|
+
views
|
|
7428
7427
|
} = _ref3,
|
|
7429
7428
|
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$4);
|
|
7430
7429
|
var onClose = props.onClose ? props.onClose : hideModal;
|
|
@@ -7439,16 +7438,17 @@ var ModalHeader = _ref3 => {
|
|
|
7439
7438
|
filter: "none",
|
|
7440
7439
|
width: 0
|
|
7441
7440
|
});
|
|
7442
|
-
return /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
7441
|
+
return /*#__PURE__*/React.createElement(Horizontal$1, Object.assign({
|
|
7443
7442
|
justifyContent: buttonPosition === 'none' ? 'center' : 'space-between',
|
|
7444
7443
|
alignItems: "center",
|
|
7445
7444
|
paddingVertical: 15,
|
|
7446
7445
|
paddingHorizontal: 20
|
|
7447
|
-
}, props), buttonPosition === 'left' && buttonIcon, children, buttonPosition === 'right' && buttonIcon);
|
|
7446
|
+
}, props, views == null ? void 0 : views.header), buttonPosition === 'left' && buttonIcon, children, buttonPosition === 'right' && buttonIcon);
|
|
7448
7447
|
};
|
|
7449
7448
|
var ModalBody = _ref4 => {
|
|
7450
7449
|
var {
|
|
7451
|
-
children
|
|
7450
|
+
children,
|
|
7451
|
+
views
|
|
7452
7452
|
} = _ref4,
|
|
7453
7453
|
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$3);
|
|
7454
7454
|
var defaultBorder = {
|
|
@@ -7457,23 +7457,24 @@ var ModalBody = _ref4 => {
|
|
|
7457
7457
|
borderColor: 'rgba(250, 250, 250, 1)',
|
|
7458
7458
|
borderStyle: 'solid'
|
|
7459
7459
|
};
|
|
7460
|
-
return /*#__PURE__*/React.createElement(View, Object.assign({
|
|
7460
|
+
return /*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
7461
7461
|
paddingVertical: 15,
|
|
7462
7462
|
paddingHorizontal: 20
|
|
7463
|
-
}, defaultBorder, props), children);
|
|
7463
|
+
}, defaultBorder, props, views == null ? void 0 : views.view), children);
|
|
7464
7464
|
};
|
|
7465
7465
|
var ModalFooter = _ref5 => {
|
|
7466
7466
|
var {
|
|
7467
|
-
children
|
|
7467
|
+
children,
|
|
7468
|
+
views
|
|
7468
7469
|
} = _ref5,
|
|
7469
7470
|
props = _objectWithoutPropertiesLoose(_ref5, _excluded5$1);
|
|
7470
|
-
return /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
7471
|
+
return /*#__PURE__*/React.createElement(Horizontal$1, Object.assign({
|
|
7471
7472
|
marginTop: "auto",
|
|
7472
7473
|
alignItems: "center",
|
|
7473
7474
|
justifyContent: "flex-end",
|
|
7474
7475
|
paddingVertical: 15,
|
|
7475
7476
|
paddingHorizontal: 20
|
|
7476
|
-
}, props), children);
|
|
7477
|
+
}, props, views == null ? void 0 : views.container), children);
|
|
7477
7478
|
};
|
|
7478
7479
|
|
|
7479
7480
|
var ModalLayout = _ref => {
|
|
@@ -7530,7 +7531,7 @@ Modal.Layout = ModalLayout;
|
|
|
7530
7531
|
|
|
7531
7532
|
var defaultStyles = {};
|
|
7532
7533
|
// Create a context that includes both styles and the onClick function
|
|
7533
|
-
var TableContext = /*#__PURE__*/
|
|
7534
|
+
var TableContext = /*#__PURE__*/createContext({
|
|
7534
7535
|
views: defaultStyles,
|
|
7535
7536
|
onRowClick: () => {}
|
|
7536
7537
|
});
|
|
@@ -7552,7 +7553,7 @@ var TableProvider = _ref => {
|
|
|
7552
7553
|
);
|
|
7553
7554
|
};
|
|
7554
7555
|
// Custom hook to consume the context and get the styles and onClick handler
|
|
7555
|
-
var useTableContext = () =>
|
|
7556
|
+
var useTableContext = () => useContext(TableContext);
|
|
7556
7557
|
|
|
7557
7558
|
var TableContainer = props => {
|
|
7558
7559
|
var {
|
|
@@ -7561,7 +7562,7 @@ var TableContainer = props => {
|
|
|
7561
7562
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
7562
7563
|
as: "table",
|
|
7563
7564
|
borderCollapse: "collapse"
|
|
7564
|
-
}, views.table, props));
|
|
7565
|
+
}, views == null ? void 0 : views.table, props));
|
|
7565
7566
|
};
|
|
7566
7567
|
var TableHead = props => {
|
|
7567
7568
|
var {
|
|
@@ -7572,7 +7573,7 @@ var TableHead = props => {
|
|
|
7572
7573
|
borderBottom: "0.5px solid #ddd",
|
|
7573
7574
|
textAlign: "left",
|
|
7574
7575
|
color: "color.gray.400"
|
|
7575
|
-
}, views.thead, props));
|
|
7576
|
+
}, views == null ? void 0 : views.thead, props));
|
|
7576
7577
|
};
|
|
7577
7578
|
var TableHeadCell = props => {
|
|
7578
7579
|
var {
|
|
@@ -7583,7 +7584,7 @@ var TableHeadCell = props => {
|
|
|
7583
7584
|
padding: "14px",
|
|
7584
7585
|
whiteSpace: "nowrap",
|
|
7585
7586
|
fontWeight: "500"
|
|
7586
|
-
}, views.th, props));
|
|
7587
|
+
}, views == null ? void 0 : views.th, props));
|
|
7587
7588
|
};
|
|
7588
7589
|
var TableRow = props => {
|
|
7589
7590
|
var {
|
|
@@ -7592,7 +7593,7 @@ var TableRow = props => {
|
|
|
7592
7593
|
} = useTableContext();
|
|
7593
7594
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
7594
7595
|
as: "tr"
|
|
7595
|
-
}, views.tr, {
|
|
7596
|
+
}, views == null ? void 0 : views.tr, {
|
|
7596
7597
|
onClick: onRowClick
|
|
7597
7598
|
}, props));
|
|
7598
7599
|
};
|
|
@@ -7605,7 +7606,7 @@ var TableCell = props => {
|
|
|
7605
7606
|
padding: "14px",
|
|
7606
7607
|
whiteSpace: "nowrap",
|
|
7607
7608
|
fontWeight: props.isFirstColumn ? '400' : '300'
|
|
7608
|
-
}, views.td, props));
|
|
7609
|
+
}, views == null ? void 0 : views.td, props));
|
|
7609
7610
|
};
|
|
7610
7611
|
var TableBody = props => {
|
|
7611
7612
|
var {
|
|
@@ -7613,7 +7614,7 @@ var TableBody = props => {
|
|
|
7613
7614
|
} = useTableContext();
|
|
7614
7615
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
7615
7616
|
as: "tbody"
|
|
7616
|
-
}, views.tbody, props));
|
|
7617
|
+
}, views == null ? void 0 : views.tbody, props));
|
|
7617
7618
|
};
|
|
7618
7619
|
var TableFooter = props => {
|
|
7619
7620
|
var {
|
|
@@ -7621,7 +7622,7 @@ var TableFooter = props => {
|
|
|
7621
7622
|
} = useTableContext();
|
|
7622
7623
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
7623
7624
|
as: "tfoot"
|
|
7624
|
-
}, views.tfoot, props));
|
|
7625
|
+
}, views == null ? void 0 : views.tfoot, props));
|
|
7625
7626
|
};
|
|
7626
7627
|
var TableCaption = props => {
|
|
7627
7628
|
var {
|
|
@@ -7631,7 +7632,7 @@ var TableCaption = props => {
|
|
|
7631
7632
|
as: "caption",
|
|
7632
7633
|
margin: '10px 0',
|
|
7633
7634
|
color: "color.gray.400"
|
|
7634
|
-
}, views.caption, props));
|
|
7635
|
+
}, views == null ? void 0 : views.caption, props));
|
|
7635
7636
|
};
|
|
7636
7637
|
var TableView = _ref => {
|
|
7637
7638
|
var {
|
|
@@ -7833,7 +7834,7 @@ var useToggleState = defaultToggled => {
|
|
|
7833
7834
|
};
|
|
7834
7835
|
};
|
|
7835
7836
|
|
|
7836
|
-
var _excluded$A = ["children", "shape", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle"];
|
|
7837
|
+
var _excluded$A = ["children", "shape", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle", "views"];
|
|
7837
7838
|
var ToggleView = _ref => {
|
|
7838
7839
|
var {
|
|
7839
7840
|
children,
|
|
@@ -7844,7 +7845,8 @@ var ToggleView = _ref => {
|
|
|
7844
7845
|
isDisabled,
|
|
7845
7846
|
isToggle,
|
|
7846
7847
|
setIsToggled,
|
|
7847
|
-
onToggle
|
|
7848
|
+
onToggle,
|
|
7849
|
+
views
|
|
7848
7850
|
} = _ref,
|
|
7849
7851
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
|
|
7850
7852
|
var toggleColor = !isDisabled ? 'color.trueGray.400' : 'theme.disabled';
|
|
@@ -7863,6 +7865,7 @@ var ToggleView = _ref => {
|
|
|
7863
7865
|
},
|
|
7864
7866
|
ghost: {}
|
|
7865
7867
|
};
|
|
7868
|
+
var handleHover = () => setIsHovered(!isHovered);
|
|
7866
7869
|
var handleToggle = () => {
|
|
7867
7870
|
if (!isDisabled) {
|
|
7868
7871
|
setIsToggled(prev => {
|
|
@@ -7880,12 +7883,12 @@ var ToggleView = _ref => {
|
|
|
7880
7883
|
width: "fit-content",
|
|
7881
7884
|
color: isActive ? 'color.white' : toggleColor,
|
|
7882
7885
|
backgroundColor: isActive ? toggleColor : 'transparent',
|
|
7883
|
-
onMouseEnter:
|
|
7886
|
+
onMouseEnter: handleHover,
|
|
7884
7887
|
onMouseLeave: () => setIsHovered(false),
|
|
7885
7888
|
cursor: isDisabled ? 'not-allowed' : 'pointer',
|
|
7886
7889
|
borderRadius: shape === 'pillShaped' ? '50px' : '8px',
|
|
7887
7890
|
onClick: handleToggle
|
|
7888
|
-
}, toggleVariants[variant], props), children);
|
|
7891
|
+
}, toggleVariants[variant], props, views == null ? void 0 : views.container), children);
|
|
7889
7892
|
};
|
|
7890
7893
|
|
|
7891
7894
|
var _excluded$B = ["children", "shape", "variant", "isDisabled", "isToggled", "onToggle"];
|
|
@@ -7949,7 +7952,8 @@ var ToggleGroupView = _ref => {
|
|
|
7949
7952
|
// Prop 'shape' with default value 'rounded', determines the shape of the toggle buttons.
|
|
7950
7953
|
shape = 'rounded',
|
|
7951
7954
|
// Prop 'variant' with default value 'ghost' represents the visual style variant of the toggles.
|
|
7952
|
-
variant = 'ghost'
|
|
7955
|
+
variant = 'ghost',
|
|
7956
|
+
views
|
|
7953
7957
|
} = _ref;
|
|
7954
7958
|
// handleToggle is a memoized callback that handles the toggle state changes.
|
|
7955
7959
|
var handleToggle = useCallback((id, isActive) => {
|
|
@@ -7964,18 +7968,19 @@ var ToggleGroupView = _ref => {
|
|
|
7964
7968
|
return newActiveToggles;
|
|
7965
7969
|
});
|
|
7966
7970
|
}, [onToggleChange, setActiveToggles]);
|
|
7967
|
-
return /*#__PURE__*/React.createElement(Horizontal, {
|
|
7971
|
+
return /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
7968
7972
|
role: "ToggleGroup",
|
|
7969
7973
|
display: "flex",
|
|
7970
7974
|
gap: 5
|
|
7971
|
-
}, items.map(item => (/*#__PURE__*/React.createElement(Toggle, {
|
|
7975
|
+
}, views == null ? void 0 : views.container), items.map(item => (/*#__PURE__*/React.createElement(Toggle, {
|
|
7972
7976
|
role: "toggle-" + item.id,
|
|
7973
7977
|
key: item.id,
|
|
7974
7978
|
shape: shape,
|
|
7975
7979
|
variant: variant,
|
|
7976
7980
|
isToggled: activeToggles.includes(item.id) || item.isActive,
|
|
7977
7981
|
onToggle: state => handleToggle(item.id, state),
|
|
7978
|
-
isDisabled: item.isDisabled
|
|
7982
|
+
isDisabled: item.isDisabled,
|
|
7983
|
+
views: views == null ? void 0 : views.toggle
|
|
7979
7984
|
}, item.value))));
|
|
7980
7985
|
};
|
|
7981
7986
|
|
|
@@ -8104,12 +8109,13 @@ var DragAndDropView = _ref => {
|
|
|
8104
8109
|
itemProps,
|
|
8105
8110
|
draggedIndex,
|
|
8106
8111
|
itemRefs,
|
|
8107
|
-
handleDragStart
|
|
8112
|
+
handleDragStart,
|
|
8113
|
+
views
|
|
8108
8114
|
} = _ref;
|
|
8109
8115
|
return /*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
8110
8116
|
overflow: "hidden",
|
|
8111
8117
|
position: "relative"
|
|
8112
|
-
}, containerProps), items.map((item, index) => (/*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
8118
|
+
}, containerProps, views == null ? void 0 : views.container), items.map((item, index) => (/*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
8113
8119
|
key: index,
|
|
8114
8120
|
ref: el => itemRefs.current[index] = el,
|
|
8115
8121
|
onMouseDown: e => handleDragStart(e, index),
|
|
@@ -8118,7 +8124,7 @@ var DragAndDropView = _ref => {
|
|
|
8118
8124
|
cursor: "grab",
|
|
8119
8125
|
transition: "transform 0.2s",
|
|
8120
8126
|
backgroundColor: draggedIndex === index ? 'color.gray.100' : 'transparent'
|
|
8121
|
-
}, itemProps), renderItem ? renderItem(item, index) : item))));
|
|
8127
|
+
}, itemProps, views == null ? void 0 : views.item), renderItem ? renderItem(item, index) : item))));
|
|
8122
8128
|
};
|
|
8123
8129
|
|
|
8124
8130
|
var DragAndDropComponent = props => {
|