@transferwise/components 0.0.0-experimental-e9426b6 → 0.0.0-experimental-0397551

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 (182) hide show
  1. package/build/dateInput/DateInput.js +3 -6
  2. package/build/dateInput/DateInput.js.map +1 -1
  3. package/build/dateInput/DateInput.mjs +2 -5
  4. package/build/dateInput/DateInput.mjs.map +1 -1
  5. package/build/expressiveMoneyInput/currencySelector/CurrencySelector.js +3 -5
  6. package/build/expressiveMoneyInput/currencySelector/CurrencySelector.js.map +1 -1
  7. package/build/expressiveMoneyInput/currencySelector/CurrencySelector.mjs +1 -3
  8. package/build/expressiveMoneyInput/currencySelector/CurrencySelector.mjs.map +1 -1
  9. package/build/index.js +3 -5
  10. package/build/index.js.map +1 -1
  11. package/build/index.mjs +1 -3
  12. package/build/index.mjs.map +1 -1
  13. package/build/inputs/SelectInput.js +821 -0
  14. package/build/inputs/SelectInput.js.map +1 -0
  15. package/build/inputs/SelectInput.messages.js.map +1 -0
  16. package/build/inputs/SelectInput.messages.mjs.map +1 -0
  17. package/build/inputs/SelectInput.mjs +813 -0
  18. package/build/inputs/SelectInput.mjs.map +1 -0
  19. package/build/main.css +47 -47
  20. package/build/moneyInput/MoneyInput.js +2 -5
  21. package/build/moneyInput/MoneyInput.js.map +1 -1
  22. package/build/moneyInput/MoneyInput.mjs +1 -4
  23. package/build/moneyInput/MoneyInput.mjs.map +1 -1
  24. package/build/phoneNumberInput/PhoneNumberInput.js +2 -5
  25. package/build/phoneNumberInput/PhoneNumberInput.js.map +1 -1
  26. package/build/phoneNumberInput/PhoneNumberInput.mjs +1 -4
  27. package/build/phoneNumberInput/PhoneNumberInput.mjs.map +1 -1
  28. package/build/styles/main.css +47 -47
  29. package/build/types/inputs/{SelectInput/SelectInput.types.d.ts → SelectInput.d.ts} +7 -4
  30. package/build/types/inputs/SelectInput.d.ts.map +1 -0
  31. package/build/types/inputs/SelectInput.messages.d.ts.map +1 -0
  32. package/package.json +1 -1
  33. package/src/actionButton/ActionButton.story.tsx +3 -0
  34. package/src/checkbox/Checkbox.story.tsx +3 -0
  35. package/src/circularButton/CircularButton.story.tsx +3 -0
  36. package/src/common/bottomSheet/BottomSheet.story.tsx +12 -0
  37. package/src/common/circle/Circle.story.tsx +3 -0
  38. package/src/criticalBanner/CriticalCommsBanner.story.tsx +3 -0
  39. package/src/dateInput/DateInput.test.story.tsx +6 -0
  40. package/src/dateLookup/DateLookup.story.tsx +3 -0
  41. package/src/info/Info.story.tsx +6 -0
  42. package/src/inputs/{SelectInput/SelectInput.docs.mdx → SelectInput.docs.mdx} +1 -0
  43. package/src/inputs/SelectInput.less +219 -0
  44. package/src/inputs/{SelectInput/SelectInput.story.tsx → SelectInput.story.tsx} +7 -7
  45. package/src/inputs/SelectInput.tsx +1190 -0
  46. package/src/main.css +47 -47
  47. package/src/main.less +1 -1
  48. package/src/modal/Modal.story.tsx +15 -0
  49. package/src/snackbar/Snackbar.test.story.tsx +9 -0
  50. package/build/inputs/SelectInput/SelectInput.helpers.js +0 -115
  51. package/build/inputs/SelectInput/SelectInput.helpers.js.map +0 -1
  52. package/build/inputs/SelectInput/SelectInput.helpers.mjs +0 -109
  53. package/build/inputs/SelectInput/SelectInput.helpers.mjs.map +0 -1
  54. package/build/inputs/SelectInput/SelectInput.js +0 -216
  55. package/build/inputs/SelectInput/SelectInput.js.map +0 -1
  56. package/build/inputs/SelectInput/SelectInput.messages.js.map +0 -1
  57. package/build/inputs/SelectInput/SelectInput.messages.mjs.map +0 -1
  58. package/build/inputs/SelectInput/SelectInput.mjs +0 -210
  59. package/build/inputs/SelectInput/SelectInput.mjs.map +0 -1
  60. package/build/inputs/SelectInput/components/SelectInputClearButton/SelectInputClearButton.js +0 -26
  61. package/build/inputs/SelectInput/components/SelectInputClearButton/SelectInputClearButton.js.map +0 -1
  62. package/build/inputs/SelectInput/components/SelectInputClearButton/SelectInputClearButton.mjs +0 -24
  63. package/build/inputs/SelectInput/components/SelectInputClearButton/SelectInputClearButton.mjs.map +0 -1
  64. package/build/inputs/SelectInput/components/SelectInputDefaultTrigger/SelectInputDefaultTrigger.js +0 -54
  65. package/build/inputs/SelectInput/components/SelectInputDefaultTrigger/SelectInputDefaultTrigger.js.map +0 -1
  66. package/build/inputs/SelectInput/components/SelectInputDefaultTrigger/SelectInputDefaultTrigger.mjs +0 -52
  67. package/build/inputs/SelectInput/components/SelectInputDefaultTrigger/SelectInputDefaultTrigger.mjs.map +0 -1
  68. package/build/inputs/SelectInput/components/SelectInputGroupItemView/SelectInputGroupItemView.js +0 -50
  69. package/build/inputs/SelectInput/components/SelectInputGroupItemView/SelectInputGroupItemView.js.map +0 -1
  70. package/build/inputs/SelectInput/components/SelectInputGroupItemView/SelectInputGroupItemView.mjs +0 -48
  71. package/build/inputs/SelectInput/components/SelectInputGroupItemView/SelectInputGroupItemView.mjs.map +0 -1
  72. package/build/inputs/SelectInput/components/SelectInputItemView/SelectInputItemView.js +0 -47
  73. package/build/inputs/SelectInput/components/SelectInputItemView/SelectInputItemView.js.map +0 -1
  74. package/build/inputs/SelectInput/components/SelectInputItemView/SelectInputItemView.mjs +0 -45
  75. package/build/inputs/SelectInput/components/SelectInputItemView/SelectInputItemView.mjs.map +0 -1
  76. package/build/inputs/SelectInput/components/SelectInputOption/SelectInputOption.js +0 -45
  77. package/build/inputs/SelectInput/components/SelectInputOption/SelectInputOption.js.map +0 -1
  78. package/build/inputs/SelectInput/components/SelectInputOption/SelectInputOption.mjs +0 -41
  79. package/build/inputs/SelectInput/components/SelectInputOption/SelectInputOption.mjs.map +0 -1
  80. package/build/inputs/SelectInput/components/SelectInputOptionContent/SelectInputOptionContent.js +0 -41
  81. package/build/inputs/SelectInput/components/SelectInputOptionContent/SelectInputOptionContent.js.map +0 -1
  82. package/build/inputs/SelectInput/components/SelectInputOptionContent/SelectInputOptionContent.mjs +0 -38
  83. package/build/inputs/SelectInput/components/SelectInputOptionContent/SelectInputOptionContent.mjs.map +0 -1
  84. package/build/inputs/SelectInput/components/SelectInputOptions/SelectInputOptions.js +0 -270
  85. package/build/inputs/SelectInput/components/SelectInputOptions/SelectInputOptions.js.map +0 -1
  86. package/build/inputs/SelectInput/components/SelectInputOptions/SelectInputOptions.mjs +0 -268
  87. package/build/inputs/SelectInput/components/SelectInputOptions/SelectInputOptions.mjs.map +0 -1
  88. package/build/inputs/SelectInput/components/SelectInputOptionsContainer/SelectInputOptionsContainer.js +0 -48
  89. package/build/inputs/SelectInput/components/SelectInputOptionsContainer/SelectInputOptionsContainer.js.map +0 -1
  90. package/build/inputs/SelectInput/components/SelectInputOptionsContainer/SelectInputOptionsContainer.mjs +0 -46
  91. package/build/inputs/SelectInput/components/SelectInputOptionsContainer/SelectInputOptionsContainer.mjs.map +0 -1
  92. package/build/inputs/SelectInput/components/SelectInputTriggerButton/SelectInputTriggerButton.js +0 -41
  93. package/build/inputs/SelectInput/components/SelectInputTriggerButton/SelectInputTriggerButton.js.map +0 -1
  94. package/build/inputs/SelectInput/components/SelectInputTriggerButton/SelectInputTriggerButton.mjs +0 -34
  95. package/build/inputs/SelectInput/components/SelectInputTriggerButton/SelectInputTriggerButton.mjs.map +0 -1
  96. package/build/styles/inputs/SelectInput/components/SelectInputDefaultTrigger/SelectInputDefaultTrigger.css +0 -17
  97. package/build/styles/inputs/SelectInput/components/SelectInputItemView/SelectInputItemView.css +0 -16
  98. package/build/styles/inputs/SelectInput/components/SelectInputOption/SelectInputOption.css +0 -33
  99. package/build/styles/inputs/SelectInput/components/SelectInputOptionContent/SelectInputOptionContent.css +0 -37
  100. package/build/types/inputs/SelectInput/SelectInput.d.ts +0 -3
  101. package/build/types/inputs/SelectInput/SelectInput.d.ts.map +0 -1
  102. package/build/types/inputs/SelectInput/SelectInput.helpers.d.ts +0 -28
  103. package/build/types/inputs/SelectInput/SelectInput.helpers.d.ts.map +0 -1
  104. package/build/types/inputs/SelectInput/SelectInput.messages.d.ts.map +0 -1
  105. package/build/types/inputs/SelectInput/SelectInput.types.d.ts.map +0 -1
  106. package/build/types/inputs/SelectInput/components/SelectInputClearButton/SelectInputClearButton.d.ts +0 -5
  107. package/build/types/inputs/SelectInput/components/SelectInputClearButton/SelectInputClearButton.d.ts.map +0 -1
  108. package/build/types/inputs/SelectInput/components/SelectInputClearButton/index.d.ts +0 -2
  109. package/build/types/inputs/SelectInput/components/SelectInputClearButton/index.d.ts.map +0 -1
  110. package/build/types/inputs/SelectInput/components/SelectInputDefaultTrigger/SelectInputDefaultTrigger.d.ts +0 -9
  111. package/build/types/inputs/SelectInput/components/SelectInputDefaultTrigger/SelectInputDefaultTrigger.d.ts.map +0 -1
  112. package/build/types/inputs/SelectInput/components/SelectInputDefaultTrigger/index.d.ts +0 -2
  113. package/build/types/inputs/SelectInput/components/SelectInputDefaultTrigger/index.d.ts.map +0 -1
  114. package/build/types/inputs/SelectInput/components/SelectInputGroupItemView/SelectInputGroupItemView.d.ts +0 -9
  115. package/build/types/inputs/SelectInput/components/SelectInputGroupItemView/SelectInputGroupItemView.d.ts.map +0 -1
  116. package/build/types/inputs/SelectInput/components/SelectInputGroupItemView/index.d.ts +0 -2
  117. package/build/types/inputs/SelectInput/components/SelectInputGroupItemView/index.d.ts.map +0 -1
  118. package/build/types/inputs/SelectInput/components/SelectInputItemView/SelectInputItemView.d.ts +0 -8
  119. package/build/types/inputs/SelectInput/components/SelectInputItemView/SelectInputItemView.d.ts.map +0 -1
  120. package/build/types/inputs/SelectInput/components/SelectInputItemView/index.d.ts +0 -2
  121. package/build/types/inputs/SelectInput/components/SelectInputItemView/index.d.ts.map +0 -1
  122. package/build/types/inputs/SelectInput/components/SelectInputOption/SelectInputOption.d.ts +0 -10
  123. package/build/types/inputs/SelectInput/components/SelectInputOption/SelectInputOption.d.ts.map +0 -1
  124. package/build/types/inputs/SelectInput/components/SelectInputOption/index.d.ts +0 -2
  125. package/build/types/inputs/SelectInput/components/SelectInputOption/index.d.ts.map +0 -1
  126. package/build/types/inputs/SelectInput/components/SelectInputOptionContent/SelectInputOptionContent.d.ts +0 -9
  127. package/build/types/inputs/SelectInput/components/SelectInputOptionContent/SelectInputOptionContent.d.ts.map +0 -1
  128. package/build/types/inputs/SelectInput/components/SelectInputOptionContent/index.d.ts +0 -3
  129. package/build/types/inputs/SelectInput/components/SelectInputOptionContent/index.d.ts.map +0 -1
  130. package/build/types/inputs/SelectInput/components/SelectInputOptions/SelectInputOptions.d.ts +0 -15
  131. package/build/types/inputs/SelectInput/components/SelectInputOptions/SelectInputOptions.d.ts.map +0 -1
  132. package/build/types/inputs/SelectInput/components/SelectInputOptions/index.d.ts +0 -2
  133. package/build/types/inputs/SelectInput/components/SelectInputOptions/index.d.ts.map +0 -1
  134. package/build/types/inputs/SelectInput/components/SelectInputOptionsContainer/SelectInputOptionsContainer.d.ts +0 -6
  135. package/build/types/inputs/SelectInput/components/SelectInputOptionsContainer/SelectInputOptionsContainer.d.ts.map +0 -1
  136. package/build/types/inputs/SelectInput/components/SelectInputOptionsContainer/index.d.ts +0 -2
  137. package/build/types/inputs/SelectInput/components/SelectInputOptionsContainer/index.d.ts.map +0 -1
  138. package/build/types/inputs/SelectInput/components/SelectInputTriggerButton/SelectInputTriggerButton.d.ts +0 -15
  139. package/build/types/inputs/SelectInput/components/SelectInputTriggerButton/SelectInputTriggerButton.d.ts.map +0 -1
  140. package/build/types/inputs/SelectInput/components/SelectInputTriggerButton/index.d.ts +0 -3
  141. package/build/types/inputs/SelectInput/components/SelectInputTriggerButton/index.d.ts.map +0 -1
  142. package/build/types/inputs/SelectInput/index.d.ts +0 -5
  143. package/build/types/inputs/SelectInput/index.d.ts.map +0 -1
  144. package/src/inputs/SelectInput/SelectInput.helpers.ts +0 -152
  145. package/src/inputs/SelectInput/SelectInput.less +0 -42
  146. package/src/inputs/SelectInput/SelectInput.test.tsx +0 -606
  147. package/src/inputs/SelectInput/SelectInput.tsx +0 -247
  148. package/src/inputs/SelectInput/SelectInput.types.ts +0 -114
  149. package/src/inputs/SelectInput/components/SelectInputClearButton/SelectInputClearButton.tsx +0 -25
  150. package/src/inputs/SelectInput/components/SelectInputClearButton/index.ts +0 -1
  151. package/src/inputs/SelectInput/components/SelectInputDefaultTrigger/SelectInputDefaultTrigger.css +0 -17
  152. package/src/inputs/SelectInput/components/SelectInputDefaultTrigger/SelectInputDefaultTrigger.less +0 -15
  153. package/src/inputs/SelectInput/components/SelectInputDefaultTrigger/SelectInputDefaultTrigger.tsx +0 -56
  154. package/src/inputs/SelectInput/components/SelectInputDefaultTrigger/index.ts +0 -1
  155. package/src/inputs/SelectInput/components/SelectInputGroupItemView/SelectInputGroupItemView.tsx +0 -64
  156. package/src/inputs/SelectInput/components/SelectInputGroupItemView/index.ts +0 -1
  157. package/src/inputs/SelectInput/components/SelectInputItemView/SelectInputItemView.css +0 -16
  158. package/src/inputs/SelectInput/components/SelectInputItemView/SelectInputItemView.less +0 -17
  159. package/src/inputs/SelectInput/components/SelectInputItemView/SelectInputItemView.tsx +0 -55
  160. package/src/inputs/SelectInput/components/SelectInputItemView/index.ts +0 -1
  161. package/src/inputs/SelectInput/components/SelectInputOption/SelectInputOption.css +0 -33
  162. package/src/inputs/SelectInput/components/SelectInputOption/SelectInputOption.less +0 -32
  163. package/src/inputs/SelectInput/components/SelectInputOption/SelectInputOption.tsx +0 -51
  164. package/src/inputs/SelectInput/components/SelectInputOption/index.ts +0 -5
  165. package/src/inputs/SelectInput/components/SelectInputOptionContent/SelectInputOptionContent.css +0 -37
  166. package/src/inputs/SelectInput/components/SelectInputOptionContent/SelectInputOptionContent.less +0 -38
  167. package/src/inputs/SelectInput/components/SelectInputOptionContent/SelectInputOptionContent.tsx +0 -67
  168. package/src/inputs/SelectInput/components/SelectInputOptionContent/index.ts +0 -5
  169. package/src/inputs/SelectInput/components/SelectInputOptions/SelectInputOptions.less +0 -75
  170. package/src/inputs/SelectInput/components/SelectInputOptions/SelectInputOptions.tsx +0 -369
  171. package/src/inputs/SelectInput/components/SelectInputOptions/index.ts +0 -1
  172. package/src/inputs/SelectInput/components/SelectInputOptionsContainer/SelectInputOptionsContainer.tsx +0 -56
  173. package/src/inputs/SelectInput/components/SelectInputOptionsContainer/index.ts +0 -1
  174. package/src/inputs/SelectInput/components/SelectInputTriggerButton/SelectInputTriggerButton.tsx +0 -39
  175. package/src/inputs/SelectInput/components/SelectInputTriggerButton/index.ts +0 -5
  176. package/src/inputs/SelectInput/index.ts +0 -13
  177. package/build/inputs/{SelectInput/SelectInput.messages.js → SelectInput.messages.js} +0 -0
  178. package/build/inputs/{SelectInput/SelectInput.messages.mjs → SelectInput.messages.mjs} +0 -0
  179. package/{src/inputs/SelectInput → build/styles/inputs}/SelectInput.css +47 -47
  180. package/build/types/inputs/{SelectInput/SelectInput.messages.d.ts → SelectInput.messages.d.ts} +0 -0
  181. package/{build/styles/inputs/SelectInput → src/inputs}/SelectInput.css +47 -47
  182. /package/src/inputs/{SelectInput/SelectInput.messages.ts → SelectInput.messages.ts} +0 -0
