@rescui/select 0.15.1-RUI-280-Update-select-component-downshift-2f40ef205.67 → 0.15.2
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/lib/_virtual/index.css.js +12 -12
- package/lib/common-prop-types.d.ts +14 -9
- package/lib/common-prop-types.js +3 -4
- package/lib/index.css +432 -808
- package/lib/index.d.ts +6 -4
- package/lib/index.js +3 -3
- package/lib/key-codes.d.ts +7 -0
- package/lib/key-codes.js +8 -0
- package/lib/parts/common-select.p.module.css.js +15 -0
- package/lib/parts/foldable.js +2 -1
- package/lib/parts/form-trigger-wrapper.d.ts +7 -7
- package/lib/parts/form-trigger-wrapper.js +34 -16
- package/lib/parts/form-trigger.p.module.css.js +15 -0
- package/lib/parts/multiselect.d.ts +86 -0
- package/lib/parts/multiselect.js +455 -0
- package/lib/parts/native-select.d.ts +36 -0
- package/lib/parts/native-select.js +255 -0
- package/lib/parts/native-select.p.module.css.js +9 -0
- package/lib/parts/throttle.d.ts +1 -0
- package/lib/parts/trigger.d.ts +37 -0
- package/lib/parts/trigger.js +255 -0
- package/lib/parts/trigger.p.module.css.js +31 -0
- package/lib/parts/use-observable-force-rerender.d.ts +2 -0
- package/lib/parts/use-observable-force-rerender.js +16 -0
- package/lib/public-api.p.css +309 -545
- package/lib/public-api.pcss +309 -545
- package/lib/select.d.ts +91 -27
- package/lib/select.js +351 -51
- package/lib/types.d.ts +4 -167
- package/lib/utils.d.ts +22 -0
- package/lib/utils.js +199 -0
- package/package.json +12 -12
- package/lib/constants.d.ts +0 -6
- package/lib/constants.js +0 -7
- package/lib/hooks/use-a11y.d.ts +0 -29
- package/lib/hooks/use-a11y.js +0 -53
- package/lib/hooks/use-focus.d.ts +0 -10
- package/lib/hooks/use-focus.js +0 -17
- package/lib/hooks/use-hover.d.ts +0 -10
- package/lib/hooks/use-hover.js +0 -17
- package/lib/hooks/use-label-focus.d.ts +0 -9
- package/lib/hooks/use-label-focus.js +0 -22
- package/lib/hooks/use-multi-handlers.d.ts +0 -11
- package/lib/hooks/use-multi-handlers.js +0 -48
- package/lib/hooks/use-options.d.ts +0 -13
- package/lib/hooks/use-options.js +0 -89
- package/lib/multiselect.d.ts +0 -3
- package/lib/multiselect.js +0 -312
- package/lib/native-select.d.ts +0 -4
- package/lib/native-select.js +0 -211
- package/lib/parts/hidden-select.d.ts +0 -13
- package/lib/parts/hidden-select.js +0 -45
- package/lib/parts/icons.d.ts +0 -17
- package/lib/parts/icons.js +0 -69
- package/lib/parts/list-box.d.ts +0 -11
- package/lib/parts/list-box.js +0 -116
- package/lib/parts/multi-trigger.d.ts +0 -12
- package/lib/parts/multi-trigger.js +0 -74
- package/lib/parts/native-select-options-with-groups.d.ts +0 -8
- package/lib/parts/native-select-options-with-groups.js +0 -76
- package/lib/select-basic.d.ts +0 -3
- package/lib/select-basic.js +0 -203
- package/lib/select-searchable.d.ts +0 -3
- package/lib/select-searchable.js +0 -250
- package/lib/styles/common.p.module.css.js +0 -31
- package/lib/styles/form-trigger.p.module.css.js +0 -15
- package/lib/styles/list-box.p.module.css.js +0 -14
- package/lib/utils/calculate-max-height-by-items.d.ts +0 -13
- package/lib/utils/calculate-max-height-by-items.js +0 -22
- package/lib/utils/get-empty-message.d.ts +0 -6
- package/lib/utils/get-empty-message.js +0 -32
- package/lib/utils/get-option-value.d.ts +0 -2
- package/lib/utils/get-option-value.js +0 -11
- package/lib/utils/get-real-items-cnt.d.ts +0 -2
- package/lib/utils/get-real-items-cnt.js +0 -19
- package/lib/utils/get-text-from-nodes.d.ts +0 -2
- package/lib/utils/get-text-from-nodes.js +0 -28
- package/lib/utils/is-option-a-group.d.ts +0 -2
- package/lib/utils/is-option-a-group.js +0 -5
- package/lib/utils/item-to-string.d.ts +0 -2
- package/lib/utils/item-to-string.js +0 -7
- package/lib/utils/merge-props.d.ts +0 -29
- package/lib/utils/merge-props.js +0 -106
- package/lib/utils/throttle.d.ts +0 -1
- /package/lib/{utils → parts}/throttle.js +0 -0
- /package/lib/{hooks → parts}/use-backward-compatible-id.d.ts +0 -0
- /package/lib/{hooks → parts}/use-backward-compatible-id.js +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
var styles = {
|
|
2
|
-
"icon": "
|
|
3
|
-
"sizeXS": "
|
|
4
|
-
"sizeS": "
|
|
5
|
-
"sizeM": "
|
|
6
|
-
"sizeL": "
|
|
7
|
-
"light": "
|
|
8
|
-
"dark": "
|
|
9
|
-
"allVariants": "
|
|
10
|
-
"variant16": "
|
|
11
|
-
"variant20": "
|
|
12
|
-
"variant24": "
|
|
13
|
-
"variant28": "
|
|
2
|
+
"icon": "_icon_1d6ztcv_4",
|
|
3
|
+
"sizeXS": "_sizeXS_1d6ztcv_14",
|
|
4
|
+
"sizeS": "_sizeS_1d6ztcv_18",
|
|
5
|
+
"sizeM": "_sizeM_1d6ztcv_22",
|
|
6
|
+
"sizeL": "_sizeL_1d6ztcv_26",
|
|
7
|
+
"light": "_light_1d6ztcv_30",
|
|
8
|
+
"dark": "_dark_1d6ztcv_34",
|
|
9
|
+
"allVariants": "_allVariants_1d6ztcv_48",
|
|
10
|
+
"variant16": "_variant16_1d6ztcv_53",
|
|
11
|
+
"variant20": "_variant20_1d6ztcv_54",
|
|
12
|
+
"variant24": "_variant24_1d6ztcv_55",
|
|
13
|
+
"variant28": "_variant28_1d6ztcv_58"
|
|
14
14
|
};
|
|
15
15
|
export { styles as default };
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import PropTypes from 'prop-types';
|
|
3
|
-
import type { NoOptionsMessage, NoOptionsMessageConfig } from './types';
|
|
4
|
-
export declare const keyType: PropTypes.Requireable<string | number>;
|
|
5
2
|
export declare const optionType: PropTypes.Requireable<PropTypes.InferProps<{
|
|
6
3
|
label: PropTypes.Validator<PropTypes.ReactNodeLike>;
|
|
7
|
-
value: PropTypes.Requireable<string
|
|
4
|
+
value: PropTypes.Requireable<string>;
|
|
8
5
|
}>>;
|
|
9
6
|
export declare const optionsGroupType: PropTypes.Requireable<PropTypes.InferProps<{
|
|
10
7
|
label: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
11
8
|
options: PropTypes.Requireable<PropTypes.InferProps<{
|
|
12
9
|
label: PropTypes.Validator<PropTypes.ReactNodeLike>;
|
|
13
|
-
value: PropTypes.Requireable<string
|
|
10
|
+
value: PropTypes.Requireable<string>;
|
|
14
11
|
}>[]>;
|
|
15
12
|
}>>;
|
|
16
13
|
export declare const nativeOptionType: PropTypes.Requireable<PropTypes.InferProps<{
|
|
17
14
|
label: PropTypes.Validator<string>;
|
|
18
|
-
value: PropTypes.Requireable<string
|
|
15
|
+
value: PropTypes.Requireable<string>;
|
|
19
16
|
disabled: PropTypes.Requireable<boolean>;
|
|
20
17
|
}>>;
|
|
21
18
|
export declare const nativeOptionsGroupType: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -23,8 +20,16 @@ export declare const nativeOptionsGroupType: PropTypes.Requireable<PropTypes.Inf
|
|
|
23
20
|
disabled: PropTypes.Requireable<boolean>;
|
|
24
21
|
options: PropTypes.Requireable<PropTypes.InferProps<{
|
|
25
22
|
label: PropTypes.Validator<PropTypes.ReactNodeLike>;
|
|
26
|
-
value: PropTypes.Requireable<string
|
|
23
|
+
value: PropTypes.Requireable<string>;
|
|
27
24
|
}>[]>;
|
|
28
25
|
}>>;
|
|
29
|
-
export declare const noOptionsMessageConfigType:
|
|
30
|
-
|
|
26
|
+
export declare const noOptionsMessageConfigType: PropTypes.Requireable<PropTypes.InferProps<{
|
|
27
|
+
noOptions: PropTypes.Validator<string>;
|
|
28
|
+
nothingFound: PropTypes.Requireable<string>;
|
|
29
|
+
loading: PropTypes.Requireable<string>;
|
|
30
|
+
}>>;
|
|
31
|
+
export declare const noOptionsMessageType: PropTypes.Requireable<string | PropTypes.InferProps<{
|
|
32
|
+
noOptions: PropTypes.Validator<string>;
|
|
33
|
+
nothingFound: PropTypes.Requireable<string>;
|
|
34
|
+
loading: PropTypes.Requireable<string>;
|
|
35
|
+
}>>;
|
package/lib/common-prop-types.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
-
const keyType = PropTypes.oneOfType([PropTypes.string, PropTypes.number]);
|
|
3
2
|
const optionType = PropTypes.shape({
|
|
4
3
|
label: PropTypes.node.isRequired,
|
|
5
|
-
value:
|
|
4
|
+
value: PropTypes.string
|
|
6
5
|
});
|
|
7
6
|
const optionsGroupType = PropTypes.shape({
|
|
8
7
|
label: PropTypes.node,
|
|
@@ -10,7 +9,7 @@ const optionsGroupType = PropTypes.shape({
|
|
|
10
9
|
});
|
|
11
10
|
const nativeOptionType = PropTypes.shape({
|
|
12
11
|
label: PropTypes.string.isRequired,
|
|
13
|
-
value:
|
|
12
|
+
value: PropTypes.string,
|
|
14
13
|
disabled: PropTypes.bool
|
|
15
14
|
});
|
|
16
15
|
const nativeOptionsGroupType = PropTypes.shape({
|
|
@@ -24,4 +23,4 @@ const noOptionsMessageConfigType = PropTypes.shape({
|
|
|
24
23
|
loading: PropTypes.string
|
|
25
24
|
});
|
|
26
25
|
const noOptionsMessageType = PropTypes.oneOfType([PropTypes.string, noOptionsMessageConfigType]);
|
|
27
|
-
export {
|
|
26
|
+
export { nativeOptionType, nativeOptionsGroupType, noOptionsMessageConfigType, noOptionsMessageType, optionType, optionsGroupType };
|