@itcase/ui 1.0.16 → 1.0.18
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/Avatar.js +9 -4
- package/dist/components/Button.js +20 -19
- package/dist/components/Code.js +150 -0
- package/dist/components/DatePicker.js +32 -28
- package/dist/components/Dropdown.js +14 -12
- package/dist/components/FormField.js +4 -1
- package/dist/components/Group.js +5 -1
- package/dist/components/Icon.js +2 -0
- package/dist/components/Input.js +4 -0
- package/dist/components/Select.js +160 -88
- package/dist/components/Tab.js +19 -10
- package/dist/css/components/Code/Code.css +55 -0
- package/dist/css/components/DatePicker/DatePicker.css +164 -99
- package/dist/css/components/Notification/Notification.css +1 -2
- package/dist/css/components/Select/Select.css +12 -0
- package/dist/css/components/Select/css/__multi-value/select__multi-value.css +6 -0
- package/dist/css/components/Select/css/__value-container/select__value-container.css +4 -0
- package/dist/css/components/Switch/Switch.css +15 -8
- package/dist/css/components/Tab/Tab.css +18 -1
- package/dist/css/components/Textarea/Textarea.css +1 -7
- package/package.json +1 -1
|
@@ -2,18 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var PropTypes = require('prop-types');
|
|
5
|
-
var
|
|
5
|
+
var index$1 = require('./Icon.js');
|
|
6
6
|
var Select$1 = require('react-select');
|
|
7
|
+
var clsx = require('clsx');
|
|
7
8
|
var defineProperty = require('../defineProperty-f9e5e1f3.js');
|
|
8
9
|
var ReactDOM = require('react-dom');
|
|
9
10
|
var useDeviceTargetClass = require('../hooks/useDeviceTargetClass.js');
|
|
10
|
-
var index$1 = require('./Icon.js');
|
|
11
11
|
var index$2 = require('./Text.js');
|
|
12
|
-
require('
|
|
13
|
-
require('lodash/camelCase');
|
|
14
|
-
require('../context/UIContext.js');
|
|
15
|
-
require('../hooks/useMediaQueries.js');
|
|
16
|
-
require('react-responsive');
|
|
12
|
+
var index$3 = require('./Group.js');
|
|
17
13
|
require('react-inlinesvg');
|
|
18
14
|
require('../constants/componentProps/fill.js');
|
|
19
15
|
require('../constants/componentProps/iconSize.js');
|
|
@@ -21,9 +17,13 @@ require('../constants/componentProps/shape.js');
|
|
|
21
17
|
require('../constants/componentProps/strokeColor.js');
|
|
22
18
|
require('./Link.js');
|
|
23
19
|
require('../useStyles-e4accb53.js');
|
|
20
|
+
require('lodash/camelCase');
|
|
24
21
|
require('lodash/maxBy');
|
|
25
22
|
require('lodash/upperFirst');
|
|
26
23
|
require('../hooks/styleAttributes.js');
|
|
24
|
+
require('../context/UIContext.js');
|
|
25
|
+
require('../hooks/useMediaQueries.js');
|
|
26
|
+
require('react-responsive');
|
|
27
27
|
require('../constants/componentProps/size.js');
|
|
28
28
|
require('../constants/componentProps/textColor.js');
|
|
29
29
|
require('../constants/componentProps/textGradient.js');
|
|
@@ -31,8 +31,13 @@ require('../constants/componentProps/textStyle.js');
|
|
|
31
31
|
require('../constants/componentProps/textWeight.js');
|
|
32
32
|
require('../constants/componentProps/type.js');
|
|
33
33
|
require('../constants/componentProps/underline.js');
|
|
34
|
+
require('lodash/castArray');
|
|
34
35
|
require('../constants/componentProps/textColorActive.js');
|
|
35
36
|
require('../constants/componentProps/textColorHover.js');
|
|
37
|
+
require('../constants/componentProps/direction.js');
|
|
38
|
+
require('../constants/componentProps/stacking.js');
|
|
39
|
+
require('../constants/componentProps/wrap.js');
|
|
40
|
+
require('../constants/componentProps/width.js');
|
|
36
41
|
|
|
37
42
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
38
43
|
|
|
@@ -56,8 +61,27 @@ function _interopNamespace(e) {
|
|
|
56
61
|
|
|
57
62
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
58
63
|
var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
|
|
59
|
-
var clsx__default = /*#__PURE__*/_interopDefault(clsx);
|
|
60
64
|
var Select__default = /*#__PURE__*/_interopDefault(Select$1);
|
|
65
|
+
var clsx__default = /*#__PURE__*/_interopDefault(clsx);
|
|
66
|
+
|
|
67
|
+
var SelectClearIndicator = function SelectClearIndicator(props) {
|
|
68
|
+
var _props$selectProps = props.selectProps,
|
|
69
|
+
clearIcon = _props$selectProps.clearIcon,
|
|
70
|
+
clearIconFill = _props$selectProps.clearIconFill,
|
|
71
|
+
clearIconStroke = _props$selectProps.clearIconStroke;
|
|
72
|
+
return /*#__PURE__*/React__namespace.default.createElement(Select$1.components.ClearIndicator, props, clearIcon ? /*#__PURE__*/React__namespace.default.createElement(index$1.Icon, {
|
|
73
|
+
SvgImage: clearIcon,
|
|
74
|
+
iconFill: clearIconFill,
|
|
75
|
+
iconStroke: clearIconStroke
|
|
76
|
+
}) : props.children);
|
|
77
|
+
};
|
|
78
|
+
SelectClearIndicator.propTypes = {
|
|
79
|
+
selectProps: PropTypes__default.default.shape({
|
|
80
|
+
clearIcon: PropTypes__default.default.string,
|
|
81
|
+
clearIconFill: PropTypes__default.default.string,
|
|
82
|
+
clearIconStroke: PropTypes__default.default.string
|
|
83
|
+
})
|
|
84
|
+
};
|
|
61
85
|
|
|
62
86
|
function _extends() {
|
|
63
87
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
@@ -7494,8 +7518,12 @@ var CreatableSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
7494
7518
|
var CreatableSelect$1 = CreatableSelect;
|
|
7495
7519
|
|
|
7496
7520
|
var SelectControl = function SelectControl(props) {
|
|
7521
|
+
var _props$selectProps = props.selectProps,
|
|
7522
|
+
inputFill = _props$selectProps.inputFill,
|
|
7523
|
+
inputShape = _props$selectProps.inputShape,
|
|
7524
|
+
inputBorderColor = _props$selectProps.inputBorderColor;
|
|
7497
7525
|
return /*#__PURE__*/React__namespace.default.createElement(Select$1.components.Control, Object.assign({}, props, {
|
|
7498
|
-
className: clsx__default.default(
|
|
7526
|
+
className: clsx__default.default(inputFill, inputShape, inputBorderColor && "border-color_" + inputBorderColor)
|
|
7499
7527
|
}));
|
|
7500
7528
|
};
|
|
7501
7529
|
SelectControl.propTypes = {
|
|
@@ -7506,27 +7534,15 @@ SelectControl.propTypes = {
|
|
|
7506
7534
|
})
|
|
7507
7535
|
};
|
|
7508
7536
|
|
|
7509
|
-
var SelectClearIndicator = function SelectClearIndicator(props) {
|
|
7510
|
-
return /*#__PURE__*/React__namespace.default.createElement(Select$1.components.ClearIndicator, props, props.selectProps.clearIcon ? /*#__PURE__*/React__namespace.default.createElement(index$1.Icon, {
|
|
7511
|
-
SvgImage: props.selectProps.clearIcon,
|
|
7512
|
-
iconFill: props.selectProps.clearIconFill,
|
|
7513
|
-
iconStroke: props.selectProps.clearIconStroke
|
|
7514
|
-
}) : props.children);
|
|
7515
|
-
};
|
|
7516
|
-
SelectClearIndicator.propTypes = {
|
|
7517
|
-
selectProps: PropTypes__default.default.shape({
|
|
7518
|
-
clearIcon: PropTypes__default.default.string,
|
|
7519
|
-
clearIconFill: PropTypes__default.default.string,
|
|
7520
|
-
clearIconStroke: PropTypes__default.default.string
|
|
7521
|
-
}),
|
|
7522
|
-
children: PropTypes__default.default.any
|
|
7523
|
-
};
|
|
7524
|
-
|
|
7525
7537
|
var SelectDropdownIndicator = function SelectDropdownIndicator(props) {
|
|
7526
|
-
|
|
7527
|
-
|
|
7528
|
-
|
|
7529
|
-
|
|
7538
|
+
var _props$selectProps = props.selectProps,
|
|
7539
|
+
dropdownIcon = _props$selectProps.dropdownIcon,
|
|
7540
|
+
dropdownIconFill = _props$selectProps.dropdownIconFill,
|
|
7541
|
+
dropdownIconStroke = _props$selectProps.dropdownIconStroke;
|
|
7542
|
+
return /*#__PURE__*/React__namespace.default.createElement(Select$1.components.DropdownIndicator, props, dropdownIcon ? /*#__PURE__*/React__namespace.default.createElement(index$1.Icon, {
|
|
7543
|
+
SvgImage: dropdownIcon,
|
|
7544
|
+
iconFill: dropdownIconFill,
|
|
7545
|
+
iconStroke: dropdownIconStroke
|
|
7530
7546
|
}) : props.children);
|
|
7531
7547
|
};
|
|
7532
7548
|
SelectDropdownIndicator.propTypes = {
|
|
@@ -7534,13 +7550,33 @@ SelectDropdownIndicator.propTypes = {
|
|
|
7534
7550
|
dropdownIcon: PropTypes__default.default.string,
|
|
7535
7551
|
dropdownIconFill: PropTypes__default.default.string,
|
|
7536
7552
|
dropdownIconStroke: PropTypes__default.default.string
|
|
7537
|
-
})
|
|
7538
|
-
|
|
7553
|
+
})
|
|
7554
|
+
};
|
|
7555
|
+
|
|
7556
|
+
var SelectGroupHeading = function SelectGroupHeading(props) {
|
|
7557
|
+
var _props$selectProps = props.selectProps,
|
|
7558
|
+
headingFill = _props$selectProps.headingFill,
|
|
7559
|
+
headingFillHover = _props$selectProps.headingFillHover,
|
|
7560
|
+
headingTextSize = _props$selectProps.headingTextSize,
|
|
7561
|
+
headingTextColor = _props$selectProps.headingTextColor;
|
|
7562
|
+
return /*#__PURE__*/React__namespace.default.createElement(Select$1.components.GroupHeading, Object.assign({}, props, {
|
|
7563
|
+
className: clsx__default.default('select__menu-group-heading', headingFill, headingFillHover)
|
|
7564
|
+
}), /*#__PURE__*/React__namespace.default.createElement(index$2.Text, {
|
|
7565
|
+
size: headingTextSize,
|
|
7566
|
+
textColor: headingTextColor
|
|
7567
|
+
}, props.data.label));
|
|
7568
|
+
};
|
|
7569
|
+
SelectGroupHeading.propTypes = {
|
|
7570
|
+
selectProps: PropTypes__default.default.shape({})
|
|
7539
7571
|
};
|
|
7540
7572
|
|
|
7541
7573
|
var SelectInput = function SelectInput(props) {
|
|
7574
|
+
var _props$selectProps = props.selectProps,
|
|
7575
|
+
inputTextSize = _props$selectProps.inputTextSize,
|
|
7576
|
+
inputTextColor = _props$selectProps.inputTextColor,
|
|
7577
|
+
inputCaretColor = _props$selectProps.inputCaretColor;
|
|
7542
7578
|
return /*#__PURE__*/React__namespace.default.createElement(Select$1.components.Input, Object.assign({}, props, {
|
|
7543
|
-
className: clsx__default.default(
|
|
7579
|
+
className: clsx__default.default(inputTextSize && "text_size_" + inputTextSize, inputTextColor && "text-color_" + inputTextColor, inputCaretColor && "caret-color_" + inputCaretColor)
|
|
7544
7580
|
}));
|
|
7545
7581
|
};
|
|
7546
7582
|
SelectInput.propTypes = {
|
|
@@ -7565,6 +7601,66 @@ SelectMenu.propTypes = {
|
|
|
7565
7601
|
children: PropTypes__default.default.any
|
|
7566
7602
|
};
|
|
7567
7603
|
|
|
7604
|
+
var SelectMultiValueContainer = function SelectMultiValueContainer(props) {
|
|
7605
|
+
var _props$selectProps = props.selectProps,
|
|
7606
|
+
multipleItemFill = _props$selectProps.multipleItemFill,
|
|
7607
|
+
multipleItemFillHover = _props$selectProps.multipleItemFillHover;
|
|
7608
|
+
return /*#__PURE__*/React__namespace.default.createElement(Select$1.components.MultiValueContainer, props, /*#__PURE__*/React__namespace.default.createElement(index$3.Group, {
|
|
7609
|
+
className: "select__multi-value-wrapper",
|
|
7610
|
+
direction: "horizontal",
|
|
7611
|
+
alignItems: "center",
|
|
7612
|
+
gap: "4",
|
|
7613
|
+
fill: multipleItemFill,
|
|
7614
|
+
fillHover: multipleItemFillHover
|
|
7615
|
+
}, props.children));
|
|
7616
|
+
};
|
|
7617
|
+
|
|
7618
|
+
var SelectMultiValueLabel = function SelectMultiValueLabel(props) {
|
|
7619
|
+
var _props$selectProps = props.selectProps,
|
|
7620
|
+
multipleItemTextSize = _props$selectProps.multipleItemTextSize,
|
|
7621
|
+
multipleItemTextColor = _props$selectProps.multipleItemTextColor;
|
|
7622
|
+
return /*#__PURE__*/React__namespace.default.createElement(Select$1.components.MultiValueLabel, props, /*#__PURE__*/React__namespace.default.createElement(index$2.Text, {
|
|
7623
|
+
size: multipleItemTextSize,
|
|
7624
|
+
textColor: multipleItemTextColor
|
|
7625
|
+
}, props.data.label));
|
|
7626
|
+
};
|
|
7627
|
+
SelectMultiValueLabel.propTypes = {};
|
|
7628
|
+
|
|
7629
|
+
var SelectMultiValueRemove = function SelectMultiValueRemove(props) {
|
|
7630
|
+
var _props$selectProps = props.selectProps,
|
|
7631
|
+
multipleItemIcon = _props$selectProps.multipleItemIcon,
|
|
7632
|
+
multipleItemIconFill = _props$selectProps.multipleItemIconFill;
|
|
7633
|
+
return /*#__PURE__*/React__namespace.default.createElement(Select$1.components.MultiValueRemove, props, /*#__PURE__*/React__namespace.default.createElement(index$1.Icon, {
|
|
7634
|
+
SvgImage: multipleItemIcon,
|
|
7635
|
+
iconFill: multipleItemIconFill
|
|
7636
|
+
}));
|
|
7637
|
+
};
|
|
7638
|
+
SelectMultiValueRemove.propTypes = {};
|
|
7639
|
+
|
|
7640
|
+
var SelectNoOptions = function SelectNoOptions(props) {
|
|
7641
|
+
var _props$selectProps = props.selectProps,
|
|
7642
|
+
optionFill = _props$selectProps.optionFill,
|
|
7643
|
+
optionBorder = _props$selectProps.optionBorder,
|
|
7644
|
+
optionBorderType = _props$selectProps.optionBorderType,
|
|
7645
|
+
noOptionsTextSize = _props$selectProps.noOptionsTextSize,
|
|
7646
|
+
noOptionsTextColor = _props$selectProps.noOptionsTextColor,
|
|
7647
|
+
noOptionsText = _props$selectProps.noOptionsText;
|
|
7648
|
+
return /*#__PURE__*/React__namespace.default.createElement(Select$1.components.NoOptionsMessage, Object.assign({}, props, {
|
|
7649
|
+
className: clsx__default.default(optionFill, optionBorder, optionBorderType)
|
|
7650
|
+
}), /*#__PURE__*/React__namespace.default.createElement(index$2.Text, {
|
|
7651
|
+
size: noOptionsTextSize,
|
|
7652
|
+
textColor: noOptionsTextColor
|
|
7653
|
+
}, noOptionsText));
|
|
7654
|
+
};
|
|
7655
|
+
SelectNoOptions.propTypes = {
|
|
7656
|
+
selectProps: PropTypes__default.default.shape({
|
|
7657
|
+
noOptionsTextSize: PropTypes__default.default.string,
|
|
7658
|
+
noOptionsTextColor: PropTypes__default.default.string,
|
|
7659
|
+
noOptionsText: PropTypes__default.default.string
|
|
7660
|
+
}),
|
|
7661
|
+
children: PropTypes__default.default.any
|
|
7662
|
+
};
|
|
7663
|
+
|
|
7568
7664
|
var SelectOption = function SelectOption(props) {
|
|
7569
7665
|
var label = props.label,
|
|
7570
7666
|
isSelected = props.isSelected,
|
|
@@ -7600,9 +7696,12 @@ SelectOption.propTypes = {
|
|
|
7600
7696
|
};
|
|
7601
7697
|
|
|
7602
7698
|
var SelectPlaceholder = function SelectPlaceholder(props) {
|
|
7699
|
+
var _props$selectProps = props.selectProps,
|
|
7700
|
+
placeholderTextSize = _props$selectProps.placeholderTextSize,
|
|
7701
|
+
placeholderTextColor = _props$selectProps.placeholderTextColor;
|
|
7603
7702
|
return /*#__PURE__*/React__namespace.default.createElement(Select$1.components.Placeholder, props, /*#__PURE__*/React__namespace.default.createElement(index$2.Text, {
|
|
7604
|
-
size:
|
|
7605
|
-
textColor:
|
|
7703
|
+
size: placeholderTextSize,
|
|
7704
|
+
textColor: placeholderTextColor
|
|
7606
7705
|
}, props.children));
|
|
7607
7706
|
};
|
|
7608
7707
|
SelectPlaceholder.propTypes = {
|
|
@@ -7615,9 +7714,12 @@ SelectPlaceholder.propTypes = {
|
|
|
7615
7714
|
|
|
7616
7715
|
var SelectSingleValue = function SelectSingleValue(props) {
|
|
7617
7716
|
var data = props.data;
|
|
7717
|
+
var _props$selectProps = props.selectProps,
|
|
7718
|
+
inputTextSize = _props$selectProps.inputTextSize,
|
|
7719
|
+
inputTextColor = _props$selectProps.inputTextColor;
|
|
7618
7720
|
return /*#__PURE__*/React__namespace.default.createElement(Select$1.components.SingleValue, props, data.optionBefore, /*#__PURE__*/React__namespace.default.createElement(index$2.Text, {
|
|
7619
|
-
size:
|
|
7620
|
-
textColor:
|
|
7721
|
+
size: inputTextSize,
|
|
7722
|
+
textColor: inputTextColor
|
|
7621
7723
|
}, props.children), data.optionAfter);
|
|
7622
7724
|
};
|
|
7623
7725
|
SelectSingleValue.propTypes = {
|
|
@@ -7644,44 +7746,6 @@ SelectValueContainer.propTypes = {
|
|
|
7644
7746
|
})
|
|
7645
7747
|
};
|
|
7646
7748
|
|
|
7647
|
-
var SelectNoOptions = function SelectNoOptions(props) {
|
|
7648
|
-
var _props$selectProps = props.selectProps,
|
|
7649
|
-
optionFill = _props$selectProps.optionFill,
|
|
7650
|
-
optionBorder = _props$selectProps.optionBorder,
|
|
7651
|
-
optionBorderType = _props$selectProps.optionBorderType;
|
|
7652
|
-
return /*#__PURE__*/React__namespace.default.createElement(Select$1.components.NoOptionsMessage, Object.assign({}, props, {
|
|
7653
|
-
className: clsx__default.default(optionFill, optionBorder, optionBorderType)
|
|
7654
|
-
}), /*#__PURE__*/React__namespace.default.createElement(index$2.Text, {
|
|
7655
|
-
size: props.selectProps.noOptionsTextSize,
|
|
7656
|
-
textColor: props.selectProps.noOptionsTextColor
|
|
7657
|
-
}, props.selectProps.noOptionsText));
|
|
7658
|
-
};
|
|
7659
|
-
SelectNoOptions.propTypes = {
|
|
7660
|
-
selectProps: PropTypes__default.default.shape({
|
|
7661
|
-
noOptionsTextSize: PropTypes__default.default.string,
|
|
7662
|
-
noOptionsTextColor: PropTypes__default.default.string,
|
|
7663
|
-
noOptionsText: PropTypes__default.default.string
|
|
7664
|
-
}),
|
|
7665
|
-
children: PropTypes__default.default.any
|
|
7666
|
-
};
|
|
7667
|
-
|
|
7668
|
-
var SelectGroupHeading = function SelectGroupHeading(props) {
|
|
7669
|
-
var _props$selectProps = props.selectProps,
|
|
7670
|
-
headingFill = _props$selectProps.headingFill,
|
|
7671
|
-
headingFillHover = _props$selectProps.headingFillHover,
|
|
7672
|
-
headingBorder = _props$selectProps.headingBorder,
|
|
7673
|
-
headingBorderType = _props$selectProps.headingBorderType,
|
|
7674
|
-
headingTextSize = _props$selectProps.headingTextSize,
|
|
7675
|
-
headingTextColor = _props$selectProps.headingTextColor,
|
|
7676
|
-
headingShape = _props$selectProps.headingShape;
|
|
7677
|
-
return /*#__PURE__*/React__namespace.default.createElement(Select$1.components.GroupHeading, Object.assign({}, props, {
|
|
7678
|
-
className: clsx__default.default('select__menu-group-heading', headingFill, headingFillHover, headingBorder, headingBorderType, headingTextSize, headingTextColor, headingShape)
|
|
7679
|
-
}));
|
|
7680
|
-
};
|
|
7681
|
-
SelectGroupHeading.propTypes = {
|
|
7682
|
-
selectProps: PropTypes__default.default.shape({})
|
|
7683
|
-
};
|
|
7684
|
-
|
|
7685
7749
|
var SelectContainer = /*#__PURE__*/React__namespace.default.forwardRef(function SelectContainer(props, ref) {
|
|
7686
7750
|
var clearStyle = React.useMemo(function () {
|
|
7687
7751
|
return new Proxy({}, {
|
|
@@ -7698,6 +7762,10 @@ var SelectContainer = /*#__PURE__*/React__namespace.default.forwardRef(function
|
|
|
7698
7762
|
dropdownIcon = props.dropdownIcon,
|
|
7699
7763
|
dropdownIconFill = props.dropdownIconFill,
|
|
7700
7764
|
dropdownIconStroke = props.dropdownIconStroke,
|
|
7765
|
+
multipleItemIcon = props.multipleItemIcon,
|
|
7766
|
+
multipleItemIconFill = props.multipleItemIconFill,
|
|
7767
|
+
multipleItemFill = props.multipleItemFill,
|
|
7768
|
+
multipleItemFillHover = props.multipleItemFillHover,
|
|
7701
7769
|
filterOption = props.filterOption,
|
|
7702
7770
|
key = props.key,
|
|
7703
7771
|
initialValue = props.initialValue,
|
|
@@ -7773,6 +7841,12 @@ var SelectContainer = /*#__PURE__*/React__namespace.default.forwardRef(function
|
|
|
7773
7841
|
var inputTextColorClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7774
7842
|
propsKey: 'inputTextColor'
|
|
7775
7843
|
});
|
|
7844
|
+
var multipleItemTextSizeClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7845
|
+
propsKey: 'multipleItemTextSize'
|
|
7846
|
+
});
|
|
7847
|
+
var multipleItemTextColorClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7848
|
+
propsKey: 'multipleItemTextColor'
|
|
7849
|
+
});
|
|
7776
7850
|
var inputBorderColorClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7777
7851
|
propsKey: 'inputBorderColor'
|
|
7778
7852
|
});
|
|
@@ -7799,23 +7873,12 @@ var SelectContainer = /*#__PURE__*/React__namespace.default.forwardRef(function
|
|
|
7799
7873
|
prefix: 'fill_hover_',
|
|
7800
7874
|
propsKey: 'headingFillHover'
|
|
7801
7875
|
});
|
|
7802
|
-
var headingBorderClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7803
|
-
prefix: 'border-color_',
|
|
7804
|
-
propsKey: 'headingBorder'
|
|
7805
|
-
});
|
|
7806
|
-
var headingBorderTypeClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7807
|
-
prefix: 'border_',
|
|
7808
|
-
propsKey: 'headingBorderType'
|
|
7809
|
-
});
|
|
7810
7876
|
var headingTextSizeClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7811
7877
|
propsKey: 'headingTextSize'
|
|
7812
7878
|
});
|
|
7813
7879
|
var headingTextColorClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7814
7880
|
propsKey: 'headingTextColor'
|
|
7815
7881
|
});
|
|
7816
|
-
var headingShapeClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7817
|
-
propsKey: 'headingShape'
|
|
7818
|
-
});
|
|
7819
7882
|
var SelectComponent = React.useMemo(function () {
|
|
7820
7883
|
return isCreatable ? CreatableSelect$1 : Select__default.default;
|
|
7821
7884
|
}, [isCreatable]);
|
|
@@ -7867,9 +7930,12 @@ var SelectContainer = /*#__PURE__*/React__namespace.default.forwardRef(function
|
|
|
7867
7930
|
headingFillHover: headingFillHoverClass,
|
|
7868
7931
|
headingTextSize: headingTextSizeClass,
|
|
7869
7932
|
headingTextColor: headingTextColorClass,
|
|
7870
|
-
|
|
7871
|
-
|
|
7872
|
-
|
|
7933
|
+
multipleItemFill: multipleItemFill,
|
|
7934
|
+
multipleItemFillHover: multipleItemFillHover,
|
|
7935
|
+
multipleItemTextSize: multipleItemTextSizeClass,
|
|
7936
|
+
multipleItemTextColor: multipleItemTextColorClass,
|
|
7937
|
+
multipleItemIcon: multipleItemIcon,
|
|
7938
|
+
multipleItemIconFill: multipleItemIconFill,
|
|
7873
7939
|
options: options,
|
|
7874
7940
|
ref: ref,
|
|
7875
7941
|
components: {
|
|
@@ -7881,6 +7947,9 @@ var SelectContainer = /*#__PURE__*/React__namespace.default.forwardRef(function
|
|
|
7881
7947
|
},
|
|
7882
7948
|
Input: SelectInput,
|
|
7883
7949
|
Menu: SelectMenu,
|
|
7950
|
+
MultiValueContainer: SelectMultiValueContainer,
|
|
7951
|
+
MultiValueRemove: SelectMultiValueRemove,
|
|
7952
|
+
MultiValueLabel: SelectMultiValueLabel,
|
|
7884
7953
|
Option: SelectOption,
|
|
7885
7954
|
SingleValue: SelectSingleValue,
|
|
7886
7955
|
Placeholder: SelectPlaceholder,
|
|
@@ -7924,6 +7993,9 @@ exports.SelectDropdownIndicator = SelectDropdownIndicator;
|
|
|
7924
7993
|
exports.SelectGroupHeading = SelectGroupHeading;
|
|
7925
7994
|
exports.SelectInput = SelectInput;
|
|
7926
7995
|
exports.SelectMenu = SelectMenu;
|
|
7996
|
+
exports.SelectMultiValueContainer = SelectMultiValueContainer;
|
|
7997
|
+
exports.SelectMultiValueLabel = SelectMultiValueLabel;
|
|
7998
|
+
exports.SelectMultiValueRemove = SelectMultiValueRemove;
|
|
7927
7999
|
exports.SelectOption = SelectOption;
|
|
7928
8000
|
exports.SelectPlaceholder = SelectPlaceholder;
|
|
7929
8001
|
exports.SelectSingleValue = SelectSingleValue;
|
package/dist/components/Tab.js
CHANGED
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var PropTypes = require('prop-types');
|
|
5
5
|
var clsx = require('clsx');
|
|
6
|
+
var index$2 = require('./Badge.js');
|
|
6
7
|
var index$1 = require('./Text.js');
|
|
7
8
|
var index = require('./Link.js');
|
|
8
|
-
var index$
|
|
9
|
+
var index$3 = require('./Divider.js');
|
|
9
10
|
var fill = require('../constants/componentProps/fill.js');
|
|
10
11
|
var shape = require('../constants/componentProps/shape.js');
|
|
11
12
|
var textColorActive = require('../constants/componentProps/textColorActive.js');
|
|
@@ -23,6 +24,7 @@ var direction = require('../constants/componentProps/direction.js');
|
|
|
23
24
|
var stacking = require('../constants/componentProps/stacking.js');
|
|
24
25
|
var wrap = require('../constants/componentProps/wrap.js');
|
|
25
26
|
var width = require('../constants/componentProps/width.js');
|
|
27
|
+
require('../constants/componentProps/borderType.js');
|
|
26
28
|
require('lodash/camelCase');
|
|
27
29
|
require('lodash/maxBy');
|
|
28
30
|
require('lodash/upperFirst');
|
|
@@ -75,13 +77,12 @@ function Tab(props) {
|
|
|
75
77
|
dividerSize = props.dividerSize,
|
|
76
78
|
dividerDirection = props.dividerDirection,
|
|
77
79
|
onClick = props.onClick,
|
|
78
|
-
onMouseEnter = props.onMouseEnter
|
|
79
|
-
props.
|
|
80
|
-
props.
|
|
81
|
-
props.
|
|
82
|
-
props.
|
|
83
|
-
props.
|
|
84
|
-
props.badgeValue;
|
|
80
|
+
onMouseEnter = props.onMouseEnter,
|
|
81
|
+
badgeSize = props.badgeSize,
|
|
82
|
+
badgeFill = props.badgeFill,
|
|
83
|
+
badgeTextColor = props.badgeTextColor,
|
|
84
|
+
badgeTextSize = props.badgeTextSize,
|
|
85
|
+
badgeValue = props.badgeValue;
|
|
85
86
|
var alignDirectionClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
86
87
|
prefix: 'align_',
|
|
87
88
|
propsKey: 'alignDirection'
|
|
@@ -146,7 +147,9 @@ function Tab(props) {
|
|
|
146
147
|
fill: linkFillClass,
|
|
147
148
|
target: target,
|
|
148
149
|
rel: rel
|
|
149
|
-
}, /*#__PURE__*/React__default.default.createElement(React__default.default.Fragment, null, before, children || /*#__PURE__*/React__default.default.createElement(React__default.default.Fragment, null,
|
|
150
|
+
}, /*#__PURE__*/React__default.default.createElement(React__default.default.Fragment, null, before, children || /*#__PURE__*/React__default.default.createElement(React__default.default.Fragment, null, /*#__PURE__*/React__default.default.createElement("div", {
|
|
151
|
+
className: "tab__wrapper"
|
|
152
|
+
}, label && /*#__PURE__*/React__default.default.createElement(index$1.Text, {
|
|
150
153
|
className: "tab__label",
|
|
151
154
|
textColorActive: isActive && labelColorActive || appearance && tabConfig.appearance[appearance].labelColorActive.replace(/([A-Z])/g, '-$1').toLowerCase(),
|
|
152
155
|
textGradient: labelTextGradient,
|
|
@@ -156,7 +159,13 @@ function Tab(props) {
|
|
|
156
159
|
textWrap: labelTextWrap,
|
|
157
160
|
textColorHover: labelTextColorHover,
|
|
158
161
|
textStyle: labelTextStyle
|
|
159
|
-
}, dividerFillActive, " ", label), /*#__PURE__*/React__default.default.createElement(index$2.
|
|
162
|
+
}, dividerFillActive, " ", label), badgeValue && /*#__PURE__*/React__default.default.createElement(index$2.Badge, {
|
|
163
|
+
size: badgeSize,
|
|
164
|
+
fill: badgeFill,
|
|
165
|
+
textColor: badgeTextColor,
|
|
166
|
+
textSize: badgeTextSize,
|
|
167
|
+
value: badgeValue
|
|
168
|
+
})), /*#__PURE__*/React__default.default.createElement(index$3.Divider, {
|
|
160
169
|
width: "fill",
|
|
161
170
|
fill: dividerFill || appearance && tabConfig.appearance[appearance].dividerFill.replace(/([A-Z])/g, '-$1').toLowerCase(),
|
|
162
171
|
fillHover: isHover && (dividerFillHover || appearance && tabConfig.appearance[appearance].dividerFillHover.replace(/([A-Z])/g, '-$1').toLowerCase()),
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
.code {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
align-items: center;
|
|
6
|
+
gap: 4px;
|
|
7
|
+
&__group {
|
|
8
|
+
width: 100%;
|
|
9
|
+
display: flex;
|
|
10
|
+
justify-content: space-between;
|
|
11
|
+
align-items: center;
|
|
12
|
+
flex-wrap: nowrap;
|
|
13
|
+
^&__input {
|
|
14
|
+
text-align: center;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
.code {
|
|
19
|
+
&__group {
|
|
20
|
+
^&__input {
|
|
21
|
+
@each $size in tiny, middle, large {
|
|
22
|
+
&.input_size_$(size) {
|
|
23
|
+
max-width: var(--code-input-size-$(size)-width);
|
|
24
|
+
max-height: var(--code-input-size-$(size)-height);
|
|
25
|
+
min-width: var(--code-input-size-$(size)-width);
|
|
26
|
+
min-height: var(--code-input-size-$(size)-height);
|
|
27
|
+
padding: var(--code-input-size-$(size)-padding);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
.code {
|
|
34
|
+
&__group {
|
|
35
|
+
^&__input {
|
|
36
|
+
&.input_shape {
|
|
37
|
+
&_rounded {
|
|
38
|
+
border-radius: 8px;
|
|
39
|
+
}
|
|
40
|
+
&_circular {
|
|
41
|
+
border-radius: 50%;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
:root {
|
|
48
|
+
--code-input-size-tiny-width: 24px;
|
|
49
|
+
--code-input-size-tiny-height: 24px;
|
|
50
|
+
--code-input-size-tiny-padding: 5px;
|
|
51
|
+
|
|
52
|
+
--code-input-size-middle-width: 48px;
|
|
53
|
+
--code-input-size-middle-height: 48px;
|
|
54
|
+
--code-input-size-middle-padding: 10px 12px;
|
|
55
|
+
}
|