@@ -1,56 +0,0 @@
1
- import { forwardRef, useEffect } from 'react';
2
-
3
- import { useEffectEvent } from '../../../../common/hooks/useEffectEvent';
4
-
5
- interface SelectInputOptionsContainerProps extends React.ComponentPropsWithRef<'div'> {
6
- onAriaActiveDescendantChange: (value: React.AriaAttributes['aria-activedescendant']) => void;
7
- }
8
-
9
- export const SelectInputOptionsContainer = forwardRef(function SelectInputOptionsContainer(
10
- {
11
- 'aria-orientation': ariaOrientation,
12
- 'aria-activedescendant': ariaActiveDescendant,
13
- role,
14
- tabIndex,
15
- onAriaActiveDescendantChange,
16
- onKeyDown,
17
- ...restProps
18
- }: SelectInputOptionsContainerProps,
19
- ref: React.ForwardedRef<HTMLDivElement | null>,
20
- ) {
21
- const handleAriaActiveDescendantChange = useEffectEvent(onAriaActiveDescendantChange);
22
- useEffect(() => {
23
- handleAriaActiveDescendantChange(ariaActiveDescendant);
24
- }, [ariaActiveDescendant, handleAriaActiveDescendantChange]);
25
-
26
- return (
27
- <div
28
- ref={ref}
29
- role="none"
30
- onKeyDown={(event) => {
31
- // Prevent confirmation close without an active item
32
- if (event.key === 'Enter' && ariaActiveDescendant == null) {
33
- return;
34
- }
35
-
36
- // Required to make ListBox focusable
37
- if (event.key === 'Tab') {
38
- return;
39
- }
40
-
41
- // Prevent absorbing Escape early
42
- if (event.key === 'Escape') {
43
- onKeyDown?.({
44
- ...event,
45
- preventDefault: () => {},
46
- stopPropagation: () => {},
47
- });
48
- return;
49
- }
50
-
51
- onKeyDown?.(event);
52
- }}
53
- {...restProps}
54
- />
55
- );
56
- });
@@ -1 +0,0 @@
1
- export { SelectInputOptionsContainer } from './SelectInputOptionsContainer';
@@ -1,39 +0,0 @@
1
- import { ListboxButton } from '@headlessui/react';
2
- import mergeProps from 'merge-props';
3
- import { useContext, createContext } from 'react';
4
-
5
- import { PolymorphicWithOverrides } from '../../../../common/polymorphicWithOverrides/PolymorphicWithOverrides';
6
- import { Merge } from '../../../../utils';
7
-
8
- export const SelectInputTriggerButtonPropsContext = createContext<{
9
- ref?: React.ForwardedRef<HTMLButtonElement | null>;
10
- id?: string;
11
- onClick?: (event: React.MouseEvent) => void;
12
- onKeyDown?: (event: React.KeyboardEvent) => void;
13
- [key: string]: unknown;
14
- }>({});
15
-
16
- type SelectInputTriggerButtonElementType = 'button' | React.ComponentType;
17
-
18
- export type SelectInputTriggerButtonProps<
19
- T extends SelectInputTriggerButtonElementType = 'button',
20
- > = Merge<React.ComponentPropsWithoutRef<T>, { as?: T }>;
21
-
22
- export function SelectInputTriggerButton<T extends SelectInputTriggerButtonElementType = 'button'>({
23
- as = 'button' as T,
24
- ...restProps
25
- }: SelectInputTriggerButtonProps<T>) {
26
- const { ref, onClick, onKeyDown, ...interactionProps } = useContext(
27
- SelectInputTriggerButtonPropsContext,
28
- );
29
-
30
- return (
31
- <ListboxButton
32
- ref={ref}
33
- as={PolymorphicWithOverrides}
34
- role="combobox"
35
- __overrides={{ as, ...interactionProps }}
36
- {...mergeProps({ onClick, onKeyDown }, restProps)}
37
- />
38
- );
39
- }
@@ -1,5 +0,0 @@
1
- export {
2
- SelectInputTriggerButton,
3
- SelectInputTriggerButtonPropsContext,
4
- } from './SelectInputTriggerButton';
5
- export type { SelectInputTriggerButtonProps } from './SelectInputTriggerButton';
@@ -1,13 +0,0 @@
1
- export { SelectInput } from './SelectInput';
2
- export { SelectInputOptionContent } from './components/SelectInputOptionContent';
3
- export { SelectInputTriggerButton } from './components/SelectInputTriggerButton';
4
-
5
- export type {
6
- SelectInputGroupItem,
7
- SelectInputItem,
8
- SelectInputOptionContentProps,
9
- SelectInputOptionItem,
10
- SelectInputProps,
11
- SelectInputSeparatorItem,
12
- SelectInputTriggerButtonProps,
13
- } from './SelectInput.types';
@@ -148,6 +148,28 @@
148
148
  color: #5d7079;
