@atlaskit/react-select 3.16.1 → 4.0.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.
Files changed (154) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/accessibility/package.json +1 -8
  3. package/async/package.json +1 -8
  4. package/async-creatable/package.json +1 -8
  5. package/base/package.json +1 -8
  6. package/clear-indicator/package.json +1 -8
  7. package/components/package.json +1 -8
  8. package/control/package.json +1 -8
  9. package/creatable/package.json +1 -8
  10. package/dist/cjs/components/control.compiled.css +3 -3
  11. package/dist/cjs/components/control.js +1 -1
  12. package/dist/cjs/components/index.js +1 -0
  13. package/dist/cjs/components/multi-value.js +13 -2
  14. package/dist/cjs/internal/select-get-styles-context.js +20 -0
  15. package/dist/cjs/internal/use-select-get-styles.js +18 -0
  16. package/dist/cjs/select.js +6 -3
  17. package/dist/es2019/components/control.compiled.css +3 -3
  18. package/dist/es2019/components/control.js +1 -1
  19. package/dist/es2019/components/index.js +1 -0
  20. package/dist/es2019/components/multi-value.js +13 -2
  21. package/dist/es2019/internal/select-get-styles-context.js +14 -0
  22. package/dist/es2019/internal/use-select-get-styles.js +10 -0
  23. package/dist/es2019/select.js +6 -3
  24. package/dist/esm/components/control.compiled.css +3 -3
  25. package/dist/esm/components/control.js +1 -1
  26. package/dist/esm/components/index.js +1 -0
  27. package/dist/esm/components/multi-value.js +13 -2
  28. package/dist/esm/internal/select-get-styles-context.js +14 -0
  29. package/dist/esm/internal/use-select-get-styles.js +12 -0
  30. package/dist/esm/select.js +6 -3
  31. package/dist/types/internal/select-get-styles-context.d.ts +12 -0
  32. package/dist/types/internal/use-select-get-styles.d.ts +1 -0
  33. package/dropdown-indicator/package.json +1 -8
  34. package/filters/package.json +1 -8
  35. package/group/package.json +1 -8
  36. package/group-heading/package.json +1 -8
  37. package/indicators-container/package.json +1 -8
  38. package/input/package.json +1 -8
  39. package/loading-indicator/package.json +1 -8
  40. package/menu/package.json +1 -8
  41. package/menu-list/package.json +1 -8
  42. package/menu-portal/package.json +1 -8
  43. package/multi-value/package.json +1 -8
  44. package/multi-value-remove/package.json +1 -8
  45. package/option/package.json +1 -8
  46. package/package.json +15 -21
  47. package/placeholder/package.json +1 -8
  48. package/select-container/package.json +1 -8
  49. package/single-value/package.json +1 -8
  50. package/state-manager/package.json +1 -8
  51. package/styles/package.json +1 -8
  52. package/types/package.json +1 -8
  53. package/use-async/package.json +1 -8
  54. package/use-creatable/package.json +1 -8
  55. package/use-state-manager/package.json +1 -8
  56. package/value-container/package.json +1 -8
  57. package/dist/types-ts4.5/accessibility/index.d.ts +0 -123
  58. package/dist/types-ts4.5/async-creatable.d.ts +0 -10
  59. package/dist/types-ts4.5/async.d.ts +0 -8
  60. package/dist/types-ts4.5/builtins.d.ts +0 -4
  61. package/dist/types-ts4.5/colors.d.ts +0 -19
  62. package/dist/types-ts4.5/compiled/components/indicators-container.d.ts +0 -18
  63. package/dist/types-ts4.5/compiled/components/select-container.d.ts +0 -22
  64. package/dist/types-ts4.5/compiled/components/value-container.d.ts +0 -22
  65. package/dist/types-ts4.5/components/containers/indicators-container.d.ts +0 -18
  66. package/dist/types-ts4.5/components/containers/multi-value-container.d.ts +0 -6
  67. package/dist/types-ts4.5/components/containers/select-container.d.ts +0 -22
  68. package/dist/types-ts4.5/components/containers/value-container.d.ts +0 -22
  69. package/dist/types-ts4.5/components/control.d.ts +0 -40
  70. package/dist/types-ts4.5/components/dummy-input.d.ts +0 -8
  71. package/dist/types-ts4.5/components/group-heading.d.ts +0 -19
  72. package/dist/types-ts4.5/components/group.d.ts +0 -36
  73. package/dist/types-ts4.5/components/index.d.ts +0 -80
  74. package/dist/types-ts4.5/components/indicators/clear-indicator.d.ts +0 -29
  75. package/dist/types-ts4.5/components/indicators/dropdown-indicator.d.ts +0 -26
  76. package/dist/types-ts4.5/components/indicators/loading-indicator.d.ts +0 -25
  77. package/dist/types-ts4.5/components/input.d.ts +0 -35
  78. package/dist/types-ts4.5/components/live-region.d.ts +0 -17
  79. package/dist/types-ts4.5/components/menu-list.d.ts +0 -29
  80. package/dist/types-ts4.5/components/menu-loading-message.d.ts +0 -2
  81. package/dist/types-ts4.5/components/menu-no-options-message.d.ts +0 -2
  82. package/dist/types-ts4.5/components/menu-placer.d.ts +0 -49
  83. package/dist/types-ts4.5/components/menu-portal.d.ts +0 -23
  84. package/dist/types-ts4.5/components/menu.d.ts +0 -22
  85. package/dist/types-ts4.5/components/multi-value-label.d.ts +0 -6
  86. package/dist/types-ts4.5/components/multi-value-remove.d.ts +0 -20
  87. package/dist/types-ts4.5/components/multi-value.d.ts +0 -25
  88. package/dist/types-ts4.5/components/option.d.ts +0 -47
  89. package/dist/types-ts4.5/components/placeholder.d.ts +0 -20
  90. package/dist/types-ts4.5/components/single-value.d.ts +0 -26
  91. package/dist/types-ts4.5/creatable.d.ts +0 -9
  92. package/dist/types-ts4.5/diacritics.d.ts +0 -1
  93. package/dist/types-ts4.5/entry-points/accessibility.d.ts +0 -2
  94. package/dist/types-ts4.5/entry-points/async-creatable.d.ts +0 -2
  95. package/dist/types-ts4.5/entry-points/async.d.ts +0 -3
  96. package/dist/types-ts4.5/entry-points/base.d.ts +0 -3
  97. package/dist/types-ts4.5/entry-points/clear-indicator.d.ts +0 -2
  98. package/dist/types-ts4.5/entry-points/components.d.ts +0 -2
  99. package/dist/types-ts4.5/entry-points/control.d.ts +0 -2
  100. package/dist/types-ts4.5/entry-points/creatable.d.ts +0 -3
  101. package/dist/types-ts4.5/entry-points/dropdown-indicator.d.ts +0 -2
  102. package/dist/types-ts4.5/entry-points/filters.d.ts +0 -2
  103. package/dist/types-ts4.5/entry-points/group-heading.d.ts +0 -2
  104. package/dist/types-ts4.5/entry-points/group.d.ts +0 -2
  105. package/dist/types-ts4.5/entry-points/indicators-container.d.ts +0 -2
  106. package/dist/types-ts4.5/entry-points/input.d.ts +0 -2
  107. package/dist/types-ts4.5/entry-points/loading-indicator.d.ts +0 -2
  108. package/dist/types-ts4.5/entry-points/menu-list.d.ts +0 -2
  109. package/dist/types-ts4.5/entry-points/menu-portal.d.ts +0 -2
  110. package/dist/types-ts4.5/entry-points/menu.d.ts +0 -2
  111. package/dist/types-ts4.5/entry-points/multi-value-remove.d.ts +0 -2
  112. package/dist/types-ts4.5/entry-points/multi-value.d.ts +0 -2
  113. package/dist/types-ts4.5/entry-points/option.d.ts +0 -2
  114. package/dist/types-ts4.5/entry-points/placeholder.d.ts +0 -2
  115. package/dist/types-ts4.5/entry-points/select-container.d.ts +0 -2
  116. package/dist/types-ts4.5/entry-points/single-value.d.ts +0 -2
  117. package/dist/types-ts4.5/entry-points/state-manager.d.ts +0 -1
  118. package/dist/types-ts4.5/entry-points/styles.d.ts +0 -2
  119. package/dist/types-ts4.5/entry-points/types.d.ts +0 -1
  120. package/dist/types-ts4.5/entry-points/use-async.d.ts +0 -2
  121. package/dist/types-ts4.5/entry-points/use-creatable.d.ts +0 -2
  122. package/dist/types-ts4.5/entry-points/use-state-manager.d.ts +0 -2
  123. package/dist/types-ts4.5/entry-points/value-container.d.ts +0 -2
  124. package/dist/types-ts4.5/filters.d.ts +0 -14
  125. package/dist/types-ts4.5/format-group-label.d.ts +0 -2
  126. package/dist/types-ts4.5/get-option-label.d.ts +0 -1
  127. package/dist/types-ts4.5/get-option-value.d.ts +0 -1
  128. package/dist/types-ts4.5/get-style-props.d.ts +0 -6
  129. package/dist/types-ts4.5/index.d.ts +0 -34
  130. package/dist/types-ts4.5/internal/a11y-text.d.ts +0 -2
  131. package/dist/types-ts4.5/internal/classnames.d.ts +0 -2
  132. package/dist/types-ts4.5/internal/clean-common-props.d.ts +0 -2
  133. package/dist/types-ts4.5/internal/clean-value.d.ts +0 -2
  134. package/dist/types-ts4.5/internal/is-document-el.d.ts +0 -1
  135. package/dist/types-ts4.5/internal/multi-value-as-value.d.ts +0 -2
  136. package/dist/types-ts4.5/internal/notify-open-layer-observer.d.ts +0 -11
  137. package/dist/types-ts4.5/internal/passive-event-detector.d.ts +0 -1
  138. package/dist/types-ts4.5/internal/portal-placement-context.d.ts +0 -14
  139. package/dist/types-ts4.5/internal/required-input.d.ts +0 -10
  140. package/dist/types-ts4.5/internal/scroll-manager.d.ts +0 -12
  141. package/dist/types-ts4.5/internal/scroll-to.d.ts +0 -1
  142. package/dist/types-ts4.5/internal/single-value-as-value.d.ts +0 -2
  143. package/dist/types-ts4.5/internal/use-scroll-capture.d.ts +0 -12
  144. package/dist/types-ts4.5/internal/use-scroll-lock.d.ts +0 -9
  145. package/dist/types-ts4.5/internal/value-ternary.d.ts +0 -2
  146. package/dist/types-ts4.5/is-option-disabled.d.ts +0 -1
  147. package/dist/types-ts4.5/select.d.ts +0 -597
  148. package/dist/types-ts4.5/state-manager.d.ts +0 -16
  149. package/dist/types-ts4.5/styles.d.ts +0 -50
  150. package/dist/types-ts4.5/theme.d.ts +0 -6
  151. package/dist/types-ts4.5/types.d.ts +0 -154
  152. package/dist/types-ts4.5/use-async.d.ts +0 -31
  153. package/dist/types-ts4.5/use-creatable.d.ts +0 -46
  154. package/dist/types-ts4.5/use-state-manager.d.ts +0 -15
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/dropdown-indicator.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/dropdown-indicator.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/dropdown-indicator.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/filters.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/filters.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/filters.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/group.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/group.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/group.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/group-heading.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/group-heading.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/group-heading.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/indicators-container.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/indicators-container.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/indicators-container.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/input.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/input.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/input.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/loading-indicator.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/loading-indicator.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/loading-indicator.d.ts"
17
10
  }
