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,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,370 @@
|
|
|
1
|
+
@layer nexus.components {
|
|
2
|
+
/*
|
|
3
|
+
* The spreadsheet import panel: the three steps, the file row, and the review as two collapsible editors.
|
|
4
|
+
*
|
|
5
|
+
* It adds no box of its own. It is shown inside a popup or a page panel, which already has one, and the editors
|
|
6
|
+
* inside bring the only frame on the panel - so nothing here draws a border around something that has one. The
|
|
7
|
+
* sections are told apart by a tint and a hairline above them, as the group form's sections are.
|
|
8
|
+
*/
|
|
9
|
+
.nx-excel {
|
|
10
|
+
--nx-excel-tint: color-mix(in oklab, var(--nx-text) 5%, var(--nx-surface));
|
|
11
|
+
--nx-excel-hover: color-mix(in oklab, var(--nx-text) 8%, var(--nx-surface));
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
gap: var(--nx-space-4);
|
|
15
|
+
min-width: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* The three steps, numbered, as one short paragraph each. */
|
|
19
|
+
.nx-excel__steps {
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-wrap: wrap;
|
|
22
|
+
gap: var(--nx-space-2) var(--nx-space-5);
|
|
23
|
+
margin: 0;
|
|
24
|
+
padding: 0;
|
|
25
|
+
list-style: none;
|
|
26
|
+
counter-reset: nx-excel-step;
|
|
27
|
+
color: var(--nx-text-muted);
|
|
28
|
+
font-size: var(--nx-text-xs);
|
|
29
|
+
line-height: 1.45;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.nx-excel__steps > li {
|
|
33
|
+
display: flex;
|
|
34
|
+
flex: 1 1 14rem;
|
|
35
|
+
align-items: baseline;
|
|
36
|
+
gap: var(--nx-space-2);
|
|
37
|
+
counter-increment: nx-excel-step;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.nx-excel__steps > li::before {
|
|
41
|
+
content: counter(nx-excel-step);
|
|
42
|
+
flex: none;
|
|
43
|
+
min-width: 17px;
|
|
44
|
+
padding: 1px 0;
|
|
45
|
+
border-radius: var(--nx-radius-full);
|
|
46
|
+
background: var(--nx-excel-tint);
|
|
47
|
+
color: var(--nx-text);
|
|
48
|
+
font-size: var(--nx-text-xs);
|
|
49
|
+
font-weight: 600;
|
|
50
|
+
text-align: center;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* Template, Choose file, the file's name, and the limit: one line that wraps as whole groups. */
|
|
54
|
+
.nx-excel__pick {
|
|
55
|
+
display: flex;
|
|
56
|
+
flex-wrap: wrap;
|
|
57
|
+
align-items: center;
|
|
58
|
+
gap: var(--nx-space-2) var(--nx-space-3);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.nx-excel__file {
|
|
62
|
+
flex: 1 1 12rem;
|
|
63
|
+
min-width: 0;
|
|
64
|
+
margin: 0;
|
|
65
|
+
overflow-wrap: anywhere;
|
|
66
|
+
color: var(--nx-text);
|
|
67
|
+
font-size: var(--nx-text-sm);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.nx-excel__muted {
|
|
71
|
+
color: var(--nx-text-muted);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.nx-excel__limits {
|
|
75
|
+
margin: 0;
|
|
76
|
+
color: var(--nx-text-muted);
|
|
77
|
+
font-size: var(--nx-text-xs);
|
|
78
|
+
white-space: nowrap;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.nx-excel__note {
|
|
82
|
+
margin: 0;
|
|
83
|
+
color: var(--nx-text);
|
|
84
|
+
font-size: var(--nx-text-sm);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* A refusal, and what the import could not write: a tint, with the words in the text color so they read on it. */
|
|
88
|
+
.nx-excel__failure,
|
|
89
|
+
.nx-excel__result {
|
|
90
|
+
display: flex;
|
|
91
|
+
gap: var(--nx-space-2);
|
|
92
|
+
margin: 0;
|
|
93
|
+
padding: var(--nx-space-3);
|
|
94
|
+
border-radius: var(--nx-radius);
|
|
95
|
+
background: var(--nx-danger-soft);
|
|
96
|
+
color: var(--nx-text);
|
|
97
|
+
font-size: var(--nx-text-sm);
|
|
98
|
+
line-height: 1.45;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.nx-excel__failure .nx-icon,
|
|
102
|
+
.nx-excel__result .nx-icon {
|
|
103
|
+
flex: none;
|
|
104
|
+
width: 18px;
|
|
105
|
+
height: 18px;
|
|
106
|
+
color: var(--nx-danger);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.nx-excel__result {
|
|
110
|
+
flex-direction: column;
|
|
111
|
+
gap: var(--nx-space-1);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.nx-excel__result--ok {
|
|
115
|
+
background: var(--nx-success-soft);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.nx-excel__result--ok .nx-icon {
|
|
119
|
+
color: var(--nx-success);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.nx-excel__result-head {
|
|
123
|
+
display: flex;
|
|
124
|
+
align-items: center;
|
|
125
|
+
gap: var(--nx-space-2);
|
|
126
|
+
margin: 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.nx-excel__result-note {
|
|
130
|
+
margin: 0;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.nx-excel__review {
|
|
134
|
+
display: flex;
|
|
135
|
+
flex-direction: column;
|
|
136
|
+
gap: var(--nx-space-3);
|
|
137
|
+
min-width: 0;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/* One half of the review. The hairline above it is what separates the two, instead of a box around each. */
|
|
141
|
+
.nx-excel__section {
|
|
142
|
+
min-width: 0;
|
|
143
|
+
padding-top: var(--nx-space-2);
|
|
144
|
+
border-top: 1px solid var(--nx-border);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.nx-excel__section-head {
|
|
148
|
+
margin: 0;
|
|
149
|
+
font-size: var(--nx-text-md);
|
|
150
|
+
font-weight: 400;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.nx-excel__toggle {
|
|
154
|
+
display: flex;
|
|
155
|
+
align-items: center;
|
|
156
|
+
gap: var(--nx-space-2);
|
|
157
|
+
width: 100%;
|
|
158
|
+
min-height: 32px;
|
|
159
|
+
padding: 4px 8px 4px 6px;
|
|
160
|
+
border: 0;
|
|
161
|
+
border-radius: var(--nx-radius);
|
|
162
|
+
background: none;
|
|
163
|
+
color: var(--nx-text);
|
|
164
|
+
font: inherit;
|
|
165
|
+
text-align: start;
|
|
166
|
+
cursor: pointer;
|
|
167
|
+
transition: background-color var(--nx-duration);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.nx-excel__toggle:hover {
|
|
171
|
+
background: var(--nx-excel-hover);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.nx-excel__toggle:focus-visible {
|
|
175
|
+
outline: 2px solid var(--nx-primary);
|
|
176
|
+
outline-offset: 0;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.nx-excel__chevron {
|
|
180
|
+
flex: none;
|
|
181
|
+
width: 16px;
|
|
182
|
+
height: 16px;
|
|
183
|
+
color: var(--nx-text-muted);
|
|
184
|
+
transition: transform var(--nx-duration);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.nx-excel__toggle[aria-expanded="false"] .nx-excel__chevron {
|
|
188
|
+
transform: rotate(-90deg);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.nx-excel__title {
|
|
192
|
+
flex: none;
|
|
193
|
+
font-weight: 600;
|
|
194
|
+
white-space: nowrap;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/* The count. On a tint, so it takes the text color rather than a muted one. */
|
|
198
|
+
.nx-excel__tag {
|
|
199
|
+
flex: none;
|
|
200
|
+
padding: 0 7px;
|
|
201
|
+
border-radius: var(--nx-radius-full);
|
|
202
|
+
background: var(--nx-excel-tint);
|
|
203
|
+
color: var(--nx-text);
|
|
204
|
+
font-size: var(--nx-text-xs);
|
|
205
|
+
font-variant-numeric: tabular-nums;
|
|
206
|
+
font-weight: 600;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/*
|
|
210
|
+
* The hint sits on a row that tints on hover, and muted text on a tint falls under 4.5:1 in several themes (measured:
|
|
211
|
+
* 4.23 in Catppuccin light, 4.33 in Rose Pine dark). So it moves toward the text color, as rows that tint do.
|
|
212
|
+
*/
|
|
213
|
+
.nx-excel__hint {
|
|
214
|
+
min-width: 0;
|
|
215
|
+
overflow: hidden;
|
|
216
|
+
color: color-mix(in oklab, var(--nx-text) 35%, var(--nx-text-muted));
|
|
217
|
+
font-size: var(--nx-text-xs);
|
|
218
|
+
text-overflow: ellipsis;
|
|
219
|
+
white-space: nowrap;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.nx-excel__section[data-tone="warning"] .nx-excel__tag {
|
|
223
|
+
background: var(--nx-warning-soft);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.nx-excel__section-body {
|
|
227
|
+
display: flex;
|
|
228
|
+
flex-direction: column;
|
|
229
|
+
gap: var(--nx-space-3);
|
|
230
|
+
min-width: 0;
|
|
231
|
+
padding-top: var(--nx-space-2);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/* What the server found wrong. The place and the sentence sit on one grid, so the sentences line up. */
|
|
235
|
+
.nx-excel__problems {
|
|
236
|
+
padding: var(--nx-space-3);
|
|
237
|
+
border-radius: var(--nx-radius);
|
|
238
|
+
background: var(--nx-warning-soft);
|
|
239
|
+
color: var(--nx-text);
|
|
240
|
+
font-size: var(--nx-text-xs);
|
|
241
|
+
line-height: 1.5;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.nx-excel__problems--same {
|
|
245
|
+
background: var(--nx-excel-tint);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.nx-excel__problems--same .nx-excel__problems-head .nx-icon {
|
|
249
|
+
color: var(--nx-text-muted);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.nx-excel__problems-head {
|
|
253
|
+
display: flex;
|
|
254
|
+
align-items: center;
|
|
255
|
+
gap: var(--nx-space-2);
|
|
256
|
+
margin: 0 0 var(--nx-space-2);
|
|
257
|
+
font-size: var(--nx-text-sm);
|
|
258
|
+
font-weight: 600;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.nx-excel__problems-head .nx-icon {
|
|
262
|
+
width: 16px;
|
|
263
|
+
height: 16px;
|
|
264
|
+
color: var(--nx-warning);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.nx-excel__problems ul,
|
|
268
|
+
.nx-excel__refused {
|
|
269
|
+
display: grid;
|
|
270
|
+
gap: var(--nx-space-1);
|
|
271
|
+
margin: 0;
|
|
272
|
+
padding: 0;
|
|
273
|
+
list-style: none;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.nx-excel__problems li,
|
|
277
|
+
.nx-excel__refused li {
|
|
278
|
+
display: grid;
|
|
279
|
+
grid-template-columns: minmax(6rem, max-content) 1fr;
|
|
280
|
+
gap: var(--nx-space-1) var(--nx-space-3);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.nx-excel__refused {
|
|
284
|
+
font-size: var(--nx-text-xs);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.nx-excel__place {
|
|
288
|
+
font-weight: 600;
|
|
289
|
+
font-variant-numeric: tabular-nums;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/* The place is the way to the cell it names, so it is a button - with no box, since it sits in a line of text. */
|
|
293
|
+
.nx-excel__go {
|
|
294
|
+
padding: 0;
|
|
295
|
+
border: 0;
|
|
296
|
+
border-radius: 2px;
|
|
297
|
+
background: none;
|
|
298
|
+
color: inherit;
|
|
299
|
+
font: inherit;
|
|
300
|
+
font-weight: 600;
|
|
301
|
+
text-align: start;
|
|
302
|
+
text-decoration: underline;
|
|
303
|
+
text-decoration-color: color-mix(in oklab, currentcolor 40%, transparent);
|
|
304
|
+
text-underline-offset: 2px;
|
|
305
|
+
cursor: pointer;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.nx-excel__go:hover {
|
|
309
|
+
text-decoration-color: currentcolor;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.nx-excel__go:focus-visible {
|
|
313
|
+
outline: 2px solid var(--nx-primary);
|
|
314
|
+
outline-offset: 1px;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
@media (width < 36rem) {
|
|
318
|
+
.nx-excel__problems li,
|
|
319
|
+
.nx-excel__refused li {
|
|
320
|
+
grid-template-columns: 1fr;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/*
|
|
324
|
+
* The hint is the reason the section exists ("Edit a row to add it as a new record instead"), and a reason cut at
|
|
325
|
+
* the word that explains it is no reason at all. Where the line is too short for it, it drops under the title.
|
|
326
|
+
*/
|
|
327
|
+
.nx-excel__toggle {
|
|
328
|
+
flex-wrap: wrap;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.nx-excel__hint {
|
|
332
|
+
flex: 1 0 100%;
|
|
333
|
+
overflow: visible;
|
|
334
|
+
padding-left: 24px;
|
|
335
|
+
white-space: normal;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
/* The sentence about what will be sent, then the buttons. */
|
|
340
|
+
.nx-excel__actions {
|
|
341
|
+
display: flex;
|
|
342
|
+
flex-wrap: wrap;
|
|
343
|
+
align-items: center;
|
|
344
|
+
gap: var(--nx-space-2) var(--nx-space-3);
|
|
345
|
+
padding-top: var(--nx-space-2);
|
|
346
|
+
border-top: 1px solid var(--nx-border);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.nx-excel__sending {
|
|
350
|
+
flex: 1 1 14rem;
|
|
351
|
+
min-width: 0;
|
|
352
|
+
margin: 0;
|
|
353
|
+
color: var(--nx-text-muted);
|
|
354
|
+
font-size: var(--nx-text-xs);
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.nx-excel__buttons {
|
|
358
|
+
display: flex;
|
|
359
|
+
flex-wrap: wrap;
|
|
360
|
+
gap: var(--nx-space-2);
|
|
361
|
+
margin-left: auto;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
@media (prefers-reduced-motion: reduce) {
|
|
365
|
+
.nx-excel__toggle,
|
|
366
|
+
.nx-excel__chevron {
|
|
367
|
+
transition: none;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|