@transferwise/components 46.130.2 → 46.130.3

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 (236) hide show
  1. package/build/dateInput/DateInput.js +12 -5
  2. package/build/dateInput/DateInput.js.map +1 -1
  3. package/build/dateInput/DateInput.mjs +11 -4
  4. package/build/dateInput/DateInput.mjs.map +1 -1
  5. package/build/expressiveMoneyInput/currencySelector/CurrencySelector.js +16 -8
  6. package/build/expressiveMoneyInput/currencySelector/CurrencySelector.js.map +1 -1
  7. package/build/expressiveMoneyInput/currencySelector/CurrencySelector.mjs +14 -6
  8. package/build/expressiveMoneyInput/currencySelector/CurrencySelector.mjs.map +1 -1
  9. package/build/index.js +12 -7
  10. package/build/index.js.map +1 -1
  11. package/build/index.mjs +9 -3
  12. package/build/index.mjs.map +1 -1
  13. package/build/inputs/{_BottomSheet.js → SelectInput/BottomSheet/SelectInputBottomSheet.js} +7 -7
  14. package/build/inputs/SelectInput/BottomSheet/SelectInputBottomSheet.js.map +1 -0
  15. package/build/inputs/{_BottomSheet.mjs → SelectInput/BottomSheet/SelectInputBottomSheet.mjs} +7 -7
  16. package/build/inputs/SelectInput/BottomSheet/SelectInputBottomSheet.mjs.map +1 -0
  17. package/build/inputs/{_ButtonInput.js → SelectInput/ButtonInput/SelectInputButtonInput.js} +5 -5
  18. package/build/inputs/SelectInput/ButtonInput/SelectInputButtonInput.js.map +1 -0
  19. package/build/inputs/{_ButtonInput.mjs → SelectInput/ButtonInput/SelectInputButtonInput.mjs} +5 -5
  20. package/build/inputs/SelectInput/ButtonInput/SelectInputButtonInput.mjs.map +1 -0
  21. package/build/inputs/SelectInput/ClearButton/SelectInputClearButton.js +26 -0
  22. package/build/inputs/SelectInput/ClearButton/SelectInputClearButton.js.map +1 -0
  23. package/build/inputs/SelectInput/ClearButton/SelectInputClearButton.mjs +24 -0
  24. package/build/inputs/SelectInput/ClearButton/SelectInputClearButton.mjs.map +1 -0
  25. package/build/inputs/SelectInput/DefaultRenderTrigger/SelectInputDefaultRenderTrigger.js +59 -0
  26. package/build/inputs/SelectInput/DefaultRenderTrigger/SelectInputDefaultRenderTrigger.js.map +1 -0
  27. package/build/inputs/SelectInput/DefaultRenderTrigger/SelectInputDefaultRenderTrigger.mjs +56 -0
  28. package/build/inputs/SelectInput/DefaultRenderTrigger/SelectInputDefaultRenderTrigger.mjs.map +1 -0
  29. package/build/inputs/SelectInput/ItemView/GroupItemView/SelectInputGroupItemView.js +50 -0
  30. package/build/inputs/SelectInput/ItemView/GroupItemView/SelectInputGroupItemView.js.map +1 -0
  31. package/build/inputs/SelectInput/ItemView/GroupItemView/SelectInputGroupItemView.mjs +48 -0
  32. package/build/inputs/SelectInput/ItemView/GroupItemView/SelectInputGroupItemView.mjs.map +1 -0
  33. package/build/inputs/SelectInput/ItemView/SelectInputItemView.js +47 -0
  34. package/build/inputs/SelectInput/ItemView/SelectInputItemView.js.map +1 -0
  35. package/build/inputs/SelectInput/ItemView/SelectInputItemView.mjs +45 -0
  36. package/build/inputs/SelectInput/ItemView/SelectInputItemView.mjs.map +1 -0
  37. package/build/inputs/SelectInput/Option/SelectInputOption.js +42 -0
  38. package/build/inputs/SelectInput/Option/SelectInputOption.js.map +1 -0
  39. package/build/inputs/SelectInput/Option/SelectInputOption.mjs +40 -0
  40. package/build/inputs/SelectInput/Option/SelectInputOption.mjs.map +1 -0
  41. package/build/inputs/SelectInput/OptionContent/SelectInputOptionContent.js +40 -0
  42. package/build/inputs/SelectInput/OptionContent/SelectInputOptionContent.js.map +1 -0
  43. package/build/inputs/SelectInput/OptionContent/SelectInputOptionContent.mjs +38 -0
  44. package/build/inputs/SelectInput/OptionContent/SelectInputOptionContent.mjs.map +1 -0
  45. package/build/inputs/SelectInput/Options/OptionsContainer/SelectInputOptionsContainer.js +48 -0
  46. package/build/inputs/SelectInput/Options/OptionsContainer/SelectInputOptionsContainer.js.map +1 -0
  47. package/build/inputs/SelectInput/Options/OptionsContainer/SelectInputOptionsContainer.mjs +46 -0
  48. package/build/inputs/SelectInput/Options/OptionsContainer/SelectInputOptionsContainer.mjs.map +1 -0
  49. package/build/inputs/SelectInput/Options/SelectInputOptions.js +300 -0
  50. package/build/inputs/SelectInput/Options/SelectInputOptions.js.map +1 -0
  51. package/build/inputs/SelectInput/Options/SelectInputOptions.mjs +298 -0
  52. package/build/inputs/SelectInput/Options/SelectInputOptions.mjs.map +1 -0
  53. package/build/inputs/{_Popover.js → SelectInput/Popover/SelectInputPopover.js} +7 -7
  54. package/build/inputs/SelectInput/Popover/SelectInputPopover.js.map +1 -0
  55. package/build/inputs/{_Popover.mjs → SelectInput/Popover/SelectInputPopover.mjs} +7 -7
  56. package/build/inputs/SelectInput/Popover/SelectInputPopover.mjs.map +1 -0
  57. package/build/inputs/SelectInput/SelectInput.contexts.js +29 -0
  58. package/build/inputs/SelectInput/SelectInput.contexts.js.map +1 -0
  59. package/build/inputs/SelectInput/SelectInput.contexts.mjs +24 -0
  60. package/build/inputs/SelectInput/SelectInput.contexts.mjs.map +1 -0
  61. package/build/inputs/SelectInput/SelectInput.js +222 -0
  62. package/build/inputs/SelectInput/SelectInput.js.map +1 -0
  63. package/build/inputs/SelectInput/SelectInput.messages.js.map +1 -0
  64. package/build/inputs/SelectInput/SelectInput.messages.mjs.map +1 -0
  65. package/build/inputs/SelectInput/SelectInput.mjs +216 -0
  66. package/build/inputs/SelectInput/SelectInput.mjs.map +1 -0
  67. package/build/inputs/SelectInput/SelectInput.utils.js +164 -0
  68. package/build/inputs/SelectInput/SelectInput.utils.js.map +1 -0
  69. package/build/inputs/SelectInput/SelectInput.utils.mjs +154 -0
  70. package/build/inputs/SelectInput/SelectInput.utils.mjs.map +1 -0
  71. package/build/inputs/SelectInput/TriggerButton/SelectInputTriggerButton.js +42 -0
  72. package/build/inputs/SelectInput/TriggerButton/SelectInputTriggerButton.js.map +1 -0
  73. package/build/inputs/SelectInput/TriggerButton/SelectInputTriggerButton.mjs +36 -0
  74. package/build/inputs/SelectInput/TriggerButton/SelectInputTriggerButton.mjs.map +1 -0
  75. package/build/main.css +90 -90
  76. package/build/moneyInput/MoneyInput.js +9 -2
  77. package/build/moneyInput/MoneyInput.js.map +1 -1
  78. package/build/moneyInput/MoneyInput.mjs +8 -1
  79. package/build/moneyInput/MoneyInput.mjs.map +1 -1
  80. package/build/phoneNumberInput/PhoneNumberInput.js +10 -3
  81. package/build/phoneNumberInput/PhoneNumberInput.js.map +1 -1
  82. package/build/phoneNumberInput/PhoneNumberInput.mjs +9 -2
  83. package/build/phoneNumberInput/PhoneNumberInput.mjs.map +1 -1
  84. package/build/styles/inputs/SelectInput/BottomSheet/SelectInputBottomSheet.css +96 -0
  85. package/build/styles/inputs/SelectInput/ButtonInput/SelectInputButtonInput.css +16 -0
  86. package/build/styles/inputs/SelectInput/ClearButton/SelectInputClearButton.css +46 -0
  87. package/build/styles/inputs/SelectInput/ItemView/SelectInputItemView.css +16 -0
  88. package/build/styles/inputs/SelectInput/Option/SelectInputOption.css +33 -0
  89. package/build/styles/inputs/SelectInput/OptionContent/SelectInputOptionContent.css +37 -0
  90. package/build/styles/inputs/SelectInput/Options/SelectInputOptions.css +81 -0
  91. package/build/styles/inputs/SelectInput/Popover/SelectInputPopover.css +46 -0
  92. package/build/styles/main.css +90 -90
  93. package/build/types/index.d.ts +1 -1
  94. package/build/types/index.d.ts.map +1 -1
  95. package/build/types/inputs/{_BottomSheet.d.ts → SelectInput/BottomSheet/SelectInputBottomSheet.d.ts} +3 -3
  96. package/build/types/inputs/SelectInput/BottomSheet/SelectInputBottomSheet.d.ts.map +1 -0
  97. package/build/types/inputs/SelectInput/BottomSheet/index.d.ts +3 -0
  98. package/build/types/inputs/SelectInput/BottomSheet/index.d.ts.map +1 -0
  99. package/build/types/inputs/SelectInput/ButtonInput/SelectInputButtonInput.d.ts +5 -0
  100. package/build/types/inputs/SelectInput/ButtonInput/SelectInputButtonInput.d.ts.map +1 -0
  101. package/build/types/inputs/SelectInput/ButtonInput/index.d.ts +3 -0
  102. package/build/types/inputs/SelectInput/ButtonInput/index.d.ts.map +1 -0
  103. package/build/types/inputs/SelectInput/ClearButton/SelectInputClearButton.d.ts +7 -0
  104. package/build/types/inputs/SelectInput/ClearButton/SelectInputClearButton.d.ts.map +1 -0
  105. package/build/types/inputs/SelectInput/ClearButton/index.d.ts +3 -0
  106. package/build/types/inputs/SelectInput/ClearButton/index.d.ts.map +1 -0
  107. package/build/types/inputs/SelectInput/DefaultRenderTrigger/SelectInputDefaultRenderTrigger.d.ts +16 -0
  108. package/build/types/inputs/SelectInput/DefaultRenderTrigger/SelectInputDefaultRenderTrigger.d.ts.map +1 -0
  109. package/build/types/inputs/SelectInput/DefaultRenderTrigger/index.d.ts +2 -0
  110. package/build/types/inputs/SelectInput/DefaultRenderTrigger/index.d.ts.map +1 -0
  111. package/build/types/inputs/SelectInput/ItemView/GroupItemView/SelectInputGroupItemView.d.ts +9 -0
  112. package/build/types/inputs/SelectInput/ItemView/GroupItemView/SelectInputGroupItemView.d.ts.map +1 -0
  113. package/build/types/inputs/SelectInput/ItemView/GroupItemView/index.d.ts +3 -0
  114. package/build/types/inputs/SelectInput/ItemView/GroupItemView/index.d.ts.map +1 -0
  115. package/build/types/inputs/SelectInput/ItemView/SelectInputItemView.d.ts +11 -0
  116. package/build/types/inputs/SelectInput/ItemView/SelectInputItemView.d.ts.map +1 -0
  117. package/build/types/inputs/SelectInput/ItemView/index.d.ts +4 -0
  118. package/build/types/inputs/SelectInput/ItemView/index.d.ts.map +1 -0
  119. package/build/types/inputs/SelectInput/Option/SelectInputOption.d.ts +11 -0
  120. package/build/types/inputs/SelectInput/Option/SelectInputOption.d.ts.map +1 -0
  121. package/build/types/inputs/SelectInput/Option/index.d.ts +3 -0
  122. package/build/types/inputs/SelectInput/Option/index.d.ts.map +1 -0
  123. package/build/types/inputs/SelectInput/OptionContent/SelectInputOptionContent.d.ts +13 -0
  124. package/build/types/inputs/SelectInput/OptionContent/SelectInputOptionContent.d.ts.map +1 -0
  125. package/build/types/inputs/SelectInput/OptionContent/index.d.ts +3 -0
  126. package/build/types/inputs/SelectInput/OptionContent/index.d.ts.map +1 -0
  127. package/build/types/inputs/SelectInput/Options/OptionsContainer/SelectInputOptionsContainer.d.ts +9 -0
  128. package/build/types/inputs/SelectInput/Options/OptionsContainer/SelectInputOptionsContainer.d.ts.map +1 -0
  129. package/build/types/inputs/SelectInput/Options/OptionsContainer/index.d.ts +3 -0
  130. package/build/types/inputs/SelectInput/Options/OptionsContainer/index.d.ts.map +1 -0
  131. package/build/types/inputs/SelectInput/Options/SelectInputOptions.d.ts +21 -0
  132. package/build/types/inputs/SelectInput/Options/SelectInputOptions.d.ts.map +1 -0
  133. package/build/types/inputs/SelectInput/Options/index.d.ts +4 -0
  134. package/build/types/inputs/SelectInput/Options/index.d.ts.map +1 -0
  135. package/build/types/inputs/{_Popover.d.ts → SelectInput/Popover/SelectInputPopover.d.ts} +3 -3
  136. package/build/types/inputs/SelectInput/Popover/SelectInputPopover.d.ts.map +1 -0
  137. package/build/types/inputs/SelectInput/Popover/index.d.ts +3 -0
  138. package/build/types/inputs/SelectInput/Popover/index.d.ts.map +1 -0
  139. package/build/types/inputs/SelectInput/SelectInput.contexts.d.ts +33 -0
  140. package/build/types/inputs/SelectInput/SelectInput.contexts.d.ts.map +1 -0
  141. package/build/types/inputs/SelectInput/SelectInput.d.ts +10 -0
  142. package/build/types/inputs/SelectInput/SelectInput.d.ts.map +1 -0
  143. package/build/types/inputs/SelectInput/SelectInput.messages.d.ts.map +1 -0
  144. package/build/types/inputs/{SelectInput.d.ts → SelectInput/SelectInput.types.d.ts} +12 -38
  145. package/build/types/inputs/SelectInput/SelectInput.types.d.ts.map +1 -0
  146. package/build/types/inputs/SelectInput/SelectInput.utils.d.ts +60 -0
  147. package/build/types/inputs/SelectInput/SelectInput.utils.d.ts.map +1 -0
  148. package/build/types/inputs/SelectInput/TriggerButton/SelectInputTriggerButton.d.ts +12 -0
  149. package/build/types/inputs/SelectInput/TriggerButton/SelectInputTriggerButton.d.ts.map +1 -0
  150. package/build/types/inputs/SelectInput/TriggerButton/index.d.ts +3 -0
  151. package/build/types/inputs/SelectInput/TriggerButton/index.d.ts.map +1 -0
  152. package/build/types/inputs/SelectInput/components.d.ts +10 -0
  153. package/build/types/inputs/SelectInput/components.d.ts.map +1 -0
  154. package/build/types/inputs/SelectInput/index.d.ts +10 -0
  155. package/build/types/inputs/SelectInput/index.d.ts.map +1 -0
  156. package/package.json +1 -1
  157. package/src/index.ts +0 -1
  158. package/src/inputs/SelectInput/BottomSheet/SelectInputBottomSheet.css +96 -0
  159. package/src/inputs/{_BottomSheet.tsx → SelectInput/BottomSheet/SelectInputBottomSheet.tsx} +7 -7
  160. package/src/inputs/SelectInput/BottomSheet/index.ts +2 -0
  161. package/src/inputs/SelectInput/ButtonInput/SelectInputButtonInput.css +16 -0
  162. package/src/inputs/{_ButtonInput.tsx → SelectInput/ButtonInput/SelectInputButtonInput.tsx} +5 -5
  163. package/src/inputs/SelectInput/ButtonInput/index.ts +2 -0
  164. package/src/inputs/SelectInput/ClearButton/SelectInputClearButton.css +46 -0
  165. package/src/inputs/SelectInput/ClearButton/SelectInputClearButton.less +39 -0
  166. package/src/inputs/SelectInput/ClearButton/SelectInputClearButton.tsx +27 -0
  167. package/src/inputs/SelectInput/ClearButton/index.ts +2 -0
  168. package/src/inputs/SelectInput/DefaultRenderTrigger/SelectInputDefaultRenderTrigger.tsx +74 -0
  169. package/src/inputs/SelectInput/DefaultRenderTrigger/index.ts +5 -0
  170. package/src/inputs/SelectInput/ItemView/GroupItemView/SelectInputGroupItemView.tsx +61 -0
  171. package/src/inputs/SelectInput/ItemView/GroupItemView/index.ts +2 -0
  172. package/src/inputs/SelectInput/ItemView/SelectInputItemView.css +16 -0
  173. package/src/inputs/SelectInput/ItemView/SelectInputItemView.less +17 -0
  174. package/src/inputs/SelectInput/ItemView/SelectInputItemView.tsx +48 -0
  175. package/src/inputs/SelectInput/ItemView/index.ts +3 -0
  176. package/src/inputs/SelectInput/Option/SelectInputOption.css +33 -0
  177. package/src/inputs/SelectInput/Option/SelectInputOption.less +32 -0
  178. package/src/inputs/SelectInput/Option/SelectInputOption.tsx +57 -0
  179. package/src/inputs/SelectInput/Option/index.ts +2 -0
  180. package/src/inputs/SelectInput/OptionContent/SelectInputOptionContent.css +37 -0
  181. package/src/inputs/SelectInput/OptionContent/SelectInputOptionContent.less +38 -0
  182. package/src/inputs/SelectInput/OptionContent/SelectInputOptionContent.tsx +72 -0
  183. package/src/inputs/SelectInput/OptionContent/index.ts +2 -0
  184. package/src/inputs/SelectInput/Options/OptionsContainer/SelectInputOptionsContainer.tsx +59 -0
  185. package/src/inputs/SelectInput/Options/OptionsContainer/index.ts +2 -0
  186. package/src/inputs/SelectInput/Options/SelectInputOptions.css +81 -0
  187. package/src/inputs/SelectInput/Options/SelectInputOptions.less +77 -0
  188. package/src/inputs/SelectInput/Options/SelectInputOptions.tsx +411 -0
  189. package/src/inputs/SelectInput/Options/index.ts +3 -0
  190. package/src/inputs/SelectInput/Popover/SelectInputPopover.css +46 -0
  191. package/src/inputs/{_Popover.tsx → SelectInput/Popover/SelectInputPopover.tsx} +7 -7
  192. package/src/inputs/SelectInput/Popover/index.ts +2 -0
  193. package/src/inputs/SelectInput/SelectInput.contexts.tsx +40 -0
  194. package/src/inputs/SelectInput/SelectInput.less +22 -0
  195. package/src/inputs/{SelectInput.test.tsx → SelectInput/SelectInput.test.tsx} +9 -11
  196. package/src/inputs/SelectInput/SelectInput.tsx +257 -0
  197. package/src/inputs/SelectInput/SelectInput.types.ts +113 -0
  198. package/src/inputs/SelectInput/SelectInput.utils.ts +205 -0
  199. package/src/inputs/SelectInput/TriggerButton/SelectInputTriggerButton.tsx +36 -0
  200. package/src/inputs/SelectInput/TriggerButton/index.ts +5 -0
  201. package/src/inputs/{SelectInput.docs.mdx → SelectInput/_stories/SelectInput.docs.mdx} +0 -1
  202. package/src/inputs/{SelectInput.story.tsx → SelectInput/_stories/SelectInput.story.tsx} +11 -8
  203. package/src/inputs/{SelectInput.test.story.tsx → SelectInput/_stories/SelectInput.test.story.tsx} +6 -10
  204. package/src/inputs/SelectInput/components.ts +10 -0
  205. package/src/inputs/SelectInput/index.ts +12 -0
  206. package/src/main.css +90 -90
  207. package/src/main.less +1 -1
  208. package/build/inputs/SelectInput.js +0 -890
  209. package/build/inputs/SelectInput.js.map +0 -1
  210. package/build/inputs/SelectInput.messages.js.map +0 -1
  211. package/build/inputs/SelectInput.messages.mjs.map +0 -1
  212. package/build/inputs/SelectInput.mjs +0 -881
  213. package/build/inputs/SelectInput.mjs.map +0 -1
  214. package/build/inputs/_BottomSheet.js.map +0 -1
  215. package/build/inputs/_BottomSheet.mjs.map +0 -1
  216. package/build/inputs/_ButtonInput.js.map +0 -1
  217. package/build/inputs/_ButtonInput.mjs.map +0 -1
  218. package/build/inputs/_Popover.js.map +0 -1
  219. package/build/inputs/_Popover.mjs.map +0 -1
  220. package/build/types/inputs/SelectInput.d.ts.map +0 -1
  221. package/build/types/inputs/SelectInput.messages.d.ts.map +0 -1
  222. package/build/types/inputs/_BottomSheet.d.ts.map +0 -1
  223. package/build/types/inputs/_ButtonInput.d.ts +0 -5
  224. package/build/types/inputs/_ButtonInput.d.ts.map +0 -1
  225. package/build/types/inputs/_Popover.d.ts.map +0 -1
  226. package/src/inputs/SelectInput.less +0 -219
  227. package/src/inputs/SelectInput.tsx +0 -1269
  228. package/build/inputs/{SelectInput.messages.js → SelectInput/SelectInput.messages.js} +0 -0
  229. package/build/inputs/{SelectInput.messages.mjs → SelectInput/SelectInput.messages.mjs} +0 -0
  230. package/build/styles/inputs/{SelectInput.css → SelectInput/SelectInput.css} +90 -90
  231. package/build/types/inputs/{SelectInput.messages.d.ts → SelectInput/SelectInput.messages.d.ts} +0 -0
  232. package/src/inputs/{_BottomSheet.less → SelectInput/BottomSheet/SelectInputBottomSheet.less} +0 -0
  233. package/src/inputs/{_ButtonInput.less → SelectInput/ButtonInput/SelectInputButtonInput.less} +0 -0
  234. package/src/inputs/{_Popover.less → SelectInput/Popover/SelectInputPopover.less} +0 -0
  235. package/src/inputs/{SelectInput.css → SelectInput/SelectInput.css} +90 -90
  236. /package/src/inputs/{SelectInput.messages.ts → SelectInput/SelectInput.messages.ts} +0 -0