package/menu/package.json CHANGED
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/menu.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/menu.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/menu.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/menu-list.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/menu-list.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/menu-list.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/menu-portal.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/menu-portal.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/menu-portal.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/multi-value.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/multi-value.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/multi-value.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/multi-value-remove.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/multi-value-remove.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/multi-value-remove.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/option.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/option.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/option.d.ts"
17
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/react-select",
3
- "version": "3.16.1",
3
+ "version": "4.0.0",
4
4
  "description": "A forked version of react-select to only be used in atlaskit/select",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -20,14 +20,14 @@
20
20
  ],
21
21
  "atlaskit:src": "src/index.tsx",
22
22
  "dependencies": {
23
- "@atlaskit/ds-lib": "^7.0.0",
24
- "@atlaskit/icon": "^35.0.0",
25
- "@atlaskit/layering": "^3.7.0",
26
- "@atlaskit/platform-feature-flags": "^1.1.0",
27
- "@atlaskit/primitives": "^19.0.0",
28
- "@atlaskit/spinner": "^19.1.0",
29
- "@atlaskit/tag": "^14.13.0",
30
- "@atlaskit/tokens": "^13.0.0",
23
+ "@atlaskit/ds-lib": "^8.0.0",
24
+ "@atlaskit/icon": "^36.0.0",
25
+ "@atlaskit/layering": "^4.0.0",
26
+ "@atlaskit/platform-feature-flags": "^2.0.0",
27
+ "@atlaskit/primitives": "^20.0.0",
28
+ "@atlaskit/spinner": "^20.0.0",
29
+ "@atlaskit/tag": "^15.0.0",
30
+ "@atlaskit/tokens": "^14.0.0",
31
31
  "@babel/runtime": "^7.0.0",
32
32
  "@compiled/react": "^0.20.0",
33
33
  "@floating-ui/dom": "^1.0.1",
@@ -40,12 +40,14 @@
40
40
  },
