nexus-shared 1.1.20 → 2.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 (332) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +903 -0
  3. package/dist/Client.Index.d.ts +44 -0
  4. package/dist/Client.Index.js +49 -0
  5. package/dist/Components/Documents/Button.d.ts +29 -0
  6. package/dist/Components/Documents/Button.js +11 -0
  7. package/dist/Components/Documents/Menu.d.ts +102 -0
  8. package/dist/Components/Documents/Menu.js +238 -0
  9. package/dist/Components/Documents/SplitButton.d.ts +64 -0
  10. package/dist/Components/Documents/SplitButton.js +127 -0
  11. package/dist/Components/Documents/TabButtons.d.ts +62 -0
  12. package/dist/Components/Documents/TabButtons.js +19 -0
  13. package/dist/Components/Forms/ApiForm.d.ts +21 -0
  14. package/dist/Components/Forms/ApiForm.js +99 -0
  15. package/dist/Components/Forms/Crud.d.ts +17 -0
  16. package/dist/Components/Forms/Crud.js +556 -0
  17. package/dist/Components/Forms/CrudParts.d.ts +15 -0
  18. package/dist/Components/Forms/CrudParts.js +36 -0
  19. package/dist/Components/Forms/Form.d.ts +52 -0
  20. package/dist/Components/Forms/Form.js +319 -0
  21. package/dist/Components/Forms/SubmitForm.d.ts +65 -0
  22. package/dist/Components/Forms/SubmitForm.js +198 -0
  23. package/dist/Components/Inputs/Calendar.d.ts +69 -0
  24. package/dist/Components/Inputs/Calendar.js +258 -0
  25. package/dist/Components/Inputs/CheckBox.d.ts +53 -0
  26. package/dist/Components/Inputs/CheckBox.js +87 -0
  27. package/dist/Components/Inputs/CheckBoxGroup.d.ts +20 -0
  28. package/dist/Components/Inputs/CheckBoxGroup.js +80 -0
  29. package/dist/Components/Inputs/ChoiceField.d.ts +122 -0
  30. package/dist/Components/Inputs/ChoiceField.js +169 -0
  31. package/dist/Components/Inputs/DatePicker.d.ts +54 -0
  32. package/dist/Components/Inputs/DatePicker.js +246 -0
  33. package/dist/Components/Inputs/DateRangePicker.d.ts +62 -0
  34. package/dist/Components/Inputs/DateRangePicker.js +283 -0
  35. package/dist/Components/Inputs/DateTimePicker.d.ts +75 -0
  36. package/dist/Components/Inputs/DateTimePicker.js +399 -0
  37. package/dist/Components/Inputs/Dropdown.d.ts +117 -0
  38. package/dist/Components/Inputs/Dropdown.js +839 -0
  39. package/dist/Components/Inputs/DropdownParts.d.ts +84 -0
  40. package/dist/Components/Inputs/DropdownParts.js +102 -0
  41. package/dist/Components/Inputs/EditorShell.d.ts +45 -0
  42. package/dist/Components/Inputs/EditorShell.js +214 -0
  43. package/dist/Components/Inputs/Field.d.ts +53 -0
  44. package/dist/Components/Inputs/Field.js +16 -0
  45. package/dist/Components/Inputs/GroupForm.d.ts +20 -0
  46. package/dist/Components/Inputs/GroupForm.js +170 -0
  47. package/dist/Components/Inputs/InputField.d.ts +59 -0
  48. package/dist/Components/Inputs/InputField.js +169 -0
  49. package/dist/Components/Inputs/InputRenderer.d.ts +35 -0
  50. package/dist/Components/Inputs/InputRenderer.js +99 -0
  51. package/dist/Components/Inputs/MarkdownEditor.d.ts +67 -0
  52. package/dist/Components/Inputs/MarkdownEditor.js +289 -0
  53. package/dist/Components/Inputs/NumberBox.d.ts +53 -0
  54. package/dist/Components/Inputs/NumberBox.js +228 -0
  55. package/dist/Components/Inputs/RadioGroup.d.ts +20 -0
  56. package/dist/Components/Inputs/RadioGroup.js +43 -0
  57. package/dist/Components/Inputs/ReadOnlyNotice.d.ts +36 -0
  58. package/dist/Components/Inputs/ReadOnlyNotice.js +116 -0
  59. package/dist/Components/Inputs/RichTextEditor.d.ts +103 -0
  60. package/dist/Components/Inputs/RichTextEditor.js +1170 -0
  61. package/dist/Components/Inputs/RichTextParts.d.ts +63 -0
  62. package/dist/Components/Inputs/RichTextParts.js +157 -0
  63. package/dist/Components/Inputs/RowsInput.d.ts +104 -0
  64. package/dist/Components/Inputs/RowsInput.js +259 -0
  65. package/dist/Components/Inputs/Slider.d.ts +87 -0
  66. package/dist/Components/Inputs/Slider.js +216 -0
  67. package/dist/Components/Inputs/TabularForm.d.ts +23 -0
  68. package/dist/Components/Inputs/TabularForm.js +283 -0
  69. package/dist/Components/Inputs/TextArea.d.ts +43 -0
  70. package/dist/Components/Inputs/TextArea.js +31 -0
  71. package/dist/Components/Inputs/TextBox.d.ts +52 -0
  72. package/dist/Components/Inputs/TextBox.js +58 -0
  73. package/dist/Components/Inputs/TextField.d.ts +31 -0
  74. package/dist/Components/Inputs/TextField.js +35 -0
  75. package/dist/Components/Inputs/TimePanel.d.ts +34 -0
  76. package/dist/Components/Inputs/TimePanel.js +288 -0
  77. package/dist/Components/Inputs/TimePicker.d.ts +54 -0
  78. package/dist/Components/Inputs/TimePicker.js +239 -0
  79. package/dist/Components/Inputs/TreeView.d.ts +160 -0
  80. package/dist/Components/Inputs/TreeView.js +947 -0
  81. package/dist/Components/Layouts/MessageBox.d.ts +71 -0
  82. package/dist/Components/Layouts/MessageBox.js +104 -0
  83. package/dist/Components/Layouts/Popup.d.ts +92 -0
  84. package/dist/Components/Layouts/Popup.js +376 -0
  85. package/dist/Components/Layouts/PopupContext.d.ts +2 -0
  86. package/dist/Components/Layouts/PopupContext.js +4 -0
  87. package/dist/Components/Layouts/PopupDock.d.ts +22 -0
  88. package/dist/Components/Layouts/PopupDock.js +121 -0
  89. package/dist/Components/Layouts/PopupHost.d.ts +56 -0
  90. package/dist/Components/Layouts/PopupHost.js +163 -0
  91. package/dist/Components/Layouts/PopupRules.d.ts +30 -0
  92. package/dist/Components/Layouts/PopupRules.js +63 -0
  93. package/dist/Components/Layouts/ThemePicker.d.ts +13 -0
  94. package/dist/Components/Layouts/ThemePicker.js +22 -0
  95. package/dist/Components/Layouts/ThemeScript.d.ts +14 -0
  96. package/dist/Components/Layouts/ThemeScript.js +13 -0
  97. package/dist/Components/Layouts/ThemeSwitcher.d.ts +13 -0
  98. package/dist/Components/Layouts/ThemeSwitcher.js +29 -0
  99. package/dist/Components/Layouts/Toaster.d.ts +76 -0
  100. package/dist/Components/Layouts/Toaster.js +172 -0
  101. package/dist/Components/Viewers/DataTable.d.ts +25 -0
  102. package/dist/Components/Viewers/DataTable.js +542 -0
  103. package/dist/Components/Viewers/DataTableParts.d.ts +134 -0
  104. package/dist/Components/Viewers/DataTableParts.js +145 -0
  105. package/dist/Components/Viewers/MarkdownView.d.ts +26 -0
  106. package/dist/Components/Viewers/MarkdownView.js +79 -0
  107. package/dist/Components/Viewers/RichTextView.d.ts +18 -0
  108. package/dist/Components/Viewers/RichTextView.js +17 -0
  109. package/dist/Helpers/AnimationHelpers.d.ts +6 -0
  110. package/dist/Helpers/AnimationHelpers.js +35 -0
  111. package/dist/Helpers/ApiClient.d.ts +74 -0
  112. package/dist/Helpers/ApiClient.js +197 -0
  113. package/dist/Helpers/ApiFormHelpers.d.ts +26 -0
  114. package/dist/Helpers/ApiFormHelpers.js +56 -0
  115. package/dist/Helpers/ApiModules.d.ts +135 -0
  116. package/dist/Helpers/ApiModules.js +194 -0
  117. package/dist/Helpers/ApiResponses.d.ts +41 -0
  118. package/dist/Helpers/ApiResponses.js +159 -0
  119. package/dist/Helpers/ApiRoutes.d.ts +150 -0
  120. package/dist/Helpers/ApiRoutes.js +191 -0
  121. package/dist/Helpers/ApiToasts.d.ts +21 -0
  122. package/dist/Helpers/ApiToasts.js +22 -0
  123. package/dist/Helpers/ClassHelpers.d.ts +3 -0
  124. package/dist/Helpers/ClassHelpers.js +4 -0
  125. package/dist/Helpers/CrudBackend.d.ts +56 -0
  126. package/dist/Helpers/CrudBackend.js +119 -0
  127. package/dist/Helpers/CrudHelpers.d.ts +76 -0
  128. package/dist/Helpers/CrudHelpers.js +202 -0
  129. package/dist/Helpers/DateHelpers.d.ts +88 -0
  130. package/dist/Helpers/DateHelpers.js +363 -0
  131. package/dist/Helpers/DatePreferences.d.ts +14 -0
  132. package/dist/Helpers/DatePreferences.js +94 -0
  133. package/dist/Helpers/DateTimeHelpers.d.ts +87 -0
  134. package/dist/Helpers/DateTimeHelpers.js +286 -0
  135. package/dist/Helpers/DragHelpers.d.ts +129 -0
  136. package/dist/Helpers/DragHelpers.js +281 -0
  137. package/dist/Helpers/DropdownHelpers.d.ts +56 -0
  138. package/dist/Helpers/DropdownHelpers.js +180 -0
  139. package/dist/Helpers/FormDrafts.d.ts +18 -0
  140. package/dist/Helpers/FormDrafts.js +76 -0
  141. package/dist/Helpers/FormStore.d.ts +231 -0
  142. package/dist/Helpers/FormStore.js +734 -0
  143. package/dist/Helpers/InputParamsHelpers.d.ts +79 -0
  144. package/dist/Helpers/InputParamsHelpers.js +388 -0
  145. package/dist/Helpers/MarkdownEditing.d.ts +27 -0
  146. package/dist/Helpers/MarkdownEditing.js +250 -0
  147. package/dist/Helpers/MarkdownHelpers.d.ts +82 -0
  148. package/dist/Helpers/MarkdownHelpers.js +775 -0
  149. package/dist/Helpers/MessageBuilder.d.ts +74 -0
  150. package/dist/Helpers/MessageBuilder.js +254 -0
  151. package/dist/Helpers/NepaliCalendar.d.ts +25 -0
  152. package/dist/Helpers/NepaliCalendar.js +107 -0
  153. package/dist/Helpers/NumberHelpers.d.ts +71 -0
  154. package/dist/Helpers/NumberHelpers.js +202 -0
  155. package/dist/Helpers/Permissions.d.ts +62 -0
  156. package/dist/Helpers/Permissions.js +133 -0
  157. package/dist/Helpers/PopoverHelpers.d.ts +43 -0
  158. package/dist/Helpers/PopoverHelpers.js +91 -0
  159. package/dist/Helpers/RichTextHelpers.d.ts +77 -0
  160. package/dist/Helpers/RichTextHelpers.js +1072 -0
  161. package/dist/Helpers/RowsStore.d.ts +160 -0
  162. package/dist/Helpers/RowsStore.js +584 -0
  163. package/dist/Helpers/TableColumns.d.ts +40 -0
  164. package/dist/Helpers/TableColumns.js +254 -0
  165. package/dist/Helpers/TableExport.d.ts +30 -0
  166. package/dist/Helpers/TableExport.js +97 -0
  167. package/dist/Helpers/TableHelpers.d.ts +102 -0
  168. package/dist/Helpers/TableHelpers.js +281 -0
  169. package/dist/Helpers/TableStore.d.ts +142 -0
  170. package/dist/Helpers/TableStore.js +530 -0
  171. package/dist/Helpers/ThemeHelpers.d.ts +15 -0
  172. package/dist/Helpers/ThemeHelpers.js +16 -0
  173. package/dist/Helpers/TimeHelpers.d.ts +73 -0
  174. package/dist/Helpers/TimeHelpers.js +253 -0
  175. package/dist/Helpers/TreeStore.d.ts +188 -0
  176. package/dist/Helpers/TreeStore.js +577 -0
  177. package/dist/Helpers/ValidationHelpers.d.ts +124 -0
  178. package/dist/Helpers/ValidationHelpers.js +301 -0
  179. package/dist/Interfaces/ApiInterfaces.d.ts +149 -0
  180. package/dist/Interfaces/ApiInterfaces.js +24 -0
  181. package/dist/Interfaces/CrudInterfaces.d.ts +171 -0
  182. package/{src/sso-client.tsx → dist/Interfaces/CrudInterfaces.js} +1 -1
  183. package/dist/Interfaces/DateInterfaces.d.ts +154 -0
  184. package/dist/Interfaces/DateInterfaces.js +29 -0
  185. package/dist/Interfaces/FormInterfaces.d.ts +352 -0
  186. package/dist/Interfaces/FormInterfaces.js +1 -0
  187. package/dist/Interfaces/InputInterfaces.d.ts +141 -0
  188. package/dist/Interfaces/InputInterfaces.js +1 -0
  189. package/dist/Interfaces/MessageInterfaces.d.ts +111 -0
  190. package/dist/Interfaces/MessageInterfaces.js +5 -0
  191. package/dist/Interfaces/TableInterfaces.d.ts +291 -0
  192. package/dist/Interfaces/TableInterfaces.js +1 -0
  193. package/dist/Interfaces/ThemeInterfaces.d.ts +17 -0
  194. package/dist/Interfaces/ThemeInterfaces.js +17 -0
  195. package/dist/Interfaces/TypeInterfaces.d.ts +4 -0
  196. package/dist/Interfaces/TypeInterfaces.js +1 -0
  197. package/dist/Server.Index.d.ts +2 -0
  198. package/dist/Server.Index.js +5 -0
  199. package/dist/Services/ApiProxy.d.ts +32 -0
  200. package/dist/Services/ApiProxy.js +111 -0
  201. package/dist/Services/BrowserApi.d.ts +78 -0
  202. package/dist/Services/BrowserApi.js +111 -0
  203. package/dist/Services/ServerApi.d.ts +49 -0
  204. package/dist/Services/ServerApi.js +75 -0
  205. package/dist/Services/ThemeService.d.ts +17 -0
  206. package/dist/Services/ThemeService.js +83 -0
  207. package/dist/Shared.Index.d.ts +43 -0
  208. package/dist/Shared.Index.js +47 -0
  209. package/package.json +82 -33
  210. package/src/Styles/Nexus.Base.css +70 -0
  211. package/src/Styles/Nexus.Button.css +151 -0
  212. package/src/Styles/Nexus.Calendar.css +275 -0
  213. package/src/Styles/Nexus.Choice.css +345 -0
  214. package/src/Styles/Nexus.Crud.css +84 -0
  215. package/src/Styles/Nexus.DateTime.css +81 -0
  216. package/src/Styles/Nexus.Dropdown.css +774 -0
  217. package/src/Styles/Nexus.Editor.css +297 -0
  218. package/src/Styles/Nexus.Form.css +298 -0
  219. package/src/Styles/Nexus.Index.css +34 -0
  220. package/src/Styles/Nexus.Input.css +637 -0
  221. package/src/Styles/Nexus.Markdown.css +265 -0
  222. package/src/Styles/Nexus.Menu.css +249 -0
  223. package/src/Styles/Nexus.Popup.css +731 -0
  224. package/src/Styles/Nexus.RichText.css +463 -0
  225. package/src/Styles/Nexus.Rows.css +566 -0
  226. package/src/Styles/Nexus.Slider.css +278 -0
  227. package/src/Styles/Nexus.Tab.Buttons.css +364 -0
  228. package/src/Styles/Nexus.Table.css +1014 -0
  229. package/src/Styles/Nexus.Theme.Picker.css +159 -0
  230. package/src/Styles/Nexus.Themes.css +194 -0
  231. package/src/Styles/Nexus.Time.css +147 -0
  232. package/src/Styles/Nexus.Toast.css +265 -0
  233. package/src/Styles/Nexus.Tokens.css +72 -0
  234. package/src/Styles/Nexus.Tree.css +435 -0
  235. package/src/api-services/authentication-service.tsx +0 -23
  236. package/src/api-services/preference-service.tsx +0 -5
  237. package/src/api-services/system-service.tsx +0 -34
  238. package/src/client.ts +0 -31
  239. package/src/components/documents/button.tsx +0 -142
  240. package/src/components/documents/icon-box.tsx +0 -93
  241. package/src/components/documents/page-title.tsx +0 -7
  242. package/src/components/documents/tab-button.tsx +0 -172
  243. package/src/components/documents/tag.tsx +0 -30
  244. package/src/components/index.js +0 -0
  245. package/src/components/inputs/checkbox-input.tsx +0 -66
  246. package/src/components/inputs/input-box.tsx +0 -48
  247. package/src/components/inputs/input-element.tsx +0 -65
  248. package/src/components/inputs/input-form.tsx +0 -164
  249. package/src/components/inputs/input.tsx +0 -181
  250. package/src/components/inputs/number-input.tsx +0 -108
  251. package/src/components/inputs/radiobox-input.tsx +0 -53
  252. package/src/components/inputs/textarea-input.tsx +0 -47
  253. package/src/components/inputs/textbox-input.tsx +0 -45
  254. package/src/components/layouts/global-dialogbox.tsx +0 -431
  255. package/src/components/layouts/global-layout.tsx +0 -59
  256. package/src/components/layouts/layout-helpers.tsx +0 -20
  257. package/src/components/layouts/panels/user-panel.tsx +0 -112
  258. package/src/components/layouts/utility-menu.tsx +0 -49
  259. package/src/components/panels/theme-panel.tsx +0 -46
  260. package/src/helpers/bitwise-helpers.tsx +0 -11
  261. package/src/helpers/browser-helpers.tsx +0 -156
  262. package/src/helpers/datasource-helpers.tsx +0 -99
  263. package/src/helpers/element-helpers.tsx +0 -57
  264. package/src/helpers/input-helpers.tsx +0 -74
  265. package/src/helpers/string-helpers.tsx +0 -28
  266. package/src/helpers/utility-helpers.tsx +0 -45
  267. package/src/helpers/validation-helpers.tsx +0 -302
  268. package/src/index.ts +0 -26
  269. package/src/interface.ts +0 -19
  270. package/src/interfaces/auth-token-interfaces.tsx +0 -6
  271. package/src/interfaces/browser-interfaces.tsx +0 -36
  272. package/src/interfaces/button-interfaces.tsx +0 -63
  273. package/src/interfaces/datasource-interfaces.tsx +0 -22
  274. package/src/interfaces/datatable-interfaces.tsx +0 -25
  275. package/src/interfaces/dialogbox-interfaces.tsx +0 -5
  276. package/src/interfaces/exception-interfaces.tsx +0 -99
  277. package/src/interfaces/http-interfaces.tsx +0 -129
  278. package/src/interfaces/icon-interfaces.tsx +0 -129
  279. package/src/interfaces/input-interfaces.tsx +0 -410
  280. package/src/interfaces/layout-interfaces.tsx +0 -191
  281. package/src/interfaces/menu-interfaces.tsx +0 -49
  282. package/src/interfaces/message-interfaces.tsx +0 -32
  283. package/src/interfaces/permission-interfaces.tsx +0 -9
  284. package/src/interfaces/storage-interfaces.tsx +0 -5
  285. package/src/interfaces/system-interfaces.tsx +0 -22
  286. package/src/interfaces/theme-interfaces.tsx +0 -123
  287. package/src/interfaces/type-interfaces.tsx +0 -28
  288. package/src/interfaces/user-interfaces.tsx +0 -47
  289. package/src/nexus-client.tsx +0 -21
  290. package/src/nexus.environments.tsx +0 -66
  291. package/src/proxy-api/proxy-backend.tsx +0 -60
  292. package/src/proxy-api/proxy-constants.tsx +0 -28
  293. package/src/proxy-api/proxy-helpers.tsx +0 -91
  294. package/src/proxy-api-client.tsx +0 -1
  295. package/src/proxy-api-server.tsx +0 -2
  296. package/src/services/http-client-services.tsx +0 -75
  297. package/src/services/http-services.tsx +0 -158
  298. package/src/services/loader-service.tsx +0 -185
  299. package/src/services/localstorage-service.tsx +0 -119
  300. package/src/services/message-services.tsx +0 -383
  301. package/src/services/theme-service.tsx +0 -161
  302. package/src/services/user-services.tsx +0 -10
  303. package/src/sso-config/auth-token-validation.ts +0 -16
  304. package/src/sso-config/callback-route.tsx +0 -35
  305. package/src/sso-config/cookie-encryption.ts +0 -51
  306. package/src/sso-config/cookie-helpers.tsx +0 -102
  307. package/src/sso-config/forgot-password-route.tsx +0 -36
  308. package/src/sso-config/oauth-callback-state.ts +0 -61
  309. package/src/sso-config/pkce-helpers.ts +0 -9
  310. package/src/sso-config/provider-complete-route.tsx +0 -18
  311. package/src/sso-config/redirect-context-actions.tsx +0 -45
  312. package/src/sso-config/redirect-context-helpers.tsx +0 -159
  313. package/src/sso-config/redirect-context-persist.tsx +0 -18
  314. package/src/sso-config/redirect-context-route.tsx +0 -45
  315. package/src/sso-config/refresh-route.tsx +0 -23
  316. package/src/sso-config/sign-in-route.tsx +0 -74
  317. package/src/sso-config/sign-out-route.tsx +0 -57
  318. package/src/sso-config/sign-up-route.tsx +0 -57
  319. package/src/sso-config/sso-backend-flow.ts +0 -38
  320. package/src/sso-config/sso-complete-route.tsx +0 -50
  321. package/src/sso-config/sso-config.ts +0 -59
  322. package/src/sso-config/sso-interfaces.tsx +0 -99
  323. package/src/sso-config/sso-response-helpers.tsx +0 -20
  324. package/src/sso-server.tsx +0 -21
  325. package/src/styles/nexus.animation.css +0 -269
  326. package/src/styles/nexus.core.css +0 -119
  327. package/src/styles/nexus.dialog.css +0 -144
  328. package/src/styles/nexus.icon.css +0 -51
  329. package/src/styles/nexus.input.css +0 -207
  330. package/src/styles/nexus.loader.css +0 -11
  331. package/src/styles/nexus.logic.css +0 -47
  332. package/src/styles/nexus.utility.css +0 -347
