@app-studio/web 0.7.9 → 0.7.10
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/AspectRatio/AspectRatio/AspectRatio.props.d.ts +2 -4
- package/dist/components/Badge/Badge/Badge.props.d.ts +2 -2
- package/dist/components/Button/Button/Button.props.d.ts +2 -3
- package/dist/components/Form/Checkbox/Checkbox/Checkbox.props.d.ts +2 -3
- package/dist/components/Form/ComboBox/ComboBox/ComboBox.props.d.ts +2 -2
- package/dist/components/Form/CountryPicker/CountryPicker/CountryPicker.props.d.ts +4 -16
- package/dist/components/Form/Label/Label/Label.props.d.ts +2 -2
- package/dist/components/Form/Password/Password/Password.props.d.ts +2 -5
- package/dist/components/Form/Select/Select/Select.props.d.ts +6 -26
- package/dist/components/Form/Switch/Switch/Switch.props.d.ts +2 -6
- package/dist/components/Form/TextArea/TextArea/TextArea.props.d.ts +2 -6
- package/dist/components/Form/TextField/TextField/TextField.props.d.ts +2 -6
- package/dist/components/Layout/Center/Center/Center.props.d.ts +2 -15
- package/dist/components/Layout/Horizontal/Horizontal/Horizontal.props.d.ts +2 -22
- package/dist/components/Layout/Horizontal/Horizontal.d.ts +2 -2
- package/dist/components/Layout/Input/FieldContainer/FieldContainer/FieldContainer.props.d.ts +2 -5
- package/dist/components/Layout/Input/FieldContent/FieldContent/FieldContent.props.d.ts +2 -6
- package/dist/components/Layout/Input/FieldIcons/FieldIcons/FieldIcons.props.d.ts +2 -10
- package/dist/components/Layout/Input/FieldLabel/FieldLabel/FieldLabel.props.d.ts +2 -5
- package/dist/components/Layout/Input/FieldLayout/FieldLayout/FieldLayout.props.d.ts +2 -5
- package/dist/components/Layout/Input/FieldWrapper/FieldWrapper.props.d.ts +2 -10
- package/dist/components/Layout/Input/HelperText/HelperText.props.d.ts +2 -5
- package/dist/components/Layout/Vertical/Vertical/Vertical.props.d.ts +2 -22
- package/dist/components/Layout/View/View.d.ts +8 -7
- package/dist/components/Link/Link/Link.props.d.ts +2 -5
- package/dist/components/Loader/Loader/Loader.props.d.ts +2 -5
- package/dist/web.cjs.development.js +137 -158
- 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 +137 -158
- package/dist/web.esm.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/Layout/Vertical/Vertical/Vertical.type.d.ts +0 -2
package/dist/web.esm.js
CHANGED
|
@@ -57,71 +57,23 @@ var useLinkState = function useLinkState() {
|
|
|
57
57
|
};
|
|
58
58
|
};
|
|
59
59
|
|
|
60
|
-
var Top = function Top(props) {
|
|
61
|
-
return React.createElement(View$1, Object.assign({
|
|
62
|
-
marginBottom: "auto"
|
|
63
|
-
}, props));
|
|
64
|
-
};
|
|
65
|
-
var Bottom = function Bottom(props) {
|
|
66
|
-
return React.createElement(View$1, Object.assign({
|
|
67
|
-
marginTop: "auto"
|
|
68
|
-
}, props));
|
|
69
|
-
};
|
|
70
|
-
var Left = function Left(props) {
|
|
71
|
-
return React.createElement(View$1, Object.assign({
|
|
72
|
-
marginRight: "auto"
|
|
73
|
-
}, props));
|
|
74
|
-
};
|
|
75
|
-
var Right = function Right(props) {
|
|
76
|
-
return React.createElement(View$1, Object.assign({
|
|
77
|
-
marginLeft: "auto"
|
|
78
|
-
}, props));
|
|
79
|
-
};
|
|
80
|
-
var Inline = function Inline(props) {
|
|
81
|
-
return React.createElement(View$1, Object.assign({
|
|
82
|
-
display: 'inline-flex',
|
|
83
|
-
wordBreak: "break-word"
|
|
84
|
-
}, props));
|
|
85
|
-
};
|
|
86
|
-
var View = View$1;
|
|
87
|
-
|
|
88
|
-
var _excluded = ["children", "wrap", "justify", "isReversed"];
|
|
89
|
-
var HorizontalView = function HorizontalView(_ref) {
|
|
90
|
-
var children = _ref.children,
|
|
91
|
-
_ref$wrap = _ref.wrap,
|
|
92
|
-
wrap = _ref$wrap === void 0 ? 'wrap' : _ref$wrap,
|
|
93
|
-
_ref$justify = _ref.justify,
|
|
94
|
-
justify = _ref$justify === void 0 ? 'flex-start' : _ref$justify,
|
|
95
|
-
_ref$isReversed = _ref.isReversed,
|
|
96
|
-
isReversed = _ref$isReversed === void 0 ? false : _ref$isReversed,
|
|
97
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
98
|
-
return React.createElement(View, Object.assign({
|
|
99
|
-
display: "flex",
|
|
100
|
-
flexWrap: wrap,
|
|
101
|
-
flexDirection: isReversed ? 'row-reverse' : 'row',
|
|
102
|
-
justifyContent: justify
|
|
103
|
-
}, props), children);
|
|
104
|
-
};
|
|
105
|
-
|
|
106
60
|
/**
|
|
107
61
|
* Horizontal layout aligns all the elements in a container on the horizontal axis.
|
|
108
62
|
*/
|
|
109
63
|
var HorizontalComponent = function HorizontalComponent(props) {
|
|
110
|
-
return React.createElement(
|
|
64
|
+
return React.createElement(View$1, Object.assign({
|
|
65
|
+
display: "flex",
|
|
66
|
+
flexDirection: props.isReversed ? 'row-reverse' : 'row'
|
|
67
|
+
}, props));
|
|
111
68
|
};
|
|
112
69
|
var Horizontal = HorizontalComponent;
|
|
113
70
|
|
|
114
|
-
var
|
|
115
|
-
|
|
116
|
-
var children = _ref.children,
|
|
117
|
-
wrap = _ref.wrap,
|
|
118
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
119
|
-
return React.createElement(View, Object.assign({
|
|
71
|
+
var CenterView = function CenterView(props) {
|
|
72
|
+
return React.createElement(View$1, Object.assign({
|
|
120
73
|
display: "flex",
|
|
121
74
|
justifyContent: "center",
|
|
122
|
-
alignItems: "center"
|
|
123
|
-
|
|
124
|
-
}, props), children);
|
|
75
|
+
alignItems: "center"
|
|
76
|
+
}, props));
|
|
125
77
|
};
|
|
126
78
|
|
|
127
79
|
/**
|
|
@@ -132,11 +84,11 @@ var CenterComponent = function CenterComponent(props) {
|
|
|
132
84
|
};
|
|
133
85
|
var Center = CenterComponent;
|
|
134
86
|
|
|
135
|
-
var _excluded
|
|
87
|
+
var _excluded = ["size", "color"];
|
|
136
88
|
var ArrowDownSvg = function ArrowDownSvg(_ref) {
|
|
137
89
|
var _ref$size = _ref.size,
|
|
138
90
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
139
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded
|
|
91
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
140
92
|
return React.createElement(Center, {
|
|
141
93
|
width: size + "px",
|
|
142
94
|
height: size + "px"
|
|
@@ -172,11 +124,11 @@ var ArrowDownSvg = function ArrowDownSvg(_ref) {
|
|
|
172
124
|
})))))));
|
|
173
125
|
};
|
|
174
126
|
|
|
175
|
-
var _excluded$
|
|
127
|
+
var _excluded$1 = ["size", "color"];
|
|
176
128
|
var ArrowUpSvg = function ArrowUpSvg(_ref) {
|
|
177
129
|
var _ref$size = _ref.size,
|
|
178
130
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
179
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
131
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
180
132
|
return React.createElement(Center, {
|
|
181
133
|
width: size + "px",
|
|
182
134
|
height: size + "px"
|
|
@@ -214,13 +166,13 @@ var ArrowUpSvg = function ArrowUpSvg(_ref) {
|
|
|
214
166
|
})))))));
|
|
215
167
|
};
|
|
216
168
|
|
|
217
|
-
var _excluded$
|
|
169
|
+
var _excluded$2 = ["size", "color"];
|
|
218
170
|
var CheckSvg = function CheckSvg(_ref) {
|
|
219
171
|
var _ref$size = _ref.size,
|
|
220
172
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
221
173
|
_ref$color = _ref.color,
|
|
222
174
|
color = _ref$color === void 0 ? 'white' : _ref$color,
|
|
223
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
175
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
224
176
|
return React.createElement(Center, {
|
|
225
177
|
width: size + "px",
|
|
226
178
|
height: size + "px"
|
|
@@ -250,13 +202,13 @@ var CheckSvg = function CheckSvg(_ref) {
|
|
|
250
202
|
}))));
|
|
251
203
|
};
|
|
252
204
|
|
|
253
|
-
var _excluded$
|
|
205
|
+
var _excluded$3 = ["size", "color"];
|
|
254
206
|
var CloseSvg = function CloseSvg(_ref) {
|
|
255
207
|
var _ref$size = _ref.size,
|
|
256
208
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
257
209
|
_ref$color = _ref.color,
|
|
258
210
|
color = _ref$color === void 0 ? 'white' : _ref$color,
|
|
259
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
211
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
|
260
212
|
return React.createElement(Center, {
|
|
261
213
|
width: size + "px",
|
|
262
214
|
height: size + "px"
|
|
@@ -281,13 +233,13 @@ var CloseSvg = function CloseSvg(_ref) {
|
|
|
281
233
|
}))));
|
|
282
234
|
};
|
|
283
235
|
|
|
284
|
-
var _excluded$
|
|
236
|
+
var _excluded$4 = ["size", "color"];
|
|
285
237
|
var CloseEyeSvg = function CloseEyeSvg(_ref) {
|
|
286
238
|
var _ref$size = _ref.size,
|
|
287
239
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
288
240
|
_ref$color = _ref.color,
|
|
289
241
|
color = _ref$color === void 0 ? '#2F4858' : _ref$color,
|
|
290
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
242
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
291
243
|
return React.createElement(Center, {
|
|
292
244
|
width: size + "px",
|
|
293
245
|
height: size + "px"
|
|
@@ -312,13 +264,13 @@ var CloseEyeSvg = function CloseEyeSvg(_ref) {
|
|
|
312
264
|
}))));
|
|
313
265
|
};
|
|
314
266
|
|
|
315
|
-
var _excluded$
|
|
267
|
+
var _excluded$5 = ["size", "color"];
|
|
316
268
|
var ExternalLinkSvg = function ExternalLinkSvg(_ref) {
|
|
317
269
|
var _ref$size = _ref.size,
|
|
318
270
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
319
271
|
_ref$color = _ref.color,
|
|
320
272
|
color = _ref$color === void 0 ? 'white' : _ref$color,
|
|
321
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
273
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
322
274
|
return React.createElement(Center, {
|
|
323
275
|
width: size + "px",
|
|
324
276
|
height: size + "px"
|
|
@@ -347,13 +299,13 @@ var ExternalLinkSvg = function ExternalLinkSvg(_ref) {
|
|
|
347
299
|
}))));
|
|
348
300
|
};
|
|
349
301
|
|
|
350
|
-
var _excluded$
|
|
302
|
+
var _excluded$6 = ["size", "color"];
|
|
351
303
|
var IndeterminateSvg = function IndeterminateSvg(_ref) {
|
|
352
304
|
var _ref$size = _ref.size,
|
|
353
305
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
354
306
|
_ref$color = _ref.color,
|
|
355
307
|
color = _ref$color === void 0 ? 'white' : _ref$color,
|
|
356
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
308
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
357
309
|
return React.createElement(Center, {
|
|
358
310
|
width: size + "px",
|
|
359
311
|
height: size + "px"
|
|
@@ -379,13 +331,13 @@ var IndeterminateSvg = function IndeterminateSvg(_ref) {
|
|
|
379
331
|
}), ' ')));
|
|
380
332
|
};
|
|
381
333
|
|
|
382
|
-
var _excluded$
|
|
334
|
+
var _excluded$7 = ["size", "color"];
|
|
383
335
|
var OpenEyeSvg = function OpenEyeSvg(_ref) {
|
|
384
336
|
var _ref$size = _ref.size,
|
|
385
337
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
386
338
|
_ref$color = _ref.color,
|
|
387
339
|
color = _ref$color === void 0 ? '#2F4858' : _ref$color,
|
|
388
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
340
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
389
341
|
return React.createElement(Center, {
|
|
390
342
|
width: size + "px",
|
|
391
343
|
height: size + "px"
|
|
@@ -410,13 +362,13 @@ var OpenEyeSvg = function OpenEyeSvg(_ref) {
|
|
|
410
362
|
}))));
|
|
411
363
|
};
|
|
412
364
|
|
|
413
|
-
var _excluded$
|
|
365
|
+
var _excluded$8 = ["size", "color"];
|
|
414
366
|
var WarningSvg = function WarningSvg(_ref) {
|
|
415
367
|
var _ref$size = _ref.size,
|
|
416
368
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
417
369
|
_ref$color = _ref.color,
|
|
418
370
|
color = _ref$color === void 0 ? 'white' : _ref$color,
|
|
419
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
371
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
420
372
|
return React.createElement(Center, {
|
|
421
373
|
width: size + "px",
|
|
422
374
|
height: size + "px"
|
|
@@ -439,13 +391,13 @@ var WarningSvg = function WarningSvg(_ref) {
|
|
|
439
391
|
})))))));
|
|
440
392
|
};
|
|
441
393
|
|
|
442
|
-
var _excluded$
|
|
394
|
+
var _excluded$9 = ["size", "color"];
|
|
443
395
|
var SuccessSvg = function SuccessSvg(_ref) {
|
|
444
396
|
var _ref$size = _ref.size,
|
|
445
397
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
446
398
|
_ref$color = _ref.color,
|
|
447
399
|
color = _ref$color === void 0 ? 'white' : _ref$color,
|
|
448
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
400
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
449
401
|
return React.createElement(Center, {
|
|
450
402
|
width: size + "px",
|
|
451
403
|
height: size + "px"
|
|
@@ -469,13 +421,13 @@ var SuccessSvg = function SuccessSvg(_ref) {
|
|
|
469
421
|
}))))));
|
|
470
422
|
};
|
|
471
423
|
|
|
472
|
-
var _excluded$
|
|
424
|
+
var _excluded$a = ["size", "color"];
|
|
473
425
|
var InfoSvg = function InfoSvg(_ref) {
|
|
474
426
|
var _ref$size = _ref.size,
|
|
475
427
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
476
428
|
_ref$color = _ref.color,
|
|
477
429
|
color = _ref$color === void 0 ? 'white' : _ref$color,
|
|
478
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
430
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
479
431
|
return React.createElement(Center, {
|
|
480
432
|
width: size + "px",
|
|
481
433
|
height: size + "px"
|
|
@@ -498,13 +450,13 @@ var InfoSvg = function InfoSvg(_ref) {
|
|
|
498
450
|
})))))));
|
|
499
451
|
};
|
|
500
452
|
|
|
501
|
-
var _excluded$
|
|
453
|
+
var _excluded$b = ["size", "color"];
|
|
502
454
|
var ErrorSvg = function ErrorSvg(_ref) {
|
|
503
455
|
var _ref$size = _ref.size,
|
|
504
456
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
505
457
|
_ref$color = _ref.color,
|
|
506
458
|
color = _ref$color === void 0 ? 'white' : _ref$color,
|
|
507
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
459
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
508
460
|
return React.createElement(Center, {
|
|
509
461
|
width: size + "px",
|
|
510
462
|
height: size + "px"
|
|
@@ -547,7 +499,7 @@ var IconSizes = {
|
|
|
547
499
|
'6xl': 64
|
|
548
500
|
};
|
|
549
501
|
|
|
550
|
-
var _excluded$
|
|
502
|
+
var _excluded$c = ["children", "href", "iconSize", "underline", "isHovered", "isExternal", "styles", "setIsHovered"];
|
|
551
503
|
var LinkView = function LinkView(_ref) {
|
|
552
504
|
var children = _ref.children,
|
|
553
505
|
_ref$href = _ref.href,
|
|
@@ -567,7 +519,7 @@ var LinkView = function LinkView(_ref) {
|
|
|
567
519
|
} : _ref$styles,
|
|
568
520
|
_ref$setIsHovered = _ref.setIsHovered,
|
|
569
521
|
setIsHovered = _ref$setIsHovered === void 0 ? function () {} : _ref$setIsHovered,
|
|
570
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
522
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
571
523
|
var handleHover = function handleHover() {
|
|
572
524
|
if (underline === 'hover') setIsHovered(true);
|
|
573
525
|
};
|
|
@@ -702,6 +654,34 @@ var IconSizes$1 = {
|
|
|
702
654
|
}
|
|
703
655
|
};
|
|
704
656
|
|
|
657
|
+
var Top = function Top(props) {
|
|
658
|
+
return React.createElement(View$1, Object.assign({
|
|
659
|
+
marginBottom: "auto"
|
|
660
|
+
}, props));
|
|
661
|
+
};
|
|
662
|
+
var Bottom = function Bottom(props) {
|
|
663
|
+
return React.createElement(View$1, Object.assign({
|
|
664
|
+
marginTop: "auto"
|
|
665
|
+
}, props));
|
|
666
|
+
};
|
|
667
|
+
var Left = function Left(props) {
|
|
668
|
+
return React.createElement(View$1, Object.assign({
|
|
669
|
+
marginRight: "auto"
|
|
670
|
+
}, props));
|
|
671
|
+
};
|
|
672
|
+
var Right = function Right(props) {
|
|
673
|
+
return React.createElement(View$1, Object.assign({
|
|
674
|
+
marginLeft: "auto"
|
|
675
|
+
}, props));
|
|
676
|
+
};
|
|
677
|
+
var Inline = function Inline(props) {
|
|
678
|
+
return React.createElement(View$1, Object.assign({
|
|
679
|
+
display: 'inline-flex',
|
|
680
|
+
wordBreak: "break-word"
|
|
681
|
+
}, props));
|
|
682
|
+
};
|
|
683
|
+
var View = View$1;
|
|
684
|
+
|
|
705
685
|
var DefaultSizes = {
|
|
706
686
|
xs: 14,
|
|
707
687
|
sm: 18,
|
|
@@ -720,7 +700,7 @@ var DefaultSpeeds = {
|
|
|
720
700
|
slow: 300
|
|
721
701
|
};
|
|
722
702
|
|
|
723
|
-
var _excluded$
|
|
703
|
+
var _excluded$d = ["size", "speed", "color"],
|
|
724
704
|
_excluded2 = ["size", "speed", "color"],
|
|
725
705
|
_excluded3 = ["size", "speed", "color"],
|
|
726
706
|
_excluded4 = ["size", "children", "textColor", "loaderColor", "type", "speed", "textPosition"];
|
|
@@ -731,7 +711,7 @@ var DefaultSpinner = function DefaultSpinner(_ref) {
|
|
|
731
711
|
speed = _ref$speed === void 0 ? 'normal' : _ref$speed,
|
|
732
712
|
_ref$color = _ref.color,
|
|
733
713
|
color = _ref$color === void 0 ? 'theme.loading' : _ref$color,
|
|
734
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
714
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
735
715
|
var theme = useTheme();
|
|
736
716
|
var colorStyle = theme.getColor(color);
|
|
737
717
|
var sizeStyle = typeof size === 'number' ? size : DefaultSizes[size];
|
|
@@ -905,7 +885,7 @@ var LoaderComponent = function LoaderComponent(props) {
|
|
|
905
885
|
*/
|
|
906
886
|
var Loader = LoaderComponent;
|
|
907
887
|
|
|
908
|
-
var _excluded$
|
|
888
|
+
var _excluded$e = ["icon", "shadow", "children", "ariaLabel", "externalHref", "isAuto", "isFilled", "isIconRounded", "isLoading", "isDisabled", "size", "variant", "iconPosition", "colorScheme", "shape", "onClick", "loaderProps", "loaderPosition", "effect", "isHovered"];
|
|
909
889
|
var contrast = /*#__PURE__*/require('contrast');
|
|
910
890
|
var ButtonView = function ButtonView(_ref) {
|
|
911
891
|
var _props$onClick;
|
|
@@ -943,7 +923,7 @@ var ButtonView = function ButtonView(_ref) {
|
|
|
943
923
|
_ref$effect = _ref.effect,
|
|
944
924
|
effect = _ref$effect === void 0 ? 'default' : _ref$effect,
|
|
945
925
|
isHovered = _ref.isHovered,
|
|
946
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
926
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
|
947
927
|
var _useTheme = useTheme(),
|
|
948
928
|
getColor = _useTheme.getColor;
|
|
949
929
|
var isActive = !(isDisabled || isLoading);
|
|
@@ -1115,7 +1095,7 @@ var HeadingSizes = {
|
|
|
1115
1095
|
}
|
|
1116
1096
|
};
|
|
1117
1097
|
|
|
1118
|
-
var _excluded$
|
|
1098
|
+
var _excluded$f = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
|
|
1119
1099
|
var LabelView = function LabelView(_ref) {
|
|
1120
1100
|
var children = _ref.children,
|
|
1121
1101
|
heading = _ref.heading,
|
|
@@ -1129,7 +1109,7 @@ var LabelView = function LabelView(_ref) {
|
|
|
1129
1109
|
weight = _ref$weight === void 0 ? 'normal' : _ref$weight,
|
|
1130
1110
|
_ref$size = _ref.size,
|
|
1131
1111
|
size = _ref$size === void 0 ? 'sm' : _ref$size,
|
|
1132
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1112
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
|
|
1133
1113
|
// The fontStyle prop toggles between 'italic' and 'normal' based on the 'isItalic' boolean prop.
|
|
1134
1114
|
var headingStyles = heading ? HeadingSizes[heading] : {};
|
|
1135
1115
|
// fontWeight is derived from the Typography module, ensuring consistent font weighting across the app.
|
|
@@ -1249,7 +1229,7 @@ var HeadingSizes$1 = {
|
|
|
1249
1229
|
}
|
|
1250
1230
|
};
|
|
1251
1231
|
|
|
1252
|
-
var _excluded$
|
|
1232
|
+
var _excluded$g = ["children", "heading", "maxLines", "isItalic", "isUnderlined", "isSub", "isSup", "isStriked", "isTruncated", "weight", "size"];
|
|
1253
1233
|
var TextContent = function TextContent(_ref) {
|
|
1254
1234
|
var children = _ref.children,
|
|
1255
1235
|
isSub = _ref.isSub,
|
|
@@ -1313,7 +1293,7 @@ var TextView = function TextView(_ref3) {
|
|
|
1313
1293
|
weight = _ref3$weight === void 0 ? 'normal' : _ref3$weight,
|
|
1314
1294
|
_ref3$size = _ref3.size,
|
|
1315
1295
|
size = _ref3$size === void 0 ? 'md' : _ref3$size,
|
|
1316
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded$
|
|
1296
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded$g);
|
|
1317
1297
|
var headingStyles = heading ? HeadingSizes$1[heading] : {};
|
|
1318
1298
|
var noLineBreak = isSub || isSup ? {
|
|
1319
1299
|
display: 'inline'
|
|
@@ -1343,7 +1323,7 @@ var TextComponent = function TextComponent(props) {
|
|
|
1343
1323
|
*/
|
|
1344
1324
|
var Text = TextComponent;
|
|
1345
1325
|
|
|
1346
|
-
var _excluded$
|
|
1326
|
+
var _excluded$h = ["id", "icon", "name", "label", "isChecked", "onChange", "onValueChange", "shadow", "labelPosition", "size", "colorScheme", "error", "isSelected", "isHovered", "isDisabled", "isReadOnly", "isIndeterminate", "defaultIsSelected", "setIsSelected", "setIsHovered", "styles", "infoText"];
|
|
1347
1327
|
var CheckboxView = function CheckboxView(_ref) {
|
|
1348
1328
|
var id = _ref.id,
|
|
1349
1329
|
icon = _ref.icon,
|
|
@@ -1381,7 +1361,7 @@ var CheckboxView = function CheckboxView(_ref) {
|
|
|
1381
1361
|
label: {}
|
|
1382
1362
|
} : _ref$styles,
|
|
1383
1363
|
infoText = _ref.infoText,
|
|
1384
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1364
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
1385
1365
|
var handleHover = function handleHover() {
|
|
1386
1366
|
return setIsHovered(!isHovered);
|
|
1387
1367
|
};
|
|
@@ -2935,14 +2915,14 @@ var useCountryPickerState = function useCountryPickerState(_ref) {
|
|
|
2935
2915
|
};
|
|
2936
2916
|
};
|
|
2937
2917
|
|
|
2938
|
-
var _excluded$
|
|
2918
|
+
var _excluded$i = ["children", "styles"];
|
|
2939
2919
|
var HelperText = function HelperText(_ref) {
|
|
2940
2920
|
var children = _ref.children,
|
|
2941
2921
|
_ref$styles = _ref.styles,
|
|
2942
2922
|
styles = _ref$styles === void 0 ? {
|
|
2943
2923
|
helperText: {}
|
|
2944
2924
|
} : _ref$styles,
|
|
2945
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2925
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
2946
2926
|
return React.createElement(Text, Object.assign({
|
|
2947
2927
|
size: "xs",
|
|
2948
2928
|
marginVertical: 0,
|
|
@@ -2951,22 +2931,21 @@ var HelperText = function HelperText(_ref) {
|
|
|
2951
2931
|
}, styles['helperText'], props), children);
|
|
2952
2932
|
};
|
|
2953
2933
|
|
|
2954
|
-
var _excluded$
|
|
2934
|
+
var _excluded$j = ["wrap", "justifyContent", "isReversed"];
|
|
2955
2935
|
var VerticalView = function VerticalView(_ref) {
|
|
2956
|
-
var
|
|
2957
|
-
_ref$wrap
|
|
2958
|
-
|
|
2959
|
-
_ref$
|
|
2960
|
-
justify = _ref$justify === void 0 ? 'flex-start' : _ref$justify,
|
|
2936
|
+
var _ref$wrap = _ref.wrap,
|
|
2937
|
+
wrap = _ref$wrap === void 0 ? 'wrap' : _ref$wrap,
|
|
2938
|
+
_ref$justifyContent = _ref.justifyContent,
|
|
2939
|
+
justifyContent = _ref$justifyContent === void 0 ? 'flex-start' : _ref$justifyContent,
|
|
2961
2940
|
_ref$isReversed = _ref.isReversed,
|
|
2962
2941
|
isReversed = _ref$isReversed === void 0 ? false : _ref$isReversed,
|
|
2963
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2942
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
2964
2943
|
return React.createElement(View$1, Object.assign({
|
|
2965
2944
|
display: "flex",
|
|
2966
2945
|
flexWrap: wrap,
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
}, props)
|
|
2946
|
+
justifyContent: justifyContent,
|
|
2947
|
+
flexDirection: isReversed ? 'column-reverse' : 'column'
|
|
2948
|
+
}, props));
|
|
2970
2949
|
};
|
|
2971
2950
|
|
|
2972
2951
|
/**
|
|
@@ -2977,14 +2956,14 @@ var VerticalComponent = function VerticalComponent(props) {
|
|
|
2977
2956
|
};
|
|
2978
2957
|
var Vertical = VerticalComponent;
|
|
2979
2958
|
|
|
2980
|
-
var _excluded$
|
|
2959
|
+
var _excluded$k = ["children", "helperText", "error", "styles"];
|
|
2981
2960
|
var FieldContainer = function FieldContainer(_ref) {
|
|
2982
2961
|
var children = _ref.children,
|
|
2983
2962
|
helperText = _ref.helperText,
|
|
2984
2963
|
_ref$error = _ref.error,
|
|
2985
2964
|
error = _ref$error === void 0 ? false : _ref$error,
|
|
2986
2965
|
styles = _ref.styles,
|
|
2987
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2966
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
|
2988
2967
|
return React.createElement(Vertical, Object.assign({
|
|
2989
2968
|
gap: 5,
|
|
2990
2969
|
position: "relative"
|
|
@@ -3043,7 +3022,7 @@ var PaddingWithoutLabel = {
|
|
|
3043
3022
|
paddingRight: 36
|
|
3044
3023
|
};
|
|
3045
3024
|
|
|
3046
|
-
var _excluded$
|
|
3025
|
+
var _excluded$l = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "isWithLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "colorScheme", "styles"];
|
|
3047
3026
|
var FieldContent = function FieldContent(_ref) {
|
|
3048
3027
|
var shadow = _ref.shadow,
|
|
3049
3028
|
children = _ref.children,
|
|
@@ -3071,7 +3050,7 @@ var FieldContent = function FieldContent(_ref) {
|
|
|
3071
3050
|
styles = _ref$styles === void 0 ? {
|
|
3072
3051
|
pickerBox: {}
|
|
3073
3052
|
} : _ref$styles,
|
|
3074
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3053
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
3075
3054
|
var isInteractive = (isHovered || isFocused) && !isDisabled;
|
|
3076
3055
|
var color = error ? 'error' : isInteractive ? colorScheme : 'midgray';
|
|
3077
3056
|
return React.createElement(Horizontal, Object.assign({
|
|
@@ -3092,10 +3071,10 @@ var FieldContent = function FieldContent(_ref) {
|
|
|
3092
3071
|
}, isWithLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant], styles['box'], props), children);
|
|
3093
3072
|
};
|
|
3094
3073
|
|
|
3095
|
-
var _excluded$
|
|
3074
|
+
var _excluded$m = ["children"];
|
|
3096
3075
|
var FieldIcons = function FieldIcons(_ref) {
|
|
3097
3076
|
var children = _ref.children,
|
|
3098
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3077
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
|
|
3099
3078
|
return React.createElement(Center, Object.assign({
|
|
3100
3079
|
gap: 10,
|
|
3101
3080
|
right: 16,
|
|
@@ -3105,7 +3084,7 @@ var FieldIcons = function FieldIcons(_ref) {
|
|
|
3105
3084
|
}, props), children);
|
|
3106
3085
|
};
|
|
3107
3086
|
|
|
3108
|
-
var _excluded$
|
|
3087
|
+
var _excluded$n = ["children", "size", "error", "color", "styles"];
|
|
3109
3088
|
var FieldLabel = function FieldLabel(_ref) {
|
|
3110
3089
|
var children = _ref.children,
|
|
3111
3090
|
_ref$size = _ref.size,
|
|
@@ -3118,7 +3097,7 @@ var FieldLabel = function FieldLabel(_ref) {
|
|
|
3118
3097
|
styles = _ref$styles === void 0 ? {
|
|
3119
3098
|
label: {}
|
|
3120
3099
|
} : _ref$styles,
|
|
3121
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3100
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
3122
3101
|
return React.createElement(Label, Object.assign({
|
|
3123
3102
|
top: 6,
|
|
3124
3103
|
zIndex: 1000,
|
|
@@ -3131,10 +3110,10 @@ var FieldLabel = function FieldLabel(_ref) {
|
|
|
3131
3110
|
}, styles['label'], props), children);
|
|
3132
3111
|
};
|
|
3133
3112
|
|
|
3134
|
-
var _excluded$
|
|
3113
|
+
var _excluded$o = ["children"];
|
|
3135
3114
|
var FieldWrapper = function FieldWrapper(_ref) {
|
|
3136
3115
|
var children = _ref.children,
|
|
3137
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3116
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
|
|
3138
3117
|
return React.createElement(Vertical, Object.assign({
|
|
3139
3118
|
width: "100%"
|
|
3140
3119
|
}, props), children);
|
|
@@ -3148,7 +3127,7 @@ var IconSizes$3 = {
|
|
|
3148
3127
|
xl: 16
|
|
3149
3128
|
};
|
|
3150
3129
|
|
|
3151
|
-
var _excluded$
|
|
3130
|
+
var _excluded$p = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isHovered", "isFocused", "isAutoFocus", "isDisabled", "isReadOnly", "shadow", "newOptions", "size", "variant", "shape", "colorScheme", "onChange", "onBlur", "setHide", "setNewOptions", "setIsHovered", "setIsFocused", "setValue", "styles"];
|
|
3152
3131
|
var CountryList = function CountryList(props) {
|
|
3153
3132
|
return React.createElement(Element, Object.assign({
|
|
3154
3133
|
as: "ul"
|
|
@@ -3288,7 +3267,7 @@ var CountryPickerView = function CountryPickerView(_ref3) {
|
|
|
3288
3267
|
helperText: {},
|
|
3289
3268
|
box: {}
|
|
3290
3269
|
} : _ref3$styles,
|
|
3291
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded$
|
|
3270
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded$p);
|
|
3292
3271
|
var _useTheme = useTheme(),
|
|
3293
3272
|
getColor = _useTheme.getColor;
|
|
3294
3273
|
var IconColor = getColor('color.blueGray.700');
|
|
@@ -3426,7 +3405,7 @@ var useDatePickerState = function useDatePickerState() {
|
|
|
3426
3405
|
};
|
|
3427
3406
|
};
|
|
3428
3407
|
|
|
3429
|
-
var _excluded$
|
|
3408
|
+
var _excluded$q = ["id", "icon", "name", "label", "date", "children", "helperText", "shadow", "size", "variant", "shape", "colorScheme", "styles", "error", "isHovered", "isFocused", "isDisabled", "isReadOnly", "setDate", "setIsFocused", "setIsHovered", "onChange", "onChangeText"];
|
|
3430
3409
|
var DatePickerContent = function DatePickerContent(props) {
|
|
3431
3410
|
return React.createElement(Input, Object.assign({
|
|
3432
3411
|
type: "date"
|
|
@@ -3474,7 +3453,7 @@ var DatePickerView = function DatePickerView(_ref) {
|
|
|
3474
3453
|
setIsHovered = _ref$setIsHovered === void 0 ? function () {} : _ref$setIsHovered,
|
|
3475
3454
|
onChange = _ref.onChange,
|
|
3476
3455
|
onChangeText = _ref.onChangeText,
|
|
3477
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3456
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
|
|
3478
3457
|
var isWithLabel = !!(isFocused && label);
|
|
3479
3458
|
var handleHover = function handleHover() {
|
|
3480
3459
|
return setIsHovered(!isHovered);
|
|
@@ -3599,7 +3578,7 @@ var usePasswordState = function usePasswordState(props) {
|
|
|
3599
3578
|
}, props, textFieldStates);
|
|
3600
3579
|
};
|
|
3601
3580
|
|
|
3602
|
-
var _excluded$
|
|
3581
|
+
var _excluded$r = ["id", "name", "label", "hint", "value", "onChange", "leftChild", "rightChild", "helperText", "placeholder", "onChangeText", "shadow", "styles", "size", "shape", "variant", "colorScheme", "error", "isFocused", "isHovered", "isDisabled", "isReadOnly", "isClearable", "isAutoFocus", "setHint", "setIsFocused", "setIsHovered", "setValue", "onClick", "onFocus", "onBlur"];
|
|
3603
3582
|
var TextFieldInput = function TextFieldInput(props) {
|
|
3604
3583
|
return React.createElement(Input, Object.assign({
|
|
3605
3584
|
type: "text"
|
|
@@ -3657,7 +3636,7 @@ var TextFieldView = function TextFieldView(_ref) {
|
|
|
3657
3636
|
onFocus = _ref.onFocus,
|
|
3658
3637
|
_ref$onBlur = _ref.onBlur,
|
|
3659
3638
|
onBlur = _ref$onBlur === void 0 ? function () {} : _ref$onBlur,
|
|
3660
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3639
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
|
|
3661
3640
|
var _useTheme = useTheme(),
|
|
3662
3641
|
getColor = _useTheme.getColor;
|
|
3663
3642
|
var IconColor = getColor('color.blueGray.700');
|
|
@@ -3765,7 +3744,7 @@ var TextFieldView = function TextFieldView(_ref) {
|
|
|
3765
3744
|
}), rightChild && React.createElement(React.Fragment, null, rightChild))));
|
|
3766
3745
|
};
|
|
3767
3746
|
|
|
3768
|
-
var _excluded$
|
|
3747
|
+
var _excluded$s = ["visibleIcon", "hiddenIcon"],
|
|
3769
3748
|
_excluded2$1 = ["isVisible", "setIsVisible"];
|
|
3770
3749
|
var PasswordComponent = function PasswordComponent(_ref) {
|
|
3771
3750
|
var _ref$visibleIcon = _ref.visibleIcon,
|
|
@@ -3776,7 +3755,7 @@ var PasswordComponent = function PasswordComponent(_ref) {
|
|
|
3776
3755
|
hiddenIcon = _ref$hiddenIcon === void 0 ? React.createElement(CloseEyeSvg, {
|
|
3777
3756
|
size: 14
|
|
3778
3757
|
}) : _ref$hiddenIcon,
|
|
3779
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3758
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
|
|
3780
3759
|
var _usePasswordState = usePasswordState(props),
|
|
3781
3760
|
isVisible = _usePasswordState.isVisible,
|
|
3782
3761
|
setIsVisible = _usePasswordState.setIsVisible,
|
|
@@ -3849,7 +3828,7 @@ var IconSizes$4 = {
|
|
|
3849
3828
|
xl: 16
|
|
3850
3829
|
};
|
|
3851
3830
|
|
|
3852
|
-
var _excluded$
|
|
3831
|
+
var _excluded$t = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
|
|
3853
3832
|
_excluded2$2 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
|
|
3854
3833
|
_excluded3$1 = ["option", "size", "removeOption"],
|
|
3855
3834
|
_excluded4$1 = ["id", "name", "label", "value", "placeholder", "helperText", "hide", "error", "isMulti", "isFocused", "isHovered", "isDisabled", "isReadOnly", "options", "shadow", "size", "colorScheme", "shape", "variant", "styles", "onChange", "setHide", "setValue", "setIsHovered", "setIsFocused", "setHighlightedIndex", "highlightedIndex"];
|
|
@@ -3862,7 +3841,7 @@ var Item = function Item(_ref) {
|
|
|
3862
3841
|
_ref$callback = _ref.callback,
|
|
3863
3842
|
callback = _ref$callback === void 0 ? function () {} : _ref$callback,
|
|
3864
3843
|
style = _ref.style,
|
|
3865
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3844
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
3866
3845
|
var handleOptionClick = function handleOptionClick(option) {
|
|
3867
3846
|
return callback(option);
|
|
3868
3847
|
};
|
|
@@ -4358,7 +4337,7 @@ var SliderPadding = {
|
|
|
4358
4337
|
}
|
|
4359
4338
|
};
|
|
4360
4339
|
|
|
4361
|
-
var _excluded$
|
|
4340
|
+
var _excluded$u = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "colorScheme", "value", "isHovered", "isDisabled", "isReadOnly", "onChange", "setValue", "setIsHovered", "styles"];
|
|
4362
4341
|
var SwitchContent = function SwitchContent(props) {
|
|
4363
4342
|
return React.createElement(Input, Object.assign({
|
|
4364
4343
|
type: "checkbox"
|
|
@@ -4397,7 +4376,7 @@ var SwitchView = function SwitchView(_ref) {
|
|
|
4397
4376
|
circle: {},
|
|
4398
4377
|
label: {}
|
|
4399
4378
|
} : _ref$styles,
|
|
4400
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4379
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
|
|
4401
4380
|
var handleToggle = function handleToggle(event) {
|
|
4402
4381
|
if (!isReadOnly) {
|
|
4403
4382
|
setValue(!value);
|
|
@@ -4483,7 +4462,7 @@ var useTextAreaState = function useTextAreaState(_ref) {
|
|
|
4483
4462
|
};
|
|
4484
4463
|
};
|
|
4485
4464
|
|
|
4486
|
-
var _excluded$
|
|
4465
|
+
var _excluded$v = ["id", "name", "hint", "error", "value", "label", "shadow", "helperText", "placeholder", "size", "shape", "variant", "colorScheme", "isHovered", "isFocused", "isEditable", "isReadOnly", "isDisabled", "isAutoFocus", "isMultiline", "maxRows", "maxCols", "onBlur", "onChange", "onFocus", "onChangeText", "setHint", "setValue", "setIsFocused", "setIsHovered", "styles"];
|
|
4487
4466
|
var TextAreaView = function TextAreaView(_ref) {
|
|
4488
4467
|
var id = _ref.id,
|
|
4489
4468
|
name = _ref.name,
|
|
@@ -4538,7 +4517,7 @@ var TextAreaView = function TextAreaView(_ref) {
|
|
|
4538
4517
|
helperText: {},
|
|
4539
4518
|
field: {}
|
|
4540
4519
|
} : _ref$styles,
|
|
4541
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4520
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
|
|
4542
4521
|
var isWithLabel = !!(isFocused && label);
|
|
4543
4522
|
var fieldStyles = _extends({
|
|
4544
4523
|
margin: 0,
|
|
@@ -4706,7 +4685,7 @@ var FormikForm = function FormikForm(_ref) {
|
|
|
4706
4685
|
}, React.createElement(Form, null, children));
|
|
4707
4686
|
};
|
|
4708
4687
|
|
|
4709
|
-
var _excluded$
|
|
4688
|
+
var _excluded$w = ["name", "type"];
|
|
4710
4689
|
var getInputTypeProps = function getInputTypeProps(type) {
|
|
4711
4690
|
switch (type) {
|
|
4712
4691
|
case 'email':
|
|
@@ -4736,7 +4715,7 @@ var getInputTypeProps = function getInputTypeProps(type) {
|
|
|
4736
4715
|
var useFormikInput = function useFormikInput(_ref) {
|
|
4737
4716
|
var name = _ref.name,
|
|
4738
4717
|
type = _ref.type,
|
|
4739
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4718
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
|
|
4740
4719
|
var focus = useFormFocus();
|
|
4741
4720
|
var _useFormikContext = useFormikContext(),
|
|
4742
4721
|
touched = _useFormikContext.touched,
|
|
@@ -4783,11 +4762,11 @@ var useFormikInput = function useFormikInput(_ref) {
|
|
|
4783
4762
|
// import FormRater from 'src/Rate/Rate';
|
|
4784
4763
|
// import Upload from 'src/Upload/Upload';
|
|
4785
4764
|
|
|
4786
|
-
var _excluded$
|
|
4765
|
+
var _excluded$x = ["value"];
|
|
4787
4766
|
var CheckboxComponent$1 = function CheckboxComponent(props) {
|
|
4788
4767
|
var _useFormikInput = useFormikInput(props),
|
|
4789
4768
|
value = _useFormikInput.value,
|
|
4790
|
-
formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$
|
|
4769
|
+
formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$x);
|
|
4791
4770
|
formProps.isChecked = value;
|
|
4792
4771
|
var checkboxStates = useCheckboxState(props);
|
|
4793
4772
|
return React.createElement(CheckboxView, Object.assign({}, checkboxStates, formProps));
|
|
@@ -4849,11 +4828,11 @@ var TextAreaComponent$1 = function TextAreaComponent(props) {
|
|
|
4849
4828
|
*/
|
|
4850
4829
|
var FormikTextArea = TextAreaComponent$1;
|
|
4851
4830
|
|
|
4852
|
-
var _excluded$
|
|
4831
|
+
var _excluded$y = ["value"];
|
|
4853
4832
|
var TextFieldComponent$1 = function TextFieldComponent(props) {
|
|
4854
4833
|
var formProps = useFormikInput(props);
|
|
4855
4834
|
var _useTextFieldState = useTextFieldState(props),
|
|
4856
|
-
textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$
|
|
4835
|
+
textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$y);
|
|
4857
4836
|
return React.createElement(TextFieldView, Object.assign({}, textFieldStates, formProps));
|
|
4858
4837
|
};
|
|
4859
4838
|
/**
|
|
@@ -4861,7 +4840,7 @@ var TextFieldComponent$1 = function TextFieldComponent(props) {
|
|
|
4861
4840
|
*/
|
|
4862
4841
|
var FormikTextField = TextFieldComponent$1;
|
|
4863
4842
|
|
|
4864
|
-
var _excluded$
|
|
4843
|
+
var _excluded$z = ["visibleIcon", "hiddenIcon"],
|
|
4865
4844
|
_excluded2$3 = ["isVisible", "setIsVisible"];
|
|
4866
4845
|
var PasswordComponent$1 = function PasswordComponent(_ref) {
|
|
4867
4846
|
var _ref$visibleIcon = _ref.visibleIcon,
|
|
@@ -4872,7 +4851,7 @@ var PasswordComponent$1 = function PasswordComponent(_ref) {
|
|
|
4872
4851
|
hiddenIcon = _ref$hiddenIcon === void 0 ? React.createElement(CloseEyeSvg, {
|
|
4873
4852
|
size: 14
|
|
4874
4853
|
}) : _ref$hiddenIcon,
|
|
4875
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4854
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
|
|
4876
4855
|
var formProps = useFormikInput(props);
|
|
4877
4856
|
var _usePasswordState = usePasswordState(formProps),
|
|
4878
4857
|
isVisible = _usePasswordState.isVisible,
|
|
@@ -4935,11 +4914,11 @@ var useComboBoxState = function useComboBoxState(items, placeholder, searchPlace
|
|
|
4935
4914
|
};
|
|
4936
4915
|
};
|
|
4937
4916
|
|
|
4938
|
-
var _excluded$
|
|
4917
|
+
var _excluded$A = ["size", "color"];
|
|
4939
4918
|
var TickSvg = function TickSvg(_ref) {
|
|
4940
4919
|
var _ref$size = _ref.size,
|
|
4941
4920
|
size = _ref$size === void 0 ? 16 : _ref$size,
|
|
4942
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4921
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
|
|
4943
4922
|
return React.createElement(Center, {
|
|
4944
4923
|
width: size + "px",
|
|
4945
4924
|
height: size + "px"
|
|
@@ -4967,13 +4946,13 @@ var TickSvg = function TickSvg(_ref) {
|
|
|
4967
4946
|
}), ' ')));
|
|
4968
4947
|
};
|
|
4969
4948
|
|
|
4970
|
-
var _excluded$
|
|
4949
|
+
var _excluded$B = ["size", "color"];
|
|
4971
4950
|
var SearchLoopSvg = function SearchLoopSvg(_ref) {
|
|
4972
4951
|
var _ref$size = _ref.size,
|
|
4973
4952
|
size = _ref$size === void 0 ? 14 : _ref$size,
|
|
4974
4953
|
_ref$color = _ref.color,
|
|
4975
4954
|
color = _ref$color === void 0 ? '#c0c0c0' : _ref$color,
|
|
4976
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4955
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
|
|
4977
4956
|
return React.createElement(Center, {
|
|
4978
4957
|
width: size + "px",
|
|
4979
4958
|
height: size + "px"
|
|
@@ -5000,7 +4979,7 @@ var SearchLoopSvg = function SearchLoopSvg(_ref) {
|
|
|
5000
4979
|
}), ' ')))));
|
|
5001
4980
|
};
|
|
5002
4981
|
|
|
5003
|
-
var _excluded$
|
|
4982
|
+
var _excluded$C = ["placeholder", "items", "showTick", "onSelect", "searchEnabled", "left", "right", "label", "filteredItems", "setSelectedItem", "selectedItem", "highlightedIndex", "setHighlightedIndex", "searchQuery", "setSearchQuery", "setFilteredItems", "styles", "isDropdownVisible", "setIsDropdownVisible"];
|
|
5004
4983
|
// Defines the functional component 'ComboBoxView' with destructured props.
|
|
5005
4984
|
var ComboBoxView = function ComboBoxView(_ref) {
|
|
5006
4985
|
var placeholder = _ref.placeholder,
|
|
@@ -5024,7 +5003,7 @@ var ComboBoxView = function ComboBoxView(_ref) {
|
|
|
5024
5003
|
styles = _ref.styles,
|
|
5025
5004
|
isDropdownVisible = _ref.isDropdownVisible,
|
|
5026
5005
|
setIsDropdownVisible = _ref.setIsDropdownVisible,
|
|
5027
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5006
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$C);
|
|
5028
5007
|
// Sets up an effect to handle clicking outside the dropdown to close it.
|
|
5029
5008
|
useEffect(function () {
|
|
5030
5009
|
var handleClickOutside = function handleClickOutside(event) {
|
|
@@ -5080,7 +5059,7 @@ var ComboBoxView = function ComboBoxView(_ref) {
|
|
|
5080
5059
|
display: "flex",
|
|
5081
5060
|
alignItems: "center",
|
|
5082
5061
|
borderRadius: "4px",
|
|
5083
|
-
|
|
5062
|
+
justifyContent: "space-between",
|
|
5084
5063
|
minWidth: 300,
|
|
5085
5064
|
wrap: "nowrap"
|
|
5086
5065
|
}, styles == null ? void 0 : styles.container), React.createElement(Horizontal, Object.assign({
|
|
@@ -5133,7 +5112,7 @@ var ComboBoxView = function ComboBoxView(_ref) {
|
|
|
5133
5112
|
padding: 4
|
|
5134
5113
|
}, filteredItems.map(function (item, index) {
|
|
5135
5114
|
return React.createElement(Horizontal, Object.assign({
|
|
5136
|
-
|
|
5115
|
+
justifyContent: "space-between",
|
|
5137
5116
|
key: item.value,
|
|
5138
5117
|
padding: "12px",
|
|
5139
5118
|
cursor: "pointer",
|
|
@@ -5149,12 +5128,12 @@ var ComboBoxView = function ComboBoxView(_ref) {
|
|
|
5149
5128
|
}))))));
|
|
5150
5129
|
};
|
|
5151
5130
|
|
|
5152
|
-
var _excluded$
|
|
5131
|
+
var _excluded$D = ["items", "placeholder", "searchPlaceholder"];
|
|
5153
5132
|
var ComboBoxComponent = function ComboBoxComponent(_ref) {
|
|
5154
5133
|
var items = _ref.items,
|
|
5155
5134
|
placeholder = _ref.placeholder,
|
|
5156
5135
|
searchPlaceholder = _ref.searchPlaceholder,
|
|
5157
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5136
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$D);
|
|
5158
5137
|
var formProps = useFormikInput(props);
|
|
5159
5138
|
var ComboBoxStates = useComboBoxState(items, placeholder, searchPlaceholder);
|
|
5160
5139
|
// Ensure the onChange function from formProps is being called when an item is selected
|
|
@@ -5255,7 +5234,7 @@ var HeaderIconSizes = {
|
|
|
5255
5234
|
xl: 28
|
|
5256
5235
|
};
|
|
5257
5236
|
|
|
5258
|
-
var _excluded$
|
|
5237
|
+
var _excluded$E = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position"],
|
|
5259
5238
|
_excluded2$4 = ["children", "shadow", "isFullScreen", "shape"],
|
|
5260
5239
|
_excluded3$2 = ["children", "buttonColor", "iconSize", "buttonPosition"],
|
|
5261
5240
|
_excluded4$2 = ["children"],
|
|
@@ -5271,7 +5250,7 @@ var ModalOverlay = function ModalOverlay(_ref) {
|
|
|
5271
5250
|
onClose = _ref$onClose === void 0 ? function () {} : _ref$onClose,
|
|
5272
5251
|
_ref$position = _ref.position,
|
|
5273
5252
|
position = _ref$position === void 0 ? 'center' : _ref$position,
|
|
5274
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5253
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$E);
|
|
5275
5254
|
var handleClick = function handleClick() {
|
|
5276
5255
|
if (!isClosePrevented) onClose();
|
|
5277
5256
|
};
|
|
@@ -5425,12 +5404,12 @@ Modal.Body = ModalBody;
|
|
|
5425
5404
|
Modal.Footer = ModalFooter;
|
|
5426
5405
|
Modal.Layout = ModalLayout;
|
|
5427
5406
|
|
|
5428
|
-
var _excluded$
|
|
5407
|
+
var _excluded$F = ["src", "color"],
|
|
5429
5408
|
_excluded2$5 = ["path"];
|
|
5430
5409
|
var FileSVG = function FileSVG(_ref) {
|
|
5431
5410
|
var src = _ref.src,
|
|
5432
5411
|
color = _ref.color,
|
|
5433
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5412
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$F);
|
|
5434
5413
|
var _useTheme = useTheme(),
|
|
5435
5414
|
getColor = _useTheme.getColor;
|
|
5436
5415
|
var Colorprops = color ? {
|
|
@@ -5649,13 +5628,13 @@ var AlertComponent = function AlertComponent(_ref) {
|
|
|
5649
5628
|
// Exporting the AlertComponent as 'Alert' for use in other parts of the application.
|
|
5650
5629
|
var Alert = AlertComponent;
|
|
5651
5630
|
|
|
5652
|
-
var _excluded$
|
|
5631
|
+
var _excluded$G = ["ratio", "children"];
|
|
5653
5632
|
// Declaration of a functional component named AspectRatioView.
|
|
5654
5633
|
var AspectRatioView = function AspectRatioView(_ref) {
|
|
5655
5634
|
var _ref$ratio = _ref.ratio,
|
|
5656
5635
|
ratio = _ref$ratio === void 0 ? 16 / 9 : _ref$ratio,
|
|
5657
5636
|
children = _ref.children,
|
|
5658
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5637
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$G);
|
|
5659
5638
|
return React.createElement(Center, Object.assign({
|
|
5660
5639
|
width: '100%',
|
|
5661
5640
|
position: "relative",
|
|
@@ -5671,12 +5650,12 @@ var AspectRatioView = function AspectRatioView(_ref) {
|
|
|
5671
5650
|
}, children));
|
|
5672
5651
|
};
|
|
5673
5652
|
|
|
5674
|
-
var _excluded$
|
|
5653
|
+
var _excluded$H = ["ratio", "children"];
|
|
5675
5654
|
// Declaration of the AspectRatioComponent functional component with destructured props.
|
|
5676
5655
|
var AspectRatioComponent = function AspectRatioComponent(_ref) {
|
|
5677
5656
|
var ratio = _ref.ratio,
|
|
5678
5657
|
children = _ref.children,
|
|
5679
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5658
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$H);
|
|
5680
5659
|
// Beginning of the return statement in the functional component.
|
|
5681
5660
|
return React.createElement(AspectRatioView, Object.assign({
|
|
5682
5661
|
ratio: ratio
|
|
@@ -5930,7 +5909,7 @@ var ToggleShapes = {
|
|
|
5930
5909
|
pillShaped: 24
|
|
5931
5910
|
};
|
|
5932
5911
|
|
|
5933
|
-
var _excluded$
|
|
5912
|
+
var _excluded$I = ["children", "shape", "colorScheme", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle"];
|
|
5934
5913
|
var ToggleView = function ToggleView(_ref) {
|
|
5935
5914
|
var children = _ref.children,
|
|
5936
5915
|
_ref$shape = _ref.shape,
|
|
@@ -5945,7 +5924,7 @@ var ToggleView = function ToggleView(_ref) {
|
|
|
5945
5924
|
isToggle = _ref.isToggle,
|
|
5946
5925
|
setIsToggled = _ref.setIsToggled,
|
|
5947
5926
|
onToggle = _ref.onToggle,
|
|
5948
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5927
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$I);
|
|
5949
5928
|
var toggleColor = !isDisabled ? colorScheme : 'theme.disabled';
|
|
5950
5929
|
var isActive = !!(isToggle || isHovered);
|
|
5951
5930
|
var ToggleVariants = {
|
|
@@ -5991,7 +5970,7 @@ var ToggleView = function ToggleView(_ref) {
|
|
|
5991
5970
|
}, ToggleVariants[variant], props), children);
|
|
5992
5971
|
};
|
|
5993
5972
|
|
|
5994
|
-
var _excluded$
|
|
5973
|
+
var _excluded$J = ["children", "shape", "colorScheme", "variant", "isDisabled", "isToggled", "onToggle"];
|
|
5995
5974
|
// Destructuring properties from ToggleProps to be used within the ToggleComponent.
|
|
5996
5975
|
var ToggleComponent = function ToggleComponent(_ref) {
|
|
5997
5976
|
var children = _ref.children,
|
|
@@ -6002,7 +5981,7 @@ var ToggleComponent = function ToggleComponent(_ref) {
|
|
|
6002
5981
|
_ref$isToggled = _ref.isToggled,
|
|
6003
5982
|
isToggled = _ref$isToggled === void 0 ? false : _ref$isToggled,
|
|
6004
5983
|
onToggle = _ref.onToggle,
|
|
6005
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5984
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$J);
|
|
6006
5985
|
// Initializing toggle state and set state functions using the custom hook useToggleState.
|
|
6007
5986
|
var _useToggleState = useToggleState(isToggled),
|
|
6008
5987
|
isHovered = _useToggleState.isHovered,
|