nexus-shared 1.1.21 → 3.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 (376) hide show
  1. package/CHANGELOG.md +262 -0
  2. package/LICENSE +21 -0
  3. package/README.md +1000 -0
  4. package/dist/Client.Index.d.ts +55 -0
  5. package/dist/Client.Index.js +60 -0
  6. package/dist/Components/Chats/Chat.d.ts +28 -0
  7. package/dist/Components/Chats/Chat.js +19 -0
  8. package/dist/Components/Chats/ChatButton.d.ts +26 -0
  9. package/dist/Components/Chats/ChatButton.js +41 -0
  10. package/dist/Components/Chats/ChatComposer.d.ts +41 -0
  11. package/dist/Components/Chats/ChatComposer.js +177 -0
  12. package/dist/Components/Chats/ChatConversations.d.ts +35 -0
  13. package/dist/Components/Chats/ChatConversations.js +38 -0
  14. package/dist/Components/Chats/ChatPanel.d.ts +66 -0
  15. package/dist/Components/Chats/ChatPanel.js +94 -0
  16. package/dist/Components/Chats/ChatParts.d.ts +87 -0
  17. package/dist/Components/Chats/ChatParts.js +100 -0
  18. package/dist/Components/Chats/ChatThread.d.ts +22 -0
  19. package/dist/Components/Chats/ChatThread.js +96 -0
  20. package/dist/Components/Documents/Button.d.ts +29 -0
  21. package/dist/Components/Documents/Button.js +11 -0
  22. package/dist/Components/Documents/Menu.d.ts +102 -0
  23. package/dist/Components/Documents/Menu.js +242 -0
  24. package/dist/Components/Documents/SplitButton.d.ts +64 -0
  25. package/dist/Components/Documents/SplitButton.js +129 -0
  26. package/dist/Components/Documents/TabButtons.d.ts +80 -0
  27. package/dist/Components/Documents/TabButtons.js +38 -0
  28. package/dist/Components/Forms/ApiForm.d.ts +23 -0
  29. package/dist/Components/Forms/ApiForm.js +100 -0
  30. package/dist/Components/Forms/Crud.d.ts +17 -0
  31. package/dist/Components/Forms/Crud.js +708 -0
  32. package/dist/Components/Forms/CrudParts.d.ts +15 -0
  33. package/dist/Components/Forms/CrudParts.js +36 -0
  34. package/dist/Components/Forms/ExcelImport.d.ts +42 -0
  35. package/dist/Components/Forms/ExcelImport.js +190 -0
  36. package/dist/Components/Forms/Form.d.ts +52 -0
  37. package/dist/Components/Forms/Form.js +323 -0
  38. package/dist/Components/Forms/SubmitForm.d.ts +65 -0
  39. package/dist/Components/Forms/SubmitForm.js +198 -0
  40. package/dist/Components/Inputs/Calendar.d.ts +69 -0
  41. package/dist/Components/Inputs/Calendar.js +258 -0
  42. package/dist/Components/Inputs/CheckBox.d.ts +53 -0
  43. package/dist/Components/Inputs/CheckBox.js +87 -0
  44. package/dist/Components/Inputs/CheckBoxGroup.d.ts +20 -0
  45. package/dist/Components/Inputs/CheckBoxGroup.js +80 -0
  46. package/dist/Components/Inputs/ChoiceField.d.ts +122 -0
  47. package/dist/Components/Inputs/ChoiceField.js +169 -0
  48. package/dist/Components/Inputs/DatePicker.d.ts +54 -0
  49. package/dist/Components/Inputs/DatePicker.js +246 -0
  50. package/dist/Components/Inputs/DateRangePicker.d.ts +62 -0
  51. package/dist/Components/Inputs/DateRangePicker.js +283 -0
  52. package/dist/Components/Inputs/DateTimePicker.d.ts +75 -0
  53. package/dist/Components/Inputs/DateTimePicker.js +400 -0
  54. package/dist/Components/Inputs/Dropdown.d.ts +117 -0
  55. package/dist/Components/Inputs/Dropdown.js +839 -0
  56. package/dist/Components/Inputs/DropdownParts.d.ts +84 -0
  57. package/dist/Components/Inputs/DropdownParts.js +102 -0
  58. package/dist/Components/Inputs/EditorShell.d.ts +45 -0
  59. package/dist/Components/Inputs/EditorShell.js +214 -0
  60. package/dist/Components/Inputs/Field.d.ts +53 -0
  61. package/dist/Components/Inputs/Field.js +16 -0
  62. package/dist/Components/Inputs/GroupForm.d.ts +20 -0
  63. package/dist/Components/Inputs/GroupForm.js +172 -0
  64. package/dist/Components/Inputs/InputField.d.ts +59 -0
  65. package/dist/Components/Inputs/InputField.js +169 -0
  66. package/dist/Components/Inputs/InputRenderer.d.ts +37 -0
  67. package/dist/Components/Inputs/InputRenderer.js +99 -0
  68. package/dist/Components/Inputs/MarkdownEditor.d.ts +67 -0
  69. package/dist/Components/Inputs/MarkdownEditor.js +289 -0
  70. package/dist/Components/Inputs/NumberBox.d.ts +53 -0
  71. package/dist/Components/Inputs/NumberBox.js +228 -0
  72. package/dist/Components/Inputs/RadioGroup.d.ts +20 -0
  73. package/dist/Components/Inputs/RadioGroup.js +43 -0
  74. package/dist/Components/Inputs/ReadOnlyNotice.d.ts +36 -0
  75. package/dist/Components/Inputs/ReadOnlyNotice.js +117 -0
  76. package/dist/Components/Inputs/RichTextEditor.d.ts +103 -0
  77. package/dist/Components/Inputs/RichTextEditor.js +1170 -0
  78. package/dist/Components/Inputs/RichTextParts.d.ts +63 -0
  79. package/dist/Components/Inputs/RichTextParts.js +157 -0
  80. package/dist/Components/Inputs/RowsInput.d.ts +115 -0
  81. package/dist/Components/Inputs/RowsInput.js +308 -0
  82. package/dist/Components/Inputs/Slider.d.ts +87 -0
  83. package/dist/Components/Inputs/Slider.js +216 -0
  84. package/dist/Components/Inputs/TabularForm.d.ts +27 -0
  85. package/dist/Components/Inputs/TabularForm.js +348 -0
  86. package/dist/Components/Inputs/TextArea.d.ts +43 -0
  87. package/dist/Components/Inputs/TextArea.js +31 -0
  88. package/dist/Components/Inputs/TextBox.d.ts +52 -0
  89. package/dist/Components/Inputs/TextBox.js +58 -0
  90. package/dist/Components/Inputs/TextField.d.ts +31 -0
  91. package/dist/Components/Inputs/TextField.js +35 -0
  92. package/dist/Components/Inputs/TimePanel.d.ts +34 -0
  93. package/dist/Components/Inputs/TimePanel.js +288 -0
  94. package/dist/Components/Inputs/TimePicker.d.ts +54 -0
  95. package/dist/Components/Inputs/TimePicker.js +240 -0
  96. package/dist/Components/Inputs/TreeView.d.ts +160 -0
  97. package/dist/Components/Inputs/TreeView.js +947 -0
  98. package/dist/Components/Layouts/MessageBox.d.ts +71 -0
  99. package/dist/Components/Layouts/MessageBox.js +104 -0
  100. package/dist/Components/Layouts/Popup.d.ts +92 -0
  101. package/dist/Components/Layouts/Popup.js +376 -0
  102. package/dist/Components/Layouts/PopupContext.d.ts +2 -0
  103. package/dist/Components/Layouts/PopupContext.js +4 -0
  104. package/dist/Components/Layouts/PopupDock.d.ts +22 -0
  105. package/dist/Components/Layouts/PopupDock.js +121 -0
  106. package/dist/Components/Layouts/PopupHost.d.ts +56 -0
  107. package/dist/Components/Layouts/PopupHost.js +163 -0
  108. package/dist/Components/Layouts/PopupRules.d.ts +30 -0
  109. package/dist/Components/Layouts/PopupRules.js +63 -0
  110. package/dist/Components/Layouts/ThemePicker.d.ts +13 -0
  111. package/dist/Components/Layouts/ThemePicker.js +22 -0
  112. package/dist/Components/Layouts/ThemeScript.d.ts +14 -0
  113. package/dist/Components/Layouts/ThemeScript.js +13 -0
  114. package/dist/Components/Layouts/ThemeSwitcher.d.ts +13 -0
  115. package/dist/Components/Layouts/ThemeSwitcher.js +49 -0
  116. package/dist/Components/Layouts/Toaster.d.ts +76 -0
  117. package/dist/Components/Layouts/Toaster.js +172 -0
  118. package/dist/Components/Viewers/DataTable.d.ts +25 -0
  119. package/dist/Components/Viewers/DataTable.js +596 -0
  120. package/dist/Components/Viewers/DataTableColumns.d.ts +28 -0
  121. package/dist/Components/Viewers/DataTableColumns.js +243 -0
  122. package/dist/Components/Viewers/DataTableParts.d.ts +138 -0
  123. package/dist/Components/Viewers/DataTableParts.js +157 -0
  124. package/dist/Components/Viewers/MarkdownView.d.ts +26 -0
  125. package/dist/Components/Viewers/MarkdownView.js +79 -0
  126. package/dist/Components/Viewers/RichTextView.d.ts +18 -0
  127. package/dist/Components/Viewers/RichTextView.js +17 -0
  128. package/dist/Helpers/AnimationHelpers.d.ts +6 -0
  129. package/dist/Helpers/AnimationHelpers.js +35 -0
  130. package/dist/Helpers/ApiClient.d.ts +96 -0
  131. package/dist/Helpers/ApiClient.js +200 -0
  132. package/dist/Helpers/ApiFormHelpers.d.ts +49 -0
  133. package/dist/Helpers/ApiFormHelpers.js +120 -0
  134. package/dist/Helpers/ApiModules.d.ts +131 -0
  135. package/dist/Helpers/ApiModules.js +195 -0
  136. package/dist/Helpers/ApiResponses.d.ts +51 -0
  137. package/dist/Helpers/ApiResponses.js +250 -0
  138. package/dist/Helpers/ApiRoutes.d.ts +140 -0
  139. package/dist/Helpers/ApiRoutes.js +183 -0
  140. package/dist/Helpers/ApiToasts.d.ts +21 -0
  141. package/dist/Helpers/ApiToasts.js +22 -0
  142. package/dist/Helpers/ChatBackend.d.ts +134 -0
  143. package/dist/Helpers/ChatBackend.js +332 -0
  144. package/dist/Helpers/ChatHelpers.d.ts +189 -0
  145. package/dist/Helpers/ChatHelpers.js +486 -0
  146. package/dist/Helpers/ChatHooks.d.ts +81 -0
  147. package/dist/Helpers/ChatHooks.js +175 -0
  148. package/dist/Helpers/ChatStore.d.ts +132 -0
  149. package/dist/Helpers/ChatStore.js +394 -0
  150. package/dist/Helpers/ChatSummaries.d.ts +39 -0
  151. package/dist/Helpers/ChatSummaries.js +118 -0
  152. package/dist/Helpers/ClassHelpers.d.ts +3 -0
  153. package/dist/Helpers/ClassHelpers.js +4 -0
  154. package/dist/Helpers/CrudBackend.d.ts +98 -0
  155. package/dist/Helpers/CrudBackend.js +214 -0
  156. package/dist/Helpers/CrudHelpers.d.ts +111 -0
  157. package/dist/Helpers/CrudHelpers.js +267 -0
  158. package/dist/Helpers/DateHelpers.d.ts +88 -0
  159. package/dist/Helpers/DateHelpers.js +363 -0
  160. package/dist/Helpers/DatePreferences.d.ts +14 -0
  161. package/dist/Helpers/DatePreferences.js +94 -0
  162. package/dist/Helpers/DateTimeHelpers.d.ts +87 -0
  163. package/dist/Helpers/DateTimeHelpers.js +286 -0
  164. package/dist/Helpers/DragHelpers.d.ts +129 -0
  165. package/dist/Helpers/DragHelpers.js +281 -0
  166. package/dist/Helpers/DropdownHelpers.d.ts +56 -0
  167. package/dist/Helpers/DropdownHelpers.js +180 -0
  168. package/dist/Helpers/ExcelBackend.d.ts +106 -0
  169. package/dist/Helpers/ExcelBackend.js +290 -0
  170. package/dist/Helpers/ExcelHelpers.d.ts +98 -0
  171. package/dist/Helpers/ExcelHelpers.js +302 -0
  172. package/dist/Helpers/FormDrafts.d.ts +18 -0
  173. package/dist/Helpers/FormDrafts.js +76 -0
  174. package/dist/Helpers/FormStore.d.ts +233 -0
  175. package/dist/Helpers/FormStore.js +752 -0
  176. package/dist/Helpers/InputParamsHelpers.d.ts +79 -0
  177. package/dist/Helpers/InputParamsHelpers.js +388 -0
  178. package/dist/Helpers/MarkdownEditing.d.ts +27 -0
  179. package/dist/Helpers/MarkdownEditing.js +250 -0
  180. package/dist/Helpers/MarkdownHelpers.d.ts +82 -0
  181. package/dist/Helpers/MarkdownHelpers.js +775 -0
  182. package/dist/Helpers/MessageBuilder.d.ts +74 -0
  183. package/dist/Helpers/MessageBuilder.js +252 -0
  184. package/dist/Helpers/NepaliCalendar.d.ts +25 -0
  185. package/dist/Helpers/NepaliCalendar.js +107 -0
  186. package/dist/Helpers/NumberHelpers.d.ts +71 -0
  187. package/dist/Helpers/NumberHelpers.js +202 -0
  188. package/dist/Helpers/Permissions.d.ts +62 -0
  189. package/dist/Helpers/Permissions.js +133 -0
  190. package/dist/Helpers/PopoverHelpers.d.ts +68 -0
  191. package/dist/Helpers/PopoverHelpers.js +195 -0
  192. package/dist/Helpers/RichTextHelpers.d.ts +77 -0
  193. package/dist/Helpers/RichTextHelpers.js +1072 -0
  194. package/dist/Helpers/RowsStore.d.ts +166 -0
  195. package/dist/Helpers/RowsStore.js +606 -0
  196. package/dist/Helpers/TableColumns.d.ts +47 -0
  197. package/dist/Helpers/TableColumns.js +282 -0
  198. package/dist/Helpers/TableExport.d.ts +30 -0
  199. package/dist/Helpers/TableExport.js +97 -0
  200. package/dist/Helpers/TableHelpers.d.ts +110 -0
  201. package/dist/Helpers/TableHelpers.js +301 -0
  202. package/dist/Helpers/TableStore.d.ts +142 -0
  203. package/dist/Helpers/TableStore.js +530 -0
  204. package/dist/Helpers/ThemeHelpers.d.ts +15 -0
  205. package/dist/Helpers/ThemeHelpers.js +16 -0
  206. package/dist/Helpers/TimeHelpers.d.ts +73 -0
  207. package/dist/Helpers/TimeHelpers.js +253 -0
  208. package/dist/Helpers/TreeStore.d.ts +188 -0
  209. package/dist/Helpers/TreeStore.js +577 -0
  210. package/dist/Helpers/ValidationHelpers.d.ts +124 -0
  211. package/dist/Helpers/ValidationHelpers.js +301 -0
  212. package/dist/Interfaces/ApiInterfaces.d.ts +174 -0
  213. package/dist/Interfaces/ApiInterfaces.js +30 -0
  214. package/dist/Interfaces/ChatInterfaces.d.ts +240 -0
  215. package/{src/sso-client.tsx → dist/Interfaces/ChatInterfaces.js} +1 -1
  216. package/dist/Interfaces/CrudInterfaces.d.ts +232 -0
  217. package/dist/Interfaces/CrudInterfaces.js +1 -0
  218. package/dist/Interfaces/DateInterfaces.d.ts +154 -0
  219. package/dist/Interfaces/DateInterfaces.js +29 -0
  220. package/dist/Interfaces/ExcelInterfaces.d.ts +215 -0
  221. package/dist/Interfaces/ExcelInterfaces.js +45 -0
  222. package/dist/Interfaces/FormInterfaces.d.ts +402 -0
  223. package/dist/Interfaces/FormInterfaces.js +1 -0
  224. package/dist/Interfaces/InputInterfaces.d.ts +141 -0
  225. package/dist/Interfaces/InputInterfaces.js +1 -0
  226. package/dist/Interfaces/MessageInterfaces.d.ts +111 -0
  227. package/dist/Interfaces/MessageInterfaces.js +5 -0
  228. package/dist/Interfaces/TableInterfaces.d.ts +351 -0
  229. package/dist/Interfaces/TableInterfaces.js +1 -0
  230. package/dist/Interfaces/ThemeInterfaces.d.ts +17 -0
  231. package/dist/Interfaces/ThemeInterfaces.js +17 -0
  232. package/dist/Interfaces/TypeInterfaces.d.ts +4 -0
  233. package/dist/Interfaces/TypeInterfaces.js +1 -0
  234. package/dist/Server.Index.d.ts +2 -0
  235. package/dist/Server.Index.js +5 -0
  236. package/dist/Services/ApiProxy.d.ts +32 -0
  237. package/dist/Services/ApiProxy.js +111 -0
  238. package/dist/Services/BrowserApi.d.ts +95 -0
  239. package/dist/Services/BrowserApi.js +129 -0
  240. package/dist/Services/ChatApi.d.ts +37 -0
  241. package/dist/Services/ChatApi.js +98 -0
  242. package/dist/Services/ExcelApi.d.ts +46 -0
  243. package/dist/Services/ExcelApi.js +196 -0
  244. package/dist/Services/ServerApi.d.ts +54 -0
  245. package/dist/Services/ServerApi.js +78 -0
  246. package/dist/Services/ThemeService.d.ts +17 -0
  247. package/dist/Services/ThemeService.js +83 -0
  248. package/dist/Shared.Index.d.ts +51 -0
  249. package/dist/Shared.Index.js +55 -0
  250. package/package.json +85 -33
  251. package/src/Styles/Nexus.Base.css +70 -0
  252. package/src/Styles/Nexus.Button.css +153 -0
  253. package/src/Styles/Nexus.Calendar.css +275 -0
  254. package/src/Styles/Nexus.Chat.css +1489 -0
  255. package/src/Styles/Nexus.Choice.css +345 -0
  256. package/src/Styles/Nexus.Crud.css +161 -0
  257. package/src/Styles/Nexus.DateTime.css +81 -0
  258. package/src/Styles/Nexus.Dropdown.css +774 -0
  259. package/src/Styles/Nexus.Editor.css +297 -0
  260. package/src/Styles/Nexus.Excel.css +370 -0
  261. package/src/Styles/Nexus.Form.css +321 -0
  262. package/src/Styles/Nexus.Index.css +36 -0
  263. package/src/Styles/Nexus.Input.css +637 -0
  264. package/src/Styles/Nexus.Markdown.css +265 -0
  265. package/src/Styles/Nexus.Menu.css +259 -0
  266. package/src/Styles/Nexus.Popup.css +731 -0
  267. package/src/Styles/Nexus.RichText.css +463 -0
  268. package/src/Styles/Nexus.Rows.css +596 -0
  269. package/src/Styles/Nexus.Slider.css +278 -0
  270. package/src/Styles/Nexus.Tab.Buttons.css +419 -0
  271. package/src/Styles/Nexus.Table.css +1296 -0
  272. package/src/Styles/Nexus.Theme.Picker.css +232 -0
  273. package/src/Styles/Nexus.Themes.css +194 -0
  274. package/src/Styles/Nexus.Time.css +147 -0
  275. package/src/Styles/Nexus.Toast.css +265 -0
  276. package/src/Styles/Nexus.Tokens.css +72 -0
  277. package/src/Styles/Nexus.Tree.css +435 -0
  278. package/src/api-services/authentication-service.tsx +0 -23
  279. package/src/api-services/preference-service.tsx +0 -5
  280. package/src/api-services/system-service.tsx +0 -29
  281. package/src/client.ts +0 -31
  282. package/src/components/documents/button.tsx +0 -133
  283. package/src/components/documents/icon-box.tsx +0 -93
  284. package/src/components/documents/page-title.tsx +0 -7
  285. package/src/components/documents/tab-button.tsx +0 -172
  286. package/src/components/documents/tag.tsx +0 -30
  287. package/src/components/index.js +0 -0
  288. package/src/components/inputs/checkbox-input.tsx +0 -66
  289. package/src/components/inputs/input-box.tsx +0 -48
  290. package/src/components/inputs/input-element.tsx +0 -65
  291. package/src/components/inputs/input-form.tsx +0 -164
  292. package/src/components/inputs/input.tsx +0 -181
  293. package/src/components/inputs/number-input.tsx +0 -108
  294. package/src/components/inputs/radiobox-input.tsx +0 -53
  295. package/src/components/inputs/textarea-input.tsx +0 -47
  296. package/src/components/inputs/textbox-input.tsx +0 -45
  297. package/src/components/layouts/global-dialogbox.tsx +0 -431
  298. package/src/components/layouts/global-layout.tsx +0 -64
  299. package/src/components/layouts/layout-helpers.tsx +0 -20
  300. package/src/components/layouts/panels/user-panel.tsx +0 -112
  301. package/src/components/layouts/utility-menu.tsx +0 -49
  302. package/src/components/panels/theme-panel.tsx +0 -46
  303. package/src/helpers/bitwise-helpers.tsx +0 -11
  304. package/src/helpers/browser-helpers.tsx +0 -156
  305. package/src/helpers/datasource-helpers.tsx +0 -99
  306. package/src/helpers/element-helpers.tsx +0 -123
  307. package/src/helpers/input-helpers.tsx +0 -74
  308. package/src/helpers/string-helpers.tsx +0 -28
  309. package/src/helpers/utility-helpers.tsx +0 -45
  310. package/src/helpers/validation-helpers.tsx +0 -302
  311. package/src/index.ts +0 -26
  312. package/src/interface.ts +0 -19
  313. package/src/interfaces/auth-token-interfaces.tsx +0 -6
  314. package/src/interfaces/browser-interfaces.tsx +0 -36
  315. package/src/interfaces/button-interfaces.tsx +0 -63
  316. package/src/interfaces/datasource-interfaces.tsx +0 -22
  317. package/src/interfaces/datatable-interfaces.tsx +0 -25
  318. package/src/interfaces/dialogbox-interfaces.tsx +0 -5
  319. package/src/interfaces/exception-interfaces.tsx +0 -99
  320. package/src/interfaces/http-interfaces.tsx +0 -129
  321. package/src/interfaces/icon-interfaces.tsx +0 -129
  322. package/src/interfaces/input-interfaces.tsx +0 -410
  323. package/src/interfaces/layout-interfaces.tsx +0 -191
  324. package/src/interfaces/menu-interfaces.tsx +0 -53
  325. package/src/interfaces/message-interfaces.tsx +0 -32
  326. package/src/interfaces/permission-interfaces.tsx +0 -9
  327. package/src/interfaces/storage-interfaces.tsx +0 -5
  328. package/src/interfaces/system-interfaces.tsx +0 -22
  329. package/src/interfaces/theme-interfaces.tsx +0 -123
  330. package/src/interfaces/type-interfaces.tsx +0 -28
  331. package/src/interfaces/user-interfaces.tsx +0 -47
  332. package/src/nexus-client.tsx +0 -21
  333. package/src/nexus.environments.tsx +0 -66
  334. package/src/proxy-api/proxy-backend.tsx +0 -60
  335. package/src/proxy-api/proxy-constants.tsx +0 -28
  336. package/src/proxy-api/proxy-helpers.tsx +0 -91
  337. package/src/proxy-api-client.tsx +0 -1
  338. package/src/proxy-api-server.tsx +0 -2
  339. package/src/services/http-client-services.tsx +0 -75
  340. package/src/services/http-services.tsx +0 -158
  341. package/src/services/loader-service.tsx +0 -185
  342. package/src/services/localstorage-service.tsx +0 -119
  343. package/src/services/message-services.tsx +0 -383
  344. package/src/services/theme-service.tsx +0 -163
  345. package/src/services/user-services.tsx +0 -10
  346. package/src/sso-config/auth-token-validation.ts +0 -16
  347. package/src/sso-config/callback-route.tsx +0 -35
  348. package/src/sso-config/cookie-encryption.ts +0 -51
  349. package/src/sso-config/cookie-helpers.tsx +0 -102
  350. package/src/sso-config/forgot-password-route.tsx +0 -36
  351. package/src/sso-config/oauth-callback-state.ts +0 -61
  352. package/src/sso-config/pkce-helpers.ts +0 -9
  353. package/src/sso-config/provider-complete-route.tsx +0 -18
  354. package/src/sso-config/redirect-context-actions.tsx +0 -45
  355. package/src/sso-config/redirect-context-helpers.tsx +0 -159
  356. package/src/sso-config/redirect-context-persist.tsx +0 -18
  357. package/src/sso-config/redirect-context-route.tsx +0 -45
  358. package/src/sso-config/refresh-route.tsx +0 -23
  359. package/src/sso-config/sign-in-route.tsx +0 -74
  360. package/src/sso-config/sign-out-route.tsx +0 -57
  361. package/src/sso-config/sign-up-route.tsx +0 -57
  362. package/src/sso-config/sso-backend-flow.ts +0 -38
  363. package/src/sso-config/sso-complete-route.tsx +0 -50
  364. package/src/sso-config/sso-config.ts +0 -59
  365. package/src/sso-config/sso-interfaces.tsx +0 -99
  366. package/src/sso-config/sso-response-helpers.tsx +0 -20
  367. package/src/sso-server.tsx +0 -21
  368. package/src/styles/nexus.animation.css +0 -269
  369. package/src/styles/nexus.core.css +0 -119
  370. package/src/styles/nexus.dialog.css +0 -144
  371. package/src/styles/nexus.grid-view.css +0 -42
  372. package/src/styles/nexus.icon.css +0 -51
  373. package/src/styles/nexus.input.css +0 -207
  374. package/src/styles/nexus.loader.css +0 -11
  375. package/src/styles/nexus.logic.css +0 -47
  376. package/src/styles/nexus.utility.css +0 -347
