@atlaskit/react-select 3.16.2 → 4.0.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.
Files changed (142) hide show
  1. package/CHANGELOG.md +42 -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/multi-value.js +4 -2
  13. package/dist/es2019/components/control.compiled.css +3 -3
  14. package/dist/es2019/components/control.js +1 -1
  15. package/dist/es2019/components/multi-value.js +4 -2
  16. package/dist/esm/components/control.compiled.css +3 -3
  17. package/dist/esm/components/control.js +1 -1
  18. package/dist/esm/components/multi-value.js +4 -2
  19. package/dropdown-indicator/package.json +1 -8
  20. package/filters/package.json +1 -8
  21. package/group/package.json +1 -8
  22. package/group-heading/package.json +1 -8
  23. package/indicators-container/package.json +1 -8
  24. package/input/package.json +1 -8
  25. package/loading-indicator/package.json +1 -8
  26. package/menu/package.json +1 -8
  27. package/menu-list/package.json +1 -8
  28. package/menu-portal/package.json +1 -8
  29. package/multi-value/package.json +1 -8
  30. package/multi-value-remove/package.json +1 -8
  31. package/option/package.json +1 -8
  32. package/package.json +12 -20
  33. package/placeholder/package.json +1 -8
  34. package/select-container/package.json +1 -8
  35. package/single-value/package.json +1 -8
  36. package/state-manager/package.json +1 -8
  37. package/styles/package.json +1 -8
  38. package/types/package.json +1 -8
  39. package/use-async/package.json +1 -8
  40. package/use-creatable/package.json +1 -8
  41. package/use-state-manager/package.json +1 -8
  42. package/value-container/package.json +1 -8
  43. package/dist/types-ts4.5/accessibility/index.d.ts +0 -123
  44. package/dist/types-ts4.5/async-creatable.d.ts +0 -10
  45. package/dist/types-ts4.5/async.d.ts +0 -8
  46. package/dist/types-ts4.5/builtins.d.ts +0 -4
  47. package/dist/types-ts4.5/colors.d.ts +0 -19
  48. package/dist/types-ts4.5/compiled/components/indicators-container.d.ts +0 -18
  49. package/dist/types-ts4.5/compiled/components/select-container.d.ts +0 -22
  50. package/dist/types-ts4.5/compiled/components/value-container.d.ts +0 -22
  51. package/dist/types-ts4.5/components/containers/indicators-container.d.ts +0 -18
  52. package/dist/types-ts4.5/components/containers/multi-value-container.d.ts +0 -6
  53. package/dist/types-ts4.5/components/containers/select-container.d.ts +0 -22
  54. package/dist/types-ts4.5/components/containers/value-container.d.ts +0 -22
  55. package/dist/types-ts4.5/components/control.d.ts +0 -40
  56. package/dist/types-ts4.5/components/dummy-input.d.ts +0 -8
  57. package/dist/types-ts4.5/components/group-heading.d.ts +0 -19
  58. package/dist/types-ts4.5/components/group.d.ts +0 -36
  59. package/dist/types-ts4.5/components/index.d.ts +0 -80
  60. package/dist/types-ts4.5/components/indicators/clear-indicator.d.ts +0 -29
  61. package/dist/types-ts4.5/components/indicators/dropdown-indicator.d.ts +0 -26
  62. package/dist/types-ts4.5/components/indicators/loading-indicator.d.ts +0 -25
  63. package/dist/types-ts4.5/components/input.d.ts +0 -35
  64. package/dist/types-ts4.5/components/live-region.d.ts +0 -17
  65. package/dist/types-ts4.5/components/menu-list.d.ts +0 -29
  66. package/dist/types-ts4.5/components/menu-loading-message.d.ts +0 -2
  67. package/dist/types-ts4.5/components/menu-no-options-message.d.ts +0 -2
  68. package/dist/types-ts4.5/components/menu-placer.d.ts +0 -49
  69. package/dist/types-ts4.5/components/menu-portal.d.ts +0 -23
  70. package/dist/types-ts4.5/components/menu.d.ts +0 -22
  71. package/dist/types-ts4.5/components/multi-value-label.d.ts +0 -6
  72. package/dist/types-ts4.5/components/multi-value-remove.d.ts +0 -20
  73. package/dist/types-ts4.5/components/multi-value.d.ts +0 -25
  74. package/dist/types-ts4.5/components/option.d.ts +0 -47
  75. package/dist/types-ts4.5/components/placeholder.d.ts +0 -20
  76. package/dist/types-ts4.5/components/single-value.d.ts +0 -26
  77. package/dist/types-ts4.5/creatable.d.ts +0 -9
  78. package/dist/types-ts4.5/diacritics.d.ts +0 -1
  79. package/dist/types-ts4.5/entry-points/accessibility.d.ts +0 -2
  80. package/dist/types-ts4.5/entry-points/async-creatable.d.ts +0 -2
  81. package/dist/types-ts4.5/entry-points/async.d.ts +0 -3
  82. package/dist/types-ts4.5/entry-points/base.d.ts +0 -3
  83. package/dist/types-ts4.5/entry-points/clear-indicator.d.ts +0 -2
  84. package/dist/types-ts4.5/entry-points/components.d.ts +0 -2
  85. package/dist/types-ts4.5/entry-points/control.d.ts +0 -2
  86. package/dist/types-ts4.5/entry-points/creatable.d.ts +0 -3
  87. package/dist/types-ts4.5/entry-points/dropdown-indicator.d.ts +0 -2
  88. package/dist/types-ts4.5/entry-points/filters.d.ts +0 -2
  89. package/dist/types-ts4.5/entry-points/group-heading.d.ts +0 -2
  90. package/dist/types-ts4.5/entry-points/group.d.ts +0 -2
  91. package/dist/types-ts4.5/entry-points/indicators-container.d.ts +0 -2
  92. package/dist/types-ts4.5/entry-points/input.d.ts +0 -2
  93. package/dist/types-ts4.5/entry-points/loading-indicator.d.ts +0 -2
  94. package/dist/types-ts4.5/entry-points/menu-list.d.ts +0 -2
  95. package/dist/types-ts4.5/entry-points/menu-portal.d.ts +0 -2
  96. package/dist/types-ts4.5/entry-points/menu.d.ts +0 -2
  97. package/dist/types-ts4.5/entry-points/multi-value-remove.d.ts +0 -2
  98. package/dist/types-ts4.5/entry-points/multi-value.d.ts +0 -2
  99. package/dist/types-ts4.5/entry-points/option.d.ts +0 -2
  100. package/dist/types-ts4.5/entry-points/placeholder.d.ts +0 -2
  101. package/dist/types-ts4.5/entry-points/select-container.d.ts +0 -2
  102. package/dist/types-ts4.5/entry-points/single-value.d.ts +0 -2
  103. package/dist/types-ts4.5/entry-points/state-manager.d.ts +0 -1
  104. package/dist/types-ts4.5/entry-points/styles.d.ts +0 -2
  105. package/dist/types-ts4.5/entry-points/types.d.ts +0 -1
  106. package/dist/types-ts4.5/entry-points/use-async.d.ts +0 -2
  107. package/dist/types-ts4.5/entry-points/use-creatable.d.ts +0 -2
  108. package/dist/types-ts4.5/entry-points/use-state-manager.d.ts +0 -2
  109. package/dist/types-ts4.5/entry-points/value-container.d.ts +0 -2
  110. package/dist/types-ts4.5/filters.d.ts +0 -14
  111. package/dist/types-ts4.5/format-group-label.d.ts +0 -2
  112. package/dist/types-ts4.5/get-option-label.d.ts +0 -1
  113. package/dist/types-ts4.5/get-option-value.d.ts +0 -1
  114. package/dist/types-ts4.5/get-style-props.d.ts +0 -6
  115. package/dist/types-ts4.5/index.d.ts +0 -34
  116. package/dist/types-ts4.5/internal/a11y-text.d.ts +0 -2
  117. package/dist/types-ts4.5/internal/classnames.d.ts +0 -2
  118. package/dist/types-ts4.5/internal/clean-common-props.d.ts +0 -2
  119. package/dist/types-ts4.5/internal/clean-value.d.ts +0 -2
  120. package/dist/types-ts4.5/internal/is-document-el.d.ts +0 -1
  121. package/dist/types-ts4.5/internal/multi-value-as-value.d.ts +0 -2
  122. package/dist/types-ts4.5/internal/notify-open-layer-observer.d.ts +0 -11
  123. package/dist/types-ts4.5/internal/passive-event-detector.d.ts +0 -1
  124. package/dist/types-ts4.5/internal/portal-placement-context.d.ts +0 -14
  125. package/dist/types-ts4.5/internal/required-input.d.ts +0 -10
  126. package/dist/types-ts4.5/internal/scroll-manager.d.ts +0 -12
  127. package/dist/types-ts4.5/internal/scroll-to.d.ts +0 -1
  128. package/dist/types-ts4.5/internal/select-get-styles-context.d.ts +0 -12
  129. package/dist/types-ts4.5/internal/single-value-as-value.d.ts +0 -2
  130. package/dist/types-ts4.5/internal/use-scroll-capture.d.ts +0 -12
  131. package/dist/types-ts4.5/internal/use-scroll-lock.d.ts +0 -9
  132. package/dist/types-ts4.5/internal/use-select-get-styles.d.ts +0 -1
  133. package/dist/types-ts4.5/internal/value-ternary.d.ts +0 -2
  134. package/dist/types-ts4.5/is-option-disabled.d.ts +0 -1
  135. package/dist/types-ts4.5/select.d.ts +0 -597
  136. package/dist/types-ts4.5/state-manager.d.ts +0 -16
  137. package/dist/types-ts4.5/styles.d.ts +0 -50
  138. package/dist/types-ts4.5/theme.d.ts +0 -6
  139. package/dist/types-ts4.5/types.d.ts +0 -154
  140. package/dist/types-ts4.5/use-async.d.ts +0 -31
  141. package/dist/types-ts4.5/use-creatable.d.ts +0 -46
  142. package/dist/types-ts4.5/use-state-manager.d.ts +0 -15
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/react-select",
3
- "version": "3.16.2",
3
+ "version": "4.0.1",
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.3.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.14.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,8 +40,8 @@
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",
@@ -93,13 +93,5 @@
93
93
  ]
