@xqmsg/ui-core 0.9.2 → 0.10.0
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/input/InputTypes.d.ts +5 -3
- package/dist/components/input/StackedInput/StackedInput.d.ts +0 -3
- package/dist/components/input/StackedMultiSelect/index.d.ts +1 -1
- package/dist/components/input/StackedSelect/StackedSelect.d.ts +7 -3
- package/dist/components/input/components/dropdown/index.d.ts +10 -0
- package/dist/components/input/components/label/index.d.ts +9 -0
- package/dist/components/input/components/token/Token.stories.d.ts +5 -0
- package/dist/components/input/components/token/index.d.ts +7 -0
- package/dist/components/input/index.d.ts +1 -3
- package/dist/theme/components/form-error.d.ts +3 -3
- package/dist/theme/components/form-label.d.ts +4 -6
- package/dist/theme/components/form.d.ts +3 -3
- package/dist/theme/components/input.d.ts +32 -161
- package/dist/theme/components/select.d.ts +27 -153
- package/dist/theme/components/textarea.d.ts +10 -117
- package/dist/theme/foundations/colors.d.ts +30 -0
- package/dist/ui-core.cjs.development.js +455 -490
- package/dist/ui-core.cjs.development.js.map +1 -1
- package/dist/ui-core.cjs.production.min.js +1 -1
- package/dist/ui-core.cjs.production.min.js.map +1 -1
- package/dist/ui-core.esm.js +459 -494
- package/dist/ui-core.esm.js.map +1 -1
- package/package.json +5 -3
- package/src/components/input/Input.stories.tsx +28 -12
- package/src/components/input/InputTypes.ts +7 -1
- package/src/components/input/StackedInput/StackedInput.tsx +3 -15
- package/src/components/input/StackedMultiSelect/components/MultiValue/index.tsx +2 -2
- package/src/components/input/StackedMultiSelect/index.tsx +89 -93
- package/src/components/input/StackedPilledInput/index.tsx +145 -56
- package/src/components/input/StackedSelect/StackedSelect.tsx +63 -20
- package/src/components/input/StackedSelect/assets/svg/subtract.svg +3 -0
- package/src/components/input/components/dropdown/index.tsx +79 -0
- package/src/components/input/components/label/index.tsx +24 -0
- package/src/components/input/components/token/Token.stories.tsx +22 -0
- package/src/components/input/components/token/assets/svg/close.svg +3 -0
- package/src/components/input/components/token/index.tsx +37 -0
- package/src/components/input/index.tsx +8 -20
- package/src/theme/components/alert.ts +4 -4
- package/src/theme/components/form-error.ts +11 -14
- package/src/theme/components/form-label.ts +8 -8
- package/src/theme/components/form.ts +10 -13
- package/src/theme/components/input.ts +17 -191
- package/src/theme/components/select.ts +5 -10
- package/src/theme/components/textarea.ts +2 -38
- package/src/theme/foundations/colors.ts +17 -1
- package/dist/components/input/components/InputTag/index.d.ts +0 -7
- package/src/components/input/components/InputTag/index.tsx +0 -24
|
@@ -8,7 +8,7 @@ var React = require('react');
|
|
|
8
8
|
var React__default = _interopDefault(React);
|
|
9
9
|
var react = require('@chakra-ui/react');
|
|
10
10
|
var reactHookForm = require('react-hook-form');
|
|
11
|
-
var
|
|
11
|
+
var colors$1 = _interopDefault(require('src/theme/foundations/colors'));
|
|
12
12
|
var icons = require('@chakra-ui/icons');
|
|
13
13
|
var hi = require('react-icons/hi');
|
|
14
14
|
var themeTools = require('@chakra-ui/theme-tools');
|
|
@@ -169,7 +169,22 @@ var label = {
|
|
|
169
169
|
primary: {
|
|
170
170
|
light: '#000000',
|
|
171
171
|
dark: '#FFFFFF'
|
|
172
|
-
}
|
|
172
|
+
},
|
|
173
|
+
secondary: {
|
|
174
|
+
light: '#3C3C4399'
|
|
175
|
+
},
|
|
176
|
+
error: '#FF0000'
|
|
177
|
+
};
|
|
178
|
+
var border = {
|
|
179
|
+
focus: '#3A6CD980',
|
|
180
|
+
"default": '#9999991A'
|
|
181
|
+
};
|
|
182
|
+
var fill = {
|
|
183
|
+
light: '#7474800D',
|
|
184
|
+
positive: '#d8f1b8',
|
|
185
|
+
error: '#ffbdb9',
|
|
186
|
+
warning: '#ffefb4',
|
|
187
|
+
blue: '#0082ff'
|
|
173
188
|
};
|
|
174
189
|
|
|
175
190
|
var colors = /*#__PURE__*/_extends({
|
|
@@ -183,6 +198,8 @@ var colors = /*#__PURE__*/_extends({
|
|
|
183
198
|
backdrop: '#fbfcff'
|
|
184
199
|
}, aliases, {
|
|
185
200
|
label: label,
|
|
201
|
+
border: border,
|
|
202
|
+
fill: fill,
|
|
186
203
|
whiteAlpha: {
|
|
187
204
|
50: 'rgba(255, 255, 255, 0.04)',
|
|
188
205
|
100: 'rgba(255, 255, 255, 0.06)',
|
|
@@ -448,7 +465,7 @@ var StackedCheckboxGroup = /*#__PURE__*/React__default.forwardRef(function (_ref
|
|
|
448
465
|
}));
|
|
449
466
|
});
|
|
450
467
|
|
|
451
|
-
var _excluded$1 = ["type", "isRequired"
|
|
468
|
+
var _excluded$1 = ["type", "isRequired"];
|
|
452
469
|
/**
|
|
453
470
|
* A functional React component utilized to render the `StackedInput` component.
|
|
454
471
|
*/
|
|
@@ -457,15 +474,13 @@ var StackedInput = /*#__PURE__*/React__default.forwardRef(function (_ref2, _ref)
|
|
|
457
474
|
var _ref2$type = _ref2.type,
|
|
458
475
|
type = _ref2$type === void 0 ? 'text' : _ref2$type,
|
|
459
476
|
isRequired = _ref2.isRequired,
|
|
460
|
-
leftElement = _ref2.leftElement,
|
|
461
|
-
rightElement = _ref2.rightElement,
|
|
462
477
|
props = _objectWithoutPropertiesLoose(_ref2, _excluded$1);
|
|
463
478
|
|
|
464
|
-
return /*#__PURE__*/React__default.createElement(react.
|
|
479
|
+
return /*#__PURE__*/React__default.createElement(react.Input, Object.assign({
|
|
465
480
|
ref: _ref,
|
|
466
481
|
type: type,
|
|
467
482
|
isRequired: isRequired
|
|
468
|
-
}, props))
|
|
483
|
+
}, props));
|
|
469
484
|
});
|
|
470
485
|
|
|
471
486
|
/**
|
|
@@ -492,7 +507,60 @@ var StackedRadioGroup = /*#__PURE__*/React__default.forwardRef(function (_ref2,
|
|
|
492
507
|
})));
|
|
493
508
|
});
|
|
494
509
|
|
|
495
|
-
var
|
|
510
|
+
var SubtractIcon = "<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M2 12C0.89543 12 -3.91405e-08 11.1046 -8.74228e-08 10L-4.37114e-07 2C-4.85396e-07 0.895431 0.89543 -3.91405e-08 2 -8.74228e-08L10 -4.37114e-07C11.1046 -4.85396e-07 12 0.89543 12 2L12 10C12 11.1046 11.1046 12 10 12L2 12ZM6 2.5C6.13261 2.5 6.25979 2.55268 6.35355 2.64645L7.85355 4.14645C8.04881 4.34171 8.04881 4.65829 7.85355 4.85355C7.65829 5.04882 7.34171 5.04882 7.14645 4.85355L6 3.70711L4.85355 4.85355C4.65829 5.04882 4.34171 5.04882 4.14645 4.85355C3.95118 4.65829 3.95118 4.34171 4.14645 4.14645L5.64645 2.64645C5.74021 2.55268 5.86739 2.5 6 2.5ZM5.64645 9.35355C5.74021 9.44732 5.86739 9.5 6 9.5C6.13261 9.5 6.25978 9.44732 6.35355 9.35355L7.85355 7.85355C8.04882 7.65829 8.04882 7.34171 7.85355 7.14645C7.65829 6.95118 7.34171 6.95118 7.14645 7.14645L6 8.29289L4.85355 7.14645C4.65829 6.95118 4.34171 6.95118 4.14645 7.14645C3.95118 7.34171 3.95118 7.65829 4.14645 7.85355L5.64645 9.35355Z\" fill=\"#0082FF\"/>\n</svg>";
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* A functional React component utilized to render the `Dropdown` component
|
|
514
|
+
*/
|
|
515
|
+
|
|
516
|
+
var Dropdown = function Dropdown(_ref) {
|
|
517
|
+
var onSelectItem = _ref.onSelectItem,
|
|
518
|
+
options = _ref.options;
|
|
519
|
+
var DropdownContent = React.useMemo(function () {
|
|
520
|
+
return options.map(function (option, idx) {
|
|
521
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, option.value === 'section_header' && options[idx + 1] && options[idx + 1].value !== 'section_header' && /*#__PURE__*/React__default.createElement(react.Box, {
|
|
522
|
+
color: colors$1.label.secondary.light,
|
|
523
|
+
fontSize: "13px",
|
|
524
|
+
fontWeight: "bold",
|
|
525
|
+
px: "8px"
|
|
526
|
+
}, idx > 0 && /*#__PURE__*/React__default.createElement(react.Box, {
|
|
527
|
+
my: "3px",
|
|
528
|
+
borderTop: "2px solid",
|
|
529
|
+
borderColor: colors$1.border["default"]
|
|
530
|
+
}), option.label), option.value !== 'section_header' && /*#__PURE__*/React__default.createElement(react.Box, {
|
|
531
|
+
cursor: "pointer",
|
|
532
|
+
borderRadius: "inherit",
|
|
533
|
+
onClick: function onClick() {
|
|
534
|
+
return onSelectItem(option);
|
|
535
|
+
},
|
|
536
|
+
key: option.value,
|
|
537
|
+
fontSize: "13px",
|
|
538
|
+
px: "8px",
|
|
539
|
+
py: "4px",
|
|
540
|
+
color: colors$1.label.primary.light,
|
|
541
|
+
_hover: {
|
|
542
|
+
color: colors$1.label.primary.dark,
|
|
543
|
+
bg: colors$1.fill.blue,
|
|
544
|
+
borderRadius: '4px'
|
|
545
|
+
}
|
|
546
|
+
}, option.label));
|
|
547
|
+
});
|
|
548
|
+
}, [onSelectItem, options]);
|
|
549
|
+
return /*#__PURE__*/React__default.createElement(react.Box, {
|
|
550
|
+
bg: colors$1.fill.light,
|
|
551
|
+
backdropFilter: "blur(64px)",
|
|
552
|
+
borderRadius: "4px",
|
|
553
|
+
mt: "3px",
|
|
554
|
+
maxH: "320px",
|
|
555
|
+
overflowY: "auto",
|
|
556
|
+
px: "8px",
|
|
557
|
+
py: "4px",
|
|
558
|
+
position: "absolute",
|
|
559
|
+
width: "100%"
|
|
560
|
+
}, DropdownContent);
|
|
561
|
+
};
|
|
562
|
+
|
|
563
|
+
var _excluded$2 = ["isRequired", "options", "name", "setValue", "onChange"];
|
|
496
564
|
/**
|
|
497
565
|
* A functional React component utilized to render the `StackedSelect` component.
|
|
498
566
|
*/
|
|
@@ -500,19 +568,63 @@ var _excluded$2 = ["isRequired", "options", "onChange"];
|
|
|
500
568
|
var StackedSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2, _ref) {
|
|
501
569
|
var isRequired = _ref2.isRequired,
|
|
502
570
|
options = _ref2.options,
|
|
503
|
-
|
|
571
|
+
name = _ref2.name,
|
|
572
|
+
setValue = _ref2.setValue,
|
|
504
573
|
props = _objectWithoutPropertiesLoose(_ref2, _excluded$2);
|
|
505
574
|
|
|
506
|
-
|
|
575
|
+
var dropdownRef = React.useRef(null);
|
|
576
|
+
|
|
577
|
+
var _useState = React.useState(false),
|
|
578
|
+
isFocussed = _useState[0],
|
|
579
|
+
setIsFocussed = _useState[1];
|
|
580
|
+
|
|
581
|
+
var _useState2 = React.useState(''),
|
|
582
|
+
selectedOption = _useState2[0],
|
|
583
|
+
setSelectedOption = _useState2[1];
|
|
584
|
+
|
|
585
|
+
react.useOutsideClick({
|
|
586
|
+
ref: dropdownRef,
|
|
587
|
+
handler: function handler() {
|
|
588
|
+
return setIsFocussed(false);
|
|
589
|
+
}
|
|
590
|
+
});
|
|
591
|
+
|
|
592
|
+
var handleOnSelectItem = function handleOnSelectItem(option) {
|
|
593
|
+
setValue(name, option.value);
|
|
594
|
+
setSelectedOption(option.label);
|
|
595
|
+
setIsFocussed(false);
|
|
596
|
+
};
|
|
597
|
+
|
|
598
|
+
return /*#__PURE__*/React__default.createElement(react.Box, {
|
|
599
|
+
ref: dropdownRef,
|
|
600
|
+
position: "relative"
|
|
601
|
+
}, /*#__PURE__*/React__default.createElement(react.InputGroup, null, /*#__PURE__*/React__default.createElement(react.Input, Object.assign({
|
|
602
|
+
isRequired: isRequired
|
|
603
|
+
}, props, {
|
|
507
604
|
ref: _ref,
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
605
|
+
onClick: function onClick() {
|
|
606
|
+
return setIsFocussed(!isFocussed);
|
|
607
|
+
},
|
|
608
|
+
cursor: "pointer",
|
|
609
|
+
color: "transparent",
|
|
610
|
+
fontSize: "13px",
|
|
611
|
+
textShadow: "0 0 0 " + colors$1.label.primary.light,
|
|
612
|
+
value: selectedOption
|
|
613
|
+
})), /*#__PURE__*/React__default.createElement(react.InputRightElement, {
|
|
614
|
+
cursor: "pointer",
|
|
615
|
+
onClick: function onClick() {
|
|
616
|
+
return setIsFocussed(!isFocussed);
|
|
617
|
+
}
|
|
618
|
+
}, /*#__PURE__*/React__default.createElement(react.Image, {
|
|
619
|
+
src: SubtractIcon,
|
|
620
|
+
alt: "subtract",
|
|
621
|
+
boxSize: "16px"
|
|
622
|
+
}))), isFocussed && /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
623
|
+
onSelectItem: function onSelectItem(option) {
|
|
624
|
+
return handleOnSelectItem(option);
|
|
625
|
+
},
|
|
626
|
+
options: options
|
|
627
|
+
}));
|
|
516
628
|
});
|
|
517
629
|
|
|
518
630
|
/**
|
|
@@ -527,36 +639,29 @@ var StackedTextarea = /*#__PURE__*/React__default.forwardRef(function (_ref2, _r
|
|
|
527
639
|
}, props));
|
|
528
640
|
});
|
|
529
641
|
|
|
530
|
-
var
|
|
531
|
-
|
|
642
|
+
var CloseIcon = "<svg width=\"56\" height=\"56\" viewBox=\"0 0 56 56\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M27.9995 56C43.4635 56 55.9995 43.464 55.9995 28C55.9995 12.536 43.4635 0 27.9995 0C12.5355 0 -0.000488281 12.536 -0.000488281 28C-0.000488281 43.464 12.5355 56 27.9995 56ZM21.9807 18.2688C20.9555 17.2437 19.2935 17.2437 18.2684 18.2688C17.2432 19.294 17.2432 20.956 18.2684 21.9812L24.2872 28L18.2684 34.0188C17.2432 35.044 17.2432 36.706 18.2684 37.7312C19.2935 38.7563 20.9555 38.7563 21.9807 37.7312L27.9995 31.7123L34.0184 37.7312C35.0435 38.7563 36.7055 38.7563 37.7307 37.7312C38.7558 36.706 38.7558 35.044 37.7307 34.0188L31.7118 28L37.7307 21.9812C38.7558 20.956 38.7558 19.294 37.7307 18.2688C36.7055 17.2437 35.0435 17.2437 34.0184 18.2688L27.9995 24.2877L21.9807 18.2688Z\" fill=\"#3C3C43\" fill-opacity=\"0.6\"/>\n</svg>";
|
|
643
|
+
|
|
644
|
+
var Token = function Token(_ref) {
|
|
645
|
+
var label = _ref.label,
|
|
532
646
|
onDelete = _ref.onDelete;
|
|
533
|
-
return /*#__PURE__*/React__default.createElement(react.
|
|
534
|
-
|
|
535
|
-
key: value,
|
|
647
|
+
return /*#__PURE__*/React__default.createElement(react.Flex, {
|
|
648
|
+
key: label,
|
|
536
649
|
borderRadius: "full",
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
var MultiValue = function MultiValue(_ref) {
|
|
553
|
-
var children = _ref.children,
|
|
554
|
-
clearValue = _ref.clearValue;
|
|
555
|
-
return /*#__PURE__*/React__default.createElement(react.Box, {
|
|
556
|
-
marginRight: "5px"
|
|
557
|
-
}, /*#__PURE__*/React__default.createElement(InputTag, {
|
|
558
|
-
value: children,
|
|
559
|
-
onDelete: clearValue
|
|
650
|
+
backgroundColor: "#7676801F",
|
|
651
|
+
alignItems: "center",
|
|
652
|
+
width: "fit-content",
|
|
653
|
+
pl: "8px",
|
|
654
|
+
pr: "4px",
|
|
655
|
+
py: "2px"
|
|
656
|
+
}, /*#__PURE__*/React__default.createElement(react.Text, {
|
|
657
|
+
color: colors$1.label.primary.light,
|
|
658
|
+
fontSize: "13px"
|
|
659
|
+
}, label), /*#__PURE__*/React__default.createElement(react.Image, {
|
|
660
|
+
pl: "4px",
|
|
661
|
+
boxSize: "16px",
|
|
662
|
+
src: CloseIcon,
|
|
663
|
+
onClick: onDelete,
|
|
664
|
+
cursor: "pointer"
|
|
560
665
|
}));
|
|
561
666
|
};
|
|
562
667
|
|
|
@@ -568,131 +673,136 @@ var StackedMultiSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2,
|
|
|
568
673
|
var options = _ref2.options,
|
|
569
674
|
setValue = _ref2.setValue,
|
|
570
675
|
control = _ref2.control,
|
|
571
|
-
name = _ref2.name
|
|
676
|
+
name = _ref2.name,
|
|
677
|
+
placeholder = _ref2.placeholder,
|
|
678
|
+
disabled = _ref2.disabled;
|
|
572
679
|
var watchedValue = reactHookForm.useWatch({
|
|
573
680
|
control: control,
|
|
574
681
|
name: name
|
|
575
682
|
});
|
|
683
|
+
var dropdownRef = React.useRef(null);
|
|
576
684
|
|
|
577
|
-
var _useState = React.useState(
|
|
578
|
-
|
|
579
|
-
|
|
685
|
+
var _useState = React.useState([]),
|
|
686
|
+
localValues = _useState[0],
|
|
687
|
+
setLocalValues = _useState[1];
|
|
688
|
+
|
|
689
|
+
var _useState2 = React.useState(options),
|
|
690
|
+
localOptions = _useState2[0],
|
|
691
|
+
setLocalOptions = _useState2[1];
|
|
580
692
|
|
|
581
|
-
var
|
|
582
|
-
|
|
583
|
-
|
|
693
|
+
var _useState3 = React.useState(false),
|
|
694
|
+
isFocussed = _useState3[0],
|
|
695
|
+
setIsFocussed = _useState3[1];
|
|
584
696
|
|
|
697
|
+
react.useOutsideClick({
|
|
698
|
+
ref: dropdownRef,
|
|
699
|
+
handler: function handler() {
|
|
700
|
+
return setIsFocussed(false);
|
|
701
|
+
}
|
|
702
|
+
}); // gets latest watched form value (common delimited) from RHF state and creates a list
|
|
585
703
|
|
|
586
704
|
React.useEffect(function () {
|
|
587
705
|
if (watchedValue !== undefined && !watchedValue.length) {
|
|
588
|
-
|
|
706
|
+
setLocalValues([]);
|
|
589
707
|
}
|
|
590
708
|
|
|
591
709
|
if (watchedValue !== undefined && watchedValue != null && watchedValue.length) {
|
|
592
|
-
|
|
710
|
+
setLocalValues(watchedValue.split(',').filter(Boolean).map(function (value) {
|
|
593
711
|
return options.find(function (option) {
|
|
594
712
|
return option.value === value;
|
|
595
713
|
});
|
|
596
714
|
}));
|
|
597
715
|
}
|
|
598
716
|
}, [options, watchedValue]);
|
|
599
|
-
var component = {
|
|
600
|
-
DropdownIndicator: null,
|
|
601
|
-
MultiValue: function MultiValue$1(props) {
|
|
602
|
-
return /*#__PURE__*/React__default.createElement(MultiValue, {
|
|
603
|
-
clearValue: function clearValue() {
|
|
604
|
-
var arrayValue = watchedValue.split(',').filter(function (_, index) {
|
|
605
|
-
return index !== props.index;
|
|
606
|
-
});
|
|
607
|
-
setLocalValue(arrayValue.map(function (value) {
|
|
608
|
-
return options.find(function (option) {
|
|
609
|
-
return option.value === value;
|
|
610
|
-
});
|
|
611
|
-
}));
|
|
612
|
-
setValue(name, arrayValue.join(','), {
|
|
613
|
-
shouldValidate: true,
|
|
614
|
-
shouldDirty: true
|
|
615
|
-
});
|
|
616
|
-
}
|
|
617
|
-
}, props.children);
|
|
618
|
-
}
|
|
619
|
-
};
|
|
620
717
|
|
|
621
|
-
var handleChange = function handleChange(
|
|
622
|
-
|
|
718
|
+
var handleChange = function handleChange(option) {
|
|
719
|
+
var newValue = [].concat(localValues, [option]).map(function (_ref3) {
|
|
623
720
|
var value = _ref3.value;
|
|
624
721
|
return value;
|
|
625
|
-
}).join(',')
|
|
722
|
+
}).join(',');
|
|
723
|
+
setValue(name, newValue, {
|
|
626
724
|
shouldValidate: true,
|
|
627
725
|
shouldDirty: true
|
|
628
726
|
});
|
|
727
|
+
setLocalOptions(function (prevLocalOptions) {
|
|
728
|
+
return prevLocalOptions.filter(function (prevLocalOption) {
|
|
729
|
+
return prevLocalOption !== option;
|
|
730
|
+
});
|
|
731
|
+
});
|
|
732
|
+
setLocalValues(function (prevLocalValues) {
|
|
733
|
+
return [].concat(prevLocalValues, [option]);
|
|
734
|
+
});
|
|
629
735
|
};
|
|
630
736
|
|
|
631
|
-
var
|
|
632
|
-
|
|
633
|
-
return
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
737
|
+
var handleDelete = function handleDelete(option) {
|
|
738
|
+
var newValue = localValues.filter(function (localValue) {
|
|
739
|
+
return localValue !== option;
|
|
740
|
+
}).map(function (_ref4) {
|
|
741
|
+
var value = _ref4.value;
|
|
742
|
+
return value;
|
|
743
|
+
}).join(',');
|
|
744
|
+
setValue(name, newValue, {
|
|
745
|
+
shouldValidate: true,
|
|
746
|
+
shouldDirty: true
|
|
747
|
+
});
|
|
748
|
+
setLocalOptions(function (prevLocalOptions) {
|
|
749
|
+
return [].concat(prevLocalOptions, [option]).sort(function (a, b) {
|
|
750
|
+
return a.sortValue - b.sortValue;
|
|
751
|
+
});
|
|
752
|
+
});
|
|
753
|
+
setLocalValues(function (prevLocalValues) {
|
|
754
|
+
return prevLocalValues.filter(function (prevLocalValue) {
|
|
755
|
+
return prevLocalValue !== option;
|
|
756
|
+
});
|
|
757
|
+
});
|
|
645
758
|
};
|
|
646
759
|
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
menu: function menu() {
|
|
662
|
-
return {
|
|
663
|
-
boxShadow: '0 5px 5px 0 rgba(16, 27, 79, 0.15)',
|
|
664
|
-
borderRadius: '6px',
|
|
665
|
-
backgroundColor: 'white'
|
|
666
|
-
};
|
|
760
|
+
return /*#__PURE__*/React__default.createElement(react.Box, {
|
|
761
|
+
ref: dropdownRef,
|
|
762
|
+
position: "relative"
|
|
763
|
+
}, /*#__PURE__*/React__default.createElement(react.Flex, {
|
|
764
|
+
fontSize: "13px",
|
|
765
|
+
border: isFocussed ? '2px solid' : '1px solid',
|
|
766
|
+
borderColor: isFocussed ? colors.border.focus : colors.border["default"],
|
|
767
|
+
py: "5px",
|
|
768
|
+
pl: "8px",
|
|
769
|
+
borderRadius: "4px",
|
|
770
|
+
alignItems: "center",
|
|
771
|
+
justifyContent: "space-between",
|
|
772
|
+
onClick: function onClick() {
|
|
773
|
+
return !disabled && setIsFocussed(true);
|
|
667
774
|
},
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
775
|
+
bg: disabled ? colors.fill.light : '#ffffff',
|
|
776
|
+
cursor: disabled ? 'not-allowed' : 'pointer'
|
|
777
|
+
}, /*#__PURE__*/React__default.createElement(react.Flex, {
|
|
778
|
+
height: "28px",
|
|
779
|
+
alignItems: "center"
|
|
780
|
+
}, localValues.length ? localValues.map(function (option) {
|
|
781
|
+
return /*#__PURE__*/React__default.createElement(react.Box, {
|
|
782
|
+
mr: "4px"
|
|
783
|
+
}, /*#__PURE__*/React__default.createElement(Token, {
|
|
784
|
+
label: option.label,
|
|
785
|
+
onDelete: function onDelete() {
|
|
786
|
+
return handleDelete(option);
|
|
787
|
+
}
|
|
788
|
+
}));
|
|
789
|
+
}) : /*#__PURE__*/React__default.createElement(react.Text, {
|
|
790
|
+
color: colors.label.secondary.light,
|
|
791
|
+
fontSize: "13px"
|
|
792
|
+
}, placeholder)), /*#__PURE__*/React__default.createElement(react.Flex, {
|
|
793
|
+
width: "39px",
|
|
794
|
+
justifyContent: "center",
|
|
795
|
+
alignItems: "center"
|
|
796
|
+
}, /*#__PURE__*/React__default.createElement(react.Image, {
|
|
797
|
+
src: SubtractIcon,
|
|
798
|
+
alt: "subtract",
|
|
799
|
+
boxSize: "16px"
|
|
800
|
+
}))), isFocussed && /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
801
|
+
onSelectItem: function onSelectItem(option) {
|
|
802
|
+
return handleChange(option);
|
|
672
803
|
},
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
color: '#CBCDCF',
|
|
676
|
-
fontSize: '16px'
|
|
677
|
-
};
|
|
678
|
-
}
|
|
679
|
-
};
|
|
680
|
-
return /*#__PURE__*/React__default.createElement(ReactSelect, {
|
|
681
|
-
components: component,
|
|
682
|
-
inputValue: inputValue,
|
|
683
|
-
value: localValue,
|
|
684
|
-
isClearable: true,
|
|
685
|
-
isSearchable: true,
|
|
686
|
-
isMulti: true,
|
|
687
|
-
menuPortalTarget: document.body,
|
|
688
|
-
menuPosition: 'fixed',
|
|
689
|
-
onChange: handleChange,
|
|
690
|
-
onInputChange: handleInputChange,
|
|
691
|
-
styles: customStyles,
|
|
692
|
-
options: options,
|
|
693
|
-
placeholder: false,
|
|
694
|
-
formatGroupLabel: formatGroupLabel
|
|
695
|
-
});
|
|
804
|
+
options: localOptions
|
|
805
|
+
}));
|
|
696
806
|
});
|
|
697
807
|
|
|
698
808
|
/**
|
|
@@ -702,7 +812,9 @@ var StackedMultiSelect = /*#__PURE__*/React__default.forwardRef(function (_ref2,
|
|
|
702
812
|
var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2, _ref) {
|
|
703
813
|
var name = _ref2.name,
|
|
704
814
|
setValue = _ref2.setValue,
|
|
705
|
-
control = _ref2.control
|
|
815
|
+
control = _ref2.control,
|
|
816
|
+
placeholder = _ref2.placeholder,
|
|
817
|
+
disabled = _ref2.disabled;
|
|
706
818
|
var watchedValue = reactHookForm.useWatch({
|
|
707
819
|
control: control,
|
|
708
820
|
name: name
|
|
@@ -713,14 +825,19 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
|
|
|
713
825
|
setLatestFormValueToArray = _useState[1];
|
|
714
826
|
|
|
715
827
|
var inputRef = React.useRef(null);
|
|
828
|
+
var inputWrapperRef = React.useRef(null);
|
|
716
829
|
|
|
717
|
-
var _useState2 = React.useState(
|
|
718
|
-
|
|
719
|
-
|
|
830
|
+
var _useState2 = React.useState(null),
|
|
831
|
+
tokenIndex = _useState2[0],
|
|
832
|
+
setTokenIndex = _useState2[1];
|
|
720
833
|
|
|
721
|
-
var _useState3 = React.useState(
|
|
722
|
-
|
|
723
|
-
|
|
834
|
+
var _useState3 = React.useState(false),
|
|
835
|
+
isFocussed = _useState3[0],
|
|
836
|
+
setIsFocussed = _useState3[1];
|
|
837
|
+
|
|
838
|
+
var _useState4 = React.useState(''),
|
|
839
|
+
localValue = _useState4[0],
|
|
840
|
+
setLocalValue = _useState4[1]; // gets latest watched form value (common delimited) from RHF state and creates a list
|
|
724
841
|
|
|
725
842
|
|
|
726
843
|
React.useEffect(function () {
|
|
@@ -731,17 +848,24 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
|
|
|
731
848
|
if (watchedValue !== undefined && watchedValue != null && watchedValue.length) {
|
|
732
849
|
setLatestFormValueToArray(watchedValue.split(',').filter(Boolean));
|
|
733
850
|
}
|
|
734
|
-
}, [watchedValue]);
|
|
735
|
-
|
|
736
|
-
React.useEffect(function () {
|
|
737
|
-
if (localValue === ' ' || localValue.trim() === ',') {
|
|
738
|
-
setLocalValue('');
|
|
739
|
-
}
|
|
740
|
-
}, [localValue]);
|
|
851
|
+
}, [watchedValue]);
|
|
741
852
|
|
|
742
853
|
var onHandleKeyDown = function onHandleKeyDown(e) {
|
|
743
854
|
if (e.key === ' ' || e.key === 'Enter' || e.key === ',') {
|
|
744
|
-
if (
|
|
855
|
+
if (e.key === 'Enter' && !localValue.trim().length && tokenIndex !== null) {
|
|
856
|
+
setLocalValue(lastestFormValueToArray[tokenIndex]);
|
|
857
|
+
|
|
858
|
+
var _filteredUniqueValues = Array.from(new Set(lastestFormValueToArray.filter(function (value) {
|
|
859
|
+
return value !== lastestFormValueToArray[tokenIndex];
|
|
860
|
+
})));
|
|
861
|
+
|
|
862
|
+
setValue(name, _filteredUniqueValues.toString().replace(/\s/g, ''), {
|
|
863
|
+
shouldValidate: true,
|
|
864
|
+
shouldDirty: true
|
|
865
|
+
});
|
|
866
|
+
return setTokenIndex(null);
|
|
867
|
+
}
|
|
868
|
+
|
|
745
869
|
var filteredUniqueValues = Array.from(new Set([].concat(lastestFormValueToArray, localValue.trim().split(','))));
|
|
746
870
|
setLocalValue('');
|
|
747
871
|
return setValue(name, filteredUniqueValues.toString().replace(/\s/g, ''), {
|
|
@@ -749,6 +873,46 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
|
|
|
749
873
|
shouldDirty: true
|
|
750
874
|
});
|
|
751
875
|
}
|
|
876
|
+
|
|
877
|
+
if (!localValue.trim().length && lastestFormValueToArray.length) {
|
|
878
|
+
if (e.key === 'Backspace' && tokenIndex !== null) {
|
|
879
|
+
setLocalValue(lastestFormValueToArray[tokenIndex].substring(0, lastestFormValueToArray[tokenIndex].length));
|
|
880
|
+
|
|
881
|
+
var _filteredUniqueValues2 = Array.from(new Set([].concat(lastestFormValueToArray).filter(function (value) {
|
|
882
|
+
return value !== lastestFormValueToArray[tokenIndex];
|
|
883
|
+
})));
|
|
884
|
+
|
|
885
|
+
setValue(name, _filteredUniqueValues2.toString().replace(/\s/g, ''), {
|
|
886
|
+
shouldValidate: true,
|
|
887
|
+
shouldDirty: true
|
|
888
|
+
});
|
|
889
|
+
return setTokenIndex(null);
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
if (e.key === 'ArrowLeft') {
|
|
893
|
+
if (tokenIndex === 0) return;
|
|
894
|
+
|
|
895
|
+
if (!tokenIndex) {
|
|
896
|
+
return setTokenIndex(lastestFormValueToArray.length - 1);
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
return setTokenIndex(function (prevTokenIndex) {
|
|
900
|
+
return prevTokenIndex - 1;
|
|
901
|
+
});
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
if (e.key === 'ArrowRight') {
|
|
905
|
+
if (tokenIndex === null) return;
|
|
906
|
+
|
|
907
|
+
if (tokenIndex === lastestFormValueToArray.length - 1) {
|
|
908
|
+
return setTokenIndex(null);
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
return setTokenIndex(function (prevTokenIndex) {
|
|
912
|
+
return prevTokenIndex + 1;
|
|
913
|
+
});
|
|
914
|
+
}
|
|
915
|
+
}
|
|
752
916
|
};
|
|
753
917
|
|
|
754
918
|
var onRemoveTag = function onRemoveTag(index) {
|
|
@@ -772,65 +936,77 @@ var StackedPilledInput = /*#__PURE__*/React__default.forwardRef(function (_ref2,
|
|
|
772
936
|
setLocalValue('');
|
|
773
937
|
}
|
|
774
938
|
|
|
775
|
-
|
|
939
|
+
setIsFocussed(false);
|
|
776
940
|
};
|
|
777
941
|
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
width: "100%"
|
|
942
|
+
react.useOutsideClick({
|
|
943
|
+
ref: inputWrapperRef,
|
|
944
|
+
handler: onBlur
|
|
945
|
+
});
|
|
946
|
+
return /*#__PURE__*/React__default.createElement(react.Box, {
|
|
947
|
+
position: "relative"
|
|
785
948
|
}, /*#__PURE__*/React__default.createElement(react.Flex, {
|
|
786
|
-
|
|
787
|
-
border:
|
|
788
|
-
borderColor: colors.
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
lineHeight: "12px",
|
|
793
|
-
minHeight: "48px",
|
|
794
|
-
letterSpacing: "0.02em",
|
|
795
|
-
padding: "0 12px",
|
|
796
|
-
pt: lastestFormValueToArray.length ? '12px' : '0px',
|
|
949
|
+
fontSize: "13px",
|
|
950
|
+
border: isFocussed ? '2px solid' : '1px solid',
|
|
951
|
+
borderColor: isFocussed ? colors.border.focus : colors.border["default"],
|
|
952
|
+
py: "5px",
|
|
953
|
+
pl: "8px",
|
|
954
|
+
borderRadius: "4px",
|
|
797
955
|
alignItems: "center",
|
|
798
|
-
|
|
799
|
-
gap: "0.5em",
|
|
800
|
-
width: "100%",
|
|
956
|
+
justifyContent: "space-between",
|
|
801
957
|
onClick: function onClick() {
|
|
802
|
-
|
|
958
|
+
if (!disabled) {
|
|
959
|
+
var _inputRef$current;
|
|
803
960
|
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
961
|
+
(_inputRef$current = inputRef.current) == null ? void 0 : _inputRef$current.focus();
|
|
962
|
+
}
|
|
963
|
+
},
|
|
964
|
+
bg: disabled ? colors.fill.light : '#ffffff',
|
|
965
|
+
cursor: disabled ? 'not-allowed' : 'pointer',
|
|
966
|
+
ref: inputWrapperRef
|
|
967
|
+
}, /*#__PURE__*/React__default.createElement(react.Flex, {
|
|
968
|
+
height: "28px",
|
|
969
|
+
alignItems: "center",
|
|
970
|
+
width: "fit-content"
|
|
971
|
+
}, lastestFormValueToArray.length ? lastestFormValueToArray.map(function (label, index) {
|
|
972
|
+
return /*#__PURE__*/React__default.createElement(react.Box, {
|
|
973
|
+
mr: "4px",
|
|
974
|
+
border: tokenIndex === index ? "2px solid " + colors.border.focus : 'none',
|
|
975
|
+
borderRadius: "full",
|
|
976
|
+
onClick: function onClick() {
|
|
977
|
+
return setTokenIndex(index);
|
|
978
|
+
}
|
|
979
|
+
}, /*#__PURE__*/React__default.createElement(Token, {
|
|
980
|
+
label: label,
|
|
810
981
|
onDelete: function onDelete(e) {
|
|
811
982
|
e.stopPropagation();
|
|
812
983
|
e.preventDefault();
|
|
813
984
|
onRemoveTag(index);
|
|
814
985
|
}
|
|
815
|
-
});
|
|
816
|
-
})
|
|
986
|
+
}));
|
|
987
|
+
}) : /*#__PURE__*/React__default.createElement(react.Text, {
|
|
988
|
+
color: colors.label.secondary.light,
|
|
989
|
+
fontSize: "13px"
|
|
990
|
+
}, placeholder)), /*#__PURE__*/React__default.createElement(react.Flex, {
|
|
991
|
+
flex: 1
|
|
992
|
+
}, /*#__PURE__*/React__default.createElement(react.Input, {
|
|
817
993
|
onKeyDown: onHandleKeyDown,
|
|
818
994
|
type: "text",
|
|
819
|
-
padding:
|
|
820
|
-
height: isInputFocused ? '46px' : '0px',
|
|
995
|
+
padding: 0,
|
|
821
996
|
width: "100%",
|
|
822
997
|
border: "none",
|
|
998
|
+
height: "26px",
|
|
999
|
+
color: tokenIndex !== null ? 'transparent' : colors.label.primary,
|
|
823
1000
|
_focus: {
|
|
824
1001
|
boxShadow: 'none !important'
|
|
825
1002
|
},
|
|
826
1003
|
value: localValue,
|
|
827
|
-
onBlur: onBlur,
|
|
828
1004
|
onChange: function onChange(e) {
|
|
829
|
-
return setLocalValue(e.target.value);
|
|
1005
|
+
return tokenIndex === null && setLocalValue(e.target.value);
|
|
830
1006
|
},
|
|
831
1007
|
ref: inputRef,
|
|
832
1008
|
onFocus: function onFocus() {
|
|
833
|
-
return
|
|
1009
|
+
return setIsFocussed(true);
|
|
834
1010
|
}
|
|
835
1011
|
}))));
|
|
836
1012
|
});
|
|
@@ -856,6 +1032,19 @@ var StackedSwitch = /*#__PURE__*/React__default.forwardRef(function (_ref2, _ref
|
|
|
856
1032
|
});
|
|
857
1033
|
});
|
|
858
1034
|
|
|
1035
|
+
/**
|
|
1036
|
+
* A functional React component utilized to render the `Label` component
|
|
1037
|
+
*/
|
|
1038
|
+
|
|
1039
|
+
var Label$1 = function Label(_ref) {
|
|
1040
|
+
var isRequired = _ref.isRequired,
|
|
1041
|
+
label = _ref.label;
|
|
1042
|
+
return /*#__PURE__*/React__default.createElement(react.FormLabel, null, label, isRequired && /*#__PURE__*/React__default.createElement(react.Box, {
|
|
1043
|
+
ml: 1,
|
|
1044
|
+
color: colors$1.label.error
|
|
1045
|
+
}, "*"));
|
|
1046
|
+
};
|
|
1047
|
+
|
|
859
1048
|
/**
|
|
860
1049
|
* A functional React component utilized to render the `Input` component. Utilizes a switch statement
|
|
861
1050
|
* to render the correct input based on the `inputType`.
|
|
@@ -869,8 +1058,6 @@ function Input(_ref) {
|
|
|
869
1058
|
placeholder = _ref.placeholder,
|
|
870
1059
|
name = _ref.name,
|
|
871
1060
|
helperText = _ref.helperText,
|
|
872
|
-
leftElement = _ref.leftElement,
|
|
873
|
-
rightElement = _ref.rightElement,
|
|
874
1061
|
options = _ref.options,
|
|
875
1062
|
isInvalid = _ref.isInvalid,
|
|
876
1063
|
errorText = _ref.errorText,
|
|
@@ -892,8 +1079,6 @@ function Input(_ref) {
|
|
|
892
1079
|
placeholder: placeholder,
|
|
893
1080
|
maxLength: maxLength,
|
|
894
1081
|
isRequired: isRequired,
|
|
895
|
-
leftElement: leftElement,
|
|
896
|
-
rightElement: rightElement,
|
|
897
1082
|
isInvalid: isInvalid,
|
|
898
1083
|
onChange: onChange,
|
|
899
1084
|
onBlur: onBlur,
|
|
@@ -927,9 +1112,12 @@ function Input(_ref) {
|
|
|
927
1112
|
options: options,
|
|
928
1113
|
onChange: onChange,
|
|
929
1114
|
onBlur: onBlur,
|
|
1115
|
+
setValue: setValue,
|
|
1116
|
+
control: control,
|
|
930
1117
|
ref: ref,
|
|
931
1118
|
disabled: disabled,
|
|
932
|
-
value: value
|
|
1119
|
+
value: value,
|
|
1120
|
+
placeholder: placeholder
|
|
933
1121
|
});
|
|
934
1122
|
|
|
935
1123
|
case 'textarea':
|
|
@@ -975,7 +1163,8 @@ function Input(_ref) {
|
|
|
975
1163
|
disabled: disabled,
|
|
976
1164
|
value: value,
|
|
977
1165
|
setValue: setValue,
|
|
978
|
-
control: control
|
|
1166
|
+
control: control,
|
|
1167
|
+
placeholder: placeholder
|
|
979
1168
|
});
|
|
980
1169
|
|
|
981
1170
|
case 'pilled-text':
|
|
@@ -1009,7 +1198,7 @@ function Input(_ref) {
|
|
|
1009
1198
|
default:
|
|
1010
1199
|
return null;
|
|
1011
1200
|
}
|
|
1012
|
-
}, [ariaLabel, className, control, disabled, inputType, isInvalid, isRequired,
|
|
1201
|
+
}, [ariaLabel, className, control, disabled, inputType, isInvalid, isRequired, maxLength, name, options, placeholder, setValue]);
|
|
1013
1202
|
return /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
1014
1203
|
control: control,
|
|
1015
1204
|
name: name,
|
|
@@ -1028,14 +1217,10 @@ function Input(_ref) {
|
|
|
1028
1217
|
isInvalid: isInvalid,
|
|
1029
1218
|
position: "relative",
|
|
1030
1219
|
py: label ? 6 : 0
|
|
1031
|
-
}, label && /*#__PURE__*/React__default.createElement(
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
}, label, isRequired && /*#__PURE__*/React__default.createElement(react.Box, {
|
|
1036
|
-
ml: 1,
|
|
1037
|
-
color: "red.500"
|
|
1038
|
-
}, "*")), selectedInputField(onChange ? onChange : fieldOnChange, onBlur, ref, value), isInvalid ? /*#__PURE__*/React__default.createElement(react.FormErrorMessage, null, errorText) : helperText && /*#__PURE__*/React__default.createElement(react.FormHelperText, null, helperText));
|
|
1220
|
+
}, label && /*#__PURE__*/React__default.createElement(Label$1, {
|
|
1221
|
+
label: label,
|
|
1222
|
+
isRequired: isRequired
|
|
1223
|
+
}), selectedInputField(onChange ? onChange : fieldOnChange, onBlur, ref, value), isInvalid ? /*#__PURE__*/React__default.createElement(react.FormErrorMessage, null, errorText) : helperText && /*#__PURE__*/React__default.createElement(react.FormHelperText, null, helperText));
|
|
1039
1224
|
}
|
|
1040
1225
|
});
|
|
1041
1226
|
}
|
|
@@ -1459,7 +1644,7 @@ var baseStyle = {
|
|
|
1459
1644
|
function variantPositive() {
|
|
1460
1645
|
return {
|
|
1461
1646
|
container: {
|
|
1462
|
-
bg:
|
|
1647
|
+
bg: colors.fill.positive
|
|
1463
1648
|
}
|
|
1464
1649
|
};
|
|
1465
1650
|
}
|
|
@@ -1467,7 +1652,7 @@ function variantPositive() {
|
|
|
1467
1652
|
function variantWarning() {
|
|
1468
1653
|
return {
|
|
1469
1654
|
container: {
|
|
1470
|
-
bg:
|
|
1655
|
+
bg: colors.fill.warning
|
|
1471
1656
|
}
|
|
1472
1657
|
};
|
|
1473
1658
|
}
|
|
@@ -1475,7 +1660,7 @@ function variantWarning() {
|
|
|
1475
1660
|
function variantError() {
|
|
1476
1661
|
return {
|
|
1477
1662
|
container: {
|
|
1478
|
-
bg:
|
|
1663
|
+
bg: colors.fill.error
|
|
1479
1664
|
}
|
|
1480
1665
|
};
|
|
1481
1666
|
}
|
|
@@ -1483,7 +1668,7 @@ function variantError() {
|
|
|
1483
1668
|
function variantNeutral() {
|
|
1484
1669
|
return {
|
|
1485
1670
|
container: {
|
|
1486
|
-
bg:
|
|
1671
|
+
bg: colors.fill.light
|
|
1487
1672
|
}
|
|
1488
1673
|
};
|
|
1489
1674
|
}
|
|
@@ -1795,26 +1980,26 @@ var Code = {
|
|
|
1795
1980
|
|
|
1796
1981
|
var parts$1 = ['requiredIndicator', 'helperText'];
|
|
1797
1982
|
|
|
1798
|
-
function baseStyleRequiredIndicator(
|
|
1983
|
+
function baseStyleRequiredIndicator() {
|
|
1799
1984
|
return {
|
|
1800
1985
|
ml: 1,
|
|
1801
|
-
color:
|
|
1986
|
+
color: colors.label.error
|
|
1802
1987
|
};
|
|
1803
1988
|
}
|
|
1804
1989
|
|
|
1805
|
-
function baseStyleHelperText(
|
|
1990
|
+
function baseStyleHelperText() {
|
|
1806
1991
|
return {
|
|
1992
|
+
color: colors.label.secondary.light,
|
|
1807
1993
|
mt: 1,
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
fontSize: 'sm'
|
|
1994
|
+
ml: 1,
|
|
1995
|
+
fontSize: '13px'
|
|
1811
1996
|
};
|
|
1812
1997
|
}
|
|
1813
1998
|
|
|
1814
|
-
var baseStyle$4 = function baseStyle(
|
|
1999
|
+
var baseStyle$4 = function baseStyle() {
|
|
1815
2000
|
return {
|
|
1816
|
-
requiredIndicator: baseStyleRequiredIndicator(
|
|
1817
|
-
helperText: baseStyleHelperText(
|
|
2001
|
+
requiredIndicator: baseStyleRequiredIndicator(),
|
|
2002
|
+
helperText: baseStyleHelperText()
|
|
1818
2003
|
};
|
|
1819
2004
|
};
|
|
1820
2005
|
|
|
@@ -1825,26 +2010,26 @@ var Form$1 = {
|
|
|
1825
2010
|
|
|
1826
2011
|
var parts$2 = ['text', 'icon'];
|
|
1827
2012
|
|
|
1828
|
-
function baseStyleText(
|
|
2013
|
+
function baseStyleText() {
|
|
1829
2014
|
return {
|
|
1830
|
-
color:
|
|
2015
|
+
color: colors.label.error,
|
|
1831
2016
|
mt: 1,
|
|
1832
|
-
|
|
1833
|
-
fontSize: '
|
|
2017
|
+
ml: 1,
|
|
2018
|
+
fontSize: '13px'
|
|
1834
2019
|
};
|
|
1835
2020
|
}
|
|
1836
2021
|
|
|
1837
|
-
function baseStyleIcon(
|
|
2022
|
+
function baseStyleIcon() {
|
|
1838
2023
|
return {
|
|
1839
|
-
|
|
1840
|
-
color:
|
|
2024
|
+
ml: 1,
|
|
2025
|
+
color: colors.label.error
|
|
1841
2026
|
};
|
|
1842
2027
|
}
|
|
1843
2028
|
|
|
1844
|
-
var baseStyle$5 = function baseStyle(
|
|
2029
|
+
var baseStyle$5 = function baseStyle() {
|
|
1845
2030
|
return {
|
|
1846
|
-
text: baseStyleText(
|
|
1847
|
-
icon: baseStyleIcon(
|
|
2031
|
+
text: baseStyleText(),
|
|
2032
|
+
icon: baseStyleIcon()
|
|
1848
2033
|
};
|
|
1849
2034
|
};
|
|
1850
2035
|
|
|
@@ -1854,228 +2039,51 @@ var FormError = {
|
|
|
1854
2039
|
};
|
|
1855
2040
|
|
|
1856
2041
|
var baseStyle$6 = {
|
|
1857
|
-
fontSize: '
|
|
1858
|
-
|
|
2042
|
+
fontSize: '13px',
|
|
2043
|
+
position: 'absolute',
|
|
2044
|
+
top: 0,
|
|
2045
|
+
display: 'flex',
|
|
2046
|
+
ml: 1,
|
|
1859
2047
|
mb: 1,
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
transition: 'all 0.2s',
|
|
1863
|
-
opacity: 1,
|
|
1864
|
-
_disabled: {
|
|
1865
|
-
opacity: 0.4
|
|
1866
|
-
}
|
|
2048
|
+
color: colors.label.primary.light,
|
|
2049
|
+
opacity: 1
|
|
1867
2050
|
};
|
|
1868
2051
|
var FormLabel = {
|
|
1869
2052
|
baseStyle: baseStyle$6
|
|
1870
2053
|
};
|
|
1871
2054
|
|
|
1872
|
-
var parts$3 = ['field'
|
|
2055
|
+
var parts$3 = ['field'];
|
|
1873
2056
|
var baseStyle$7 = {
|
|
1874
2057
|
field: {
|
|
1875
|
-
|
|
1876
|
-
outline: 0,
|
|
1877
|
-
position: 'relative',
|
|
1878
|
-
appearance: 'none',
|
|
1879
|
-
transition: 'all 0.2s',
|
|
2058
|
+
fontSize: '13px',
|
|
1880
2059
|
'::placeholder': {
|
|
1881
|
-
color:
|
|
1882
|
-
}
|
|
1883
|
-
}
|
|
1884
|
-
};
|
|
1885
|
-
var size = {
|
|
1886
|
-
lg: {
|
|
1887
|
-
fontSize: 'md',
|
|
1888
|
-
pl: 3,
|
|
1889
|
-
pr: 3,
|
|
1890
|
-
h: 12,
|
|
1891
|
-
borderRadius: 'md'
|
|
1892
|
-
},
|
|
1893
|
-
md: {
|
|
1894
|
-
fontSize: 'md',
|
|
1895
|
-
pl: 3,
|
|
1896
|
-
pr: 3,
|
|
1897
|
-
h: 10,
|
|
1898
|
-
borderRadius: 'md'
|
|
1899
|
-
},
|
|
1900
|
-
sm: {
|
|
1901
|
-
fontSize: 'sm',
|
|
1902
|
-
pl: 3,
|
|
1903
|
-
pr: 3,
|
|
1904
|
-
h: 8,
|
|
1905
|
-
borderRadius: 'sm'
|
|
1906
|
-
}
|
|
1907
|
-
};
|
|
1908
|
-
var sizes$1 = {
|
|
1909
|
-
lg: {
|
|
1910
|
-
field: size.lg,
|
|
1911
|
-
addon: size.lg
|
|
1912
|
-
},
|
|
1913
|
-
md: {
|
|
1914
|
-
field: size.md,
|
|
1915
|
-
addon: size.md
|
|
1916
|
-
},
|
|
1917
|
-
sm: {
|
|
1918
|
-
field: size.sm,
|
|
1919
|
-
addon: size.sm
|
|
1920
|
-
}
|
|
1921
|
-
};
|
|
1922
|
-
|
|
1923
|
-
function getDefaults(props) {
|
|
1924
|
-
var fc = props.focusBorderColor,
|
|
1925
|
-
ec = props.errorBorderColor;
|
|
1926
|
-
return {
|
|
1927
|
-
focusBorderColor: fc || themeTools.mode('blue.500', 'blue.300')(props),
|
|
1928
|
-
errorBorderColor: ec || themeTools.mode('red.500', 'red.300')(props)
|
|
1929
|
-
};
|
|
1930
|
-
}
|
|
1931
|
-
|
|
1932
|
-
function variantOutline$2(props) {
|
|
1933
|
-
var theme = props.theme;
|
|
1934
|
-
|
|
1935
|
-
var _getDefaults = getDefaults(props),
|
|
1936
|
-
fc = _getDefaults.focusBorderColor,
|
|
1937
|
-
ec = _getDefaults.errorBorderColor;
|
|
1938
|
-
|
|
1939
|
-
return {
|
|
1940
|
-
field: {
|
|
1941
|
-
border: '1px solid',
|
|
1942
|
-
borderColor: 'inherit',
|
|
1943
|
-
bg: 'white',
|
|
1944
|
-
_hover: {
|
|
1945
|
-
borderColor: themeTools.mode('gray.300', 'whiteAlpha.400')(props)
|
|
1946
|
-
},
|
|
1947
|
-
_readOnly: {
|
|
1948
|
-
boxShadow: 'none !important',
|
|
1949
|
-
userSelect: 'all'
|
|
1950
|
-
},
|
|
1951
|
-
_disabled: {
|
|
1952
|
-
opacity: 0.4,
|
|
1953
|
-
cursor: 'not-allowed'
|
|
1954
|
-
},
|
|
1955
|
-
_focus: {
|
|
1956
|
-
zIndex: 1,
|
|
1957
|
-
borderColor: themeTools.getColor(theme, fc),
|
|
1958
|
-
boxShadow: "0 0 0 2px " + themeTools.transparentize(fc, 0.3)(theme)
|
|
1959
|
-
},
|
|
1960
|
-
_invalid: {
|
|
1961
|
-
borderColor: themeTools.getColor(theme, ec),
|
|
1962
|
-
boxShadow: 'none',
|
|
1963
|
-
_focus: {
|
|
1964
|
-
boxShadow: "0 0 0 2px " + themeTools.transparentize(ec, 0.3)(theme)
|
|
1965
|
-
}
|
|
1966
|
-
}
|
|
2060
|
+
color: colors.label.secondary.light
|
|
1967
2061
|
},
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
function variantFilled(props) {
|
|
1977
|
-
var theme = props.theme;
|
|
1978
|
-
|
|
1979
|
-
var _getDefaults2 = getDefaults(props),
|
|
1980
|
-
fc = _getDefaults2.focusBorderColor,
|
|
1981
|
-
ec = _getDefaults2.errorBorderColor;
|
|
1982
|
-
|
|
1983
|
-
return {
|
|
1984
|
-
field: {
|
|
1985
|
-
border: '2px solid',
|
|
1986
|
-
borderColor: 'transparent',
|
|
1987
|
-
bg: themeTools.mode('gray.50', 'whiteAlpha.50')(props),
|
|
1988
|
-
_hover: {
|
|
1989
|
-
bg: themeTools.mode('gray.100', 'whiteAlpha.100')(props)
|
|
1990
|
-
},
|
|
1991
|
-
_readOnly: {
|
|
1992
|
-
boxShadow: 'none !important',
|
|
1993
|
-
userSelect: 'all'
|
|
1994
|
-
},
|
|
1995
|
-
_disabled: {
|
|
1996
|
-
opacity: 0.4,
|
|
1997
|
-
cursor: 'not-allowed'
|
|
1998
|
-
},
|
|
1999
|
-
_focus: {
|
|
2000
|
-
bg: 'transparent',
|
|
2001
|
-
borderColor: themeTools.getColor(theme, fc)
|
|
2002
|
-
},
|
|
2003
|
-
_invalid: {
|
|
2004
|
-
borderColor: themeTools.getColor(theme, ec)
|
|
2005
|
-
}
|
|
2062
|
+
py: '5px',
|
|
2063
|
+
px: '8px',
|
|
2064
|
+
border: '1px solid',
|
|
2065
|
+
borderColor: colors.border["default"],
|
|
2066
|
+
_disabled: {
|
|
2067
|
+
cursor: 'not-allowed',
|
|
2068
|
+
bg: colors.fill.light,
|
|
2069
|
+
color: colors.label.secondary.light
|
|
2006
2070
|
},
|
|
2007
|
-
|
|
2071
|
+
_focus: {
|
|
2072
|
+
bg: '#ffffff',
|
|
2008
2073
|
border: '2px solid',
|
|
2009
|
-
borderColor:
|
|
2010
|
-
bg: themeTools.mode('gray.100', 'whiteAlpha.50')(props)
|
|
2074
|
+
borderColor: colors.border.focus
|
|
2011
2075
|
}
|
|
2012
|
-
};
|
|
2013
|
-
}
|
|
2014
|
-
|
|
2015
|
-
function variantFlushed(props) {
|
|
2016
|
-
var theme = props.theme;
|
|
2017
|
-
|
|
2018
|
-
var _getDefaults3 = getDefaults(props),
|
|
2019
|
-
fc = _getDefaults3.focusBorderColor,
|
|
2020
|
-
ec = _getDefaults3.errorBorderColor;
|
|
2021
|
-
|
|
2022
|
-
return {
|
|
2023
|
-
field: {
|
|
2024
|
-
borderBottom: '1px solid inherit',
|
|
2025
|
-
borderRadius: 0,
|
|
2026
|
-
pl: 0,
|
|
2027
|
-
pr: 0,
|
|
2028
|
-
bg: 'transparent',
|
|
2029
|
-
_readOnly: {
|
|
2030
|
-
boxShadow: 'none !important',
|
|
2031
|
-
userSelect: 'all'
|
|
2032
|
-
},
|
|
2033
|
-
_focus: {
|
|
2034
|
-
borderColor: themeTools.getColor(theme, fc),
|
|
2035
|
-
boxShadow: "0px 1px 0px 0px " + themeTools.getColor(theme, fc)
|
|
2036
|
-
},
|
|
2037
|
-
_invalid: {
|
|
2038
|
-
borderColor: themeTools.getColor(theme, ec)
|
|
2039
|
-
}
|
|
2040
|
-
},
|
|
2041
|
-
addon: {
|
|
2042
|
-
borderBottom: '2px solid',
|
|
2043
|
-
borderColor: 'inherit',
|
|
2044
|
-
borderRadius: 0,
|
|
2045
|
-
paddingX: 0,
|
|
2046
|
-
bg: 'transparent'
|
|
2047
|
-
}
|
|
2048
|
-
};
|
|
2049
|
-
}
|
|
2050
|
-
|
|
2051
|
-
var variantUnstyled$1 = {
|
|
2052
|
-
field: {
|
|
2053
|
-
bg: 'transparent',
|
|
2054
|
-
pl: 0,
|
|
2055
|
-
pr: 0,
|
|
2056
|
-
height: 'auto'
|
|
2057
|
-
},
|
|
2058
|
-
addon: {
|
|
2059
|
-
bg: 'transparent',
|
|
2060
|
-
pl: 0,
|
|
2061
|
-
pr: 0,
|
|
2062
|
-
height: 'auto'
|
|
2063
2076
|
}
|
|
2064
2077
|
};
|
|
2065
2078
|
var variants$4 = {
|
|
2066
|
-
|
|
2067
|
-
filled: variantFilled,
|
|
2068
|
-
flushed: variantFlushed,
|
|
2069
|
-
unstyled: variantUnstyled$1
|
|
2079
|
+
"default": baseStyle$7
|
|
2070
2080
|
};
|
|
2071
2081
|
var defaultProps$4 = {
|
|
2072
|
-
|
|
2073
|
-
variant: 'outline'
|
|
2082
|
+
variant: 'default'
|
|
2074
2083
|
};
|
|
2075
2084
|
var Input$1 = {
|
|
2076
2085
|
parts: parts$3,
|
|
2077
2086
|
baseStyle: baseStyle$7,
|
|
2078
|
-
sizes: sizes$1,
|
|
2079
2087
|
variants: variants$4,
|
|
2080
2088
|
defaultProps: defaultProps$4
|
|
2081
2089
|
};
|
|
@@ -2420,7 +2428,7 @@ function getSize(value) {
|
|
|
2420
2428
|
};
|
|
2421
2429
|
}
|
|
2422
2430
|
|
|
2423
|
-
var sizes$
|
|
2431
|
+
var sizes$1 = {
|
|
2424
2432
|
xs: /*#__PURE__*/getSize('xs'),
|
|
2425
2433
|
sm: /*#__PURE__*/getSize('sm'),
|
|
2426
2434
|
md: /*#__PURE__*/getSize('md'),
|
|
@@ -2453,24 +2461,22 @@ var defaultProps$5 = {
|
|
|
2453
2461
|
var Modal = {
|
|
2454
2462
|
parts: parts$5,
|
|
2455
2463
|
baseStyle: baseStyle$a,
|
|
2456
|
-
sizes: sizes$
|
|
2464
|
+
sizes: sizes$1,
|
|
2457
2465
|
variants: variants$6,
|
|
2458
2466
|
defaultProps: defaultProps$5
|
|
2459
2467
|
};
|
|
2460
2468
|
|
|
2461
|
-
var
|
|
2462
|
-
defaultProps$6 = Input$1.defaultProps,
|
|
2469
|
+
var defaultProps$6 = Input$1.defaultProps,
|
|
2463
2470
|
variants$7 = Input$1.variants;
|
|
2464
2471
|
var parts$6 = ['field', 'icon'];
|
|
2465
2472
|
|
|
2466
|
-
function baseStyleField(
|
|
2473
|
+
function baseStyleField() {
|
|
2467
2474
|
return _extends({}, Input$1.baseStyle.field, {
|
|
2468
2475
|
appearance: 'none',
|
|
2469
2476
|
paddingBottom: '1px',
|
|
2470
2477
|
lineHeight: 'normal',
|
|
2471
2478
|
bg: 'white',
|
|
2472
|
-
'> option': {
|
|
2473
|
-
bg: themeTools.mode('white', 'gray.700')(props)
|
|
2479
|
+
'> option': {// bg: mode('white', 'gray.700')(props),
|
|
2474
2480
|
}
|
|
2475
2481
|
});
|
|
2476
2482
|
}
|
|
@@ -2483,9 +2489,9 @@ var baseStyleInput = {
|
|
|
2483
2489
|
}
|
|
2484
2490
|
};
|
|
2485
2491
|
|
|
2486
|
-
var baseStyle$b = function baseStyle(
|
|
2492
|
+
var baseStyle$b = function baseStyle() {
|
|
2487
2493
|
return {
|
|
2488
|
-
field: baseStyleField(
|
|
2494
|
+
field: baseStyleField(),
|
|
2489
2495
|
icon: baseStyleInput
|
|
2490
2496
|
};
|
|
2491
2497
|
};
|
|
@@ -2493,7 +2499,6 @@ var baseStyle$b = function baseStyle(props) {
|
|
|
2493
2499
|
var Select = {
|
|
2494
2500
|
parts: parts$6,
|
|
2495
2501
|
baseStyle: baseStyle$b,
|
|
2496
|
-
sizes: sizes$3,
|
|
2497
2502
|
variants: variants$7,
|
|
2498
2503
|
defaultProps: defaultProps$6
|
|
2499
2504
|
};
|
|
@@ -2538,7 +2543,7 @@ var baseStyle$c = function baseStyle(props) {
|
|
|
2538
2543
|
};
|
|
2539
2544
|
};
|
|
2540
2545
|
|
|
2541
|
-
var sizes$
|
|
2546
|
+
var sizes$2 = {
|
|
2542
2547
|
sm: {
|
|
2543
2548
|
track: {
|
|
2544
2549
|
w: '1.375rem',
|
|
@@ -2586,7 +2591,7 @@ var defaultProps$7 = {
|
|
|
2586
2591
|
var Switch = {
|
|
2587
2592
|
parts: parts$7,
|
|
2588
2593
|
baseStyle: baseStyle$c,
|
|
2589
|
-
sizes: sizes$
|
|
2594
|
+
sizes: sizes$2,
|
|
2590
2595
|
defaultProps: defaultProps$7
|
|
2591
2596
|
};
|
|
2592
2597
|
|
|
@@ -2639,7 +2644,7 @@ var baseStyle$d = function baseStyle(props) {
|
|
|
2639
2644
|
};
|
|
2640
2645
|
};
|
|
2641
2646
|
|
|
2642
|
-
var sizes$
|
|
2647
|
+
var sizes$3 = {
|
|
2643
2648
|
sm: {
|
|
2644
2649
|
tab: {
|
|
2645
2650
|
py: '0.25rem',
|
|
@@ -2780,7 +2785,7 @@ function variantSolidRounded(props) {
|
|
|
2780
2785
|
};
|
|
2781
2786
|
}
|
|
2782
2787
|
|
|
2783
|
-
var variantUnstyled$
|
|
2788
|
+
var variantUnstyled$1 = {};
|
|
2784
2789
|
var variantSimple = {
|
|
2785
2790
|
tab: {
|
|
2786
2791
|
position: 'relative',
|
|
@@ -2815,7 +2820,7 @@ var variants$8 = {
|
|
|
2815
2820
|
'enclosed-colored': variantEnclosedColored,
|
|
2816
2821
|
'soft-rounded': variantSoftRounded,
|
|
2817
2822
|
'solid-rounded': variantSolidRounded,
|
|
2818
|
-
unstyled: variantUnstyled$
|
|
2823
|
+
unstyled: variantUnstyled$1,
|
|
2819
2824
|
simple: variantSimple
|
|
2820
2825
|
};
|
|
2821
2826
|
var defaultProps$8 = {
|
|
@@ -2826,7 +2831,7 @@ var defaultProps$8 = {
|
|
|
2826
2831
|
var Tabs = {
|
|
2827
2832
|
parts: parts$8,
|
|
2828
2833
|
baseStyle: baseStyle$d,
|
|
2829
|
-
sizes: sizes$
|
|
2834
|
+
sizes: sizes$3,
|
|
2830
2835
|
variants: variants$8,
|
|
2831
2836
|
defaultProps: defaultProps$8
|
|
2832
2837
|
};
|
|
@@ -2834,55 +2839,15 @@ var Tabs = {
|
|
|
2834
2839
|
var baseStyle$e = /*#__PURE__*/_extends({}, Input$1.baseStyle.field, {
|
|
2835
2840
|
display: 'block',
|
|
2836
2841
|
paddingY: '8px',
|
|
2837
|
-
|
|
2842
|
+
height: '80px',
|
|
2838
2843
|
lineHeight: 'short'
|
|
2839
2844
|
});
|
|
2840
2845
|
|
|
2841
|
-
var codeVariant = function codeVariant(props) {
|
|
2842
|
-
var _focus = Input$1.variants.outline(props).field._focus;
|
|
2843
|
-
|
|
2844
|
-
return {
|
|
2845
|
-
bg: 'blue.900',
|
|
2846
|
-
color: 'white',
|
|
2847
|
-
fontFamily: 'mono',
|
|
2848
|
-
fontSize: 'sm',
|
|
2849
|
-
border: '1px',
|
|
2850
|
-
borderColor: 'blue.900',
|
|
2851
|
-
borderRadius: 'lg',
|
|
2852
|
-
p: 6,
|
|
2853
|
-
wordBreak: 'break-all',
|
|
2854
|
-
_focus: _focus
|
|
2855
|
-
};
|
|
2856
|
-
};
|
|
2857
|
-
|
|
2858
|
-
var variants$9 = {
|
|
2859
|
-
outline: function outline(props) {
|
|
2860
|
-
return Input$1.variants.outline(props).field;
|
|
2861
|
-
},
|
|
2862
|
-
flushed: function flushed(props) {
|
|
2863
|
-
return Input$1.variants.flushed(props).field;
|
|
2864
|
-
},
|
|
2865
|
-
filled: function filled(props) {
|
|
2866
|
-
return Input$1.variants.filled(props).field;
|
|
2867
|
-
},
|
|
2868
|
-
code: function code(props) {
|
|
2869
|
-
return codeVariant(props);
|
|
2870
|
-
},
|
|
2871
|
-
unstyled: Input$1.variants.unstyled.field
|
|
2872
|
-
};
|
|
2873
|
-
var sizes$6 = {
|
|
2874
|
-
sm: Input$1.sizes.sm.field,
|
|
2875
|
-
md: Input$1.sizes.md.field,
|
|
2876
|
-
lg: Input$1.sizes.lg.field
|
|
2877
|
-
};
|
|
2878
2846
|
var defaultProps$9 = {
|
|
2879
|
-
|
|
2880
|
-
variant: 'outline'
|
|
2847
|
+
variant: 'default'
|
|
2881
2848
|
};
|
|
2882
2849
|
var Textarea = {
|
|
2883
2850
|
baseStyle: baseStyle$e,
|
|
2884
|
-
sizes: sizes$6,
|
|
2885
|
-
variants: variants$9,
|
|
2886
2851
|
defaultProps: defaultProps$9
|
|
2887
2852
|
};
|
|
2888
2853
|
|
|
@@ -2917,16 +2882,16 @@ function variantParagraph() {
|
|
|
2917
2882
|
return baseStyle$f;
|
|
2918
2883
|
}
|
|
2919
2884
|
|
|
2920
|
-
var variants$
|
|
2885
|
+
var variants$9 = {
|
|
2921
2886
|
header: variantHeader,
|
|
2922
2887
|
subheader: variantSubheader,
|
|
2923
2888
|
paragraph: variantParagraph
|
|
2924
2889
|
};
|
|
2925
2890
|
var Text$1 = {
|
|
2926
2891
|
baseStyle: baseStyle$f,
|
|
2927
|
-
variants: variants$
|
|
2892
|
+
variants: variants$9,
|
|
2928
2893
|
defaultProps: /*#__PURE__*/_extends({}, defaultProps$a, {
|
|
2929
|
-
variant: variants$
|
|
2894
|
+
variant: variants$9.paragraph
|
|
2930
2895
|
})
|
|
2931
2896
|
};
|
|
2932
2897
|
|