41
41
  "devDependencies": {
42
42
  "@af/accessibility-testing": "workspace:^",
43
- "@atlaskit/checkbox": "^17.3.0",
44
- "@atlaskit/form": "^15.5.0",
43
+ "@atlaskit/checkbox": "^18.0.0",
44
+ "@atlaskit/form": "^16.0.0",
45
45
  "@atlassian/feature-flags-test-utils": "^1.1.0",
46
46
  "@testing-library/react": "^16.3.0",
47
47
  "@testing-library/user-event": "^14.4.3",
48
- "jest-in-case": "^1.0.2"
48
+ "jest-in-case": "^1.0.2",
49
+ "react": "^18.2.0",
50
+ "react-dom": "^18.2.0"
49
51
  },
50
52
  "platform-feature-flags": {
51
53
  "custom-interactive-elements-not-keyboard-focusable": {
@@ -91,13 +93,5 @@
91
93
  ]
92
94
  }
93
95
  },
94
- "homepage": "https://atlassian.design/components",
95
- "typesVersions": {
96
- ">=4.5 <4.9": {
97
- "*": [
98
- "dist/types-ts4.5/*",
99
- "dist/types-ts4.5/index.d.ts"
100
- ]
101
- }
102
- }
96
+ "homepage": "https://atlassian.design/components"
103
97
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/placeholder.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/placeholder.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/placeholder.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/select-container.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/select-container.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/select-container.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/single-value.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/single-value.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/single-value.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/state-manager.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/state-manager.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/state-manager.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/styles.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/styles.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/styles.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/types.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/types.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/types.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/use-async.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/use-async.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/use-async.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/use-creatable.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/use-creatable.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/use-creatable.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/use-state-manager.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/use-state-manager.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/use-state-manager.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "**/*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/value-container.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/value-container.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/value-container.d.ts"
17
10
  }