94
94
  }
95
95
  },
96
- "homepage": "https://atlassian.design/components",
97
- "typesVersions": {
98
- ">=4.5 <4.9": {
99
- "*": [
100
- "dist/types-ts4.5/*",
101
- "dist/types-ts4.5/index.d.ts"
102
- ]
103
- }
104
- }
96
+ "homepage": "https://atlassian.design/components"
105
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;
@@ -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,6 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import type { GroupBase, MultiValueGenericProps } from '../../types';
6
- export declare const MultiValueContainer: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>({ children, innerProps, isFocused, isDisabled, className, xcss, }: MultiValueGenericProps<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;
@@ -1,40 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { type ReactNode, type Ref } from 'react';
6
- import { type CommonPropsAndClassName, type GroupBase } from '../types';
7
- export interface ControlProps<Option = unknown, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>> extends CommonPropsAndClassName<Option, IsMulti, Group> {
8
- /**
9
- * Children to render.
10
- */
11
- children: ReactNode;
12
- innerRef: Ref<HTMLDivElement>;
13
- /**
14
- * The mouse down event and the innerRef to pass down to the controller element.
15
- */
16
- innerProps: {};
17
- /**
18
- * Whether the select is disabled.
19
- */
20
- isDisabled: boolean;
21
- /**
22
- * Whether the select is focused.
23
- */
24
- isFocused: boolean;
25
- /**
26
- * Whether the select is invalid.
27
- */
28
- isInvalid: boolean | undefined;
29
- /**
30
- * Whether the select is compact.
31
- */
32
- isCompact?: boolean;
33
- appearance?: 'default' | 'subtle' | 'none';
34
- /**
35
- * Whether the select is expanded.
36
- */
37
- menuIsOpen: boolean;
38
- }
39
- declare const Control: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: ControlProps<Option, IsMulti, Group>) => JSX.Element;
40
- export default Control;
@@ -1,8 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import type { Ref } from 'react';
6
- export default function DummyInput({ innerRef, ...props }: JSX.IntrinsicElements['input'] & {
7
- readonly innerRef: Ref<HTMLInputElement>;
8
- }): JSX.Element;
@@ -1,19 +0,0 @@
1
- import { type XCSSProp } from '@compiled/react';
2
- import type { XCSSAllProperties, XCSSAllPseudos } from '@atlaskit/css';
3
- import { type SelectProps } from '../select';
4
- import { type CommonProps, type CX, type GetStyles, type GroupBase } from '../types';
5
- export interface ForwardedHeadingProps<Option, Group extends GroupBase<Option>> {
6
- id: string;
7
- data: Group;
8
- }
9
- interface GroupHeadingPropsDefinedProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>> extends ForwardedHeadingProps<Option, Group> {
10
- className?: string | undefined;
11
- selectProps: SelectProps<Option, IsMulti, Group>;
12
- getStyles: GetStyles<Option, IsMulti, Group>;
13
- getClassNames: CommonProps<Option, IsMulti, Group>['getClassNames'];
14
- cx: CX;
15
- xcss?: XCSSProp<XCSSAllProperties, XCSSAllPseudos> | undefined;
16
- }
17
- export type GroupHeadingProps<Option = unknown, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>> = GroupHeadingPropsDefinedProps<Option, IsMulti, Group> & JSX.IntrinsicElements['div'];
18
- export declare const GroupHeading: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: GroupHeadingProps<Option, IsMulti, Group>) => JSX.Element;
19
- export {};
@@ -1,36 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import type { ComponentType, ReactNode } from 'react';
6
- import { type CommonPropsAndClassName, type GroupBase, type Options } from '../types';
7
- import { type ForwardedHeadingProps, type GroupHeadingProps } from './group-heading';
8
- export interface GroupProps<Option = unknown, IsMulti extends boolean = boolean, Group extends GroupBase<Option> = GroupBase<Option>> extends CommonPropsAndClassName<Option, IsMulti, Group> {
9
- /**
10
- * The children to be rendered.
11
- */
12
- children: ReactNode;
13
- /**
14
- * Component to wrap the label, receives headingProps.
15
- */
16
- Heading: ComponentType<GroupHeadingProps<Option, IsMulti, Group>>;
17
- /**
18
- * Props to pass to Heading.
19
- */
20
- headingProps: ForwardedHeadingProps<Option, Group>;
21
- /**
22
- * Props to be passed to the group element.
23
- */
24
- innerProps: JSX.IntrinsicElements['div'];
25
- /**
26
- * Label to be displayed in the heading component.
27
- */
28
- label: ReactNode;
29
- /**
30
- * The data of the group.
31
- */
32
- data: Group;
33
- options: Options<Option>;
34
- }
35
- declare const Group: <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(props: GroupProps<Option, IsMulti, Group>) => JSX.Element;
36
- export default Group;