149
149
  color: var(--color-content-secondary);
150
150
  }
151
+ .np-select-input-content {
152
+ overflow: hidden;
153
+ text-overflow: ellipsis;
154
+ white-space: nowrap;
155
+ }
156
+ .np-select-input-placeholder {
157
+ color: #768e9c;
158
+ color: var(--color-content-tertiary);
159
+ }
160
+ .np-select-input-options-container {
161
+ display: flex;
162
+ height: 100%;
163
+ flex-direction: column;
164
+ }
165
+ .np-select-input-options-container:focus {
166
+ outline: none;
167
+ }
168
+ @media (min-width: 576px) {
169
+ .np-select-input-options-container {
170
+ max-height: 28rem /* 448px */;
171
+ }
172
+ }
151
173
  .np-select-input-options-status {
152
174
  display: flex;
153
175
  align-items: center;
@@ -212,22 +234,21 @@
212
234
  contain: strict;
213
235
  height: 100%;
214
236
  }
215
- .np-select-input-options-container {
216
- display: flex;
217
- height: 100%;
218
- flex-direction: column;
219
- }
220
- .np-select-input-options-container:focus {
221
- outline: none;
237
+ .np-select-input-separator-item {
238
+ margin: 8px;
239
+ margin: var(--size-8);
240
+ border-top-width: 1px;
222
241
  }
223
- @media (min-width: 576px) {
224
- .np-select-input-options-container {
225
- max-height: 28rem /* 448px */;
226
- }
242
+ .np-select-input-group-item--without-needle:first-child {
243
+ margin-top: calc(-1 * 8px);
244
+ margin-top: calc(-1 * var(--size-8));
227
245
  }
228
- .np-select-input-footer {
229
- padding: 4px 24px 16px;
230
- padding: var(--size-4) var(--size-24) var(--size-16);
246
+ .np-select-input-group-item-header {
247
+ position: sticky;
248
+ top: 0px;
249
+ z-index: 10;
250
+ background-color: #ffffff;
251
+ background-color: var(--color-background-elevated);
231
252
  }
232
253
  .np-select-input-option-container {
233
254
  display: flex;
@@ -256,27 +277,11 @@
256
277
  .np-select-input-option-container--disabled {
257
278
  opacity: 0.45;
258
279
  }
259
- .np-select-input-option {
260
- flex: 1;
261
- }
262
280
  .np-select-input-option-check--not-selected {
263
281
  visibility: hidden;
264
282
  }
265
- .np-select-input-separator-item {
266
- margin: 8px;
267
- margin: var(--size-8);
268
- border-top-width: 1px;
269
- }
270
- .np-select-input-group-item--without-needle:first-child {
271
- margin-top: calc(-1 * 8px);
272
- margin-top: calc(-1 * var(--size-8));
273
- }
274
- .np-select-input-group-item-header {
275
- position: sticky;
276
- top: 0px;
277
- z-index: 10;
278
- background-color: #ffffff;
279
- background-color: var(--color-background-elevated);
283
+ .np-select-input-option {
284
+ flex: 1;
280
285
  }
281
286
  .np-select-input-option-content-container {
282
287
  display: flex;
@@ -315,6 +320,10 @@
315
320
  margin-left: 8px;
316
321
  margin-left: var(--size-8);
317
322
  }
323
+ .np-select-input-footer {
324
+ padding: 4px 24px 16px;
325
+ padding: var(--size-4) var(--size-24) var(--size-16);
326
+ }
318
327
  .np-select-input-addon-container {
319
328
  pointer-events: none;
320
329
  margin-inline-start: 4px;
@@ -326,21 +335,6 @@
326
335
  margin-inline-start: 4px;
327
336
  margin-inline-start: var(--size-4);
328
337
  }
329
- .np-select-input-addon-separator {
330
- height: 24px;
331
- height: var(--size-24);
332
- border-inline-start: 1px solid rgba(0,0,0,0.10196);
333
- border-inline-start: 1px solid var(--color-border-neutral);
334
- }
335
- .np-select-input-content {
336
- overflow: hidden;
337
- text-overflow: ellipsis;
338
- white-space: nowrap;
339
- }
340
- .np-select-input-placeholder {
341
- color: #768e9c;
342
- color: var(--color-content-tertiary);
343
- }
344
338
  .np-select-input-addon {
345
339
  border-width: 0;
346
340
  background: none;
@@ -370,3 +364,9 @@
370
364
  outline: var(--ring-outline-color) solid var(--ring-outline-width);
371
365
  outline-offset: var(--ring-outline-offset);
372
366
  }
367
+ .np-select-input-addon-separator {
368
+ height: 24px;
369
+ height: var(--size-24);
370
+ border-inline-start: 1px solid rgba(0,0,0,0.10196);
371
+ border-inline-start: 1px solid var(--color-border-neutral);
372
+ }
@@ -148,6 +148,28 @@
148
148
  color: #5d7079;
149
149
  color: var(--color-content-secondary);
150
150
  }
151
+ .np-select-input-content {
152
+ overflow: hidden;
153
+ text-overflow: ellipsis;
154
+ white-space: nowrap;
155
+ }
156
+ .np-select-input-placeholder {
157
+ color: #768e9c;
158
+ color: var(--color-content-tertiary);
159
+ }
160
+ .np-select-input-options-container {
161
+ display: flex;
162
+ height: 100%;
163
+ flex-direction: column;
164
+ }
165
+ .np-select-input-options-container:focus {
166
+ outline: none;
167
+ }
168
+ @media (min-width: 576px) {
169
+ .np-select-input-options-container {
170
+ max-height: 28rem /* 448px */;
171
+ }
172
+ }
151
173
  .np-select-input-options-status {
152
174
  display: flex;
153
175
  align-items: center;
@@ -212,22 +234,21 @@
212
234
  contain: strict;
213
235
  height: 100%;
214
236
  }
215
- .np-select-input-options-container {
216
- display: flex;
217
- height: 100%;
218
- flex-direction: column;
219
- }
220
- .np-select-input-options-container:focus {
221
- outline: none;
237
+ .np-select-input-separator-item {
238
+ margin: 8px;
239
+ margin: var(--size-8);
240
+ border-top-width: 1px;
222
241
  }
223
- @media (min-width: 576px) {
224
- .np-select-input-options-container {
225
- max-height: 28rem /* 448px */;
226
- }
242
+ .np-select-input-group-item--without-needle:first-child {
243
+ margin-top: calc(-1 * 8px);
244
+ margin-top: calc(-1 * var(--size-8));
227
245
  }
228
- .np-select-input-footer {
229
- padding: 4px 24px 16px;
230
- padding: var(--size-4) var(--size-24) var(--size-16);
246
+ .np-select-input-group-item-header {
247
+ position: sticky;
248
+ top: 0px;
249
+ z-index: 10;
250
+ background-color: #ffffff;
251
+ background-color: var(--color-background-elevated);
231
252
  }
232
253
  .np-select-input-option-container {
233
254
  display: flex;
@@ -256,27 +277,11 @@
256
277
  .np-select-input-option-container--disabled {
257
278
  opacity: 0.45;
258
279
  }
259
- .np-select-input-option {
260
- flex: 1;
261
- }
262
280
  .np-select-input-option-check--not-selected {
263
281
  visibility: hidden;
264
282
  }
265
- .np-select-input-separator-item {
266
- margin: 8px;
267
- margin: var(--size-8);
268
- border-top-width: 1px;
269
- }
270
- .np-select-input-group-item--without-needle:first-child {
271
- margin-top: calc(-1 * 8px);
272
- margin-top: calc(-1 * var(--size-8));
273
- }
274
- .np-select-input-group-item-header {
275
- position: sticky;
276
- top: 0px;
277
- z-index: 10;
278
- background-color: #ffffff;
279
- background-color: var(--color-background-elevated);
283
+ .np-select-input-option {
284
+ flex: 1;
280
285
  }
281
286
  .np-select-input-option-content-container {
282
287
  display: flex;
@@ -315,6 +320,10 @@
315
320
  margin-left: 8px;
316
321
  margin-left: var(--size-8);
317
322
  }
323
+ .np-select-input-footer {
324
+ padding: 4px 24px 16px;
325
+ padding: var(--size-4) var(--size-24) var(--size-16);
326
+ }
318
327
  .np-select-input-addon-container {
319
328
  pointer-events: none;
320
329
  margin-inline-start: 4px;
@@ -326,21 +335,6 @@
326
335
  margin-inline-start: 4px;
327
336
  margin-inline-start: var(--size-4);
328
337
  }
329
- .np-select-input-addon-separator {
330
- height: 24px;
331
- height: var(--size-24);
332
- border-inline-start: 1px solid rgba(0,0,0,0.10196);
333
- border-inline-start: 1px solid var(--color-border-neutral);
334
- }
335
- .np-select-input-content {
336
- overflow: hidden;
337
- text-overflow: ellipsis;
338
- white-space: nowrap;
339
- }
340
- .np-select-input-placeholder {
341
- color: #768e9c;
342
- color: var(--color-content-tertiary);
343
- }
344
338
  .np-select-input-addon {
345
339
  border-width: 0;
346
340
  background: none;
@@ -370,3 +364,9 @@
370
364
  outline: var(--ring-outline-color) solid var(--ring-outline-width);
371
365
  outline-offset: var(--ring-outline-offset);
372
366
  }
367
+ .np-select-input-addon-separator {
368
+ height: 24px;
369
+ height: var(--size-24);
370
+ border-inline-start: 1px solid rgba(0,0,0,0.10196);
371
+ border-inline-start: 1px solid var(--color-border-neutral);
372
+ }