@app-studio/web 0.8.65 → 0.8.67
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.props.d.ts +1 -1
- package/dist/components/Alert/Alert/Alert.type.d.ts +5 -5
- package/dist/components/Alert/Alert/Alert.view.d.ts +1 -1
- package/dist/components/Alert/Alert.d.ts +1 -1
- 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.props.d.ts +1 -1
- package/dist/components/Avatar/Avatar/Avatar.type.d.ts +4 -4
- package/dist/components/Avatar/Avatar/Avatar.view.d.ts +1 -1
- package/dist/components/Avatar/Avatar.d.ts +1 -1
- package/dist/components/Badge/Badge/Badge.props.d.ts +1 -2
- 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/Badge/Badge.d.ts +1 -1
- package/dist/components/Badge/examples/index.d.ts +0 -1
- package/dist/components/Button/Button/Button.props.d.ts +2 -3
- 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/Button/examples/index.d.ts +0 -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 +4 -4
- package/dist/components/Form/Checkbox/Checkbox/Checkbox.style.d.ts +2 -2
- package/dist/components/Form/ComboBox/ComboBox/ComboBox.props.d.ts +1 -1
- package/dist/components/Form/CountryPicker/CountryPicker/CountryPicker.props.d.ts +8 -10
- package/dist/components/Form/CountryPicker/CountryPicker/CountryPicker.view.d.ts +1 -2
- package/dist/components/Form/DatePicker/DatePicker/DatePicker.props.d.ts +3 -4
- package/dist/components/Form/Password/Password/Password.state.d.ts +1 -2
- package/dist/components/Form/Select/Select/Select.props.d.ts +5 -7
- package/dist/components/Form/Select/Select/Select.style.d.ts +2 -2
- package/dist/components/Form/Switch/Switch/Switch.props.d.ts +4 -5
- package/dist/components/Form/Switch/Switch/Switch.style.d.ts +3 -3
- package/dist/components/Form/TextArea/TextArea/TextArea.props.d.ts +3 -5
- package/dist/components/Form/TextArea/TextArea/TextArea.type.d.ts +6 -6
- package/dist/components/Form/TextField/TextField/TextField.props.d.ts +4 -5
- package/dist/components/Icon/Icon.d.ts +1 -3
- package/dist/components/Layout/Center/Center.d.ts +2 -2
- package/dist/components/Layout/Center/Center.props.d.ts +1 -1
- package/dist/components/Layout/Horizontal/Horizontal.d.ts +2 -2
- package/dist/components/Layout/Input/FieldContainer/FieldContainer/FieldContainer.props.d.ts +1 -1
- package/dist/components/Layout/Input/FieldContent/FieldContent/FieldContent.props.d.ts +3 -7
- package/dist/components/Layout/Input/FieldLabel/FieldLabel/FieldLabel.props.d.ts +2 -2
- package/dist/components/Layout/Input/FieldLayout/FieldLayout/FieldLayout.props.d.ts +1 -1
- package/dist/components/Layout/Input/HelperText/HelperText.props.d.ts +1 -1
- package/dist/components/Layout/Vertical/Vertical.d.ts +2 -2
- package/dist/components/Layout/View/View.d.ts +1 -2
- 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/Link/Link/Link.props.d.ts +1 -2
- package/dist/components/Loader/Loader/Loader.view.d.ts +8 -1
- package/dist/components/Message/Message/Message.props.d.ts +3 -3
- package/dist/components/Message/Message/Message.style.d.ts +2 -2
- package/dist/components/Message/Message/Message.type.d.ts +9 -8
- package/dist/components/Message/Message/Message.view.d.ts +1 -1
- package/dist/components/Modal/Modal/Modal.props.d.ts +19 -6
- 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 +17 -14
- package/dist/components/Table/Table/Table.props.d.ts +2 -2
- package/dist/components/Table/Table/Table.view.d.ts +9 -8
- package/dist/components/Table/Table.d.ts +1 -1
- package/dist/components/Tabs/Tabs/Tabs.props.d.ts +2 -2
- 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.props.d.ts +1 -2
- package/dist/components/Toggle/Toggle/Toggle.view.d.ts +7 -1
- package/dist/components/Toggle/Toggle.d.ts +1 -1
- package/dist/components/Toggle/examples/index.d.ts +0 -1
- package/dist/components/ToggleGroup/ToggleGroup/ToggleGroup.props.d.ts +6 -3
- package/dist/components/ToggleGroup/ToggleGroup/ToggleGroup.view.d.ts +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +1 -1
- package/dist/components/ToggleGroup/examples/index.d.ts +0 -1
- package/dist/components/Uploader/{Uploader.props.d.ts → Uploader/Uploader.props.d.ts} +30 -10
- package/dist/components/Uploader/Uploader/Uploader.state.d.ts +13 -0
- package/dist/components/Uploader/Uploader/Uploader.view.d.ts +3 -0
- package/dist/components/Uploader/Uploader.d.ts +1 -12
- package/dist/components/index.d.ts +1 -1
- package/dist/web.cjs.development.js +602 -588
- 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 +604 -588
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +605 -592
- 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 +6 -4
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1841
|
+
widthHeight: widthHeight,
|
|
1834
1842
|
color: color
|
|
1835
1843
|
}, props), /*#__PURE__*/React.createElement("svg", Object.assign({
|
|
1836
1844
|
viewBox: "0 0 24 24",
|
|
@@ -1931,7 +1939,7 @@ var Icon = {
|
|
|
1931
1939
|
CalendarIcon: CalendarIcon
|
|
1932
1940
|
};
|
|
1933
1941
|
|
|
1934
|
-
// Define a constant object 'Themes' exporting various theme
|
|
1942
|
+
// Define a constant object 'Themes' exporting various theme views.
|
|
1935
1943
|
var Themes = {
|
|
1936
1944
|
// Start of the 'default' theme definition with style properties.
|
|
1937
1945
|
default: {
|
|
@@ -1944,7 +1952,7 @@ var Themes = {
|
|
|
1944
1952
|
color: 'color.blackAlpha.800'
|
|
1945
1953
|
}
|
|
1946
1954
|
},
|
|
1947
|
-
// The 'info' theme with unique container and content
|
|
1955
|
+
// The 'info' theme with unique container and content views.
|
|
1948
1956
|
info: {
|
|
1949
1957
|
container: {
|
|
1950
1958
|
backgroundColor: 'color.blue.200',
|
|
@@ -1955,7 +1963,7 @@ var Themes = {
|
|
|
1955
1963
|
color: '#60a5fa'
|
|
1956
1964
|
}
|
|
1957
1965
|
},
|
|
1958
|
-
// Specifies the 'success' theme with corresponding container and content
|
|
1966
|
+
// Specifies the 'success' theme with corresponding container and content views.
|
|
1959
1967
|
success: {
|
|
1960
1968
|
container: {
|
|
1961
1969
|
backgroundColor: 'color.green.200',
|
|
@@ -1966,7 +1974,7 @@ var Themes = {
|
|
|
1966
1974
|
color: '#22c55e'
|
|
1967
1975
|
}
|
|
1968
1976
|
},
|
|
1969
|
-
// Start of the 'error' theme with its characteristic
|
|
1977
|
+
// Start of the 'error' theme with its characteristic views.
|
|
1970
1978
|
error: {
|
|
1971
1979
|
container: {
|
|
1972
1980
|
backgroundColor: 'color.red.200',
|
|
@@ -1977,7 +1985,7 @@ var Themes = {
|
|
|
1977
1985
|
color: '#ef4444'
|
|
1978
1986
|
}
|
|
1979
1987
|
},
|
|
1980
|
-
// Introduction of the 'warning' theme
|
|
1988
|
+
// Introduction of the 'warning' theme views.
|
|
1981
1989
|
warning: {
|
|
1982
1990
|
container: {
|
|
1983
1991
|
backgroundColor: 'color.orange.200',
|
|
@@ -1992,11 +2000,11 @@ var Themes = {
|
|
|
1992
2000
|
|
|
1993
2001
|
// Defines AlertView as a functional component using destructuring to extract props.
|
|
1994
2002
|
var AlertView = _ref => {
|
|
1995
|
-
var
|
|
2003
|
+
var _views$icon$color, _views$icon;
|
|
1996
2004
|
var {
|
|
1997
2005
|
icon,
|
|
1998
2006
|
title,
|
|
1999
|
-
|
|
2007
|
+
views,
|
|
2000
2008
|
description,
|
|
2001
2009
|
// Sets a default variant prop to 'default' if none is provided.
|
|
2002
2010
|
variant = 'default'
|
|
@@ -2008,20 +2016,20 @@ var AlertView = _ref => {
|
|
|
2008
2016
|
borderStyle: "solid",
|
|
2009
2017
|
padding: 16,
|
|
2010
2018
|
flexWrap: "nowrap"
|
|
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: (
|
|
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({
|
|
2019
2027
|
fontSize: "16px",
|
|
2020
2028
|
color: Themes[variant].content.color
|
|
2021
|
-
},
|
|
2029
|
+
}, views == null ? void 0 : views.title), title), /*#__PURE__*/React.createElement(Text, Object.assign({
|
|
2022
2030
|
fontSize: "14px",
|
|
2023
2031
|
color: Themes[variant].content.color
|
|
2024
|
-
},
|
|
2032
|
+
}, views == null ? void 0 : views.description), description)));
|
|
2025
2033
|
};
|
|
2026
2034
|
|
|
2027
2035
|
// Definition of the AlertComponent functional component with destructured props.
|
|
@@ -2029,14 +2037,14 @@ var AlertComponent = _ref => {
|
|
|
2029
2037
|
var {
|
|
2030
2038
|
icon,
|
|
2031
2039
|
title,
|
|
2032
|
-
|
|
2040
|
+
views,
|
|
2033
2041
|
description,
|
|
2034
2042
|
variant
|
|
2035
2043
|
} = _ref;
|
|
2036
2044
|
return /*#__PURE__*/React.createElement(AlertView, {
|
|
2037
2045
|
icon: icon,
|
|
2038
2046
|
title: title,
|
|
2039
|
-
|
|
2047
|
+
views: views,
|
|
2040
2048
|
description: description,
|
|
2041
2049
|
variant: variant
|
|
2042
2050
|
});
|
|
@@ -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"];
|
|
@@ -2110,7 +2119,7 @@ var AvatarView = _ref => {
|
|
|
2110
2119
|
src,
|
|
2111
2120
|
size = 'md',
|
|
2112
2121
|
fallback = 'IM',
|
|
2113
|
-
|
|
2122
|
+
views,
|
|
2114
2123
|
imageError,
|
|
2115
2124
|
setImageError,
|
|
2116
2125
|
onClick = () => {}
|
|
@@ -2120,7 +2129,7 @@ var AvatarView = _ref => {
|
|
|
2120
2129
|
// Initiates a style object for the image with an objectFit property and spreads additional image styles if provided.
|
|
2121
2130
|
var imageStyle = Object.assign({
|
|
2122
2131
|
objectFit: 'cover'
|
|
2123
|
-
}, (
|
|
2132
|
+
}, (views == null ? void 0 : views.image) || {});
|
|
2124
2133
|
// Start of the JSX returned by the AvatarView component, which uses the Center component as its root element.
|
|
2125
2134
|
return /*#__PURE__*/React.createElement(Center, Object.assign({
|
|
2126
2135
|
role: "avatar",
|
|
@@ -2133,7 +2142,7 @@ var AvatarView = _ref => {
|
|
|
2133
2142
|
borderColor: imageError ? 'black' : 'transparent',
|
|
2134
2143
|
boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.25)",
|
|
2135
2144
|
onClick: onClick
|
|
2136
|
-
},
|
|
2145
|
+
}, views == null ? void 0 : views.container), !imageError ? (/*#__PURE__*/React.createElement(Image, {
|
|
2137
2146
|
alt: "IM",
|
|
2138
2147
|
src: src,
|
|
2139
2148
|
style: imageStyle,
|
|
@@ -2142,7 +2151,7 @@ var AvatarView = _ref => {
|
|
|
2142
2151
|
onError: () => setImageError(true)
|
|
2143
2152
|
})) : (/*#__PURE__*/React.createElement(Text, Object.assign({
|
|
2144
2153
|
size: size
|
|
2145
|
-
},
|
|
2154
|
+
}, views == null ? void 0 : views.fallback), fallback)));
|
|
2146
2155
|
};
|
|
2147
2156
|
|
|
2148
2157
|
// Defines the AvatarComponent functional component with destructured props from AvatarProps type.
|
|
@@ -2150,7 +2159,7 @@ var AvatarComponent = _ref => {
|
|
|
2150
2159
|
var {
|
|
2151
2160
|
src,
|
|
2152
2161
|
size,
|
|
2153
|
-
|
|
2162
|
+
views,
|
|
2154
2163
|
fallback,
|
|
2155
2164
|
onClick
|
|
2156
2165
|
} = _ref;
|
|
@@ -2163,7 +2172,7 @@ var AvatarComponent = _ref => {
|
|
|
2163
2172
|
return /*#__PURE__*/React.createElement(AvatarView, {
|
|
2164
2173
|
src: src,
|
|
2165
2174
|
size: size,
|
|
2166
|
-
|
|
2175
|
+
views: views,
|
|
2167
2176
|
fallback: fallback,
|
|
2168
2177
|
imageError: imageError,
|
|
2169
2178
|
setImageError: setImageError,
|
|
@@ -2234,17 +2243,16 @@ var BadgeView = _ref => {
|
|
|
2234
2243
|
var {
|
|
2235
2244
|
// Declaring the functional component BadgeView with BadgeProps as its type for props.
|
|
2236
2245
|
content,
|
|
2237
|
-
// Destructuring props with default values for shape,
|
|
2246
|
+
// Destructuring props with default values for shape, variant, size, and views.
|
|
2238
2247
|
position,
|
|
2239
2248
|
shape = 'pillShaped',
|
|
2240
|
-
colorScheme = 'theme.primary',
|
|
2241
2249
|
variant = 'filled',
|
|
2242
2250
|
size = 'md',
|
|
2243
|
-
|
|
2251
|
+
views
|
|
2244
2252
|
} = _ref;
|
|
2245
2253
|
var BadgeVariants = {
|
|
2246
2254
|
filled: {
|
|
2247
|
-
backgroundColor:
|
|
2255
|
+
backgroundColor: 'theme.primary',
|
|
2248
2256
|
color: 'color.white',
|
|
2249
2257
|
borderWidth: 1,
|
|
2250
2258
|
borderStyle: 'solid',
|
|
@@ -2255,23 +2263,23 @@ var BadgeView = _ref => {
|
|
|
2255
2263
|
backgroundColor: 'transparent',
|
|
2256
2264
|
borderWidth: 1,
|
|
2257
2265
|
borderStyle: 'solid',
|
|
2258
|
-
borderColor:
|
|
2259
|
-
color:
|
|
2266
|
+
borderColor: 'theme.primary',
|
|
2267
|
+
color: 'theme.primary'
|
|
2260
2268
|
},
|
|
2261
2269
|
link: {
|
|
2262
2270
|
backgroundColor: 'transparent',
|
|
2263
2271
|
// Rendering the Badge component using the Center layout component with combinedStyles applied.
|
|
2264
2272
|
borderWidth: 1,
|
|
2265
|
-
// Inserting a Text component into the badge to display the content, with dynamic size and additional text
|
|
2273
|
+
// Inserting a Text component into the badge to display the content, with dynamic size and additional text views.
|
|
2266
2274
|
borderStyle: 'solid',
|
|
2267
2275
|
borderColor: 'transparent',
|
|
2268
|
-
color:
|
|
2276
|
+
color: 'theme.primary',
|
|
2269
2277
|
// Exporting BadgeView to be used in other parts of the application.
|
|
2270
2278
|
textDecoration: 'underline'
|
|
2271
2279
|
},
|
|
2272
2280
|
ghost: {
|
|
2273
2281
|
backgroundColor: 'transparent',
|
|
2274
|
-
color:
|
|
2282
|
+
color: 'color.trueGray.400',
|
|
2275
2283
|
borderWidth: 1,
|
|
2276
2284
|
borderStyle: 'solid',
|
|
2277
2285
|
borderColor: 'transparent'
|
|
@@ -2280,13 +2288,13 @@ var BadgeView = _ref => {
|
|
|
2280
2288
|
var combinedStyles = Object.assign({
|
|
2281
2289
|
width: 'fit-content',
|
|
2282
2290
|
borderRadius: BadgeShapes[shape]
|
|
2283
|
-
}, BadgeSizes[size], BadgeVariants[variant], position ? PositionStyles[position] : {},
|
|
2291
|
+
}, BadgeSizes[size], BadgeVariants[variant], position ? PositionStyles[position] : {}, views == null ? void 0 : views.container);
|
|
2284
2292
|
return /*#__PURE__*/React.createElement(Center, Object.assign({
|
|
2285
2293
|
role: "badge"
|
|
2286
2294
|
}, combinedStyles), /*#__PURE__*/React.createElement(Text, Object.assign({
|
|
2287
2295
|
role: "badgeText",
|
|
2288
2296
|
size: size
|
|
2289
|
-
},
|
|
2297
|
+
}, views == null ? void 0 : views.text), content));
|
|
2290
2298
|
};
|
|
2291
2299
|
|
|
2292
2300
|
// Importing type definitions for BadgeProps that will be used to type-check the Badge component's props.
|
|
@@ -2297,22 +2305,19 @@ var Badge = _ref => {
|
|
|
2297
2305
|
// Exporting the Badge as a functional component from this module.
|
|
2298
2306
|
shape,
|
|
2299
2307
|
// Destructuring the props in the component function parameter list, to directly access individual properties.
|
|
2300
|
-
colorScheme,
|
|
2301
|
-
// The functional component Badge is implicitly returning the BadgeView component.
|
|
2302
2308
|
position,
|
|
2303
2309
|
// Passing all the destructured props to the BadgeView component to maintain the same API surface.
|
|
2304
2310
|
variant,
|
|
2305
2311
|
size,
|
|
2306
|
-
|
|
2312
|
+
views
|
|
2307
2313
|
} = _ref;
|
|
2308
2314
|
return /*#__PURE__*/React.createElement(BadgeView, {
|
|
2309
2315
|
content: content,
|
|
2310
2316
|
shape: shape,
|
|
2311
|
-
colorScheme: colorScheme,
|
|
2312
2317
|
position: position,
|
|
2313
2318
|
variant: variant,
|
|
2314
2319
|
size: size,
|
|
2315
|
-
|
|
2320
|
+
views: views
|
|
2316
2321
|
});
|
|
2317
2322
|
};
|
|
2318
2323
|
|
|
@@ -2351,7 +2356,7 @@ var IconSizes = {
|
|
|
2351
2356
|
'6xl': 64
|
|
2352
2357
|
};
|
|
2353
2358
|
|
|
2354
|
-
var _excluded$7 = ["children", "to", "iconSize", "underline", "isHovered", "isExternal", "
|
|
2359
|
+
var _excluded$7 = ["children", "to", "iconSize", "underline", "isHovered", "isExternal", "views", "setIsHovered"];
|
|
2355
2360
|
// Component definition for 'LinkView', a functional component with props defined by 'LinkViewProps'.
|
|
2356
2361
|
var LinkView = _ref => {
|
|
2357
2362
|
var {
|
|
@@ -2367,7 +2372,7 @@ var LinkView = _ref => {
|
|
|
2367
2372
|
// Boolean indicating if the link leads to an external resource.
|
|
2368
2373
|
isExternal = false,
|
|
2369
2374
|
// Custom styles for the icon and text, provided via a styles object.
|
|
2370
|
-
|
|
2375
|
+
views = {
|
|
2371
2376
|
icon: {},
|
|
2372
2377
|
text: {}
|
|
2373
2378
|
},
|
|
@@ -2386,12 +2391,12 @@ var LinkView = _ref => {
|
|
|
2386
2391
|
onMouseEnter: handleHover,
|
|
2387
2392
|
onMouseLeave: handleHover,
|
|
2388
2393
|
textDecoration: isHovered || underline === 'underline' ? 'underline !important' : 'none'
|
|
2389
|
-
},
|
|
2394
|
+
}, views.text, props), /*#__PURE__*/React.createElement(Horizontal, {
|
|
2390
2395
|
gap: 3,
|
|
2391
2396
|
alignItems: "center",
|
|
2392
2397
|
flexWrap: "nowrap"
|
|
2393
2398
|
}, children, isExternal && /*#__PURE__*/React.createElement(ExternalLinkIcon, {
|
|
2394
|
-
|
|
2399
|
+
widthHeight: IconSizes[iconSize]
|
|
2395
2400
|
}))));
|
|
2396
2401
|
};
|
|
2397
2402
|
|
|
@@ -2534,7 +2539,7 @@ var DefaultSpeeds = {
|
|
|
2534
2539
|
var _excluded$8 = ["size", "speed", "color", "themeMode"],
|
|
2535
2540
|
_excluded2$1 = ["size", "speed", "color", "themeMode"],
|
|
2536
2541
|
_excluded3$1 = ["size", "speed", "color", "themeMode"],
|
|
2537
|
-
_excluded4$1 = ["size", "children", "textColor", "loaderColor", "type", "speed", "textPosition"];
|
|
2542
|
+
_excluded4$1 = ["size", "children", "textColor", "loaderColor", "type", "speed", "textPosition", "views"];
|
|
2538
2543
|
var DefaultSpinner = _ref => {
|
|
2539
2544
|
var {
|
|
2540
2545
|
size = 'md',
|
|
@@ -2675,7 +2680,8 @@ var LoaderView = _ref4 => {
|
|
|
2675
2680
|
loaderColor,
|
|
2676
2681
|
type = 'default',
|
|
2677
2682
|
speed = 'normal',
|
|
2678
|
-
textPosition = 'right'
|
|
2683
|
+
textPosition = 'right',
|
|
2684
|
+
views
|
|
2679
2685
|
} = _ref4,
|
|
2680
2686
|
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$1);
|
|
2681
2687
|
var style = {
|
|
@@ -2691,11 +2697,11 @@ var LoaderView = _ref4 => {
|
|
|
2691
2697
|
return /*#__PURE__*/React.createElement(Center, Object.assign({
|
|
2692
2698
|
gap: 10,
|
|
2693
2699
|
flexDirection: textPosition === 'top' || textPosition === 'bottom' ? 'column' : 'row'
|
|
2694
|
-
}, 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({
|
|
2695
2701
|
color: textColor
|
|
2696
|
-
}, 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({
|
|
2697
2703
|
color: textColor
|
|
2698
|
-
}, children)));
|
|
2704
|
+
}, views == null ? void 0 : views.text), children)));
|
|
2699
2705
|
};
|
|
2700
2706
|
|
|
2701
2707
|
// Defines a LoaderComponent as a functional component with props defined by LoaderProps and returns the LoaderView component, passing along any received props.
|
|
@@ -2706,7 +2712,7 @@ React.createElement(LoaderView, Object.assign({}, props)));
|
|
|
2706
2712
|
// Exports the LoaderComponent as Loader, making it available for use in other parts of the application.
|
|
2707
2713
|
var Loader = LoaderComponent;
|
|
2708
2714
|
|
|
2709
|
-
var _excluded$9 = ["icon", "shadow", "children", "ariaLabel", "to", "isAuto", "isFilled", "isIconRounded", "isLoading", "isDisabled", "size", "variant", "iconPosition", "
|
|
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"];
|
|
2710
2716
|
var contrast = /*#__PURE__*/require('contrast');
|
|
2711
2717
|
var ButtonView = _ref => {
|
|
2712
2718
|
var _props$onClick;
|
|
@@ -2714,25 +2720,16 @@ var ButtonView = _ref => {
|
|
|
2714
2720
|
icon,
|
|
2715
2721
|
shadow,
|
|
2716
2722
|
children,
|
|
2717
|
-
// Defines the functional component ButtonView with its expected props detailed in ButtonProps.
|
|
2718
2723
|
ariaLabel,
|
|
2719
|
-
// Initializes default values for the ButtonProps object; useful for defining states like isAuto, isFilled, etc.
|
|
2720
2724
|
to,
|
|
2721
2725
|
isAuto = false,
|
|
2722
|
-
// Determines if button should be active based on isDisabled and isLoading properties.
|
|
2723
2726
|
isFilled = false,
|
|
2724
|
-
// Prepares default properties for the native button element based on isActive state.
|
|
2725
2727
|
isIconRounded = false,
|
|
2726
|
-
// Sets button color; defaults to the theme's disabled color if button is not active.
|
|
2727
2728
|
isLoading = false,
|
|
2728
|
-
// Determines if the hover effect shall be applied based on isHovered and effect property.
|
|
2729
2729
|
isDisabled = false,
|
|
2730
|
-
// Determines if the reverse style shall be applied based on isHovered and effect property.
|
|
2731
2730
|
size = 'md',
|
|
2732
2731
|
variant = 'filled',
|
|
2733
2732
|
iconPosition = 'left',
|
|
2734
|
-
// Defines CSS properties for 'filled' variant of the button with conditional styles based on reverse state.
|
|
2735
|
-
colorScheme = 'theme.primary',
|
|
2736
2733
|
shape = 'rounded',
|
|
2737
2734
|
onClick = () => {},
|
|
2738
2735
|
loaderProps = {},
|
|
@@ -2742,9 +2739,8 @@ var ButtonView = _ref => {
|
|
|
2742
2739
|
setIsHovered = () => {},
|
|
2743
2740
|
isExternal = false,
|
|
2744
2741
|
themeMode: elementMode,
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
// Defines CSS properties for 'outline' variant of the button with conditional styles based on reverse state.
|
|
2742
|
+
linkProps,
|
|
2743
|
+
views
|
|
2748
2744
|
} = _ref,
|
|
2749
2745
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
2750
2746
|
var {
|
|
@@ -2756,13 +2752,12 @@ var ButtonView = _ref => {
|
|
|
2756
2752
|
var defaultNativeProps = {
|
|
2757
2753
|
disabled: !isActive
|
|
2758
2754
|
};
|
|
2759
|
-
var buttonColor = isActive ?
|
|
2755
|
+
var buttonColor = isActive ? 'theme.primary' : 'theme.disabled';
|
|
2760
2756
|
var hovering = isHovered && effect === 'hover';
|
|
2761
2757
|
var reverse = isHovered && effect === 'reverse';
|
|
2762
2758
|
var isLight = contrast(getColor(buttonColor, elementMode ? elementMode : themeMode)) == 'light';
|
|
2763
2759
|
var ButtonVariants = {
|
|
2764
2760
|
filled: {
|
|
2765
|
-
// Defines CSS properties for 'link' variant of the button with conditional styles based on reverse state, includes text decoration.
|
|
2766
2761
|
backgroundColor: reverse ? 'transparent' : buttonColor,
|
|
2767
2762
|
color: reverse ? isLight ? 'white' : buttonColor : isLight ? buttonColor : 'white',
|
|
2768
2763
|
borderWidth: 1,
|
|
@@ -2771,42 +2766,36 @@ var ButtonView = _ref => {
|
|
|
2771
2766
|
},
|
|
2772
2767
|
outline: {
|
|
2773
2768
|
backgroundColor: reverse ? buttonColor : 'transparent',
|
|
2774
|
-
// Defines CSS properties for 'ghost' variant of the button with conditional styles based on reverse state.
|
|
2775
2769
|
borderWidth: 1,
|
|
2776
2770
|
borderStyle: 'solid',
|
|
2777
|
-
borderColor: reverse ? buttonColor :
|
|
2778
|
-
// Fetches size-specific styles from ButtonSizes based on the 'size' prop.
|
|
2771
|
+
borderColor: reverse ? buttonColor : 'theme.primary',
|
|
2779
2772
|
color: reverse ? 'white' : buttonColor
|
|
2780
2773
|
},
|
|
2781
|
-
// Adjusts button width based on isAuto and isFilled properties, using buttonSizeStyles for fallback width.
|
|
2782
2774
|
link: {
|
|
2783
2775
|
backgroundColor: 'transparent',
|
|
2784
|
-
// Changes padding for the button based on whether isIconRounded is true or false.
|
|
2785
2776
|
borderWidth: 1,
|
|
2786
2777
|
borderStyle: 'solid',
|
|
2787
|
-
// Creates the content for the button including loaders and icons positioned based on their respective properties.
|
|
2788
2778
|
borderColor: reverse ? buttonColor : 'transparent',
|
|
2789
2779
|
color: buttonColor,
|
|
2790
2780
|
textDecoration: reverse ? 'none' : 'underline'
|
|
2791
2781
|
},
|
|
2792
2782
|
ghost: {
|
|
2793
|
-
backgroundColor:
|
|
2783
|
+
backgroundColor: 'transparent',
|
|
2794
2784
|
color: reverse ? 'white' : buttonColor,
|
|
2795
2785
|
borderWidth: 1,
|
|
2796
2786
|
borderStyle: 'solid',
|
|
2797
2787
|
borderColor: reverse ? buttonColor : 'transparent'
|
|
2798
2788
|
}
|
|
2799
2789
|
};
|
|
2800
|
-
// Executes rendering of the button or a link element based on the variant; applies conditional rendering for to in 'link' variant.
|
|
2801
2790
|
var buttonSizeStyles = ButtonSizes[size];
|
|
2802
2791
|
var buttonVariant = ButtonVariants[variant];
|
|
2803
2792
|
var scaleWidth = {
|
|
2804
2793
|
width: isAuto === true ? 'fit-content' : isFilled ? '100%' : buttonSizeStyles.width
|
|
2805
2794
|
};
|
|
2806
2795
|
var changePadding = isIconRounded ? IconSizes$1[size] : ButtonSizes[size];
|
|
2807
|
-
var content = /*#__PURE__*/React.createElement(Horizontal, {
|
|
2796
|
+
var content = /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
2808
2797
|
gap: 10
|
|
2809
|
-
}, 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 ? {
|
|
2810
2799
|
animate: Animation.jackInTheBox({})
|
|
2811
2800
|
} : {}), icon)), children, icon && iconPosition === 'right' && !isLoading && (/*#__PURE__*/React.createElement(View$1, Object.assign({}, isHovered ? {
|
|
2812
2801
|
animate: Animation.jackInTheBox({})
|
|
@@ -2830,12 +2819,11 @@ var ButtonView = _ref => {
|
|
|
2830
2819
|
}, hovering && !props.isDisabled ? {
|
|
2831
2820
|
transition: 'transform 0.3s ease',
|
|
2832
2821
|
transform: 'translateY(-5px)'
|
|
2833
|
-
} : {}, 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({
|
|
2834
2823
|
to: to,
|
|
2835
|
-
textDecorationColor:
|
|
2836
|
-
colorScheme: colorScheme,
|
|
2824
|
+
textDecorationColor: 'theme.primary',
|
|
2837
2825
|
isExternal: isExternal
|
|
2838
|
-
}, linkProps), content)) : content);
|
|
2826
|
+
}, linkProps, views == null ? void 0 : views.link), content)) : content);
|
|
2839
2827
|
};
|
|
2840
2828
|
|
|
2841
2829
|
// Importing a custom hook to manage the state specific to the button component.
|
|
@@ -2865,13 +2853,13 @@ var ButtonComponent = props => {
|
|
|
2865
2853
|
};
|
|
2866
2854
|
var Button = ButtonComponent;
|
|
2867
2855
|
|
|
2868
|
-
var _excluded$a = ["src", "color", "themeMode"],
|
|
2856
|
+
var _excluded$a = ["src", "color", "views", "themeMode"],
|
|
2869
2857
|
_excluded2$2 = ["path"];
|
|
2870
2858
|
var FileSVG = _ref => {
|
|
2871
2859
|
var {
|
|
2872
2860
|
src,
|
|
2873
2861
|
color,
|
|
2874
|
-
|
|
2862
|
+
views
|
|
2875
2863
|
} = _ref,
|
|
2876
2864
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
2877
2865
|
var {
|
|
@@ -2879,14 +2867,18 @@ var FileSVG = _ref => {
|
|
|
2879
2867
|
themeMode
|
|
2880
2868
|
} = useTheme();
|
|
2881
2869
|
var Colorprops = color ? {
|
|
2882
|
-
fill: getColor(color,
|
|
2883
|
-
|
|
2870
|
+
fill: getColor(color, {
|
|
2871
|
+
themeMode
|
|
2872
|
+
}),
|
|
2873
|
+
stroke: getColor(color, {
|
|
2874
|
+
themeMode
|
|
2875
|
+
})
|
|
2884
2876
|
} : {};
|
|
2885
|
-
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, {
|
|
2886
2878
|
content: 'url("' + src + '")',
|
|
2887
2879
|
width: "100%",
|
|
2888
2880
|
height: "100%"
|
|
2889
|
-
})));
|
|
2881
|
+
}, views == null ? void 0 : views.image)));
|
|
2890
2882
|
};
|
|
2891
2883
|
var FileImage = _ref2 => {
|
|
2892
2884
|
var {
|
|
@@ -2943,11 +2935,11 @@ var useItemState = () => {
|
|
|
2943
2935
|
};
|
|
2944
2936
|
};
|
|
2945
2937
|
|
|
2946
|
-
var _excluded$b = ["children", "
|
|
2938
|
+
var _excluded$b = ["children", "views"];
|
|
2947
2939
|
var HelperText = _ref => {
|
|
2948
2940
|
var {
|
|
2949
2941
|
children,
|
|
2950
|
-
|
|
2942
|
+
views = {
|
|
2951
2943
|
helperText: {}
|
|
2952
2944
|
}
|
|
2953
2945
|
} = _ref,
|
|
@@ -2957,22 +2949,22 @@ var HelperText = _ref => {
|
|
|
2957
2949
|
marginVertical: 0,
|
|
2958
2950
|
marginHorizontal: 0,
|
|
2959
2951
|
color: 'theme.text.dark'
|
|
2960
|
-
},
|
|
2952
|
+
}, views['helperText'], props), children);
|
|
2961
2953
|
};
|
|
2962
2954
|
|
|
2963
|
-
var _excluded$c = ["children", "helperText", "error", "
|
|
2955
|
+
var _excluded$c = ["children", "helperText", "error", "views"];
|
|
2964
2956
|
var FieldContainer = _ref => {
|
|
2965
2957
|
var {
|
|
2966
2958
|
children,
|
|
2967
2959
|
helperText,
|
|
2968
2960
|
error = false,
|
|
2969
|
-
|
|
2961
|
+
views
|
|
2970
2962
|
} = _ref,
|
|
2971
2963
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
2972
2964
|
return /*#__PURE__*/React.createElement(Vertical, Object.assign({
|
|
2973
2965
|
gap: 5,
|
|
2974
2966
|
position: "relative"
|
|
2975
|
-
}, props), children, !error && helperText && /*#__PURE__*/React.createElement(HelperText, Object.assign({},
|
|
2967
|
+
}, props), children, !error && helperText && /*#__PURE__*/React.createElement(HelperText, Object.assign({}, views), helperText), error && (/*#__PURE__*/React.createElement(Text, {
|
|
2976
2968
|
size: "xs",
|
|
2977
2969
|
marginVertical: 0,
|
|
2978
2970
|
marginHorizontal: 0,
|
|
@@ -3027,7 +3019,7 @@ var PaddingWithoutLabel = {
|
|
|
3027
3019
|
paddingRight: 16
|
|
3028
3020
|
};
|
|
3029
3021
|
|
|
3030
|
-
var _excluded$d = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "isWithLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "
|
|
3022
|
+
var _excluded$d = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "isWithLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "views"];
|
|
3031
3023
|
var FieldContent = _ref => {
|
|
3032
3024
|
var {
|
|
3033
3025
|
shadow,
|
|
@@ -3041,14 +3033,13 @@ var FieldContent = _ref => {
|
|
|
3041
3033
|
isHovered = false,
|
|
3042
3034
|
isDisabled = false,
|
|
3043
3035
|
isReadOnly = false,
|
|
3044
|
-
|
|
3045
|
-
styles = {
|
|
3036
|
+
views = {
|
|
3046
3037
|
pickerBox: {}
|
|
3047
3038
|
}
|
|
3048
3039
|
} = _ref,
|
|
3049
3040
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
3050
3041
|
var isInteractive = (isHovered || isFocused) && !isDisabled;
|
|
3051
|
-
var color = error ? 'error' : isInteractive ?
|
|
3042
|
+
var color = error ? 'error' : isInteractive ? 'theme.primary' : 'midgray';
|
|
3052
3043
|
return /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
3053
3044
|
gap: 10,
|
|
3054
3045
|
width: "100%",
|
|
@@ -3064,7 +3055,7 @@ var FieldContent = _ref => {
|
|
|
3064
3055
|
fontSize: Typography.fontSizes[size],
|
|
3065
3056
|
// filter={isHovered ? 'brightness(1)':'brightness(0.97)'}
|
|
3066
3057
|
cursor: isDisabled ? 'not-allowed' : isReadOnly ? 'auto' : 'pointer'
|
|
3067
|
-
}, isWithLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant],
|
|
3058
|
+
}, isWithLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant], views['box'], props), children);
|
|
3068
3059
|
};
|
|
3069
3060
|
|
|
3070
3061
|
var _excluded$e = ["children"];
|
|
@@ -3112,13 +3103,13 @@ var HeadingSizes$1 = {
|
|
|
3112
3103
|
},
|
|
3113
3104
|
h5: {
|
|
3114
3105
|
fontSize: 24,
|
|
3115
|
-
// Set the 'h5' heading tag
|
|
3106
|
+
// Set the 'h5' heading tag views, opting for no additional letter spacing.
|
|
3116
3107
|
lineHeight: 28,
|
|
3117
3108
|
letterSpacing: 0
|
|
3118
3109
|
},
|
|
3119
3110
|
h6: {
|
|
3120
3111
|
fontSize: 20,
|
|
3121
|
-
// Set the 'h6' heading tag
|
|
3112
|
+
// Set the 'h6' heading tag views, with the smallest font size and a subtle letter spacing.
|
|
3122
3113
|
lineHeight: 24,
|
|
3123
3114
|
letterSpacing: 0.15
|
|
3124
3115
|
}
|
|
@@ -3172,14 +3163,14 @@ React.createElement(LabelView, Object.assign({}, props))
|
|
|
3172
3163
|
var Label = LabelComponent;
|
|
3173
3164
|
// Export the 'LabelComponent' as 'Label' to be reused throughout the project.
|
|
3174
3165
|
|
|
3175
|
-
var _excluded$g = ["children", "size", "error", "color", "
|
|
3166
|
+
var _excluded$g = ["children", "size", "error", "color", "views", "helperText"];
|
|
3176
3167
|
var FieldLabel = _ref => {
|
|
3177
3168
|
var {
|
|
3178
3169
|
children,
|
|
3179
3170
|
size = 'md',
|
|
3180
3171
|
error = false,
|
|
3181
3172
|
color = 'theme.primary',
|
|
3182
|
-
|
|
3173
|
+
views = {
|
|
3183
3174
|
label: {}
|
|
3184
3175
|
}
|
|
3185
3176
|
} = _ref,
|
|
@@ -3193,7 +3184,7 @@ var FieldLabel = _ref => {
|
|
|
3193
3184
|
position: "absolute",
|
|
3194
3185
|
color: error ? 'error' : color,
|
|
3195
3186
|
fontSize: LabelSizes[size]
|
|
3196
|
-
},
|
|
3187
|
+
}, views['label'], props), children);
|
|
3197
3188
|
};
|
|
3198
3189
|
|
|
3199
3190
|
var _excluded$h = ["children"];
|
|
@@ -3221,7 +3212,7 @@ var IconSizes$2 = {
|
|
|
3221
3212
|
var _excluded$i = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
|
|
3222
3213
|
_excluded2$3 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
|
|
3223
3214
|
_excluded3$2 = ["option", "size", "removeOption"],
|
|
3224
|
-
_excluded4$2 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isMulti", "isFocused", "isHovered", "isDisabled", "isReadOnly", "options", "shadow", "size", "
|
|
3215
|
+
_excluded4$2 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isMulti", "isFocused", "isHovered", "isDisabled", "isReadOnly", "options", "shadow", "size", "shape", "variant", "views", "onChange", "setHide", "setValue", "setIsHovered", "setIsFocused", "setHighlightedIndex", "highlightedIndex"];
|
|
3225
3216
|
// Defines a component to render individual selection items within a list.
|
|
3226
3217
|
var Item = _ref => {
|
|
3227
3218
|
var {
|
|
@@ -3255,7 +3246,7 @@ var SelectBox = _ref2 => {
|
|
|
3255
3246
|
var _ref3;
|
|
3256
3247
|
var {
|
|
3257
3248
|
size = 'md',
|
|
3258
|
-
|
|
3249
|
+
views = {
|
|
3259
3250
|
field: {},
|
|
3260
3251
|
text: {}
|
|
3261
3252
|
},
|
|
@@ -3276,7 +3267,7 @@ var SelectBox = _ref2 => {
|
|
|
3276
3267
|
backgroundColor: 'transparent',
|
|
3277
3268
|
color: isDisabled ? 'color.trueGray.600' : 'color.blueGray.700',
|
|
3278
3269
|
cursor: isDisabled ? 'not-allowed' : 'auto'
|
|
3279
|
-
},
|
|
3270
|
+
}, views['field'], views['text']);
|
|
3280
3271
|
var option = options.length > 0 && options.find(option => option.value === value);
|
|
3281
3272
|
return /*#__PURE__*/React.createElement(Text, Object.assign({}, fieldStyles), (value === '' || Array.isArray(value) && value.length === 0) && !!placeholder ? placeholder : (/*#__PURE__*/React.createElement(React.Fragment, null, typeof value === 'string' ? (_ref3 = option && option.label) != null ? _ref3 : value :
|
|
3282
3273
|
// If value is an array and not empty, render MultiSelect options
|
|
@@ -3329,7 +3320,7 @@ var HiddenSelect = _ref4 => {
|
|
|
3329
3320
|
var DropDown = _ref5 => {
|
|
3330
3321
|
var {
|
|
3331
3322
|
size,
|
|
3332
|
-
|
|
3323
|
+
views = {
|
|
3333
3324
|
dropDown: {}
|
|
3334
3325
|
},
|
|
3335
3326
|
options,
|
|
@@ -3376,10 +3367,10 @@ var DropDown = _ref5 => {
|
|
|
3376
3367
|
display: 'none'
|
|
3377
3368
|
}
|
|
3378
3369
|
}
|
|
3379
|
-
}, shadow,
|
|
3370
|
+
}, shadow, views['dropDown']), options.length > 0 && options.map((option, index) => (/*#__PURE__*/React.createElement(Item, Object.assign({
|
|
3380
3371
|
key: option.value,
|
|
3381
3372
|
size: size,
|
|
3382
|
-
style:
|
|
3373
|
+
style: views['text'],
|
|
3383
3374
|
option: option,
|
|
3384
3375
|
callback: handleCallback,
|
|
3385
3376
|
backgroundColor: index === highlightedIndex ? 'color.gray.100' : 'transparent',
|
|
@@ -3407,7 +3398,7 @@ var MultiSelect = _ref6 => {
|
|
|
3407
3398
|
}, option), /*#__PURE__*/React.createElement(CloseIcon, {
|
|
3408
3399
|
role: "close-button",
|
|
3409
3400
|
color: "inherit",
|
|
3410
|
-
|
|
3401
|
+
widthHeight: IconSizes$2[size],
|
|
3411
3402
|
onClick: handleClick
|
|
3412
3403
|
}));
|
|
3413
3404
|
};
|
|
@@ -3429,10 +3420,9 @@ var SelectView = _ref7 => {
|
|
|
3429
3420
|
options = [],
|
|
3430
3421
|
shadow = {},
|
|
3431
3422
|
size = 'md',
|
|
3432
|
-
colorScheme = 'theme.primary',
|
|
3433
3423
|
shape = 'default',
|
|
3434
3424
|
variant = 'default',
|
|
3435
|
-
|
|
3425
|
+
views = {
|
|
3436
3426
|
text: {},
|
|
3437
3427
|
icon: {},
|
|
3438
3428
|
dropDown: {},
|
|
@@ -3476,31 +3466,30 @@ var SelectView = _ref7 => {
|
|
|
3476
3466
|
role: "SelectBox",
|
|
3477
3467
|
helperText: helperText,
|
|
3478
3468
|
error: error,
|
|
3479
|
-
|
|
3469
|
+
views: views,
|
|
3480
3470
|
onClick: isDisabled || isReadOnly ? () => {} : handleClick
|
|
3481
3471
|
}, /*#__PURE__*/React.createElement(FieldContent, {
|
|
3482
3472
|
label: label,
|
|
3483
3473
|
size: size,
|
|
3484
3474
|
error: error,
|
|
3485
3475
|
shape: shape,
|
|
3486
|
-
|
|
3476
|
+
views: views,
|
|
3487
3477
|
shadow: shadow,
|
|
3488
3478
|
variant: variant,
|
|
3489
3479
|
value: value,
|
|
3490
|
-
color:
|
|
3480
|
+
color: 'theme.primary',
|
|
3491
3481
|
isHovered: isHovered,
|
|
3492
3482
|
isDisabled: isDisabled,
|
|
3493
3483
|
isReadOnly: isReadOnly,
|
|
3494
3484
|
isFocused: isFocused,
|
|
3495
3485
|
isWithLabel: isWithLabel,
|
|
3496
|
-
colorScheme: colorScheme,
|
|
3497
3486
|
onMouseEnter: handleHover,
|
|
3498
3487
|
onMouseLeave: handleHover
|
|
3499
3488
|
}, /*#__PURE__*/React.createElement(FieldWrapper, null, isWithLabel && (/*#__PURE__*/React.createElement(FieldLabel, Object.assign({
|
|
3500
3489
|
htmlFor: id,
|
|
3501
|
-
color:
|
|
3490
|
+
color: 'theme.primary',
|
|
3502
3491
|
error: error
|
|
3503
|
-
},
|
|
3492
|
+
}, views), label)), /*#__PURE__*/React.createElement(HiddenSelect, Object.assign({
|
|
3504
3493
|
id: id,
|
|
3505
3494
|
name: name,
|
|
3506
3495
|
options: options,
|
|
@@ -3513,24 +3502,24 @@ var SelectView = _ref7 => {
|
|
|
3513
3502
|
}, props)), /*#__PURE__*/React.createElement(SelectBox, {
|
|
3514
3503
|
options: options,
|
|
3515
3504
|
size: size,
|
|
3516
|
-
|
|
3505
|
+
views: views,
|
|
3517
3506
|
value: value,
|
|
3518
3507
|
isDisabled: isDisabled,
|
|
3519
3508
|
placeholder: placeholder,
|
|
3520
3509
|
removeOption: handleRemoveOption
|
|
3521
3510
|
})), /*#__PURE__*/React.createElement(FieldIcons, null, !isReadOnly && !isDisabled && (/*#__PURE__*/React.createElement(React.Fragment, null, hide ? (/*#__PURE__*/React.createElement(ChevronIcon, {
|
|
3522
3511
|
color: "inherit",
|
|
3523
|
-
|
|
3524
|
-
style:
|
|
3512
|
+
widthHeight: IconSizes$2[size],
|
|
3513
|
+
style: views.icon,
|
|
3525
3514
|
orientation: "down"
|
|
3526
3515
|
})) : (/*#__PURE__*/React.createElement(ChevronIcon, {
|
|
3527
3516
|
color: "inherit",
|
|
3528
3517
|
orientation: "up",
|
|
3529
|
-
|
|
3530
|
-
style:
|
|
3518
|
+
widthHeight: IconSizes$2[size],
|
|
3519
|
+
style: views.icon
|
|
3531
3520
|
})))))), !hide && (/*#__PURE__*/React.createElement(DropDown, {
|
|
3532
3521
|
size: size,
|
|
3533
|
-
|
|
3522
|
+
views: views,
|
|
3534
3523
|
options: options,
|
|
3535
3524
|
callback: handleCallback,
|
|
3536
3525
|
highlightedIndex: highlightedIndex,
|
|
@@ -3694,7 +3683,7 @@ var SliderPadding = {
|
|
|
3694
3683
|
}
|
|
3695
3684
|
};
|
|
3696
3685
|
|
|
3697
|
-
var _excluded$j = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "
|
|
3686
|
+
var _excluded$j = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "value", "isHovered", "isDisabled", "isReadOnly", "on", "setOn", "onChange", "setValue", "setIsHovered", "helperText", "views"];
|
|
3698
3687
|
var SwitchContent = props => /*#__PURE__*/React.createElement(Input, Object.assign({
|
|
3699
3688
|
type: "checkbox"
|
|
3700
3689
|
}, props));
|
|
@@ -3708,7 +3697,6 @@ var SwitchView = _ref => {
|
|
|
3708
3697
|
labelPosition = 'right',
|
|
3709
3698
|
shadow = {},
|
|
3710
3699
|
size = 'sm',
|
|
3711
|
-
colorScheme = 'theme.primary',
|
|
3712
3700
|
value = false,
|
|
3713
3701
|
isHovered = false,
|
|
3714
3702
|
isDisabled = false,
|
|
@@ -3718,7 +3706,7 @@ var SwitchView = _ref => {
|
|
|
3718
3706
|
onChange,
|
|
3719
3707
|
setValue = () => {},
|
|
3720
3708
|
setIsHovered = () => {},
|
|
3721
|
-
|
|
3709
|
+
views = {
|
|
3722
3710
|
slider: {},
|
|
3723
3711
|
circle: {},
|
|
3724
3712
|
label: {}
|
|
@@ -3740,7 +3728,7 @@ var SwitchView = _ref => {
|
|
|
3740
3728
|
height: 'fit-content',
|
|
3741
3729
|
width: 'fit-content',
|
|
3742
3730
|
cursor: isDisabled ? 'not-allowed' : isReadOnly ? 'default' : 'pointer'
|
|
3743
|
-
},
|
|
3731
|
+
}, views.label)
|
|
3744
3732
|
};
|
|
3745
3733
|
return /*#__PURE__*/React.createElement(Label, Object.assign({
|
|
3746
3734
|
htmlFor: id,
|
|
@@ -3764,12 +3752,12 @@ var SwitchView = _ref => {
|
|
|
3764
3752
|
marginBottom: 5,
|
|
3765
3753
|
filter: isHovered && value ? 'brightness(0.9)' : 'brightness(1)',
|
|
3766
3754
|
transition: "justify-content 0.3s cubic-bezier(0.4, 0, 0.2, 1)",
|
|
3767
|
-
backgroundColor: isDisabled ? 'disabled' : value ?
|
|
3755
|
+
backgroundColor: isDisabled ? 'disabled' : value ? 'theme.primary' : 'lightgray',
|
|
3768
3756
|
justifyContent: activeChild ? 'space-between' : value ? 'flex-end' : 'flex-start'
|
|
3769
|
-
}, shadow, SliderPadding[size], SliderSizes[size],
|
|
3757
|
+
}, shadow, SliderPadding[size], SliderSizes[size], views['slider']), activeChild && value && /*#__PURE__*/React.createElement(View, null, activeChild), /*#__PURE__*/React.createElement(View, Object.assign({
|
|
3770
3758
|
borderRadius: "50%",
|
|
3771
3759
|
backgroundColor: "white"
|
|
3772
|
-
}, KnobSizes[size],
|
|
3760
|
+
}, KnobSizes[size], views['circle'])), inActiveChild && !value && /*#__PURE__*/React.createElement(View, null, inActiveChild)), labelPosition === 'right' && label && /*#__PURE__*/React.createElement(View, null, label));
|
|
3773
3761
|
};
|
|
3774
3762
|
|
|
3775
3763
|
// Defines the SwitchComponent as a functional component that takes SwitchProps as props.
|
|
@@ -3814,7 +3802,7 @@ var useTextAreaState = _ref => {
|
|
|
3814
3802
|
// Export of the useTextAreaState hook for external usage.
|
|
3815
3803
|
};
|
|
3816
3804
|
|
|
3817
|
-
var _excluded$k = ["id", "name", "hint", "error", "value", "label", "shadow", "helperText", "placeholder", "size", "shape", "variant", "
|
|
3805
|
+
var _excluded$k = ["id", "name", "hint", "error", "value", "label", "shadow", "helperText", "placeholder", "size", "shape", "variant", "isHovered", "isFocused", "isEditable", "isReadOnly", "isDisabled", "isAutoFocus", "isMultiline", "maxRows", "maxCols", "onBlur", "onChange", "onFocus", "onChangeText", "setHint", "setValue", "setIsFocused", "setIsHovered", "views"];
|
|
3818
3806
|
var TextAreaView = _ref => {
|
|
3819
3807
|
var {
|
|
3820
3808
|
id,
|
|
@@ -3828,7 +3816,6 @@ var TextAreaView = _ref => {
|
|
|
3828
3816
|
size = 'sm',
|
|
3829
3817
|
shape = 'default',
|
|
3830
3818
|
variant = 'default',
|
|
3831
|
-
colorScheme = 'theme.primary',
|
|
3832
3819
|
isHovered = false,
|
|
3833
3820
|
isFocused = false,
|
|
3834
3821
|
isEditable = false,
|
|
@@ -3846,7 +3833,7 @@ var TextAreaView = _ref => {
|
|
|
3846
3833
|
setValue = () => {},
|
|
3847
3834
|
setIsFocused = () => {},
|
|
3848
3835
|
setIsHovered = () => {},
|
|
3849
|
-
|
|
3836
|
+
views = {
|
|
3850
3837
|
box: {},
|
|
3851
3838
|
text: {},
|
|
3852
3839
|
label: {},
|
|
@@ -3872,7 +3859,7 @@ var TextAreaView = _ref => {
|
|
|
3872
3859
|
backgroundColor: 'transparent',
|
|
3873
3860
|
color: isDisabled ? 'color.trueGray.600' : 'color.blueGray.700',
|
|
3874
3861
|
cursor: isDisabled ? 'not-allowed' : 'auto'
|
|
3875
|
-
},
|
|
3862
|
+
}, views['field']);
|
|
3876
3863
|
var handleHover = () => setIsHovered(!isHovered);
|
|
3877
3864
|
var handleFocus = () => {
|
|
3878
3865
|
setIsFocused(true);
|
|
@@ -3896,30 +3883,29 @@ var TextAreaView = _ref => {
|
|
|
3896
3883
|
return /*#__PURE__*/React.createElement(FieldContainer, {
|
|
3897
3884
|
helperText: helperText,
|
|
3898
3885
|
error: error,
|
|
3899
|
-
|
|
3886
|
+
views: views
|
|
3900
3887
|
}, /*#__PURE__*/React.createElement(FieldContent, {
|
|
3901
3888
|
label: label,
|
|
3902
3889
|
size: size,
|
|
3903
3890
|
error: error,
|
|
3904
3891
|
shape: shape,
|
|
3905
|
-
|
|
3892
|
+
views: views,
|
|
3906
3893
|
shadow: shadow,
|
|
3907
3894
|
variant: variant,
|
|
3908
3895
|
value: value,
|
|
3909
|
-
color:
|
|
3896
|
+
color: 'theme.primary',
|
|
3910
3897
|
isHovered: isHovered,
|
|
3911
3898
|
isDisabled: isDisabled,
|
|
3912
3899
|
isReadOnly: isReadOnly,
|
|
3913
3900
|
isFocused: isFocused,
|
|
3914
3901
|
isWithLabel: isWithLabel,
|
|
3915
|
-
colorScheme: colorScheme,
|
|
3916
3902
|
onMouseEnter: handleHover,
|
|
3917
3903
|
onMouseLeave: handleHover
|
|
3918
3904
|
}, /*#__PURE__*/React.createElement(FieldWrapper, null, isWithLabel && (/*#__PURE__*/React.createElement(FieldLabel, Object.assign({
|
|
3919
3905
|
htmlFor: id,
|
|
3920
|
-
color:
|
|
3906
|
+
color: 'theme.primary',
|
|
3921
3907
|
error: error
|
|
3922
|
-
},
|
|
3908
|
+
}, views), label)), /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
3923
3909
|
as: "textarea",
|
|
3924
3910
|
id: id,
|
|
3925
3911
|
name: name,
|
|
@@ -3984,7 +3970,7 @@ var useTextFieldState = _ref => {
|
|
|
3984
3970
|
};
|
|
3985
3971
|
};
|
|
3986
3972
|
|
|
3987
|
-
var _excluded$l = ["id", "name", "label", "hint", "value", "onChange", "left", "right", "helperText", "placeholder", "onChangeText", "shadow", "
|
|
3973
|
+
var _excluded$l = ["id", "name", "label", "hint", "value", "onChange", "left", "right", "helperText", "placeholder", "onChangeText", "shadow", "views", "size", "shape", "variant", "error", "isFocused", "isHovered", "isDisabled", "isReadOnly", "isClearable", "isAutoFocus", "setHint", "setIsFocused", "setIsHovered", "setValue", "onClick", "onFocus", "onBlur", "themeMode"];
|
|
3988
3974
|
var TextFieldInput = props => /*#__PURE__*/React.createElement(Input, Object.assign({
|
|
3989
3975
|
type: "text"
|
|
3990
3976
|
}, props));
|
|
@@ -4001,7 +3987,7 @@ var TextFieldView = _ref => {
|
|
|
4001
3987
|
helperText,
|
|
4002
3988
|
onChangeText,
|
|
4003
3989
|
shadow = {},
|
|
4004
|
-
|
|
3990
|
+
views = {
|
|
4005
3991
|
box: {},
|
|
4006
3992
|
field: {},
|
|
4007
3993
|
label: {},
|
|
@@ -4011,7 +3997,6 @@ var TextFieldView = _ref => {
|
|
|
4011
3997
|
size = 'md',
|
|
4012
3998
|
shape = 'default',
|
|
4013
3999
|
variant = 'default',
|
|
4014
|
-
colorScheme = 'theme.primary',
|
|
4015
4000
|
error = false,
|
|
4016
4001
|
isFocused = false,
|
|
4017
4002
|
isHovered = false,
|
|
@@ -4052,7 +4037,7 @@ var TextFieldView = _ref => {
|
|
|
4052
4037
|
backgroundColor: 'transparent',
|
|
4053
4038
|
color: isDisabled ? 'color.trueGray.600' : 'color.blueGray.700',
|
|
4054
4039
|
cursor: isDisabled ? 'not-allowed' : 'auto'
|
|
4055
|
-
},
|
|
4040
|
+
}, views['field']);
|
|
4056
4041
|
var handleFocus = () => {
|
|
4057
4042
|
setIsFocused(true);
|
|
4058
4043
|
if (onFocus) onFocus();
|
|
@@ -4089,30 +4074,29 @@ var TextFieldView = _ref => {
|
|
|
4089
4074
|
return /*#__PURE__*/React.createElement(FieldContainer, {
|
|
4090
4075
|
helperText: helperText,
|
|
4091
4076
|
error: error,
|
|
4092
|
-
|
|
4077
|
+
views: views
|
|
4093
4078
|
}, /*#__PURE__*/React.createElement(FieldContent, {
|
|
4094
4079
|
label: label,
|
|
4095
4080
|
size: size,
|
|
4096
4081
|
error: error,
|
|
4097
4082
|
shape: shape,
|
|
4098
|
-
|
|
4083
|
+
views: views,
|
|
4099
4084
|
shadow: shadow,
|
|
4100
4085
|
variant: variant,
|
|
4101
4086
|
value: value,
|
|
4102
|
-
color:
|
|
4087
|
+
color: 'theme.primary',
|
|
4103
4088
|
isHovered: isHovered,
|
|
4104
4089
|
isDisabled: isDisabled,
|
|
4105
4090
|
isReadOnly: isReadOnly,
|
|
4106
4091
|
isFocused: isFocused,
|
|
4107
4092
|
isWithLabel: isWithLabel,
|
|
4108
|
-
colorScheme: colorScheme,
|
|
4109
4093
|
onMouseEnter: handleHover,
|
|
4110
4094
|
onMouseLeave: handleHover
|
|
4111
4095
|
}, left, /*#__PURE__*/React.createElement(FieldWrapper, null, isWithLabel && (/*#__PURE__*/React.createElement(FieldLabel, Object.assign({
|
|
4112
4096
|
htmlFor: id,
|
|
4113
|
-
color:
|
|
4097
|
+
color: 'theme.primary',
|
|
4114
4098
|
error: error
|
|
4115
|
-
},
|
|
4099
|
+
}, views), label)), /*#__PURE__*/React.createElement(TextFieldInput, Object.assign({
|
|
4116
4100
|
id: id,
|
|
4117
4101
|
name: name,
|
|
4118
4102
|
readOnly: isReadOnly,
|
|
@@ -4126,7 +4110,7 @@ var TextFieldView = _ref => {
|
|
|
4126
4110
|
onChange: handleChange,
|
|
4127
4111
|
value: value
|
|
4128
4112
|
}))), isClearable && value && !isReadOnly && !isDisabled && (/*#__PURE__*/React.createElement(FieldIcons, null, /*#__PURE__*/React.createElement(CloseIcon, {
|
|
4129
|
-
|
|
4113
|
+
widthHeight: Typography.fontSizes[size],
|
|
4130
4114
|
color: IconColor,
|
|
4131
4115
|
onClick: handleClear
|
|
4132
4116
|
}))), right));
|
|
@@ -4210,7 +4194,7 @@ var IconSizes$3 = {
|
|
|
4210
4194
|
'6xl': 60
|
|
4211
4195
|
};
|
|
4212
4196
|
|
|
4213
|
-
var _excluded$m = ["id", "icon", "name", "label", "isChecked", "onChange", "onValueChange", "shadow", "labelPosition", "size", "
|
|
4197
|
+
var _excluded$m = ["id", "icon", "name", "label", "isChecked", "onChange", "onValueChange", "shadow", "labelPosition", "size", "error", "isSelected", "isHovered", "isDisabled", "isReadOnly", "isIndeterminate", "defaultIsSelected", "setIsSelected", "setIsHovered", "views", "infoText", "helperText"];
|
|
4214
4198
|
var CheckboxView = _ref => {
|
|
4215
4199
|
var {
|
|
4216
4200
|
id,
|
|
@@ -4222,7 +4206,6 @@ var CheckboxView = _ref => {
|
|
|
4222
4206
|
shadow = {},
|
|
4223
4207
|
labelPosition = 'right',
|
|
4224
4208
|
size = 'md',
|
|
4225
|
-
colorScheme = 'theme.primary',
|
|
4226
4209
|
error = false,
|
|
4227
4210
|
isSelected = false,
|
|
4228
4211
|
isHovered = false,
|
|
@@ -4232,7 +4215,7 @@ var CheckboxView = _ref => {
|
|
|
4232
4215
|
defaultIsSelected = false,
|
|
4233
4216
|
setIsSelected = () => {},
|
|
4234
4217
|
setIsHovered = () => {},
|
|
4235
|
-
|
|
4218
|
+
views = {
|
|
4236
4219
|
checkbox: {},
|
|
4237
4220
|
label: {}
|
|
4238
4221
|
},
|
|
@@ -4256,11 +4239,11 @@ var CheckboxView = _ref => {
|
|
|
4256
4239
|
width: 'fit-content',
|
|
4257
4240
|
color: error ? 'theme.error' : isDisabled ? 'theme.disabled' : 'color.blueGray.700',
|
|
4258
4241
|
cursor: isDisabled ? 'not-allowed' : isReadOnly ? 'default' : 'pointer'
|
|
4259
|
-
},
|
|
4242
|
+
}, views['label']),
|
|
4260
4243
|
checkbox: Object.assign({}, isDisabled ? {
|
|
4261
4244
|
backgroundColor: 'theme.disabled'
|
|
4262
4245
|
} : (isChecked || isSelected) && !isIndeterminate || isIndeterminate ? {
|
|
4263
|
-
backgroundColor:
|
|
4246
|
+
backgroundColor: 'theme.primary'
|
|
4264
4247
|
} : {
|
|
4265
4248
|
borderWidth: 2,
|
|
4266
4249
|
borderColor: error ? 'theme.error' : isHovered ? 'color.gray.500' : 'color.gray.300',
|
|
@@ -4269,7 +4252,7 @@ var CheckboxView = _ref => {
|
|
|
4269
4252
|
borderRadius: 3
|
|
4270
4253
|
}, isHovered ? {
|
|
4271
4254
|
filter: 'brightness(0.9)'
|
|
4272
|
-
} : {}, Sizes[size], shadow,
|
|
4255
|
+
} : {}, Sizes[size], shadow, views['checkbox'])
|
|
4273
4256
|
};
|
|
4274
4257
|
return /*#__PURE__*/React.createElement(Label, Object.assign({
|
|
4275
4258
|
htmlFor: id,
|
|
@@ -4285,19 +4268,19 @@ var CheckboxView = _ref => {
|
|
|
4285
4268
|
alignItems: "center"
|
|
4286
4269
|
}, labelPosition === 'left' && label && (/*#__PURE__*/React.createElement(Text, Object.assign({
|
|
4287
4270
|
size: size
|
|
4288
|
-
},
|
|
4289
|
-
|
|
4271
|
+
}, views == null ? void 0 : views.label), label)), /*#__PURE__*/React.createElement(Center, Object.assign({}, checkboxStyle.checkbox), isIndeterminate ? (/*#__PURE__*/React.createElement(MinusIcon, {
|
|
4272
|
+
widthHeight: IconSizes$3[size],
|
|
4290
4273
|
color: "white"
|
|
4291
4274
|
})) : (isChecked || isSelected) && (icon != null ? icon : /*#__PURE__*/React.createElement(TickIcon, {
|
|
4292
|
-
|
|
4275
|
+
widthHeight: IconSizes$3[size],
|
|
4293
4276
|
color: "white"
|
|
4294
4277
|
}))), labelPosition === 'right' && label && (/*#__PURE__*/React.createElement(Text, Object.assign({
|
|
4295
4278
|
size: size
|
|
4296
|
-
},
|
|
4279
|
+
}, views == null ? void 0 : views.label), label))), infoText && (/*#__PURE__*/React.createElement(Text, Object.assign({
|
|
4297
4280
|
marginLeft: labelPosition === 'left' ? 0 : 27,
|
|
4298
4281
|
color: "color.gray.400",
|
|
4299
4282
|
size: "sm"
|
|
4300
|
-
},
|
|
4283
|
+
}, views == null ? void 0 : views.infoText), infoText))), error && (/*#__PURE__*/React.createElement(Text, {
|
|
4301
4284
|
size: "xs",
|
|
4302
4285
|
marginVertical: 0,
|
|
4303
4286
|
marginHorizontal: 0,
|
|
@@ -5804,7 +5787,7 @@ var IconSizes$4 = {
|
|
|
5804
5787
|
|
|
5805
5788
|
var _excluded$n = ["size"],
|
|
5806
5789
|
_excluded2$4 = ["size"],
|
|
5807
|
-
_excluded3$3 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isHovered", "isFocused", "isAutoFocus", "isDisabled", "isReadOnly", "shadow", "newOptions", "size", "variant", "shape", "
|
|
5790
|
+
_excluded3$3 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isHovered", "isFocused", "isAutoFocus", "isDisabled", "isReadOnly", "shadow", "newOptions", "size", "variant", "shape", "onChange", "onBlur", "setHide", "setNewOptions", "setIsHovered", "setIsFocused", "setValue", "views", "themeMode"];
|
|
5808
5791
|
var CountryList = _ref => {
|
|
5809
5792
|
var props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
5810
5793
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
@@ -5825,7 +5808,7 @@ var DropDownItem = _ref3 => {
|
|
|
5825
5808
|
option,
|
|
5826
5809
|
size = 'md',
|
|
5827
5810
|
callback = () => {},
|
|
5828
|
-
|
|
5811
|
+
views = {
|
|
5829
5812
|
text: {}
|
|
5830
5813
|
}
|
|
5831
5814
|
} = _ref3;
|
|
@@ -5847,15 +5830,15 @@ var DropDownItem = _ref3 => {
|
|
|
5847
5830
|
onClick: handleOptionClick,
|
|
5848
5831
|
fontSize: Typography.fontSizes[size],
|
|
5849
5832
|
backgroundColor: isHovered ? 'trueGray.100' : 'transparent'
|
|
5850
|
-
},
|
|
5833
|
+
}, views['text']), option);
|
|
5851
5834
|
};
|
|
5852
5835
|
var DropDown$1 = _ref4 => {
|
|
5853
5836
|
var {
|
|
5854
5837
|
size,
|
|
5855
|
-
|
|
5838
|
+
views = {
|
|
5856
5839
|
dropDown: {}
|
|
5857
5840
|
},
|
|
5858
|
-
options,
|
|
5841
|
+
options = [],
|
|
5859
5842
|
callback = () => {}
|
|
5860
5843
|
} = _ref4;
|
|
5861
5844
|
var handleCallback = option => callback(option);
|
|
@@ -5874,12 +5857,12 @@ var DropDown$1 = _ref4 => {
|
|
|
5874
5857
|
flexDirection: "column",
|
|
5875
5858
|
backgroundColor: "white",
|
|
5876
5859
|
boxShadow: "rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px, rgba(0, 0, 0, 0.07) 0px 4px 4px, rgba(0, 0, 0, 0.07) 0px 8px 8px, rgba(0, 0, 0, 0.07) 0px 16px 16px"
|
|
5877
|
-
},
|
|
5860
|
+
}, views['dropDown']), options.map(option => (/*#__PURE__*/React.createElement(DropDownItem, Object.assign({
|
|
5878
5861
|
key: option.code,
|
|
5879
5862
|
size: size,
|
|
5880
5863
|
option: option.name,
|
|
5881
5864
|
callback: handleCallback
|
|
5882
|
-
},
|
|
5865
|
+
}, views['text'])))));
|
|
5883
5866
|
};
|
|
5884
5867
|
var CountryPickerView = _ref5 => {
|
|
5885
5868
|
var {
|
|
@@ -5901,7 +5884,6 @@ var CountryPickerView = _ref5 => {
|
|
|
5901
5884
|
size = 'md',
|
|
5902
5885
|
variant = 'default',
|
|
5903
5886
|
shape = 'default',
|
|
5904
|
-
colorScheme = 'theme.primary',
|
|
5905
5887
|
onChange,
|
|
5906
5888
|
onBlur = () => {},
|
|
5907
5889
|
setHide = () => {},
|
|
@@ -5909,7 +5891,7 @@ var CountryPickerView = _ref5 => {
|
|
|
5909
5891
|
setIsHovered = () => {},
|
|
5910
5892
|
setIsFocused = () => {},
|
|
5911
5893
|
setValue = () => {},
|
|
5912
|
-
|
|
5894
|
+
views = {
|
|
5913
5895
|
text: {},
|
|
5914
5896
|
icon: {},
|
|
5915
5897
|
label: {},
|
|
@@ -5964,36 +5946,35 @@ var CountryPickerView = _ref5 => {
|
|
|
5964
5946
|
fontSize: Typography.fontSizes[size],
|
|
5965
5947
|
backgroundColor: 'transparent',
|
|
5966
5948
|
color: isDisabled ? 'color.trueGray.600' : 'color.blueGray.700',
|
|
5967
|
-
cursor: isDisabled ? 'not-allowed' : 'auto'
|
|
5968
|
-
},
|
|
5949
|
+
cursor: isDisabled ? 'not-allowed' : isReadOnly ? 'auto' : 'pointer'
|
|
5950
|
+
}, views['field']);
|
|
5969
5951
|
return /*#__PURE__*/React.createElement(FieldContainer, {
|
|
5970
5952
|
helperText: helperText,
|
|
5971
5953
|
error: error,
|
|
5972
|
-
|
|
5954
|
+
views: views,
|
|
5973
5955
|
onClick: handleClick
|
|
5974
5956
|
}, /*#__PURE__*/React.createElement(FieldContent, {
|
|
5975
5957
|
label: label,
|
|
5976
5958
|
size: size,
|
|
5977
5959
|
error: error,
|
|
5978
5960
|
shape: shape,
|
|
5979
|
-
|
|
5961
|
+
views: views,
|
|
5980
5962
|
shadow: shadow,
|
|
5981
5963
|
variant: variant,
|
|
5982
5964
|
value: value,
|
|
5983
|
-
color:
|
|
5965
|
+
color: 'theme.primary',
|
|
5984
5966
|
isHovered: isHovered,
|
|
5985
5967
|
isDisabled: isDisabled,
|
|
5986
5968
|
isReadOnly: isReadOnly,
|
|
5987
5969
|
isFocused: isFocused,
|
|
5988
5970
|
isWithLabel: isWithLabel,
|
|
5989
|
-
colorScheme: colorScheme,
|
|
5990
5971
|
onMouseEnter: handleHover,
|
|
5991
5972
|
onMouseLeave: handleHover
|
|
5992
5973
|
}, /*#__PURE__*/React.createElement(FieldWrapper, null, isWithLabel && (/*#__PURE__*/React.createElement(FieldLabel, Object.assign({
|
|
5993
5974
|
htmlFor: id,
|
|
5994
|
-
color:
|
|
5975
|
+
color: 'theme.primary',
|
|
5995
5976
|
error: error
|
|
5996
|
-
},
|
|
5977
|
+
}, views), label)), /*#__PURE__*/React.createElement(CountrySelector, Object.assign({
|
|
5997
5978
|
id: id,
|
|
5998
5979
|
name: name,
|
|
5999
5980
|
placeholder: placeholder,
|
|
@@ -6007,17 +5988,17 @@ var CountryPickerView = _ref5 => {
|
|
|
6007
5988
|
onChange: handleChange
|
|
6008
5989
|
}))), /*#__PURE__*/React.createElement(FieldIcons, null, hide ? (/*#__PURE__*/React.createElement(ChevronIcon, {
|
|
6009
5990
|
orientation: "down",
|
|
6010
|
-
|
|
5991
|
+
widthHeight: IconSizes$4[size],
|
|
6011
5992
|
color: IconColor,
|
|
6012
|
-
style:
|
|
5993
|
+
style: views['icon']
|
|
6013
5994
|
})) : (/*#__PURE__*/React.createElement(ChevronIcon, {
|
|
6014
5995
|
orientation: "up",
|
|
6015
|
-
|
|
5996
|
+
widthHeight: IconSizes$4[size],
|
|
6016
5997
|
color: IconColor,
|
|
6017
|
-
style:
|
|
5998
|
+
style: views['icon']
|
|
6018
5999
|
})))), !hide && (/*#__PURE__*/React.createElement(DropDown$1, {
|
|
6019
6000
|
size: size,
|
|
6020
|
-
|
|
6001
|
+
views: views,
|
|
6021
6002
|
options: newOptions,
|
|
6022
6003
|
callback: handleCallback
|
|
6023
6004
|
})));
|
|
@@ -6047,7 +6028,7 @@ var useDatePickerState = () => {
|
|
|
6047
6028
|
};
|
|
6048
6029
|
};
|
|
6049
6030
|
|
|
6050
|
-
var _excluded$o = ["id", "icon", "name", "label", "date", "children", "helperText", "shadow", "size", "variant", "shape", "
|
|
6031
|
+
var _excluded$o = ["id", "icon", "name", "label", "date", "children", "helperText", "shadow", "size", "variant", "shape", "views", "error", "isHovered", "isFocused", "isDisabled", "isReadOnly", "setDate", "setIsFocused", "setIsHovered", "onChange", "onChangeText"];
|
|
6051
6032
|
var DatePickerContent = props => /*#__PURE__*/React.createElement(Input, Object.assign({
|
|
6052
6033
|
type: "date"
|
|
6053
6034
|
}, props));
|
|
@@ -6062,8 +6043,7 @@ var DatePickerView = _ref => {
|
|
|
6062
6043
|
size = 'md',
|
|
6063
6044
|
variant = 'default',
|
|
6064
6045
|
shape = 'default',
|
|
6065
|
-
|
|
6066
|
-
styles = {
|
|
6046
|
+
views = {
|
|
6067
6047
|
box: {},
|
|
6068
6048
|
label: {},
|
|
6069
6049
|
helperText: {},
|
|
@@ -6111,34 +6091,33 @@ var DatePickerView = _ref => {
|
|
|
6111
6091
|
backgroundColor: 'transparent',
|
|
6112
6092
|
color: isDisabled ? 'color.trueGray.600' : 'color.blueGray.700',
|
|
6113
6093
|
cursor: isDisabled ? 'not-allowed' : isReadOnly ? 'auto' : 'pointer'
|
|
6114
|
-
},
|
|
6094
|
+
}, views['field']);
|
|
6115
6095
|
return /*#__PURE__*/React.createElement(FieldContainer, {
|
|
6116
6096
|
helperText: helperText,
|
|
6117
6097
|
error: error,
|
|
6118
|
-
|
|
6098
|
+
views: views
|
|
6119
6099
|
}, /*#__PURE__*/React.createElement(FieldContent, {
|
|
6120
6100
|
label: label,
|
|
6121
6101
|
size: size,
|
|
6122
6102
|
error: error,
|
|
6123
6103
|
shape: shape,
|
|
6124
|
-
|
|
6104
|
+
views: views,
|
|
6125
6105
|
shadow: shadow,
|
|
6106
|
+
color: 'theme.primary',
|
|
6126
6107
|
variant: variant,
|
|
6127
6108
|
value: date,
|
|
6128
|
-
color: colorScheme,
|
|
6129
6109
|
isHovered: isHovered,
|
|
6130
6110
|
isDisabled: isDisabled,
|
|
6131
6111
|
isReadOnly: isReadOnly,
|
|
6132
6112
|
isFocused: isFocused,
|
|
6133
6113
|
isWithLabel: isWithLabel,
|
|
6134
|
-
colorScheme: colorScheme,
|
|
6135
6114
|
onMouseEnter: handleHover,
|
|
6136
6115
|
onMouseLeave: handleHover
|
|
6137
6116
|
}, /*#__PURE__*/React.createElement(FieldWrapper, null, isWithLabel && (/*#__PURE__*/React.createElement(FieldLabel, Object.assign({
|
|
6138
6117
|
htmlFor: id,
|
|
6139
|
-
color:
|
|
6118
|
+
color: 'theme.primary',
|
|
6140
6119
|
error: error
|
|
6141
|
-
},
|
|
6120
|
+
}, views), label)), /*#__PURE__*/React.createElement(DatePickerContent, Object.assign({
|
|
6142
6121
|
id: id,
|
|
6143
6122
|
name: name,
|
|
6144
6123
|
onFocus: handleFocus,
|
|
@@ -6174,10 +6153,10 @@ var _excluded$p = ["visibleIcon", "hiddenIcon"],
|
|
|
6174
6153
|
var PasswordComponent = _ref => {
|
|
6175
6154
|
var {
|
|
6176
6155
|
visibleIcon = /*#__PURE__*/React.createElement(OpenEyeIcon, {
|
|
6177
|
-
|
|
6156
|
+
widthHeight: 14
|
|
6178
6157
|
}),
|
|
6179
6158
|
hiddenIcon = /*#__PURE__*/React.createElement(CloseEyeIcon, {
|
|
6180
|
-
|
|
6159
|
+
widthHeight: 14
|
|
6181
6160
|
})
|
|
6182
6161
|
} = _ref,
|
|
6183
6162
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
@@ -6234,7 +6213,7 @@ var useComboBoxState = (items, placeholder, searchPlaceholder) => {
|
|
|
6234
6213
|
};
|
|
6235
6214
|
};
|
|
6236
6215
|
|
|
6237
|
-
var _excluded$q = ["placeholder", "items", "showTick", "onSelect", "searchEnabled", "left", "right", "label", "filteredItems", "setSelectedItem", "selectedItem", "highlightedIndex", "setHighlightedIndex", "searchQuery", "setSearchQuery", "setFilteredItems", "
|
|
6216
|
+
var _excluded$q = ["placeholder", "items", "showTick", "onSelect", "searchEnabled", "left", "right", "label", "filteredItems", "setSelectedItem", "selectedItem", "highlightedIndex", "setHighlightedIndex", "searchQuery", "setSearchQuery", "setFilteredItems", "views", "isDropdownVisible", "setIsDropdownVisible"];
|
|
6238
6217
|
// Defines the functional component 'ComboBoxView' with destructured props.
|
|
6239
6218
|
var ComboBoxView = _ref => {
|
|
6240
6219
|
var {
|
|
@@ -6254,7 +6233,7 @@ var ComboBoxView = _ref => {
|
|
|
6254
6233
|
searchQuery,
|
|
6255
6234
|
setSearchQuery,
|
|
6256
6235
|
setFilteredItems,
|
|
6257
|
-
|
|
6236
|
+
views,
|
|
6258
6237
|
isDropdownVisible,
|
|
6259
6238
|
setIsDropdownVisible
|
|
6260
6239
|
// Collects all further props not destructured explicitly.
|
|
@@ -6297,7 +6276,7 @@ var ComboBoxView = _ref => {
|
|
|
6297
6276
|
alignItems: "center",
|
|
6298
6277
|
width: "100%"
|
|
6299
6278
|
}, props), label && (/*#__PURE__*/React.createElement(Text, {
|
|
6300
|
-
|
|
6279
|
+
views: views == null ? void 0 : views.label,
|
|
6301
6280
|
htmlFor: props.id
|
|
6302
6281
|
}, label)), /*#__PURE__*/React.createElement(View, {
|
|
6303
6282
|
position: "relative"
|
|
@@ -6312,16 +6291,16 @@ var ComboBoxView = _ref => {
|
|
|
6312
6291
|
justifyContent: "space-between",
|
|
6313
6292
|
minWidth: 300,
|
|
6314
6293
|
flexWrap: "nowrap"
|
|
6315
|
-
},
|
|
6294
|
+
}, views == null ? void 0 : views.container), /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
6316
6295
|
gap: 15,
|
|
6317
6296
|
alignItems: "center",
|
|
6318
6297
|
position: "relative",
|
|
6319
6298
|
width: "100%",
|
|
6320
6299
|
onClick: () => setIsDropdownVisible(!isDropdownVisible)
|
|
6321
|
-
},
|
|
6300
|
+
}, views == null ? void 0 : views.labelContainer), left, /*#__PURE__*/React.createElement(Text, Object.assign({
|
|
6322
6301
|
weight: "medium",
|
|
6323
6302
|
flexGrow: 1
|
|
6324
|
-
},
|
|
6303
|
+
}, views == null ? void 0 : views.label), selectedItem.label)), right, isDropdownVisible && (/*#__PURE__*/React.createElement(View, Object.assign({
|
|
6325
6304
|
id: "combobox-dropdown",
|
|
6326
6305
|
position: "absolute",
|
|
6327
6306
|
backgroundColor: "white",
|
|
@@ -6334,7 +6313,7 @@ var ComboBoxView = _ref => {
|
|
|
6334
6313
|
transform: "translateY(100%)",
|
|
6335
6314
|
marginTop: "4px",
|
|
6336
6315
|
borderRadius: "4px"
|
|
6337
|
-
},
|
|
6316
|
+
}, views == null ? void 0 : views.dropdown), searchEnabled && (/*#__PURE__*/React.createElement(TextFieldView, {
|
|
6338
6317
|
id: props.id,
|
|
6339
6318
|
name: props.name,
|
|
6340
6319
|
width: "100%",
|
|
@@ -6344,14 +6323,14 @@ var ComboBoxView = _ref => {
|
|
|
6344
6323
|
hint: placeholder,
|
|
6345
6324
|
isClearable: false,
|
|
6346
6325
|
left: /*#__PURE__*/React.createElement(SearchIcon, {
|
|
6347
|
-
|
|
6326
|
+
widthHeight: 12
|
|
6348
6327
|
}),
|
|
6349
|
-
|
|
6328
|
+
views: {
|
|
6350
6329
|
box: Object.assign({
|
|
6351
6330
|
width: '100%',
|
|
6352
6331
|
padding: '6px 12px',
|
|
6353
6332
|
borderBottom: filteredItems.length > 0 ? '1px solid #ccc' : '1px solid transparent'
|
|
6354
|
-
},
|
|
6333
|
+
}, views == null ? void 0 : views.text)
|
|
6355
6334
|
}
|
|
6356
6335
|
})), filteredItems.length > 0 && (/*#__PURE__*/React.createElement(View, {
|
|
6357
6336
|
margin: 0,
|
|
@@ -6365,8 +6344,8 @@ var ComboBoxView = _ref => {
|
|
|
6365
6344
|
backgroundColor: index === highlightedIndex ? 'color.gray.100' : 'transparent',
|
|
6366
6345
|
onMouseEnter: () => setHighlightedIndex(index),
|
|
6367
6346
|
onClick: () => handleSelect(item)
|
|
6368
|
-
},
|
|
6369
|
-
|
|
6347
|
+
}, views == null ? void 0 : views.item), /*#__PURE__*/React.createElement(Text, null, item.label), /*#__PURE__*/React.createElement(React.Fragment, null, item.icon && item.icon, item.value === selectedItem.value && showTick && !item.icon && /*#__PURE__*/React.createElement(TickIcon, {
|
|
6348
|
+
widthHeight: 20
|
|
6370
6349
|
}))))))))))));
|
|
6371
6350
|
};
|
|
6372
6351
|
|
|
@@ -6630,10 +6609,10 @@ var _excluded$w = ["visibleIcon", "hiddenIcon"],
|
|
|
6630
6609
|
var PasswordComponent$1 = _ref => {
|
|
6631
6610
|
var {
|
|
6632
6611
|
visibleIcon = /*#__PURE__*/React.createElement(OpenEyeIcon, {
|
|
6633
|
-
|
|
6612
|
+
widthHeight: 14
|
|
6634
6613
|
}),
|
|
6635
6614
|
hiddenIcon = /*#__PURE__*/React.createElement(CloseEyeIcon, {
|
|
6636
|
-
|
|
6615
|
+
widthHeight: 14
|
|
6637
6616
|
})
|
|
6638
6617
|
} = _ref,
|
|
6639
6618
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
|
|
@@ -6692,12 +6671,12 @@ var useMessageStore = /*#__PURE__*/create(set => ({
|
|
|
6692
6671
|
subtitle: '',
|
|
6693
6672
|
variant: 'info',
|
|
6694
6673
|
isClosable: false,
|
|
6695
|
-
|
|
6674
|
+
views: {},
|
|
6696
6675
|
action: () => {},
|
|
6697
6676
|
actionText: '',
|
|
6698
6677
|
showIcon: false,
|
|
6699
6678
|
timeout: 3000,
|
|
6700
|
-
show: function show(variant, title, subtitle, isClosable,
|
|
6679
|
+
show: function show(variant, title, subtitle, isClosable, views, action, actionText, showIcon, timeout) {
|
|
6701
6680
|
if (title === void 0) {
|
|
6702
6681
|
title = '';
|
|
6703
6682
|
}
|
|
@@ -6710,7 +6689,7 @@ var useMessageStore = /*#__PURE__*/create(set => ({
|
|
|
6710
6689
|
title,
|
|
6711
6690
|
subtitle,
|
|
6712
6691
|
isClosable,
|
|
6713
|
-
|
|
6692
|
+
views,
|
|
6714
6693
|
action,
|
|
6715
6694
|
actionText,
|
|
6716
6695
|
showIcon,
|
|
@@ -6722,7 +6701,7 @@ var useMessageStore = /*#__PURE__*/create(set => ({
|
|
|
6722
6701
|
})
|
|
6723
6702
|
}));
|
|
6724
6703
|
var showMessage = (variant, title, subtitle, props) => {
|
|
6725
|
-
useMessageStore.getState().show(variant, title, subtitle, props == null ? void 0 : props.isClosable, props == null ? void 0 : props.
|
|
6704
|
+
useMessageStore.getState().show(variant, title, subtitle, props == null ? void 0 : props.isClosable, props == null ? void 0 : props.views, props == null ? void 0 : props.action, props == null ? void 0 : props.actionText, props == null ? void 0 : props.showIcon, props == null ? void 0 : props.timeout);
|
|
6726
6705
|
};
|
|
6727
6706
|
var hideMessage = () => {
|
|
6728
6707
|
useMessageStore.getState().hide();
|
|
@@ -6800,7 +6779,7 @@ var Themes$1 = {
|
|
|
6800
6779
|
};
|
|
6801
6780
|
|
|
6802
6781
|
var MessageView = _ref => {
|
|
6803
|
-
var
|
|
6782
|
+
var _views$closingIcon, _views$closingIcon2;
|
|
6804
6783
|
var {
|
|
6805
6784
|
variant,
|
|
6806
6785
|
hide,
|
|
@@ -6812,7 +6791,7 @@ var MessageView = _ref => {
|
|
|
6812
6791
|
showIcon = false,
|
|
6813
6792
|
isClosable = false,
|
|
6814
6793
|
timeout = 3000,
|
|
6815
|
-
|
|
6794
|
+
views
|
|
6816
6795
|
} = _ref;
|
|
6817
6796
|
useEffect(() => {
|
|
6818
6797
|
if (timeout && !isClosable) {
|
|
@@ -6842,21 +6821,21 @@ var MessageView = _ref => {
|
|
|
6842
6821
|
}[variant];
|
|
6843
6822
|
var iconComponent = {
|
|
6844
6823
|
info: /*#__PURE__*/React.createElement(InfoIcon, Object.assign({
|
|
6845
|
-
|
|
6824
|
+
widthHeight: 24,
|
|
6846
6825
|
color: iconColor
|
|
6847
|
-
},
|
|
6848
|
-
success: /*#__PURE__*/React.createElement(SuccessIcon, Object.assign({
|
|
6849
|
-
|
|
6826
|
+
}, views == null ? void 0 : views.icon)),
|
|
6827
|
+
success: (/*#__PURE__*/React.createElement(SuccessIcon, Object.assign({
|
|
6828
|
+
widthHeight: 24,
|
|
6850
6829
|
color: iconColor
|
|
6851
|
-
},
|
|
6852
|
-
warning: /*#__PURE__*/React.createElement(WarningIcon, Object.assign({
|
|
6853
|
-
|
|
6830
|
+
}, views == null ? void 0 : views.icon))),
|
|
6831
|
+
warning: (/*#__PURE__*/React.createElement(WarningIcon, Object.assign({
|
|
6832
|
+
widthHeight: 24,
|
|
6854
6833
|
color: iconColor
|
|
6855
|
-
},
|
|
6834
|
+
}, views == null ? void 0 : views.icon))),
|
|
6856
6835
|
error: /*#__PURE__*/React.createElement(ErrorIcon, Object.assign({
|
|
6857
|
-
|
|
6836
|
+
widthHeight: 24,
|
|
6858
6837
|
color: iconColor
|
|
6859
|
-
},
|
|
6838
|
+
}, views == null ? void 0 : views.icon))
|
|
6860
6839
|
}[variant];
|
|
6861
6840
|
var isShowIcon = showIcon && iconComponent;
|
|
6862
6841
|
return /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
@@ -6873,20 +6852,20 @@ var MessageView = _ref => {
|
|
|
6873
6852
|
onClick: isClosable ? () => {} : () => {
|
|
6874
6853
|
hide();
|
|
6875
6854
|
}
|
|
6876
|
-
}, containerStyle,
|
|
6855
|
+
}, containerStyle, views == null ? void 0 : views.container), isShowIcon && iconComponent, /*#__PURE__*/React.createElement(Vertical, {
|
|
6877
6856
|
gap: 8,
|
|
6878
6857
|
width: "100%"
|
|
6879
6858
|
}, /*#__PURE__*/React.createElement(Text, Object.assign({
|
|
6880
6859
|
size: "md",
|
|
6881
6860
|
weight: "semiBold"
|
|
6882
|
-
},
|
|
6861
|
+
}, views == null ? void 0 : views.title), title), subtitle && (/*#__PURE__*/React.createElement(Text, Object.assign({
|
|
6883
6862
|
size: "sm"
|
|
6884
|
-
},
|
|
6863
|
+
}, views == null ? void 0 : views.subtitle), subtitle))), isWithAction && (/*#__PURE__*/React.createElement(Text, Object.assign({
|
|
6885
6864
|
marginRight: 10,
|
|
6886
6865
|
onClick: action,
|
|
6887
6866
|
padding: "6px 10px",
|
|
6888
6867
|
whiteSpace: "nowrap"
|
|
6889
|
-
}, containerStyle,
|
|
6868
|
+
}, containerStyle, views == null ? void 0 : views.actionText), actionText)), isClosable && (/*#__PURE__*/React.createElement(View, Object.assign({
|
|
6890
6869
|
position: "absolute",
|
|
6891
6870
|
zIndex: 10000,
|
|
6892
6871
|
right: 8,
|
|
@@ -6894,10 +6873,10 @@ var MessageView = _ref => {
|
|
|
6894
6873
|
onClick: () => {
|
|
6895
6874
|
hide();
|
|
6896
6875
|
}
|
|
6897
|
-
},
|
|
6898
|
-
|
|
6876
|
+
}, views == null || (_views$closingIcon = views.closingIcon) == null ? void 0 : _views$closingIcon.container), /*#__PURE__*/React.createElement(CloseIcon, Object.assign({
|
|
6877
|
+
widthHeight: 18,
|
|
6899
6878
|
color: iconColor
|
|
6900
|
-
},
|
|
6879
|
+
}, views == null || (_views$closingIcon2 = views.closingIcon) == null ? void 0 : _views$closingIcon2.icon)))));
|
|
6901
6880
|
};
|
|
6902
6881
|
|
|
6903
6882
|
var MessageLayout = _ref => {
|
|
@@ -6912,7 +6891,7 @@ var MessageLayout = _ref => {
|
|
|
6912
6891
|
variant,
|
|
6913
6892
|
subtitle,
|
|
6914
6893
|
isClosable,
|
|
6915
|
-
|
|
6894
|
+
views,
|
|
6916
6895
|
action,
|
|
6917
6896
|
actionText,
|
|
6918
6897
|
showIcon,
|
|
@@ -6944,7 +6923,7 @@ var MessageLayout = _ref => {
|
|
|
6944
6923
|
title: title,
|
|
6945
6924
|
theme: theme,
|
|
6946
6925
|
isClosable: isClosable,
|
|
6947
|
-
|
|
6926
|
+
views: views,
|
|
6948
6927
|
action: action,
|
|
6949
6928
|
actionText: actionText,
|
|
6950
6929
|
showIcon: showIcon,
|
|
@@ -7047,16 +7026,22 @@ var useUpload = _ref => {
|
|
|
7047
7026
|
handleClick
|
|
7048
7027
|
};
|
|
7049
7028
|
};
|
|
7050
|
-
|
|
7029
|
+
|
|
7030
|
+
var UploadView = _ref => {
|
|
7051
7031
|
var {
|
|
7052
|
-
accept
|
|
7032
|
+
accept,
|
|
7053
7033
|
isLoading = false,
|
|
7054
7034
|
progress = 0,
|
|
7055
7035
|
icon,
|
|
7056
7036
|
text,
|
|
7057
|
-
|
|
7058
|
-
|
|
7059
|
-
|
|
7037
|
+
previewUrl,
|
|
7038
|
+
thumbnailUrl,
|
|
7039
|
+
errorMessage,
|
|
7040
|
+
fileInputRef,
|
|
7041
|
+
videoRef,
|
|
7042
|
+
selectedFile,
|
|
7043
|
+
handleFileChange,
|
|
7044
|
+
handleClick,
|
|
7060
7045
|
containerProps,
|
|
7061
7046
|
errorMessageProps,
|
|
7062
7047
|
progressProps,
|
|
@@ -7064,120 +7049,108 @@ var Uploader = _ref2 => {
|
|
|
7064
7049
|
imageProps,
|
|
7065
7050
|
iconProps,
|
|
7066
7051
|
textProps,
|
|
7067
|
-
|
|
7052
|
+
fileType,
|
|
7053
|
+
previewUrl: externalPreviewUrl,
|
|
7054
|
+
renderError = _ref2 => {
|
|
7068
7055
|
var {
|
|
7069
7056
|
errorMessage,
|
|
7070
7057
|
errorMessageProps
|
|
7071
|
-
} =
|
|
7058
|
+
} = _ref2;
|
|
7072
7059
|
return /*#__PURE__*/React.createElement(Text$1, Object.assign({
|
|
7073
7060
|
color: "red",
|
|
7074
7061
|
fontSize: 12,
|
|
7075
7062
|
marginTop: 8
|
|
7076
|
-
}, errorMessageProps), errorMessage);
|
|
7063
|
+
}, errorMessageProps, views == null ? void 0 : views.text), errorMessage);
|
|
7077
7064
|
},
|
|
7078
|
-
renderText =
|
|
7065
|
+
renderText = _ref3 => {
|
|
7079
7066
|
var {
|
|
7080
7067
|
text,
|
|
7081
7068
|
textProps
|
|
7082
|
-
} =
|
|
7069
|
+
} = _ref3;
|
|
7083
7070
|
return /*#__PURE__*/React.createElement(Text$1, Object.assign({
|
|
7084
7071
|
marginTop: 8
|
|
7085
|
-
}, textProps), text);
|
|
7072
|
+
}, textProps, views == null ? void 0 : views.text), text);
|
|
7086
7073
|
},
|
|
7087
|
-
renderFile =
|
|
7074
|
+
renderFile = _ref4 => {
|
|
7088
7075
|
var {
|
|
7089
7076
|
selectedFile,
|
|
7090
7077
|
textProps
|
|
7091
|
-
} =
|
|
7092
|
-
return /*#__PURE__*/React.createElement(Center, {
|
|
7078
|
+
} = _ref4;
|
|
7079
|
+
return selectedFile ? (/*#__PURE__*/React.createElement(Center, Object.assign({
|
|
7093
7080
|
marginTop: 8,
|
|
7094
7081
|
gap: 10,
|
|
7095
7082
|
flexDirection: "column"
|
|
7096
|
-
}, /*#__PURE__*/React.createElement(Text$1, Object.assign({
|
|
7083
|
+
}, views == null ? void 0 : views.container), /*#__PURE__*/React.createElement(Text$1, Object.assign({
|
|
7097
7084
|
maxLines: 2
|
|
7098
|
-
}, textProps), selectedFile.name), /*#__PURE__*/React.createElement(Text$1, Object.assign({}, textProps), "(", Math.round(selectedFile.size / 1024), " KB)"));
|
|
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;
|
|
7099
7086
|
},
|
|
7100
|
-
renderVideo =
|
|
7087
|
+
renderVideo = _ref5 => {
|
|
7101
7088
|
var {
|
|
7102
7089
|
selectedFile,
|
|
7103
7090
|
thumbnailUrl,
|
|
7104
7091
|
videoRef,
|
|
7105
7092
|
videoProps,
|
|
7106
7093
|
imageProps
|
|
7107
|
-
} =
|
|
7108
|
-
|
|
7109
|
-
return /*#__PURE__*/React.createElement(View$1, {
|
|
7094
|
+
} = _ref5;
|
|
7095
|
+
return /*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
7110
7096
|
width: "100%",
|
|
7111
7097
|
height: "100%",
|
|
7112
7098
|
position: "relative"
|
|
7113
|
-
}, /*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
7099
|
+
}, views == null ? void 0 : views.view), /*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
7114
7100
|
as: "video",
|
|
7115
|
-
width:
|
|
7116
|
-
height:
|
|
7117
|
-
src: selectedFile
|
|
7101
|
+
width: "100%",
|
|
7102
|
+
height: "100%",
|
|
7103
|
+
src: selectedFile ? URL.createObjectURL(selectedFile) : undefined,
|
|
7118
7104
|
style: {
|
|
7119
7105
|
objectFit: 'cover'
|
|
7120
7106
|
},
|
|
7121
7107
|
ref: videoRef
|
|
7122
|
-
}, videoProps)), /*#__PURE__*/React.createElement(Image, Object.assign({
|
|
7108
|
+
}, videoProps, views == null ? void 0 : views.view)), thumbnailUrl && (/*#__PURE__*/React.createElement(Image, Object.assign({
|
|
7123
7109
|
src: thumbnailUrl,
|
|
7124
7110
|
alt: "Video Thumbnail",
|
|
7125
7111
|
width: "100%",
|
|
7126
7112
|
height: "100%",
|
|
7127
7113
|
objectFit: "cover"
|
|
7128
|
-
}, imageProps)));
|
|
7114
|
+
}, imageProps, views == null ? void 0 : views.image))));
|
|
7129
7115
|
},
|
|
7130
|
-
renderImage =
|
|
7116
|
+
renderImage = _ref6 => {
|
|
7131
7117
|
var {
|
|
7132
7118
|
previewUrl,
|
|
7133
7119
|
imageProps
|
|
7134
|
-
} =
|
|
7120
|
+
} = _ref6;
|
|
7135
7121
|
return /*#__PURE__*/React.createElement(Image, Object.assign({
|
|
7136
7122
|
src: previewUrl,
|
|
7137
7123
|
alt: "Preview",
|
|
7138
7124
|
width: "100%",
|
|
7139
7125
|
height: "100%",
|
|
7140
7126
|
objectFit: "cover"
|
|
7141
|
-
}, imageProps));
|
|
7127
|
+
}, imageProps, views == null ? void 0 : views.image));
|
|
7142
7128
|
},
|
|
7143
|
-
renderProgress =
|
|
7129
|
+
renderProgress = _ref7 => {
|
|
7144
7130
|
var {
|
|
7145
7131
|
progress,
|
|
7146
7132
|
progressProps
|
|
7147
|
-
} =
|
|
7133
|
+
} = _ref7;
|
|
7148
7134
|
return /*#__PURE__*/React.createElement(Horizontal$1, Object.assign({
|
|
7149
7135
|
gap: 8,
|
|
7150
7136
|
alignItems: "center"
|
|
7151
|
-
}, progressProps), /*#__PURE__*/React.createElement(View$1, {
|
|
7137
|
+
}, progressProps, views == null ? void 0 : views.horizontal), /*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
7152
7138
|
height: 4,
|
|
7153
7139
|
backgroundColor: "rgba(0,0,0,0.1)",
|
|
7154
7140
|
width: "100%",
|
|
7155
7141
|
borderRadius: 2
|
|
7156
|
-
}, /*#__PURE__*/React.createElement(View$1, {
|
|
7142
|
+
}, views == null ? void 0 : views.view), /*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
7157
7143
|
height: 4,
|
|
7158
7144
|
width: progress + "%",
|
|
7159
|
-
borderRadius: 2
|
|
7160
|
-
|
|
7145
|
+
borderRadius: 2,
|
|
7146
|
+
backgroundColor: "#000"
|
|
7147
|
+
}, views == null ? void 0 : views.view))), /*#__PURE__*/React.createElement(Text$1, Object.assign({
|
|
7161
7148
|
fontSize: 12
|
|
7162
|
-
}, progress, "%"));
|
|
7163
|
-
}
|
|
7164
|
-
|
|
7165
|
-
|
|
7166
|
-
|
|
7167
|
-
thumbnailUrl,
|
|
7168
|
-
errorMessage,
|
|
7169
|
-
videoRef,
|
|
7170
|
-
fileInputRef,
|
|
7171
|
-
selectedFile,
|
|
7172
|
-
handleFileChange,
|
|
7173
|
-
handleClick
|
|
7174
|
-
} = useUpload({
|
|
7175
|
-
accept,
|
|
7176
|
-
maxSize,
|
|
7177
|
-
onFileSelect,
|
|
7178
|
-
validateFile
|
|
7179
|
-
});
|
|
7180
|
-
var fileType = previewUrl && accept.includes('video') ? 'video' : previewUrl && accept.includes('image') ? 'image' : 'file';
|
|
7149
|
+
}, views == null ? void 0 : views.text), progress, "%"));
|
|
7150
|
+
},
|
|
7151
|
+
views = {}
|
|
7152
|
+
} = _ref;
|
|
7153
|
+
var finalPreviewUrl = externalPreviewUrl || previewUrl;
|
|
7181
7154
|
return /*#__PURE__*/React.createElement(Center, Object.assign({
|
|
7182
7155
|
onClick: handleClick,
|
|
7183
7156
|
cursor: "pointer",
|
|
@@ -7187,29 +7160,30 @@ var Uploader = _ref2 => {
|
|
|
7187
7160
|
flexDirection: "column",
|
|
7188
7161
|
overflow: "hidden",
|
|
7189
7162
|
position: "relative"
|
|
7190
|
-
}, containerProps), progress
|
|
7191
|
-
previewUrl,
|
|
7163
|
+
}, containerProps, views == null ? void 0 : views.container), progress === 100 && fileType === 'image' && finalPreviewUrl && renderImage({
|
|
7164
|
+
previewUrl: finalPreviewUrl,
|
|
7192
7165
|
imageProps
|
|
7193
|
-
}), progress
|
|
7166
|
+
}), progress === 100 && fileType === 'video' && thumbnailUrl && renderVideo({
|
|
7167
|
+
selectedFile,
|
|
7194
7168
|
thumbnailUrl,
|
|
7195
7169
|
videoRef,
|
|
7196
7170
|
videoProps,
|
|
7197
|
-
|
|
7198
|
-
}), progress
|
|
7171
|
+
imageProps
|
|
7172
|
+
}), progress === 100 && fileType === 'file' && selectedFile && renderFile({
|
|
7199
7173
|
selectedFile,
|
|
7200
7174
|
textProps
|
|
7201
7175
|
}), progress < 100 && (icon || /*#__PURE__*/React.createElement(UploadIcon, Object.assign({
|
|
7202
|
-
|
|
7176
|
+
widthHeight: 32
|
|
7203
7177
|
}, iconProps))), !selectedFile && text && renderText({
|
|
7204
7178
|
text,
|
|
7205
7179
|
textProps
|
|
7206
7180
|
}), isLoading && renderProgress({
|
|
7207
7181
|
progress,
|
|
7208
7182
|
progressProps
|
|
7209
|
-
}), renderError({
|
|
7183
|
+
}), errorMessage && renderError({
|
|
7210
7184
|
errorMessage,
|
|
7211
7185
|
errorMessageProps
|
|
7212
|
-
}), /*#__PURE__*/React.createElement(View$1, {
|
|
7186
|
+
}), /*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
7213
7187
|
as: "input",
|
|
7214
7188
|
type: "file",
|
|
7215
7189
|
ref: fileInputRef,
|
|
@@ -7218,7 +7192,55 @@ var Uploader = _ref2 => {
|
|
|
7218
7192
|
style: {
|
|
7219
7193
|
display: 'none'
|
|
7220
7194
|
}
|
|
7221
|
-
}));
|
|
7195
|
+
}, views == null ? void 0 : views.view)));
|
|
7196
|
+
};
|
|
7197
|
+
|
|
7198
|
+
var _excluded$y = ["accept", "icon", "text", "maxSize", "onFileSelect", "validateFile", "isLoading", "progress"];
|
|
7199
|
+
var Uploader = _ref => {
|
|
7200
|
+
var {
|
|
7201
|
+
accept = '*/*',
|
|
7202
|
+
icon,
|
|
7203
|
+
text,
|
|
7204
|
+
maxSize,
|
|
7205
|
+
onFileSelect,
|
|
7206
|
+
validateFile,
|
|
7207
|
+
isLoading = false,
|
|
7208
|
+
progress = 0
|
|
7209
|
+
} = _ref,
|
|
7210
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$y);
|
|
7211
|
+
var {
|
|
7212
|
+
previewUrl,
|
|
7213
|
+
thumbnailUrl,
|
|
7214
|
+
errorMessage,
|
|
7215
|
+
videoRef,
|
|
7216
|
+
fileInputRef,
|
|
7217
|
+
selectedFile,
|
|
7218
|
+
handleFileChange,
|
|
7219
|
+
handleClick
|
|
7220
|
+
} = useUpload({
|
|
7221
|
+
accept,
|
|
7222
|
+
maxSize,
|
|
7223
|
+
onFileSelect,
|
|
7224
|
+
validateFile
|
|
7225
|
+
});
|
|
7226
|
+
return /*#__PURE__*/React.createElement(UploadView, Object.assign({
|
|
7227
|
+
handleClick: handleClick,
|
|
7228
|
+
accept: accept,
|
|
7229
|
+
isLoading: isLoading,
|
|
7230
|
+
progress: progress,
|
|
7231
|
+
icon: icon,
|
|
7232
|
+
text: text,
|
|
7233
|
+
maxSize: maxSize,
|
|
7234
|
+
onFileSelect: onFileSelect,
|
|
7235
|
+
validateFile: validateFile,
|
|
7236
|
+
errorMessage: errorMessage,
|
|
7237
|
+
handleFileChange: handleFileChange,
|
|
7238
|
+
selectedFile: selectedFile,
|
|
7239
|
+
videoRef: videoRef,
|
|
7240
|
+
fileInputRef: fileInputRef,
|
|
7241
|
+
previewUrl: previewUrl,
|
|
7242
|
+
thumbnailUrl: thumbnailUrl
|
|
7243
|
+
}, props));
|
|
7222
7244
|
};
|
|
7223
7245
|
|
|
7224
7246
|
var useModalStore = /*#__PURE__*/create(set => ({
|
|
@@ -7322,11 +7344,11 @@ var HeaderIconSizes = {
|
|
|
7322
7344
|
xl: 28
|
|
7323
7345
|
};
|
|
7324
7346
|
|
|
7325
|
-
var _excluded$
|
|
7326
|
-
_excluded2$7 = ["children", "shadow", "isFullScreen", "shape"],
|
|
7327
|
-
_excluded3$4 = ["children", "buttonColor", "iconSize", "buttonPosition"],
|
|
7328
|
-
_excluded4$3 = ["children"],
|
|
7329
|
-
_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"];
|
|
7330
7352
|
var ModalOverlay = _ref => {
|
|
7331
7353
|
var {
|
|
7332
7354
|
children,
|
|
@@ -7334,13 +7356,14 @@ var ModalOverlay = _ref => {
|
|
|
7334
7356
|
isOpen = false,
|
|
7335
7357
|
isClosePrevented = false,
|
|
7336
7358
|
onClose = () => {},
|
|
7337
|
-
position = 'center'
|
|
7359
|
+
position = 'center',
|
|
7360
|
+
views
|
|
7338
7361
|
} = _ref,
|
|
7339
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7362
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
|
|
7340
7363
|
var handleClick = () => {
|
|
7341
7364
|
if (!isClosePrevented) onClose();
|
|
7342
7365
|
};
|
|
7343
|
-
return /*#__PURE__*/React.createElement(Center, {
|
|
7366
|
+
return /*#__PURE__*/React.createElement(Center$1, Object.assign({
|
|
7344
7367
|
position: "fixed",
|
|
7345
7368
|
top: 0,
|
|
7346
7369
|
left: 0,
|
|
@@ -7349,7 +7372,7 @@ var ModalOverlay = _ref => {
|
|
|
7349
7372
|
zIndex: 1000,
|
|
7350
7373
|
onClick: handleClick,
|
|
7351
7374
|
visibility: isOpen ? 'visible' : 'hidden'
|
|
7352
|
-
}, /*#__PURE__*/React.createElement(View, Object.assign({
|
|
7375
|
+
}, views == null ? void 0 : views.container), /*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
7353
7376
|
position: "absolute",
|
|
7354
7377
|
top: 0,
|
|
7355
7378
|
left: 0,
|
|
@@ -7360,14 +7383,15 @@ var ModalOverlay = _ref => {
|
|
|
7360
7383
|
backgroundColor: "color.blackAlpha.500",
|
|
7361
7384
|
backdropFilter: blur ? "blur(" + blur + "px)" : undefined,
|
|
7362
7385
|
onClick: handleClick
|
|
7363
|
-
}, OverlayAlignments[position], props), children));
|
|
7386
|
+
}, OverlayAlignments[position], props, views == null ? void 0 : views.view), children));
|
|
7364
7387
|
};
|
|
7365
7388
|
var ModalContainer = _ref2 => {
|
|
7366
7389
|
var {
|
|
7367
7390
|
children,
|
|
7368
7391
|
shadow,
|
|
7369
7392
|
isFullScreen = false,
|
|
7370
|
-
shape = 'rounded'
|
|
7393
|
+
shape = 'rounded',
|
|
7394
|
+
views
|
|
7371
7395
|
} = _ref2,
|
|
7372
7396
|
props = _objectWithoutPropertiesLoose(_ref2, _excluded2$7);
|
|
7373
7397
|
var defaultShadow = typeof document !== undefined ? {
|
|
@@ -7385,28 +7409,28 @@ var ModalContainer = _ref2 => {
|
|
|
7385
7409
|
var handleClick = event => {
|
|
7386
7410
|
if (event && event.stopPropagation) event.stopPropagation();
|
|
7387
7411
|
};
|
|
7388
|
-
return /*#__PURE__*/React.createElement(Vertical, Object.assign({
|
|
7412
|
+
return /*#__PURE__*/React.createElement(Vertical$1, Object.assign({
|
|
7389
7413
|
cursor: "default",
|
|
7390
7414
|
backgroundColor: "white",
|
|
7391
7415
|
width: isFullScreen ? '100%' : 600,
|
|
7392
7416
|
height: isFullScreen ? '100%' : 'fit-content',
|
|
7393
7417
|
onClick: handleClick
|
|
7394
|
-
}, shadow ? shadow : defaultShadow, ContainerShapes[shape], props), children);
|
|
7418
|
+
}, shadow ? shadow : defaultShadow, ContainerShapes[shape], props, views == null ? void 0 : views.container), children);
|
|
7395
7419
|
};
|
|
7396
7420
|
var ModalHeader = _ref3 => {
|
|
7397
7421
|
var {
|
|
7398
7422
|
children,
|
|
7399
7423
|
buttonColor = 'theme.primary',
|
|
7400
7424
|
iconSize = 'md',
|
|
7401
|
-
buttonPosition = 'right'
|
|
7425
|
+
buttonPosition = 'right',
|
|
7426
|
+
views
|
|
7402
7427
|
} = _ref3,
|
|
7403
7428
|
props = _objectWithoutPropertiesLoose(_ref3, _excluded3$4);
|
|
7404
7429
|
var onClose = props.onClose ? props.onClose : hideModal;
|
|
7405
7430
|
var buttonIcon = /*#__PURE__*/React.createElement(Button, {
|
|
7406
7431
|
onClick: onClose,
|
|
7407
|
-
colorScheme: "transparent",
|
|
7408
7432
|
icon: /*#__PURE__*/React.createElement(CloseIcon, {
|
|
7409
|
-
|
|
7433
|
+
widthHeight: HeaderIconSizes[iconSize],
|
|
7410
7434
|
color: buttonColor
|
|
7411
7435
|
}),
|
|
7412
7436
|
padding: 0,
|
|
@@ -7414,16 +7438,17 @@ var ModalHeader = _ref3 => {
|
|
|
7414
7438
|
filter: "none",
|
|
7415
7439
|
width: 0
|
|
7416
7440
|
});
|
|
7417
|
-
return /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
7441
|
+
return /*#__PURE__*/React.createElement(Horizontal$1, Object.assign({
|
|
7418
7442
|
justifyContent: buttonPosition === 'none' ? 'center' : 'space-between',
|
|
7419
7443
|
alignItems: "center",
|
|
7420
7444
|
paddingVertical: 15,
|
|
7421
7445
|
paddingHorizontal: 20
|
|
7422
|
-
}, props), buttonPosition === 'left' && buttonIcon, children, buttonPosition === 'right' && buttonIcon);
|
|
7446
|
+
}, props, views == null ? void 0 : views.header), buttonPosition === 'left' && buttonIcon, children, buttonPosition === 'right' && buttonIcon);
|
|
7423
7447
|
};
|
|
7424
7448
|
var ModalBody = _ref4 => {
|
|
7425
7449
|
var {
|
|
7426
|
-
children
|
|
7450
|
+
children,
|
|
7451
|
+
views
|
|
7427
7452
|
} = _ref4,
|
|
7428
7453
|
props = _objectWithoutPropertiesLoose(_ref4, _excluded4$3);
|
|
7429
7454
|
var defaultBorder = {
|
|
@@ -7432,23 +7457,24 @@ var ModalBody = _ref4 => {
|
|
|
7432
7457
|
borderColor: 'rgba(250, 250, 250, 1)',
|
|
7433
7458
|
borderStyle: 'solid'
|
|
7434
7459
|
};
|
|
7435
|
-
return /*#__PURE__*/React.createElement(View, Object.assign({
|
|
7460
|
+
return /*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
7436
7461
|
paddingVertical: 15,
|
|
7437
7462
|
paddingHorizontal: 20
|
|
7438
|
-
}, defaultBorder, props), children);
|
|
7463
|
+
}, defaultBorder, props, views == null ? void 0 : views.view), children);
|
|
7439
7464
|
};
|
|
7440
7465
|
var ModalFooter = _ref5 => {
|
|
7441
7466
|
var {
|
|
7442
|
-
children
|
|
7467
|
+
children,
|
|
7468
|
+
views
|
|
7443
7469
|
} = _ref5,
|
|
7444
7470
|
props = _objectWithoutPropertiesLoose(_ref5, _excluded5$1);
|
|
7445
|
-
return /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
7471
|
+
return /*#__PURE__*/React.createElement(Horizontal$1, Object.assign({
|
|
7446
7472
|
marginTop: "auto",
|
|
7447
7473
|
alignItems: "center",
|
|
7448
7474
|
justifyContent: "flex-end",
|
|
7449
7475
|
paddingVertical: 15,
|
|
7450
7476
|
paddingHorizontal: 20
|
|
7451
|
-
}, props), children);
|
|
7477
|
+
}, props, views == null ? void 0 : views.container), children);
|
|
7452
7478
|
};
|
|
7453
7479
|
|
|
7454
7480
|
var ModalLayout = _ref => {
|
|
@@ -7505,14 +7531,14 @@ Modal.Layout = ModalLayout;
|
|
|
7505
7531
|
|
|
7506
7532
|
var defaultStyles = {};
|
|
7507
7533
|
// Create a context that includes both styles and the onClick function
|
|
7508
|
-
var TableContext = /*#__PURE__*/
|
|
7509
|
-
|
|
7534
|
+
var TableContext = /*#__PURE__*/createContext({
|
|
7535
|
+
views: defaultStyles,
|
|
7510
7536
|
onRowClick: () => {}
|
|
7511
7537
|
});
|
|
7512
7538
|
var TableProvider = _ref => {
|
|
7513
7539
|
var {
|
|
7514
7540
|
children,
|
|
7515
|
-
|
|
7541
|
+
views = defaultStyles,
|
|
7516
7542
|
onRowClick
|
|
7517
7543
|
} = _ref;
|
|
7518
7544
|
return (
|
|
@@ -7520,93 +7546,93 @@ var TableProvider = _ref => {
|
|
|
7520
7546
|
// Pass both styles and onClick to the context
|
|
7521
7547
|
React.createElement(TableContext.Provider, {
|
|
7522
7548
|
value: {
|
|
7523
|
-
|
|
7549
|
+
views,
|
|
7524
7550
|
onRowClick
|
|
7525
7551
|
}
|
|
7526
7552
|
}, children)
|
|
7527
7553
|
);
|
|
7528
7554
|
};
|
|
7529
7555
|
// Custom hook to consume the context and get the styles and onClick handler
|
|
7530
|
-
var useTableContext = () =>
|
|
7556
|
+
var useTableContext = () => useContext(TableContext);
|
|
7531
7557
|
|
|
7532
7558
|
var TableContainer = props => {
|
|
7533
7559
|
var {
|
|
7534
|
-
|
|
7560
|
+
views
|
|
7535
7561
|
} = useTableContext();
|
|
7536
7562
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
7537
7563
|
as: "table",
|
|
7538
7564
|
borderCollapse: "collapse"
|
|
7539
|
-
},
|
|
7565
|
+
}, views == null ? void 0 : views.table, props));
|
|
7540
7566
|
};
|
|
7541
7567
|
var TableHead = props => {
|
|
7542
7568
|
var {
|
|
7543
|
-
|
|
7569
|
+
views
|
|
7544
7570
|
} = useTableContext();
|
|
7545
7571
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
7546
7572
|
as: "thead",
|
|
7547
7573
|
borderBottom: "0.5px solid #ddd",
|
|
7548
7574
|
textAlign: "left",
|
|
7549
7575
|
color: "color.gray.400"
|
|
7550
|
-
},
|
|
7576
|
+
}, views == null ? void 0 : views.thead, props));
|
|
7551
7577
|
};
|
|
7552
7578
|
var TableHeadCell = props => {
|
|
7553
7579
|
var {
|
|
7554
|
-
|
|
7580
|
+
views
|
|
7555
7581
|
} = useTableContext();
|
|
7556
7582
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
7557
7583
|
as: "th",
|
|
7558
7584
|
padding: "14px",
|
|
7559
7585
|
whiteSpace: "nowrap",
|
|
7560
7586
|
fontWeight: "500"
|
|
7561
|
-
},
|
|
7587
|
+
}, views == null ? void 0 : views.th, props));
|
|
7562
7588
|
};
|
|
7563
7589
|
var TableRow = props => {
|
|
7564
7590
|
var {
|
|
7565
|
-
|
|
7591
|
+
views,
|
|
7566
7592
|
onRowClick
|
|
7567
7593
|
} = useTableContext();
|
|
7568
7594
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
7569
7595
|
as: "tr"
|
|
7570
|
-
},
|
|
7596
|
+
}, views == null ? void 0 : views.tr, {
|
|
7571
7597
|
onClick: onRowClick
|
|
7572
7598
|
}, props));
|
|
7573
7599
|
};
|
|
7574
7600
|
var TableCell = props => {
|
|
7575
7601
|
var {
|
|
7576
|
-
|
|
7602
|
+
views
|
|
7577
7603
|
} = useTableContext();
|
|
7578
7604
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
7579
7605
|
as: "td",
|
|
7580
7606
|
padding: "14px",
|
|
7581
7607
|
whiteSpace: "nowrap",
|
|
7582
7608
|
fontWeight: props.isFirstColumn ? '400' : '300'
|
|
7583
|
-
},
|
|
7609
|
+
}, views == null ? void 0 : views.td, props));
|
|
7584
7610
|
};
|
|
7585
7611
|
var TableBody = props => {
|
|
7586
7612
|
var {
|
|
7587
|
-
|
|
7613
|
+
views
|
|
7588
7614
|
} = useTableContext();
|
|
7589
7615
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
7590
7616
|
as: "tbody"
|
|
7591
|
-
},
|
|
7617
|
+
}, views == null ? void 0 : views.tbody, props));
|
|
7592
7618
|
};
|
|
7593
7619
|
var TableFooter = props => {
|
|
7594
7620
|
var {
|
|
7595
|
-
|
|
7621
|
+
views
|
|
7596
7622
|
} = useTableContext();
|
|
7597
7623
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
7598
7624
|
as: "tfoot"
|
|
7599
|
-
},
|
|
7625
|
+
}, views == null ? void 0 : views.tfoot, props));
|
|
7600
7626
|
};
|
|
7601
7627
|
var TableCaption = props => {
|
|
7602
7628
|
var {
|
|
7603
|
-
|
|
7629
|
+
views
|
|
7604
7630
|
} = useTableContext();
|
|
7605
7631
|
return /*#__PURE__*/React.createElement(Element, Object.assign({
|
|
7606
7632
|
as: "caption",
|
|
7607
7633
|
margin: '10px 0',
|
|
7608
7634
|
color: "color.gray.400"
|
|
7609
|
-
},
|
|
7635
|
+
}, views == null ? void 0 : views.caption, props));
|
|
7610
7636
|
};
|
|
7611
7637
|
var TableView = _ref => {
|
|
7612
7638
|
var {
|
|
@@ -7632,11 +7658,11 @@ var TableView = _ref => {
|
|
|
7632
7658
|
var Table = _ref => {
|
|
7633
7659
|
var {
|
|
7634
7660
|
children,
|
|
7635
|
-
|
|
7661
|
+
views,
|
|
7636
7662
|
onClick
|
|
7637
7663
|
} = _ref;
|
|
7638
7664
|
return /*#__PURE__*/React.createElement(TableProvider, {
|
|
7639
|
-
|
|
7665
|
+
views: views,
|
|
7640
7666
|
onRowClick: onClick
|
|
7641
7667
|
}, children);
|
|
7642
7668
|
};
|
|
@@ -7703,7 +7729,7 @@ var TabsView = _ref => {
|
|
|
7703
7729
|
// Default to empty array
|
|
7704
7730
|
activeTab,
|
|
7705
7731
|
handleTabClick,
|
|
7706
|
-
|
|
7732
|
+
views = {},
|
|
7707
7733
|
// Default to empty object
|
|
7708
7734
|
renderTab,
|
|
7709
7735
|
renderContent
|
|
@@ -7711,7 +7737,7 @@ var TabsView = _ref => {
|
|
|
7711
7737
|
// If there's no active tab (e.g., tabs array is empty), render nothing or a placeholder
|
|
7712
7738
|
if (!activeTab) {
|
|
7713
7739
|
// Optionally render a placeholder when no tabs are active/available
|
|
7714
|
-
// return <View {...
|
|
7740
|
+
// return <View {...views.container}><Text>No tabs available.</Text></View>;
|
|
7715
7741
|
return null; // Or simply render nothing
|
|
7716
7742
|
}
|
|
7717
7743
|
return (
|
|
@@ -7720,7 +7746,7 @@ var TabsView = _ref => {
|
|
|
7720
7746
|
React.createElement(Vertical, Object.assign({
|
|
7721
7747
|
width: "100%",
|
|
7722
7748
|
height: '100%'
|
|
7723
|
-
},
|
|
7749
|
+
}, views.container), /*#__PURE__*/React.createElement(Horizontal, Object.assign({}, views.headerTabs), tabs.map(tab => {
|
|
7724
7750
|
// Determine if the current tab in the loop is the active one
|
|
7725
7751
|
var isActive = tab.title === activeTab.title;
|
|
7726
7752
|
// Prepare the onClick handler for this specific tab
|
|
@@ -7735,17 +7761,17 @@ var TabsView = _ref => {
|
|
|
7735
7761
|
onClick: onClick,
|
|
7736
7762
|
borderBottomLeftRadius: 0,
|
|
7737
7763
|
borderBottomRightRadius: 0
|
|
7738
|
-
},
|
|
7764
|
+
}, views.tab, isActive ? views.activeTab : {}, {
|
|
7739
7765
|
// Example: Set variant based on active state (can be overridden by styles)
|
|
7740
7766
|
variant: isActive ? 'filled' : 'ghost',
|
|
7741
7767
|
cursor: "pointer" // Ensure pointer cursor
|
|
7742
7768
|
}), tab.icon, /*#__PURE__*/React.createElement(Text
|
|
7743
7769
|
// Apply base title styles and merge activeText styles if this tab is active
|
|
7744
|
-
, Object.assign({},
|
|
7770
|
+
, Object.assign({}, views.title, isActive ? views.activeText : {}), tab.title));
|
|
7745
7771
|
})), /*#__PURE__*/React.createElement(View, Object.assign({
|
|
7746
7772
|
width: '100%',
|
|
7747
7773
|
height: "100%"
|
|
7748
|
-
},
|
|
7774
|
+
}, views.content), renderContent ? renderContent(activeTab) :
|
|
7749
7775
|
// Otherwise, render the content property from the active tab object
|
|
7750
7776
|
activeTab.content))
|
|
7751
7777
|
);
|
|
@@ -7758,7 +7784,7 @@ var TabsView = _ref => {
|
|
|
7758
7784
|
var TabsComponent = _ref => {
|
|
7759
7785
|
var {
|
|
7760
7786
|
tabs,
|
|
7761
|
-
|
|
7787
|
+
views,
|
|
7762
7788
|
initialTabValue,
|
|
7763
7789
|
onTabChange,
|
|
7764
7790
|
renderTab,
|
|
@@ -7783,7 +7809,7 @@ var TabsComponent = _ref => {
|
|
|
7783
7809
|
// Render the presentation component with the necessary props
|
|
7784
7810
|
return /*#__PURE__*/React.createElement(TabsView, {
|
|
7785
7811
|
tabs: tabs,
|
|
7786
|
-
|
|
7812
|
+
views: views,
|
|
7787
7813
|
activeTab: activeTab,
|
|
7788
7814
|
handleTabClick: handleTabClick,
|
|
7789
7815
|
renderTab: renderTab,
|
|
@@ -7808,34 +7834,28 @@ var useToggleState = defaultToggled => {
|
|
|
7808
7834
|
};
|
|
7809
7835
|
};
|
|
7810
7836
|
|
|
7811
|
-
var
|
|
7812
|
-
sharp: 0,
|
|
7813
|
-
rounded: 4,
|
|
7814
|
-
pillShaped: 24
|
|
7815
|
-
};
|
|
7816
|
-
|
|
7817
|
-
var _excluded$z = ["children", "shape", "colorScheme", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle"];
|
|
7837
|
+
var _excluded$A = ["children", "shape", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle", "views"];
|
|
7818
7838
|
var ToggleView = _ref => {
|
|
7819
7839
|
var {
|
|
7820
7840
|
children,
|
|
7821
7841
|
shape = 'rounded',
|
|
7822
|
-
colorScheme = 'color.trueGray.400',
|
|
7823
7842
|
variant = 'ghost',
|
|
7824
7843
|
isHovered,
|
|
7825
7844
|
setIsHovered,
|
|
7826
7845
|
isDisabled,
|
|
7827
7846
|
isToggle,
|
|
7828
7847
|
setIsToggled,
|
|
7829
|
-
onToggle
|
|
7848
|
+
onToggle,
|
|
7849
|
+
views
|
|
7830
7850
|
} = _ref,
|
|
7831
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7832
|
-
var toggleColor = !isDisabled ?
|
|
7851
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
|
|
7852
|
+
var toggleColor = !isDisabled ? 'color.trueGray.400' : 'theme.disabled';
|
|
7833
7853
|
var isActive = !!(isToggle || isHovered);
|
|
7834
|
-
var
|
|
7854
|
+
var toggleVariants = {
|
|
7835
7855
|
outline: {
|
|
7836
7856
|
borderWidth: 1,
|
|
7837
7857
|
borderStyle: 'solid',
|
|
7838
|
-
borderColor:
|
|
7858
|
+
borderColor: 'color.trueGray.400'
|
|
7839
7859
|
},
|
|
7840
7860
|
link: {
|
|
7841
7861
|
borderWidth: 1,
|
|
@@ -7845,6 +7865,7 @@ var ToggleView = _ref => {
|
|
|
7845
7865
|
},
|
|
7846
7866
|
ghost: {}
|
|
7847
7867
|
};
|
|
7868
|
+
var handleHover = () => setIsHovered(!isHovered);
|
|
7848
7869
|
var handleToggle = () => {
|
|
7849
7870
|
if (!isDisabled) {
|
|
7850
7871
|
setIsToggled(prev => {
|
|
@@ -7862,28 +7883,27 @@ var ToggleView = _ref => {
|
|
|
7862
7883
|
width: "fit-content",
|
|
7863
7884
|
color: isActive ? 'color.white' : toggleColor,
|
|
7864
7885
|
backgroundColor: isActive ? toggleColor : 'transparent',
|
|
7865
|
-
onMouseEnter:
|
|
7886
|
+
onMouseEnter: handleHover,
|
|
7866
7887
|
onMouseLeave: () => setIsHovered(false),
|
|
7867
7888
|
cursor: isDisabled ? 'not-allowed' : 'pointer',
|
|
7868
|
-
borderRadius:
|
|
7889
|
+
borderRadius: shape === 'pillShaped' ? '50px' : '8px',
|
|
7869
7890
|
onClick: handleToggle
|
|
7870
|
-
},
|
|
7891
|
+
}, toggleVariants[variant], props, views == null ? void 0 : views.container), children);
|
|
7871
7892
|
};
|
|
7872
7893
|
|
|
7873
|
-
var _excluded$
|
|
7894
|
+
var _excluded$B = ["children", "shape", "variant", "isDisabled", "isToggled", "onToggle"];
|
|
7874
7895
|
// Destructuring properties from ToggleProps to be used within the ToggleComponent.
|
|
7875
7896
|
var ToggleComponent = _ref => {
|
|
7876
7897
|
var {
|
|
7877
7898
|
children,
|
|
7878
7899
|
shape,
|
|
7879
|
-
colorScheme,
|
|
7880
7900
|
variant,
|
|
7881
7901
|
isDisabled,
|
|
7882
7902
|
// Assigning a default value of false to the isToggled property if none is provided.
|
|
7883
7903
|
isToggled = false,
|
|
7884
7904
|
onToggle
|
|
7885
7905
|
} = _ref,
|
|
7886
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7906
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
|
|
7887
7907
|
// Initializing toggle state and set state functions using the custom hook useToggleState.
|
|
7888
7908
|
var {
|
|
7889
7909
|
isHovered,
|
|
@@ -7898,7 +7918,6 @@ var ToggleComponent = _ref => {
|
|
|
7898
7918
|
// Beginning of the JSX block to render the Toggle view component.
|
|
7899
7919
|
return /*#__PURE__*/React.createElement(ToggleView, Object.assign({
|
|
7900
7920
|
shape: shape,
|
|
7901
|
-
colorScheme: colorScheme,
|
|
7902
7921
|
variant: variant,
|
|
7903
7922
|
isDisabled: isDisabled,
|
|
7904
7923
|
isHovered: isHovered,
|
|
@@ -7934,8 +7953,7 @@ var ToggleGroupView = _ref => {
|
|
|
7934
7953
|
shape = 'rounded',
|
|
7935
7954
|
// Prop 'variant' with default value 'ghost' represents the visual style variant of the toggles.
|
|
7936
7955
|
variant = 'ghost',
|
|
7937
|
-
|
|
7938
|
-
colorScheme = 'color.trueGray.400'
|
|
7956
|
+
views
|
|
7939
7957
|
} = _ref;
|
|
7940
7958
|
// handleToggle is a memoized callback that handles the toggle state changes.
|
|
7941
7959
|
var handleToggle = useCallback((id, isActive) => {
|
|
@@ -7950,19 +7968,19 @@ var ToggleGroupView = _ref => {
|
|
|
7950
7968
|
return newActiveToggles;
|
|
7951
7969
|
});
|
|
7952
7970
|
}, [onToggleChange, setActiveToggles]);
|
|
7953
|
-
return /*#__PURE__*/React.createElement(Horizontal, {
|
|
7971
|
+
return /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
7954
7972
|
role: "ToggleGroup",
|
|
7955
7973
|
display: "flex",
|
|
7956
7974
|
gap: 5
|
|
7957
|
-
}, items.map(item => (/*#__PURE__*/React.createElement(Toggle, {
|
|
7975
|
+
}, views == null ? void 0 : views.container), items.map(item => (/*#__PURE__*/React.createElement(Toggle, {
|
|
7958
7976
|
role: "toggle-" + item.id,
|
|
7959
7977
|
key: item.id,
|
|
7960
|
-
colorScheme: colorScheme,
|
|
7961
7978
|
shape: shape,
|
|
7962
7979
|
variant: variant,
|
|
7963
7980
|
isToggled: activeToggles.includes(item.id) || item.isActive,
|
|
7964
7981
|
onToggle: state => handleToggle(item.id, state),
|
|
7965
|
-
isDisabled: item.isDisabled
|
|
7982
|
+
isDisabled: item.isDisabled,
|
|
7983
|
+
views: views == null ? void 0 : views.toggle
|
|
7966
7984
|
}, item.value))));
|
|
7967
7985
|
};
|
|
7968
7986
|
|
|
@@ -7973,8 +7991,6 @@ var ToggleGroupComponent = _ref => {
|
|
|
7973
7991
|
items,
|
|
7974
7992
|
// Destructure 'shape' prop to define the shape of the toggle buttons
|
|
7975
7993
|
shape,
|
|
7976
|
-
// Destructure 'colorScheme' prop for toggle button styling
|
|
7977
|
-
colorScheme,
|
|
7978
7994
|
// Destructure 'variant' prop to determine the visual style of the toggle group
|
|
7979
7995
|
variant,
|
|
7980
7996
|
// Destructure 'onToggleChange' prop for the callback when toggle state changes
|
|
@@ -7988,7 +8004,6 @@ var ToggleGroupComponent = _ref => {
|
|
|
7988
8004
|
return /*#__PURE__*/React.createElement(ToggleGroupView, {
|
|
7989
8005
|
items: items,
|
|
7990
8006
|
shape: shape,
|
|
7991
|
-
colorScheme: colorScheme,
|
|
7992
8007
|
variant: variant,
|
|
7993
8008
|
activeToggles: activeToggles,
|
|
7994
8009
|
setActiveToggles: setActiveToggles,
|
|
@@ -8094,12 +8109,13 @@ var DragAndDropView = _ref => {
|
|
|
8094
8109
|
itemProps,
|
|
8095
8110
|
draggedIndex,
|
|
8096
8111
|
itemRefs,
|
|
8097
|
-
handleDragStart
|
|
8112
|
+
handleDragStart,
|
|
8113
|
+
views
|
|
8098
8114
|
} = _ref;
|
|
8099
8115
|
return /*#__PURE__*/React.createElement(View$1, Object.assign({
|
|
8100
8116
|
overflow: "hidden",
|
|
8101
8117
|
position: "relative"
|
|
8102
|
-
}, 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({
|
|
8103
8119
|
key: index,
|
|
8104
8120
|
ref: el => itemRefs.current[index] = el,
|
|
8105
8121
|
onMouseDown: e => handleDragStart(e, index),
|
|
@@ -8108,7 +8124,7 @@ var DragAndDropView = _ref => {
|
|
|
8108
8124
|
cursor: "grab",
|
|
8109
8125
|
transition: "transform 0.2s",
|
|
8110
8126
|
backgroundColor: draggedIndex === index ? 'color.gray.100' : 'transparent'
|
|
8111
|
-
}, itemProps), renderItem ? renderItem(item, index) : item))));
|
|
8127
|
+
}, itemProps, views == null ? void 0 : views.item), renderItem ? renderItem(item, index) : item))));
|
|
8112
8128
|
};
|
|
8113
8129
|
|
|
8114
8130
|
var DragAndDropComponent = props => {
|
|
@@ -8127,5 +8143,5 @@ var DragAndDropComponent = props => {
|
|
|
8127
8143
|
};
|
|
8128
8144
|
var DragAndDrop = DragAndDropComponent;
|
|
8129
8145
|
|
|
8130
|
-
export { Alert, ArrowIcon, AspectRatio, Avatar, Badge, BatteryIcon, BluetoothIcon, BoldArrowIcon, BookmarkIcon, Bottom, Button, CalendarIcon, CameraIcon, Center, CenterBase, Checkbox, ChevronIcon, ClockIcon, CloseEyeIcon, CloseIcon, CloudIcon, ComboBox, CopyIcon, CountryPicker, DatePicker, DownloadIcon, DragAndDrop, DragAndDropComponent, DragHandleIcon, DustBinIcon, EditIcon, ErrorIcon, ExternalLinkIcon, FacebookIcon, FileIcon, FileImage, FileSVG, FilterIcon, FormikCheckbox, FormikComboBox, FormikCountryPicker, FormikDatePicker, FormikForm, FormikPassword, FormikSelect, FormikSwitch, FormikTextArea, FormikTextField, HeartIcon, HomeIcon, Horizontal, HorizontalBase, Icon, ImageIcon, InfoIcon, Inline, InstagramIcon, Left, LikeIcon, Link, LinkedinIcon, Loader, LocationIcon, LockIcon, MenuIcon, MessageLayout, MessageView, MicrophoneIcon, MinusIcon, Modal, MoonIcon, NotificationIcon, OpenEyeIcon, PanelIcon, Password, PauseIcon, PlayIcon, PlusIcon, PrintIcon, ProfileIcon, RefreshIcon, Right, SaveIcon, SearchIcon, Select, SettingsIcon, ShareIcon, SpinnerIcon, StarIcon, SuccessIcon, Switch, Table, Tabs, Text, TextArea, TextField, ThreadsIcon, TickIcon, Toggle, ToggleGroup, Top, TwitchIcon, TwitterIcon, UnLikeIcon, UnlockIcon, UploadIcon, Uploader, Vertical, VerticalBase, VideoIcon, View, WarningIcon, WifiIcon, XIcon, YoutubeIcon,
|
|
8146
|
+
export { Alert, ArrowIcon, AspectRatio, Avatar, Badge, BatteryIcon, BluetoothIcon, BoldArrowIcon, BookmarkIcon, Bottom, Button, CalendarIcon, CameraIcon, Center, CenterBase, Checkbox, ChevronIcon, ClockIcon, CloseEyeIcon, CloseIcon, CloudIcon, ComboBox, CopyIcon, CountryPicker, DatePicker, DownloadIcon, DragAndDrop, DragAndDropComponent, DragHandleIcon, DustBinIcon, EditIcon, ErrorIcon, ExternalLinkIcon, FacebookIcon, FileIcon, FileImage, FileSVG, FilterIcon, FormikCheckbox, FormikComboBox, FormikCountryPicker, FormikDatePicker, FormikForm, FormikPassword, FormikSelect, FormikSwitch, FormikTextArea, FormikTextField, HeartIcon, HomeIcon, Horizontal, HorizontalBase, Icon, ImageIcon, InfoIcon, Inline, InstagramIcon, Left, LikeIcon, Link, LinkedinIcon, Loader, LocationIcon, LockIcon, MenuIcon, MessageLayout, MessageView, MicrophoneIcon, MinusIcon, Modal, MoonIcon, NotificationIcon, OpenEyeIcon, PanelIcon, Password, PauseIcon, PlayIcon, PlusIcon, PrintIcon, ProfileIcon, RefreshIcon, Right, SaveIcon, SearchIcon, Select, SettingsIcon, ShareIcon, SpinnerIcon, StarIcon, SuccessIcon, Switch, Table, Tabs, Text, TextArea, TextField, ThreadsIcon, TickIcon, Toggle, ToggleGroup, Top, TwitchIcon, TwitterIcon, UnLikeIcon, UnlockIcon, UploadIcon, Uploader, Vertical, VerticalBase, VideoIcon, View, WarningIcon, WifiIcon, XIcon, YoutubeIcon, hideMessage, hideModal, showMessage, showModal, useMessageStore, useModalStore };
|
|
8131
8147
|
//# sourceMappingURL=web.esm.js.map
|