@itcase/ui 1.0.43 → 1.0.45
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/Accordion.js +56 -58
- package/dist/components/Avatar.js +31 -29
- package/dist/components/Background.js +15 -12
- package/dist/components/Badge.js +13 -11
- package/dist/components/Breadcrumbs.js +72 -71
- package/dist/components/Button.js +56 -53
- package/dist/components/Caption.js +11 -8
- package/dist/components/Card.js +22 -20
- package/dist/components/Cell.js +52 -50
- package/dist/components/Checkbox.js +31 -29
- package/dist/components/Chips.js +21 -18
- package/dist/components/Choice.js +43 -49
- package/dist/components/Code.js +260 -105
- package/dist/components/ContextMenu.js +38 -34
- package/dist/components/CookiesWarning.js +26 -27
- package/dist/components/DatePicker.js +64 -67
- package/dist/components/Divider.js +15 -12
- package/dist/components/Dot.js +8 -6
- package/dist/components/Dropdown.js +88 -88
- package/dist/components/Empty.js +21 -19
- package/dist/components/Fader.js +13 -10
- package/dist/components/Flex.js +43 -37
- package/dist/components/FormField.js +77 -66
- package/dist/components/Grid.js +66 -57
- package/dist/components/Group.js +33 -30
- package/dist/components/Icon.js +41 -38
- package/dist/components/Image.js +34 -28
- package/dist/components/Input.js +29 -28
- package/dist/components/InputPassword.js +45 -48
- package/dist/components/Label.js +29 -26
- package/dist/components/LanguageSelector.js +29 -30
- package/dist/components/Link.js +43 -39
- package/dist/components/List.js +35 -29
- package/dist/components/Loader.js +22 -19
- package/dist/components/Logo.js +17 -14
- package/dist/components/Menu.js +20 -19
- package/dist/components/MenuItem.js +55 -52
- package/dist/components/Modal.js +51 -63
- package/dist/components/Notification.js +41 -38
- package/dist/components/Pagination.js +17 -15
- package/dist/components/RadioButton.js +31 -29
- package/dist/components/RangeSlider.js +29 -26
- package/dist/components/Scrollbar.js +6 -4
- package/dist/components/Search.js +66 -61
- package/dist/components/Segmented.js +52 -58
- package/dist/components/Select.js +181 -168
- package/dist/components/SiteMenu.js +34 -28
- package/dist/components/Swiper.js +104 -92
- package/dist/components/Switch.js +11 -9
- package/dist/components/Tab.js +95 -80
- package/dist/components/Text.js +27 -24
- package/dist/components/Textarea.js +23 -21
- package/dist/components/Tile.js +37 -34
- package/dist/components/Title.js +38 -30
- package/dist/components/Tooltip.js +24 -21
- package/dist/components/Video.js +16 -13
- package/dist/components/Wrapper.js +23 -20
- package/dist/constants/componentProps/align.js +1 -1
- package/dist/constants/componentProps/alignDirection.js +1 -1
- package/dist/constants/componentProps/borderColor.js +1 -1
- package/dist/constants/componentProps/borderType.js +1 -1
- package/dist/constants/componentProps/captionPosition.js +1 -1
- package/dist/constants/componentProps/direction.js +1 -1
- package/dist/constants/componentProps/emojiSize.js +1 -1
- package/dist/constants/componentProps/fill.js +1 -1
- package/dist/constants/componentProps/fillGradient.js +1 -1
- package/dist/constants/componentProps/fillType.js +1 -1
- package/dist/constants/componentProps/flexAlign.js +1 -1
- package/dist/constants/componentProps/flexJustifyContent.js +1 -1
- package/dist/constants/componentProps/flexWrap.js +1 -1
- package/dist/constants/componentProps/gridAlign.js +1 -1
- package/dist/constants/componentProps/gridAlignSelf.js +1 -1
- package/dist/constants/componentProps/gridJustifyItems.js +1 -1
- package/dist/constants/componentProps/gridJustifySelf.js +1 -1
- package/dist/constants/componentProps/horizontalContentAlign.js +1 -1
- package/dist/constants/componentProps/horizontalResizeMode.js +1 -1
- package/dist/constants/componentProps/iconSize.js +1 -1
- package/dist/constants/componentProps/position.js +1 -1
- package/dist/constants/componentProps/resizeMode.js +1 -1
- package/dist/constants/componentProps/shape.js +1 -1
- package/dist/constants/componentProps/size.js +1 -1
- package/dist/constants/componentProps/stacking.js +1 -1
- package/dist/constants/componentProps/strokeColor.js +1 -1
- package/dist/constants/componentProps/textAlign.js +1 -1
- package/dist/constants/componentProps/textColor.js +1 -1
- package/dist/constants/componentProps/textColorActive.js +1 -1
- package/dist/constants/componentProps/textColorHover.js +1 -1
- package/dist/constants/componentProps/textGradient.js +1 -1
- package/dist/constants/componentProps/textStyle.js +1 -1
- package/dist/constants/componentProps/textTag.js +1 -1
- package/dist/constants/componentProps/textWeight.js +1 -1
- package/dist/constants/componentProps/titleSize.js +1 -1
- package/dist/constants/componentProps/type.js +1 -1
- package/dist/constants/componentProps/underline.js +1 -1
- package/dist/constants/componentProps/verticalContentAlign.js +1 -1
- package/dist/constants/componentProps/verticalResizeMode.js +1 -1
- package/dist/constants/componentProps/width.js +1 -1
- package/dist/constants/componentProps/wrap.js +1 -1
- package/dist/context/Notifications.js +38 -53
- package/dist/context/UIContext.js +14 -17
- package/dist/css/components/Choice/Choice.css +8 -0
- package/dist/css/components/Code/Code.css +30 -43
- package/dist/css/components/DatePicker/DatePicker.css +39 -0
- package/dist/css/components/Notification/Notification.css +22 -10
- package/dist/css/components/Notification/css/__item/notification__item_set_form.css +15 -0
- package/dist/css/components/Swiper/Swiper.css +6 -3
- package/dist/css/components/Tab/Tab.css +10 -1
- package/dist/css/styles/align/align.css +0 -1
- package/dist/css/styles/align/align_horizontal-reverse.css +6 -6
- package/dist/css/styles/align/align_horizontal.css +9 -9
- package/dist/css/styles/border-color/border-color.css +15 -1
- package/dist/css/styles/column-gap/column-gap.css +3 -1
- package/dist/css/styles/gap/gap.css +3 -1
- package/dist/css/styles/row-gap/row-gap.css +3 -1
- package/dist/hooks/useDeviceTargetClass.js +19 -18
- package/dist/hooks/useMediaQueries.js +7 -10
- package/dist/hooks/useStyles.js +127 -8
- package/package.json +30 -29
- package/dist/useStyles-e4accb53.js +0 -153
|
@@ -16,14 +16,6 @@ require('../constants/componentProps/iconSize.js');
|
|
|
16
16
|
require('../constants/componentProps/shape.js');
|
|
17
17
|
require('../constants/componentProps/strokeColor.js');
|
|
18
18
|
require('./Link.js');
|
|
19
|
-
require('../useStyles-e4accb53.js');
|
|
20
|
-
require('lodash/camelCase');
|
|
21
|
-
require('lodash/maxBy');
|
|
22
|
-
require('lodash/upperFirst');
|
|
23
|
-
require('../hooks/styleAttributes.js');
|
|
24
|
-
require('../context/UIContext.js');
|
|
25
|
-
require('../hooks/useMediaQueries.js');
|
|
26
|
-
require('react-responsive');
|
|
27
19
|
require('../constants/componentProps/size.js');
|
|
28
20
|
require('../constants/componentProps/textColor.js');
|
|
29
21
|
require('../constants/componentProps/textGradient.js');
|
|
@@ -31,6 +23,14 @@ require('../constants/componentProps/textStyle.js');
|
|
|
31
23
|
require('../constants/componentProps/textWeight.js');
|
|
32
24
|
require('../constants/componentProps/type.js');
|
|
33
25
|
require('../constants/componentProps/underline.js');
|
|
26
|
+
require('../hooks/useStyles.js');
|
|
27
|
+
require('lodash/camelCase');
|
|
28
|
+
require('lodash/maxBy');
|
|
29
|
+
require('lodash/upperFirst');
|
|
30
|
+
require('../hooks/styleAttributes.js');
|
|
31
|
+
require('../context/UIContext.js');
|
|
32
|
+
require('../hooks/useMediaQueries.js');
|
|
33
|
+
require('react-responsive');
|
|
34
34
|
require('lodash/castArray');
|
|
35
35
|
require('../constants/componentProps/textColorActive.js');
|
|
36
36
|
require('../constants/componentProps/textColorHover.js');
|
|
@@ -64,11 +64,12 @@ var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
|
|
|
64
64
|
var Select__default = /*#__PURE__*/_interopDefault(Select$1);
|
|
65
65
|
var clsx__default = /*#__PURE__*/_interopDefault(clsx);
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
clearIcon
|
|
70
|
-
clearIconFill
|
|
71
|
-
clearIconStroke
|
|
67
|
+
const SelectClearIndicator = props => {
|
|
68
|
+
const {
|
|
69
|
+
clearIcon,
|
|
70
|
+
clearIconFill,
|
|
71
|
+
clearIconStroke
|
|
72
|
+
} = props.selectProps;
|
|
72
73
|
return /*#__PURE__*/React__namespace.default.createElement(Select$1.components.ClearIndicator, props, clearIcon ? /*#__PURE__*/React__namespace.default.createElement(index$1.Icon, {
|
|
73
74
|
SvgImage: clearIcon,
|
|
74
75
|
iconFill: clearIconFill,
|
|
@@ -7517,14 +7518,15 @@ var CreatableSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
7517
7518
|
});
|
|
7518
7519
|
var CreatableSelect$1 = CreatableSelect;
|
|
7519
7520
|
|
|
7520
|
-
|
|
7521
|
-
|
|
7522
|
-
inputFill
|
|
7523
|
-
inputShape
|
|
7524
|
-
inputBorderColor
|
|
7525
|
-
inputBorderColorHover
|
|
7521
|
+
const SelectControl = props => {
|
|
7522
|
+
const {
|
|
7523
|
+
inputFill,
|
|
7524
|
+
inputShape,
|
|
7525
|
+
inputBorderColor,
|
|
7526
|
+
inputBorderColorHover
|
|
7527
|
+
} = props.selectProps;
|
|
7526
7528
|
return /*#__PURE__*/React__namespace.default.createElement(Select$1.components.Control, Object.assign({}, props, {
|
|
7527
|
-
className: clsx__default.default('select__control', inputFill, inputShape, inputBorderColor &&
|
|
7529
|
+
className: clsx__default.default('select__control', inputFill, inputShape, inputBorderColor && `border-color_${inputBorderColor}`, inputBorderColorHover && `border-color_hover_${inputBorderColorHover}`)
|
|
7528
7530
|
}));
|
|
7529
7531
|
};
|
|
7530
7532
|
SelectControl.propTypes = {
|
|
@@ -7535,11 +7537,12 @@ SelectControl.propTypes = {
|
|
|
7535
7537
|
})
|
|
7536
7538
|
};
|
|
7537
7539
|
|
|
7538
|
-
|
|
7539
|
-
|
|
7540
|
-
dropdownIcon
|
|
7541
|
-
dropdownIconFill
|
|
7542
|
-
dropdownIconStroke
|
|
7540
|
+
const SelectDropdownIndicator = props => {
|
|
7541
|
+
const {
|
|
7542
|
+
dropdownIcon,
|
|
7543
|
+
dropdownIconFill,
|
|
7544
|
+
dropdownIconStroke
|
|
7545
|
+
} = props.selectProps;
|
|
7543
7546
|
return /*#__PURE__*/React__namespace.default.createElement(Select$1.components.DropdownIndicator, props, dropdownIcon ? /*#__PURE__*/React__namespace.default.createElement(index$1.Icon, {
|
|
7544
7547
|
SvgImage: dropdownIcon,
|
|
7545
7548
|
iconFill: dropdownIconFill,
|
|
@@ -7554,13 +7557,14 @@ SelectDropdownIndicator.propTypes = {
|
|
|
7554
7557
|
})
|
|
7555
7558
|
};
|
|
7556
7559
|
|
|
7557
|
-
|
|
7558
|
-
|
|
7559
|
-
headingFill
|
|
7560
|
-
headingFillHover
|
|
7561
|
-
headingTextWeight
|
|
7562
|
-
headingTextSize
|
|
7563
|
-
headingTextColor
|
|
7560
|
+
const SelectGroupHeading = props => {
|
|
7561
|
+
const {
|
|
7562
|
+
headingFill,
|
|
7563
|
+
headingFillHover,
|
|
7564
|
+
headingTextWeight,
|
|
7565
|
+
headingTextSize,
|
|
7566
|
+
headingTextColor
|
|
7567
|
+
} = props.selectProps;
|
|
7564
7568
|
return /*#__PURE__*/React__namespace.default.createElement(Select$1.components.GroupHeading, Object.assign({}, props, {
|
|
7565
7569
|
className: clsx__default.default('select__menu-group-heading', headingFill, headingFillHover)
|
|
7566
7570
|
}), /*#__PURE__*/React__namespace.default.createElement(index$2.Text, {
|
|
@@ -7573,13 +7577,14 @@ SelectGroupHeading.propTypes = {
|
|
|
7573
7577
|
selectProps: PropTypes__default.default.shape({})
|
|
7574
7578
|
};
|
|
7575
7579
|
|
|
7576
|
-
|
|
7577
|
-
|
|
7578
|
-
inputTextSize
|
|
7579
|
-
inputTextColor
|
|
7580
|
-
inputCaretColor
|
|
7580
|
+
const SelectInput = props => {
|
|
7581
|
+
const {
|
|
7582
|
+
inputTextSize,
|
|
7583
|
+
inputTextColor,
|
|
7584
|
+
inputCaretColor
|
|
7585
|
+
} = props.selectProps;
|
|
7581
7586
|
return /*#__PURE__*/React__namespace.default.createElement(Select$1.components.Input, Object.assign({}, props, {
|
|
7582
|
-
className: clsx__default.default(inputTextSize &&
|
|
7587
|
+
className: clsx__default.default(inputTextSize && `text_size_${inputTextSize}`, inputTextColor && `text-color_${inputTextColor}`, inputCaretColor && `caret-color_${inputCaretColor}`)
|
|
7583
7588
|
}));
|
|
7584
7589
|
};
|
|
7585
7590
|
SelectInput.propTypes = {
|
|
@@ -7591,10 +7596,12 @@ SelectInput.propTypes = {
|
|
|
7591
7596
|
children: PropTypes__default.default.any
|
|
7592
7597
|
};
|
|
7593
7598
|
|
|
7594
|
-
|
|
7595
|
-
|
|
7599
|
+
const SelectMenu = props => {
|
|
7600
|
+
const {
|
|
7601
|
+
elevation
|
|
7602
|
+
} = props.selectProps;
|
|
7596
7603
|
return /*#__PURE__*/React__namespace.default.createElement(Select$1.components.Menu, Object.assign({}, props, {
|
|
7597
|
-
className: clsx__default.default(elevation &&
|
|
7604
|
+
className: clsx__default.default(elevation && `elevation_${elevation}`)
|
|
7598
7605
|
}), props.selectProps.fetchingData ? /*#__PURE__*/React__namespace.default.createElement("span", {
|
|
7599
7606
|
className: "fetching"
|
|
7600
7607
|
}, "Fetching data...") : /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, props.children));
|
|
@@ -7607,10 +7614,11 @@ SelectMenu.propTypes = {
|
|
|
7607
7614
|
children: PropTypes__default.default.any
|
|
7608
7615
|
};
|
|
7609
7616
|
|
|
7610
|
-
|
|
7611
|
-
|
|
7612
|
-
multipleItemFill
|
|
7613
|
-
multipleItemFillHover
|
|
7617
|
+
const SelectMultiValueContainer = props => {
|
|
7618
|
+
const {
|
|
7619
|
+
multipleItemFill,
|
|
7620
|
+
multipleItemFillHover
|
|
7621
|
+
} = props.selectProps;
|
|
7614
7622
|
return /*#__PURE__*/React__namespace.default.createElement(Select$1.components.MultiValueContainer, props, /*#__PURE__*/React__namespace.default.createElement(index$3.Group, {
|
|
7615
7623
|
className: "select__multi-value-wrapper",
|
|
7616
7624
|
direction: "horizontal",
|
|
@@ -7621,10 +7629,11 @@ var SelectMultiValueContainer = function SelectMultiValueContainer(props) {
|
|
|
7621
7629
|
}, props.children));
|
|
7622
7630
|
};
|
|
7623
7631
|
|
|
7624
|
-
|
|
7625
|
-
|
|
7626
|
-
multipleItemTextSize
|
|
7627
|
-
multipleItemTextColor
|
|
7632
|
+
const SelectMultiValueLabel = props => {
|
|
7633
|
+
const {
|
|
7634
|
+
multipleItemTextSize,
|
|
7635
|
+
multipleItemTextColor
|
|
7636
|
+
} = props.selectProps;
|
|
7628
7637
|
return /*#__PURE__*/React__namespace.default.createElement(Select$1.components.MultiValueLabel, props, /*#__PURE__*/React__namespace.default.createElement(index$2.Text, {
|
|
7629
7638
|
size: multipleItemTextSize,
|
|
7630
7639
|
textColor: multipleItemTextColor
|
|
@@ -7632,10 +7641,11 @@ var SelectMultiValueLabel = function SelectMultiValueLabel(props) {
|
|
|
7632
7641
|
};
|
|
7633
7642
|
SelectMultiValueLabel.propTypes = {};
|
|
7634
7643
|
|
|
7635
|
-
|
|
7636
|
-
|
|
7637
|
-
multipleItemIcon
|
|
7638
|
-
multipleItemIconFill
|
|
7644
|
+
const SelectMultiValueRemove = props => {
|
|
7645
|
+
const {
|
|
7646
|
+
multipleItemIcon,
|
|
7647
|
+
multipleItemIconFill
|
|
7648
|
+
} = props.selectProps;
|
|
7639
7649
|
return /*#__PURE__*/React__namespace.default.createElement(Select$1.components.MultiValueRemove, props, /*#__PURE__*/React__namespace.default.createElement(index$1.Icon, {
|
|
7640
7650
|
SvgImage: multipleItemIcon,
|
|
7641
7651
|
iconFill: multipleItemIconFill
|
|
@@ -7643,14 +7653,15 @@ var SelectMultiValueRemove = function SelectMultiValueRemove(props) {
|
|
|
7643
7653
|
};
|
|
7644
7654
|
SelectMultiValueRemove.propTypes = {};
|
|
7645
7655
|
|
|
7646
|
-
|
|
7647
|
-
|
|
7648
|
-
optionFill
|
|
7649
|
-
optionBorder
|
|
7650
|
-
optionBorderType
|
|
7651
|
-
noOptionsTextSize
|
|
7652
|
-
noOptionsTextColor
|
|
7653
|
-
noOptionsText
|
|
7656
|
+
const SelectNoOptions = props => {
|
|
7657
|
+
const {
|
|
7658
|
+
optionFill,
|
|
7659
|
+
optionBorder,
|
|
7660
|
+
optionBorderType,
|
|
7661
|
+
noOptionsTextSize,
|
|
7662
|
+
noOptionsTextColor,
|
|
7663
|
+
noOptionsText
|
|
7664
|
+
} = props.selectProps;
|
|
7654
7665
|
return /*#__PURE__*/React__namespace.default.createElement(Select$1.components.NoOptionsMessage, Object.assign({}, props, {
|
|
7655
7666
|
className: clsx__default.default(optionFill, optionBorder, optionBorderType)
|
|
7656
7667
|
}), /*#__PURE__*/React__namespace.default.createElement(index$2.Text, {
|
|
@@ -7667,21 +7678,24 @@ SelectNoOptions.propTypes = {
|
|
|
7667
7678
|
children: PropTypes__default.default.any
|
|
7668
7679
|
};
|
|
7669
7680
|
|
|
7670
|
-
|
|
7671
|
-
|
|
7672
|
-
|
|
7673
|
-
|
|
7674
|
-
|
|
7675
|
-
|
|
7676
|
-
|
|
7677
|
-
|
|
7678
|
-
|
|
7679
|
-
|
|
7680
|
-
|
|
7681
|
-
|
|
7682
|
-
|
|
7683
|
-
|
|
7684
|
-
|
|
7681
|
+
const SelectOption = props => {
|
|
7682
|
+
const {
|
|
7683
|
+
label,
|
|
7684
|
+
isSelected,
|
|
7685
|
+
data
|
|
7686
|
+
} = props;
|
|
7687
|
+
const {
|
|
7688
|
+
optionFill,
|
|
7689
|
+
optionFillHover,
|
|
7690
|
+
optionBorder,
|
|
7691
|
+
optionBorderType,
|
|
7692
|
+
optionSelected,
|
|
7693
|
+
optionTextSize,
|
|
7694
|
+
optionShape,
|
|
7695
|
+
optionTextColor,
|
|
7696
|
+
optionBefore,
|
|
7697
|
+
optionAfter
|
|
7698
|
+
} = props.selectProps;
|
|
7685
7699
|
return /*#__PURE__*/React__namespace.default.createElement(Select$1.components.Option, Object.assign({}, props, {
|
|
7686
7700
|
className: clsx__default.default('select__menu-list-item', isSelected && 'select__menu-list-item_state_selected', optionFill, optionBorder, optionBorderType, optionFillHover, optionShape)
|
|
7687
7701
|
}), optionBefore, /*#__PURE__*/React__namespace.default.createElement(index$2.Text, {
|
|
@@ -7705,10 +7719,11 @@ SelectOption.propTypes = {
|
|
|
7705
7719
|
isSelected: PropTypes__default.default.any
|
|
7706
7720
|
};
|
|
7707
7721
|
|
|
7708
|
-
|
|
7709
|
-
|
|
7710
|
-
placeholderTextSize
|
|
7711
|
-
placeholderTextColor
|
|
7722
|
+
const SelectPlaceholder = props => {
|
|
7723
|
+
const {
|
|
7724
|
+
placeholderTextSize,
|
|
7725
|
+
placeholderTextColor
|
|
7726
|
+
} = props.selectProps;
|
|
7712
7727
|
return /*#__PURE__*/React__namespace.default.createElement(Select$1.components.Placeholder, props, /*#__PURE__*/React__namespace.default.createElement(index$2.Text, {
|
|
7713
7728
|
size: placeholderTextSize,
|
|
7714
7729
|
textColor: placeholderTextColor
|
|
@@ -7722,11 +7737,14 @@ SelectPlaceholder.propTypes = {
|
|
|
7722
7737
|
children: PropTypes__default.default.any
|
|
7723
7738
|
};
|
|
7724
7739
|
|
|
7725
|
-
|
|
7726
|
-
|
|
7727
|
-
|
|
7728
|
-
|
|
7729
|
-
|
|
7740
|
+
const SelectSingleValue = props => {
|
|
7741
|
+
const {
|
|
7742
|
+
data
|
|
7743
|
+
} = props;
|
|
7744
|
+
const {
|
|
7745
|
+
inputTextSize,
|
|
7746
|
+
inputTextColor
|
|
7747
|
+
} = props.selectProps;
|
|
7730
7748
|
return /*#__PURE__*/React__namespace.default.createElement(Select$1.components.SingleValue, props, data.optionBefore, /*#__PURE__*/React__namespace.default.createElement(index$2.Text, {
|
|
7731
7749
|
size: inputTextSize,
|
|
7732
7750
|
textColor: inputTextColor
|
|
@@ -7741,11 +7759,12 @@ SelectSingleValue.propTypes = {
|
|
|
7741
7759
|
data: PropTypes__default.default.object
|
|
7742
7760
|
};
|
|
7743
7761
|
|
|
7744
|
-
|
|
7745
|
-
|
|
7746
|
-
|
|
7747
|
-
|
|
7748
|
-
inputAfter
|
|
7762
|
+
const SelectValueContainer = props => {
|
|
7763
|
+
const {
|
|
7764
|
+
children,
|
|
7765
|
+
inputBefore,
|
|
7766
|
+
inputAfter
|
|
7767
|
+
} = props.selectProps;
|
|
7749
7768
|
return /*#__PURE__*/React__namespace.default.createElement(Select$1.components.ValueContainer, props, inputBefore, props.children, inputAfter);
|
|
7750
7769
|
};
|
|
7751
7770
|
SelectValueContainer.propTypes = {
|
|
@@ -7756,154 +7775,150 @@ SelectValueContainer.propTypes = {
|
|
|
7756
7775
|
})
|
|
7757
7776
|
};
|
|
7758
7777
|
|
|
7759
|
-
|
|
7760
|
-
|
|
7761
|
-
|
|
7762
|
-
|
|
7763
|
-
|
|
7764
|
-
|
|
7765
|
-
|
|
7766
|
-
|
|
7767
|
-
|
|
7768
|
-
|
|
7769
|
-
|
|
7770
|
-
|
|
7771
|
-
|
|
7772
|
-
|
|
7773
|
-
|
|
7774
|
-
|
|
7775
|
-
|
|
7776
|
-
|
|
7777
|
-
|
|
7778
|
-
|
|
7779
|
-
|
|
7780
|
-
|
|
7781
|
-
|
|
7782
|
-
|
|
7783
|
-
|
|
7784
|
-
|
|
7785
|
-
|
|
7786
|
-
|
|
7787
|
-
|
|
7788
|
-
|
|
7789
|
-
|
|
7790
|
-
|
|
7791
|
-
|
|
7792
|
-
|
|
7793
|
-
|
|
7794
|
-
|
|
7795
|
-
|
|
7796
|
-
|
|
7797
|
-
|
|
7798
|
-
onChange = props.onChange;
|
|
7799
|
-
var borderColorClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7778
|
+
const SelectContainer = /*#__PURE__*/React__namespace.default.forwardRef(function SelectContainer(props, ref) {
|
|
7779
|
+
const clearStyle = React.useMemo(() => new Proxy({}, {
|
|
7780
|
+
get: (target, propKey) => () => {}
|
|
7781
|
+
}), []);
|
|
7782
|
+
const {
|
|
7783
|
+
className,
|
|
7784
|
+
clearIcon,
|
|
7785
|
+
clearIconFill,
|
|
7786
|
+
clearIconStroke,
|
|
7787
|
+
closeMenuOnSelect,
|
|
7788
|
+
dropdownIcon,
|
|
7789
|
+
dropdownIconFill,
|
|
7790
|
+
dropdownIconStroke,
|
|
7791
|
+
multipleItemIcon,
|
|
7792
|
+
multipleItemIconFill,
|
|
7793
|
+
multipleItemFill,
|
|
7794
|
+
multipleItemFillHover,
|
|
7795
|
+
filterOption,
|
|
7796
|
+
key,
|
|
7797
|
+
initialValue,
|
|
7798
|
+
inputAfter,
|
|
7799
|
+
inputBefore,
|
|
7800
|
+
isClearable,
|
|
7801
|
+
isCreatable,
|
|
7802
|
+
isMulti,
|
|
7803
|
+
isSearchable,
|
|
7804
|
+
noOptionsText,
|
|
7805
|
+
openMenuOnClick,
|
|
7806
|
+
options,
|
|
7807
|
+
optionBefore,
|
|
7808
|
+
optionAfter,
|
|
7809
|
+
optionSelected,
|
|
7810
|
+
elevation,
|
|
7811
|
+
placeholder,
|
|
7812
|
+
set,
|
|
7813
|
+
value,
|
|
7814
|
+
onChange
|
|
7815
|
+
} = props;
|
|
7816
|
+
const borderColorClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7800
7817
|
prefix: 'border-color_',
|
|
7801
7818
|
propsKey: 'borderColor'
|
|
7802
7819
|
});
|
|
7803
|
-
|
|
7820
|
+
const fillClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7804
7821
|
prefix: 'fill_',
|
|
7805
7822
|
propsKey: 'fill'
|
|
7806
7823
|
});
|
|
7807
|
-
|
|
7824
|
+
const fillHoverClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7808
7825
|
prefix: 'fill_hover_',
|
|
7809
7826
|
propsKey: 'fill'
|
|
7810
7827
|
});
|
|
7811
|
-
|
|
7828
|
+
const shapeClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7812
7829
|
prefix: 'select_shape_',
|
|
7813
7830
|
propsKey: 'shape'
|
|
7814
7831
|
});
|
|
7815
|
-
|
|
7832
|
+
const sizeClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7816
7833
|
prefix: 'select_size_',
|
|
7817
7834
|
propsKey: 'size'
|
|
7818
7835
|
});
|
|
7819
|
-
|
|
7836
|
+
const optionFillClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7820
7837
|
prefix: 'fill_',
|
|
7821
7838
|
propsKey: 'optionFill'
|
|
7822
7839
|
});
|
|
7823
|
-
|
|
7840
|
+
const optionFillHoverClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7824
7841
|
prefix: 'fill_hover_',
|
|
7825
7842
|
propsKey: 'optionFillHover'
|
|
7826
7843
|
});
|
|
7827
|
-
|
|
7844
|
+
const optionBorderClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7828
7845
|
prefix: 'border-color_',
|
|
7829
7846
|
propsKey: 'optionBorder'
|
|
7830
7847
|
});
|
|
7831
|
-
|
|
7848
|
+
const optionBorderTypeClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7832
7849
|
prefix: 'border_',
|
|
7833
7850
|
propsKey: 'optionBorderType'
|
|
7834
7851
|
});
|
|
7835
|
-
|
|
7852
|
+
const optionTextSizeClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7836
7853
|
propsKey: 'optionTextSize'
|
|
7837
7854
|
});
|
|
7838
|
-
|
|
7855
|
+
const optionTextColorClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7839
7856
|
propsKey: 'optionTextColor'
|
|
7840
7857
|
});
|
|
7841
|
-
|
|
7858
|
+
const optionShapeClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7842
7859
|
propsKey: 'optionShape'
|
|
7843
7860
|
});
|
|
7844
|
-
|
|
7861
|
+
const inputFillClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7845
7862
|
prefix: 'select__control_fill_',
|
|
7846
7863
|
propsKey: 'inputFill'
|
|
7847
7864
|
});
|
|
7848
|
-
|
|
7865
|
+
const inputShapeClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7849
7866
|
prefix: 'select__control_shape_',
|
|
7850
7867
|
propsKey: 'inputShape'
|
|
7851
7868
|
});
|
|
7852
|
-
|
|
7869
|
+
const inputTextSizeClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7853
7870
|
propsKey: 'inputTextSize'
|
|
7854
7871
|
});
|
|
7855
|
-
|
|
7872
|
+
const inputTextColorClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7856
7873
|
propsKey: 'inputTextColor'
|
|
7857
7874
|
});
|
|
7858
|
-
|
|
7875
|
+
const multipleItemTextSizeClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7859
7876
|
propsKey: 'multipleItemTextSize'
|
|
7860
7877
|
});
|
|
7861
|
-
|
|
7878
|
+
const multipleItemTextColorClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7862
7879
|
propsKey: 'multipleItemTextColor'
|
|
7863
7880
|
});
|
|
7864
|
-
|
|
7881
|
+
const inputBorderColorClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7865
7882
|
propsKey: 'inputBorderColor'
|
|
7866
7883
|
});
|
|
7867
|
-
|
|
7884
|
+
const inputBorderColorHoverClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7868
7885
|
propsKey: 'inputBorderColorHover'
|
|
7869
7886
|
});
|
|
7870
|
-
|
|
7887
|
+
const placeholderTextSizeClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7871
7888
|
propsKey: 'placeholderTextSize'
|
|
7872
7889
|
});
|
|
7873
|
-
|
|
7890
|
+
const placeholderTextColorClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7874
7891
|
propsKey: 'placeholderTextColor'
|
|
7875
7892
|
});
|
|
7876
|
-
|
|
7893
|
+
const noOptionsTextSizeClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7877
7894
|
propsKey: 'noOptionsTextSize'
|
|
7878
7895
|
});
|
|
7879
|
-
|
|
7896
|
+
const noOptionsTextColorClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7880
7897
|
propsKey: 'noOptionsTextColor'
|
|
7881
7898
|
});
|
|
7882
|
-
|
|
7899
|
+
const inputCaretColorClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7883
7900
|
propsKey: 'inputCaretColor'
|
|
7884
7901
|
});
|
|
7885
|
-
|
|
7902
|
+
const headingFillClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7886
7903
|
prefix: 'fill_',
|
|
7887
7904
|
propsKey: 'headingFill'
|
|
7888
7905
|
});
|
|
7889
|
-
|
|
7906
|
+
const headingFillHoverClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7890
7907
|
prefix: 'fill_hover_',
|
|
7891
7908
|
propsKey: 'headingFillHover'
|
|
7892
7909
|
});
|
|
7893
|
-
|
|
7910
|
+
const headingTextSizeClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7894
7911
|
propsKey: 'headingTextSize'
|
|
7895
7912
|
});
|
|
7896
|
-
|
|
7913
|
+
const headingTextWeightClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7897
7914
|
propsKey: 'headingTextWeight'
|
|
7898
7915
|
});
|
|
7899
|
-
|
|
7916
|
+
const headingTextColorClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7900
7917
|
propsKey: 'headingTextColor'
|
|
7901
7918
|
});
|
|
7902
|
-
|
|
7903
|
-
return isCreatable ? CreatableSelect$1 : Select__default.default;
|
|
7904
|
-
}, [isCreatable]);
|
|
7919
|
+
const SelectComponent = React.useMemo(() => isCreatable ? CreatableSelect$1 : Select__default.default, [isCreatable]);
|
|
7905
7920
|
return /*#__PURE__*/React__namespace.default.createElement(SelectComponent, {
|
|
7906
|
-
className: clsx__default.default(className, 'select', fillClass, fillHoverClass, shapeClass, borderColorClass, sizeClass, set &&
|
|
7921
|
+
className: clsx__default.default(className, 'select', fillClass, fillHoverClass, shapeClass, borderColorClass, sizeClass, set && `select_set_${set}`),
|
|
7907
7922
|
classNamePrefix: "select",
|
|
7908
7923
|
styles: clearStyle,
|
|
7909
7924
|
value: value,
|
|
@@ -7913,7 +7928,7 @@ var SelectContainer = /*#__PURE__*/React__namespace.default.forwardRef(function
|
|
|
7913
7928
|
clearIcon: clearIcon,
|
|
7914
7929
|
clearIconFill: clearIconFill,
|
|
7915
7930
|
clearIconStroke: clearIconStroke,
|
|
7916
|
-
closeMenuOnSelect: closeMenuOnSelect
|
|
7931
|
+
closeMenuOnSelect: closeMenuOnSelect ?? false,
|
|
7917
7932
|
defaultValue: initialValue,
|
|
7918
7933
|
dropdownIcon: dropdownIcon,
|
|
7919
7934
|
dropdownIconFill: dropdownIconFill,
|
|
@@ -7968,9 +7983,7 @@ var SelectContainer = /*#__PURE__*/React__namespace.default.forwardRef(function
|
|
|
7968
7983
|
Control: SelectControl,
|
|
7969
7984
|
ClearIndicator: SelectClearIndicator,
|
|
7970
7985
|
DropdownIndicator: SelectDropdownIndicator,
|
|
7971
|
-
IndicatorSeparator:
|
|
7972
|
-
return null;
|
|
7973
|
-
},
|
|
7986
|
+
IndicatorSeparator: () => null,
|
|
7974
7987
|
Input: SelectInput,
|
|
7975
7988
|
Menu: SelectMenu,
|
|
7976
7989
|
MultiValueContainer: SelectMultiValueContainer,
|
|
@@ -17,10 +17,6 @@ require('../constants/componentProps/iconSize.js');
|
|
|
17
17
|
require('../constants/componentProps/shape.js');
|
|
18
18
|
require('../constants/componentProps/strokeColor.js');
|
|
19
19
|
require('./Link.js');
|
|
20
|
-
require('../useStyles-e4accb53.js');
|
|
21
|
-
require('lodash/maxBy');
|
|
22
|
-
require('lodash/upperFirst');
|
|
23
|
-
require('../hooks/styleAttributes.js');
|
|
24
20
|
require('../constants/componentProps/size.js');
|
|
25
21
|
require('../constants/componentProps/textColor.js');
|
|
26
22
|
require('../constants/componentProps/textGradient.js');
|
|
@@ -28,6 +24,10 @@ require('../constants/componentProps/textStyle.js');
|
|
|
28
24
|
require('../constants/componentProps/textWeight.js');
|
|
29
25
|
require('../constants/componentProps/type.js');
|
|
30
26
|
require('../constants/componentProps/underline.js');
|
|
27
|
+
require('../hooks/useStyles.js');
|
|
28
|
+
require('lodash/maxBy');
|
|
29
|
+
require('lodash/upperFirst');
|
|
30
|
+
require('../hooks/styleAttributes.js');
|
|
31
31
|
require('../constants/componentProps/textColorActive.js');
|
|
32
32
|
require('../constants/componentProps/textColorHover.js');
|
|
33
33
|
|
|
@@ -38,26 +38,29 @@ var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
|
|
|
38
38
|
var clsx__default = /*#__PURE__*/_interopDefault(clsx);
|
|
39
39
|
|
|
40
40
|
function SiteMenu(props) {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
41
|
+
const {
|
|
42
|
+
children,
|
|
43
|
+
className,
|
|
44
|
+
closeText,
|
|
45
|
+
closeTextSize,
|
|
46
|
+
closeTextColor,
|
|
47
|
+
closeTextColorHover,
|
|
48
|
+
onClose,
|
|
49
|
+
iconCloseFill,
|
|
50
|
+
iconCloseSize,
|
|
51
|
+
iconCloseBgFill,
|
|
52
|
+
iconCloseStroke,
|
|
53
|
+
iconClose
|
|
54
|
+
} = props;
|
|
55
|
+
const {
|
|
56
|
+
isSiteMenuOpen,
|
|
57
|
+
setIsSiteMenuOpen
|
|
58
|
+
} = UIContext.useSiteMenuContext();
|
|
59
|
+
const onClickClose = React.useCallback(event => {
|
|
57
60
|
setIsSiteMenuOpen(false);
|
|
58
61
|
onClose && onClose(event);
|
|
59
62
|
}, [onClose]);
|
|
60
|
-
|
|
63
|
+
const fillClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
61
64
|
prefix: 'fill_',
|
|
62
65
|
propsKey: 'fill'
|
|
63
66
|
});
|
|
@@ -111,13 +114,16 @@ SiteMenu.propTypes = {
|
|
|
111
114
|
};
|
|
112
115
|
|
|
113
116
|
function SiteMenuButton(props) {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
117
|
+
const {
|
|
118
|
+
className,
|
|
119
|
+
onClick,
|
|
120
|
+
children,
|
|
121
|
+
text
|
|
122
|
+
} = props;
|
|
123
|
+
const {
|
|
124
|
+
setIsSiteMenuOpen
|
|
125
|
+
} = UIContext.useSiteMenuContext();
|
|
126
|
+
const onClickButton = React.useCallback(event => {
|
|
121
127
|
setIsSiteMenuOpen(true);
|
|
122
128
|
onClick && onClick(event);
|
|
123
129
|
}, []);
|