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.
- package/CHANGELOG.md +262 -0
- package/LICENSE +21 -0
- package/README.md +1000 -0
- package/dist/Client.Index.d.ts +55 -0
- package/dist/Client.Index.js +60 -0
- package/dist/Components/Chats/Chat.d.ts +28 -0
- package/dist/Components/Chats/Chat.js +19 -0
- package/dist/Components/Chats/ChatButton.d.ts +26 -0
- package/dist/Components/Chats/ChatButton.js +41 -0
- package/dist/Components/Chats/ChatComposer.d.ts +41 -0
- package/dist/Components/Chats/ChatComposer.js +177 -0
- package/dist/Components/Chats/ChatConversations.d.ts +35 -0
- package/dist/Components/Chats/ChatConversations.js +38 -0
- package/dist/Components/Chats/ChatPanel.d.ts +66 -0
- package/dist/Components/Chats/ChatPanel.js +94 -0
- package/dist/Components/Chats/ChatParts.d.ts +87 -0
- package/dist/Components/Chats/ChatParts.js +100 -0
- package/dist/Components/Chats/ChatThread.d.ts +22 -0
- package/dist/Components/Chats/ChatThread.js +96 -0
- package/dist/Components/Documents/Button.d.ts +29 -0
- package/dist/Components/Documents/Button.js +11 -0
- package/dist/Components/Documents/Menu.d.ts +102 -0
- package/dist/Components/Documents/Menu.js +242 -0
- package/dist/Components/Documents/SplitButton.d.ts +64 -0
- package/dist/Components/Documents/SplitButton.js +129 -0
- package/dist/Components/Documents/TabButtons.d.ts +80 -0
- package/dist/Components/Documents/TabButtons.js +38 -0
- package/dist/Components/Forms/ApiForm.d.ts +23 -0
- package/dist/Components/Forms/ApiForm.js +100 -0
- package/dist/Components/Forms/Crud.d.ts +17 -0
- package/dist/Components/Forms/Crud.js +708 -0
- package/dist/Components/Forms/CrudParts.d.ts +15 -0
- package/dist/Components/Forms/CrudParts.js +36 -0
- package/dist/Components/Forms/ExcelImport.d.ts +42 -0
- package/dist/Components/Forms/ExcelImport.js +190 -0
- package/dist/Components/Forms/Form.d.ts +52 -0
- package/dist/Components/Forms/Form.js +323 -0
- package/dist/Components/Forms/SubmitForm.d.ts +65 -0
- package/dist/Components/Forms/SubmitForm.js +198 -0
- package/dist/Components/Inputs/Calendar.d.ts +69 -0
- package/dist/Components/Inputs/Calendar.js +258 -0
- package/dist/Components/Inputs/CheckBox.d.ts +53 -0
- package/dist/Components/Inputs/CheckBox.js +87 -0
- package/dist/Components/Inputs/CheckBoxGroup.d.ts +20 -0
- package/dist/Components/Inputs/CheckBoxGroup.js +80 -0
- package/dist/Components/Inputs/ChoiceField.d.ts +122 -0
- package/dist/Components/Inputs/ChoiceField.js +169 -0
- package/dist/Components/Inputs/DatePicker.d.ts +54 -0
- package/dist/Components/Inputs/DatePicker.js +246 -0
- package/dist/Components/Inputs/DateRangePicker.d.ts +62 -0
- package/dist/Components/Inputs/DateRangePicker.js +283 -0
- package/dist/Components/Inputs/DateTimePicker.d.ts +75 -0
- package/dist/Components/Inputs/DateTimePicker.js +400 -0
- package/dist/Components/Inputs/Dropdown.d.ts +117 -0
- package/dist/Components/Inputs/Dropdown.js +839 -0
- package/dist/Components/Inputs/DropdownParts.d.ts +84 -0
- package/dist/Components/Inputs/DropdownParts.js +102 -0
- package/dist/Components/Inputs/EditorShell.d.ts +45 -0
- package/dist/Components/Inputs/EditorShell.js +214 -0
- package/dist/Components/Inputs/Field.d.ts +53 -0
- package/dist/Components/Inputs/Field.js +16 -0
- package/dist/Components/Inputs/GroupForm.d.ts +20 -0
- package/dist/Components/Inputs/GroupForm.js +172 -0
- package/dist/Components/Inputs/InputField.d.ts +59 -0
- package/dist/Components/Inputs/InputField.js +169 -0
- package/dist/Components/Inputs/InputRenderer.d.ts +37 -0
- package/dist/Components/Inputs/InputRenderer.js +99 -0
- package/dist/Components/Inputs/MarkdownEditor.d.ts +67 -0
- package/dist/Components/Inputs/MarkdownEditor.js +289 -0
- package/dist/Components/Inputs/NumberBox.d.ts +53 -0
- package/dist/Components/Inputs/NumberBox.js +228 -0
- package/dist/Components/Inputs/RadioGroup.d.ts +20 -0
- package/dist/Components/Inputs/RadioGroup.js +43 -0
- package/dist/Components/Inputs/ReadOnlyNotice.d.ts +36 -0
- package/dist/Components/Inputs/ReadOnlyNotice.js +117 -0
- package/dist/Components/Inputs/RichTextEditor.d.ts +103 -0
- package/dist/Components/Inputs/RichTextEditor.js +1170 -0
- package/dist/Components/Inputs/RichTextParts.d.ts +63 -0
- package/dist/Components/Inputs/RichTextParts.js +157 -0
- package/dist/Components/Inputs/RowsInput.d.ts +115 -0
- package/dist/Components/Inputs/RowsInput.js +308 -0
- package/dist/Components/Inputs/Slider.d.ts +87 -0
- package/dist/Components/Inputs/Slider.js +216 -0
- package/dist/Components/Inputs/TabularForm.d.ts +27 -0
- package/dist/Components/Inputs/TabularForm.js +348 -0
- package/dist/Components/Inputs/TextArea.d.ts +43 -0
- package/dist/Components/Inputs/TextArea.js +31 -0
- package/dist/Components/Inputs/TextBox.d.ts +52 -0
- package/dist/Components/Inputs/TextBox.js +58 -0
- package/dist/Components/Inputs/TextField.d.ts +31 -0
- package/dist/Components/Inputs/TextField.js +35 -0
- package/dist/Components/Inputs/TimePanel.d.ts +34 -0
- package/dist/Components/Inputs/TimePanel.js +288 -0
- package/dist/Components/Inputs/TimePicker.d.ts +54 -0
- package/dist/Components/Inputs/TimePicker.js +240 -0
- package/dist/Components/Inputs/TreeView.d.ts +160 -0
- package/dist/Components/Inputs/TreeView.js +947 -0
- package/dist/Components/Layouts/MessageBox.d.ts +71 -0
- package/dist/Components/Layouts/MessageBox.js +104 -0
- package/dist/Components/Layouts/Popup.d.ts +92 -0
- package/dist/Components/Layouts/Popup.js +376 -0
- package/dist/Components/Layouts/PopupContext.d.ts +2 -0
- package/dist/Components/Layouts/PopupContext.js +4 -0
- package/dist/Components/Layouts/PopupDock.d.ts +22 -0
- package/dist/Components/Layouts/PopupDock.js +121 -0
- package/dist/Components/Layouts/PopupHost.d.ts +56 -0
- package/dist/Components/Layouts/PopupHost.js +163 -0
- package/dist/Components/Layouts/PopupRules.d.ts +30 -0
- package/dist/Components/Layouts/PopupRules.js +63 -0
- package/dist/Components/Layouts/ThemePicker.d.ts +13 -0
- package/dist/Components/Layouts/ThemePicker.js +22 -0
- package/dist/Components/Layouts/ThemeScript.d.ts +14 -0
- package/dist/Components/Layouts/ThemeScript.js +13 -0
- package/dist/Components/Layouts/ThemeSwitcher.d.ts +13 -0
- package/dist/Components/Layouts/ThemeSwitcher.js +49 -0
- package/dist/Components/Layouts/Toaster.d.ts +76 -0
- package/dist/Components/Layouts/Toaster.js +172 -0
- package/dist/Components/Viewers/DataTable.d.ts +25 -0
- package/dist/Components/Viewers/DataTable.js +596 -0
- package/dist/Components/Viewers/DataTableColumns.d.ts +28 -0
- package/dist/Components/Viewers/DataTableColumns.js +243 -0
- package/dist/Components/Viewers/DataTableParts.d.ts +138 -0
- package/dist/Components/Viewers/DataTableParts.js +157 -0
- package/dist/Components/Viewers/MarkdownView.d.ts +26 -0
- package/dist/Components/Viewers/MarkdownView.js +79 -0
- package/dist/Components/Viewers/RichTextView.d.ts +18 -0
- package/dist/Components/Viewers/RichTextView.js +17 -0
- package/dist/Helpers/AnimationHelpers.d.ts +6 -0
- package/dist/Helpers/AnimationHelpers.js +35 -0
- package/dist/Helpers/ApiClient.d.ts +96 -0
- package/dist/Helpers/ApiClient.js +200 -0
- package/dist/Helpers/ApiFormHelpers.d.ts +49 -0
- package/dist/Helpers/ApiFormHelpers.js +120 -0
- package/dist/Helpers/ApiModules.d.ts +131 -0
- package/dist/Helpers/ApiModules.js +195 -0
- package/dist/Helpers/ApiResponses.d.ts +51 -0
- package/dist/Helpers/ApiResponses.js +250 -0
- package/dist/Helpers/ApiRoutes.d.ts +140 -0
- package/dist/Helpers/ApiRoutes.js +183 -0
- package/dist/Helpers/ApiToasts.d.ts +21 -0
- package/dist/Helpers/ApiToasts.js +22 -0
- package/dist/Helpers/ChatBackend.d.ts +134 -0
- package/dist/Helpers/ChatBackend.js +332 -0
- package/dist/Helpers/ChatHelpers.d.ts +189 -0
- package/dist/Helpers/ChatHelpers.js +486 -0
- package/dist/Helpers/ChatHooks.d.ts +81 -0
- package/dist/Helpers/ChatHooks.js +175 -0
- package/dist/Helpers/ChatStore.d.ts +132 -0
- package/dist/Helpers/ChatStore.js +394 -0
- package/dist/Helpers/ChatSummaries.d.ts +39 -0
- package/dist/Helpers/ChatSummaries.js +118 -0
- package/dist/Helpers/ClassHelpers.d.ts +3 -0
- package/dist/Helpers/ClassHelpers.js +4 -0
- package/dist/Helpers/CrudBackend.d.ts +98 -0
- package/dist/Helpers/CrudBackend.js +214 -0
- package/dist/Helpers/CrudHelpers.d.ts +111 -0
- package/dist/Helpers/CrudHelpers.js +267 -0
- package/dist/Helpers/DateHelpers.d.ts +88 -0
- package/dist/Helpers/DateHelpers.js +363 -0
- package/dist/Helpers/DatePreferences.d.ts +14 -0
- package/dist/Helpers/DatePreferences.js +94 -0
- package/dist/Helpers/DateTimeHelpers.d.ts +87 -0
- package/dist/Helpers/DateTimeHelpers.js +286 -0
- package/dist/Helpers/DragHelpers.d.ts +129 -0
- package/dist/Helpers/DragHelpers.js +281 -0
- package/dist/Helpers/DropdownHelpers.d.ts +56 -0
- package/dist/Helpers/DropdownHelpers.js +180 -0
- package/dist/Helpers/ExcelBackend.d.ts +106 -0
- package/dist/Helpers/ExcelBackend.js +290 -0
- package/dist/Helpers/ExcelHelpers.d.ts +98 -0
- package/dist/Helpers/ExcelHelpers.js +302 -0
- package/dist/Helpers/FormDrafts.d.ts +18 -0
- package/dist/Helpers/FormDrafts.js +76 -0
- package/dist/Helpers/FormStore.d.ts +233 -0
- package/dist/Helpers/FormStore.js +752 -0
- package/dist/Helpers/InputParamsHelpers.d.ts +79 -0
- package/dist/Helpers/InputParamsHelpers.js +388 -0
- package/dist/Helpers/MarkdownEditing.d.ts +27 -0
- package/dist/Helpers/MarkdownEditing.js +250 -0
- package/dist/Helpers/MarkdownHelpers.d.ts +82 -0
- package/dist/Helpers/MarkdownHelpers.js +775 -0
- package/dist/Helpers/MessageBuilder.d.ts +74 -0
- package/dist/Helpers/MessageBuilder.js +252 -0
- package/dist/Helpers/NepaliCalendar.d.ts +25 -0
- package/dist/Helpers/NepaliCalendar.js +107 -0
- package/dist/Helpers/NumberHelpers.d.ts +71 -0
- package/dist/Helpers/NumberHelpers.js +202 -0
- package/dist/Helpers/Permissions.d.ts +62 -0
- package/dist/Helpers/Permissions.js +133 -0
- package/dist/Helpers/PopoverHelpers.d.ts +68 -0
- package/dist/Helpers/PopoverHelpers.js +195 -0
- package/dist/Helpers/RichTextHelpers.d.ts +77 -0
- package/dist/Helpers/RichTextHelpers.js +1072 -0
- package/dist/Helpers/RowsStore.d.ts +166 -0
- package/dist/Helpers/RowsStore.js +606 -0
- package/dist/Helpers/TableColumns.d.ts +47 -0
- package/dist/Helpers/TableColumns.js +282 -0
- package/dist/Helpers/TableExport.d.ts +30 -0
- package/dist/Helpers/TableExport.js +97 -0
- package/dist/Helpers/TableHelpers.d.ts +110 -0
- package/dist/Helpers/TableHelpers.js +301 -0
- package/dist/Helpers/TableStore.d.ts +142 -0
- package/dist/Helpers/TableStore.js +530 -0
- package/dist/Helpers/ThemeHelpers.d.ts +15 -0
- package/dist/Helpers/ThemeHelpers.js +16 -0
- package/dist/Helpers/TimeHelpers.d.ts +73 -0
- package/dist/Helpers/TimeHelpers.js +253 -0
- package/dist/Helpers/TreeStore.d.ts +188 -0
- package/dist/Helpers/TreeStore.js +577 -0
- package/dist/Helpers/ValidationHelpers.d.ts +124 -0
- package/dist/Helpers/ValidationHelpers.js +301 -0
- package/dist/Interfaces/ApiInterfaces.d.ts +174 -0
- package/dist/Interfaces/ApiInterfaces.js +30 -0
- package/dist/Interfaces/ChatInterfaces.d.ts +240 -0
- package/{src/sso-client.tsx → dist/Interfaces/ChatInterfaces.js} +1 -1
- package/dist/Interfaces/CrudInterfaces.d.ts +232 -0
- package/dist/Interfaces/CrudInterfaces.js +1 -0
- package/dist/Interfaces/DateInterfaces.d.ts +154 -0
- package/dist/Interfaces/DateInterfaces.js +29 -0
- package/dist/Interfaces/ExcelInterfaces.d.ts +215 -0
- package/dist/Interfaces/ExcelInterfaces.js +45 -0
- package/dist/Interfaces/FormInterfaces.d.ts +402 -0
- package/dist/Interfaces/FormInterfaces.js +1 -0
- package/dist/Interfaces/InputInterfaces.d.ts +141 -0
- package/dist/Interfaces/InputInterfaces.js +1 -0
- package/dist/Interfaces/MessageInterfaces.d.ts +111 -0
- package/dist/Interfaces/MessageInterfaces.js +5 -0
- package/dist/Interfaces/TableInterfaces.d.ts +351 -0
- package/dist/Interfaces/TableInterfaces.js +1 -0
- package/dist/Interfaces/ThemeInterfaces.d.ts +17 -0
- package/dist/Interfaces/ThemeInterfaces.js +17 -0
- package/dist/Interfaces/TypeInterfaces.d.ts +4 -0
- package/dist/Interfaces/TypeInterfaces.js +1 -0
- package/dist/Server.Index.d.ts +2 -0
- package/dist/Server.Index.js +5 -0
- package/dist/Services/ApiProxy.d.ts +32 -0
- package/dist/Services/ApiProxy.js +111 -0
- package/dist/Services/BrowserApi.d.ts +95 -0
- package/dist/Services/BrowserApi.js +129 -0
- package/dist/Services/ChatApi.d.ts +37 -0
- package/dist/Services/ChatApi.js +98 -0
- package/dist/Services/ExcelApi.d.ts +46 -0
- package/dist/Services/ExcelApi.js +196 -0
- package/dist/Services/ServerApi.d.ts +54 -0
- package/dist/Services/ServerApi.js +78 -0
- package/dist/Services/ThemeService.d.ts +17 -0
- package/dist/Services/ThemeService.js +83 -0
- package/dist/Shared.Index.d.ts +51 -0
- package/dist/Shared.Index.js +55 -0
- package/package.json +85 -33
- package/src/Styles/Nexus.Base.css +70 -0
- package/src/Styles/Nexus.Button.css +153 -0
- package/src/Styles/Nexus.Calendar.css +275 -0
- package/src/Styles/Nexus.Chat.css +1489 -0
- package/src/Styles/Nexus.Choice.css +345 -0
- package/src/Styles/Nexus.Crud.css +161 -0
- package/src/Styles/Nexus.DateTime.css +81 -0
- package/src/Styles/Nexus.Dropdown.css +774 -0
- package/src/Styles/Nexus.Editor.css +297 -0
- package/src/Styles/Nexus.Excel.css +370 -0
- package/src/Styles/Nexus.Form.css +321 -0
- package/src/Styles/Nexus.Index.css +36 -0
- package/src/Styles/Nexus.Input.css +637 -0
- package/src/Styles/Nexus.Markdown.css +265 -0
- package/src/Styles/Nexus.Menu.css +259 -0
- package/src/Styles/Nexus.Popup.css +731 -0
- package/src/Styles/Nexus.RichText.css +463 -0
- package/src/Styles/Nexus.Rows.css +596 -0
- package/src/Styles/Nexus.Slider.css +278 -0
- package/src/Styles/Nexus.Tab.Buttons.css +419 -0
- package/src/Styles/Nexus.Table.css +1296 -0
- package/src/Styles/Nexus.Theme.Picker.css +232 -0
- package/src/Styles/Nexus.Themes.css +194 -0
- package/src/Styles/Nexus.Time.css +147 -0
- package/src/Styles/Nexus.Toast.css +265 -0
- package/src/Styles/Nexus.Tokens.css +72 -0
- package/src/Styles/Nexus.Tree.css +435 -0
- package/src/api-services/authentication-service.tsx +0 -23
- package/src/api-services/preference-service.tsx +0 -5
- package/src/api-services/system-service.tsx +0 -29
- package/src/client.ts +0 -31
- package/src/components/documents/button.tsx +0 -133
- package/src/components/documents/icon-box.tsx +0 -93
- package/src/components/documents/page-title.tsx +0 -7
- package/src/components/documents/tab-button.tsx +0 -172
- package/src/components/documents/tag.tsx +0 -30
- package/src/components/index.js +0 -0
- package/src/components/inputs/checkbox-input.tsx +0 -66
- package/src/components/inputs/input-box.tsx +0 -48
- package/src/components/inputs/input-element.tsx +0 -65
- package/src/components/inputs/input-form.tsx +0 -164
- package/src/components/inputs/input.tsx +0 -181
- package/src/components/inputs/number-input.tsx +0 -108
- package/src/components/inputs/radiobox-input.tsx +0 -53
- package/src/components/inputs/textarea-input.tsx +0 -47
- package/src/components/inputs/textbox-input.tsx +0 -45
- package/src/components/layouts/global-dialogbox.tsx +0 -431
- package/src/components/layouts/global-layout.tsx +0 -64
- package/src/components/layouts/layout-helpers.tsx +0 -20
- package/src/components/layouts/panels/user-panel.tsx +0 -112
- package/src/components/layouts/utility-menu.tsx +0 -49
- package/src/components/panels/theme-panel.tsx +0 -46
- package/src/helpers/bitwise-helpers.tsx +0 -11
- package/src/helpers/browser-helpers.tsx +0 -156
- package/src/helpers/datasource-helpers.tsx +0 -99
- package/src/helpers/element-helpers.tsx +0 -123
- package/src/helpers/input-helpers.tsx +0 -74
- package/src/helpers/string-helpers.tsx +0 -28
- package/src/helpers/utility-helpers.tsx +0 -45
- package/src/helpers/validation-helpers.tsx +0 -302
- package/src/index.ts +0 -26
- package/src/interface.ts +0 -19
- package/src/interfaces/auth-token-interfaces.tsx +0 -6
- package/src/interfaces/browser-interfaces.tsx +0 -36
- package/src/interfaces/button-interfaces.tsx +0 -63
- package/src/interfaces/datasource-interfaces.tsx +0 -22
- package/src/interfaces/datatable-interfaces.tsx +0 -25
- package/src/interfaces/dialogbox-interfaces.tsx +0 -5
- package/src/interfaces/exception-interfaces.tsx +0 -99
- package/src/interfaces/http-interfaces.tsx +0 -129
- package/src/interfaces/icon-interfaces.tsx +0 -129
- package/src/interfaces/input-interfaces.tsx +0 -410
- package/src/interfaces/layout-interfaces.tsx +0 -191
- package/src/interfaces/menu-interfaces.tsx +0 -53
- package/src/interfaces/message-interfaces.tsx +0 -32
- package/src/interfaces/permission-interfaces.tsx +0 -9
- package/src/interfaces/storage-interfaces.tsx +0 -5
- package/src/interfaces/system-interfaces.tsx +0 -22
- package/src/interfaces/theme-interfaces.tsx +0 -123
- package/src/interfaces/type-interfaces.tsx +0 -28
- package/src/interfaces/user-interfaces.tsx +0 -47
- package/src/nexus-client.tsx +0 -21
- package/src/nexus.environments.tsx +0 -66
- package/src/proxy-api/proxy-backend.tsx +0 -60
- package/src/proxy-api/proxy-constants.tsx +0 -28
- package/src/proxy-api/proxy-helpers.tsx +0 -91
- package/src/proxy-api-client.tsx +0 -1
- package/src/proxy-api-server.tsx +0 -2
- package/src/services/http-client-services.tsx +0 -75
- package/src/services/http-services.tsx +0 -158
- package/src/services/loader-service.tsx +0 -185
- package/src/services/localstorage-service.tsx +0 -119
- package/src/services/message-services.tsx +0 -383
- package/src/services/theme-service.tsx +0 -163
- package/src/services/user-services.tsx +0 -10
- package/src/sso-config/auth-token-validation.ts +0 -16
- package/src/sso-config/callback-route.tsx +0 -35
- package/src/sso-config/cookie-encryption.ts +0 -51
- package/src/sso-config/cookie-helpers.tsx +0 -102
- package/src/sso-config/forgot-password-route.tsx +0 -36
- package/src/sso-config/oauth-callback-state.ts +0 -61
- package/src/sso-config/pkce-helpers.ts +0 -9
- package/src/sso-config/provider-complete-route.tsx +0 -18
- package/src/sso-config/redirect-context-actions.tsx +0 -45
- package/src/sso-config/redirect-context-helpers.tsx +0 -159
- package/src/sso-config/redirect-context-persist.tsx +0 -18
- package/src/sso-config/redirect-context-route.tsx +0 -45
- package/src/sso-config/refresh-route.tsx +0 -23
- package/src/sso-config/sign-in-route.tsx +0 -74
- package/src/sso-config/sign-out-route.tsx +0 -57
- package/src/sso-config/sign-up-route.tsx +0 -57
- package/src/sso-config/sso-backend-flow.ts +0 -38
- package/src/sso-config/sso-complete-route.tsx +0 -50
- package/src/sso-config/sso-config.ts +0 -59
- package/src/sso-config/sso-interfaces.tsx +0 -99
- package/src/sso-config/sso-response-helpers.tsx +0 -20
- package/src/sso-server.tsx +0 -21
- package/src/styles/nexus.animation.css +0 -269
- package/src/styles/nexus.core.css +0 -119
- package/src/styles/nexus.dialog.css +0 -144
- package/src/styles/nexus.grid-view.css +0 -42
- package/src/styles/nexus.icon.css +0 -51
- package/src/styles/nexus.input.css +0 -207
- package/src/styles/nexus.loader.css +0 -11
- package/src/styles/nexus.logic.css +0 -47
- package/src/styles/nexus.utility.css +0 -347
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Forms: inputs on a 12-column grid, the note of a restored draft, placeholders while the values load, and the bar with
|
|
3
|
+
* the status line and the buttons.
|
|
4
|
+
*/
|
|
5
|
+
@layer nexus.components {
|
|
6
|
+
.nx-form {
|
|
7
|
+
position: relative;
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
gap: var(--nx-space-4);
|
|
11
|
+
min-width: 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.nx-form__grid {
|
|
15
|
+
container-type: inline-size;
|
|
16
|
+
display: grid;
|
|
17
|
+
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
18
|
+
align-items: start;
|
|
19
|
+
gap: var(--nx-form-row-gap, var(--nx-space-5)) var(--nx-form-column-gap, var(--nx-space-4));
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* A heading that names the inputs under it. It takes a row of its own, across the whole grid. */
|
|
23
|
+
.nx-form__section {
|
|
24
|
+
grid-column: 1 / -1;
|
|
25
|
+
margin: 0;
|
|
26
|
+
color: var(--nx-text);
|
|
27
|
+
font-size: var(--nx-text-sm);
|
|
28
|
+
font-weight: 600;
|
|
29
|
+
line-height: 1.3;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* One that follows inputs stands away from them; the first one keeps the form's own top. */
|
|
33
|
+
.nx-form__section:not(:first-child) {
|
|
34
|
+
margin-top: var(--nx-space-2);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.nx-form--sm .nx-form__section {
|
|
38
|
+
font-size: var(--nx-text-xs);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.nx-form--lg .nx-form__section {
|
|
42
|
+
font-size: var(--nx-text-md);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.nx-form__cell {
|
|
46
|
+
grid-column: span var(--nx-span, 12);
|
|
47
|
+
min-width: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* A checkbox, switch, or radio lines up with the boxes beside it. */
|
|
51
|
+
.nx-form__cell--choice {
|
|
52
|
+
display: flex;
|
|
53
|
+
align-self: end;
|
|
54
|
+
align-items: center;
|
|
55
|
+
min-height: var(--nx-control-md);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.nx-form--sm .nx-form__cell--choice {
|
|
59
|
+
min-height: var(--nx-control-sm);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.nx-form--lg .nx-form__cell--choice {
|
|
63
|
+
min-height: var(--nx-control-lg);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/*
|
|
67
|
+
* Beside labeled boxes, a choice starts under the room of their labels and centers on their boxes, so a message under a
|
|
68
|
+
* box beside it does not move it. The label's line is 1.3 times its font, and 6px separate it from the box.
|
|
69
|
+
*/
|
|
70
|
+
.nx-form__cell--choice[data-beside] {
|
|
71
|
+
--nx-form-label-room: calc(var(--nx-text-sm) * 1.3 + 6px);
|
|
72
|
+
align-self: start;
|
|
73
|
+
min-height: calc(var(--nx-form-label-room) + var(--nx-control-md));
|
|
74
|
+
padding-top: var(--nx-form-label-room);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.nx-form--sm .nx-form__cell--choice[data-beside] {
|
|
78
|
+
--nx-form-label-room: calc(var(--nx-text-xs) * 1.3 + 6px);
|
|
79
|
+
min-height: calc(var(--nx-form-label-room) + var(--nx-control-sm));
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.nx-form--lg .nx-form__cell--choice[data-beside] {
|
|
83
|
+
--nx-form-label-room: calc(var(--nx-text-md) * 1.3 + 6px);
|
|
84
|
+
min-height: calc(var(--nx-form-label-room) + var(--nx-control-lg));
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* Three or four inputs to a row become two on a medium form, and every input takes the whole width on a narrow one. */
|
|
88
|
+
@container (max-width: 48rem) {
|
|
89
|
+
.nx-form__cell:is([data-span="1"], [data-span="2"], [data-span="3"]) {
|
|
90
|
+
grid-column: span 6;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@container (max-width: 34rem) {
|
|
95
|
+
.nx-form__cell,
|
|
96
|
+
.nx-form__cell:is([data-span="1"], [data-span="2"], [data-span="3"]) {
|
|
97
|
+
grid-column: span 12;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.nx-form__cell--choice,
|
|
101
|
+
.nx-form__cell--choice[data-beside] {
|
|
102
|
+
min-height: 0;
|
|
103
|
+
padding-top: 0;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.nx-form__message {
|
|
108
|
+
margin: 0;
|
|
109
|
+
font-size: var(--nx-text-sm);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* A restored draft */
|
|
113
|
+
.nx-form__notice {
|
|
114
|
+
display: flex;
|
|
115
|
+
flex-wrap: wrap;
|
|
116
|
+
align-items: center;
|
|
117
|
+
gap: var(--nx-space-1) var(--nx-space-2);
|
|
118
|
+
padding: var(--nx-space-2) var(--nx-space-2) var(--nx-space-2) var(--nx-space-3);
|
|
119
|
+
border-radius: var(--nx-radius);
|
|
120
|
+
background: var(--nx-info-soft);
|
|
121
|
+
color: var(--nx-text);
|
|
122
|
+
font-size: var(--nx-text-sm);
|
|
123
|
+
line-height: 1.4;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.nx-form__notice > .nx-icon {
|
|
127
|
+
width: 1.3em;
|
|
128
|
+
height: 1.3em;
|
|
129
|
+
color: var(--nx-info);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.nx-form__notice-text {
|
|
133
|
+
flex: 1 1 16rem;
|
|
134
|
+
min-width: 0;
|
|
135
|
+
margin: 0;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.nx-form__notice-text strong {
|
|
139
|
+
font-weight: 600;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.nx-form__notice .nx-btn {
|
|
143
|
+
margin-block: -4px;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/* Placeholders while the values load, in the shape of the inputs to come. */
|
|
147
|
+
.nx-form__skeleton {
|
|
148
|
+
display: flex;
|
|
149
|
+
flex-direction: column;
|
|
150
|
+
gap: 6px;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/* A checkbox's placeholder starts where its box would. */
|
|
154
|
+
.nx-form__skeleton.nx-form__cell--choice {
|
|
155
|
+
flex-direction: row;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.nx-form__skeleton-label,
|
|
159
|
+
.nx-form__skeleton-box {
|
|
160
|
+
display: block;
|
|
161
|
+
border-radius: var(--nx-radius-sm);
|
|
162
|
+
background: color-mix(in oklab, var(--nx-text) 9%, transparent);
|
|
163
|
+
animation: nx-form-pulse 1.6s ease-in-out infinite;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/* The label's line: 1.3 × the label font, with the text's height as the bar. */
|
|
167
|
+
.nx-form__skeleton-label {
|
|
168
|
+
width: min(40%, 10rem);
|
|
169
|
+
height: 0.85em;
|
|
170
|
+
margin-block: 0.225em;
|
|
171
|
+
font-size: var(--nx-text-sm);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.nx-form__skeleton-box {
|
|
175
|
+
height: var(--nx-control-md);
|
|
176
|
+
border-radius: var(--nx-radius);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.nx-form--sm .nx-form__skeleton-box {
|
|
180
|
+
height: var(--nx-control-sm);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.nx-form--lg .nx-form__skeleton-box {
|
|
184
|
+
height: var(--nx-control-lg);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.nx-form__skeleton-box--tall,
|
|
188
|
+
.nx-form--sm .nx-form__skeleton-box--tall,
|
|
189
|
+
.nx-form--lg .nx-form__skeleton-box--tall {
|
|
190
|
+
height: calc(var(--nx-control-md) * 2.75);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.nx-form__skeleton-box--choice,
|
|
194
|
+
.nx-form--sm .nx-form__skeleton-box--choice,
|
|
195
|
+
.nx-form--lg .nx-form__skeleton-box--choice {
|
|
196
|
+
width: min(60%, 12rem);
|
|
197
|
+
height: 1.1em;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
@keyframes nx-form-pulse {
|
|
201
|
+
50% {
|
|
202
|
+
opacity: 0.45;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
@media (prefers-reduced-motion: reduce) {
|
|
207
|
+
.nx-form__skeleton-label,
|
|
208
|
+
.nx-form__skeleton-box {
|
|
209
|
+
animation: none;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/* SubmitForm */
|
|
214
|
+
.nx-submit-form {
|
|
215
|
+
display: flex;
|
|
216
|
+
flex-direction: column;
|
|
217
|
+
gap: var(--nx-space-6);
|
|
218
|
+
min-width: 0;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/* The bar: the status line and the buttons, which wrap under it on a narrow form. */
|
|
222
|
+
.nx-form-buttons {
|
|
223
|
+
display: flex;
|
|
224
|
+
flex-wrap: wrap;
|
|
225
|
+
align-items: center;
|
|
226
|
+
gap: var(--nx-space-3) var(--nx-space-4);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.nx-form-buttons__actions {
|
|
230
|
+
display: flex;
|
|
231
|
+
flex-wrap: wrap;
|
|
232
|
+
align-items: center;
|
|
233
|
+
gap: var(--nx-space-2);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.nx-form-buttons--end .nx-form-buttons__actions {
|
|
237
|
+
margin-left: auto;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.nx-form-status {
|
|
241
|
+
display: flex;
|
|
242
|
+
flex: 1 1 14rem;
|
|
243
|
+
align-items: flex-start;
|
|
244
|
+
gap: 6px;
|
|
245
|
+
min-width: 0;
|
|
246
|
+
margin: 0;
|
|
247
|
+
color: var(--nx-text-muted);
|
|
248
|
+
font-size: var(--nx-text-sm);
|
|
249
|
+
line-height: 1.45;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.nx-form-status .nx-icon {
|
|
253
|
+
flex-shrink: 0;
|
|
254
|
+
width: 1.3em;
|
|
255
|
+
height: 1.3em;
|
|
256
|
+
margin-top: 0.075em;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.nx-form-status--error {
|
|
260
|
+
color: var(--nx-danger);
|
|
261
|
+
font-weight: 500;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.nx-form-status--success {
|
|
265
|
+
color: var(--nx-success);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/* An input's name in the status line: a link-like button that goes to it. */
|
|
269
|
+
.nx-form-status__jump {
|
|
270
|
+
padding: 0;
|
|
271
|
+
border: 0;
|
|
272
|
+
border-radius: 2px;
|
|
273
|
+
background: none;
|
|
274
|
+
color: inherit;
|
|
275
|
+
font: inherit;
|
|
276
|
+
text-decoration: underline;
|
|
277
|
+
text-decoration-thickness: 1px;
|
|
278
|
+
text-underline-offset: 2px;
|
|
279
|
+
cursor: pointer;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.nx-form-status__jump:hover {
|
|
283
|
+
text-decoration-thickness: 2px;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/* ApiForm: the values could not load */
|
|
287
|
+
.nx-form-load-failed {
|
|
288
|
+
display: flex;
|
|
289
|
+
flex-wrap: wrap;
|
|
290
|
+
align-items: center;
|
|
291
|
+
gap: var(--nx-space-2) var(--nx-space-3);
|
|
292
|
+
padding: var(--nx-space-3) var(--nx-space-3) var(--nx-space-3) var(--nx-space-4);
|
|
293
|
+
border-radius: var(--nx-radius);
|
|
294
|
+
background: var(--nx-danger-soft);
|
|
295
|
+
color: var(--nx-text);
|
|
296
|
+
font-size: var(--nx-text-sm);
|
|
297
|
+
line-height: 1.45;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.nx-form-load-failed > .nx-icon {
|
|
301
|
+
width: 1.35em;
|
|
302
|
+
height: 1.35em;
|
|
303
|
+
color: var(--nx-danger);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.nx-form-load-failed p {
|
|
307
|
+
flex: 1 1 16rem;
|
|
308
|
+
min-width: 0;
|
|
309
|
+
margin: 0;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.nx-form-load-failed strong {
|
|
313
|
+
font-weight: 600;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.nx-form-load-failed__actions {
|
|
317
|
+
display: flex;
|
|
318
|
+
gap: var(--nx-space-2);
|
|
319
|
+
margin-left: auto;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* nexus-shared styles: import once, at the root of the app.
|
|
3
|
+
* import "nexus-shared/styles.css";
|
|
4
|
+
*
|
|
5
|
+
* Everything sits in cascade layers, so any style the app writes outside a layer wins without !important.
|
|
6
|
+
* Themes: set data-nx-theme on <html> (nexus, github, nord, dracula, solarized, catppuccin, rose-pine),
|
|
7
|
+
* and data-nx-mode="light" or "dark" to override the system setting. ThemeScript and ThemeSwitcher do both.
|
|
8
|
+
*/
|
|
9
|
+
@layer nexus.tokens, nexus.themes, nexus.base, nexus.components;
|
|
10
|
+
|
|
11
|
+
@import "./Nexus.Tokens.css";
|
|
12
|
+
@import "./Nexus.Themes.css";
|
|
13
|
+
@import "./Nexus.Base.css";
|
|
14
|
+
@import "./Nexus.Button.css";
|
|
15
|
+
@import "./Nexus.Calendar.css";
|
|
16
|
+
@import "./Nexus.Chat.css";
|
|
17
|
+
@import "./Nexus.DateTime.css";
|
|
18
|
+
@import "./Nexus.Choice.css";
|
|
19
|
+
@import "./Nexus.Crud.css";
|
|
20
|
+
@import "./Nexus.Dropdown.css";
|
|
21
|
+
@import "./Nexus.Input.css";
|
|
22
|
+
@import "./Nexus.Editor.css";
|
|
23
|
+
@import "./Nexus.Excel.css";
|
|
24
|
+
@import "./Nexus.Form.css";
|
|
25
|
+
@import "./Nexus.Markdown.css";
|
|
26
|
+
@import "./Nexus.Menu.css";
|
|
27
|
+
@import "./Nexus.Popup.css";
|
|
28
|
+
@import "./Nexus.RichText.css";
|
|
29
|
+
@import "./Nexus.Rows.css";
|
|
30
|
+
@import "./Nexus.Slider.css";
|
|
31
|
+
@import "./Nexus.Tab.Buttons.css";
|
|
32
|
+
@import "./Nexus.Table.css";
|
|
33
|
+
@import "./Nexus.Theme.Picker.css";
|
|
34
|
+
@import "./Nexus.Time.css";
|
|
35
|
+
@import "./Nexus.Toast.css";
|
|
36
|
+
@import "./Nexus.Tree.css";
|