@commercetools-uikit/select-utils 15.8.0 → 15.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/commercetools-uikit-select-utils.cjs.dev.js +1 -1
- package/dist/commercetools-uikit-select-utils.cjs.prod.js +1 -1
- package/dist/commercetools-uikit-select-utils.esm.js +1 -1
- package/dist/declarations/src/clear-indicator/clear-indicator.d.ts +2 -2
- package/dist/declarations/src/create-select-styles.d.ts +3 -3
- package/dist/declarations/src/custom-styled-select-options/custom-styled-select-options.d.ts +5 -5
- package/dist/declarations/src/tag-remove/tag-remove.d.ts +2 -2
- package/dist/declarations/src/wrapper-with-icon/wrapper-with-icon.d.ts +5 -5
- package/package.json +8 -8
|
@@ -613,7 +613,7 @@ function createSelectStyles(props) {
|
|
|
613
613
|
}
|
|
614
614
|
|
|
615
615
|
// NOTE: This string will be replaced on build time with the package version.
|
|
616
|
-
var version = "15.
|
|
616
|
+
var version = "15.10.0";
|
|
617
617
|
|
|
618
618
|
exports.ClearIndicator = ClearIndicator$1;
|
|
619
619
|
exports.CustomSelectInputOption = CustomSelectInputOption;
|
|
@@ -613,7 +613,7 @@ function createSelectStyles(props) {
|
|
|
613
613
|
}
|
|
614
614
|
|
|
615
615
|
// NOTE: This string will be replaced on build time with the package version.
|
|
616
|
-
var version = "15.
|
|
616
|
+
var version = "15.10.0";
|
|
617
617
|
|
|
618
618
|
exports.ClearIndicator = ClearIndicator$1;
|
|
619
619
|
exports.CustomSelectInputOption = CustomSelectInputOption;
|
|
@@ -593,6 +593,6 @@ function createSelectStyles(props) {
|
|
|
593
593
|
}
|
|
594
594
|
|
|
595
595
|
// NOTE: This string will be replaced on build time with the package version.
|
|
596
|
-
var version = "15.
|
|
596
|
+
var version = "15.10.0";
|
|
597
597
|
|
|
598
598
|
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 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { LegacyRef } from 'react';
|
|
2
2
|
import type { ClearIndicatorProps } from 'react-select';
|
|
3
|
-
|
|
3
|
+
type TInnerProps = {
|
|
4
4
|
ref: LegacyRef<HTMLButtonElement>;
|
|
5
5
|
} & JSX.IntrinsicElements['button'];
|
|
6
|
-
|
|
6
|
+
type TClearIndicator = {
|
|
7
7
|
innerProps: TInnerProps;
|
|
8
8
|
} & ClearIndicatorProps;
|
|
9
9
|
declare const ClearIndicator: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
type TProps = {
|
|
3
3
|
isDisabled?: boolean;
|
|
4
4
|
hasError?: boolean;
|
|
5
5
|
hasWarning?: boolean;
|
|
@@ -10,7 +10,7 @@ declare type TProps = {
|
|
|
10
10
|
isMulti?: boolean;
|
|
11
11
|
hasValue?: boolean;
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
type TBase = {
|
|
14
14
|
fontColorForInput?: string;
|
|
15
15
|
borderColorForInput?: string;
|
|
16
16
|
color?: string;
|
|
@@ -20,7 +20,7 @@ declare type TBase = {
|
|
|
20
20
|
boxShadow?: string;
|
|
21
21
|
pointerEvents?: string;
|
|
22
22
|
};
|
|
23
|
-
|
|
23
|
+
type TState = {
|
|
24
24
|
isFocused?: boolean;
|
|
25
25
|
isDisabled?: boolean;
|
|
26
26
|
isSelected?: boolean;
|
package/dist/declarations/src/custom-styled-select-options/custom-styled-select-options.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { OptionProps } from 'react-select';
|
|
2
2
|
import { SELECT_DROPDOWN_OPTION_TYPES } from './constants';
|
|
3
|
-
|
|
3
|
+
type TData = {
|
|
4
4
|
label?: string;
|
|
5
5
|
key?: string;
|
|
6
6
|
id?: string;
|
|
7
7
|
};
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
type SelectDropdownOptionTypesKeys = keyof typeof SELECT_DROPDOWN_OPTION_TYPES;
|
|
9
|
+
type TProps = {
|
|
10
10
|
data?: TData;
|
|
11
11
|
noValueFallback?: string;
|
|
12
|
-
optionType?: typeof SELECT_DROPDOWN_OPTION_TYPES[SelectDropdownOptionTypesKeys];
|
|
12
|
+
optionType?: (typeof SELECT_DROPDOWN_OPTION_TYPES)[SelectDropdownOptionTypesKeys];
|
|
13
13
|
} & OptionProps;
|
|
14
14
|
export declare const MultiplePropertiesSelectInputOption: {
|
|
15
15
|
(props: TProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -19,7 +19,7 @@ export declare const DoublePropertySelectInputOption: {
|
|
|
19
19
|
(props: TProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
20
20
|
displayName: string;
|
|
21
21
|
};
|
|
22
|
-
|
|
22
|
+
type TCustomSelectInputOptionProps = {
|
|
23
23
|
optionInnerProps: TProps;
|
|
24
24
|
} & TProps;
|
|
25
25
|
export declare const CustomSelectInputOption: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { MultiValueGenericProps } from 'react-select';
|
|
2
|
-
|
|
2
|
+
type TSelectProps = {
|
|
3
3
|
isReadOnly: boolean;
|
|
4
4
|
} & MultiValueGenericProps['selectProps'];
|
|
5
|
-
|
|
5
|
+
type TTagRemoveProps = {
|
|
6
6
|
selectProps: TSelectProps;
|
|
7
7
|
} & MultiValueGenericProps;
|
|
8
8
|
declare const TagRemove: {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { type ReactElement } from 'react';
|
|
2
2
|
import { type SingleValueProps, type PlaceholderProps } from 'react-select';
|
|
3
|
-
export
|
|
3
|
+
export type TSingleValueWrapperWithIconProps = {
|
|
4
4
|
type: 'singleValue';
|
|
5
5
|
selectProps?: TSelectProps;
|
|
6
6
|
} & SingleValueProps;
|
|
7
|
-
export
|
|
7
|
+
export type TPlaceholderWrapperWithIconProps = {
|
|
8
8
|
type: 'placeholder';
|
|
9
9
|
selectProps?: TSelectProps;
|
|
10
10
|
} & PlaceholderProps;
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
|
|
11
|
+
export type TWrapperWithIconProps<Type extends 'singleValue' | 'placeholder'> = Type extends 'singleValue' ? TSingleValueWrapperWithIconProps : Type extends 'placeholder' ? TPlaceholderWrapperWithIconProps : never;
|
|
12
|
+
export type TDefaultComponent<Type extends 'singleValue' | 'placeholder'> = (props: Type extends 'singleValue' ? SingleValueProps : Type extends 'placeholder' ? PlaceholderProps : never) => JSX.Element;
|
|
13
|
+
type TSelectProps = {
|
|
14
14
|
iconLeft?: ReactElement;
|
|
15
15
|
};
|
|
16
16
|
declare const WrapperWithIcon: {
|
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.10.0",
|
|
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.19.0",
|
|
23
23
|
"@babel/runtime-corejs3": "^7.19.1",
|
|
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.
|
|
24
|
+
"@commercetools-uikit/accessible-button": "15.10.0",
|
|
25
|
+
"@commercetools-uikit/design-system": "15.10.0",
|
|
26
|
+
"@commercetools-uikit/icons": "15.10.0",
|
|
27
|
+
"@commercetools-uikit/spacings": "15.10.0",
|
|
28
|
+
"@commercetools-uikit/text": "15.10.0",
|
|
29
|
+
"@commercetools-uikit/utils": "15.10.0",
|
|
30
30
|
"@emotion/react": "^11.4.0",
|
|
31
31
|
"@emotion/styled": "^11.3.0",
|
|
32
32
|
"lodash": "4.17.21",
|
|
33
33
|
"prop-types": "15.8.1",
|
|
34
|
-
"react-select": "5.
|
|
34
|
+
"react-select": "5.7.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"react": "17.0.2",
|