@@ -156,14 +156,91 @@
156
156
  color: #5d7079;
157
157
  color: var(--color-content-secondary);
158
158
  }
159
- .np-select-input-content {
159
+ .np-select-input-option-container {
160
+ display: flex;
161
+ cursor: default;
162
+ -webkit-user-select: none;
163
+ -moz-user-select: none;
164
+ user-select: none;
165
+ align-items: center;
166
+ -moz-column-gap: 8px;
167
+ column-gap: 8px;
168
+ -moz-column-gap: var(--size-8);
169
+ column-gap: var(--size-8);
170
+ border-radius: 10px;
171
+ border-radius: var(--radius-small);
172
+ padding: 12px 16px;
173
+ padding: var(--size-12) var(--size-16);
174
+ color: var(--color-interactive-primary);
175
+ }
176
+ .np-select-input-option-container:focus {
177
+ outline: none;
178
+ }
179
+ .np-select-input-option-container--active {
180
+ box-shadow: inset 0 0 0 1px #c9cbce;
181
+ box-shadow: inset 0 0 0 1px var(--color-interactive-secondary);
182
+ }
183
+ .np-select-input-option-container--disabled {
184
+ opacity: 0.45;
185
+ }
186
+ .np-select-input-option-check--not-selected {
187
+ visibility: hidden;
188
+ }
189
+ .np-select-input-option {
190
+ flex: 1;
191
+ }
192
+ .np-select-input-option-content-container {
193
+ display: flex;
194
+ align-items: center;
195
+ -moz-column-gap: 8px;
196
+ column-gap: 8px;
197
+ -moz-column-gap: var(--size-8);
198
+ column-gap: var(--size-8);
199
+ color: #37517e;
200
+ color: var(--color-content-primary);
201
+ }
202
+ .np-select-input-option-content-icon {
203
+ display: flex;
204
+ }
205
+ .np-select-input-option-content-icon--not-within-trigger {
206
+ align-self: flex-start;
207
+ }
208
+ .np-select-input-option-content-text {
209
+ display: flex;
210
+ flex: 1;
211
+ flex-direction: column;
212
+ overflow: hidden;
213
+ }
214
+ .np-select-input-option-content-text-secondary {
215
+ color: #5d7079;
216
+ color: var(--color-content-secondary);
217
+ }
218
+ .np-select-input-option-content-text-within-trigger {
160
219
  overflow: hidden;
161
220
  text-overflow: ellipsis;
162
221
  white-space: nowrap;
163
222
  }
164
- .np-select-input-placeholder {
165
- color: #768e9c;
166
- color: var(--color-content-tertiary);
223
+ .np-select-input-option-content-text-line-1 > :not([hidden]) ~ :not([hidden]) {
224
+ margin-right: 8px;
225
+ margin-right: var(--size-8);
226
+ margin-left: 8px;
227
+ margin-left: var(--size-8);
228
+ }
229
+ .np-select-input-group-item--without-needle:first-child {
230
+ margin-top: calc(-1 * 8px);
231
+ margin-top: calc(-1 * var(--size-8));
232
+ }
233
+ .np-select-input-group-item-header {
234
+ position: sticky;
235
+ top: 0px;
236
+ z-index: 10;
237
+ background-color: #ffffff;
238
+ background-color: var(--color-background-elevated);
239
+ }
240
+ .np-select-input-separator-item {
241
+ margin: 8px;
242
+ margin: var(--size-8);
243
+ border-top-width: 1px;
167
244
  }
168
245
  .np-select-input-options-container {
169
246
  display: flex;
@@ -242,92 +319,6 @@
242
319
  contain: strict;
243
320
  height: 100%;
244
321
  }
245
- .np-select-input-separator-item {
246
- margin: 8px;
247
- margin: var(--size-8);
248
- border-top-width: 1px;
249
- }
250
- .np-select-input-group-item--without-needle:first-child {
251
- margin-top: calc(-1 * 8px);
252
- margin-top: calc(-1 * var(--size-8));
253
- }
254
- .np-select-input-group-item-header {
255
- position: sticky;
256
- top: 0px;
257
- z-index: 10;
258
- background-color: #ffffff;
259
- background-color: var(--color-background-elevated);
260
- }
261
- .np-select-input-option-container {
262
- display: flex;
263
- cursor: default;
264
- -webkit-user-select: none;
265
- -moz-user-select: none;
266
- user-select: none;
267
- align-items: center;
268
- -moz-column-gap: 8px;
269
- column-gap: 8px;
270
- -moz-column-gap: var(--size-8);
271
- column-gap: var(--size-8);
272
- border-radius: 10px;
273
- border-radius: var(--radius-small);
274
- padding: 12px 16px;
275
- padding: var(--size-12) var(--size-16);
276
- color: var(--color-interactive-primary);
277
- }
278
- .np-select-input-option-container:focus {
279
- outline: none;
280
- }
281
- .np-select-input-option-container--active {
282
- box-shadow: inset 0 0 0 1px #c9cbce;
283
- box-shadow: inset 0 0 0 1px var(--color-interactive-secondary);
284
- }
285
- .np-select-input-option-container--disabled {
286
- opacity: 0.45;
287
- }
288
- .np-select-input-option-check--not-selected {
289
- visibility: hidden;
290
- }
291
- .np-select-input-option {
292
- flex: 1;
293
- }
294
- .np-select-input-option-content-container {
295
- display: flex;
296
- align-items: center;
297
- -moz-column-gap: 8px;
298
- column-gap: 8px;
299
- -moz-column-gap: var(--size-8);
300
- column-gap: var(--size-8);
301
- color: #37517e;
302
- color: var(--color-content-primary);
303
- }
304
- .np-select-input-option-content-icon {
305
- display: flex;
306
- }
307
- .np-select-input-option-content-icon--not-within-trigger {
308
- align-self: flex-start;
309
- }
310
- .np-select-input-option-content-text {
311
- display: flex;
312
- flex: 1;
313
- flex-direction: column;
314
- overflow: hidden;
315
- }
316
- .np-select-input-option-content-text-secondary {
317
- color: #5d7079;
318
- color: var(--color-content-secondary);
319
- }
320
- .np-select-input-option-content-text-within-trigger {
321
- overflow: hidden;
322
- text-overflow: ellipsis;
323
- white-space: nowrap;
324
- }
325
- .np-select-input-option-content-text-line-1 > :not([hidden]) ~ :not([hidden]) {
326
- margin-right: 8px;
327
- margin-right: var(--size-8);
328
- margin-left: 8px;
329
- margin-left: var(--size-8);
330
- }
331
322
  .np-select-input-footer {
332
323
  padding: 4px 24px 16px;
333
324
  padding: var(--size-4) var(--size-24) var(--size-16);
@@ -378,3 +369,12 @@
378
369
  border-inline-start: 1px solid rgba(0,0,0,0.10196);
379
370
  border-inline-start: 1px solid var(--color-border-neutral);
380
371
  }
372
+ .np-select-input-content {
373
+ overflow: hidden;
374
+ text-overflow: ellipsis;
375
+ white-space: nowrap;
376
+ }
377
+ .np-select-input-placeholder {
378
+ color: #768e9c;
379
+ color: var(--color-content-tertiary);
380
+ }
@@ -156,14 +156,91 @@
156
156
  color: #5d7079;
157
157
  color: var(--color-content-secondary);
158
158
  }
159
- .np-select-input-content {
159
+ .np-select-input-option-container {
160
+ display: flex;
161
+ cursor: default;
162
+ -webkit-user-select: none;
163
+ -moz-user-select: none;
164
+ user-select: none;
165
+ align-items: center;
166
+ -moz-column-gap: 8px;
167
+ column-gap: 8px;
168
+ -moz-column-gap: var(--size-8);
169
+ column-gap: var(--size-8);
170
+ border-radius: 10px;
171
+ border-radius: var(--radius-small);
172
+ padding: 12px 16px;
173
+ padding: var(--size-12) var(--size-16);
174
+ color: var(--color-interactive-primary);
175
+ }
176
+ .np-select-input-option-container:focus {
177
+ outline: none;
178
+ }
179
+ .np-select-input-option-container--active {
180
+ box-shadow: inset 0 0 0 1px #c9cbce;
181
+ box-shadow: inset 0 0 0 1px var(--color-interactive-secondary);
182
+ }
183
+ .np-select-input-option-container--disabled {
184
+ opacity: 0.45;
185
+ }
186
+ .np-select-input-option-check--not-selected {
187
+ visibility: hidden;
188
+ }
189
+ .np-select-input-option {
190
+ flex: 1;
191
+ }
192
+ .np-select-input-option-content-container {
193
+ display: flex;
194
+ align-items: center;
195
+ -moz-column-gap: 8px;
196
+ column-gap: 8px;
197
+ -moz-column-gap: var(--size-8);
198
+ column-gap: var(--size-8);
199
+ color: #37517e;
200
+ color: var(--color-content-primary);
201
+ }
202
+ .np-select-input-option-content-icon {
203
+ display: flex;
204
+ }
205
+ .np-select-input-option-content-icon--not-within-trigger {
206
+ align-self: flex-start;
207
+ }
208
+ .np-select-input-option-content-text {
209
+ display: flex;
210
+ flex: 1;
211
+ flex-direction: column;
212
+ overflow: hidden;
213
+ }
214
+ .np-select-input-option-content-text-secondary {
215
+ color: #5d7079;
216
+ color: var(--color-content-secondary);
217
+ }
218
+ .np-select-input-option-content-text-within-trigger {
160
219
  overflow: hidden;
161
220
  text-overflow: ellipsis;
162
221
  white-space: nowrap;
163
222
  }
164
- .np-select-input-placeholder {
165
- color: #768e9c;
166
- color: var(--color-content-tertiary);
223
+ .np-select-input-option-content-text-line-1 > :not([hidden]) ~ :not([hidden]) {
224
+ margin-right: 8px;
225
+ margin-right: var(--size-8);
226
+ margin-left: 8px;
227
+ margin-left: var(--size-8);
228
+ }
229
+ .np-select-input-group-item--without-needle:first-child {
230
+ margin-top: calc(-1 * 8px);
231
+ margin-top: calc(-1 * var(--size-8));
232
+ }
233
+ .np-select-input-group-item-header {
234
+ position: sticky;
235
+ top: 0px;
236
+ z-index: 10;
237
+ background-color: #ffffff;
238
+ background-color: var(--color-background-elevated);
239
+ }
240
+ .np-select-input-separator-item {
241
+ margin: 8px;
242
+ margin: var(--size-8);
243
+ border-top-width: 1px;
167
244
  }
168
245
  .np-select-input-options-container {
169
246
  display: flex;
@@ -242,92 +319,6 @@
242
319
  contain: strict;
243
320
  height: 100%;
244
321
  }
245
- .np-select-input-separator-item {
246
- margin: 8px;
247
- margin: var(--size-8);
248
- border-top-width: 1px;
249
- }
250
- .np-select-input-group-item--without-needle:first-child {
251
- margin-top: calc(-1 * 8px);
252
- margin-top: calc(-1 * var(--size-8));
253
- }
254
- .np-select-input-group-item-header {
255
- position: sticky;
256
- top: 0px;
257
- z-index: 10;
258
- background-color: #ffffff;
259
- background-color: var(--color-background-elevated);
260
- }
261
- .np-select-input-option-container {
262
- display: flex;
263
- cursor: default;
264
- -webkit-user-select: none;
265
- -moz-user-select: none;
266
- user-select: none;
267
- align-items: center;
268
- -moz-column-gap: 8px;
269
- column-gap: 8px;
270
- -moz-column-gap: var(--size-8);
271
- column-gap: var(--size-8);
272
- border-radius: 10px;
273
- border-radius: var(--radius-small);
274
- padding: 12px 16px;
275
- padding: var(--size-12) var(--size-16);
276
- color: var(--color-interactive-primary);
277
- }
278
- .np-select-input-option-container:focus {
279
- outline: none;
280
- }
281
- .np-select-input-option-container--active {
282
- box-shadow: inset 0 0 0 1px #c9cbce;
283
- box-shadow: inset 0 0 0 1px var(--color-interactive-secondary);
284
- }
285
- .np-select-input-option-container--disabled {
286
- opacity: 0.45;
287
- }
288
- .np-select-input-option-check--not-selected {
289
- visibility: hidden;
290
- }
291
- .np-select-input-option {
292
- flex: 1;
293
- }
294
- .np-select-input-option-content-container {
295
- display: flex;
296
- align-items: center;
297
- -moz-column-gap: 8px;
298
- column-gap: 8px;
299
- -moz-column-gap: var(--size-8);
300
- column-gap: var(--size-8);
301
- color: #37517e;
302
- color: var(--color-content-primary);
303
- }
304
- .np-select-input-option-content-icon {
305
- display: flex;
306
- }
307
- .np-select-input-option-content-icon--not-within-trigger {
308
- align-self: flex-start;
309
- }
310
- .np-select-input-option-content-text {
311
- display: flex;
312
- flex: 1;
313
- flex-direction: column;
314
- overflow: hidden;
315
- }
316
- .np-select-input-option-content-text-secondary {
317
- color: #5d7079;
318
- color: var(--color-content-secondary);
319
- }
320
- .np-select-input-option-content-text-within-trigger {
321
- overflow: hidden;
322
- text-overflow: ellipsis;
323
- white-space: nowrap;
324
- }
325
- .np-select-input-option-content-text-line-1 > :not([hidden]) ~ :not([hidden]) {
326
- margin-right: 8px;
327
- margin-right: var(--size-8);
328
- margin-left: 8px;
329
- margin-left: var(--size-8);
330
- }
331
322
  .np-select-input-footer {
332
323
  padding: 4px 24px 16px;
333
324
  padding: var(--size-4) var(--size-24) var(--size-16);
@@ -378,3 +369,12 @@
378
369
  border-inline-start: 1px solid rgba(0,0,0,0.10196);
379
370
  border-inline-start: 1px solid var(--color-border-neutral);
380
371
  }
372
+ .np-select-input-content {
373
+ overflow: hidden;
374
+ text-overflow: ellipsis;
375
+ white-space: nowrap;
376
+ }
377
+ .np-select-input-placeholder {
378
+ color: #768e9c;
379
+ color: var(--color-content-tertiary);
380
+ }