@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
|
@@ -64,71 +64,23 @@ var useLinkState = function useLinkState() {
|
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
66
|
|
|
67
|
-
var Top = function Top(props) {
|
|
68
|
-
return React__default.createElement(appStudio.View, Object.assign({
|
|
69
|
-
marginBottom: "auto"
|
|
70
|
-
}, props));
|
|
71
|
-
};
|
|
72
|
-
var Bottom = function Bottom(props) {
|
|
73
|
-
return React__default.createElement(appStudio.View, Object.assign({
|
|
74
|
-
marginTop: "auto"
|
|
75
|
-
}, props));
|
|
76
|
-
};
|
|
77
|
-
var Left = function Left(props) {
|
|
78
|
-
return React__default.createElement(appStudio.View, Object.assign({
|
|
79
|
-
marginRight: "auto"
|
|
80
|
-
}, props));
|
|
81
|
-
};
|
|
82
|
-
var Right = function Right(props) {
|
|
83
|
-
return React__default.createElement(appStudio.View, Object.assign({
|
|
84
|
-
marginLeft: "auto"
|
|
85
|
-
}, props));
|
|
86
|
-
};
|
|
87
|
-
var Inline = function Inline(props) {
|
|
88
|
-
return React__default.createElement(appStudio.View, Object.assign({
|
|
89
|
-
display: 'inline-flex',
|
|
90
|
-
wordBreak: "break-word"
|
|
91
|
-
}, props));
|
|
92
|
-
};
|
|
93
|
-
var View = appStudio.View;
|
|
94
|
-
|
|
95
|
-
var _excluded = ["children", "wrap", "justify", "isReversed"];
|
|
96
|
-
var HorizontalView = function HorizontalView(_ref) {
|
|
97
|
-
var children = _ref.children,
|
|
98
|
-
_ref$wrap = _ref.wrap,
|
|
99
|
-
wrap = _ref$wrap === void 0 ? 'wrap' : _ref$wrap,
|
|
100
|
-
_ref$justify = _ref.justify,
|
|
101
|
-
justify = _ref$justify === void 0 ? 'flex-start' : _ref$justify,
|
|
102
|
-
_ref$isReversed = _ref.isReversed,
|
|
103
|
-
isReversed = _ref$isReversed === void 0 ? false : _ref$isReversed,
|
|
104
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
105
|
-
return React__default.createElement(View, Object.assign({
|
|
106
|
-
display: "flex",
|
|
107
|
-
flexWrap: wrap,
|
|
108
|
-
flexDirection: isReversed ? 'row-reverse' : 'row',
|
|
109
|
-
justifyContent: justify
|
|
110
|
-
}, props), children);
|
|
111
|
-
};
|
|
112
|
-
|
|
113
67
|
/**
|
|
114
68
|
* Horizontal layout aligns all the elements in a container on the horizontal axis.
|
|
115
69
|
*/
|
|
116
70
|
var HorizontalComponent = function HorizontalComponent(props) {
|
|
117
|
-
return React__default.createElement(
|
|
71
|
+
return React__default.createElement(appStudio.View, Object.assign({
|
|
72
|
+
display: "flex",
|
|
73
|
+
flexDirection: props.isReversed ? 'row-reverse' : 'row'
|
|
74
|
+
}, props));
|
|
118
75
|
};
|
|
119
76
|
var Horizontal = HorizontalComponent;
|
|
120
77
|
|
|
121
|
-
var
|
|
122
|
-
|
|
123
|
-
var children = _ref.children,
|
|
124
|
-
wrap = _ref.wrap,
|
|
125
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
126
|
-
return React__default.createElement(View, Object.assign({
|
|
78
|
+
var CenterView = function CenterView(props) {
|
|
79
|
+
return React__default.createElement(appStudio.View, Object.assign({
|
|
127
80
|
display: "flex",
|
|
128
81
|
justifyContent: "center",
|
|
129
|
-
alignItems: "center"
|
|
130
|
-
|
|
131
|
-
}, props), children);
|
|
82
|
+
alignItems: "center"
|
|
83
|
+
}, props));
|
|
132
84
|
};
|
|
133
85
|
|
|
134
86
|
/**
|
|
@@ -139,11 +91,11 @@ var CenterComponent = function CenterComponent(props) {
|
|
|
139
91
|
};
|
|
140
92
|
var Center = CenterComponent;
|
|
141
93
|
|
|
142
|
-
var _excluded
|
|
94
|
+
var _excluded = ["size", "color"];
|
|
143
95
|
var ArrowDownSvg = function ArrowDownSvg(_ref) {
|
|
144
96
|
var _ref$size = _ref.size,
|
|
145
97
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
146
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded
|
|
98
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
147
99
|
return React__default.createElement(Center, {
|
|
148
100
|
width: size + "px",
|
|
149
101
|
height: size + "px"
|
|
@@ -179,11 +131,11 @@ var ArrowDownSvg = function ArrowDownSvg(_ref) {
|
|
|
179
131
|
})))))));
|
|
180
132
|
};
|
|
181
133
|
|
|
182
|
-
var _excluded$
|
|
134
|
+
var _excluded$1 = ["size", "color"];
|
|
183
135
|
var ArrowUpSvg = function ArrowUpSvg(_ref) {
|
|
184
136
|
var _ref$size = _ref.size,
|
|
185
137
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
186
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
138
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
187
139
|
return React__default.createElement(Center, {
|
|
188
140
|
width: size + "px",
|
|
189
141
|
height: size + "px"
|
|
@@ -221,13 +173,13 @@ var ArrowUpSvg = function ArrowUpSvg(_ref) {
|
|
|
221
173
|
})))))));
|
|
222
174
|
};
|
|
223
175
|
|
|
224
|
-
var _excluded$
|
|
176
|
+
var _excluded$2 = ["size", "color"];
|
|
225
177
|
var CheckSvg = function CheckSvg(_ref) {
|
|
226
178
|
var _ref$size = _ref.size,
|
|
227
179
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
228
180
|
_ref$color = _ref.color,
|
|
229
181
|
color = _ref$color === void 0 ? 'white' : _ref$color,
|
|
230
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
182
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
231
183
|
return React__default.createElement(Center, {
|
|
232
184
|
width: size + "px",
|
|
233
185
|
height: size + "px"
|
|
@@ -257,13 +209,13 @@ var CheckSvg = function CheckSvg(_ref) {
|
|
|
257
209
|
}))));
|
|
258
210
|
};
|
|
259
211
|
|
|
260
|
-
var _excluded$
|
|
212
|
+
var _excluded$3 = ["size", "color"];
|
|
261
213
|
var CloseSvg = function CloseSvg(_ref) {
|
|
262
214
|
var _ref$size = _ref.size,
|
|
263
215
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
264
216
|
_ref$color = _ref.color,
|
|
265
217
|
color = _ref$color === void 0 ? 'white' : _ref$color,
|
|
266
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
218
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
|
267
219
|
return React__default.createElement(Center, {
|
|
268
220
|
width: size + "px",
|
|
269
221
|
height: size + "px"
|
|
@@ -288,13 +240,13 @@ var CloseSvg = function CloseSvg(_ref) {
|
|
|
288
240
|
}))));
|
|
289
241
|
};
|
|
290
242
|
|
|
291
|
-
var _excluded$
|
|
243
|
+
var _excluded$4 = ["size", "color"];
|
|
292
244
|
var CloseEyeSvg = function CloseEyeSvg(_ref) {
|
|
293
245
|
var _ref$size = _ref.size,
|
|
294
246
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
295
247
|
_ref$color = _ref.color,
|
|
296
248
|
color = _ref$color === void 0 ? '#2F4858' : _ref$color,
|
|
297
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
249
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
298
250
|
return React__default.createElement(Center, {
|
|
299
251
|
width: size + "px",
|
|
300
252
|
height: size + "px"
|
|
@@ -319,13 +271,13 @@ var CloseEyeSvg = function CloseEyeSvg(_ref) {
|
|
|
319
271
|
}))));
|
|
320
272
|
};
|
|
321
273
|
|
|
322
|
-
var _excluded$
|
|
274
|
+
var _excluded$5 = ["size", "color"];
|
|
323
275
|
var ExternalLinkSvg = function ExternalLinkSvg(_ref) {
|
|
324
276
|
var _ref$size = _ref.size,
|
|
325
277
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
326
278
|
_ref$color = _ref.color,
|
|
327
279
|
color = _ref$color === void 0 ? 'white' : _ref$color,
|
|
328
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
280
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
329
281
|
return React__default.createElement(Center, {
|
|
330
282
|
width: size + "px",
|
|
331
283
|
height: size + "px"
|
|
@@ -354,13 +306,13 @@ var ExternalLinkSvg = function ExternalLinkSvg(_ref) {
|
|
|
354
306
|
}))));
|
|
355
307
|
};
|
|
356
308
|
|
|
357
|
-
var _excluded$
|
|
309
|
+
var _excluded$6 = ["size", "color"];
|
|
358
310
|
var IndeterminateSvg = function IndeterminateSvg(_ref) {
|
|
359
311
|
var _ref$size = _ref.size,
|
|
360
312
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
361
313
|
_ref$color = _ref.color,
|
|
362
314
|
color = _ref$color === void 0 ? 'white' : _ref$color,
|
|
363
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
315
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
364
316
|
return React__default.createElement(Center, {
|
|
365
317
|
width: size + "px",
|
|
366
318
|
height: size + "px"
|
|
@@ -386,13 +338,13 @@ var IndeterminateSvg = function IndeterminateSvg(_ref) {
|
|
|
386
338
|
}), ' ')));
|
|
387
339
|
};
|
|
388
340
|
|
|
389
|
-
var _excluded$
|
|
341
|
+
var _excluded$7 = ["size", "color"];
|
|
390
342
|
var OpenEyeSvg = function OpenEyeSvg(_ref) {
|
|
391
343
|
var _ref$size = _ref.size,
|
|
392
344
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
393
345
|
_ref$color = _ref.color,
|
|
394
346
|
color = _ref$color === void 0 ? '#2F4858' : _ref$color,
|
|
395
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
347
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
396
348
|
return React__default.createElement(Center, {
|
|
397
349
|
width: size + "px",
|
|
398
350
|
height: size + "px"
|
|
@@ -417,13 +369,13 @@ var OpenEyeSvg = function OpenEyeSvg(_ref) {
|
|
|
417
369
|
}))));
|
|
418
370
|
};
|
|
419
371
|
|
|
420
|
-
var _excluded$
|
|
372
|
+
var _excluded$8 = ["size", "color"];
|
|
421
373
|
var WarningSvg = function WarningSvg(_ref) {
|
|
422
374
|
var _ref$size = _ref.size,
|
|
423
375
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
424
376
|
_ref$color = _ref.color,
|
|
425
377
|
color = _ref$color === void 0 ? 'white' : _ref$color,
|
|
426
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
378
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
427
379
|
return React__default.createElement(Center, {
|
|
428
380
|
width: size + "px",
|
|
429
381
|
height: size + "px"
|
|
@@ -446,13 +398,13 @@ var WarningSvg = function WarningSvg(_ref) {
|
|
|
446
398
|
})))))));
|
|
447
399
|
};
|
|
448
400
|
|
|
449
|
-
var _excluded$
|
|
401
|
+
var _excluded$9 = ["size", "color"];
|
|
450
402
|
var SuccessSvg = function SuccessSvg(_ref) {
|
|
451
403
|
var _ref$size = _ref.size,
|
|
452
404
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
453
405
|
_ref$color = _ref.color,
|
|
454
406
|
color = _ref$color === void 0 ? 'white' : _ref$color,
|
|
455
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
407
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
456
408
|
return React__default.createElement(Center, {
|
|
457
409
|
width: size + "px",
|
|
458
410
|
height: size + "px"
|
|
@@ -476,13 +428,13 @@ var SuccessSvg = function SuccessSvg(_ref) {
|
|
|
476
428
|
}))))));
|
|
477
429
|
};
|
|
478
430
|
|
|
479
|
-
var _excluded$
|
|
431
|
+
var _excluded$a = ["size", "color"];
|
|
480
432
|
var InfoSvg = function InfoSvg(_ref) {
|
|
481
433
|
var _ref$size = _ref.size,
|
|
482
434
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
483
435
|
_ref$color = _ref.color,
|
|
484
436
|
color = _ref$color === void 0 ? 'white' : _ref$color,
|
|
485
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
437
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
486
438
|
return React__default.createElement(Center, {
|
|
487
439
|
width: size + "px",
|
|
488
440
|
height: size + "px"
|
|
@@ -505,13 +457,13 @@ var InfoSvg = function InfoSvg(_ref) {
|
|
|
505
457
|
})))))));
|
|
506
458
|
};
|
|
507
459
|
|
|
508
|
-
var _excluded$
|
|
460
|
+
var _excluded$b = ["size", "color"];
|
|
509
461
|
var ErrorSvg = function ErrorSvg(_ref) {
|
|
510
462
|
var _ref$size = _ref.size,
|
|
511
463
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
512
464
|
_ref$color = _ref.color,
|
|
513
465
|
color = _ref$color === void 0 ? 'white' : _ref$color,
|
|
514
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
466
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
515
467
|
return React__default.createElement(Center, {
|
|
516
468
|
width: size + "px",
|
|
517
469
|
height: size + "px"
|
|
@@ -554,7 +506,7 @@ var IconSizes = {
|
|
|
554
506
|
'6xl': 64
|
|
555
507
|
};
|
|
556
508
|
|
|
557
|
-
var _excluded$
|
|
509
|
+
var _excluded$c = ["children", "href", "iconSize", "underline", "isHovered", "isExternal", "styles", "setIsHovered"];
|
|
558
510
|
var LinkView = function LinkView(_ref) {
|
|
559
511
|
var children = _ref.children,
|
|
560
512
|
_ref$href = _ref.href,
|
|
@@ -574,7 +526,7 @@ var LinkView = function LinkView(_ref) {
|
|
|
574
526
|
} : _ref$styles,
|
|
575
527
|
_ref$setIsHovered = _ref.setIsHovered,
|
|
576
528
|
setIsHovered = _ref$setIsHovered === void 0 ? function () {} : _ref$setIsHovered,
|
|
577
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
529
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
578
530
|
var handleHover = function handleHover() {
|
|
579
531
|
if (underline === 'hover') setIsHovered(true);
|
|
580
532
|
};
|
|
@@ -709,6 +661,34 @@ var IconSizes$1 = {
|
|
|
709
661
|
}
|
|
710
662
|
};
|
|
711
663
|
|
|
664
|
+
var Top = function Top(props) {
|
|
665
|
+
return React__default.createElement(appStudio.View, Object.assign({
|
|
666
|
+
marginBottom: "auto"
|
|
667
|
+
}, props));
|
|
668
|
+
};
|
|
669
|
+
var Bottom = function Bottom(props) {
|
|
670
|
+
return React__default.createElement(appStudio.View, Object.assign({
|
|
671
|
+
marginTop: "auto"
|
|
672
|
+
}, props));
|
|
673
|
+
};
|
|
674
|
+
var Left = function Left(props) {
|
|
675
|
+
return React__default.createElement(appStudio.View, Object.assign({
|
|
676
|
+
marginRight: "auto"
|
|
677
|
+
}, props));
|
|
678
|
+
};
|
|
679
|
+
var Right = function Right(props) {
|
|
680
|
+
return React__default.createElement(appStudio.View, Object.assign({
|
|
681
|
+
marginLeft: "auto"
|
|
682
|
+
}, props));
|
|
683
|
+
};
|
|
684
|
+
var Inline = function Inline(props) {
|
|
685
|
+
return React__default.createElement(appStudio.View, Object.assign({
|
|
686
|
+
display: 'inline-flex',
|
|
687
|
+
wordBreak: "break-word"
|
|
688
|
+
}, props));
|
|
689
|
+
};
|
|
690
|
+
var View = appStudio.View;
|
|
691
|
+
|
|
712
692
|
var DefaultSizes = {
|
|
713
693
|
xs: 14,
|
|
714
694
|
sm: 18,
|
|
@@ -727,7 +707,7 @@ var DefaultSpeeds = {
|
|
|
727
707
|
slow: 300
|
|
728
708
|
};
|
|
729
709
|
|
|
730
|
-
var _excluded$
|
|
710
|
+
var _excluded$d = ["size", "speed", "color"],
|
|
731
711
|
_excluded2 = ["size", "speed", "color"],
|
|
732
712
|
_excluded3 = ["size", "speed", "color"],
|
|
733
713
|
_excluded4 = ["size", "children", "textColor", "loaderColor", "type", "speed", "textPosition"];
|
|
@@ -738,7 +718,7 @@ var DefaultSpinner = function DefaultSpinner(_ref) {
|
|
|
738
718
|
speed = _ref$speed === void 0 ? 'normal' : _ref$speed,
|
|
739
719
|
_ref$color = _ref.color,
|
|
740
720
|
color = _ref$color === void 0 ? 'theme.loading' : _ref$color,
|
|
741
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
721
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
742
722
|
var theme = appStudio.useTheme();
|
|
743
723
|
var colorStyle = theme.getColor(color);
|
|
744
724
|
var sizeStyle = typeof size === 'number' ? size : DefaultSizes[size];
|
|
@@ -912,7 +892,7 @@ var LoaderComponent = function LoaderComponent(props) {
|
|
|
912
892
|
*/
|
|
913
893
|
var Loader = LoaderComponent;
|
|
914
894
|
|
|
915
|
-
var _excluded$
|
|
895
|
+
var _excluded$e = ["icon", "shadow", "children", "ariaLabel", "externalHref", "isAuto", "isFilled", "isIconRounded", "isLoading", "isDisabled", "size", "variant", "iconPosition", "colorScheme", "shape", "onClick", "loaderProps", "loaderPosition", "effect", "isHovered"];
|
|
916
896
|
var contrast = /*#__PURE__*/require('contrast');
|
|
917
897
|
var ButtonView = function ButtonView(_ref) {
|
|
918
898
|
var _props$onClick;
|
|
@@ -950,7 +930,7 @@ var ButtonView = function ButtonView(_ref) {
|
|
|
950
930
|
_ref$effect = _ref.effect,
|
|
951
931
|
effect = _ref$effect === void 0 ? 'default' : _ref$effect,
|
|
952
932
|
isHovered = _ref.isHovered,
|
|
953
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
933
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
|
954
934
|
var _useTheme = appStudio.useTheme(),
|
|
955
935
|
getColor = _useTheme.getColor;
|
|
956
936
|
var isActive = !(isDisabled || isLoading);
|
|
@@ -1122,7 +1102,7 @@ var HeadingSizes = {
|
|
|
1122
1102
|
}
|
|
1123
1103
|
};
|
|
1124
1104
|
|
|
1125
|
-
var _excluded$
|
|
1105
|
+
var _excluded$f = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
|
|
1126
1106
|
var LabelView = function LabelView(_ref) {
|
|
1127
1107
|
var children = _ref.children,
|
|
1128
1108
|
heading = _ref.heading,
|
|
@@ -1136,7 +1116,7 @@ var LabelView = function LabelView(_ref) {
|
|
|
1136
1116
|
weight = _ref$weight === void 0 ? 'normal' : _ref$weight,
|
|
1137
1117
|
_ref$size = _ref.size,
|
|
1138
1118
|
size = _ref$size === void 0 ? 'sm' : _ref$size,
|
|
1139
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1119
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
|
|
1140
1120
|
// The fontStyle prop toggles between 'italic' and 'normal' based on the 'isItalic' boolean prop.
|
|
1141
1121
|
var headingStyles = heading ? HeadingSizes[heading] : {};
|
|
1142
1122
|
// fontWeight is derived from the Typography module, ensuring consistent font weighting across the app.
|
|
@@ -1256,7 +1236,7 @@ var HeadingSizes$1 = {
|
|
|
1256
1236
|
}
|
|
1257
1237
|
};
|
|
1258
1238
|
|
|
1259
|
-
var _excluded$
|
|
1239
|
+
var _excluded$g = ["children", "heading", "maxLines", "isItalic", "isUnderlined", "isSub", "isSup", "isStriked", "isTruncated", "weight", "size"];
|
|
1260
1240
|
var TextContent = function TextContent(_ref) {
|
|
1261
1241
|
var children = _ref.children,
|
|
1262
1242
|
isSub = _ref.isSub,
|
|
@@ -1320,7 +1300,7 @@ var TextView = function TextView(_ref3) {
|
|
|
1320
1300
|
weight = _ref3$weight === void 0 ? 'normal' : _ref3$weight,
|
|
1321
1301
|
_ref3$size = _ref3.size,
|
|
1322
1302
|
size = _ref3$size === void 0 ? 'md' : _ref3$size,
|
|
1323
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded$
|
|
1303
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded$g);
|
|
1324
1304
|
var headingStyles = heading ? HeadingSizes$1[heading] : {};
|
|
1325
1305
|
var noLineBreak = isSub || isSup ? {
|
|
1326
1306
|
display: 'inline'
|
|
@@ -1350,7 +1330,7 @@ var TextComponent = function TextComponent(props) {
|
|
|
1350
1330
|
*/
|
|
1351
1331
|
var Text = TextComponent;
|
|
1352
1332
|
|
|
1353
|
-
var _excluded$
|
|
1333
|
+
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"];
|
|
1354
1334
|
var CheckboxView = function CheckboxView(_ref) {
|
|
1355
1335
|
var id = _ref.id,
|
|
1356
1336
|
icon = _ref.icon,
|
|
@@ -1388,7 +1368,7 @@ var CheckboxView = function CheckboxView(_ref) {
|
|
|
1388
1368
|
label: {}
|
|
1389
1369
|
} : _ref$styles,
|
|
1390
1370
|
infoText = _ref.infoText,
|
|
1391
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1371
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
1392
1372
|
var handleHover = function handleHover() {
|
|
1393
1373
|
return setIsHovered(!isHovered);
|
|
1394
1374
|
};
|
|
@@ -2942,14 +2922,14 @@ var useCountryPickerState = function useCountryPickerState(_ref) {
|
|
|
2942
2922
|
};
|
|
2943
2923
|
};
|
|
2944
2924
|
|
|
2945
|
-
var _excluded$
|
|
2925
|
+
var _excluded$i = ["children", "styles"];
|
|
2946
2926
|
var HelperText = function HelperText(_ref) {
|
|
2947
2927
|
var children = _ref.children,
|
|
2948
2928
|
_ref$styles = _ref.styles,
|
|
2949
2929
|
styles = _ref$styles === void 0 ? {
|
|
2950
2930
|
helperText: {}
|
|
2951
2931
|
} : _ref$styles,
|
|
2952
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2932
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
2953
2933
|
return React__default.createElement(Text, Object.assign({
|
|
2954
2934
|
size: "xs",
|
|
2955
2935
|
marginVertical: 0,
|
|
@@ -2958,22 +2938,21 @@ var HelperText = function HelperText(_ref) {
|
|
|
2958
2938
|
}, styles['helperText'], props), children);
|
|
2959
2939
|
};
|
|
2960
2940
|
|
|
2961
|
-
var _excluded$
|
|
2941
|
+
var _excluded$j = ["wrap", "justifyContent", "isReversed"];
|
|
2962
2942
|
var VerticalView = function VerticalView(_ref) {
|
|
2963
|
-
var
|
|
2964
|
-
_ref$wrap
|
|
2965
|
-
|
|
2966
|
-
_ref$
|
|
2967
|
-
justify = _ref$justify === void 0 ? 'flex-start' : _ref$justify,
|
|
2943
|
+
var _ref$wrap = _ref.wrap,
|
|
2944
|
+
wrap = _ref$wrap === void 0 ? 'wrap' : _ref$wrap,
|
|
2945
|
+
_ref$justifyContent = _ref.justifyContent,
|
|
2946
|
+
justifyContent = _ref$justifyContent === void 0 ? 'flex-start' : _ref$justifyContent,
|
|
2968
2947
|
_ref$isReversed = _ref.isReversed,
|
|
2969
2948
|
isReversed = _ref$isReversed === void 0 ? false : _ref$isReversed,
|
|
2970
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2949
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
2971
2950
|
return React__default.createElement(appStudio.View, Object.assign({
|
|
2972
2951
|
display: "flex",
|
|
2973
2952
|
flexWrap: wrap,
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
}, props)
|
|
2953
|
+
justifyContent: justifyContent,
|
|
2954
|
+
flexDirection: isReversed ? 'column-reverse' : 'column'
|
|
2955
|
+
}, props));
|
|
2977
2956
|
};
|
|
2978
2957
|
|
|
2979
2958
|
/**
|
|
@@ -2984,14 +2963,14 @@ var VerticalComponent = function VerticalComponent(props) {
|
|
|
2984
2963
|
};
|
|
2985
2964
|
var Vertical = VerticalComponent;
|
|
2986
2965
|
|
|
2987
|
-
var _excluded$
|
|
2966
|
+
var _excluded$k = ["children", "helperText", "error", "styles"];
|
|
2988
2967
|
var FieldContainer = function FieldContainer(_ref) {
|
|
2989
2968
|
var children = _ref.children,
|
|
2990
2969
|
helperText = _ref.helperText,
|
|
2991
2970
|
_ref$error = _ref.error,
|
|
2992
2971
|
error = _ref$error === void 0 ? false : _ref$error,
|
|
2993
2972
|
styles = _ref.styles,
|
|
2994
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2973
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
|
2995
2974
|
return React__default.createElement(Vertical, Object.assign({
|
|
2996
2975
|
gap: 5,
|
|
2997
2976
|
position: "relative"
|
|
@@ -3050,7 +3029,7 @@ var PaddingWithoutLabel = {
|
|
|
3050
3029
|
paddingRight: 36
|
|
3051
3030
|
};
|
|
3052
3031
|
|
|
3053
|
-
var _excluded$
|
|
3032
|
+
var _excluded$l = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "isWithLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "colorScheme", "styles"];
|
|
3054
3033
|
var FieldContent = function FieldContent(_ref) {
|
|
3055
3034
|
var shadow = _ref.shadow,
|
|
3056
3035
|
children = _ref.children,
|
|
@@ -3078,7 +3057,7 @@ var FieldContent = function FieldContent(_ref) {
|
|
|
3078
3057
|
styles = _ref$styles === void 0 ? {
|
|
3079
3058
|
pickerBox: {}
|
|
3080
3059
|
} : _ref$styles,
|
|
3081
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3060
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
3082
3061
|
var isInteractive = (isHovered || isFocused) && !isDisabled;
|
|
3083
3062
|
var color = error ? 'error' : isInteractive ? colorScheme : 'midgray';
|
|
3084
3063
|
return React__default.createElement(Horizontal, Object.assign({
|
|
@@ -3099,10 +3078,10 @@ var FieldContent = function FieldContent(_ref) {
|
|
|
3099
3078
|
}, isWithLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant], styles['box'], props), children);
|
|
3100
3079
|
};
|
|
3101
3080
|
|
|
3102
|
-
var _excluded$
|
|
3081
|
+
var _excluded$m = ["children"];
|
|
3103
3082
|
var FieldIcons = function FieldIcons(_ref) {
|
|
3104
3083
|
var children = _ref.children,
|
|
3105
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3084
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
|
|
3106
3085
|
return React__default.createElement(Center, Object.assign({
|
|
3107
3086
|
gap: 10,
|
|
3108
3087
|
right: 16,
|
|
@@ -3112,7 +3091,7 @@ var FieldIcons = function FieldIcons(_ref) {
|
|
|
3112
3091
|
}, props), children);
|
|
3113
3092
|
};
|
|
3114
3093
|
|
|
3115
|
-
var _excluded$
|
|
3094
|
+
var _excluded$n = ["children", "size", "error", "color", "styles"];
|
|
3116
3095
|
var FieldLabel = function FieldLabel(_ref) {
|
|
3117
3096
|
var children = _ref.children,
|
|
3118
3097
|
_ref$size = _ref.size,
|
|
@@ -3125,7 +3104,7 @@ var FieldLabel = function FieldLabel(_ref) {
|
|
|
3125
3104
|
styles = _ref$styles === void 0 ? {
|
|
3126
3105
|
label: {}
|
|
3127
3106
|
} : _ref$styles,
|
|
3128
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3107
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
3129
3108
|
return React__default.createElement(Label, Object.assign({
|
|
3130
3109
|
top: 6,
|
|
3131
3110
|
zIndex: 1000,
|
|
@@ -3138,10 +3117,10 @@ var FieldLabel = function FieldLabel(_ref) {
|
|
|
3138
3117
|
}, styles['label'], props), children);
|
|
3139
3118
|
};
|
|
3140
3119
|
|
|
3141
|
-
var _excluded$
|
|
3120
|
+
var _excluded$o = ["children"];
|
|
3142
3121
|
var FieldWrapper = function FieldWrapper(_ref) {
|
|
3143
3122
|
var children = _ref.children,
|
|
3144
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3123
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
|
|
3145
3124
|
return React__default.createElement(Vertical, Object.assign({
|
|
3146
3125
|
width: "100%"
|
|
3147
3126
|
}, props), children);
|
|
@@ -3155,7 +3134,7 @@ var IconSizes$3 = {
|
|
|
3155
3134
|
xl: 16
|
|
3156
3135
|
};
|
|
3157
3136
|
|
|
3158
|
-
var _excluded$
|
|
3137
|
+
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"];
|
|
3159
3138
|
var CountryList = function CountryList(props) {
|
|
3160
3139
|
return React__default.createElement(appStudio.Element, Object.assign({
|
|
3161
3140
|
as: "ul"
|
|
@@ -3295,7 +3274,7 @@ var CountryPickerView = function CountryPickerView(_ref3) {
|
|
|
3295
3274
|
helperText: {},
|
|
3296
3275
|
box: {}
|
|
3297
3276
|
} : _ref3$styles,
|
|
3298
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded$
|
|
3277
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded$p);
|
|
3299
3278
|
var _useTheme = appStudio.useTheme(),
|
|
3300
3279
|
getColor = _useTheme.getColor;
|
|
3301
3280
|
var IconColor = getColor('color.blueGray.700');
|
|
@@ -3433,7 +3412,7 @@ var useDatePickerState = function useDatePickerState() {
|
|
|
3433
3412
|
};
|
|
3434
3413
|
};
|
|
3435
3414
|
|
|
3436
|
-
var _excluded$
|
|
3415
|
+
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"];
|
|
3437
3416
|
var DatePickerContent = function DatePickerContent(props) {
|
|
3438
3417
|
return React__default.createElement(appStudio.Input, Object.assign({
|
|
3439
3418
|
type: "date"
|
|
@@ -3481,7 +3460,7 @@ var DatePickerView = function DatePickerView(_ref) {
|
|
|
3481
3460
|
setIsHovered = _ref$setIsHovered === void 0 ? function () {} : _ref$setIsHovered,
|
|
3482
3461
|
onChange = _ref.onChange,
|
|
3483
3462
|
onChangeText = _ref.onChangeText,
|
|
3484
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3463
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
|
|
3485
3464
|
var isWithLabel = !!(isFocused && label);
|
|
3486
3465
|
var handleHover = function handleHover() {
|
|
3487
3466
|
return setIsHovered(!isHovered);
|
|
@@ -3606,7 +3585,7 @@ var usePasswordState = function usePasswordState(props) {
|
|
|
3606
3585
|
}, props, textFieldStates);
|
|
3607
3586
|
};
|
|
3608
3587
|
|
|
3609
|
-
var _excluded$
|
|
3588
|
+
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"];
|
|
3610
3589
|
var TextFieldInput = function TextFieldInput(props) {
|
|
3611
3590
|
return React__default.createElement(appStudio.Input, Object.assign({
|
|
3612
3591
|
type: "text"
|
|
@@ -3664,7 +3643,7 @@ var TextFieldView = function TextFieldView(_ref) {
|
|
|
3664
3643
|
onFocus = _ref.onFocus,
|
|
3665
3644
|
_ref$onBlur = _ref.onBlur,
|
|
3666
3645
|
onBlur = _ref$onBlur === void 0 ? function () {} : _ref$onBlur,
|
|
3667
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3646
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
|
|
3668
3647
|
var _useTheme = appStudio.useTheme(),
|
|
3669
3648
|
getColor = _useTheme.getColor;
|
|
3670
3649
|
var IconColor = getColor('color.blueGray.700');
|
|
@@ -3772,7 +3751,7 @@ var TextFieldView = function TextFieldView(_ref) {
|
|
|
3772
3751
|
}), rightChild && React__default.createElement(React__default.Fragment, null, rightChild))));
|
|
3773
3752
|
};
|
|
3774
3753
|
|
|
3775
|
-
var _excluded$
|
|
3754
|
+
var _excluded$s = ["visibleIcon", "hiddenIcon"],
|
|
3776
3755
|
_excluded2$1 = ["isVisible", "setIsVisible"];
|
|
3777
3756
|
var PasswordComponent = function PasswordComponent(_ref) {
|
|
3778
3757
|
var _ref$visibleIcon = _ref.visibleIcon,
|
|
@@ -3783,7 +3762,7 @@ var PasswordComponent = function PasswordComponent(_ref) {
|
|
|
3783
3762
|
hiddenIcon = _ref$hiddenIcon === void 0 ? React__default.createElement(CloseEyeSvg, {
|
|
3784
3763
|
size: 14
|
|
3785
3764
|
}) : _ref$hiddenIcon,
|
|
3786
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3765
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
|
|
3787
3766
|
var _usePasswordState = usePasswordState(props),
|
|
3788
3767
|
isVisible = _usePasswordState.isVisible,
|
|
3789
3768
|
setIsVisible = _usePasswordState.setIsVisible,
|
|
@@ -3856,7 +3835,7 @@ var IconSizes$4 = {
|
|
|
3856
3835
|
xl: 16
|
|
3857
3836
|
};
|
|
3858
3837
|
|
|
3859
|
-
var _excluded$
|
|
3838
|
+
var _excluded$t = ["isHovered", "setIsHovered", "option", "size", "callback", "style"],
|
|
3860
3839
|
_excluded2$2 = ["id", "name", "value", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
|
|
3861
3840
|
_excluded3$1 = ["option", "size", "removeOption"],
|
|
3862
3841
|
_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"];
|
|
@@ -3869,7 +3848,7 @@ var Item = function Item(_ref) {
|
|
|
3869
3848
|
_ref$callback = _ref.callback,
|
|
3870
3849
|
callback = _ref$callback === void 0 ? function () {} : _ref$callback,
|
|
3871
3850
|
style = _ref.style,
|
|
3872
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3851
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
3873
3852
|
var handleOptionClick = function handleOptionClick(option) {
|
|
3874
3853
|
return callback(option);
|
|
3875
3854
|
};
|
|
@@ -4365,7 +4344,7 @@ var SliderPadding = {
|
|
|
4365
4344
|
}
|
|
4366
4345
|
};
|
|
4367
4346
|
|
|
4368
|
-
var _excluded$
|
|
4347
|
+
var _excluded$u = ["id", "name", "label", "inActiveChild", "activeChild", "labelPosition", "shadow", "size", "colorScheme", "value", "isHovered", "isDisabled", "isReadOnly", "onChange", "setValue", "setIsHovered", "styles"];
|
|
4369
4348
|
var SwitchContent = function SwitchContent(props) {
|
|
4370
4349
|
return React__default.createElement(appStudio.Input, Object.assign({
|
|
4371
4350
|
type: "checkbox"
|
|
@@ -4404,7 +4383,7 @@ var SwitchView = function SwitchView(_ref) {
|
|
|
4404
4383
|
circle: {},
|
|
4405
4384
|
label: {}
|
|
4406
4385
|
} : _ref$styles,
|
|
4407
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4386
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
|
|
4408
4387
|
var handleToggle = function handleToggle(event) {
|
|
4409
4388
|
if (!isReadOnly) {
|
|
4410
4389
|
setValue(!value);
|
|
@@ -4490,7 +4469,7 @@ var useTextAreaState = function useTextAreaState(_ref) {
|
|
|
4490
4469
|
};
|
|
4491
4470
|
};
|
|
4492
4471
|
|
|
4493
|
-
var _excluded$
|
|
4472
|
+
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"];
|
|
4494
4473
|
var TextAreaView = function TextAreaView(_ref) {
|
|
4495
4474
|
var id = _ref.id,
|
|
4496
4475
|
name = _ref.name,
|
|
@@ -4545,7 +4524,7 @@ var TextAreaView = function TextAreaView(_ref) {
|
|
|
4545
4524
|
helperText: {},
|
|
4546
4525
|
field: {}
|
|
4547
4526
|
} : _ref$styles,
|
|
4548
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4527
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
|
|
4549
4528
|
var isWithLabel = !!(isFocused && label);
|
|
4550
4529
|
var fieldStyles = _extends({
|
|
4551
4530
|
margin: 0,
|
|
@@ -4713,7 +4692,7 @@ var FormikForm = function FormikForm(_ref) {
|
|
|
4713
4692
|
}, React__default.createElement(appStudio.Form, null, children));
|
|
4714
4693
|
};
|
|
4715
4694
|
|
|
4716
|
-
var _excluded$
|
|
4695
|
+
var _excluded$w = ["name", "type"];
|
|
4717
4696
|
var getInputTypeProps = function getInputTypeProps(type) {
|
|
4718
4697
|
switch (type) {
|
|
4719
4698
|
case 'email':
|
|
@@ -4743,7 +4722,7 @@ var getInputTypeProps = function getInputTypeProps(type) {
|
|
|
4743
4722
|
var useFormikInput = function useFormikInput(_ref) {
|
|
4744
4723
|
var name = _ref.name,
|
|
4745
4724
|
type = _ref.type,
|
|
4746
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4725
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
|
|
4747
4726
|
var focus = useFormFocus();
|
|
4748
4727
|
var _useFormikContext = formik.useFormikContext(),
|
|
4749
4728
|
touched = _useFormikContext.touched,
|
|
@@ -4790,11 +4769,11 @@ var useFormikInput = function useFormikInput(_ref) {
|
|
|
4790
4769
|
// import FormRater from 'src/Rate/Rate';
|
|
4791
4770
|
// import Upload from 'src/Upload/Upload';
|
|
4792
4771
|
|
|
4793
|
-
var _excluded$
|
|
4772
|
+
var _excluded$x = ["value"];
|
|
4794
4773
|
var CheckboxComponent$1 = function CheckboxComponent(props) {
|
|
4795
4774
|
var _useFormikInput = useFormikInput(props),
|
|
4796
4775
|
value = _useFormikInput.value,
|
|
4797
|
-
formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$
|
|
4776
|
+
formProps = _objectWithoutPropertiesLoose(_useFormikInput, _excluded$x);
|
|
4798
4777
|
formProps.isChecked = value;
|
|
4799
4778
|
var checkboxStates = useCheckboxState(props);
|
|
4800
4779
|
return React__default.createElement(CheckboxView, Object.assign({}, checkboxStates, formProps));
|
|
@@ -4856,11 +4835,11 @@ var TextAreaComponent$1 = function TextAreaComponent(props) {
|
|
|
4856
4835
|
*/
|
|
4857
4836
|
var FormikTextArea = TextAreaComponent$1;
|
|
4858
4837
|
|
|
4859
|
-
var _excluded$
|
|
4838
|
+
var _excluded$y = ["value"];
|
|
4860
4839
|
var TextFieldComponent$1 = function TextFieldComponent(props) {
|
|
4861
4840
|
var formProps = useFormikInput(props);
|
|
4862
4841
|
var _useTextFieldState = useTextFieldState(props),
|
|
4863
|
-
textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$
|
|
4842
|
+
textFieldStates = _objectWithoutPropertiesLoose(_useTextFieldState, _excluded$y);
|
|
4864
4843
|
return React__default.createElement(TextFieldView, Object.assign({}, textFieldStates, formProps));
|
|
4865
4844
|
};
|
|
4866
4845
|
/**
|
|
@@ -4868,7 +4847,7 @@ var TextFieldComponent$1 = function TextFieldComponent(props) {
|
|
|
4868
4847
|
*/
|
|
4869
4848
|
var FormikTextField = TextFieldComponent$1;
|
|
4870
4849
|
|
|
4871
|
-
var _excluded$
|
|
4850
|
+
var _excluded$z = ["visibleIcon", "hiddenIcon"],
|
|
4872
4851
|
_excluded2$3 = ["isVisible", "setIsVisible"];
|
|
4873
4852
|
var PasswordComponent$1 = function PasswordComponent(_ref) {
|
|
4874
4853
|
var _ref$visibleIcon = _ref.visibleIcon,
|
|
@@ -4879,7 +4858,7 @@ var PasswordComponent$1 = function PasswordComponent(_ref) {
|
|
|
4879
4858
|
hiddenIcon = _ref$hiddenIcon === void 0 ? React__default.createElement(CloseEyeSvg, {
|
|
4880
4859
|
size: 14
|
|
4881
4860
|
}) : _ref$hiddenIcon,
|
|
4882
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4861
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
|
|
4883
4862
|
var formProps = useFormikInput(props);
|
|
4884
4863
|
var _usePasswordState = usePasswordState(formProps),
|
|
4885
4864
|
isVisible = _usePasswordState.isVisible,
|
|
@@ -4942,11 +4921,11 @@ var useComboBoxState = function useComboBoxState(items, placeholder, searchPlace
|
|
|
4942
4921
|
};
|
|
4943
4922
|
};
|
|
4944
4923
|
|
|
4945
|
-
var _excluded$
|
|
4924
|
+
var _excluded$A = ["size", "color"];
|
|
4946
4925
|
var TickSvg = function TickSvg(_ref) {
|
|
4947
4926
|
var _ref$size = _ref.size,
|
|
4948
4927
|
size = _ref$size === void 0 ? 16 : _ref$size,
|
|
4949
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4928
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
|
|
4950
4929
|
return React__default.createElement(Center, {
|
|
4951
4930
|
width: size + "px",
|
|
4952
4931
|
height: size + "px"
|
|
@@ -4974,13 +4953,13 @@ var TickSvg = function TickSvg(_ref) {
|
|
|
4974
4953
|
}), ' ')));
|
|
4975
4954
|
};
|
|
4976
4955
|
|
|
4977
|
-
var _excluded$
|
|
4956
|
+
var _excluded$B = ["size", "color"];
|
|
4978
4957
|
var SearchLoopSvg = function SearchLoopSvg(_ref) {
|
|
4979
4958
|
var _ref$size = _ref.size,
|
|
4980
4959
|
size = _ref$size === void 0 ? 14 : _ref$size,
|
|
4981
4960
|
_ref$color = _ref.color,
|
|
4982
4961
|
color = _ref$color === void 0 ? '#c0c0c0' : _ref$color,
|
|
4983
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4962
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$B);
|
|
4984
4963
|
return React__default.createElement(Center, {
|
|
4985
4964
|
width: size + "px",
|
|
4986
4965
|
height: size + "px"
|
|
@@ -5007,7 +4986,7 @@ var SearchLoopSvg = function SearchLoopSvg(_ref) {
|
|
|
5007
4986
|
}), ' ')))));
|
|
5008
4987
|
};
|
|
5009
4988
|
|
|
5010
|
-
var _excluded$
|
|
4989
|
+
var _excluded$C = ["placeholder", "items", "showTick", "onSelect", "searchEnabled", "left", "right", "label", "filteredItems", "setSelectedItem", "selectedItem", "highlightedIndex", "setHighlightedIndex", "searchQuery", "setSearchQuery", "setFilteredItems", "styles", "isDropdownVisible", "setIsDropdownVisible"];
|
|
5011
4990
|
// Defines the functional component 'ComboBoxView' with destructured props.
|
|
5012
4991
|
var ComboBoxView = function ComboBoxView(_ref) {
|
|
5013
4992
|
var placeholder = _ref.placeholder,
|
|
@@ -5031,7 +5010,7 @@ var ComboBoxView = function ComboBoxView(_ref) {
|
|
|
5031
5010
|
styles = _ref.styles,
|
|
5032
5011
|
isDropdownVisible = _ref.isDropdownVisible,
|
|
5033
5012
|
setIsDropdownVisible = _ref.setIsDropdownVisible,
|
|
5034
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5013
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$C);
|
|
5035
5014
|
// Sets up an effect to handle clicking outside the dropdown to close it.
|
|
5036
5015
|
React.useEffect(function () {
|
|
5037
5016
|
var handleClickOutside = function handleClickOutside(event) {
|
|
@@ -5087,7 +5066,7 @@ var ComboBoxView = function ComboBoxView(_ref) {
|
|
|
5087
5066
|
display: "flex",
|
|
5088
5067
|
alignItems: "center",
|
|
5089
5068
|
borderRadius: "4px",
|
|
5090
|
-
|
|
5069
|
+
justifyContent: "space-between",
|
|
5091
5070
|
minWidth: 300,
|
|
5092
5071
|
wrap: "nowrap"
|
|
5093
5072
|
}, styles == null ? void 0 : styles.container), React__default.createElement(Horizontal, Object.assign({
|
|
@@ -5140,7 +5119,7 @@ var ComboBoxView = function ComboBoxView(_ref) {
|
|
|
5140
5119
|
padding: 4
|
|
5141
5120
|
}, filteredItems.map(function (item, index) {
|
|
5142
5121
|
return React__default.createElement(Horizontal, Object.assign({
|
|
5143
|
-
|
|
5122
|
+
justifyContent: "space-between",
|
|
5144
5123
|
key: item.value,
|
|
5145
5124
|
padding: "12px",
|
|
5146
5125
|
cursor: "pointer",
|
|
@@ -5156,12 +5135,12 @@ var ComboBoxView = function ComboBoxView(_ref) {
|
|
|
5156
5135
|
}))))));
|
|
5157
5136
|
};
|
|
5158
5137
|
|
|
5159
|
-
var _excluded$
|
|
5138
|
+
var _excluded$D = ["items", "placeholder", "searchPlaceholder"];
|
|
5160
5139
|
var ComboBoxComponent = function ComboBoxComponent(_ref) {
|
|
5161
5140
|
var items = _ref.items,
|
|
5162
5141
|
placeholder = _ref.placeholder,
|
|
5163
5142
|
searchPlaceholder = _ref.searchPlaceholder,
|
|
5164
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5143
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$D);
|
|
5165
5144
|
var formProps = useFormikInput(props);
|
|
5166
5145
|
var ComboBoxStates = useComboBoxState(items, placeholder, searchPlaceholder);
|
|
5167
5146
|
// Ensure the onChange function from formProps is being called when an item is selected
|
|
@@ -5262,7 +5241,7 @@ var HeaderIconSizes = {
|
|
|
5262
5241
|
xl: 28
|
|
5263
5242
|
};
|
|
5264
5243
|
|
|
5265
|
-
var _excluded$
|
|
5244
|
+
var _excluded$E = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position"],
|
|
5266
5245
|
_excluded2$4 = ["children", "shadow", "isFullScreen", "shape"],
|
|
5267
5246
|
_excluded3$2 = ["children", "buttonColor", "iconSize", "buttonPosition"],
|
|
5268
5247
|
_excluded4$2 = ["children"],
|
|
@@ -5278,7 +5257,7 @@ var ModalOverlay = function ModalOverlay(_ref) {
|
|
|
5278
5257
|
onClose = _ref$onClose === void 0 ? function () {} : _ref$onClose,
|
|
5279
5258
|
_ref$position = _ref.position,
|
|
5280
5259
|
position = _ref$position === void 0 ? 'center' : _ref$position,
|
|
5281
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5260
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$E);
|
|
5282
5261
|
var handleClick = function handleClick() {
|
|
5283
5262
|
if (!isClosePrevented) onClose();
|
|
5284
5263
|
};
|
|
@@ -5432,12 +5411,12 @@ Modal.Body = ModalBody;
|
|
|
5432
5411
|
Modal.Footer = ModalFooter;
|
|
5433
5412
|
Modal.Layout = ModalLayout;
|
|
5434
5413
|
|
|
5435
|
-
var _excluded$
|
|
5414
|
+
var _excluded$F = ["src", "color"],
|
|
5436
5415
|
_excluded2$5 = ["path"];
|
|
5437
5416
|
var FileSVG = function FileSVG(_ref) {
|
|
5438
5417
|
var src = _ref.src,
|
|
5439
5418
|
color = _ref.color,
|
|
5440
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5419
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$F);
|
|
5441
5420
|
var _useTheme = appStudio.useTheme(),
|
|
5442
5421
|
getColor = _useTheme.getColor;
|
|
5443
5422
|
var Colorprops = color ? {
|
|
@@ -5656,13 +5635,13 @@ var AlertComponent = function AlertComponent(_ref) {
|
|
|
5656
5635
|
// Exporting the AlertComponent as 'Alert' for use in other parts of the application.
|
|
5657
5636
|
var Alert = AlertComponent;
|
|
5658
5637
|
|
|
5659
|
-
var _excluded$
|
|
5638
|
+
var _excluded$G = ["ratio", "children"];
|
|
5660
5639
|
// Declaration of a functional component named AspectRatioView.
|
|
5661
5640
|
var AspectRatioView = function AspectRatioView(_ref) {
|
|
5662
5641
|
var _ref$ratio = _ref.ratio,
|
|
5663
5642
|
ratio = _ref$ratio === void 0 ? 16 / 9 : _ref$ratio,
|
|
5664
5643
|
children = _ref.children,
|
|
5665
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5644
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$G);
|
|
5666
5645
|
return React__default.createElement(Center, Object.assign({
|
|
5667
5646
|
width: '100%',
|
|
5668
5647
|
position: "relative",
|
|
@@ -5678,12 +5657,12 @@ var AspectRatioView = function AspectRatioView(_ref) {
|
|
|
5678
5657
|
}, children));
|
|
5679
5658
|
};
|
|
5680
5659
|
|
|
5681
|
-
var _excluded$
|
|
5660
|
+
var _excluded$H = ["ratio", "children"];
|
|
5682
5661
|
// Declaration of the AspectRatioComponent functional component with destructured props.
|
|
5683
5662
|
var AspectRatioComponent = function AspectRatioComponent(_ref) {
|
|
5684
5663
|
var ratio = _ref.ratio,
|
|
5685
5664
|
children = _ref.children,
|
|
5686
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5665
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$H);
|
|
5687
5666
|
// Beginning of the return statement in the functional component.
|
|
5688
5667
|
return React__default.createElement(AspectRatioView, Object.assign({
|
|
5689
5668
|
ratio: ratio
|
|
@@ -5937,7 +5916,7 @@ var ToggleShapes = {
|
|
|
5937
5916
|
pillShaped: 24
|
|
5938
5917
|
};
|
|
5939
5918
|
|
|
5940
|
-
var _excluded$
|
|
5919
|
+
var _excluded$I = ["children", "shape", "colorScheme", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle"];
|
|
5941
5920
|
var ToggleView = function ToggleView(_ref) {
|
|
5942
5921
|
var children = _ref.children,
|
|
5943
5922
|
_ref$shape = _ref.shape,
|
|
@@ -5952,7 +5931,7 @@ var ToggleView = function ToggleView(_ref) {
|
|
|
5952
5931
|
isToggle = _ref.isToggle,
|
|
5953
5932
|
setIsToggled = _ref.setIsToggled,
|
|
5954
5933
|
onToggle = _ref.onToggle,
|
|
5955
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5934
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$I);
|
|
5956
5935
|
var toggleColor = !isDisabled ? colorScheme : 'theme.disabled';
|
|
5957
5936
|
var isActive = !!(isToggle || isHovered);
|
|
5958
5937
|
var ToggleVariants = {
|
|
@@ -5998,7 +5977,7 @@ var ToggleView = function ToggleView(_ref) {
|
|
|
5998
5977
|
}, ToggleVariants[variant], props), children);
|
|
5999
5978
|
};
|
|
6000
5979
|
|
|
6001
|
-
var _excluded$
|
|
5980
|
+
var _excluded$J = ["children", "shape", "colorScheme", "variant", "isDisabled", "isToggled", "onToggle"];
|
|
6002
5981
|
// Destructuring properties from ToggleProps to be used within the ToggleComponent.
|
|
6003
5982
|
var ToggleComponent = function ToggleComponent(_ref) {
|
|
6004
5983
|
var children = _ref.children,
|
|
@@ -6009,7 +5988,7 @@ var ToggleComponent = function ToggleComponent(_ref) {
|
|
|
6009
5988
|
_ref$isToggled = _ref.isToggled,
|
|
6010
5989
|
isToggled = _ref$isToggled === void 0 ? false : _ref$isToggled,
|
|
6011
5990
|
onToggle = _ref.onToggle,
|
|
6012
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5991
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$J);
|
|
6013
5992
|
// Initializing toggle state and set state functions using the custom hook useToggleState.
|
|
6014
5993
|
var _useToggleState = useToggleState(isToggled),
|
|
6015
5994
|
isHovered = _useToggleState.isHovered,
|