@commercetools-uikit/select-utils 15.11.2 → 15.13.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.
|
@@ -554,13 +554,15 @@ var menuPortalStyles = function menuPortalStyles(props) {
|
|
|
554
554
|
};
|
|
555
555
|
};
|
|
556
556
|
|
|
557
|
-
var multiValueStyles = function multiValueStyles(
|
|
557
|
+
var multiValueStyles = function multiValueStyles() {
|
|
558
558
|
return function (base) {
|
|
559
559
|
return _objectSpread(_objectSpread({}, base), {}, {
|
|
560
|
-
|
|
560
|
+
display: 'flex',
|
|
561
|
+
alignItems: designSystem.designTokens.alignItemsForSelectInputTag,
|
|
562
|
+
height: designSystem.designTokens.heightForSelectInputTag,
|
|
561
563
|
backgroundColor: designSystem.designTokens.backgroundColorForTag,
|
|
562
564
|
padding: '0',
|
|
563
|
-
border:
|
|
565
|
+
border: designSystem.designTokens.borderForSelectInputTag
|
|
564
566
|
});
|
|
565
567
|
};
|
|
566
568
|
};
|
|
@@ -570,7 +572,7 @@ var multiValueLabelStyles = function multiValueLabelStyles(props) {
|
|
|
570
572
|
var _context6, _context7;
|
|
571
573
|
|
|
572
574
|
return _objectSpread(_objectSpread({}, base), {}, {
|
|
573
|
-
fontSize: designSystem.designTokens.
|
|
575
|
+
fontSize: designSystem.designTokens.fontSizeForSelectInputTag,
|
|
574
576
|
color: function () {
|
|
575
577
|
if (props.isDisabled) return designSystem.designTokens.fontColorForInputWhenDisabled;
|
|
576
578
|
if (props.isReadOnly) return designSystem.designTokens.fontColorForInputWhenReadonly;
|
|
@@ -623,7 +625,7 @@ function createSelectStyles(props) {
|
|
|
623
625
|
clearIndicator: clearIndicatorStyles(),
|
|
624
626
|
menuList: menuListStyles(),
|
|
625
627
|
menuPortal: menuPortalStyles(props),
|
|
626
|
-
multiValue: multiValueStyles(
|
|
628
|
+
multiValue: multiValueStyles(),
|
|
627
629
|
multiValueLabel: multiValueLabelStyles(props),
|
|
628
630
|
multiValueRemove: multiValueRemoveStyles(props),
|
|
629
631
|
indicatorsContainer: indicatorsContainerStyles(),
|
|
@@ -638,7 +640,7 @@ function createSelectStyles(props) {
|
|
|
638
640
|
}
|
|
639
641
|
|
|
640
642
|
// NOTE: This string will be replaced on build time with the package version.
|
|
641
|
-
var version = "15.
|
|
643
|
+
var version = "15.13.0";
|
|
642
644
|
|
|
643
645
|
exports.ClearIndicator = ClearIndicator$1;
|
|
644
646
|
exports.CustomSelectInputOption = CustomSelectInputOption;
|
|
@@ -554,13 +554,15 @@ var menuPortalStyles = function menuPortalStyles(props) {
|
|
|
554
554
|
};
|
|
555
555
|
};
|
|
556
556
|
|
|
557
|
-
var multiValueStyles = function multiValueStyles(
|
|
557
|
+
var multiValueStyles = function multiValueStyles() {
|
|
558
558
|
return function (base) {
|
|
559
559
|
return _objectSpread(_objectSpread({}, base), {}, {
|
|
560
|
-
|
|
560
|
+
display: 'flex',
|
|
561
|
+
alignItems: designSystem.designTokens.alignItemsForSelectInputTag,
|
|
562
|
+
height: designSystem.designTokens.heightForSelectInputTag,
|
|
561
563
|
backgroundColor: designSystem.designTokens.backgroundColorForTag,
|
|
562
564
|
padding: '0',
|
|
563
|
-
border:
|
|
565
|
+
border: designSystem.designTokens.borderForSelectInputTag
|
|
564
566
|
});
|
|
565
567
|
};
|
|
566
568
|
};
|
|
@@ -570,7 +572,7 @@ var multiValueLabelStyles = function multiValueLabelStyles(props) {
|
|
|
570
572
|
var _context6, _context7;
|
|
571
573
|
|
|
572
574
|
return _objectSpread(_objectSpread({}, base), {}, {
|
|
573
|
-
fontSize: designSystem.designTokens.
|
|
575
|
+
fontSize: designSystem.designTokens.fontSizeForSelectInputTag,
|
|
574
576
|
color: function () {
|
|
575
577
|
if (props.isDisabled) return designSystem.designTokens.fontColorForInputWhenDisabled;
|
|
576
578
|
if (props.isReadOnly) return designSystem.designTokens.fontColorForInputWhenReadonly;
|
|
@@ -623,7 +625,7 @@ function createSelectStyles(props) {
|
|
|
623
625
|
clearIndicator: clearIndicatorStyles(),
|
|
624
626
|
menuList: menuListStyles(),
|
|
625
627
|
menuPortal: menuPortalStyles(props),
|
|
626
|
-
multiValue: multiValueStyles(
|
|
628
|
+
multiValue: multiValueStyles(),
|
|
627
629
|
multiValueLabel: multiValueLabelStyles(props),
|
|
628
630
|
multiValueRemove: multiValueRemoveStyles(props),
|
|
629
631
|
indicatorsContainer: indicatorsContainerStyles(),
|
|
@@ -638,7 +640,7 @@ function createSelectStyles(props) {
|
|
|
638
640
|
}
|
|
639
641
|
|
|
640
642
|
// NOTE: This string will be replaced on build time with the package version.
|
|
641
|
-
var version = "15.
|
|
643
|
+
var version = "15.13.0";
|
|
642
644
|
|
|
643
645
|
exports.ClearIndicator = ClearIndicator$1;
|
|
644
646
|
exports.CustomSelectInputOption = CustomSelectInputOption;
|
|
@@ -534,13 +534,15 @@ var menuPortalStyles = function menuPortalStyles(props) {
|
|
|
534
534
|
};
|
|
535
535
|
};
|
|
536
536
|
|
|
537
|
-
var multiValueStyles = function multiValueStyles(
|
|
537
|
+
var multiValueStyles = function multiValueStyles() {
|
|
538
538
|
return function (base) {
|
|
539
539
|
return _objectSpread(_objectSpread({}, base), {}, {
|
|
540
|
-
|
|
540
|
+
display: 'flex',
|
|
541
|
+
alignItems: designTokens.alignItemsForSelectInputTag,
|
|
542
|
+
height: designTokens.heightForSelectInputTag,
|
|
541
543
|
backgroundColor: designTokens.backgroundColorForTag,
|
|
542
544
|
padding: '0',
|
|
543
|
-
border:
|
|
545
|
+
border: designTokens.borderForSelectInputTag
|
|
544
546
|
});
|
|
545
547
|
};
|
|
546
548
|
};
|
|
@@ -550,7 +552,7 @@ var multiValueLabelStyles = function multiValueLabelStyles(props) {
|
|
|
550
552
|
var _context6, _context7;
|
|
551
553
|
|
|
552
554
|
return _objectSpread(_objectSpread({}, base), {}, {
|
|
553
|
-
fontSize: designTokens.
|
|
555
|
+
fontSize: designTokens.fontSizeForSelectInputTag,
|
|
554
556
|
color: function () {
|
|
555
557
|
if (props.isDisabled) return designTokens.fontColorForInputWhenDisabled;
|
|
556
558
|
if (props.isReadOnly) return designTokens.fontColorForInputWhenReadonly;
|
|
@@ -603,7 +605,7 @@ function createSelectStyles(props) {
|
|
|
603
605
|
clearIndicator: clearIndicatorStyles(),
|
|
604
606
|
menuList: menuListStyles(),
|
|
605
607
|
menuPortal: menuPortalStyles(props),
|
|
606
|
-
multiValue: multiValueStyles(
|
|
608
|
+
multiValue: multiValueStyles(),
|
|
607
609
|
multiValueLabel: multiValueLabelStyles(props),
|
|
608
610
|
multiValueRemove: multiValueRemoveStyles(props),
|
|
609
611
|
indicatorsContainer: indicatorsContainerStyles(),
|
|
@@ -618,6 +620,6 @@ function createSelectStyles(props) {
|
|
|
618
620
|
}
|
|
619
621
|
|
|
620
622
|
// NOTE: This string will be replaced on build time with the package version.
|
|
621
|
-
var version = "15.
|
|
623
|
+
var version = "15.13.0";
|
|
622
624
|
|
|
623
625
|
export { ClearIndicator$1 as ClearIndicator, CustomSelectInputOption, DoublePropertySelectInputOption, DropdownIndicator$1 as DropdownIndicator, MultiplePropertiesSelectInputOption, SELECT_DROPDOWN_OPTION_TYPES, SearchIconDropdownIndicator$1 as SearchIconDropdownIndicator, TagRemove$1 as TagRemove, WrapperWithIcon$1 as ValueWrapperWithIcon, createSelectStyles, customComponents as customComponentsWithIcons, messages, version };
|
|
@@ -134,10 +134,12 @@ export default function createSelectStyles(props: TProps & {
|
|
|
134
134
|
pointerEvents?: string | undefined;
|
|
135
135
|
};
|
|
136
136
|
multiValue: (base: TBase) => {
|
|
137
|
-
|
|
137
|
+
display: string;
|
|
138
|
+
alignItems: "var(--align-items-for-select-input-tag, unset)";
|
|
139
|
+
height: "var(--height-for-select-input-tag, 26px)";
|
|
138
140
|
backgroundColor: "var(--background-color-for-tag, hsl(0, 0%, 95%))";
|
|
139
141
|
padding: string;
|
|
140
|
-
border:
|
|
142
|
+
border: "var(--border-for-select-input-tag, none)";
|
|
141
143
|
fontColorForInput?: string | undefined;
|
|
142
144
|
borderColorForInput?: string | undefined;
|
|
143
145
|
color?: string | undefined;
|
|
@@ -147,7 +149,7 @@ export default function createSelectStyles(props: TProps & {
|
|
|
147
149
|
pointerEvents?: string | undefined;
|
|
148
150
|
};
|
|
149
151
|
multiValueLabel: (base: TBase) => {
|
|
150
|
-
fontSize: "var(--font-size-
|
|
152
|
+
fontSize: "var(--font-size-for-select-input-tag, 0.9231rem)";
|
|
151
153
|
color: string | undefined;
|
|
152
154
|
padding: string;
|
|
153
155
|
borderRadius: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-uikit/select-utils",
|
|
3
3
|
"description": "Utilities for working with select components.",
|
|
4
|
-
"version": "15.
|
|
4
|
+
"version": "15.13.0",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -19,16 +19,16 @@
|
|
|
19
19
|
"module": "dist/commercetools-uikit-select-utils.esm.js",
|
|
20
20
|
"files": ["dist"],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@babel/runtime": "^7.
|
|
23
|
-
"@babel/runtime-corejs3": "^7.
|
|
24
|
-
"@commercetools-uikit/accessible-button": "15.
|
|
25
|
-
"@commercetools-uikit/design-system": "15.
|
|
26
|
-
"@commercetools-uikit/icons": "15.
|
|
27
|
-
"@commercetools-uikit/spacings": "15.
|
|
28
|
-
"@commercetools-uikit/text": "15.
|
|
29
|
-
"@commercetools-uikit/utils": "15.
|
|
30
|
-
"@emotion/react": "^11.
|
|
31
|
-
"@emotion/styled": "^11.
|
|
22
|
+
"@babel/runtime": "^7.20.13",
|
|
23
|
+
"@babel/runtime-corejs3": "^7.20.13",
|
|
24
|
+
"@commercetools-uikit/accessible-button": "15.13.0",
|
|
25
|
+
"@commercetools-uikit/design-system": "15.13.0",
|
|
26
|
+
"@commercetools-uikit/icons": "15.13.0",
|
|
27
|
+
"@commercetools-uikit/spacings": "15.13.0",
|
|
28
|
+
"@commercetools-uikit/text": "15.13.0",
|
|
29
|
+
"@commercetools-uikit/utils": "15.13.0",
|
|
30
|
+
"@emotion/react": "^11.10.5",
|
|
31
|
+
"@emotion/styled": "^11.10.5",
|
|
32
32
|
"lodash": "4.17.21",
|
|
33
33
|
"prop-types": "15.8.1",
|
|
34
34
|
"react-select": "5.7.0"
|