@commercetools-uikit/select-utils 16.11.0 → 16.12.1
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/commercetools-uikit-select-utils.cjs.dev.js +4 -3
- package/dist/commercetools-uikit-select-utils.cjs.prod.js +4 -3
- package/dist/commercetools-uikit-select-utils.esm.js +4 -3
- package/dist/declarations/src/clear-indicator/index.d.ts +1 -1
- package/dist/declarations/src/create-select-styles.d.ts +1 -0
- package/dist/declarations/src/custom-styled-select-options/custom-styled-select-options.d.ts +1 -1
- package/dist/declarations/src/custom-styled-select-options/index.d.ts +2 -2
- package/dist/declarations/src/dropdown-indicator/index.d.ts +1 -1
- package/dist/declarations/src/export-types.d.ts +3 -3
- package/dist/declarations/src/index.d.ts +12 -12
- package/dist/declarations/src/search-icon-dropdown-indicator/index.d.ts +1 -1
- package/dist/declarations/src/tag-remove/index.d.ts +1 -1
- package/dist/declarations/src/wrapper-with-icon/index.d.ts +1 -1
- package/package.json +8 -8
- package/dist/declarations/src/clear-indicator/messages.d.ts +0 -8
|
@@ -325,7 +325,7 @@ const controlStyles = props => (base, state) => {
|
|
|
325
325
|
if (props.isReadOnly) return 'default';
|
|
326
326
|
return 'pointer';
|
|
327
327
|
})(),
|
|
328
|
-
padding: "0 ".concat(designSystem.designTokens.paddingForInput),
|
|
328
|
+
padding: props.appearance === 'quiet' ? "0 ".concat(designSystem.designTokens.paddingForInputAsQuiet) : "0 ".concat(designSystem.designTokens.paddingForInput),
|
|
329
329
|
transition: _concatInstanceProperty__default["default"](_context = "border-color ".concat(designSystem.designTokens.transitionStandard, ",\n box-shadow ")).call(_context, designSystem.designTokens.transitionStandard),
|
|
330
330
|
outline: 0,
|
|
331
331
|
boxShadow: 'none'
|
|
@@ -369,7 +369,8 @@ const menuStyles = props => base => {
|
|
|
369
369
|
if (props.hasWarning) return designSystem.designTokens.borderColorForSelectInputMenuWhenWarning;
|
|
370
370
|
return base.borderColorForInput;
|
|
371
371
|
})(),
|
|
372
|
-
width: props.horizontalConstraint === 'auto' ? 'auto' : '100%'
|
|
372
|
+
width: props.horizontalConstraint === 'auto' ? 'auto' : '100%',
|
|
373
|
+
minWidth: designSystem.designTokens.constraint3
|
|
373
374
|
});
|
|
374
375
|
};
|
|
375
376
|
const indicatorSeparatorStyles = () => base => {
|
|
@@ -603,7 +604,7 @@ const warnIfMenuPortalPropsAreMissing = props => {
|
|
|
603
604
|
};
|
|
604
605
|
|
|
605
606
|
// NOTE: This string will be replaced on build time with the package version.
|
|
606
|
-
var version = "16.
|
|
607
|
+
var version = "16.12.1";
|
|
607
608
|
|
|
608
609
|
exports.ClearIndicator = ClearIndicator$1;
|
|
609
610
|
exports.CustomSelectInputOption = CustomSelectInputOption;
|
|
@@ -325,7 +325,7 @@ const controlStyles = props => (base, state) => {
|
|
|
325
325
|
if (props.isReadOnly) return 'default';
|
|
326
326
|
return 'pointer';
|
|
327
327
|
})(),
|
|
328
|
-
padding: "0 ".concat(designSystem.designTokens.paddingForInput),
|
|
328
|
+
padding: props.appearance === 'quiet' ? "0 ".concat(designSystem.designTokens.paddingForInputAsQuiet) : "0 ".concat(designSystem.designTokens.paddingForInput),
|
|
329
329
|
transition: _concatInstanceProperty__default["default"](_context = "border-color ".concat(designSystem.designTokens.transitionStandard, ",\n box-shadow ")).call(_context, designSystem.designTokens.transitionStandard),
|
|
330
330
|
outline: 0,
|
|
331
331
|
boxShadow: 'none'
|
|
@@ -369,7 +369,8 @@ const menuStyles = props => base => {
|
|
|
369
369
|
if (props.hasWarning) return designSystem.designTokens.borderColorForSelectInputMenuWhenWarning;
|
|
370
370
|
return base.borderColorForInput;
|
|
371
371
|
})(),
|
|
372
|
-
width: props.horizontalConstraint === 'auto' ? 'auto' : '100%'
|
|
372
|
+
width: props.horizontalConstraint === 'auto' ? 'auto' : '100%',
|
|
373
|
+
minWidth: designSystem.designTokens.constraint3
|
|
373
374
|
});
|
|
374
375
|
};
|
|
375
376
|
const indicatorSeparatorStyles = () => base => {
|
|
@@ -600,7 +601,7 @@ const warnIfMenuPortalPropsAreMissing = props => {
|
|
|
600
601
|
};
|
|
601
602
|
|
|
602
603
|
// NOTE: This string will be replaced on build time with the package version.
|
|
603
|
-
var version = "16.
|
|
604
|
+
var version = "16.12.1";
|
|
604
605
|
|
|
605
606
|
exports.ClearIndicator = ClearIndicator$1;
|
|
606
607
|
exports.CustomSelectInputOption = CustomSelectInputOption;
|
|
@@ -305,7 +305,7 @@ const controlStyles = props => (base, state) => {
|
|
|
305
305
|
if (props.isReadOnly) return 'default';
|
|
306
306
|
return 'pointer';
|
|
307
307
|
})(),
|
|
308
|
-
padding: "0 ".concat(designTokens.paddingForInput),
|
|
308
|
+
padding: props.appearance === 'quiet' ? "0 ".concat(designTokens.paddingForInputAsQuiet) : "0 ".concat(designTokens.paddingForInput),
|
|
309
309
|
transition: _concatInstanceProperty(_context = "border-color ".concat(designTokens.transitionStandard, ",\n box-shadow ")).call(_context, designTokens.transitionStandard),
|
|
310
310
|
outline: 0,
|
|
311
311
|
boxShadow: 'none'
|
|
@@ -349,7 +349,8 @@ const menuStyles = props => base => {
|
|
|
349
349
|
if (props.hasWarning) return designTokens.borderColorForSelectInputMenuWhenWarning;
|
|
350
350
|
return base.borderColorForInput;
|
|
351
351
|
})(),
|
|
352
|
-
width: props.horizontalConstraint === 'auto' ? 'auto' : '100%'
|
|
352
|
+
width: props.horizontalConstraint === 'auto' ? 'auto' : '100%',
|
|
353
|
+
minWidth: designTokens.constraint3
|
|
353
354
|
});
|
|
354
355
|
};
|
|
355
356
|
const indicatorSeparatorStyles = () => base => {
|
|
@@ -583,6 +584,6 @@ const warnIfMenuPortalPropsAreMissing = props => {
|
|
|
583
584
|
};
|
|
584
585
|
|
|
585
586
|
// NOTE: This string will be replaced on build time with the package version.
|
|
586
|
-
var version = "16.
|
|
587
|
+
var version = "16.12.1";
|
|
587
588
|
|
|
588
589
|
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, warnIfMenuPortalPropsAreMissing };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from
|
|
1
|
+
export { default } from "./clear-indicator.js";
|
|
@@ -65,6 +65,7 @@ export default function createSelectStyles(props: TProps): {
|
|
|
65
65
|
margin: string;
|
|
66
66
|
borderColor: string | undefined;
|
|
67
67
|
width: string;
|
|
68
|
+
minWidth: "var(--constraint-3, 142px)";
|
|
68
69
|
fontColorForInput?: string | undefined;
|
|
69
70
|
borderColorForInput?: string | undefined;
|
|
70
71
|
color?: string | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { SELECT_DROPDOWN_OPTION_TYPES } from
|
|
2
|
-
export * from
|
|
1
|
+
export { SELECT_DROPDOWN_OPTION_TYPES } from "./constants.js";
|
|
2
|
+
export * from "./custom-styled-select-options.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from
|
|
1
|
+
export { default } from "./dropdown-indicator.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { TClearIndicatorProps } from
|
|
2
|
-
export type { TTagRemoveSelectProps, TTagRemoveProps, } from
|
|
3
|
-
export type { TWrapperWithIconProps, TWrapperWithIconSelectProps, TDefaultComponent, } from
|
|
1
|
+
export type { TClearIndicatorProps } from "./clear-indicator/clear-indicator.js";
|
|
2
|
+
export type { TTagRemoveSelectProps, TTagRemoveProps, } from "./tag-remove/tag-remove.js";
|
|
3
|
+
export type { TWrapperWithIconProps, TWrapperWithIconSelectProps, TDefaultComponent, } from "./wrapper-with-icon/wrapper-with-icon.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { default as ClearIndicator } from
|
|
2
|
-
export { default as TagRemove } from
|
|
3
|
-
export { default as DropdownIndicator } from
|
|
4
|
-
export { default as SearchIconDropdownIndicator } from
|
|
5
|
-
export { default as ValueWrapperWithIcon } from
|
|
6
|
-
export { customComponents as customComponentsWithIcons } from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export { default as messages } from
|
|
10
|
-
export { default as createSelectStyles } from
|
|
11
|
-
export { warnIfMenuPortalPropsAreMissing } from
|
|
12
|
-
export { default as version } from
|
|
1
|
+
export { default as ClearIndicator } from "./clear-indicator/index.js";
|
|
2
|
+
export { default as TagRemove } from "./tag-remove/index.js";
|
|
3
|
+
export { default as DropdownIndicator } from "./dropdown-indicator/index.js";
|
|
4
|
+
export { default as SearchIconDropdownIndicator } from "./search-icon-dropdown-indicator/index.js";
|
|
5
|
+
export { default as ValueWrapperWithIcon } from "./wrapper-with-icon/index.js";
|
|
6
|
+
export { customComponents as customComponentsWithIcons } from "./wrapper-with-icon/index.js";
|
|
7
|
+
export * from "./custom-styled-select-options/index.js";
|
|
8
|
+
export * from "./export-types.js";
|
|
9
|
+
export { default as messages } from "./messages.js";
|
|
10
|
+
export { default as createSelectStyles } from "./create-select-styles.js";
|
|
11
|
+
export { warnIfMenuPortalPropsAreMissing } from "./warning.js";
|
|
12
|
+
export { default as version } from "./version.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from
|
|
1
|
+
export { default } from "./search-icon-dropdown-indicator.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from
|
|
1
|
+
export { default } from "./tag-remove.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default, customComponents } from
|
|
1
|
+
export { default, customComponents } from "./wrapper-with-icon.js";
|
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": "16.
|
|
4
|
+
"version": "16.12.1",
|
|
5
5
|
"bugs": "https://github.com/commercetools/ui-kit/issues",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,17 +21,17 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@babel/runtime": "^7.20.13",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.20.13",
|
|
24
|
-
"@commercetools-uikit/accessible-button": "16.
|
|
25
|
-
"@commercetools-uikit/design-system": "16.
|
|
26
|
-
"@commercetools-uikit/icons": "16.
|
|
27
|
-
"@commercetools-uikit/spacings": "16.
|
|
28
|
-
"@commercetools-uikit/text": "16.
|
|
29
|
-
"@commercetools-uikit/utils": "16.
|
|
24
|
+
"@commercetools-uikit/accessible-button": "16.12.1",
|
|
25
|
+
"@commercetools-uikit/design-system": "16.12.1",
|
|
26
|
+
"@commercetools-uikit/icons": "16.12.1",
|
|
27
|
+
"@commercetools-uikit/spacings": "16.12.1",
|
|
28
|
+
"@commercetools-uikit/text": "16.12.1",
|
|
29
|
+
"@commercetools-uikit/utils": "16.12.1",
|
|
30
30
|
"@emotion/react": "^11.10.5",
|
|
31
31
|
"@emotion/styled": "^11.10.5",
|
|
32
32
|
"lodash": "4.17.21",
|
|
33
33
|
"prop-types": "15.8.1",
|
|
34
|
-
"react-select": "5.
|
|
34
|
+
"react-select": "5.8.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"react": "17.0.2",
|