@@ -1,123 +0,0 @@
1
- import type { AriaAttributes } from 'react';
2
- import { type ActionMeta, type GroupBase, type InitialInputFocusedActionMeta, type OnChangeValue, type Options, type OptionsOrGroups } from '../types';
3
- export type OptionContext = 'menu' | 'value';
4
- export type GuidanceContext = 'menu' | 'input' | 'value';
5
- export type AriaSelection<Option, IsMulti extends boolean> = InitialInputFocusedActionMeta<Option, IsMulti> | (ActionMeta<Option> & {
6
- value: OnChangeValue<Option, IsMulti>;
7
- option?: Option;
8
- options?: Options<Option>;
9
- });
10
- export interface AriaGuidanceProps {
11
- /**
12
- * String value of selectProp aria-label
13
- */
14
- 'aria-label': AriaAttributes['aria-label'];
15
- /**
16
- * String indicating user's current context and available keyboard interactivity
17
- */
18
- context: GuidanceContext;
19
- /**
20
- * Boolean value of selectProp isSearchable
21
- */
22
- isSearchable: boolean;
23
- /**
24
- * Boolean value of selectProp isMulti
25
- */
26
- isMulti: boolean;
27
- /**
28
- * Boolean value of selectProp isDisabled
29
- */
30
- isDisabled: boolean | null;
31
- /**
32
- * Boolean value of selectProp tabSelectsValue
33
- */
34
- tabSelectsValue: boolean;
35
- /**
36
- * Boolean value indicating if user focused the input for the first time
37
- */
38
- isInitialFocus: boolean;
39
- }
40
- export type AriaOnChangeProps<Option, IsMulti extends boolean> = AriaSelection<Option, IsMulti> & {
41
- /**
42
- * String derived label from selected or removed option/value
43
- */
44
- label: string;
45
- /**
46
- * Array of labels derived from multiple selected or cleared options
47
- */
48
- labels: string[];
49
- /**
50
- * Boolean indicating if the selected menu option is disabled
51
- */
52
- isDisabled: boolean | null;
53
- };
54
- export interface AriaOnFilterProps {
55
- /**
56
- * String indicating current inputValue of the input
57
- */
58
- inputValue: string;
59
- /**
60
- * String derived from selectProp screenReaderStatus
61
- */
62
- resultsMessage: string;
63
- }
64
- export interface AriaOnFocusProps<Option, Group extends GroupBase<Option>> {
65
- /**
66
- * String indicating whether the option was focused in the menu or as (multi-) value
67
- */
68
- context: OptionContext;
69
- /**
70
- * Option that is being focused
71
- */
72
- focused: Option;
73
- /**
74
- * Boolean indicating whether focused menu option has been disabled
75
- */
76
- isDisabled: boolean;
77
- /**
78
- * Boolean indicating whether focused menu option is an already selected option
79
- */
80
- isSelected: boolean;
81
- /**
82
- * String derived label from focused option/value
83
- */
84
- label: string;
85
- /**
86
- * Options provided as props to Select used to determine indexing
87
- */
88
- options: OptionsOrGroups<Option, Group>;
89
- /**
90
- * selected option(s) of the Select
91
- */
92
- selectValue: Options<Option>;
93
- /**
94
- * Boolean value of selectProp isMulti
95
- */
96
- isMulti: boolean;
97
- }
98
- export type AriaGuidance = (props: AriaGuidanceProps) => string;
99
- export type AriaOnChange<Option, IsMulti extends boolean> = (props: AriaOnChangeProps<Option, IsMulti>) => string;
100
- export type AriaOnFilter = (props: AriaOnFilterProps) => string;
101
- export type AriaOnFocus<Option, Group extends GroupBase<Option> = GroupBase<Option>> = (props: AriaOnFocusProps<Option, Group>) => string;
102
- export interface AriaLiveMessages<Option, IsMulti extends boolean, Group extends GroupBase<Option>> {
103
- /**
104
- * Guidance message used to convey component state and specific keyboard interactivity
105
- */
106
- guidance?: (props: AriaGuidanceProps) => string;
107
- /**
108
- * OnChange message used to convey changes to value but also called when user selects disabled option
109
- */
110
- onChange?: (props: AriaOnChangeProps<Option, IsMulti>) => string;
111
- /**
112
- * OnFilter message used to convey information about filtered results displayed in the menu
113
- */
114
- onFilter?: (props: AriaOnFilterProps) => string;
115
- /**
116
- * OnFocus message used to convey information about the currently focused option or value
117
- */
118
- onFocus?: (props: AriaOnFocusProps<Option, Group>) => string;
119
- }
120
- export declare const defaultAriaLiveMessages: {
121
- onChange: <Option, IsMulti extends boolean>(props: AriaOnChangeProps<Option, IsMulti>) => string;
122
- onFilter: (props: AriaOnFilterProps) => string;
123
- };
@@ -1,10 +0,0 @@
1
- import { type ReactElement, type RefAttributes } from 'react';
2
- import Select from './select';
3
- import type { GroupBase } from './types';
4
- import { type AsyncAdditionalProps } from './use-async';
5
- import { type CreatableAdditionalProps } from './use-creatable';
6
- import { type StateManagerProps } from './use-state-manager';
7
- export type AsyncCreatableProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = StateManagerProps<Option, IsMulti, Group> & CreatableAdditionalProps<Option, Group> & AsyncAdditionalProps<Option, Group>;
8
- type AsyncCreatableSelect = <Option = unknown, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(props: AsyncCreatableProps<Option, IsMulti, Group> & RefAttributes<Select<Option, IsMulti, Group>>) => ReactElement;
9
- declare const AsyncCreatableSelect: AsyncCreatableSelect;
10
- export default AsyncCreatableSelect;
@@ -1,8 +0,0 @@
1
- import { type ReactElement, type RefAttributes } from 'react';
2
- import Select from './select';
3
- import type { GroupBase } from './types';
4
- import { type AsyncProps } from './use-async';
5
- export type { AsyncProps };
6
- type AsyncSelect = <Option = unknown, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(props: AsyncProps<Option, IsMulti, Group> & RefAttributes<Select<Option, IsMulti, Group>>) => ReactElement;
7
- declare const AsyncSelect: AsyncSelect;
8
- export default AsyncSelect;
@@ -1,4 +0,0 @@
1
- export { formatGroupLabel } from './format-group-label';
2
- export { getOptionLabel } from './get-option-label';
3
- export { getOptionValue } from './get-option-value';
4
- export { isOptionDisabled } from './is-option-disabled';
@@ -1,19 +0,0 @@
1
- export declare const colors: {
2
- primary: string;
3
- primary75: string;
4
- primary50: string;
5
- primary25: string;
6
- danger: string;
7
- dangerLight: string;
8
- neutral0: string;
9
- neutral5: string;
10
- neutral10: string;
11
- neutral20: string;
12
- neutral30: string;
13
- neutral40: string;
14
- neutral50: string;
15
- neutral60: string;
16
- neutral70: string;
17
- neutral80: string;
18
- neutral90: string;
19
- };
@@ -1,18 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { type ReactNode } from 'react';
6
- import { type CommonPropsAndClassName, type GroupBase } from '../../types';
7
- export interface IndicatorsContainerProps<Option = unknown, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>> extends CommonPropsAndClassName<Option, IsMulti, Group> {
8
- isDisabled: boolean;
9
- /**
10
- * The children to be rendered.
11
- */
12
- children: ReactNode;
13
- /**
14
- * Props to be passed to the indicators container element.
15
- */
16
- innerProps?: {};
17
- }
18
- export declare const IndicatorsContainer: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: IndicatorsContainerProps<Option, IsMulti, Group>) => JSX.Element;
@@ -1,22 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { type ReactNode } from 'react';
6
- import { type CommonPropsAndClassName, type GroupBase } from '../../types';
7
- export interface ContainerProps<Option = unknown, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>> extends CommonPropsAndClassName<Option, IsMulti, Group> {
8
- /**
9
- * Whether the select is disabled.
10
- */
11
- isDisabled: boolean;
12
- isFocused: boolean;
13
- /**
14
- * The children to be rendered.
15
- */
16
- children: ReactNode;
17
- /**
18
- * Inner props to be passed down to the container.
19
- */
20
- innerProps: {};
21
- }
22
- export declare const SelectContainer: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: ContainerProps<Option, IsMulti, Group>) => JSX.Element;
@@ -1,22 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { type ReactNode } from 'react';
6
- import { type CommonPropsAndClassName, type GroupBase } from '../../types';
7
- export interface ValueContainerProps<Option = unknown, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>> extends CommonPropsAndClassName<Option, IsMulti, Group> {
8
- /**
9
- * Props to be passed to the value container element.
10
- */
11
- innerProps?: {};
12
- /**
13
- * The children to be rendered.
14
- */
15
- children: ReactNode;
16
- isDisabled: boolean;
17
- /**
18
- * Whether the select is compact.
19
- */
20
- isCompact?: boolean;
21
- }
22
- export declare const ValueContainer: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: ValueContainerProps<Option, IsMulti, Group>) => JSX.Element;