@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.
Files changed (87) hide show
  1. package/lib/_virtual/index.css.js +12 -12
  2. package/lib/common-prop-types.d.ts +14 -9
  3. package/lib/common-prop-types.js +3 -4
  4. package/lib/index.css +432 -808
  5. package/lib/index.d.ts +6 -4
  6. package/lib/index.js +3 -3
  7. package/lib/key-codes.d.ts +7 -0
  8. package/lib/key-codes.js +8 -0
  9. package/lib/parts/common-select.p.module.css.js +15 -0
  10. package/lib/parts/foldable.js +2 -1
  11. package/lib/parts/form-trigger-wrapper.d.ts +7 -7
  12. package/lib/parts/form-trigger-wrapper.js +34 -16
  13. package/lib/parts/form-trigger.p.module.css.js +15 -0
  14. package/lib/parts/multiselect.d.ts +86 -0
  15. package/lib/parts/multiselect.js +455 -0
  16. package/lib/parts/native-select.d.ts +36 -0
  17. package/lib/parts/native-select.js +255 -0
  18. package/lib/parts/native-select.p.module.css.js +9 -0
  19. package/lib/parts/throttle.d.ts +1 -0
  20. package/lib/parts/trigger.d.ts +37 -0
  21. package/lib/parts/trigger.js +255 -0
  22. package/lib/parts/trigger.p.module.css.js +31 -0
  23. package/lib/parts/use-observable-force-rerender.d.ts +2 -0
  24. package/lib/parts/use-observable-force-rerender.js +16 -0
  25. package/lib/public-api.p.css +309 -545
  26. package/lib/public-api.pcss +309 -545
  27. package/lib/select.d.ts +91 -27
  28. package/lib/select.js +351 -51
  29. package/lib/types.d.ts +4 -167
  30. package/lib/utils.d.ts +22 -0
  31. package/lib/utils.js +199 -0
  32. package/package.json +12 -12
  33. package/lib/constants.d.ts +0 -6
  34. package/lib/constants.js +0 -7
  35. package/lib/hooks/use-a11y.d.ts +0 -29
  36. package/lib/hooks/use-a11y.js +0 -53
  37. package/lib/hooks/use-focus.d.ts +0 -10
  38. package/lib/hooks/use-focus.js +0 -17
  39. package/lib/hooks/use-hover.d.ts +0 -10
  40. package/lib/hooks/use-hover.js +0 -17
  41. package/lib/hooks/use-label-focus.d.ts +0 -9
  42. package/lib/hooks/use-label-focus.js +0 -22
  43. package/lib/hooks/use-multi-handlers.d.ts +0 -11
  44. package/lib/hooks/use-multi-handlers.js +0 -48
  45. package/lib/hooks/use-options.d.ts +0 -13
  46. package/lib/hooks/use-options.js +0 -89
  47. package/lib/multiselect.d.ts +0 -3
  48. package/lib/multiselect.js +0 -312
  49. package/lib/native-select.d.ts +0 -4
  50. package/lib/native-select.js +0 -211
  51. package/lib/parts/hidden-select.d.ts +0 -13
  52. package/lib/parts/hidden-select.js +0 -45
  53. package/lib/parts/icons.d.ts +0 -17
  54. package/lib/parts/icons.js +0 -69
  55. package/lib/parts/list-box.d.ts +0 -11
  56. package/lib/parts/list-box.js +0 -116
  57. package/lib/parts/multi-trigger.d.ts +0 -12
  58. package/lib/parts/multi-trigger.js +0 -74
  59. package/lib/parts/native-select-options-with-groups.d.ts +0 -8
  60. package/lib/parts/native-select-options-with-groups.js +0 -76
  61. package/lib/select-basic.d.ts +0 -3
  62. package/lib/select-basic.js +0 -203
  63. package/lib/select-searchable.d.ts +0 -3
  64. package/lib/select-searchable.js +0 -250
  65. package/lib/styles/common.p.module.css.js +0 -31
  66. package/lib/styles/form-trigger.p.module.css.js +0 -15
  67. package/lib/styles/list-box.p.module.css.js +0 -14
  68. package/lib/utils/calculate-max-height-by-items.d.ts +0 -13
  69. package/lib/utils/calculate-max-height-by-items.js +0 -22
  70. package/lib/utils/get-empty-message.d.ts +0 -6
  71. package/lib/utils/get-empty-message.js +0 -32
  72. package/lib/utils/get-option-value.d.ts +0 -2
  73. package/lib/utils/get-option-value.js +0 -11
  74. package/lib/utils/get-real-items-cnt.d.ts +0 -2
  75. package/lib/utils/get-real-items-cnt.js +0 -19
  76. package/lib/utils/get-text-from-nodes.d.ts +0 -2
  77. package/lib/utils/get-text-from-nodes.js +0 -28
  78. package/lib/utils/is-option-a-group.d.ts +0 -2
  79. package/lib/utils/is-option-a-group.js +0 -5
  80. package/lib/utils/item-to-string.d.ts +0 -2
  81. package/lib/utils/item-to-string.js +0 -7
  82. package/lib/utils/merge-props.d.ts +0 -29
  83. package/lib/utils/merge-props.js +0 -106
  84. package/lib/utils/throttle.d.ts +0 -1
  85. /package/lib/{utils → parts}/throttle.js +0 -0
  86. /package/lib/{hooks → parts}/use-backward-compatible-id.d.ts +0 -0
  87. /package/lib/{hooks → parts}/use-backward-compatible-id.js +0 -0
@@ -1,15 +1,15 @@
1
1
  var styles = {
2
- "icon": "_icon_1oaepe8_4",
3
- "sizeXS": "_sizeXS_1oaepe8_14",
4
- "sizeS": "_sizeS_1oaepe8_18",
5
- "sizeM": "_sizeM_1oaepe8_22",
6
- "sizeL": "_sizeL_1oaepe8_26",
7
- "light": "_light_1oaepe8_30",
8
- "dark": "_dark_1oaepe8_34",
9
- "allVariants": "_allVariants_1oaepe8_48",
10
- "variant16": "_variant16_1oaepe8_53",
11
- "variant20": "_variant20_1oaepe8_54",
12
- "variant24": "_variant24_1oaepe8_55",
13
- "variant28": "_variant28_1oaepe8_58"
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 | number>;
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 | number>;
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 | number>;
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 | number>;
23
+ value: PropTypes.Requireable<string>;
27
24
  }>[]>;
28
25
  }>>;
29
- export declare const noOptionsMessageConfigType: React.Validator<NoOptionsMessageConfig>;
30
- export declare const noOptionsMessageType: React.Validator<NoOptionsMessage>;
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
+ }>>;
@@ -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: keyType
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: keyType,
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 { keyType, nativeOptionType, nativeOptionsGroupType, noOptionsMessageConfigType, noOptionsMessageType, optionType, optionsGroupType };
26
+ export { nativeOptionType, nativeOptionsGroupType, noOptionsMessageConfigType, noOptionsMessageType, optionType, optionsGroupType };