nexus-shared 1.1.20 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +903 -0
- package/dist/Client.Index.d.ts +44 -0
- package/dist/Client.Index.js +49 -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 +238 -0
- package/dist/Components/Documents/SplitButton.d.ts +64 -0
- package/dist/Components/Documents/SplitButton.js +127 -0
- package/dist/Components/Documents/TabButtons.d.ts +62 -0
- package/dist/Components/Documents/TabButtons.js +19 -0
- package/dist/Components/Forms/ApiForm.d.ts +21 -0
- package/dist/Components/Forms/ApiForm.js +99 -0
- package/dist/Components/Forms/Crud.d.ts +17 -0
- package/dist/Components/Forms/Crud.js +556 -0
- package/dist/Components/Forms/CrudParts.d.ts +15 -0
- package/dist/Components/Forms/CrudParts.js +36 -0
- package/dist/Components/Forms/Form.d.ts +52 -0
- package/dist/Components/Forms/Form.js +319 -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 +399 -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 +170 -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 +35 -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 +116 -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 +104 -0
- package/dist/Components/Inputs/RowsInput.js +259 -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 +23 -0
- package/dist/Components/Inputs/TabularForm.js +283 -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 +239 -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 +29 -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 +542 -0
- package/dist/Components/Viewers/DataTableParts.d.ts +134 -0
- package/dist/Components/Viewers/DataTableParts.js +145 -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 +74 -0
- package/dist/Helpers/ApiClient.js +197 -0
- package/dist/Helpers/ApiFormHelpers.d.ts +26 -0
- package/dist/Helpers/ApiFormHelpers.js +56 -0
- package/dist/Helpers/ApiModules.d.ts +135 -0
- package/dist/Helpers/ApiModules.js +194 -0
- package/dist/Helpers/ApiResponses.d.ts +41 -0
- package/dist/Helpers/ApiResponses.js +159 -0
- package/dist/Helpers/ApiRoutes.d.ts +150 -0
- package/dist/Helpers/ApiRoutes.js +191 -0
- package/dist/Helpers/ApiToasts.d.ts +21 -0
- package/dist/Helpers/ApiToasts.js +22 -0
- package/dist/Helpers/ClassHelpers.d.ts +3 -0
- package/dist/Helpers/ClassHelpers.js +4 -0
- package/dist/Helpers/CrudBackend.d.ts +56 -0
- package/dist/Helpers/CrudBackend.js +119 -0
- package/dist/Helpers/CrudHelpers.d.ts +76 -0
- package/dist/Helpers/CrudHelpers.js +202 -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/FormDrafts.d.ts +18 -0
- package/dist/Helpers/FormDrafts.js +76 -0
- package/dist/Helpers/FormStore.d.ts +231 -0
- package/dist/Helpers/FormStore.js +734 -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 +254 -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 +43 -0
- package/dist/Helpers/PopoverHelpers.js +91 -0
- package/dist/Helpers/RichTextHelpers.d.ts +77 -0
- package/dist/Helpers/RichTextHelpers.js +1072 -0
- package/dist/Helpers/RowsStore.d.ts +160 -0
- package/dist/Helpers/RowsStore.js +584 -0
- package/dist/Helpers/TableColumns.d.ts +40 -0
- package/dist/Helpers/TableColumns.js +254 -0
- package/dist/Helpers/TableExport.d.ts +30 -0
- package/dist/Helpers/TableExport.js +97 -0
- package/dist/Helpers/TableHelpers.d.ts +102 -0
- package/dist/Helpers/TableHelpers.js +281 -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 +149 -0
- package/dist/Interfaces/ApiInterfaces.js +24 -0
- package/dist/Interfaces/CrudInterfaces.d.ts +171 -0
- package/{src/sso-client.tsx → dist/Interfaces/CrudInterfaces.js} +1 -1
- package/dist/Interfaces/DateInterfaces.d.ts +154 -0
- package/dist/Interfaces/DateInterfaces.js +29 -0
- package/dist/Interfaces/FormInterfaces.d.ts +352 -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 +291 -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 +78 -0
- package/dist/Services/BrowserApi.js +111 -0
- package/dist/Services/ServerApi.d.ts +49 -0
- package/dist/Services/ServerApi.js +75 -0
- package/dist/Services/ThemeService.d.ts +17 -0
- package/dist/Services/ThemeService.js +83 -0
- package/dist/Shared.Index.d.ts +43 -0
- package/dist/Shared.Index.js +47 -0
- package/package.json +82 -33
- package/src/Styles/Nexus.Base.css +70 -0
- package/src/Styles/Nexus.Button.css +151 -0
- package/src/Styles/Nexus.Calendar.css +275 -0
- package/src/Styles/Nexus.Choice.css +345 -0
- package/src/Styles/Nexus.Crud.css +84 -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.Form.css +298 -0
- package/src/Styles/Nexus.Index.css +34 -0
- package/src/Styles/Nexus.Input.css +637 -0
- package/src/Styles/Nexus.Markdown.css +265 -0
- package/src/Styles/Nexus.Menu.css +249 -0
- package/src/Styles/Nexus.Popup.css +731 -0
- package/src/Styles/Nexus.RichText.css +463 -0
- package/src/Styles/Nexus.Rows.css +566 -0
- package/src/Styles/Nexus.Slider.css +278 -0
- package/src/Styles/Nexus.Tab.Buttons.css +364 -0
- package/src/Styles/Nexus.Table.css +1014 -0
- package/src/Styles/Nexus.Theme.Picker.css +159 -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 -34
- package/src/client.ts +0 -31
- package/src/components/documents/button.tsx +0 -142
- 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 -59
- 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 -57
- 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 -49
- 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 -161
- 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.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,297 @@
|
|
|
1
|
+
@layer nexus.components {
|
|
2
|
+
/*
|
|
3
|
+
* The frame of the Markdown and rich text editors (EditorShell.tsx): a field box holding a bar (views, formatting
|
|
4
|
+
* buttons, full screen), a body with a height, and a status bar that is also the height handle. The box, label,
|
|
5
|
+
* hint, error, and read-only and disabled states come from the field (Nexus.Input.css).
|
|
6
|
+
*/
|
|
7
|
+
.nx-editor .nx-field__box {
|
|
8
|
+
align-items: stretch;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
/* Narrow editors stack their parts (the bar, split views). */
|
|
11
|
+
container: nx-editor / inline-size;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.nx-editor__frame {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex: 1 1 auto;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
min-width: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* Bar */
|
|
22
|
+
.nx-editor__bar {
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-wrap: wrap;
|
|
25
|
+
align-items: center;
|
|
26
|
+
gap: 6px var(--nx-space-2);
|
|
27
|
+
padding: 5px 6px;
|
|
28
|
+
border-bottom: 1px solid var(--nx-border);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* Views: small tab buttons with icons, the selected one with its label (TabButtons labels="selected"). */
|
|
32
|
+
.nx-editor__modes {
|
|
33
|
+
flex: 0 0 auto;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* Formatting buttons */
|
|
37
|
+
.nx-editor__tools {
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-wrap: wrap;
|
|
40
|
+
align-items: center;
|
|
41
|
+
gap: 2px;
|
|
42
|
+
min-width: 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.nx-editor__end {
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
gap: 2px;
|
|
49
|
+
margin-left: auto;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.nx-editor__tool {
|
|
53
|
+
display: grid;
|
|
54
|
+
place-items: center;
|
|
55
|
+
width: var(--nx-control-sm);
|
|
56
|
+
height: var(--nx-control-sm);
|
|
57
|
+
padding: 0;
|
|
58
|
+
border: 0;
|
|
59
|
+
border-radius: var(--nx-radius-sm);
|
|
60
|
+
background: none;
|
|
61
|
+
color: var(--nx-text-muted);
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
transition:
|
|
64
|
+
background-color var(--nx-duration),
|
|
65
|
+
color var(--nx-duration);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.nx-editor__tool .nx-icon {
|
|
69
|
+
width: 16px;
|
|
70
|
+
height: 16px;
|
|
71
|
+
vertical-align: 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.nx-editor__tool:hover:not(:disabled) {
|
|
75
|
+
background: var(--nx-surface-hover);
|
|
76
|
+
color: var(--nx-text);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.nx-editor__tool:active:not(:disabled) {
|
|
80
|
+
background: color-mix(in oklab, var(--nx-surface-hover), var(--nx-text) 8%);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.nx-editor__tool:focus-visible {
|
|
84
|
+
outline: 2px solid var(--nx-primary);
|
|
85
|
+
outline-offset: -2px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.nx-editor__tool[aria-pressed="true"] {
|
|
89
|
+
color: var(--nx-primary);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.nx-editor__tool:disabled {
|
|
93
|
+
cursor: not-allowed;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.nx-editor__divider {
|
|
97
|
+
width: 1px;
|
|
98
|
+
height: 16px;
|
|
99
|
+
margin: 0 5px;
|
|
100
|
+
background: var(--nx-border);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.nx-editor__bar .nx-field__lock {
|
|
104
|
+
width: var(--nx-control-sm);
|
|
105
|
+
height: var(--nx-control-sm);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.nx-editor__bar .nx-field__lock .nx-icon {
|
|
109
|
+
width: 16px;
|
|
110
|
+
height: 16px;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/* Body */
|
|
114
|
+
.nx-editor__body {
|
|
115
|
+
display: grid;
|
|
116
|
+
grid-template-columns: minmax(0, 1fr);
|
|
117
|
+
height: var(--nx-editor-height, 280px);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/*
|
|
121
|
+
* Status bar and height handle. The whole bar drags, so the target is easy to hit; the grip in the middle is the
|
|
122
|
+
* keyboard handle (a focusable separator) and turns to the primary color while the height changes.
|
|
123
|
+
*/
|
|
124
|
+
.nx-editor__footer {
|
|
125
|
+
position: relative;
|
|
126
|
+
display: grid;
|
|
127
|
+
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
|
|
128
|
+
align-items: center;
|
|
129
|
+
gap: var(--nx-space-2);
|
|
130
|
+
min-height: 26px;
|
|
131
|
+
padding: 2px var(--nx-space-3);
|
|
132
|
+
border-top: 1px solid var(--nx-border);
|
|
133
|
+
color: var(--nx-text-muted);
|
|
134
|
+
font-size: var(--nx-text-xs);
|
|
135
|
+
line-height: 1.3;
|
|
136
|
+
user-select: none;
|
|
137
|
+
transition: background-color var(--nx-duration);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.nx-editor__footer[data-resizable] {
|
|
141
|
+
cursor: ns-resize;
|
|
142
|
+
touch-action: none;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.nx-field[data-disabled] .nx-editor__footer {
|
|
146
|
+
cursor: not-allowed;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.nx-editor__footer[data-resizable]:hover,
|
|
150
|
+
.nx-editor__footer[data-resizing] {
|
|
151
|
+
background: color-mix(in oklab, var(--nx-text) 4%, transparent);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.nx-editor__hint {
|
|
155
|
+
display: inline-flex;
|
|
156
|
+
align-items: center;
|
|
157
|
+
gap: 5px;
|
|
158
|
+
min-width: 0;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.nx-editor__hint .nx-icon {
|
|
162
|
+
flex-shrink: 0;
|
|
163
|
+
width: 16px;
|
|
164
|
+
height: 16px;
|
|
165
|
+
vertical-align: 0;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.nx-editor__handle {
|
|
169
|
+
position: relative;
|
|
170
|
+
grid-column: 2;
|
|
171
|
+
display: grid;
|
|
172
|
+
place-items: center;
|
|
173
|
+
width: 64px;
|
|
174
|
+
height: 18px;
|
|
175
|
+
border-radius: var(--nx-radius-full);
|
|
176
|
+
outline: none;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.nx-editor__handle:focus-visible {
|
|
180
|
+
box-shadow: var(--nx-focus-ring);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.nx-editor__grip {
|
|
184
|
+
width: 36px;
|
|
185
|
+
height: 4px;
|
|
186
|
+
border-radius: var(--nx-radius-full);
|
|
187
|
+
/* Muted, not subtle: the grip is the only sign of the handle, so it keeps 3:1 on the box in every theme. */
|
|
188
|
+
background: var(--nx-text-muted);
|
|
189
|
+
transition:
|
|
190
|
+
width var(--nx-duration),
|
|
191
|
+
background-color var(--nx-duration);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.nx-editor__footer[data-resizable]:hover .nx-editor__grip {
|
|
195
|
+
width: 44px;
|
|
196
|
+
background: var(--nx-text);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.nx-editor__footer[data-resizing] .nx-editor__grip,
|
|
200
|
+
.nx-editor__handle:focus-visible .nx-editor__grip {
|
|
201
|
+
width: 48px;
|
|
202
|
+
background: var(--nx-primary);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/* The height while it changes, inverted like a tooltip, above the grip. */
|
|
206
|
+
.nx-editor__size {
|
|
207
|
+
position: absolute;
|
|
208
|
+
bottom: calc(100% + 8px);
|
|
209
|
+
left: 50%;
|
|
210
|
+
padding: 3px 8px;
|
|
211
|
+
border-radius: var(--nx-radius);
|
|
212
|
+
background: var(--nx-text);
|
|
213
|
+
color: var(--nx-surface);
|
|
214
|
+
box-shadow: var(--nx-shadow);
|
|
215
|
+
font-size: var(--nx-text-xs);
|
|
216
|
+
font-weight: 500;
|
|
217
|
+
font-variant-numeric: tabular-nums;
|
|
218
|
+
white-space: nowrap;
|
|
219
|
+
opacity: 0;
|
|
220
|
+
transform: translateX(-50%);
|
|
221
|
+
transition: opacity var(--nx-duration);
|
|
222
|
+
pointer-events: none;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.nx-editor__footer[data-resizing] .nx-editor__size {
|
|
226
|
+
opacity: 1;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.nx-editor__count {
|
|
230
|
+
grid-column: 3;
|
|
231
|
+
min-width: 0;
|
|
232
|
+
overflow: hidden;
|
|
233
|
+
font-variant-numeric: tabular-nums;
|
|
234
|
+
text-align: right;
|
|
235
|
+
text-overflow: ellipsis;
|
|
236
|
+
white-space: nowrap;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/*
|
|
240
|
+
* Narrow: full screen and the lock stay on the row of the views, the buttons take a row of their own, and the
|
|
241
|
+
* status bar keeps the icon and the characters, so nothing runs into the grip.
|
|
242
|
+
*/
|
|
243
|
+
@container nx-editor (width < 560px) {
|
|
244
|
+
.nx-editor__end {
|
|
245
|
+
order: 1;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.nx-editor__tools {
|
|
249
|
+
flex-basis: 100%;
|
|
250
|
+
order: 2;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.nx-editor__hint > span,
|
|
254
|
+
.nx-editor__words {
|
|
255
|
+
display: none;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/* Full screen: the box in the top layer, over a dimmed page. */
|
|
260
|
+
.nx-editor .nx-field__box:popover-open {
|
|
261
|
+
position: fixed;
|
|
262
|
+
inset: var(--nx-space-6);
|
|
263
|
+
width: auto;
|
|
264
|
+
max-width: 1440px;
|
|
265
|
+
height: auto;
|
|
266
|
+
margin: auto;
|
|
267
|
+
padding: 0;
|
|
268
|
+
color: var(--nx-text);
|
|
269
|
+
box-shadow: var(--nx-shadow);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.nx-editor .nx-field__box::backdrop {
|
|
273
|
+
background: rgb(0 0 0 / 0.5);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.nx-editor .nx-field__box:popover-open .nx-editor__body {
|
|
277
|
+
flex: 1 1 auto;
|
|
278
|
+
height: auto;
|
|
279
|
+
min-height: 0;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
@media (width < 640px) {
|
|
283
|
+
.nx-editor .nx-field__box:popover-open {
|
|
284
|
+
inset: 0;
|
|
285
|
+
border: 0;
|
|
286
|
+
border-radius: 0;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
@media (prefers-reduced-motion: reduce) {
|
|
291
|
+
.nx-editor__grip,
|
|
292
|
+
.nx-editor__size,
|
|
293
|
+
.nx-editor__footer {
|
|
294
|
+
transition: none;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
@@ -0,0 +1,298 @@
|
|
|
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
|
+
.nx-form__cell {
|
|
23
|
+
grid-column: span var(--nx-span, 12);
|
|
24
|
+
min-width: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* A checkbox, switch, or radio lines up with the boxes beside it. */
|
|
28
|
+
.nx-form__cell--choice {
|
|
29
|
+
display: flex;
|
|
30
|
+
align-self: end;
|
|
31
|
+
align-items: center;
|
|
32
|
+
min-height: var(--nx-control-md);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.nx-form--sm .nx-form__cell--choice {
|
|
36
|
+
min-height: var(--nx-control-sm);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.nx-form--lg .nx-form__cell--choice {
|
|
40
|
+
min-height: var(--nx-control-lg);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/*
|
|
44
|
+
* Beside labeled boxes, a choice starts under the room of their labels and centers on their boxes, so a message under a
|
|
45
|
+
* box beside it does not move it. The label's line is 1.3 times its font, and 6px separate it from the box.
|
|
46
|
+
*/
|
|
47
|
+
.nx-form__cell--choice[data-beside] {
|
|
48
|
+
--nx-form-label-room: calc(var(--nx-text-sm) * 1.3 + 6px);
|
|
49
|
+
align-self: start;
|
|
50
|
+
min-height: calc(var(--nx-form-label-room) + var(--nx-control-md));
|
|
51
|
+
padding-top: var(--nx-form-label-room);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.nx-form--sm .nx-form__cell--choice[data-beside] {
|
|
55
|
+
--nx-form-label-room: calc(var(--nx-text-xs) * 1.3 + 6px);
|
|
56
|
+
min-height: calc(var(--nx-form-label-room) + var(--nx-control-sm));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.nx-form--lg .nx-form__cell--choice[data-beside] {
|
|
60
|
+
--nx-form-label-room: calc(var(--nx-text-md) * 1.3 + 6px);
|
|
61
|
+
min-height: calc(var(--nx-form-label-room) + var(--nx-control-lg));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* Three or four inputs to a row become two on a medium form, and every input takes the whole width on a narrow one. */
|
|
65
|
+
@container (max-width: 48rem) {
|
|
66
|
+
.nx-form__cell:is([data-span="1"], [data-span="2"], [data-span="3"]) {
|
|
67
|
+
grid-column: span 6;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@container (max-width: 34rem) {
|
|
72
|
+
.nx-form__cell,
|
|
73
|
+
.nx-form__cell:is([data-span="1"], [data-span="2"], [data-span="3"]) {
|
|
74
|
+
grid-column: span 12;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.nx-form__cell--choice,
|
|
78
|
+
.nx-form__cell--choice[data-beside] {
|
|
79
|
+
min-height: 0;
|
|
80
|
+
padding-top: 0;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.nx-form__message {
|
|
85
|
+
margin: 0;
|
|
86
|
+
font-size: var(--nx-text-sm);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* A restored draft */
|
|
90
|
+
.nx-form__notice {
|
|
91
|
+
display: flex;
|
|
92
|
+
flex-wrap: wrap;
|
|
93
|
+
align-items: center;
|
|
94
|
+
gap: var(--nx-space-1) var(--nx-space-2);
|
|
95
|
+
padding: var(--nx-space-2) var(--nx-space-2) var(--nx-space-2) var(--nx-space-3);
|
|
96
|
+
border-radius: var(--nx-radius);
|
|
97
|
+
background: var(--nx-info-soft);
|
|
98
|
+
color: var(--nx-text);
|
|
99
|
+
font-size: var(--nx-text-sm);
|
|
100
|
+
line-height: 1.4;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.nx-form__notice > .nx-icon {
|
|
104
|
+
width: 1.3em;
|
|
105
|
+
height: 1.3em;
|
|
106
|
+
color: var(--nx-info);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.nx-form__notice-text {
|
|
110
|
+
flex: 1 1 16rem;
|
|
111
|
+
min-width: 0;
|
|
112
|
+
margin: 0;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.nx-form__notice-text strong {
|
|
116
|
+
font-weight: 600;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.nx-form__notice .nx-btn {
|
|
120
|
+
margin-block: -4px;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/* Placeholders while the values load, in the shape of the inputs to come. */
|
|
124
|
+
.nx-form__skeleton {
|
|
125
|
+
display: flex;
|
|
126
|
+
flex-direction: column;
|
|
127
|
+
gap: 6px;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/* A checkbox's placeholder starts where its box would. */
|
|
131
|
+
.nx-form__skeleton.nx-form__cell--choice {
|
|
132
|
+
flex-direction: row;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.nx-form__skeleton-label,
|
|
136
|
+
.nx-form__skeleton-box {
|
|
137
|
+
display: block;
|
|
138
|
+
border-radius: var(--nx-radius-sm);
|
|
139
|
+
background: color-mix(in oklab, var(--nx-text) 9%, transparent);
|
|
140
|
+
animation: nx-form-pulse 1.6s ease-in-out infinite;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* The label's line: 1.3 × the label font, with the text's height as the bar. */
|
|
144
|
+
.nx-form__skeleton-label {
|
|
145
|
+
width: min(40%, 10rem);
|
|
146
|
+
height: 0.85em;
|
|
147
|
+
margin-block: 0.225em;
|
|
148
|
+
font-size: var(--nx-text-sm);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.nx-form__skeleton-box {
|
|
152
|
+
height: var(--nx-control-md);
|
|
153
|
+
border-radius: var(--nx-radius);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.nx-form--sm .nx-form__skeleton-box {
|
|
157
|
+
height: var(--nx-control-sm);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.nx-form--lg .nx-form__skeleton-box {
|
|
161
|
+
height: var(--nx-control-lg);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.nx-form__skeleton-box--tall,
|
|
165
|
+
.nx-form--sm .nx-form__skeleton-box--tall,
|
|
166
|
+
.nx-form--lg .nx-form__skeleton-box--tall {
|
|
167
|
+
height: calc(var(--nx-control-md) * 2.75);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.nx-form__skeleton-box--choice,
|
|
171
|
+
.nx-form--sm .nx-form__skeleton-box--choice,
|
|
172
|
+
.nx-form--lg .nx-form__skeleton-box--choice {
|
|
173
|
+
width: min(60%, 12rem);
|
|
174
|
+
height: 1.1em;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
@keyframes nx-form-pulse {
|
|
178
|
+
50% {
|
|
179
|
+
opacity: 0.45;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
@media (prefers-reduced-motion: reduce) {
|
|
184
|
+
.nx-form__skeleton-label,
|
|
185
|
+
.nx-form__skeleton-box {
|
|
186
|
+
animation: none;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/* SubmitForm */
|
|
191
|
+
.nx-submit-form {
|
|
192
|
+
display: flex;
|
|
193
|
+
flex-direction: column;
|
|
194
|
+
gap: var(--nx-space-6);
|
|
195
|
+
min-width: 0;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/* The bar: the status line and the buttons, which wrap under it on a narrow form. */
|
|
199
|
+
.nx-form-buttons {
|
|
200
|
+
display: flex;
|
|
201
|
+
flex-wrap: wrap;
|
|
202
|
+
align-items: center;
|
|
203
|
+
gap: var(--nx-space-3) var(--nx-space-4);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.nx-form-buttons__actions {
|
|
207
|
+
display: flex;
|
|
208
|
+
flex-wrap: wrap;
|
|
209
|
+
align-items: center;
|
|
210
|
+
gap: var(--nx-space-2);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.nx-form-buttons--end .nx-form-buttons__actions {
|
|
214
|
+
margin-left: auto;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.nx-form-status {
|
|
218
|
+
display: flex;
|
|
219
|
+
flex: 1 1 14rem;
|
|
220
|
+
align-items: flex-start;
|
|
221
|
+
gap: 6px;
|
|
222
|
+
min-width: 0;
|
|
223
|
+
margin: 0;
|
|
224
|
+
color: var(--nx-text-muted);
|
|
225
|
+
font-size: var(--nx-text-sm);
|
|
226
|
+
line-height: 1.45;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.nx-form-status .nx-icon {
|
|
230
|
+
flex-shrink: 0;
|
|
231
|
+
width: 1.3em;
|
|
232
|
+
height: 1.3em;
|
|
233
|
+
margin-top: 0.075em;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.nx-form-status--error {
|
|
237
|
+
color: var(--nx-danger);
|
|
238
|
+
font-weight: 500;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.nx-form-status--success {
|
|
242
|
+
color: var(--nx-success);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/* An input's name in the status line: a link-like button that goes to it. */
|
|
246
|
+
.nx-form-status__jump {
|
|
247
|
+
padding: 0;
|
|
248
|
+
border: 0;
|
|
249
|
+
border-radius: 2px;
|
|
250
|
+
background: none;
|
|
251
|
+
color: inherit;
|
|
252
|
+
font: inherit;
|
|
253
|
+
text-decoration: underline;
|
|
254
|
+
text-decoration-thickness: 1px;
|
|
255
|
+
text-underline-offset: 2px;
|
|
256
|
+
cursor: pointer;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.nx-form-status__jump:hover {
|
|
260
|
+
text-decoration-thickness: 2px;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/* ApiForm: the values could not load */
|
|
264
|
+
.nx-form-load-failed {
|
|
265
|
+
display: flex;
|
|
266
|
+
flex-wrap: wrap;
|
|
267
|
+
align-items: center;
|
|
268
|
+
gap: var(--nx-space-2) var(--nx-space-3);
|
|
269
|
+
padding: var(--nx-space-3) var(--nx-space-3) var(--nx-space-3) var(--nx-space-4);
|
|
270
|
+
border-radius: var(--nx-radius);
|
|
271
|
+
background: var(--nx-danger-soft);
|
|
272
|
+
color: var(--nx-text);
|
|
273
|
+
font-size: var(--nx-text-sm);
|
|
274
|
+
line-height: 1.45;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.nx-form-load-failed > .nx-icon {
|
|
278
|
+
width: 1.35em;
|
|
279
|
+
height: 1.35em;
|
|
280
|
+
color: var(--nx-danger);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.nx-form-load-failed p {
|
|
284
|
+
flex: 1 1 16rem;
|
|
285
|
+
min-width: 0;
|
|
286
|
+
margin: 0;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.nx-form-load-failed strong {
|
|
290
|
+
font-weight: 600;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.nx-form-load-failed__actions {
|
|
294
|
+
display: flex;
|
|
295
|
+
gap: var(--nx-space-2);
|
|
296
|
+
margin-left: auto;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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.DateTime.css";
|
|
17
|
+
@import "./Nexus.Choice.css";
|
|
18
|
+
@import "./Nexus.Crud.css";
|
|
19
|
+
@import "./Nexus.Dropdown.css";
|
|
20
|
+
@import "./Nexus.Input.css";
|
|
21
|
+
@import "./Nexus.Editor.css";
|
|
22
|
+
@import "./Nexus.Form.css";
|
|
23
|
+
@import "./Nexus.Markdown.css";
|
|
24
|
+
@import "./Nexus.Menu.css";
|
|
25
|
+
@import "./Nexus.Popup.css";
|
|
26
|
+
@import "./Nexus.RichText.css";
|
|
27
|
+
@import "./Nexus.Rows.css";
|
|
28
|
+
@import "./Nexus.Slider.css";
|
|
29
|
+
@import "./Nexus.Tab.Buttons.css";
|
|
30
|
+
@import "./Nexus.Table.css";
|
|
31
|
+
@import "./Nexus.Theme.Picker.css";
|
|
32
|
+
@import "./Nexus.Time.css";
|
|
33
|
+
@import "./Nexus.Toast.css";
|
|
34
|
+
@import "./Nexus.Tree.css";
|