@app-studio/web 0.3.28 → 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
|
@@ -2,7 +2,6 @@ import React, { useState, useRef, useEffect, useMemo, useCallback, Fragment } fr
|
|
|
2
2
|
import { View as View$1, Element, Typography, useTheme, Input, Image } from 'app-studio';
|
|
3
3
|
import { Link as Link$1 } from 'react-router-dom';
|
|
4
4
|
import format from 'date-fns/format';
|
|
5
|
-
import { OpenEyeSvg, CloseEyeSvg } from 'src/components/Svg';
|
|
6
5
|
import { create } from 'zustand';
|
|
7
6
|
|
|
8
7
|
var useButtonState = function useButtonState() {
|
|
@@ -277,12 +276,43 @@ var CloseSvg = function CloseSvg(_ref) {
|
|
|
277
276
|
};
|
|
278
277
|
|
|
279
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"];
|
|
280
310
|
var ExternalLinkSvg = function ExternalLinkSvg(_ref) {
|
|
281
311
|
var _ref$size = _ref.size,
|
|
282
312
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
283
313
|
_ref$color = _ref.color,
|
|
284
314
|
color = _ref$color === void 0 ? 'white' : _ref$color,
|
|
285
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
315
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
286
316
|
return React.createElement(Center, {
|
|
287
317
|
width: size + "px",
|
|
288
318
|
height: size + "px"
|
|
@@ -311,13 +341,13 @@ var ExternalLinkSvg = function ExternalLinkSvg(_ref) {
|
|
|
311
341
|
}))));
|
|
312
342
|
};
|
|
313
343
|
|
|
314
|
-
var _excluded$
|
|
344
|
+
var _excluded$8 = ["size", "color"];
|
|
315
345
|
var IndeterminateSvg = function IndeterminateSvg(_ref) {
|
|
316
346
|
var _ref$size = _ref.size,
|
|
317
347
|
size = _ref$size === void 0 ? 64 : _ref$size,
|
|
318
348
|
_ref$color = _ref.color,
|
|
319
349
|
color = _ref$color === void 0 ? 'white' : _ref$color,
|
|
320
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
350
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
321
351
|
return React.createElement(Center, {
|
|
322
352
|
width: size + "px",
|
|
323
353
|
height: size + "px"
|
|
@@ -343,6 +373,37 @@ var IndeterminateSvg = function IndeterminateSvg(_ref) {
|
|
|
343
373
|
}), ' ')));
|
|
344
374
|
};
|
|
345
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
|
+
|
|
346
407
|
var IconSizes = {
|
|
347
408
|
xs: 12,
|
|
348
409
|
sm: 14,
|
|
@@ -356,7 +417,7 @@ var IconSizes = {
|
|
|
356
417
|
'6xl': 64
|
|
357
418
|
};
|
|
358
419
|
|
|
359
|
-
var _excluded$
|
|
420
|
+
var _excluded$a = ["children", "href", "iconSize", "underline", "isHovered", "isExternal", "colorScheme", "styles", "setIsHovered"];
|
|
360
421
|
var LinkView = function LinkView(_ref) {
|
|
361
422
|
var children = _ref.children,
|
|
362
423
|
_ref$href = _ref.href,
|
|
@@ -378,7 +439,7 @@ var LinkView = function LinkView(_ref) {
|
|
|
378
439
|
} : _ref$styles,
|
|
379
440
|
_ref$setIsHovered = _ref.setIsHovered,
|
|
380
441
|
setIsHovered = _ref$setIsHovered === void 0 ? function () {} : _ref$setIsHovered,
|
|
381
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
442
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
382
443
|
var handleHover = function handleHover() {
|
|
383
444
|
if (underline === 'hover') setIsHovered(true);
|
|
384
445
|
};
|
|
@@ -500,7 +561,7 @@ var IconSizes$1 = {
|
|
|
500
561
|
}
|
|
501
562
|
};
|
|
502
563
|
|
|
503
|
-
var _excluded$
|
|
564
|
+
var _excluded$b = ["icon", "shadow", "children", "ariaLabel", "externalHref", "isAuto", "isFilled", "isIconRounded", "isLoader", "isDisabled", "size", "variant", "iconPosition", "colorScheme", "shape", "onClick"];
|
|
504
565
|
var ButtonView = function ButtonView(_ref) {
|
|
505
566
|
var _props$onClick;
|
|
506
567
|
var icon = _ref.icon,
|
|
@@ -530,7 +591,7 @@ var ButtonView = function ButtonView(_ref) {
|
|
|
530
591
|
shape = _ref$shape === void 0 ? 'rounded' : _ref$shape,
|
|
531
592
|
_ref$onClick = _ref.onClick,
|
|
532
593
|
onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
|
|
533
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
594
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
534
595
|
var isActive = !(isDisabled || isLoader);
|
|
535
596
|
var defaultNativeProps = {
|
|
536
597
|
disabled: !isActive
|
|
@@ -659,7 +720,7 @@ var HeadingSizes = {
|
|
|
659
720
|
}
|
|
660
721
|
};
|
|
661
722
|
|
|
662
|
-
var _excluded$
|
|
723
|
+
var _excluded$c = ["children", "heading", "isItalic", "isUnderlined", "isStriked", "weight", "size"];
|
|
663
724
|
var LabelView = function LabelView(_ref) {
|
|
664
725
|
var children = _ref.children,
|
|
665
726
|
heading = _ref.heading,
|
|
@@ -673,7 +734,7 @@ var LabelView = function LabelView(_ref) {
|
|
|
673
734
|
weight = _ref$weight === void 0 ? 'normal' : _ref$weight,
|
|
674
735
|
_ref$size = _ref.size,
|
|
675
736
|
size = _ref$size === void 0 ? 'sm' : _ref$size,
|
|
676
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
737
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
677
738
|
var headingStyles = heading ? HeadingSizes[heading] : {};
|
|
678
739
|
return React.createElement(Element, Object.assign({
|
|
679
740
|
as: "label",
|
|
@@ -745,7 +806,7 @@ var IconSizes$2 = {
|
|
|
745
806
|
'6xl': 60
|
|
746
807
|
};
|
|
747
808
|
|
|
748
|
-
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"];
|
|
749
810
|
var CheckboxView = function CheckboxView(_ref) {
|
|
750
811
|
var id = _ref.id,
|
|
751
812
|
icon = _ref.icon,
|
|
@@ -780,7 +841,7 @@ var CheckboxView = function CheckboxView(_ref) {
|
|
|
780
841
|
checkbox: {},
|
|
781
842
|
label: {}
|
|
782
843
|
} : _ref$styles,
|
|
783
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
844
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
784
845
|
var handleHover = function handleHover() {
|
|
785
846
|
return setIsHovered(!isHovered);
|
|
786
847
|
};
|
|
@@ -2324,7 +2385,7 @@ var useCountryPickerState = function useCountryPickerState(_ref) {
|
|
|
2324
2385
|
};
|
|
2325
2386
|
};
|
|
2326
2387
|
|
|
2327
|
-
var _excluded$
|
|
2388
|
+
var _excluded$e = ["children", "wrap", "justify", "isReversed"];
|
|
2328
2389
|
var VerticalView = function VerticalView(_ref) {
|
|
2329
2390
|
var children = _ref.children,
|
|
2330
2391
|
_ref$wrap = _ref.wrap,
|
|
@@ -2333,7 +2394,7 @@ var VerticalView = function VerticalView(_ref) {
|
|
|
2333
2394
|
justify = _ref$justify === void 0 ? 'flex-start' : _ref$justify,
|
|
2334
2395
|
_ref$isReversed = _ref.isReversed,
|
|
2335
2396
|
isReversed = _ref$isReversed === void 0 ? false : _ref$isReversed,
|
|
2336
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2397
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
|
2337
2398
|
return React.createElement(View$1, Object.assign({
|
|
2338
2399
|
display: "flex",
|
|
2339
2400
|
flexWrap: wrap,
|
|
@@ -2383,7 +2444,7 @@ var HeadingSizes$1 = {
|
|
|
2383
2444
|
}
|
|
2384
2445
|
};
|
|
2385
2446
|
|
|
2386
|
-
var _excluded$
|
|
2447
|
+
var _excluded$f = ["children", "heading", "maxLines", "isItalic", "isUnderlined", "isSub", "isSup", "isStriked", "isTruncated", "weight", "size"];
|
|
2387
2448
|
var TextContent = function TextContent(_ref) {
|
|
2388
2449
|
var children = _ref.children,
|
|
2389
2450
|
isSub = _ref.isSub,
|
|
@@ -2440,7 +2501,7 @@ var TextView = function TextView(_ref3) {
|
|
|
2440
2501
|
weight = _ref3$weight === void 0 ? 'normal' : _ref3$weight,
|
|
2441
2502
|
_ref3$size = _ref3.size,
|
|
2442
2503
|
size = _ref3$size === void 0 ? 'md' : _ref3$size,
|
|
2443
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded$
|
|
2504
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded$f);
|
|
2444
2505
|
var headingStyles = heading ? HeadingSizes$1[heading] : {};
|
|
2445
2506
|
var noLineBreak = isSub || isSup ? {
|
|
2446
2507
|
display: 'inline'
|
|
@@ -2470,14 +2531,14 @@ var TextComponent = function TextComponent(props) {
|
|
|
2470
2531
|
*/
|
|
2471
2532
|
var Text = TextComponent;
|
|
2472
2533
|
|
|
2473
|
-
var _excluded$
|
|
2534
|
+
var _excluded$g = ["children", "styles"];
|
|
2474
2535
|
var HelperText = function HelperText(_ref) {
|
|
2475
2536
|
var children = _ref.children,
|
|
2476
2537
|
_ref$styles = _ref.styles,
|
|
2477
2538
|
styles = _ref$styles === void 0 ? {
|
|
2478
2539
|
helperText: {}
|
|
2479
2540
|
} : _ref$styles,
|
|
2480
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2541
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
2481
2542
|
return React.createElement(Text, Object.assign({
|
|
2482
2543
|
size: "xs",
|
|
2483
2544
|
marginVertical: 0,
|
|
@@ -2486,14 +2547,14 @@ var HelperText = function HelperText(_ref) {
|
|
|
2486
2547
|
}, styles['helperText'], props), children);
|
|
2487
2548
|
};
|
|
2488
2549
|
|
|
2489
|
-
var _excluded$
|
|
2550
|
+
var _excluded$h = ["children", "helperText", "error", "styles"];
|
|
2490
2551
|
var FieldContainer = function FieldContainer(_ref) {
|
|
2491
2552
|
var children = _ref.children,
|
|
2492
2553
|
helperText = _ref.helperText,
|
|
2493
2554
|
_ref$error = _ref.error,
|
|
2494
2555
|
error = _ref$error === void 0 ? false : _ref$error,
|
|
2495
2556
|
styles = _ref.styles,
|
|
2496
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2557
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
2497
2558
|
return React.createElement(Vertical, Object.assign({
|
|
2498
2559
|
gap: 5,
|
|
2499
2560
|
position: "relative"
|
|
@@ -2552,7 +2613,7 @@ var PaddingWithoutLabel = {
|
|
|
2552
2613
|
paddingRight: 36
|
|
2553
2614
|
};
|
|
2554
2615
|
|
|
2555
|
-
var _excluded$
|
|
2616
|
+
var _excluded$i = ["label", "shadow", "children", "value", "size", "shape", "variant", "error", "isWithLabel", "isFocused", "isHovered", "isDisabled", "isReadOnly", "colorScheme", "styles"];
|
|
2556
2617
|
var FieldContent = function FieldContent(_ref) {
|
|
2557
2618
|
var shadow = _ref.shadow,
|
|
2558
2619
|
children = _ref.children,
|
|
@@ -2580,7 +2641,7 @@ var FieldContent = function FieldContent(_ref) {
|
|
|
2580
2641
|
styles = _ref$styles === void 0 ? {
|
|
2581
2642
|
pickerBox: {}
|
|
2582
2643
|
} : _ref$styles,
|
|
2583
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2644
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
2584
2645
|
var isInteractive = (isHovered || isFocused) && !isDisabled;
|
|
2585
2646
|
var color = error ? 'error' : isInteractive ? colorScheme : 'midgray';
|
|
2586
2647
|
return React.createElement(Horizontal, Object.assign({
|
|
@@ -2600,10 +2661,10 @@ var FieldContent = function FieldContent(_ref) {
|
|
|
2600
2661
|
}, isWithLabel ? PadddingWithLabel : PaddingWithoutLabel, shadow, Shapes[shape], InputVariants[variant], styles['box'], props), children);
|
|
2601
2662
|
};
|
|
2602
2663
|
|
|
2603
|
-
var _excluded$
|
|
2664
|
+
var _excluded$j = ["children"];
|
|
2604
2665
|
var FieldIcons = function FieldIcons(_ref) {
|
|
2605
2666
|
var children = _ref.children,
|
|
2606
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2667
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
2607
2668
|
return React.createElement(Center, Object.assign({
|
|
2608
2669
|
gap: 10,
|
|
2609
2670
|
top: "50%",
|
|
@@ -2615,7 +2676,7 @@ var FieldIcons = function FieldIcons(_ref) {
|
|
|
2615
2676
|
}, props), children);
|
|
2616
2677
|
};
|
|
2617
2678
|
|
|
2618
|
-
var _excluded$
|
|
2679
|
+
var _excluded$k = ["children", "size", "error", "color", "styles"];
|
|
2619
2680
|
var FieldLabel = function FieldLabel(_ref) {
|
|
2620
2681
|
var children = _ref.children,
|
|
2621
2682
|
_ref$size = _ref.size,
|
|
@@ -2628,7 +2689,7 @@ var FieldLabel = function FieldLabel(_ref) {
|
|
|
2628
2689
|
styles = _ref$styles === void 0 ? {
|
|
2629
2690
|
label: {}
|
|
2630
2691
|
} : _ref$styles,
|
|
2631
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2692
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
|
2632
2693
|
return React.createElement(Label, Object.assign({
|
|
2633
2694
|
top: 6,
|
|
2634
2695
|
zIndex: 1000,
|
|
@@ -2641,10 +2702,10 @@ var FieldLabel = function FieldLabel(_ref) {
|
|
|
2641
2702
|
}, styles['label'], props), children);
|
|
2642
2703
|
};
|
|
2643
2704
|
|
|
2644
|
-
var _excluded$
|
|
2705
|
+
var _excluded$l = ["children"];
|
|
2645
2706
|
var FieldWrapper = function FieldWrapper(_ref) {
|
|
2646
2707
|
var children = _ref.children,
|
|
2647
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2708
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
2648
2709
|
return React.createElement(Vertical, Object.assign({
|
|
2649
2710
|
width: "100%"
|
|
2650
2711
|
}, props), children);
|
|
@@ -2658,7 +2719,7 @@ var IconSizes$3 = {
|
|
|
2658
2719
|
xl: 16
|
|
2659
2720
|
};
|
|
2660
2721
|
|
|
2661
|
-
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"];
|
|
2662
2723
|
var CountryList = function CountryList(props) {
|
|
2663
2724
|
return React.createElement(Element, Object.assign({
|
|
2664
2725
|
as: "ul"
|
|
@@ -2798,7 +2859,7 @@ var CountryPickerView = function CountryPickerView(_ref3) {
|
|
|
2798
2859
|
helperText: {},
|
|
2799
2860
|
box: {}
|
|
2800
2861
|
} : _ref3$styles,
|
|
2801
|
-
props = _objectWithoutPropertiesLoose(_ref3, _excluded$
|
|
2862
|
+
props = _objectWithoutPropertiesLoose(_ref3, _excluded$m);
|
|
2802
2863
|
var _useTheme = useTheme(),
|
|
2803
2864
|
getColor = _useTheme.getColor;
|
|
2804
2865
|
var IconColor = getColor('color.blueGray.700');
|
|
@@ -2936,7 +2997,7 @@ var useDatePickerState = function useDatePickerState() {
|
|
|
2936
2997
|
};
|
|
2937
2998
|
};
|
|
2938
2999
|
|
|
2939
|
-
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"];
|
|
2940
3001
|
var DatePickerContent = function DatePickerContent(props) {
|
|
2941
3002
|
return React.createElement(Input, Object.assign({
|
|
2942
3003
|
type: "date"
|
|
@@ -2984,7 +3045,7 @@ var DatePickerView = function DatePickerView(_ref) {
|
|
|
2984
3045
|
setIsHovered = _ref$setIsHovered === void 0 ? function () {} : _ref$setIsHovered,
|
|
2985
3046
|
onChange = _ref.onChange,
|
|
2986
3047
|
onChangeText = _ref.onChangeText,
|
|
2987
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3048
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
2988
3049
|
var isWithLabel = !!(isFocused && label);
|
|
2989
3050
|
var handleHover = function handleHover() {
|
|
2990
3051
|
return setIsHovered(!isHovered);
|
|
@@ -3105,7 +3166,7 @@ var useTextFieldState = function useTextFieldState(_ref) {
|
|
|
3105
3166
|
};
|
|
3106
3167
|
};
|
|
3107
3168
|
|
|
3108
|
-
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"];
|
|
3109
3170
|
var TextFieldInput = function TextFieldInput(props) {
|
|
3110
3171
|
return React.createElement(Input, Object.assign({
|
|
3111
3172
|
type: "text"
|
|
@@ -3166,7 +3227,7 @@ var TextFieldView = function TextFieldView(_ref) {
|
|
|
3166
3227
|
onFocus = _ref.onFocus,
|
|
3167
3228
|
_ref$onBlur = _ref.onBlur,
|
|
3168
3229
|
onBlur = _ref$onBlur === void 0 ? function () {} : _ref$onBlur,
|
|
3169
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3230
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
|
|
3170
3231
|
var _useTheme = useTheme(),
|
|
3171
3232
|
getColor = _useTheme.getColor;
|
|
3172
3233
|
var IconColor = getColor('color.blueGray.700');
|
|
@@ -3290,7 +3351,7 @@ var TextFieldComponent = function TextFieldComponent(props) {
|
|
|
3290
3351
|
*/
|
|
3291
3352
|
var TextField = TextFieldComponent;
|
|
3292
3353
|
|
|
3293
|
-
var _excluded$
|
|
3354
|
+
var _excluded$p = ["name", "visibleIcon", "hiddenIcon", "isDisabled", "isVisible", "setIsVisible"];
|
|
3294
3355
|
var PasswordView = function PasswordView(_ref) {
|
|
3295
3356
|
var name = _ref.name,
|
|
3296
3357
|
_ref$visibleIcon = _ref.visibleIcon,
|
|
@@ -3307,7 +3368,7 @@ var PasswordView = function PasswordView(_ref) {
|
|
|
3307
3368
|
isVisible = _ref$isVisible === void 0 ? false : _ref$isVisible,
|
|
3308
3369
|
_ref$setIsVisible = _ref.setIsVisible,
|
|
3309
3370
|
setIsVisible = _ref$setIsVisible === void 0 ? function () {} : _ref$setIsVisible,
|
|
3310
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3371
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
3311
3372
|
return React.createElement(TextField, Object.assign({
|
|
3312
3373
|
name: name,
|
|
3313
3374
|
type: isVisible ? 'text' : 'password',
|
|
@@ -3375,7 +3436,7 @@ var IconSizes$4 = {
|
|
|
3375
3436
|
xl: 16
|
|
3376
3437
|
};
|
|
3377
3438
|
|
|
3378
|
-
var _excluded$
|
|
3439
|
+
var _excluded$q = ["isHovered", "setIsHovered", "option", "size", "callback"],
|
|
3379
3440
|
_excluded2 = ["id", "name", "selected", "onChange", "isMulti", "isDisabled", "isReadOnly", "options"],
|
|
3380
3441
|
_excluded3 = ["option", "size", "removeOption"],
|
|
3381
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"];
|
|
@@ -3387,7 +3448,7 @@ var Item = function Item(_ref) {
|
|
|
3387
3448
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
3388
3449
|
_ref$callback = _ref.callback,
|
|
3389
3450
|
callback = _ref$callback === void 0 ? function () {} : _ref$callback,
|
|
3390
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3451
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
|
|
3391
3452
|
var handleOptionClick = function handleOptionClick(option) {
|
|
3392
3453
|
return callback(option);
|
|
3393
3454
|
};
|
|
@@ -3857,7 +3918,7 @@ var SliderPadding = {
|
|
|
3857
3918
|
}
|
|
3858
3919
|
};
|
|
3859
3920
|
|
|
3860
|
-
var _excluded$
|
|
3921
|
+
var _excluded$r = ["id", "name", "inActiveChild", "activeChild", "shadow", "size", "colorScheme", "on", "isHovered", "isChecked", "isDisabled", "isReadOnly", "onChange", "onValueChange", "setOn", "setIsHovered", "styles"];
|
|
3861
3922
|
var SwitchContent = function SwitchContent(props) {
|
|
3862
3923
|
return React.createElement(Input, Object.assign({
|
|
3863
3924
|
type: "checkbox"
|
|
@@ -3893,7 +3954,7 @@ var SwitchView = function SwitchView(_ref) {
|
|
|
3893
3954
|
slider: {},
|
|
3894
3955
|
circle: {}
|
|
3895
3956
|
} : _ref$styles,
|
|
3896
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3957
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
|
|
3897
3958
|
var handleToggle = function handleToggle(event) {
|
|
3898
3959
|
if (!isReadOnly) {
|
|
3899
3960
|
setOn(!on);
|
|
@@ -3969,7 +4030,7 @@ var useTextAreaState = function useTextAreaState(_ref) {
|
|
|
3969
4030
|
};
|
|
3970
4031
|
};
|
|
3971
4032
|
|
|
3972
|
-
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"];
|
|
3973
4034
|
var TextAreaView = function TextAreaView(_ref) {
|
|
3974
4035
|
var id = _ref.id,
|
|
3975
4036
|
name = _ref.name,
|
|
@@ -4027,7 +4088,7 @@ var TextAreaView = function TextAreaView(_ref) {
|
|
|
4027
4088
|
helperText: {},
|
|
4028
4089
|
field: {}
|
|
4029
4090
|
} : _ref$styles,
|
|
4030
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4091
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
|
|
4031
4092
|
var isWithLabel = !!(isFocused && label);
|
|
4032
4093
|
useMemo(function () {
|
|
4033
4094
|
setHint(isFocused && !inputValue ? placeholder != null ? placeholder : '' : label != null ? label : placeholder);
|
|
@@ -4144,7 +4205,7 @@ var DefaultSpeeds = {
|
|
|
4144
4205
|
slow: 300
|
|
4145
4206
|
};
|
|
4146
4207
|
|
|
4147
|
-
var _excluded$
|
|
4208
|
+
var _excluded$t = ["size", "speed", "color"],
|
|
4148
4209
|
_excluded2$1 = ["size", "speed", "color"],
|
|
4149
4210
|
_excluded3$1 = ["size", "speed", "color"],
|
|
4150
4211
|
_excluded4$1 = ["size", "children", "textColor", "loaderColor", "type", "speed", "textPosition"];
|
|
@@ -4155,7 +4216,7 @@ var DefaultSpinner = function DefaultSpinner(_ref) {
|
|
|
4155
4216
|
speed = _ref$speed === void 0 ? 'normal' : _ref$speed,
|
|
4156
4217
|
_ref$color = _ref.color,
|
|
4157
4218
|
color = _ref$color === void 0 ? 'theme.loading' : _ref$color,
|
|
4158
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4219
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
4159
4220
|
var theme = useTheme();
|
|
4160
4221
|
var colorStyle = theme.getColor(color);
|
|
4161
4222
|
var sizeStyle = typeof size === 'number' ? size : DefaultSizes[size];
|
|
@@ -4405,7 +4466,7 @@ var HeaderIconSizes = {
|
|
|
4405
4466
|
xl: 28
|
|
4406
4467
|
};
|
|
4407
4468
|
|
|
4408
|
-
var _excluded$
|
|
4469
|
+
var _excluded$u = ["children", "blur", "isOpen", "isClosePrevented", "onClose", "position"],
|
|
4409
4470
|
_excluded2$2 = ["children", "shadow", "isFullScreen", "shape"],
|
|
4410
4471
|
_excluded3$2 = ["children", "buttonColor", "iconSize", "buttonPosition"],
|
|
4411
4472
|
_excluded4$2 = ["children"],
|
|
@@ -4421,7 +4482,7 @@ var ModalOverlay = function ModalOverlay(_ref) {
|
|
|
4421
4482
|
onClose = _ref$onClose === void 0 ? function () {} : _ref$onClose,
|
|
4422
4483
|
_ref$position = _ref.position,
|
|
4423
4484
|
position = _ref$position === void 0 ? 'center' : _ref$position,
|
|
4424
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4485
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
|
|
4425
4486
|
var handleClick = function handleClick() {
|
|
4426
4487
|
if (!isClosePrevented) onClose();
|
|
4427
4488
|
};
|
|
@@ -4578,12 +4639,12 @@ Modal.Body = ModalBody;
|
|
|
4578
4639
|
Modal.Footer = ModalFooter;
|
|
4579
4640
|
Modal.Layout = ModalLayout;
|
|
4580
4641
|
|
|
4581
|
-
var _excluded$
|
|
4642
|
+
var _excluded$v = ["src", "color"],
|
|
4582
4643
|
_excluded2$3 = ["path"];
|
|
4583
4644
|
var FileSVG = function FileSVG(_ref) {
|
|
4584
4645
|
var src = _ref.src,
|
|
4585
4646
|
color = _ref.color,
|
|
4586
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4647
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
|
|
4587
4648
|
var _useTheme = useTheme(),
|
|
4588
4649
|
getColor = _useTheme.getColor;
|
|
4589
4650
|
var Colorprops = color ? {
|