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,596 @@
1
+ @layer nexus.components {
2
+ /*
3
+ * Tabular and group forms: rows of inputs in a table, or as sections. Both sit in a fieldset with a legend, and end
4
+ * with a line that holds the Add button, the rows' message (or a removed row with Undo), and the count.
5
+ */
6
+ .nx-rows {
7
+ min-width: 0;
8
+ margin: 0;
9
+ padding: 0;
10
+ border: 0;
11
+ }
12
+
13
+ .nx-rows__legend {
14
+ margin-bottom: 6px;
15
+ padding: 0;
16
+ }
17
+
18
+ .nx-rows__footer {
19
+ display: flex;
20
+ flex-wrap: wrap;
21
+ align-items: center;
22
+ gap: var(--nx-space-2) var(--nx-space-3);
23
+ margin-top: var(--nx-space-2);
24
+ }
25
+
26
+ .nx-rows__message {
27
+ flex: 1 1 14rem;
28
+ align-items: center;
29
+ min-width: 0;
30
+ margin: 0;
31
+ font-size: var(--nx-text-xs);
32
+ line-height: 1.35;
33
+ }
34
+
35
+ .nx-rows__removed {
36
+ display: flex;
37
+ gap: var(--nx-space-2);
38
+ color: var(--nx-text-muted);
39
+ }
40
+
41
+ .nx-rows__removed .nx-btn {
42
+ margin-block: -4px;
43
+ }
44
+
45
+ .nx-rows__count {
46
+ margin-left: auto;
47
+ color: var(--nx-text-muted);
48
+ font-size: var(--nx-text-xs);
49
+ font-variant-numeric: tabular-nums;
50
+ white-space: nowrap;
51
+ }
52
+
53
+ /*
54
+ * Tabular form. Rows have a fixed height (the component places rows by it, and measures the first one), so every
55
+ * input is one line. Cells are drawn like a sheet: the inputs lose their own box, the grid lines take its place, and
56
+ * the cell with focus gets the ring inside its edges. Messages show under the table, for the input with focus.
57
+ */
58
+ .nx-tabular {
59
+ --nx-tabular-row: calc(var(--nx-control-md) + 1px);
60
+ --nx-tabular-menu: 22px;
61
+ --nx-tabular-line: var(--nx-border);
62
+ /*
63
+ * The sheet keeps the strong edge. Making it the plain border to answer "boxes inside boxes" put the frame below
64
+ * the edge of every input box beside it, in all seven themes light and dark, which the library asserts against
65
+ * (`tabular-form.cjs`, "frame edge"): the outermost edge of a control cannot be fainter than the ones inside it.
66
+ */
67
+ --nx-tabular-frame: var(--nx-border-strong);
68
+ --nx-tabular-bg: var(--nx-surface);
69
+ --nx-tabular-head: color-mix(in oklab, var(--nx-text) 4%, var(--nx-surface));
70
+ --nx-tabular-hover: color-mix(in oklab, var(--nx-text) 3%, var(--nx-surface));
71
+ --nx-tabular-readonly: light-dark(var(--nx-surface-2), var(--nx-bg));
72
+ }
73
+
74
+ .nx-tabular--sm {
75
+ --nx-tabular-row: calc(var(--nx-control-sm) + 1px);
76
+ --nx-tabular-menu: 20px;
77
+ }
78
+
79
+ .nx-tabular--lg {
80
+ --nx-tabular-row: calc(var(--nx-control-lg) + 1px);
81
+ --nx-tabular-menu: 24px;
82
+ }
83
+
84
+ .nx-tabular[data-problem] {
85
+ --nx-tabular-frame: var(--nx-danger);
86
+ }
87
+
88
+ .nx-tabular__viewport {
89
+ position: relative;
90
+ overflow: auto;
91
+ border: 1px solid var(--nx-tabular-frame);
92
+ border-radius: var(--nx-radius);
93
+ background: var(--nx-tabular-bg);
94
+ box-shadow: var(--nx-shadow-sm);
95
+ outline: none;
96
+ /* A focused cell scrolls clear of the header and the fixed columns. */
97
+ scroll-padding: var(--nx-tabular-row) 0 0 var(--nx-tabular-num, 48px);
98
+ scrollbar-width: thin;
99
+ scrollbar-color: color-mix(in oklab, var(--nx-text-subtle) 75%, transparent) transparent;
100
+ transition: border-color var(--nx-duration);
101
+ }
102
+
103
+ .nx-tabular__viewport:focus-visible {
104
+ box-shadow: inset 0 0 0 2px var(--nx-primary);
105
+ }
106
+
107
+ .nx-tabular__table {
108
+ width: 100%;
109
+ }
110
+
111
+ .nx-tabular__row {
112
+ display: grid;
113
+ grid-template-columns: var(--nx-tabular-columns);
114
+ /*
115
+ * One track, exactly the row's height. Without it the track is sized by the tallest cell, so a single
116
+ * textarea of two lines made every cell of its row 20px too tall and drew them over the rows below: the row
117
+ * looked taller than its neighbours, and its focus ring and its edges bled out of it.
118
+ */
119
+ grid-template-rows: minmax(0, 1fr);
120
+ height: var(--nx-tabular-row);
121
+ border-bottom: 1px solid var(--nx-tabular-line);
122
+ background: var(--nx-tabular-bg);
123
+ }
124
+
125
+ /* The last row's line hides under the frame. */
126
+ .nx-tabular__body {
127
+ margin-bottom: -1px;
128
+ }
129
+
130
+ .nx-tabular__body > .nx-tabular__row:hover {
131
+ background: var(--nx-tabular-hover);
132
+ }
133
+
134
+ /* Header: stays at the top while the rows scroll. */
135
+ .nx-tabular__head {
136
+ position: sticky;
137
+ top: 0;
138
+ z-index: 3;
139
+ }
140
+
141
+ .nx-tabular__head > .nx-tabular__row {
142
+ background: var(--nx-tabular-head);
143
+ }
144
+
145
+ .nx-tabular__head-cell {
146
+ display: flex;
147
+ align-items: center;
148
+ gap: 2px;
149
+ min-width: 0;
150
+ padding: 0 10px;
151
+ border-left: 1px solid var(--nx-tabular-line);
152
+ color: var(--nx-text);
153
+ font-size: var(--nx-text-sm);
154
+ font-weight: 600;
155
+ white-space: nowrap;
156
+ }
157
+
158
+ .nx-tabular__head-label {
159
+ overflow: hidden;
160
+ text-overflow: ellipsis;
161
+ }
162
+
163
+ .nx-tabular__head-cell.nx-tabular__cell--number {
164
+ justify-content: flex-end;
165
+ }
166
+
167
+ .nx-tabular__head-cell.nx-tabular__cell--check {
168
+ justify-content: center;
169
+ padding-inline: 6px;
170
+ }
171
+
172
+ /* Cells */
173
+ .nx-tabular__cell {
174
+ display: flex;
175
+ align-items: stretch;
176
+ min-width: 0;
177
+ /* Nothing a cell holds is drawn past its own edges: the ring, the invalid edge and the tint all stop here. */
178
+ min-height: 0;
179
+ overflow: hidden;
180
+ border-left: 1px solid var(--nx-tabular-line);
181
+ }
182
+
183
+ /*
184
+ * A textarea scrolls inside its cell instead of making the cell taller. Its own `rows` would size the row, and
185
+ * its resize grip would let one cell break the alignment of its row: in a grid where every other cell keeps the
186
+ * line, that grip is a handle for making the table wrong, eighteen of them down one column.
187
+ */
188
+ .nx-tabular__cell textarea.nx-field__control {
189
+ height: 100%;
190
+ min-height: 0;
191
+ /* Two classes: the multi-line rule in Nexus.Input.css is two, and one would lose to it in the same layer. */
192
+ resize: none;
193
+ }
194
+
195
+ .nx-tabular__cell > * {
196
+ flex: 1 1 auto;
197
+ min-width: 0;
198
+ }
199
+
200
+ .nx-tabular__cell .nx-field {
201
+ --nx-field-bg: transparent;
202
+ --nx-field-border: transparent;
203
+ --nx-field-border-hover: transparent;
204
+ }
205
+
206
+ .nx-tabular__cell .nx-field:is([data-readonly], [data-disabled]) {
207
+ --nx-field-bg: var(--nx-tabular-readonly);
208
+ }
209
+
210
+ .nx-tabular__cell .nx-field[data-disabled] {
211
+ opacity: 1;
212
+ color: var(--nx-text-muted);
213
+ }
214
+
215
+ .nx-tabular__cell .nx-field__box {
216
+ height: 100%;
217
+ min-height: 0;
218
+ border-radius: 0;
219
+ box-shadow: none;
220
+ }
221
+
222
+ .nx-tabular__cell .nx-field__box:focus-within {
223
+ box-shadow: inset 0 0 0 2px var(--nx-field-accent);
224
+ }
225
+
226
+ .nx-tabular__cell .nx-field[data-invalid] .nx-field__box {
227
+ box-shadow: inset 0 0 0 1px var(--nx-danger);
228
+ }
229
+
230
+ .nx-tabular__cell .nx-field[data-invalid] .nx-field__box:focus-within {
231
+ box-shadow: inset 0 0 0 2px var(--nx-danger);
232
+ }
233
+
234
+ /* The message of the input with focus shows under the table instead. Screen readers still hear it with the input. */
235
+ .nx-tabular__cell :is(.nx-field, .nx-choice-field, .nx-choices) > .nx-field__footer {
236
+ display: none;
237
+ }
238
+
239
+ .nx-tabular__cell--number .nx-field__control {
240
+ text-align: end;
241
+ }
242
+
243
+ .nx-tabular__cell--check {
244
+ align-items: center;
245
+ justify-content: center;
246
+ }
247
+
248
+ .nx-tabular__cell--check > * {
249
+ flex: 0 0 auto;
250
+ }
251
+
252
+ .nx-tabular__cell .nx-choice__control {
253
+ margin: 0;
254
+ }
255
+
256
+ /*
257
+ * A generated cell wears the read-only tint and no lock: the column header carries one lock for the whole
258
+ * column, and the cell still says why under the table when it is used. One fact, said once, not once a row.
259
+ */
260
+ .nx-tabular__cell .nx-field__lock {
261
+ display: none;
262
+ }
263
+
264
+ .nx-tabular__cell--check:has([data-readonly]) {
265
+ background: var(--nx-tabular-readonly);
266
+ }
267
+
268
+ .nx-tabular__head-cell[data-nx-locked] {
269
+ color: var(--nx-text-muted);
270
+ }
271
+
272
+ .nx-tabular__head-lock {
273
+ width: 13px;
274
+ height: 13px;
275
+ margin-left: auto;
276
+ color: var(--nx-text-muted);
277
+ }
278
+
279
+ .nx-tabular__head-cell.nx-tabular__cell--number .nx-tabular__head-lock {
280
+ margin-left: 4px;
281
+ }
282
+
283
+ .nx-tabular__cell .nx-choices {
284
+ display: flex;
285
+ align-items: center;
286
+ padding-inline: 10px;
287
+ }
288
+
289
+ .nx-tabular__cell .nx-choices__options {
290
+ display: flex;
291
+ flex-wrap: nowrap;
292
+ gap: var(--nx-space-3);
293
+ overflow: hidden;
294
+ }
295
+
296
+ /*
297
+ * Row numbers, fixed at the start, with the row's menu beside them. Both have their own place and neither
298
+ * moves: a menu that takes the number's place on hover makes the numbering look broken and the grid unstable.
299
+ */
300
+ .nx-tabular__num {
301
+ position: sticky;
302
+ left: 0;
303
+ z-index: 1;
304
+ display: grid;
305
+ grid-template-columns: minmax(0, 1fr) var(--nx-tabular-menu);
306
+ align-items: center;
307
+ gap: 2px;
308
+ padding-left: 6px;
309
+ border-right: 1px solid var(--nx-tabular-line);
310
+ background: inherit;
311
+ color: var(--nx-text-muted);
312
+ font-size: var(--nx-text-xs);
313
+ font-variant-numeric: tabular-nums;
314
+ }
315
+
316
+ .nx-tabular__head .nx-tabular__num {
317
+ color: var(--nx-text);
318
+ font-weight: 600;
319
+ }
320
+
321
+ /* Right-aligned, so 9 and 10 line up under one another and the menu is always the same distance away. */
322
+ .nx-tabular__num-text {
323
+ text-align: end;
324
+ }
325
+
326
+ .nx-tabular__num + .nx-tabular__cell,
327
+ .nx-tabular__num + .nx-tabular__head-cell {
328
+ border-left: 0;
329
+ }
330
+
331
+ .nx-tabular__num-button {
332
+ display: grid;
333
+ place-items: center;
334
+ width: var(--nx-tabular-menu);
335
+ height: calc(var(--nx-tabular-row) - 8px);
336
+ padding: 0;
337
+ border: 0;
338
+ border-radius: var(--nx-radius-sm);
339
+ background: none;
340
+ /* Muted, like the numbers beside it, so the column reads as one thing; it is the row's only control now. */
341
+ color: var(--nx-text-muted);
342
+ font: inherit;
343
+ cursor: pointer;
344
+ transition:
345
+ background-color var(--nx-duration),
346
+ color var(--nx-duration);
347
+ }
348
+
349
+ .nx-tabular__num-button .nx-icon {
350
+ width: 15px;
351
+ height: 15px;
352
+ }
353
+
354
+ .nx-tabular__num-button:is(:hover, :focus-visible, [aria-expanded="true"]) {
355
+ background: var(--nx-surface-hover);
356
+ color: var(--nx-text);
357
+ }
358
+
359
+ .nx-tabular__num-button:focus-visible {
360
+ outline: 2px solid var(--nx-primary);
361
+ outline-offset: -2px;
362
+ }
363
+
364
+ /* A row with a problem, after a check: a red edge at its start, and a red number. */
365
+ .nx-tabular__row[data-problem] > .nx-tabular__num {
366
+ box-shadow: inset 3px 0 0 var(--nx-danger);
367
+ color: var(--nx-danger);
368
+ font-weight: 600;
369
+ }
370
+
371
+
372
+ .nx-tabular__row--empty {
373
+ display: block;
374
+ height: auto;
375
+ border-bottom: 0;
376
+ }
377
+
378
+ .nx-tabular__empty {
379
+ position: sticky;
380
+ left: 0;
381
+ width: max-content;
382
+ max-width: 100%;
383
+ padding: var(--nx-space-4);
384
+ color: var(--nx-text-muted);
385
+ font-size: var(--nx-text-sm);
386
+ }
387
+
388
+ /*
389
+ * Group form: each row is a section on a light tint, without a border, so the inputs' own boxes are the only frames.
390
+ * The header collapses the section; the inputs sit on a 12-column grid by their span, one column on narrow screens.
391
+ */
392
+ .nx-group-form {
393
+ --nx-group-tint: color-mix(in oklab, var(--nx-text) 3.5%, var(--nx-surface));
394
+ --nx-group-hover: color-mix(in oklab, var(--nx-text) 6%, var(--nx-surface));
395
+ --nx-group-pad: var(--nx-space-4);
396
+ --nx-group-gap: var(--nx-space-4);
397
+ }
398
+
399
+ .nx-group-form--sm {
400
+ --nx-group-pad: var(--nx-space-3);
401
+ --nx-group-gap: var(--nx-space-3);
402
+ }
403
+
404
+ .nx-group-form--lg {
405
+ --nx-group-pad: var(--nx-space-5);
406
+ --nx-group-gap: var(--nx-space-5);
407
+ }
408
+
409
+ .nx-group-form__list {
410
+ display: flex;
411
+ flex-direction: column;
412
+ gap: var(--nx-space-3);
413
+ margin: 0;
414
+ padding: 0;
415
+ list-style: none;
416
+ }
417
+
418
+ .nx-group-form__section {
419
+ border-radius: var(--nx-radius-lg);
420
+ background: var(--nx-group-tint);
421
+ }
422
+
423
+ .nx-group-form__section[data-problem] {
424
+ box-shadow: inset 3px 0 0 var(--nx-danger);
425
+ }
426
+
427
+ .nx-group-form__head {
428
+ display: flex;
429
+ align-items: center;
430
+ gap: var(--nx-space-2);
431
+ padding: 6px 8px 6px 6px;
432
+ }
433
+
434
+ .nx-group-form__toggle,
435
+ .nx-group-form__heading {
436
+ display: flex;
437
+ flex: 1 1 auto;
438
+ align-items: center;
439
+ gap: var(--nx-space-2);
440
+ min-width: 0;
441
+ min-height: 34px;
442
+ padding: 4px 10px 4px 8px;
443
+ color: var(--nx-text);
444
+ font-size: var(--nx-text-md);
445
+ text-align: start;
446
+ }
447
+
448
+ .nx-group-form__heading {
449
+ padding-left: calc(var(--nx-group-pad) - 6px);
450
+ }
451
+
452
+ .nx-group-form__toggle {
453
+ border: 0;
454
+ border-radius: var(--nx-radius);
455
+ background: none;
456
+ font: inherit;
457
+ cursor: pointer;
458
+ transition: background-color var(--nx-duration);
459
+ }
460
+
461
+ .nx-group-form__toggle:hover {
462
+ background: var(--nx-group-hover);
463
+ }
464
+
465
+ .nx-group-form__toggle:focus-visible {
466
+ outline: 2px solid var(--nx-primary);
467
+ outline-offset: 0;
468
+ }
469
+
470
+ .nx-group-form__chevron {
471
+ width: 16px;
472
+ height: 16px;
473
+ color: var(--nx-text-muted);
474
+ transition: transform var(--nx-duration);
475
+ }
476
+
477
+ .nx-group-form__toggle[aria-expanded="false"] .nx-group-form__chevron {
478
+ transform: rotate(-90deg);
479
+ }
480
+
481
+ .nx-group-form__title {
482
+ flex: none;
483
+ font-weight: 600;
484
+ white-space: nowrap;
485
+ }
486
+
487
+ /* A radio this row has on, such as "Primary". Text color on the tint, as tags do. */
488
+ .nx-group-form__tag {
489
+ flex: none;
490
+ padding: 1px 8px;
491
+ border-radius: var(--nx-radius-full);
492
+ background: var(--nx-primary-soft);
493
+ color: var(--nx-text);
494
+ font-size: var(--nx-text-xs);
495
+ font-weight: 500;
496
+ line-height: 1.5;
497
+ }
498
+
499
+ /* Muted text moves toward the text color, so it keeps 4.5:1 on the tint and on the hover tint. */
500
+ .nx-group-form__summary {
501
+ min-width: 0;
502
+ overflow: hidden;
503
+ color: color-mix(in oklab, var(--nx-text-muted), var(--nx-text) 35%);
504
+ font-size: var(--nx-text-sm);
505
+ text-overflow: ellipsis;
506
+ white-space: nowrap;
507
+ }
508
+
509
+ .nx-group-form__problems {
510
+ display: inline-flex;
511
+ flex: none;
512
+ align-items: center;
513
+ gap: 4px;
514
+ margin-left: auto;
515
+ color: var(--nx-danger);
516
+ font-size: var(--nx-text-xs);
517
+ font-weight: 600;
518
+ white-space: nowrap;
519
+ }
520
+
521
+ .nx-group-form__problems .nx-icon {
522
+ width: 14px;
523
+ height: 14px;
524
+ vertical-align: 0;
525
+ }
526
+
527
+ .nx-group-form__actions {
528
+ display: flex;
529
+ flex: none;
530
+ align-items: center;
531
+ gap: 2px;
532
+ }
533
+
534
+ .nx-group-form__actions .nx-btn {
535
+ color: var(--nx-text-muted);
536
+ }
537
+
538
+ .nx-group-form__body {
539
+ container-type: inline-size;
540
+ display: grid;
541
+ grid-template-columns: repeat(12, minmax(0, 1fr));
542
+ align-items: start;
543
+ gap: var(--nx-group-gap);
544
+ padding: 2px var(--nx-group-pad) var(--nx-group-pad);
545
+ }
546
+
547
+ .nx-group-form__cell {
548
+ grid-column: span var(--nx-span, 12);
549
+ min-width: 0;
550
+ }
551
+
552
+ /* A checkbox, switch, or radio lines up with the boxes beside it. */
553
+ .nx-group-form__cell--choice {
554
+ display: flex;
555
+ align-self: end;
556
+ align-items: center;
557
+ min-height: var(--nx-control-md);
558
+ }
559
+
560
+ .nx-group-form--sm .nx-group-form__cell--choice {
561
+ min-height: var(--nx-control-sm);
562
+ }
563
+
564
+ .nx-group-form--lg .nx-group-form__cell--choice {
565
+ min-height: var(--nx-control-lg);
566
+ }
567
+
568
+ @container (max-width: 34rem) {
569
+ .nx-group-form__cell {
570
+ grid-column: span 12;
571
+ }
572
+
573
+ .nx-group-form__cell--choice {
574
+ min-height: 0;
575
+ }
576
+ }
577
+
578
+ .nx-group-form__empty {
579
+ margin: 0;
580
+ padding: var(--nx-space-4);
581
+ border-radius: var(--nx-radius-lg);
582
+ background: var(--nx-group-tint);
583
+ color: color-mix(in oklab, var(--nx-text-muted), var(--nx-text) 35%);
584
+ font-size: var(--nx-text-sm);
585
+ text-align: center;
586
+ }
587
+
588
+ @media (prefers-reduced-motion: reduce) {
589
+ .nx-tabular__viewport,
590
+ .nx-tabular__num-button,
591
+ .nx-group-form__toggle,
592
+ .nx-group-form__chevron {
593
+ transition: none;
594
+ }
595
+ }
596
+ }