@app-studio/web 0.3.27 → 0.3.29
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/web.esm.js
CHANGED
|
@@ -276,12 +276,43 @@ var CloseSvg = function CloseSvg(_ref) {
|
|
|
276
276
|
};
|
|
277
277
|
|
|
278
278
|
var _excluded$6 = ["size", "color"];
|
|
279
|
+
var CloseEyeSvg = function CloseEyeSvg(_ref) {
|
|
280
|
+
var _ref$size = _ref.size,
|
|
281
|
+
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
282
|
+
_ref$color = _ref.color,
|
|
283
|
+
color = _ref$color === void 0 ? '#2F4858' : _ref$color,
|
|
284
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
285
|
+
return React.createElement(Center, {
|
|
286
|
+
width: size + "px",
|
|
287
|
+
height: size + "px"
|
|
288
|
+
}, React.createElement("svg", Object.assign({
|
|
289
|
+
viewBox: "0 0 24 24",
|
|
290
|
+
fill: "none",
|
|
291
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
292
|
+
}, props), React.createElement("g", {
|
|
293
|
+
id: "SVGRepo_bgCarrier",
|
|
294
|
+
strokeWidth: "0"
|
|
295
|
+
}), React.createElement("g", {
|
|
296
|
+
id: "SVGRepo_tracerCarrier",
|
|
297
|
+
strokeLinecap: "round",
|
|
298
|
+
strokeLinejoin: "round"
|
|
299
|
+
}), React.createElement("g", {
|
|
300
|
+
id: "SVGRepo_iconCarrier"
|
|
301
|
+
}, React.createElement("path", {
|
|
302
|
+
fillRule: "evenodd",
|
|
303
|
+
clipRule: "evenodd",
|
|
304
|
+
d: "M19.7071 5.70711C20.0976 5.31658 20.0976 4.68342 19.7071 4.29289C19.3166 3.90237 18.6834 3.90237 18.2929 4.29289L14.032 8.55382C13.4365 8.20193 12.7418 8 12 8C9.79086 8 8 9.79086 8 12C8 12.7418 8.20193 13.4365 8.55382 14.032L4.29289 18.2929C3.90237 18.6834 3.90237 19.3166 4.29289 19.7071C4.68342 20.0976 5.31658 20.0976 5.70711 19.7071L9.96803 15.4462C10.5635 15.7981 11.2582 16 12 16C14.2091 16 16 14.2091 16 12C16 11.2582 15.7981 10.5635 15.4462 9.96803L19.7071 5.70711ZM12.518 10.0677C12.3528 10.0236 12.1792 10 12 10C10.8954 10 10 10.8954 10 12C10 12.1792 10.0236 12.3528 10.0677 12.518L12.518 10.0677ZM11.482 13.9323L13.9323 11.482C13.9764 11.6472 14 11.8208 14 12C14 13.1046 13.1046 14 12 14C11.8208 14 11.6472 13.9764 11.482 13.9323ZM15.7651 4.8207C14.6287 4.32049 13.3675 4 12 4C9.14754 4 6.75717 5.39462 4.99812 6.90595C3.23268 8.42276 2.00757 10.1376 1.46387 10.9698C1.05306 11.5985 1.05306 12.4015 1.46387 13.0302C1.92276 13.7326 2.86706 15.0637 4.21194 16.3739L5.62626 14.9596C4.4555 13.8229 3.61144 12.6531 3.18002 12C3.6904 11.2274 4.77832 9.73158 6.30147 8.42294C7.87402 7.07185 9.81574 6 12 6C12.7719 6 13.5135 6.13385 14.2193 6.36658L15.7651 4.8207ZM12 18C11.2282 18 10.4866 17.8661 9.78083 17.6334L8.23496 19.1793C9.37136 19.6795 10.6326 20 12 20C14.8525 20 17.2429 18.6054 19.002 17.0941C20.7674 15.5772 21.9925 13.8624 22.5362 13.0302C22.947 12.4015 22.947 11.5985 22.5362 10.9698C22.0773 10.2674 21.133 8.93627 19.7881 7.62611L18.3738 9.04043C19.5446 10.1771 20.3887 11.3469 20.8201 12C20.3097 12.7726 19.2218 14.2684 17.6986 15.5771C16.1261 16.9282 14.1843 18 12 18Z",
|
|
305
|
+
fill: color
|
|
306
|
+
}))));
|
|
307
|
+
};
|
|
308
|
+
|
|
309
|
+
var _excluded$7 = ["size", "color"];
|
|
279
310
|
var ExternalLinkSvg = function ExternalLinkSvg(_ref) {
|
|
280
311
|
var _ref$size = _ref.size,
|
|
281
312
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
282
313
|
_ref$color = _ref.color,
|
|
283
314
|
color = _ref$color === void 0 ? 'white' : _ref$color,
|
|
284
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
315
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
285
316
|
return React.createElement(Center, {
|
|
286
317
|
width: size + "px",
|
|
287
318
|
height: size + "px"
|
|
@@ -310,13 +341,13 @@ var ExternalLinkSvg = function ExternalLinkSvg(_ref) {
|
|
|
310
341
|
}))));
|
|
311
342
|
};
|
|
312
343
|
|
|
313
|
-
var _excluded$
|
|
344
|
+
var _excluded$8 = ["size", "color"];
|
|
314
345
|
var IndeterminateSvg = function IndeterminateSvg(_ref) {
|
|
315
346
|
var _ref$size = _ref.size,
|
|
316
347
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
317
348
|
_ref$color = _ref.color,
|
|
318
349
|
color = _ref$color === void 0 ? 'white' : _ref$color,
|
|
319
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
350
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
320
351
|
return React.createElement(Center, {
|
|
321
352
|
width: size + "px",
|
|
322
353
|
height: size + "px"
|
|
@@ -342,6 +373,37 @@ var IndeterminateSvg = function IndeterminateSvg(_ref) {
|
|
|
342
373
|
}), ' ')));
|
|
343
374
|
};
|
|
344
375
|
|
|
376
|
+
var _excluded$9 = ["size", "color"];
|
|
377
|
+
var OpenEyeSvg = function OpenEyeSvg(_ref) {
|
|
378
|
+
var _ref$size = _ref.size,
|
|
379
|
+
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
380
|
+
_ref$color = _ref.color,
|
|
381
|
+
color = _ref$color === void 0 ? '#2F4858' : _ref$color,
|
|
382
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
383
|
+
return React.createElement(Center, {
|
|
384
|
+
width: size + "px",
|
|
385
|
+
height: size + "px"
|
|
386
|
+
}, React.createElement("svg", Object.assign({
|
|
387
|
+
viewBox: "0 0 24 24",
|
|
388
|
+
fill: "none",
|
|
389
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
390
|
+
}, props), React.createElement("g", {
|
|
391
|
+
id: "SVGRepo_bgCarrier",
|
|
392
|
+
strokeWidth: "0"
|
|
393
|
+
}), React.createElement("g", {
|
|
394
|
+
id: "SVGRepo_tracerCarrier",
|
|
395
|
+
strokeLinecap: "round",
|
|
396
|
+
strokeLinejoin: "round"
|
|
397
|
+
}), React.createElement("g", {
|
|
398
|
+
id: "SVGRepo_iconCarrier"
|
|
399
|
+
}, React.createElement("path", {
|
|
400
|
+
fillRule: "evenodd",
|
|
401
|
+
clipRule: "evenodd",
|
|
402
|
+
d: "M6.30147 15.5771C4.77832 14.2684 3.6904 12.7726 3.18002 12C3.6904 11.2274 4.77832 9.73158 6.30147 8.42294C7.87402 7.07185 9.81574 6 12 6C14.1843 6 16.1261 7.07185 17.6986 8.42294C19.2218 9.73158 20.3097 11.2274 20.8201 12C20.3097 12.7726 19.2218 14.2684 17.6986 15.5771C16.1261 16.9282 14.1843 18 12 18C9.81574 18 7.87402 16.9282 6.30147 15.5771ZM12 4C9.14754 4 6.75717 5.39462 4.99812 6.90595C3.23268 8.42276 2.00757 10.1376 1.46387 10.9698C1.05306 11.5985 1.05306 12.4015 1.46387 13.0302C2.00757 13.8624 3.23268 15.5772 4.99812 17.0941C6.75717 18.6054 9.14754 20 12 20C14.8525 20 17.2429 18.6054 19.002 17.0941C20.7674 15.5772 21.9925 13.8624 22.5362 13.0302C22.947 12.4015 22.947 11.5985 22.5362 10.9698C21.9925 10.1376 20.7674 8.42276 19.002 6.90595C17.2429 5.39462 14.8525 4 12 4ZM10 12C10 10.8954 10.8955 10 12 10C13.1046 10 14 10.8954 14 12C14 13.1046 13.1046 14 12 14C10.8955 14 10 13.1046 10 12ZM12 8C9.7909 8 8.00004 9.79086 8.00004 12C8.00004 14.2091 9.7909 16 12 16C14.2092 16 16 14.2091 16 12C16 9.79086 14.2092 8 12 8Z",
|
|
403
|
+
fill: color
|
|
404
|
+
}))));
|
|
405
|
+
};
|
|
406
|
+
|
|
345
407
|
var IconSizes = {
|
|
346
408
|
xs: 12,
|
|
347
409
|
sm: 14,
|
|
@@ -355,7 +417,7 @@ var IconSizes = {
|
|
|
355
417
|
'6xl': 64
|
|
356
418
|
};
|
|
357
419
|
|
|
358
|
-
var _excluded$
|
|
420
|
+
var _excluded$a = ["children", "href", "iconSize", "underline", "isHovered", "isExternal", "colorScheme", "styles", "setIsHovered"];
|
|
359
421
|
var LinkView = function LinkView(_ref) {
|
|
360
422
|
var children = _ref.children,
|
|
361
423
|
_ref$href = _ref.href,
|
|
@@ -377,7 +439,7 @@ var LinkView = function LinkView(_ref) {
|
|
|
377
439
|
} : _ref$styles,
|
|
378
440
|
_ref$setIsHovered = _ref.setIsHovered,
|
|
379
441
|
setIsHovered = _ref$setIsHovered === void 0 ? function () {} : _ref$setIsHovered,
|
|
380
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
442
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
381
443
|
var handleHover = function handleHover() {
|
|
382
444
|
if (underline === 'hover') setIsHovered(true);
|
|
383
445
|
};
|
|
@@ -499,7 +561,7 @@ var IconSizes$1 = {
|
|
|
499
561
|
}
|
|
500
562
|
};
|
|
501
563
|
|
|
502
|
-
var _excluded$
|
|
564
|
+
var _excluded$b = ["icon", "shadow", "children", "ariaLabel", "externalHref", "isAuto", "isFilled", "isIconRounded", "isLoader", "isDisabled", "size", "variant", "iconPosition", "colorScheme", "shape", "onClick"];
|
|
503
565
|
var ButtonView = function ButtonView(_ref) {
|
|
504
566
|
var _props$onClick;
|
|
505
567
|
var icon = _ref.icon,
|
|
@@ -529,7 +591,7 @@ var ButtonView = function ButtonView(_ref) {
|
|
|
529
591
|
shape = _ref$shape === void 0 ? 'rounded' : _ref$shape,
|
|
530
592
|
_ref$onClick = _ref.onClick,
|
|
531
593
|
onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
|
|
532
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
594
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
533
595
|
var isActive = !(isDisabled || isLoader);
|
|
534
596
|
var defaultNativeProps = {
|
|
535
597
|
disabled: !isActive
|
|
@@ -658,7 +720,7 @@ var HeadingSizes = {
|
|
|
658
720
|
}
|
|
659
721
|
};
|
|
660
722
|
|
|
661
|
-
var _excluded$
|
|
723
|
+
var _excluded$c = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
|
|
662
724
|
var LabelView = function LabelView(_ref) {
|
|
663
725
|
var children = _ref.children,
|
|
664
726
|
heading = _ref.heading,
|
|
@@ -672,7 +734,7 @@ var LabelView = function LabelView(_ref) {
|
|
|
672
734
|
weight = _ref$weight === void 0 ? 'normal' : _ref$weight,
|
|
673
735
|
_ref$size = _ref.size,
|
|
674
736
|
size = _ref$size === void 0 ? 'sm' : _ref$size,
|
|
675
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
737
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
676
738
|
var headingStyles = heading ? HeadingSizes[heading] : {};
|
|
677
739
|
return React.createElement(Element, Object.assign({
|
|
678
740
|
as: "label",
|
|
@@ -744,7 +806,7 @@ var IconSizes$2 = {
|
|
|
744
806
|
'6xl': 60
|
|
745
807
|
};
|
|
746
808
|
|
|
747
|
-
var _excluded$
|
|
809
|
+
var _excluded$d = ["id", "icon", "name", "label", "isChecked", "onChange", "onValueChange", "shadow", "size", "colorScheme", "error", "isSelected", "isHovered", "isDisabled", "isReadOnly", "isIndeterminate", "defaultIsSelected", "setIsSelected", "setIsHovered", "styles"];
|
|
748
810
|
var CheckboxView = function CheckboxView(_ref) {
|
|
749
811
|
var id = _ref.id,
|
|
750
812
|
icon = _ref.icon,
|
|
@@ -779,7 +841,7 @@ var CheckboxView = function CheckboxView(_ref) {
|
|
|
779
841
|
checkbox: {},
|
|
780
842
|
label: {}
|
|
781
843
|
} : _ref$styles,
|
|
782
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
844
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
783
845
|
var handleHover = function handleHover() {
|
|
784
846
|
return setIsHovered(!isHovered);
|
|
785
847
|
};
|
|
@@ -2323,7 +2385,7 @@ var useCountryPickerState = function useCountryPickerState(_ref) {
|
|
|
2323
2385
|
};
|
|
2324
2386
|
};
|
|
2325
2387
|
|
|
2326
|
-
var _excluded$
|
|
2388
|
+
var _excluded$e = ["children", "wrap", "justify", "isReversed"];
|
|
2327
2389
|
var VerticalView = function VerticalView(_ref) {
|
|
2328
2390
|
var children = _ref.children,
|
|
2329
2391
|
_ref$wrap = _ref.wrap,
|
|
@@ -2332,7 +2394,7 @@ var VerticalView = function VerticalView(_ref) {
|
|
|
2332
2394
|
justify = _ref$justify === void 0 ? 'flex-start' : _ref$justify,
|
|
2333
2395
|
_ref$isReversed = _ref.isReversed,
|
|
2334
2396
|
isReversed = _ref$isReversed === void 0 ? false : _ref$isReversed,
|
|
2335
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2397
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
|
2336
2398
|
return React.createElement(View$1, Object.assign({
|
|
2337
2399
|
display: "flex",
|
|
2338
2400
|
flexWrap: wrap,
|
|
@@ -2382,7 +2444,7 @@ var HeadingSizes$1 = {
|
|
|
2382
2444
|
}
|
|
2383
2445
|
};
|
|
2384
2446
|
|
|
2385
|
-
var _excluded$
|
|
2447
|
+
var _excluded$f = ["children", "heading", "maxLines", "isItalic", "isUnderlined", "isSub", "isSup", "isStriked", "isTruncated", "weight", "size"];
|
|
2386
2448
|
var TextContent = function TextContent(_ref) {
|
|
2387
2449
|
var children = _ref.children,
|
|
2388
2450
|
isSub = _ref.isSub,
|
|
@@ -2439,7 +2501,7 @@ var TextView = function TextView(_ref3) {
|
|
|
2439
2501
|
weight = _ref3$weight === void 0 ? 'normal' : _ref3$weight,
|
|
2440
2502
|
_ref3$size = _ref3.size,
|
|
2441
2503
|
size = _ref3$size === void 0 ? 'md' : _ref3$size,
|
|
2442
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded$
|
|
2504
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded$f);
|
|
2443
2505
|
var headingStyles = heading ? HeadingSizes$1[heading] : {};
|
|
2444
2506
|
var noLineBreak = isSub || isSup ? {
|
|
2445
2507
|
display: 'inline'
|
|
@@ -2469,14 +2531,14 @@ var TextComponent = function TextComponent(props) {
|
|
|
2469
2531
|
*/
|
|
2470
2532
|
var Text = TextComponent;
|
|
2471
2533
|
|
|
2472
|
-
var _excluded$
|
|
2534
|
+
var _excluded$g = ["children", "styles"];
|
|
2473
2535
|
var HelperText = function HelperText(_ref) {
|
|
2474
2536
|
var children = _ref.children,
|
|
2475
2537
|
_ref$styles = _ref.styles,
|
|
2476
2538
|
styles = _ref$styles === void 0 ? {
|
|
2477
2539
|
helperText: {}
|
|
2478
2540
|
} : _ref$styles,
|
|
2479
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2541
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
2480
2542
|
return React.createElement(Text, Object.assign({
|
|
2481
2543
|
size: "xs",
|
|
2482
2544
|
marginVertical: 0,
|
|
@@ -2485,14 +2547,14 @@ var HelperText = function HelperText(_ref) {
|
|
|
2485
2547
|
}, styles['helperText'], props), children);
|
|
2486
2548
|
};
|
|
2487
2549
|
|
|
2488
|
-
var _excluded$
|
|
2550
|
+
var _excluded$h = ["children", "helperText", "error", "styles"];
|
|
2489
2551
|
var FieldContainer = function FieldContainer(_ref) {
|
|
2490
2552
|
var children = _ref.children,
|
|
2491
2553
|
helperText = _ref.helperText,
|
|
2492
2554
|
_ref$error = _ref.error,
|
|
2493
2555
|
error = _ref$error === void 0 ? false : _ref$error,
|
|
2494
2556
|
styles = _ref.styles,
|
|
2495
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2557
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
2496
2558
|
return React.createElement(Vertical, Object.assign({
|
|
2497
2559
|
gap: 5,
|
|
2498
2560
|
position: "relative"
|
|
@@ -2551,7 +2613,7 @@ var PaddingWithoutLabel = {
|
|
|
2551
2613
|
paddingRight: 36
|
|
2552
2614
|
};
|
|
2553
2615
|
|
|
2554
|
-
var _excluded$
|
|
2616
|
+
var _excluded$i = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "isWithLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "colorScheme", "styles"];
|
|
2555
2617
|
var FieldContent = function FieldContent(_ref) {
|
|
2556
2618
|
var shadow = _ref.shadow,
|
|
2557
2619
|
children = _ref.children,
|
|
@@ -2579,7 +2641,7 @@ var FieldContent = function FieldContent(_ref) {
|
|
|
2579
2641
|
styles = _ref$styles === void 0 ? {
|
|
2580
2642
|
pickerBox: {}
|
|
2581
2643
|
} : _ref$styles,
|
|
2582
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2644
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
2583
2645
|
var isInteractive = (isHovered || isFocused) && !isDisabled;
|
|
2584
2646
|
var color = error ? 'error' : isInteractive ? colorScheme : 'midgray';
|
|
2585
2647
|
return React.createElement(Horizontal, Object.assign({
|
|
@@ -2599,10 +2661,10 @@ var FieldContent = function FieldContent(_ref) {
|
|
|
2599
2661
|
}, isWithLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant], styles['box'], props), children);
|
|
2600
2662
|
};
|
|
2601
2663
|
|
|
2602
|
-
var _excluded$
|
|
2664
|
+
var _excluded$j = ["children"];
|
|
2603
2665
|
var FieldIcons = function FieldIcons(_ref) {
|
|
2604
2666
|
var children = _ref.children,
|
|
2605
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2667
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
2606
2668
|
return React.createElement(Center, Object.assign({
|
|
2607
2669
|
gap: 10,
|
|
2608
2670
|
top: "50%",
|
|
@@ -2614,7 +2676,7 @@ var FieldIcons = function FieldIcons(_ref) {
|
|
|
2614
2676
|
}, props), children);
|
|
2615
2677
|
};
|
|
2616
2678
|
|
|
2617
|
-
var _excluded$
|
|
2679
|
+
var _excluded$k = ["children", "size", "error", "color", "styles"];
|
|
2618
2680
|
var FieldLabel = function FieldLabel(_ref) {
|
|
2619
2681
|
var children = _ref.children,
|
|
2620
2682
|
_ref$size = _ref.size,
|
|
@@ -2627,7 +2689,7 @@ var FieldLabel = function FieldLabel(_ref) {
|
|
|
2627
2689
|
styles = _ref$styles === void 0 ? {
|
|
2628
2690
|
label: {}
|
|
2629
2691
|
} : _ref$styles,
|
|
2630
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2692
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
|
2631
2693
|
return React.createElement(Label, Object.assign({
|
|
2632
2694
|
top: 6,
|
|
2633
2695
|
zIndex: 1000,
|
|
@@ -2640,10 +2702,10 @@ var FieldLabel = function FieldLabel(_ref) {
|
|
|
2640
2702
|
}, styles['label'], props), children);
|
|
2641
2703
|
};
|
|
2642
2704
|
|
|
2643
|
-
var _excluded$
|
|
2705
|
+
var _excluded$l = ["children"];
|
|
2644
2706
|
var FieldWrapper = function FieldWrapper(_ref) {
|
|
2645
2707
|
var children = _ref.children,
|
|
2646
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2708
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
2647
2709
|
return React.createElement(Vertical, Object.assign({
|
|
2648
2710
|
width: "100%"
|
|
2649
2711
|
}, props), children);
|
|
@@ -2657,7 +2719,7 @@ var IconSizes$3 = {
|
|
|
2657
2719
|
xl: 16
|
|
2658
2720
|
};
|
|
2659
2721
|
|
|
2660
|
-
var _excluded$
|
|
2722
|
+
var _excluded$m = ["id", "name", "label", "selected", "placeholder", "helperText", "hide", "error", "isHovered", "isFocused", "isAutoFocus", "isDisabled", "isReadOnly", "shadow", "newOptions", "size", "variant", "shape", "colorScheme", "onChange", "onBlur", "setHide", "setNewOptions", "setIsHovered", "setIsFocused", "setSelected", "styles"];
|
|
2661
2723
|
var CountryList = function CountryList(props) {
|
|
2662
2724
|
return React.createElement(Element, Object.assign({
|
|
2663
2725
|
as: "ul"
|
|
@@ -2797,7 +2859,7 @@ var CountryPickerView = function CountryPickerView(_ref3) {
|
|
|
2797
2859
|
helperText: {},
|
|
2798
2860
|
box: {}
|
|
2799
2861
|
} : _ref3$styles,
|
|
2800
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded$
|
|
2862
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded$m);
|
|
2801
2863
|
var _useTheme = useTheme(),
|
|
2802
2864
|
getColor = _useTheme.getColor;
|
|
2803
2865
|
var IconColor = getColor('color.blueGray.700');
|
|
@@ -2935,7 +2997,7 @@ var useDatePickerState = function useDatePickerState() {
|
|
|
2935
2997
|
};
|
|
2936
2998
|
};
|
|
2937
2999
|
|
|
2938
|
-
var _excluded$
|
|
3000
|
+
var _excluded$n = ["id", "icon", "name", "label", "date", "children", "helperText", "shadow", "size", "variant", "shape", "colorScheme", "styles", "error", "isHovered", "isFocused", "isDisabled", "isReadOnly", "setDate", "setIsFocused", "setIsHovered", "onChange", "onChangeText"];
|
|
2939
3001
|
var DatePickerContent = function DatePickerContent(props) {
|
|
2940
3002
|
return React.createElement(Input, Object.assign({
|
|
2941
3003
|
type: "date"
|
|
@@ -2983,7 +3045,7 @@ var DatePickerView = function DatePickerView(_ref) {
|
|
|
2983
3045
|
setIsHovered = _ref$setIsHovered === void 0 ? function () {} : _ref$setIsHovered,
|
|
2984
3046
|
onChange = _ref.onChange,
|
|
2985
3047
|
onChangeText = _ref.onChangeText,
|
|
2986
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3048
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
2987
3049
|
var isWithLabel = !!(isFocused && label);
|
|
2988
3050
|
var handleHover = function handleHover() {
|
|
2989
3051
|
return setIsHovered(!isHovered);
|
|
@@ -3104,7 +3166,7 @@ var useTextFieldState = function useTextFieldState(_ref) {
|
|
|
3104
3166
|
};
|
|
3105
3167
|
};
|
|
3106
3168
|
|
|
3107
|
-
var _excluded$
|
|
3169
|
+
var _excluded$o = ["id", "name", "label", "value", "hint", "inputValue", "onChange", "leftChild", "rightChild", "helperText", "placeholder", "onChangeText", "shadow", "styles", "size", "shape", "variant", "colorScheme", "error", "isFocused", "isHovered", "isDisabled", "isReadOnly", "isClearable", "isAutoFocus", "setHint", "setIsFocused", "setIsHovered", "setInputValue", "onClick", "onFocus", "onBlur"];
|
|
3108
3170
|
var TextFieldInput = function TextFieldInput(props) {
|
|
3109
3171
|
return React.createElement(Input, Object.assign({
|
|
3110
3172
|
type: "text"
|
|
@@ -3165,7 +3227,7 @@ var TextFieldView = function TextFieldView(_ref) {
|
|
|
3165
3227
|
onFocus = _ref.onFocus,
|
|
3166
3228
|
_ref$onBlur = _ref.onBlur,
|
|
3167
3229
|
onBlur = _ref$onBlur === void 0 ? function () {} : _ref$onBlur,
|
|
3168
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3230
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
|
|
3169
3231
|
var _useTheme = useTheme(),
|
|
3170
3232
|
getColor = _useTheme.getColor;
|
|
3171
3233
|
var IconColor = getColor('color.blueGray.700');
|
|
@@ -3289,18 +3351,24 @@ var TextFieldComponent = function TextFieldComponent(props) {
|
|
|
3289
3351
|
*/
|
|
3290
3352
|
var TextField = TextFieldComponent;
|
|
3291
3353
|
|
|
3292
|
-
var _excluded$
|
|
3354
|
+
var _excluded$p = ["name", "visibleIcon", "hiddenIcon", "isDisabled", "isVisible", "setIsVisible"];
|
|
3293
3355
|
var PasswordView = function PasswordView(_ref) {
|
|
3294
3356
|
var name = _ref.name,
|
|
3295
|
-
visibleIcon = _ref.visibleIcon,
|
|
3296
|
-
|
|
3357
|
+
_ref$visibleIcon = _ref.visibleIcon,
|
|
3358
|
+
visibleIcon = _ref$visibleIcon === void 0 ? React.createElement(OpenEyeSvg, {
|
|
3359
|
+
size: 14
|
|
3360
|
+
}) : _ref$visibleIcon,
|
|
3361
|
+
_ref$hiddenIcon = _ref.hiddenIcon,
|
|
3362
|
+
hiddenIcon = _ref$hiddenIcon === void 0 ? React.createElement(CloseEyeSvg, {
|
|
3363
|
+
size: 14
|
|
3364
|
+
}) : _ref$hiddenIcon,
|
|
3297
3365
|
_ref$isDisabled = _ref.isDisabled,
|
|
3298
3366
|
isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
|
|
3299
3367
|
_ref$isVisible = _ref.isVisible,
|
|
3300
3368
|
isVisible = _ref$isVisible === void 0 ? false : _ref$isVisible,
|
|
3301
3369
|
_ref$setIsVisible = _ref.setIsVisible,
|
|
3302
3370
|
setIsVisible = _ref$setIsVisible === void 0 ? function () {} : _ref$setIsVisible,
|
|
3303
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3371
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
3304
3372
|
return React.createElement(TextField, Object.assign({
|
|
3305
3373
|
name: name,
|
|
3306
3374
|
type: isVisible ? 'text' : 'password',
|
|
@@ -3368,7 +3436,7 @@ var IconSizes$4 = {
|
|
|
3368
3436
|
xl: 16
|
|
3369
3437
|
};
|
|
3370
3438
|
|
|
3371
|
-
var _excluded$
|
|
3439
|
+
var _excluded$q = ["isHovered", "setIsHovered", "option", "size", "callback"],
|
|
3372
3440
|
_excluded2 = ["id", "name", "selected", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
|
|
3373
3441
|
_excluded3 = ["option", "size", "removeOption"],
|
|
3374
3442
|
_excluded4 = ["id", "name", "label", "selected", "placeholder", "helperText", "hide", "error", "isMulti", "isFocused", "isHovered", "isDisabled", "isReadOnly", "options", "shadow", "size", "colorScheme", "shape", "variant", "styles", "onChange", "setHide", "setSelected", "setIsHovered", "setIsFocused"];
|
|
@@ -3380,7 +3448,7 @@ var Item = function Item(_ref) {
|
|
|
3380
3448
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
3381
3449
|
_ref$callback = _ref.callback,
|
|
3382
3450
|
callback = _ref$callback === void 0 ? function () {} : _ref$callback,
|
|
3383
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3451
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
|
|
3384
3452
|
var handleOptionClick = function handleOptionClick(option) {
|
|
3385
3453
|
return callback(option);
|
|
3386
3454
|
};
|
|
@@ -3850,7 +3918,7 @@ var SliderPadding = {
|
|
|
3850
3918
|
}
|
|
3851
3919
|
};
|
|
3852
3920
|
|
|
3853
|
-
var _excluded$
|
|
3921
|
+
var _excluded$r = ["id", "name", "inActiveChild", "activeChild", "shadow", "size", "colorScheme", "on", "isHovered", "isChecked", "isDisabled", "isReadOnly", "onChange", "onValueChange", "setOn", "setIsHovered", "styles"];
|
|
3854
3922
|
var SwitchContent = function SwitchContent(props) {
|
|
3855
3923
|
return React.createElement(Input, Object.assign({
|
|
3856
3924
|
type: "checkbox"
|
|
@@ -3886,7 +3954,7 @@ var SwitchView = function SwitchView(_ref) {
|
|
|
3886
3954
|
slider: {},
|
|
3887
3955
|
circle: {}
|
|
3888
3956
|
} : _ref$styles,
|
|
3889
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3957
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
|
|
3890
3958
|
var handleToggle = function handleToggle(event) {
|
|
3891
3959
|
if (!isReadOnly) {
|
|
3892
3960
|
setOn(!on);
|
|
@@ -3962,7 +4030,7 @@ var useTextAreaState = function useTextAreaState(_ref) {
|
|
|
3962
4030
|
};
|
|
3963
4031
|
};
|
|
3964
4032
|
|
|
3965
|
-
var _excluded$
|
|
4033
|
+
var _excluded$s = ["id", "name", "hint", "error", "value", "label", "shadow", "inputValue", "helperText", "placeholder", "defaultValue", "size", "shape", "variant", "colorScheme", "isHovered", "isFocused", "isEditable", "isReadOnly", "isDisabled", "isAutoFocus", "isMultiline", "maxRows", "maxCols", "onBlur", "onChange", "onFocus", "onChangeText", "setHint", "setInputValue", "setIsFocused", "setIsHovered", "styles"];
|
|
3966
4034
|
var TextAreaView = function TextAreaView(_ref) {
|
|
3967
4035
|
var id = _ref.id,
|
|
3968
4036
|
name = _ref.name,
|
|
@@ -4020,7 +4088,7 @@ var TextAreaView = function TextAreaView(_ref) {
|
|
|
4020
4088
|
helperText: {},
|
|
4021
4089
|
field: {}
|
|
4022
4090
|
} : _ref$styles,
|
|
4023
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4091
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
|
|
4024
4092
|
var isWithLabel = !!(isFocused && label);
|
|
4025
4093
|
useMemo(function () {
|
|
4026
4094
|
setHint(isFocused && !inputValue ? placeholder != null ? placeholder : '' : label != null ? label : placeholder);
|
|
@@ -4137,7 +4205,7 @@ var DefaultSpeeds = {
|
|
|
4137
4205
|
slow: 300
|
|
4138
4206
|
};
|
|
4139
4207
|
|
|
4140
|
-
var _excluded$
|
|
4208
|
+
var _excluded$t = ["size", "speed", "color"],
|
|
4141
4209
|
_excluded2$1 = ["size", "speed", "color"],
|
|
4142
4210
|
_excluded3$1 = ["size", "speed", "color"],
|
|
4143
4211
|
_excluded4$1 = ["size", "children", "textColor", "loaderColor", "type", "speed", "textPosition"];
|
|
@@ -4148,7 +4216,7 @@ var DefaultSpinner = function DefaultSpinner(_ref) {
|
|
|
4148
4216
|
speed = _ref$speed === void 0 ? 'normal' : _ref$speed,
|
|
4149
4217
|
_ref$color = _ref.color,
|
|
4150
4218
|
color = _ref$color === void 0 ? 'theme.loading' : _ref$color,
|
|
4151
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4219
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
4152
4220
|
var theme = useTheme();
|
|
4153
4221
|
var colorStyle = theme.getColor(color);
|
|
4154
4222
|
var sizeStyle = typeof size === 'number' ? size : DefaultSizes[size];
|
|
@@ -4398,7 +4466,7 @@ var HeaderIconSizes = {
|
|
|
4398
4466
|
xl: 28
|
|
4399
4467
|
};
|
|
4400
4468
|
|
|
4401
|
-
var _excluded$
|
|
4469
|
+
var _excluded$u = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position"],
|
|
4402
4470
|
_excluded2$2 = ["children", "shadow", "isFullScreen", "shape"],
|
|
4403
4471
|
_excluded3$2 = ["children", "buttonColor", "iconSize", "buttonPosition"],
|
|
4404
4472
|
_excluded4$2 = ["children"],
|
|
@@ -4414,7 +4482,7 @@ var ModalOverlay = function ModalOverlay(_ref) {
|
|
|
4414
4482
|
onClose = _ref$onClose === void 0 ? function () {} : _ref$onClose,
|
|
4415
4483
|
_ref$position = _ref.position,
|
|
4416
4484
|
position = _ref$position === void 0 ? 'center' : _ref$position,
|
|
4417
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4485
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
|
|
4418
4486
|
var handleClick = function handleClick() {
|
|
4419
4487
|
if (!isClosePrevented) onClose();
|
|
4420
4488
|
};
|
|
@@ -4571,12 +4639,12 @@ Modal.Body = ModalBody;
|
|
|
4571
4639
|
Modal.Footer = ModalFooter;
|
|
4572
4640
|
Modal.Layout = ModalLayout;
|
|
4573
4641
|
|
|
4574
|
-
var _excluded$
|
|
4642
|
+
var _excluded$v = ["src", "color"],
|
|
4575
4643
|
_excluded2$3 = ["path"];
|
|
4576
4644
|
var FileSVG = function FileSVG(_ref) {
|
|
4577
4645
|
var src = _ref.src,
|
|
4578
4646
|
color = _ref.color,
|
|
4579
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4647
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
|
|
4580
4648
|
var _useTheme = useTheme(),
|
|
4581
4649
|
getColor = _useTheme.getColor;
|
|
4582
4650
|
var Colorprops = color ? {
|