@@ -0,0 +1,1296 @@
1
+ @layer nexus.components {
2
+ /*
3
+ * Data table: a bar (tabs, search, buttons), a frame holding the table (a header that stays while rows scroll, a
4
+ * checkbox column on the left and the actions on the right that stay while columns scroll), and a footer with the
5
+ * range and the pager. While rows are selected, a bar with their actions covers the column headings.
6
+ */
7
+ .nx-table {
8
+ --nx-table-bg: var(--nx-surface);
9
+ --nx-table-head-bg: color-mix(in oklab, var(--nx-text) 4%, var(--nx-surface));
10
+ --nx-table-hover: color-mix(in oklab, var(--nx-text) 3%, var(--nx-surface));
11
+ --nx-table-selected: color-mix(in oklab, var(--nx-primary) 11%, var(--nx-surface));
12
+ --nx-table-selected-hover: color-mix(in oklab, var(--nx-primary) 16%, var(--nx-surface));
13
+ --nx-table-flash: color-mix(in oklab, var(--nx-success) 18%, var(--nx-surface));
14
+ --nx-table-line: var(--nx-border);
15
+ --nx-table-head-h: 40px;
16
+ /* The band of group headings above the columns' own, when any column names a group. */
17
+ --nx-table-group-h: 30px;
18
+ /* How many rows the header has: 1, or 2 while a band stands above the headings (`data-head-rows`). */
19
+ --nx-table-head-rows: 1;
20
+ /* The whole header, which the loading bar and the selection bar are measured from. */
21
+ --nx-table-head-all: calc(var(--nx-table-head-h) + (var(--nx-table-head-rows) - 1) * var(--nx-table-group-h));
22
+ --nx-table-row-h: 44px;
23
+ --nx-table-pad-x: 12px;
24
+ --nx-table-select-w: 44px;
25
+ --nx-table-font: var(--nx-text-md);
26
+ --nx-table-edge: light-dark(rgb(16 24 40 / 0.14), rgb(0 0 0 / 0.55));
27
+
28
+ container: nx-table / inline-size;
29
+ display: flex;
30
+ flex-direction: column;
31
+ gap: var(--nx-space-3);
32
+ min-width: 0;
33
+ color: var(--nx-text);
34
+ }
35
+
36
+ .nx-table[data-head-rows="2"] {
37
+ --nx-table-head-rows: 2;
38
+ }
39
+
40
+ .nx-table--sm {
41
+ --nx-table-head-h: 34px;
42
+ --nx-table-group-h: 26px;
43
+ --nx-table-row-h: 36px;
44
+ --nx-table-pad-x: 10px;
45
+ --nx-table-select-w: 38px;
46
+ --nx-table-font: var(--nx-text-sm);
47
+ }
48
+
49
+ /* The bar: tabs and filters on the left, the search and buttons on the right. */
50
+ .nx-table__bar {
51
+ display: flex;
52
+ flex-wrap: wrap;
53
+ align-items: center;
54
+ gap: var(--nx-space-2) var(--nx-space-3);
55
+ }
56
+
57
+ .nx-table__bar-start {
58
+ display: flex;
59
+ flex-wrap: wrap;
60
+ align-items: center;
61
+ gap: var(--nx-space-2);
62
+ min-width: 0;
63
+ }
64
+
65
+ .nx-table__bar-end {
66
+ display: flex;
67
+ flex: 1 1 auto;
68
+ flex-wrap: wrap;
69
+ align-items: center;
70
+ justify-content: flex-end;
71
+ gap: var(--nx-space-2);
72
+ min-width: 0;
73
+ }
74
+
75
+ .nx-table__search {
76
+ flex: 0 1 19rem;
77
+ min-width: 12rem;
78
+ }
79
+
80
+ /* Rows per page inside the search box, at its start, with a line between the two. */
81
+ .nx-table__search .nx-field__actions--start {
82
+ align-self: stretch;
83
+ padding-right: 0;
84
+ padding-left: 2px;
85
+ border-right: 1px solid var(--nx-field-border);
86
+ }
87
+
88
+ .nx-table__page-size--field.nx-btn {
89
+ min-width: 0;
90
+ height: calc(var(--nx-field-height) - 8px);
91
+ gap: 0;
92
+ padding: 0 2px 0 4px;
93
+ color: var(--nx-text-muted);
94
+ font-variant-numeric: tabular-nums;
95
+ }
96
+
97
+ .nx-table__page-size--field .nx-icon {
98
+ width: 14px;
99
+ height: 14px;
100
+ }
101
+
102
+ .nx-table__page-size--field:hover {
103
+ color: var(--nx-text);
104
+ }
105
+
106
+ @container nx-table (max-width: 560px) {
107
+ .nx-table__bar-end {
108
+ justify-content: flex-start;
109
+ }
110
+
111
+ .nx-table__search {
112
+ flex: 1 1 100%;
113
+ order: -1;
114
+ }
115
+ }
116
+
117
+ /*
118
+ * `fill`: the table takes the height it is given instead of growing with its rows. The bar and the footer keep their
119
+ * own height, the frame takes the rest, and the rows scroll inside it. Nothing below the table moves when a page
120
+ * holds fewer rows, and the page behind it never gains a scrollbar.
121
+ */
122
+ .nx-table--fill {
123
+ height: 100%;
124
+ min-height: 0;
125
+ }
126
+
127
+ .nx-table--fill > .nx-table__frame {
128
+ display: flex;
129
+ flex: 1 1 auto;
130
+ flex-direction: column;
131
+ min-height: 0;
132
+ }
133
+
134
+ .nx-table--fill .nx-table__scroll {
135
+ flex: 1 1 auto;
136
+ min-height: 0;
137
+ /* The room for the scrollbar is kept, so the headings do not shift the moment the rows need one. */
138
+ scrollbar-gutter: stable;
139
+ }
140
+
141
+ /* The frame. */
142
+ .nx-table__frame {
143
+ position: relative;
144
+ min-width: 0;
145
+ border: 1px solid var(--nx-table-line);
146
+ border-radius: var(--nx-radius-lg);
147
+ background: var(--nx-table-bg);
148
+ box-shadow: var(--nx-shadow-sm);
149
+ overflow: hidden;
150
+ }
151
+
152
+ .nx-table__scroll {
153
+ overflow: auto;
154
+ overscroll-behavior-x: contain;
155
+ scrollbar-width: thin;
156
+ scrollbar-color: color-mix(in oklab, var(--nx-text-subtle) 75%, transparent) transparent;
157
+ }
158
+
159
+ .nx-table__table {
160
+ width: 100%;
161
+ border-collapse: separate;
162
+ border-spacing: 0;
163
+ font-size: var(--nx-table-font);
164
+ line-height: 1.45;
165
+ }
166
+
167
+ /* Cells */
168
+ .nx-table__cell,
169
+ .nx-table__heading {
170
+ box-sizing: border-box;
171
+ padding: 4px var(--nx-table-pad-x);
172
+ text-align: start;
173
+ vertical-align: middle;
174
+ }
175
+
176
+ .nx-table__cell {
177
+ height: var(--nx-table-row-h);
178
+ border-bottom: 1px solid var(--nx-table-line);
179
+ background: var(--nx-row-bg);
180
+ }
181
+
182
+ .nx-table__row {
183
+ --nx-row-bg: var(--nx-table-bg);
184
+ }
185
+
186
+ /* The last row's line would double the frame. */
187
+ .nx-table__row:last-child > .nx-table__cell {
188
+ border-bottom: 0;
189
+ }
190
+
191
+ .nx-table__row:not(.nx-table__row--message, .nx-table__row--skeleton):hover {
192
+ --nx-row-bg: var(--nx-table-hover);
193
+ }
194
+
195
+ /* A row a click opens says so under the pointer. Only the pointer changes: nothing in the row moves on hover. */
196
+ .nx-table__row[data-open] {
197
+ cursor: pointer;
198
+ }
199
+
200
+ .nx-table__row[data-selected] {
201
+ --nx-row-bg: var(--nx-table-selected);
202
+ }
203
+
204
+ .nx-table__row[data-selected]:hover {
205
+ --nx-row-bg: var(--nx-table-selected-hover);
206
+ }
207
+
208
+ /* Muted text on a selected row's tint moves toward the text color, so it keeps 4.5:1 in every theme. */
209
+ .nx-table__row[data-selected] :is(.nx-table__number, .nx-table__dash, .nx-table__no) {
210
+ color: color-mix(in oklab, var(--nx-text-muted), var(--nx-text) 45%);
211
+ }
212
+
213
+ /* Columns scroll under the pinned ones: a soft shadow shows there is more on that side. */
214
+ .nx-table__frame[data-scroll-start] {
215
+ --nx-table-start-edge: 8px 0 8px -8px var(--nx-table-edge);
216
+ }
217
+
218
+ .nx-table__frame[data-scroll-end] {
219
+ --nx-table-end-edge: -8px 0 8px -8px var(--nx-table-edge);
220
+ }
221
+
222
+ .nx-table__row[data-busy] > .nx-table__cell:not(.nx-table__cell--actions) {
223
+ color: var(--nx-text-muted);
224
+ }
225
+
226
+ /* A row just added or saved: a green wash that fades (a steady one with reduced motion, until the mark goes). */
227
+ .nx-table__row[data-flash] > .nx-table__cell {
228
+ animation: nx-table-flash 1600ms ease-out;
229
+ }
230
+
231
+ @keyframes nx-table-flash {
232
+ from {
233
+ background-color: var(--nx-table-flash);
234
+ }
235
+ }
236
+
237
+ .nx-table__cell--start {
238
+ text-align: start;
239
+ }
240
+
241
+ .nx-table__cell--center {
242
+ text-align: center;
243
+ }
244
+
245
+ .nx-table__cell--end {
246
+ text-align: end;
247
+ font-variant-numeric: tabular-nums;
248
+ }
249
+
250
+ /* A value ends in "…" at the column's width (24rem when the column sets none). */
251
+ .nx-table__value {
252
+ display: block;
253
+ max-width: var(--nx-col-max, 24rem);
254
+ overflow: hidden;
255
+ text-overflow: ellipsis;
256
+ white-space: nowrap;
257
+ }
258
+
259
+ .nx-table__cell--wrap .nx-table__value {
260
+ max-width: var(--nx-col-max, 32rem);
261
+ white-space: normal;
262
+ overflow-wrap: anywhere;
263
+ }
264
+
265
+ .nx-table__cell--end .nx-table__value {
266
+ margin-left: auto;
267
+ }
268
+
269
+ .nx-table__cell--center .nx-table__value {
270
+ margin-inline: auto;
271
+ }
272
+
273
+ /*
274
+ * Pinned columns stay while the others scroll: the numbers and checkbox column and the actions always, and
275
+ * any column the user pins from its menu. Their distance from the edge is measured from the headings before them.
276
+ */
277
+ .nx-table__cell[data-pin],
278
+ .nx-table__heading[data-pin] {
279
+ position: sticky;
280
+ z-index: 1;
281
+ background: var(--nx-row-bg);
282
+ }
283
+
284
+ .nx-table__heading[data-pin] {
285
+ z-index: 3;
286
+ background: var(--nx-table-head-bg);
287
+ }
288
+
289
+ /* The last pinned column of a side carries the shadow the others scroll under. */
290
+ .nx-table__cell[data-pin="left"][data-pin-edge],
291
+ .nx-table__heading[data-pin="left"][data-pin-edge] {
292
+ box-shadow: var(--nx-table-start-edge, 0 0 #0000);
293
+ }
294
+
295
+ .nx-table__cell[data-pin="right"][data-pin-edge],
296
+ .nx-table__heading[data-pin="right"][data-pin-edge] {
297
+ box-shadow: var(--nx-table-end-edge, 0 0 #0000);
298
+ }
299
+
300
+ /* The first column: the row's number, with its checkbox in the same place. */
301
+ .nx-table__cell--index {
302
+ width: var(--nx-table-select-w);
303
+ min-width: var(--nx-table-select-w);
304
+ padding: 0;
305
+ text-align: center;
306
+ }
307
+
308
+ .nx-table__number {
309
+ display: inline-flex;
310
+ align-items: center;
311
+ justify-content: center;
312
+ width: 100%;
313
+ color: var(--nx-text-muted);
314
+ font-size: var(--nx-text-xs);
315
+ font-variant-numeric: tabular-nums;
316
+ font-weight: 500;
317
+ }
318
+
319
+ .nx-table__check {
320
+ display: inline-flex;
321
+ align-items: center;
322
+ justify-content: center;
323
+ width: 100%;
324
+ height: 100%;
325
+ min-height: 28px;
326
+ }
327
+
328
+ .nx-table__check .nx-choice__control {
329
+ margin: 0;
330
+ }
331
+
332
+ /* Both in the one cell: the number, until the row is under the pointer or anything is selected. */
333
+ .nx-table__cell--index[data-swap] > .nx-table__number,
334
+ .nx-table__cell--index[data-swap] > .nx-table__check {
335
+ position: absolute;
336
+ inset: 0;
337
+ width: auto;
338
+ transition: opacity var(--nx-duration);
339
+ }
340
+
341
+ .nx-table__cell--index[data-swap] > .nx-table__check {
342
+ opacity: 0;
343
+ }
344
+
345
+ .nx-table__row:hover > .nx-table__cell--index[data-swap] > .nx-table__check,
346
+ /* The heading's own cell may stand in the band row, so the whole header counts as hovering it. */
347
+ .nx-table__thead:hover .nx-table__cell--index[data-swap] > .nx-table__check,
348
+ .nx-table__cell--index[data-swap]:focus-within > .nx-table__check,
349
+ .nx-table[data-selecting] .nx-table__cell--index[data-swap] > .nx-table__check {
350
+ opacity: 1;
351
+ }
352
+
353
+ .nx-table__row:hover > .nx-table__cell--index[data-swap] > .nx-table__number,
354
+ .nx-table__thead:hover .nx-table__cell--index[data-swap] > .nx-table__number,
355
+ .nx-table__cell--index[data-swap]:focus-within > .nx-table__number,
356
+ .nx-table[data-selecting] .nx-table__cell--index[data-swap] > .nx-table__number {
357
+ opacity: 0;
358
+ }
359
+
360
+ /* A touch screen has no pointer to hover with, so the checkbox stays. */
361
+ @media (hover: none) {
362
+ .nx-table__cell--index[data-swap] > .nx-table__check {
363
+ opacity: 1;
364
+ }
365
+
366
+ .nx-table__cell--index[data-swap] > .nx-table__number {
367
+ opacity: 0;
368
+ }
369
+ }
370
+
371
+ /*
372
+ * The pinned section above the page: a row across the table whose button folds the records the user pinned open and
373
+ * shut, and the rows themselves, which show in the list below as well. A pinned row wears a pin where the rows of the
374
+ * page show their number.
375
+ */
376
+ .nx-table__pins {
377
+ border-bottom: 2px solid var(--nx-table-line);
378
+ }
379
+
380
+ .nx-table__pin-cell {
381
+ padding: 0;
382
+ border-bottom: 1px solid var(--nx-table-line);
383
+ background: var(--nx-table-head-bg);
384
+ }
385
+
386
+ .nx-table__pin-toggle {
387
+ display: flex;
388
+ align-items: center;
389
+ gap: var(--nx-space-2);
390
+ width: 100%;
391
+ min-height: var(--nx-table-head-h);
392
+ padding: 0 var(--nx-table-pad-x);
393
+ border: 0;
394
+ background: none;
395
+ color: var(--nx-text);
396
+ font: inherit;
397
+ font-size: var(--nx-table-font);
398
+ font-weight: 600;
399
+ text-align: start;
400
+ cursor: pointer;
401
+ transition: background-color var(--nx-duration);
402
+ }
403
+
404
+ .nx-table__pin-toggle:hover {
405
+ background: color-mix(in oklab, var(--nx-text) 5%, transparent);
406
+ }
407
+
408
+ .nx-table__pin-toggle:focus-visible {
409
+ outline: none;
410
+ box-shadow: inset 0 0 0 2px var(--nx-primary);
411
+ }
412
+
413
+ .nx-table__pin-caret {
414
+ flex-shrink: 0;
415
+ width: 15px;
416
+ height: 15px;
417
+ color: var(--nx-text-muted);
418
+ transition: transform var(--nx-duration);
419
+ }
420
+
421
+ .nx-table__pins[data-open] .nx-table__pin-caret {
422
+ transform: rotate(90deg);
423
+ }
424
+
425
+ .nx-table__pin-icon {
426
+ flex-shrink: 0;
427
+ width: 15px;
428
+ height: 15px;
429
+ color: var(--nx-text-muted);
430
+ }
431
+
432
+ .nx-table__pin-count {
433
+ color: var(--nx-text-muted);
434
+ font-weight: 400;
435
+ font-variant-numeric: tabular-nums;
436
+ }
437
+
438
+ .nx-table__pin-loading {
439
+ width: 14px;
440
+ height: 14px;
441
+ color: var(--nx-text-muted);
442
+ }
443
+
444
+ .nx-table__pin-mark {
445
+ width: 15px;
446
+ height: 15px;
447
+ color: var(--nx-text-muted);
448
+ }
449
+
450
+ @media (prefers-reduced-motion: reduce) {
451
+ .nx-table__pin-caret,
452
+ .nx-table__pin-toggle {
453
+ transition: none;
454
+ }
455
+ }
456
+
457
+ .nx-table__cell--actions {
458
+ width: 1px;
459
+ padding-inline: 4px 8px;
460
+ white-space: nowrap;
461
+ }
462
+
463
+ /*
464
+ * Once the user has given a column a width, the table lays its columns out from the list of widths, so dragging one
465
+ * edge moves that edge only. The filler column takes whatever space the others leave.
466
+ */
467
+ .nx-table[data-sized] .nx-table__table {
468
+ table-layout: fixed;
469
+ }
470
+
471
+ .nx-table__cell--filler {
472
+ padding: 0;
473
+ background: var(--nx-row-bg);
474
+ }
475
+
476
+ .nx-table__heading.nx-table__cell--filler {
477
+ background: var(--nx-table-head-bg);
478
+ }
479
+
480
+ .nx-table__actions {
481
+ display: flex;
482
+ align-items: center;
483
+ justify-content: flex-end;
484
+ gap: 2px;
485
+ }
486
+
487
+ /* Header: stays at the top while rows scroll. */
488
+ .nx-table__heading {
489
+ position: sticky;
490
+ top: 0;
491
+ z-index: 2;
492
+ height: var(--nx-table-head-h);
493
+ border-bottom: 1px solid var(--nx-table-line);
494
+ background: var(--nx-table-head-bg);
495
+ color: var(--nx-text);
496
+ font-size: var(--nx-text-sm);
497
+ font-weight: 600;
498
+ white-space: nowrap;
499
+ }
500
+
501
+ /* A heading that holds the sort button, the column's menu, and the edge to drag keeps no padding of its own. */
502
+ .nx-table__heading:has(> .nx-table__heading-inner) {
503
+ padding: 0;
504
+ }
505
+
506
+ /*
507
+ * Columns in bands: a group's heading spans the columns next to each other that name it, and the columns with no
508
+ * group keep one heading as tall as both rows. Both rows stay while the rows scroll, the band on top.
509
+ */
510
+ .nx-table__head--leaves > .nx-table__heading {
511
+ top: var(--nx-table-group-h);
512
+ }
513
+
514
+ .nx-table__heading--group {
515
+ height: var(--nx-table-group-h);
516
+ border-bottom: 0;
517
+ text-align: center;
518
+ }
519
+
520
+ /* The line under a band stops short of its edges, so two bands beside each other read as two, not as one rule. */
521
+ .nx-table__heading--group::after {
522
+ content: "";
523
+ position: absolute;
524
+ right: var(--nx-table-pad-x);
525
+ bottom: 0;
526
+ left: var(--nx-table-pad-x);
527
+ height: 1px;
528
+ background: var(--nx-table-line);
529
+ }
530
+
531
+ .nx-table__group {
532
+ display: block;
533
+ overflow: hidden;
534
+ color: var(--nx-text);
535
+ font-size: var(--nx-text-xs);
536
+ font-weight: 700;
537
+ letter-spacing: 0.04em;
538
+ text-overflow: ellipsis;
539
+ text-transform: uppercase;
540
+ }
541
+
542
+ .nx-table__heading-inner {
543
+ display: flex;
544
+ align-items: center;
545
+ min-width: 0;
546
+ height: 100%;
547
+ }
548
+
549
+ .nx-table__heading-label {
550
+ min-width: 0;
551
+ overflow: hidden;
552
+ text-overflow: ellipsis;
553
+ }
554
+
555
+ .nx-table__heading-inner > .nx-table__heading-label {
556
+ flex: 1 1 auto;
557
+ padding: 0 var(--nx-table-pad-x);
558
+ }
559
+
560
+ /* A sortable heading is one button across its cell, beside the column's menu. */
561
+ .nx-table__sort {
562
+ display: flex;
563
+ flex: 1 1 auto;
564
+ align-items: center;
565
+ gap: 6px;
566
+ min-width: 0;
567
+ height: 100%;
568
+ padding: 0 4px 0 var(--nx-table-pad-x);
569
+ border: 0;
570
+ background: transparent;
571
+ color: inherit;
572
+ font: inherit;
573
+ text-align: inherit;
574
+ cursor: pointer;
575
+ transition: background-color var(--nx-duration);
576
+ }
577
+
578
+ .nx-table__cell--end .nx-table__sort {
579
+ flex-direction: row-reverse;
580
+ padding: 0 var(--nx-table-pad-x) 0 4px;
581
+ }
582
+
583
+ .nx-table__cell--center .nx-table__sort {
584
+ justify-content: center;
585
+ }
586
+
587
+ /* The column's menu (pin, move, fit, hide): at the end of the heading, and shown while it is hovered or focused. */
588
+ .nx-table__col-menu.nx-btn {
589
+ flex: 0 0 auto;
590
+ width: 20px;
591
+ min-width: 20px;
592
+ height: calc(var(--nx-table-head-h) - 12px);
593
+ margin-right: 2px;
594
+ padding: 0;
595
+ border-radius: var(--nx-radius-sm);
596
+ opacity: 0;
597
+ transition: opacity var(--nx-duration);
598
+ }
599
+
600
+ .nx-table__col-menu .nx-icon {
601
+ width: 14px;
602
+ height: 14px;
603
+ }
604
+
605
+ .nx-table__heading:hover .nx-table__col-menu,
606
+ .nx-table__col-menu:is(:focus, :focus-visible),
607
+ .nx-table__col-menu[aria-expanded="true"] {
608
+ opacity: 1;
609
+ }
610
+
611
+ @media (hover: none) {
612
+ .nx-table__col-menu.nx-btn {
613
+ opacity: 1;
614
+ }
615
+ }
616
+
617
+ /* The edge of a heading: drag it for the column's width, double-click it to fit the content. */
618
+ .nx-table__resizer {
619
+ position: absolute;
620
+ top: 0;
621
+ right: -2px;
622
+ z-index: 4;
623
+ width: 8px;
624
+ height: 100%;
625
+ touch-action: none;
626
+ cursor: col-resize;
627
+ }
628
+
629
+ .nx-table__resizer::after {
630
+ content: "";
631
+ position: absolute;
632
+ top: 7px;
633
+ bottom: 7px;
634
+ left: 3px;
635
+ width: 2px;
636
+ border-radius: 1px;
637
+ background: transparent;
638
+ transition: background-color var(--nx-duration);
639
+ }
640
+
641
+ .nx-table__heading:hover > .nx-table__resizer::after,
642
+ .nx-table__resizer[data-active]::after {
643
+ background: var(--nx-primary);
644
+ }
645
+
646
+ .nx-table__resizer[data-active]::after {
647
+ top: 0;
648
+ bottom: 0;
649
+ }
650
+
651
+ /* Dragging a heading to another place: the heading being moved, and a line where it will land. */
652
+ .nx-table__heading[data-dragging] {
653
+ background: color-mix(in oklab, var(--nx-primary) 14%, var(--nx-table-head-bg));
654
+ }
655
+
656
+ .nx-table__heading[data-drop-before]::before,
657
+ .nx-table__heading[data-drop-after]::after {
658
+ content: "";
659
+ position: absolute;
660
+ top: 0;
661
+ bottom: 0;
662
+ z-index: 5;
663
+ width: 2px;
664
+ background: var(--nx-primary);
665
+ }
666
+
667
+ .nx-table__heading[data-drop-before]::before {
668
+ left: 0;
669
+ }
670
+
671
+ .nx-table__heading[data-drop-after]::after {
672
+ right: 0;
673
+ }
674
+
675
+ .nx-table[data-col-drag] .nx-table__head {
676
+ user-select: none;
677
+ }
678
+
679
+ .nx-table[data-col-drag] :is(.nx-table__heading, .nx-table__sort, .nx-table__col-menu, .nx-table__resizer) {
680
+ cursor: grabbing;
681
+ }
682
+
683
+ .nx-table[data-col-resize] :is(.nx-table__heading, .nx-table__sort, .nx-table__cell) {
684
+ cursor: col-resize;
685
+ }
686
+
687
+ .nx-table__sort:hover:not(:disabled) {
688
+ background: color-mix(in oklab, var(--nx-text) 5%, transparent);
689
+ }
690
+
691
+ .nx-table__sort:focus-visible {
692
+ outline: none;
693
+ box-shadow: inset 0 0 0 2px var(--nx-primary);
694
+ }
695
+
696
+ .nx-table__sort:disabled {
697
+ cursor: default;
698
+ }
699
+
700
+ .nx-table__sort-icon {
701
+ flex-shrink: 0;
702
+ width: 14px;
703
+ height: 14px;
704
+ color: var(--nx-text-muted);
705
+ opacity: 0;
706
+ transition: opacity var(--nx-duration);
707
+ }
708
+
709
+ .nx-table__sort[data-sorted] .nx-table__sort-icon {
710
+ color: var(--nx-text);
711
+ opacity: 1;
712
+ }
713
+
714
+ .nx-table__sort:is(:hover, :focus-visible):not(:disabled) .nx-table__sort-icon {
715
+ opacity: 1;
716
+ }
717
+
718
+ @media (hover: none) {
719
+ .nx-table__sort:not(:disabled) .nx-table__sort-icon {
720
+ opacity: 0.7;
721
+ }
722
+ }
723
+
724
+ /* Values */
725
+ .nx-table__dash,
726
+ .nx-table__no {
727
+ color: var(--nx-text-muted);
728
+ }
729
+
730
+ .nx-table__yes {
731
+ display: inline-flex;
732
+ color: var(--nx-success);
733
+ }
734
+
735
+ .nx-table__yes .nx-icon {
736
+ width: 16px;
737
+ height: 16px;
738
+ }
739
+
740
+ /* An option with a tone: a tag with a dot of its color; the text keeps the text color, readable on every tint. */
741
+ .nx-table__tag {
742
+ --nx-tag-tone: var(--nx-text-muted);
743
+ display: inline-flex;
744
+ align-items: center;
745
+ gap: 6px;
746
+ max-width: 100%;
747
+ padding: 1px 8px;
748
+ border-radius: var(--nx-radius-full);
749
+ background: color-mix(in oklab, var(--nx-tag-tone) 14%, var(--nx-surface));
750
+ color: var(--nx-text);
751
+ font-size: var(--nx-text-xs);
752
+ font-weight: 500;
753
+ line-height: 1.6;
754
+ vertical-align: middle;
755
+ }
756
+
757
+ .nx-table__tag::before {
758
+ content: "";
759
+ flex-shrink: 0;
760
+ width: 6px;
761
+ height: 6px;
762
+ border-radius: 50%;
763
+ background: var(--nx-tag-tone);
764
+ }
765
+
766
+ .nx-table__tag[data-tone="primary"] {
767
+ --nx-tag-tone: var(--nx-primary);
768
+ }
769
+
770
+ .nx-table__tag[data-tone="success"] {
771
+ --nx-tag-tone: var(--nx-success);
772
+ }
773
+
774
+ .nx-table__tag[data-tone="warning"] {
775
+ --nx-tag-tone: var(--nx-warning);
776
+ }
777
+
778
+ .nx-table__tag[data-tone="danger"] {
779
+ --nx-tag-tone: var(--nx-danger);
780
+ }
781
+
782
+ .nx-table__tag[data-tone="info"] {
783
+ --nx-tag-tone: var(--nx-info);
784
+ }
785
+
786
+ /* Placeholders while the first rows load. */
787
+ .nx-table__bone {
788
+ display: block;
789
+ height: 0.75em;
790
+ border-radius: var(--nx-radius-sm);
791
+ background: color-mix(in oklab, var(--nx-text) 9%, transparent);
792
+ animation: nx-table-pulse 1.6s ease-in-out infinite;
793
+ }
794
+
795
+ .nx-table__cell--end .nx-table__bone {
796
+ margin-left: auto;
797
+ }
798
+
799
+ @keyframes nx-table-pulse {
800
+ 50% {
801
+ opacity: 0.45;
802
+ }
803
+ }
804
+
805
+ /* A message across the table: no rows, no matches, a failed load. */
806
+ .nx-table__message-cell {
807
+ padding: 0;
808
+ background: var(--nx-table-bg);
809
+ }
810
+
811
+ .nx-table__message {
812
+ display: flex;
813
+ flex-direction: column;
814
+ align-items: center;
815
+ gap: 4px;
816
+ padding: 40px var(--nx-space-4);
817
+ text-align: center;
818
+ }
819
+
820
+ .nx-table__message-icon {
821
+ width: 28px;
822
+ height: 28px;
823
+ margin-bottom: 6px;
824
+ color: var(--nx-text-muted);
825
+ }
826
+
827
+ .nx-table__message[data-tone="danger"] .nx-table__message-icon {
828
+ color: var(--nx-danger);
829
+ }
830
+
831
+ .nx-table__message-title {
832
+ margin: 0;
833
+ font-size: var(--nx-text-md);
834
+ font-weight: 600;
835
+ }
836
+
837
+ .nx-table__message-detail {
838
+ max-width: 36rem;
839
+ margin: 0;
840
+ color: var(--nx-text-muted);
841
+ font-size: var(--nx-text-sm);
842
+ }
843
+
844
+ .nx-table__message-actions {
845
+ display: flex;
846
+ flex-wrap: wrap;
847
+ justify-content: center;
848
+ gap: var(--nx-space-2);
849
+ margin-top: var(--nx-space-3);
850
+ }
851
+
852
+ /* A thin bar under the header while a load runs with rows on screen. The rows dim only if it takes a moment. */
853
+ .nx-table__progress {
854
+ position: absolute;
855
+ top: calc(var(--nx-table-head-all) - 1px);
856
+ right: 0;
857
+ left: 0;
858
+ z-index: 4;
859
+ height: 2px;
860
+ overflow: hidden;
861
+ opacity: 0;
862
+ pointer-events: none;
863
+ transition: opacity var(--nx-duration);
864
+ }
865
+
866
+ .nx-table__progress::before {
867
+ content: "";
868
+ position: absolute;
869
+ inset: 0 auto 0 0;
870
+ width: 35%;
871
+ background: var(--nx-primary);
872
+ animation: nx-table-progress 1.1s ease-in-out infinite;
873
+ }
874
+
875
+ @keyframes nx-table-progress {
876
+ from {
877
+ transform: translateX(-100%);
878
+ }
879
+ to {
880
+ transform: translateX(290%);
881
+ }
882
+ }
883
+
884
+ .nx-table[data-refreshing] .nx-table__progress {
885
+ opacity: 1;
886
+ }
887
+
888
+ .nx-table__table > tbody {
889
+ transition: opacity var(--nx-duration);
890
+ }
891
+
892
+ .nx-table[data-refreshing] .nx-table__table > tbody {
893
+ opacity: 0.55;
894
+ transition-delay: 180ms;
895
+ }
896
+
897
+ /* The selection bar covers the column headings, so the table does not move when it shows. */
898
+ .nx-table__selection {
899
+ position: absolute;
900
+ top: 0;
901
+ right: 0;
902
+ left: var(--nx-table-index-w, var(--nx-table-select-w));
903
+ z-index: 5;
904
+ display: flex;
905
+ align-items: center;
906
+ gap: var(--nx-space-2);
907
+ height: calc(var(--nx-table-head-all) - 1px);
908
+ padding: 0 var(--nx-space-2) 0 2px;
909
+ background: var(--nx-table-selected);
910
+ }
911
+
912
+ .nx-table__frame:has(.nx-table__selection) .nx-table__heading.nx-table__cell--index {
913
+ background: var(--nx-table-selected);
914
+ }
915
+
916
+ .nx-table__selection-count {
917
+ flex-shrink: 0;
918
+ padding-right: var(--nx-space-2);
919
+ font-size: var(--nx-text-sm);
920
+ font-weight: 600;
921
+ font-variant-numeric: tabular-nums;
922
+ white-space: nowrap;
923
+ }
924
+
925
+ .nx-table__selection-actions {
926
+ display: flex;
927
+ flex: 1 1 auto;
928
+ align-items: center;
929
+ gap: 2px;
930
+ min-width: 0;
931
+ overflow: hidden;
932
+ }
933
+
934
+ /* Every action on the selected rows in one split button: the name of the one shown must stay readable. */
935
+ .nx-table__mass {
936
+ min-width: 0;
937
+ }
938
+
939
+ .nx-table__mass .nx-btn__label,
940
+ .nx-table__mass .nx-split__main .nx-btn__label {
941
+ overflow: hidden;
942
+ text-overflow: ellipsis;
943
+ white-space: nowrap;
944
+ }
945
+
946
+ .nx-table__selection-clear {
947
+ flex-shrink: 0;
948
+ margin-left: auto;
949
+ }
950
+
951
+ /* A narrow table keeps the action's name and drops the word "Clear"; it stays for screen readers and in the tooltip. */
952
+ @container nx-table (max-width: 560px) {
953
+ .nx-table__selection-clear.nx-btn {
954
+ width: var(--nx-btn-height);
955
+ padding: 0;
956
+ }
957
+
958
+ .nx-table__selection-clear .nx-btn__label {
959
+ position: absolute;
960
+ width: 1px;
961
+ height: 1px;
962
+ overflow: hidden;
963
+ clip-path: inset(50%);
964
+ white-space: nowrap;
965
+ }
966
+ }
967
+
968
+ /* Footer: the range on the left, rows per page and the pager on the right. */
969
+ .nx-table__footer {
970
+ display: flex;
971
+ flex-wrap: wrap;
972
+ align-items: center;
973
+ justify-content: space-between;
974
+ gap: var(--nx-space-2) var(--nx-space-4);
975
+ min-height: var(--nx-control-sm);
976
+ }
977
+
978
+ .nx-table__range {
979
+ margin: 0;
980
+ color: var(--nx-text-muted);
981
+ font-size: var(--nx-text-sm);
982
+ font-variant-numeric: tabular-nums;
983
+ }
984
+
985
+ /* The numbers themselves read as the text colour, so the line is skimmed at a glance. */
986
+ .nx-table__range b {
987
+ color: var(--nx-text);
988
+ font-weight: 600;
989
+ }
990
+
991
+ .nx-table__page-info {
992
+ color: var(--nx-text-muted);
993
+ font-size: var(--nx-text-sm);
994
+ font-variant-numeric: tabular-nums;
995
+ white-space: nowrap;
996
+ }
997
+
998
+ .nx-table__paging {
999
+ display: flex;
1000
+ flex-wrap: wrap;
1001
+ align-items: center;
1002
+ gap: var(--nx-space-2);
1003
+ margin-left: auto;
1004
+ }
1005
+
1006
+ .nx-table__page-size {
1007
+ color: var(--nx-text-muted);
1008
+ font-variant-numeric: tabular-nums;
1009
+ }
1010
+
1011
+ .nx-table__pager {
1012
+ display: flex;
1013
+ align-items: center;
1014
+ gap: 2px;
1015
+ }
1016
+
1017
+ .nx-table__page-list {
1018
+ display: flex;
1019
+ align-items: center;
1020
+ gap: 2px;
1021
+ }
1022
+
1023
+ .nx-table__page {
1024
+ min-width: var(--nx-control-sm);
1025
+ height: var(--nx-control-sm);
1026
+ padding: 0 6px;
1027
+ border: 0;
1028
+ border-radius: var(--nx-radius);
1029
+ background: transparent;
1030
+ color: var(--nx-text);
1031
+ font: inherit;
1032
+ font-size: var(--nx-text-sm);
1033
+ font-variant-numeric: tabular-nums;
1034
+ cursor: pointer;
1035
+ transition: background-color var(--nx-duration);
1036
+ }
1037
+
1038
+ .nx-table__page:hover:not(:disabled, [aria-current]) {
1039
+ background: var(--nx-surface-hover);
1040
+ }
1041
+
1042
+ .nx-table__page:focus-visible {
1043
+ outline: none;
1044
+ box-shadow: var(--nx-focus-ring);
1045
+ }
1046
+
1047
+ .nx-table__page[aria-current] {
1048
+ background: var(--nx-primary-solid);
1049
+ color: var(--nx-primary-text);
1050
+ font-weight: 600;
1051
+ cursor: default;
1052
+ }
1053
+
1054
+ .nx-table__page:disabled {
1055
+ opacity: 0.5;
1056
+ cursor: default;
1057
+ }
1058
+
1059
+ .nx-table__page-gap {
1060
+ min-width: 20px;
1061
+ color: var(--nx-text-muted);
1062
+ text-align: center;
1063
+ }
1064
+
1065
+ /* A narrow table drops the page buttons: "Page 6 of 24" and the arrows are enough. */
1066
+ @container nx-table (max-width: 520px) {
1067
+ .nx-table__page-list {
1068
+ display: none;
1069
+ }
1070
+ }
1071
+
1072
+ @media (prefers-reduced-motion: reduce) {
1073
+ .nx-table__bone {
1074
+ animation: none;
1075
+ }
1076
+
1077
+ .nx-table__row[data-flash] > .nx-table__cell {
1078
+ animation: none;
1079
+ }
1080
+
1081
+ .nx-table__row[data-flash] {
1082
+ --nx-row-bg: var(--nx-table-flash);
1083
+ }
1084
+
1085
+ .nx-table__progress::before {
1086
+ width: 100%;
1087
+ animation: none;
1088
+ opacity: 0.6;
1089
+ }
1090
+ }
1091
+
1092
+ /*
1093
+ * The Columns panel: a checkbox per column and a handle to drag it into another place. It shares the .nx-popover
1094
+ * panel with the menu, and holds a list rather than actions, so a click inside it never closes it.
1095
+ */
1096
+ .nx-columns {
1097
+ --nx-columns-row-h: 32px;
1098
+ position: fixed;
1099
+ inset: auto;
1100
+ min-width: 232px;
1101
+ max-width: min(320px, calc(100% - 16px));
1102
+ max-height: calc(100vh - 16px);
1103
+ padding: var(--nx-space-2);
1104
+ outline: none;
1105
+ }
1106
+
1107
+ .nx-columns--sm {
1108
+ --nx-columns-row-h: 28px;
1109
+ font-size: var(--nx-text-sm);
1110
+ }
1111
+
1112
+ /* A shut popover is hidden by the browser, so the panel takes its layout only while it is open. */
1113
+ .nx-columns:popover-open {
1114
+ display: flex;
1115
+ flex-direction: column;
1116
+ animation: nx-menu-in 120ms ease-out;
1117
+ }
1118
+
1119
+ .nx-columns__head {
1120
+ display: flex;
1121
+ align-items: baseline;
1122
+ justify-content: space-between;
1123
+ gap: var(--nx-space-3);
1124
+ padding: 2px var(--nx-space-2) 6px;
1125
+ }
1126
+
1127
+ .nx-columns__title {
1128
+ font-weight: 600;
1129
+ }
1130
+
1131
+ .nx-columns__count {
1132
+ color: var(--nx-text-muted);
1133
+ font-size: var(--nx-text-xs);
1134
+ font-variant-numeric: tabular-nums;
1135
+ }
1136
+
1137
+ .nx-columns__list {
1138
+ display: flex;
1139
+ flex: 1 1 auto;
1140
+ flex-direction: column;
1141
+ min-height: 0;
1142
+ margin: 0;
1143
+ padding: 0;
1144
+ overflow: hidden auto;
1145
+ overscroll-behavior: contain;
1146
+ list-style: none;
1147
+ }
1148
+
1149
+ .nx-columns__row {
1150
+ display: flex;
1151
+ align-items: center;
1152
+ gap: 6px;
1153
+ min-height: var(--nx-columns-row-h);
1154
+ padding: 0 var(--nx-space-2) 0 2px;
1155
+ border: 1px solid transparent;
1156
+ border-radius: var(--nx-radius);
1157
+ }
1158
+
1159
+ .nx-columns__row:hover {
1160
+ background: var(--nx-surface-hover);
1161
+ }
1162
+
1163
+ /* The row being dragged stays in place and goes quiet; a line shows where it would land. */
1164
+ .nx-columns__row[data-held] {
1165
+ background: var(--nx-surface-hover);
1166
+ opacity: 0.6;
1167
+ }
1168
+
1169
+ .nx-columns__row[data-drop] {
1170
+ border-color: var(--nx-primary);
1171
+ }
1172
+
1173
+ /* A band: its own line, with the columns under it indented along a line that says where the band ends. */
1174
+ .nx-columns__row--band {
1175
+ display: block;
1176
+ padding: 0;
1177
+ }
1178
+
1179
+ .nx-columns__row--band:hover {
1180
+ background: none;
1181
+ }
1182
+
1183
+ .nx-columns__band {
1184
+ display: flex;
1185
+ align-items: center;
1186
+ gap: 6px;
1187
+ min-height: var(--nx-columns-row-h);
1188
+ padding: 0 var(--nx-space-2) 0 2px;
1189
+ border-radius: var(--nx-radius);
1190
+ }
1191
+
1192
+ .nx-columns__band:hover {
1193
+ background: var(--nx-surface-hover);
1194
+ }
1195
+
1196
+ .nx-columns__band .nx-columns__label {
1197
+ font-weight: 600;
1198
+ }
1199
+
1200
+ .nx-columns__band-count {
1201
+ flex: none;
1202
+ color: var(--nx-text-subtle);
1203
+ font-size: var(--nx-text-xs);
1204
+ font-variant-numeric: tabular-nums;
1205
+ }
1206
+
1207
+ .nx-columns__children {
1208
+ margin: 0 0 2px 13px;
1209
+ padding: 0 0 0 9px;
1210
+ border-left: 1px solid var(--nx-border);
1211
+ list-style: none;
1212
+ }
1213
+
1214
+ /* A column whose band is hidden stays readable but plainly off. */
1215
+ .nx-columns__row--child:has(input:disabled) .nx-columns__label {
1216
+ color: var(--nx-text-subtle);
1217
+ }
1218
+
1219
+ .nx-columns__handle {
1220
+ display: inline-flex;
1221
+ flex: none;
1222
+ align-items: center;
1223
+ justify-content: center;
1224
+ width: 20px;
1225
+ height: var(--nx-columns-row-h);
1226
+ padding: 0;
1227
+ border: 0;
1228
+ border-radius: var(--nx-radius-sm);
1229
+ background: none;
1230
+ color: var(--nx-text-subtle);
1231
+ cursor: grab;
1232
+ touch-action: none;
1233
+ }
1234
+
1235
+ .nx-columns__handle:hover {
1236
+ color: var(--nx-text);
1237
+ }
1238
+
1239
+ .nx-columns__handle:focus-visible {
1240
+ outline: none;
1241
+ box-shadow: var(--nx-focus-ring);
1242
+ }
1243
+
1244
+ .nx-columns[data-dragging] .nx-columns__handle {
1245
+ cursor: grabbing;
1246
+ }
1247
+
1248
+ .nx-columns__handle--fixed {
1249
+ cursor: default;
1250
+ }
1251
+
1252
+ .nx-columns__choice {
1253
+ flex: 1 1 auto;
1254
+ min-width: 0;
1255
+ padding: 2px 0;
1256
+ }
1257
+
1258
+ .nx-columns__label {
1259
+ overflow: hidden;
1260
+ text-overflow: ellipsis;
1261
+ white-space: nowrap;
1262
+ }
1263
+
1264
+ .nx-columns__pin {
1265
+ display: inline-flex;
1266
+ flex: none;
1267
+ color: var(--nx-text-subtle);
1268
+ }
1269
+
1270
+ .nx-columns__pin .nx-icon {
1271
+ width: 14px;
1272
+ height: 14px;
1273
+ }
1274
+
1275
+ .nx-columns__note {
1276
+ margin: 6px 0 0;
1277
+ padding: 0 var(--nx-space-2);
1278
+ color: var(--nx-text-muted);
1279
+ font-size: var(--nx-text-xs);
1280
+ line-height: 1.4;
1281
+ }
1282
+
1283
+ .nx-columns__foot {
1284
+ display: flex;
1285
+ justify-content: flex-end;
1286
+ margin-top: var(--nx-space-2);
1287
+ padding-top: var(--nx-space-2);
1288
+ border-top: 1px solid var(--nx-border);
1289
+ }
1290
+
1291
+ @media (prefers-reduced-motion: reduce) {
1292
+ .nx-columns:popover-open {
1293
+ animation: none;
1294
+ }
1295
+ }
1296
+ }