@@ -0,0 +1,774 @@
1
+ @layer nexus.components {
2
+ /*
3
+ * Dropdown: the field shell holds the chosen value (or chips for several) over a search input, and the list opens in
4
+ * a popover placed by the component. Rows are flex rows, or, with columns, subgrid rows of one grid, so every column
5
+ * lines up down the list like a table. Current values that cannot be picked again carry a tag and a dashed chip.
6
+ */
7
+ .nx-field--dropdown {
8
+ --nx-dropdown-chip: 22px;
9
+ --nx-dropdown-value-media: 20px;
10
+ }
11
+
12
+ .nx-field--dropdown.nx-field--sm {
13
+ --nx-dropdown-chip: 18px;
14
+ --nx-dropdown-value-media: 16px;
15
+ }
16
+
17
+ .nx-field--dropdown.nx-field--lg {
18
+ --nx-dropdown-chip: 26px;
19
+ --nx-dropdown-value-media: 22px;
20
+ }
21
+
22
+ /* The box */
23
+ .nx-dropdown__control {
24
+ position: relative;
25
+ flex: 1 1 auto;
26
+ align-self: stretch;
27
+ min-width: 0;
28
+ cursor: pointer;
29
+ }
30
+
31
+ .nx-field[data-disabled] .nx-dropdown__control {
32
+ cursor: not-allowed;
33
+ }
34
+
35
+ .nx-field[data-readonly] .nx-dropdown__control {
36
+ cursor: default;
37
+ }
38
+
39
+ .nx-dropdown__control:not([data-searchable]) .nx-dropdown__input {
40
+ caret-color: transparent;
41
+ cursor: inherit;
42
+ }
43
+
44
+ /* One value: the value and the input share one cell; typing hides the value and shows the search. */
45
+ .nx-dropdown__control--single {
46
+ display: grid;
47
+ }
48
+
49
+ .nx-dropdown__control--single > :is(.nx-dropdown__value, .nx-dropdown__input) {
50
+ grid-area: 1 / 1;
51
+ }
52
+
53
+ .nx-dropdown__value {
54
+ display: flex;
55
+ align-items: center;
56
+ gap: var(--nx-space-2);
57
+ min-width: 0;
58
+ padding: 0 var(--nx-field-pad-x);
59
+ color: var(--nx-text);
60
+ font-size: var(--nx-field-font);
61
+ line-height: 1.4;
62
+ pointer-events: none;
63
+ }
64
+
65
+ .nx-dropdown__value-text {
66
+ min-width: 0;
67
+ overflow: hidden;
68
+ text-overflow: ellipsis;
69
+ white-space: nowrap;
70
+ }
71
+
72
+ .nx-dropdown__control--single:has(.nx-dropdown__input:not(:placeholder-shown)) .nx-dropdown__value {
73
+ visibility: hidden;
74
+ }
75
+
76
+ .nx-field--inbox .nx-dropdown__value {
77
+ padding-top: var(--nx-field-inbox-pad);
78
+ }
79
+
80
+ .nx-field__icon:not(.nx-field__icon--end) + .nx-dropdown__control :is(.nx-dropdown__value, .nx-dropdown__input) {
81
+ padding-left: var(--nx-space-2);
82
+ }
83
+
84
+ .nx-dropdown__control:has(~ .nx-field__actions) :is(.nx-dropdown__value, .nx-dropdown__input) {
85
+ padding-right: var(--nx-space-1);
86
+ }
87
+
88
+ .nx-dropdown__value .nx-dropdown-avatar {
89
+ --nx-dropdown-media: var(--nx-dropdown-value-media);
90
+ }
91
+
92
+ .nx-dropdown__value .nx-dropdown-image {
93
+ height: calc(var(--nx-dropdown-value-media) * 0.72);
94
+ }
95
+
96
+ /* Several values: chips wrap, and the search input takes the rest of the last line. */
97
+ .nx-dropdown__control--multiple {
98
+ display: flex;
99
+ flex-wrap: wrap;
100
+ align-content: center;
101
+ align-items: center;
102
+ gap: 4px;
103
+ padding: 4px var(--nx-field-pad-x);
104
+ }
105
+
106
+ .nx-field--inbox .nx-dropdown__control--multiple {
107
+ padding-top: calc(var(--nx-field-inbox-pad) + 1px);
108
+ }
109
+
110
+ .nx-field__icon:not(.nx-field__icon--end) + .nx-dropdown__control--multiple {
111
+ padding-left: var(--nx-space-2);
112
+ }
113
+
114
+ .nx-dropdown__control--multiple:has(~ .nx-field__actions) {
115
+ padding-right: var(--nx-space-1);
116
+ }
117
+
118
+ .nx-field .nx-dropdown__control--multiple .nx-dropdown__input {
119
+ flex: 1 1 2.5rem;
120
+ align-self: center;
121
+ width: 2.5rem;
122
+ min-width: 2.5rem;
123
+ height: var(--nx-dropdown-chip);
124
+ padding: 0;
125
+ }
126
+
127
+ /*
128
+ * With chips, the search input needs room only while someone can type: at rest (or without search) it shrinks to the
129
+ * end of the last line, so chips that fill a line leave no empty line under them.
130
+ */
131
+ .nx-field .nx-dropdown__control--multiple[data-has-value]:is(:not(:focus-within), :not([data-searchable])) .nx-dropdown__input {
132
+ flex-basis: 1px;
133
+ width: 1px;
134
+ min-width: 1px;
135
+ }
136
+
137
+ .nx-dropdown-chip {
138
+ --nx-dropdown-media: calc(var(--nx-dropdown-chip) - 4px);
139
+
140
+ display: inline-flex;
141
+ align-items: center;
142
+ gap: 5px;
143
+ min-width: 0;
144
+ max-width: 100%;
145
+ height: var(--nx-dropdown-chip);
146
+ padding: 0 7px;
147
+ border: 1px solid transparent;
148
+ border-radius: var(--nx-radius-sm);
149
+ background: color-mix(in oklab, var(--nx-text) 8%, var(--nx-field-bg));
150
+ color: var(--nx-text);
151
+ font-size: var(--nx-text-sm);
152
+ line-height: 1;
153
+ white-space: nowrap;
154
+ cursor: default;
155
+ }
156
+
157
+ .nx-field--sm .nx-dropdown-chip {
158
+ gap: 4px;
159
+ padding: 0 5px;
160
+ font-size: var(--nx-text-xs);
161
+ }
162
+
163
+ .nx-dropdown-chip:has(.nx-dropdown-chip__remove) {
164
+ padding-right: 1px;
165
+ }
166
+
167
+ .nx-dropdown-chip:has(> .nx-dropdown-avatar) {
168
+ padding-left: 2px;
169
+ }
170
+
171
+ .nx-dropdown-chip__label {
172
+ min-width: 0;
173
+ overflow: hidden;
174
+ text-overflow: ellipsis;
175
+ }
176
+
177
+ .nx-dropdown-chip .nx-dropdown-image {
178
+ height: calc(var(--nx-dropdown-chip) - 10px);
179
+ }
180
+
181
+ .nx-dropdown-chip .nx-dropdown-icon {
182
+ color: var(--nx-text-muted);
183
+ }
184
+
185
+ /* A current value that cannot be picked again: an outline instead of a fill. The tooltip says why. */
186
+ .nx-dropdown-chip[data-state] {
187
+ border-style: dashed;
188
+ border-color: var(--nx-text-subtle);
189
+ background: transparent;
190
+ color: var(--nx-text-muted);
191
+ }
192
+
193
+ /* "+12 more": the values past maxChips. Its tooltip names them. */
194
+ .nx-dropdown-chip--more {
195
+ font-variant-numeric: tabular-nums;
196
+ font-weight: 500;
197
+ }
198
+
199
+ .nx-dropdown-chip__remove {
200
+ display: grid;
201
+ place-items: center;
202
+ flex-shrink: 0;
203
+ width: calc(var(--nx-dropdown-chip) - 4px);
204
+ height: calc(var(--nx-dropdown-chip) - 4px);
205
+ padding: 0;
206
+ border: 0;
207
+ border-radius: 3px;
208
+ background: none;
209
+ color: var(--nx-text-muted);
210
+ cursor: pointer;
211
+ transition:
212
+ background-color var(--nx-duration),
213
+ color var(--nx-duration);
214
+ }
215
+
216
+ .nx-dropdown-chip__remove:hover {
217
+ background: color-mix(in oklab, var(--nx-text) 12%, transparent);
218
+ color: var(--nx-text);
219
+ }
220
+
221
+ .nx-dropdown-chip__remove .nx-icon {
222
+ width: 12px;
223
+ height: 12px;
224
+ vertical-align: 0;
225
+ }
226
+
227
+ .nx-dropdown__spinner {
228
+ display: grid;
229
+ place-items: center;
230
+ width: calc(var(--nx-field-base) - 10px);
231
+ height: calc(var(--nx-field-base) - 10px);
232
+ color: var(--nx-text-muted);
233
+ }
234
+
235
+ .nx-dropdown__spinner .nx-icon {
236
+ width: var(--nx-field-icon);
237
+ height: var(--nx-field-icon);
238
+ vertical-align: 0;
239
+ }
240
+
241
+ .nx-dropdown__toggle .nx-icon {
242
+ transition: transform 160ms ease;
243
+ }
244
+
245
+ .nx-dropdown__toggle[aria-expanded="true"] {
246
+ color: var(--nx-field-accent);
247
+ }
248
+
249
+ .nx-dropdown__toggle[aria-expanded="true"] .nx-icon {
250
+ transform: rotate(180deg);
251
+ }
252
+
253
+ /* The panel */
254
+ .nx-dropdown-panel {
255
+ --nx-dropdown-row: 34px;
256
+ --nx-dropdown-font: var(--nx-text-md);
257
+ --nx-dropdown-media: 24px;
258
+ --nx-dropdown-check: 16px;
259
+ --nx-dropdown-pad-x: var(--nx-space-2);
260
+ --nx-dropdown-bg: light-dark(var(--nx-surface), var(--nx-surface-2));
261
+ --nx-dropdown-scrollbar: color-mix(in oklab, var(--nx-text-subtle) 75%, transparent);
262
+
263
+ position: fixed;
264
+ inset: auto;
265
+ width: max-content;
266
+ max-width: min(640px, calc(100vw - 16px));
267
+ overflow: hidden;
268
+ }
269
+
270
+ /* Two classes: the shared panel (.nx-popover) loads after this file, and its padding would wrap the list in 16px. */
271
+ .nx-popover.nx-dropdown-panel {
272
+ padding: 0;
273
+ }
274
+
275
+ .nx-dropdown-panel--sm {
276
+ --nx-dropdown-row: 30px;
277
+ --nx-dropdown-font: var(--nx-text-sm);
278
+ --nx-dropdown-media: 20px;
279
+ --nx-dropdown-check: 14px;
280
+ }
281
+
282
+ .nx-dropdown-panel--lg {
283
+ --nx-dropdown-row: 40px;
284
+ --nx-dropdown-font: var(--nx-text-lg);
285
+ --nx-dropdown-media: 28px;
286
+ --nx-dropdown-check: 18px;
287
+ --nx-dropdown-pad-x: 10px;
288
+ }
289
+
290
+ /* Only while open: a display on the popover itself would show it closed. */
291
+ .nx-dropdown-panel:popover-open {
292
+ display: flex;
293
+ flex-direction: column;
294
+ animation: nx-dropdown-in 120ms ease-out;
295
+ }
296
+
297
+ @keyframes nx-dropdown-in {
298
+ from {
299
+ opacity: 0;
300
+ transform: translateY(-4px);
301
+ }
302
+ }
303
+
304
+ /*
305
+ * Rows sit 10px from the top and bottom and 8px from the sides. Where scroll bars take room (Windows), the gutter
306
+ * kept for one is already space on the right, so the right padding gives it back (the component measures it).
307
+ */
308
+ .nx-dropdown-list {
309
+ position: relative;
310
+ flex: 1 1 auto;
311
+ min-height: 0;
312
+ padding: 10px 8px;
313
+ padding-right: max(0px, 8px - var(--nx-dropdown-gutter, 0px));
314
+ overflow: hidden auto;
315
+ overscroll-behavior: contain;
316
+ outline: none;
317
+ color: var(--nx-text);
318
+ font-size: var(--nx-dropdown-font);
319
+ line-height: 1.35;
320
+ scrollbar-gutter: stable;
321
+ scrollbar-width: thin;
322
+ scrollbar-color: var(--nx-dropdown-scrollbar) transparent;
323
+ }
324
+
325
+ /*
326
+ * Columns: one grid for the whole list; rows and the header are subgrids, so columns line up across rows. Subgrid rows
327
+ * take no side padding (Chromium does not widen the edge tracks for it): the check cell carries the start inset, and
328
+ * an empty last track the end.
329
+ */
330
+ .nx-dropdown-list--columns {
331
+ display: grid;
332
+ align-content: start;
333
+ column-gap: 10px;
334
+ padding-top: 0;
335
+ }
336
+
337
+ .nx-dropdown-list--columns > * {
338
+ grid-column: 1 / -1;
339
+ }
340
+
341
+ .nx-dropdown-list--columns > :is(.nx-dropdown-option, .nx-dropdown-list__header) {
342
+ display: grid;
343
+ grid-template-columns: subgrid;
344
+ align-items: center;
345
+ }
346
+
347
+ .nx-dropdown-list--columns > .nx-dropdown-list__header + *,
348
+ .nx-dropdown-list--columns > :first-child:not(.nx-dropdown-list__header) {
349
+ margin-top: 4px;
350
+ }
351
+
352
+ .nx-dropdown-list__header {
353
+ position: sticky;
354
+ z-index: 1;
355
+ top: 0;
356
+ padding: 7px 0 6px;
357
+ border-bottom: 1px solid var(--nx-border);
358
+ background: var(--nx-dropdown-bg);
359
+ color: var(--nx-text-muted);
360
+ font-size: var(--nx-text-xs);
361
+ font-weight: 600;
362
+ line-height: 1.3;
363
+ white-space: nowrap;
364
+ }
365
+
366
+ .nx-dropdown-list__heading {
367
+ min-width: 0;
368
+ overflow: hidden;
369
+ text-overflow: ellipsis;
370
+ }
371
+
372
+ .nx-dropdown-list__group {
373
+ padding: 6px var(--nx-dropdown-pad-x) 3px;
374
+ color: var(--nx-text-muted);
375
+ font-size: var(--nx-text-xs);
376
+ font-weight: 600;
377
+ letter-spacing: 0.04em;
378
+ text-transform: uppercase;
379
+ }
380
+
381
+ .nx-dropdown-list__separator {
382
+ height: 1px;
383
+ margin: 4px 0;
384
+ background: var(--nx-border);
385
+ }
386
+
387
+ /* Rows */
388
+ .nx-dropdown-option {
389
+ display: flex;
390
+ align-items: center;
391
+ gap: var(--nx-space-2);
392
+ min-height: var(--nx-dropdown-row);
393
+ padding: 5px var(--nx-dropdown-pad-x);
394
+ border-radius: var(--nx-radius);
395
+ cursor: pointer;
396
+ user-select: none;
397
+ }
398
+
399
+ .nx-dropdown-list--columns > .nx-dropdown-option {
400
+ padding-inline: 0;
401
+ }
402
+
403
+ .nx-dropdown-list--columns > * > .nx-dropdown-option__check,
404
+ .nx-dropdown-list--columns > .nx-dropdown-list__header > :first-child {
405
+ box-sizing: content-box;
406
+ padding-left: var(--nx-dropdown-pad-x);
407
+ }
408
+
409
+ .nx-dropdown-option[data-active] {
410
+ background: var(--nx-surface-hover);
411
+ }
412
+
413
+ /* The chosen row of a single choice: a faint primary tint, a check, and a heavier label. */
414
+ .nx-dropdown-list:not([aria-multiselectable]) .nx-dropdown-option[aria-selected="true"] {
415
+ background: color-mix(in oklab, var(--nx-primary) 10%, transparent);
416
+ }
417
+
418
+ .nx-dropdown-list:not([aria-multiselectable]) .nx-dropdown-option[aria-selected="true"][data-active] {
419
+ background: color-mix(in oklab, var(--nx-primary) 17%, transparent);
420
+ }
421
+
422
+ .nx-dropdown-list:not([aria-multiselectable]) .nx-dropdown-option[aria-selected="true"] :is(.nx-dropdown-option__text, .nx-dropdown-cell__text) {
423
+ font-weight: 500;
424
+ }
425
+
426
+ .nx-dropdown-option[aria-disabled="true"] {
427
+ background: none;
428
+ cursor: default;
429
+ }
430
+
431
+ .nx-dropdown-option[aria-disabled="true"] > * {
432
+ opacity: 0.5;
433
+ }
434
+
435
+ /* Rows of an earlier search, while the next one loads. */
436
+ .nx-dropdown-list[data-stale] .nx-dropdown-option {
437
+ opacity: 0.55;
438
+ pointer-events: none;
439
+ }
440
+
441
+ .nx-dropdown-option__check {
442
+ display: grid;
443
+ flex-shrink: 0;
444
+ place-items: center;
445
+ width: var(--nx-dropdown-check);
446
+ color: var(--nx-primary);
447
+ }
448
+
449
+ .nx-dropdown-option__check .nx-icon {
450
+ width: var(--nx-dropdown-check);
451
+ height: var(--nx-dropdown-check);
452
+ vertical-align: 0;
453
+ }
454
+
455
+ /*
456
+ * The checkbox of a multiple list, drawn like the checkbox input. The list panel is lighter than a page panel in dark
457
+ * mode, so the edge takes the muted color there to keep 3:1, and the box takes the row color instead of a darker fill.
458
+ */
459
+ .nx-dropdown-checkbox {
460
+ display: grid;
461
+ place-content: center;
462
+ width: var(--nx-dropdown-check);
463
+ height: var(--nx-dropdown-check);
464
+ border: 1px solid light-dark(var(--nx-text-subtle), var(--nx-text-muted));
465
+ border-radius: 4px;
466
+ background: transparent;
467
+ color: var(--nx-primary-text);
468
+ transition:
469
+ background-color var(--nx-duration),
470
+ border-color var(--nx-duration);
471
+ }
472
+
473
+ .nx-dropdown-checkbox::before {
474
+ content: "";
475
+ width: calc(var(--nx-dropdown-check) - 2px);
476
+ height: calc(var(--nx-dropdown-check) - 2px);
477
+ background: currentColor;
478
+ mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5l9.5 -10'/%3E%3C/svg%3E") center / 100% no-repeat;
479
+ transform: scale(0);
480
+ transition: transform var(--nx-duration) ease-out;
481
+ }
482
+
483
+ .nx-dropdown-option:hover .nx-dropdown-checkbox {
484
+ border-color: light-dark(var(--nx-text-muted), var(--nx-text));
485
+ }
486
+
487
+ .nx-dropdown-option[aria-selected="true"] .nx-dropdown-checkbox {
488
+ border-color: var(--nx-primary-solid);
489
+ background: var(--nx-primary-solid);
490
+ }
491
+
492
+ .nx-dropdown-option[aria-selected="true"] .nx-dropdown-checkbox::before {
493
+ transform: scale(1);
494
+ }
495
+
496
+ .nx-dropdown-option__icon {
497
+ display: grid;
498
+ flex-shrink: 0;
499
+ place-items: center;
500
+ width: 1.15em;
501
+ color: var(--nx-text-muted);
502
+ }
503
+
504
+ .nx-dropdown-option__icon .nx-icon,
505
+ .nx-dropdown-icon .nx-icon {
506
+ width: 1.15em;
507
+ height: 1.15em;
508
+ vertical-align: 0;
509
+ }
510
+
511
+ .nx-dropdown-option__body {
512
+ display: grid;
513
+ flex: 1 1 auto;
514
+ min-width: 0;
515
+ }
516
+
517
+ .nx-dropdown-option__label {
518
+ display: flex;
519
+ align-items: center;
520
+ gap: 6px;
521
+ min-width: 0;
522
+ }
523
+
524
+ .nx-dropdown-option__text {
525
+ min-width: 0;
526
+ overflow: hidden;
527
+ text-overflow: ellipsis;
528
+ white-space: nowrap;
529
+ }
530
+
531
+ .nx-dropdown-option__description {
532
+ color: var(--nx-text-muted);
533
+ font-size: var(--nx-text-xs);
534
+ line-height: 1.4;
535
+ }
536
+
537
+ /* Cells */
538
+ .nx-dropdown-cell {
539
+ display: flex;
540
+ align-items: center;
541
+ gap: 6px;
542
+ min-width: 0;
543
+ white-space: nowrap;
544
+ }
545
+
546
+ .nx-dropdown-cell__text {
547
+ min-width: 0;
548
+ overflow: hidden;
549
+ text-overflow: ellipsis;
550
+ }
551
+
552
+ .nx-dropdown-cell--muted {
553
+ color: var(--nx-text-muted);
554
+ }
555
+
556
+ .nx-dropdown-cell--code {
557
+ color: var(--nx-text-muted);
558
+ font-size: 0.93em;
559
+ font-variant-numeric: tabular-nums;
560
+ font-weight: 500;
561
+ letter-spacing: 0.03em;
562
+ }
563
+
564
+ .nx-dropdown-cell--media {
565
+ display: grid;
566
+ place-items: center;
567
+ }
568
+
569
+ /* A bare value, with no fields for the columns. */
570
+ .nx-dropdown-cell--span {
571
+ grid-column: 2 / -1;
572
+ }
573
+
574
+ .nx-dropdown-icon {
575
+ display: inline-grid;
576
+ flex-shrink: 0;
577
+ place-items: center;
578
+ color: var(--nx-text-muted);
579
+ }
580
+
581
+ .nx-dropdown-avatar {
582
+ position: relative;
583
+ display: inline-grid;
584
+ flex-shrink: 0;
585
+ place-items: center;
586
+ width: var(--nx-dropdown-media);
587
+ height: var(--nx-dropdown-media);
588
+ overflow: hidden;
589
+ border-radius: 50%;
590
+ background: color-mix(in oklab, var(--nx-text) 10%, var(--nx-surface));
591
+ color: var(--nx-text);
592
+ font-size: max(8px, calc(var(--nx-dropdown-media) * 0.4));
593
+ font-weight: 600;
594
+ line-height: 1;
595
+ }
596
+
597
+ .nx-dropdown-avatar[data-tone="primary"] {
598
+ background: var(--nx-primary-soft);
599
+ }
600
+
601
+ .nx-dropdown-avatar[data-tone="info"] {
602
+ background: var(--nx-info-soft);
603
+ }
604
+
605
+ .nx-dropdown-avatar[data-tone="success"] {
606
+ background: var(--nx-success-soft);
607
+ }
608
+
609
+ .nx-dropdown-avatar[data-tone="warning"] {
610
+ background: var(--nx-warning-soft);
611
+ }
612
+
613
+ .nx-dropdown-avatar img {
614
+ position: absolute;
615
+ inset: 0;
616
+ width: 100%;
617
+ height: 100%;
618
+ object-fit: cover;
619
+ }
620
+
621
+ /* A flag or a logo: 4:3, with a faint edge so white flags do not melt into the panel. */
622
+ .nx-dropdown-image {
623
+ display: block;
624
+ flex-shrink: 0;
625
+ width: auto;
626
+ height: calc(var(--nx-dropdown-media) * 0.66);
627
+ aspect-ratio: 4 / 3;
628
+ border-radius: 2px;
629
+ box-shadow: 0 0 0 1px color-mix(in oklab, var(--nx-text) 14%, transparent);
630
+ object-fit: cover;
631
+ }
632
+
633
+ .nx-dropdown-image--empty {
634
+ background: color-mix(in oklab, var(--nx-text) 8%, transparent);
635
+ }
636
+
637
+ /* Why a current value cannot be picked again. The text color, not muted: muted text on a tint misses 4.5:1 in most themes. */
638
+ .nx-dropdown-tag {
639
+ flex-shrink: 0;
640
+ padding: 1px 6px;
641
+ border-radius: var(--nx-radius-full);
642
+ background: color-mix(in oklab, var(--nx-text) 9%, transparent);
643
+ color: var(--nx-text);
644
+ font-size: var(--nx-text-xs);
645
+ font-weight: 500;
646
+ line-height: 1.35;
647
+ white-space: nowrap;
648
+ }
649
+
650
+ .nx-dropdown-option[aria-disabled="true"] .nx-dropdown-tag {
651
+ opacity: 1;
652
+ }
653
+
654
+ /* Placeholders while options load */
655
+ .nx-dropdown-option--skeleton {
656
+ cursor: default;
657
+ }
658
+
659
+ .nx-dropdown-skeleton {
660
+ display: inline-block;
661
+ width: 6em;
662
+ max-width: 100%;
663
+ height: 0.7em;
664
+ border-radius: var(--nx-radius-full);
665
+ background: color-mix(in oklab, var(--nx-text) 11%, transparent);
666
+ vertical-align: middle;
667
+ animation: nx-dropdown-pulse 1.2s ease-in-out infinite;
668
+ }
669
+
670
+ .nx-dropdown-skeleton--avatar {
671
+ width: var(--nx-dropdown-media);
672
+ height: var(--nx-dropdown-media);
673
+ border-radius: 50%;
674
+ }
675
+
676
+ .nx-dropdown-skeleton--image {
677
+ width: calc(var(--nx-dropdown-media) * 0.88);
678
+ height: calc(var(--nx-dropdown-media) * 0.66);
679
+ border-radius: 2px;
680
+ }
681
+
682
+ .nx-dropdown-skeleton--icon {
683
+ width: 1.15em;
684
+ height: 1.15em;
685
+ border-radius: var(--nx-radius-sm);
686
+ }
687
+
688
+ @keyframes nx-dropdown-pulse {
689
+ 50% {
690
+ opacity: 0.45;
691
+ }
692
+ }
693
+
694
+ /* Loading more, a failed load, no matches */
695
+ .nx-dropdown-list__status {
696
+ display: flex;
697
+ align-items: center;
698
+ justify-content: center;
699
+ flex-wrap: wrap;
700
+ gap: var(--nx-space-2);
701
+ padding: 10px var(--nx-space-3);
702
+ color: var(--nx-text-muted);
703
+ font-size: var(--nx-text-sm);
704
+ text-align: center;
705
+ }
706
+
707
+ .nx-dropdown-list__status > .nx-icon {
708
+ flex-shrink: 0;
709
+ width: 16px;
710
+ height: 16px;
711
+ vertical-align: 0;
712
+ }
713
+
714
+ .nx-dropdown-list__status--error > .nx-icon {
715
+ color: var(--nx-danger);
716
+ }
717
+
718
+ /* The footer never gives up height: a panel short of room shrinks its list instead. */
719
+ .nx-dropdown-panel__foot {
720
+ display: flex;
721
+ flex: none;
722
+ flex-wrap: wrap;
723
+ align-items: center;
724
+ justify-content: space-between;
725
+ gap: 4px var(--nx-space-3);
726
+ min-height: 40px;
727
+ padding: 4px var(--nx-space-2) 4px var(--nx-space-3);
728
+ border-top: 1px solid var(--nx-border);
729
+ color: var(--nx-text-muted);
730
+ font-size: var(--nx-text-xs);
731
+ }
732
+
733
+ /*
734
+ * A multiple choice's one footer: Select all and Clear on the left, where their hover tint lines up with the rows'
735
+ * and their text with the checkboxes; the count and Done on the right. A narrow panel moves the right pair to a
736
+ * second line.
737
+ */
738
+ .nx-dropdown-panel__foot--actions {
739
+ padding-left: var(--nx-space-2);
740
+ }
741
+
742
+ .nx-dropdown-panel__actions,
743
+ .nx-dropdown-panel__end {
744
+ display: flex;
745
+ align-items: center;
746
+ }
747
+
748
+ .nx-dropdown-panel__actions {
749
+ gap: 2px;
750
+ }
751
+
752
+ .nx-dropdown-panel__end {
753
+ gap: var(--nx-space-3);
754
+ margin-left: auto;
755
+ }
756
+
757
+ .nx-dropdown-panel__count {
758
+ font-variant-numeric: tabular-nums;
759
+ white-space: nowrap;
760
+ }
761
+
762
+ @media (prefers-reduced-motion: reduce) {
763
+ .nx-dropdown-panel:popover-open,
764
+ .nx-dropdown-skeleton {
765
+ animation: none;
766
+ }
767
+
768
+ .nx-dropdown__toggle .nx-icon,
769
+ .nx-dropdown-checkbox,
770
+ .nx-dropdown-checkbox::before {
771
+ transition: none;
772
+ }
773
+ }
774
+ }