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,70 @@
|
|
|
1
|
+
/* Page defaults and small shared utilities. */
|
|
2
|
+
@layer nexus.base {
|
|
3
|
+
*,
|
|
4
|
+
*::before,
|
|
5
|
+
*::after {
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
body {
|
|
10
|
+
margin: 0;
|
|
11
|
+
background: var(--nx-bg);
|
|
12
|
+
color: var(--nx-text);
|
|
13
|
+
font: var(--nx-text-md) / var(--nx-leading) var(--nx-font);
|
|
14
|
+
-webkit-font-smoothing: antialiased;
|
|
15
|
+
text-rendering: optimizeLegibility;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
button,
|
|
19
|
+
input,
|
|
20
|
+
select,
|
|
21
|
+
textarea {
|
|
22
|
+
font: inherit;
|
|
23
|
+
color: inherit;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* Nepali text takes a font that has Devanagari glyphs, digits included. */
|
|
27
|
+
:lang(ne) {
|
|
28
|
+
font-family: var(--nx-font-devanagari);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:focus-visible {
|
|
32
|
+
outline: 2px solid var(--nx-primary);
|
|
33
|
+
outline-offset: 2px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* Hidden on screen but still read by screen readers and reachable with the keyboard. */
|
|
37
|
+
.nx-visually-hidden {
|
|
38
|
+
position: absolute;
|
|
39
|
+
width: 1px;
|
|
40
|
+
height: 1px;
|
|
41
|
+
margin: -1px;
|
|
42
|
+
padding: 0;
|
|
43
|
+
overflow: hidden;
|
|
44
|
+
clip-path: inset(50%);
|
|
45
|
+
white-space: nowrap;
|
|
46
|
+
border: 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* Icons sit on the text baseline and never shrink inside flex rows. */
|
|
50
|
+
.nx-icon {
|
|
51
|
+
flex-shrink: 0;
|
|
52
|
+
vertical-align: -0.125em;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.nx-spin {
|
|
56
|
+
animation: nx-spin 0.8s linear infinite;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@keyframes nx-spin {
|
|
60
|
+
to {
|
|
61
|
+
transform: rotate(360deg);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@media (prefers-reduced-motion: reduce) {
|
|
66
|
+
.nx-spin {
|
|
67
|
+
animation-duration: 2.4s;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
@layer nexus.components {
|
|
2
|
+
.nx-btn {
|
|
3
|
+
--nx-btn-height: var(--nx-control-md);
|
|
4
|
+
--nx-btn-bg: var(--nx-surface);
|
|
5
|
+
--nx-btn-bg-hover: var(--nx-surface-hover);
|
|
6
|
+
--nx-btn-color: var(--nx-text);
|
|
7
|
+
--nx-btn-border: var(--nx-border-strong);
|
|
8
|
+
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
gap: var(--nx-space-2);
|
|
13
|
+
height: var(--nx-btn-height);
|
|
14
|
+
padding: 0 var(--nx-space-3);
|
|
15
|
+
border: 1px solid var(--nx-btn-border);
|
|
16
|
+
border-radius: var(--nx-radius);
|
|
17
|
+
background: var(--nx-btn-bg);
|
|
18
|
+
color: var(--nx-btn-color);
|
|
19
|
+
font-size: var(--nx-text-md);
|
|
20
|
+
font-weight: 500;
|
|
21
|
+
line-height: 1;
|
|
22
|
+
white-space: nowrap;
|
|
23
|
+
/* The same classes make a link look like a button, for a call to action that navigates. */
|
|
24
|
+
text-decoration: none;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
user-select: none;
|
|
27
|
+
box-shadow: var(--nx-shadow-sm);
|
|
28
|
+
transition:
|
|
29
|
+
background-color var(--nx-duration),
|
|
30
|
+
border-color var(--nx-duration),
|
|
31
|
+
color var(--nx-duration),
|
|
32
|
+
box-shadow var(--nx-duration),
|
|
33
|
+
transform var(--nx-duration);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.nx-btn .nx-icon {
|
|
37
|
+
width: 1.15em;
|
|
38
|
+
height: 1.15em;
|
|
39
|
+
vertical-align: 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.nx-btn:hover:not(:disabled) {
|
|
43
|
+
background: var(--nx-btn-bg-hover);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.nx-btn:active:not(:disabled) {
|
|
47
|
+
transform: translateY(1px);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.nx-btn:focus-visible {
|
|
51
|
+
outline: none;
|
|
52
|
+
box-shadow: var(--nx-focus-ring);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.nx-btn:disabled {
|
|
56
|
+
cursor: not-allowed;
|
|
57
|
+
opacity: 0.55;
|
|
58
|
+
box-shadow: none;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.nx-btn[aria-busy="true"] {
|
|
62
|
+
cursor: progress;
|
|
63
|
+
opacity: 0.8;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* Variants */
|
|
67
|
+
.nx-btn--primary {
|
|
68
|
+
--nx-btn-bg: var(--nx-primary-solid);
|
|
69
|
+
--nx-btn-bg-hover: var(--nx-primary-hover);
|
|
70
|
+
--nx-btn-color: var(--nx-primary-text);
|
|
71
|
+
--nx-btn-border: transparent;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.nx-btn--danger {
|
|
75
|
+
--nx-btn-bg: var(--nx-danger-solid);
|
|
76
|
+
--nx-btn-bg-hover: var(--nx-danger-hover);
|
|
77
|
+
--nx-btn-color: var(--nx-danger-text);
|
|
78
|
+
--nx-btn-border: transparent;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.nx-btn--ghost {
|
|
82
|
+
--nx-btn-bg: transparent;
|
|
83
|
+
--nx-btn-border: transparent;
|
|
84
|
+
box-shadow: none;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/*
|
|
88
|
+
* Hover tones: a secondary or ghost button stays neutral, then takes the tone on its border,
|
|
89
|
+
* a soft background, and its text while hovered or focused from the keyboard.
|
|
90
|
+
* Every tone meets WCAG AA contrast on its soft background (npm run check:themes).
|
|
91
|
+
*/
|
|
92
|
+
.nx-btn--hover-primary {
|
|
93
|
+
--nx-btn-tone: var(--nx-primary);
|
|
94
|
+
--nx-btn-tone-soft: var(--nx-primary-soft);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.nx-btn--hover-danger {
|
|
98
|
+
--nx-btn-tone: var(--nx-danger);
|
|
99
|
+
--nx-btn-tone-soft: var(--nx-danger-soft);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.nx-btn--hover-success {
|
|
103
|
+
--nx-btn-tone: var(--nx-success);
|
|
104
|
+
--nx-btn-tone-soft: var(--nx-success-soft);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.nx-btn--hover-warning {
|
|
108
|
+
--nx-btn-tone: var(--nx-warning);
|
|
109
|
+
--nx-btn-tone-soft: var(--nx-warning-soft);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.nx-btn--hover-info {
|
|
113
|
+
--nx-btn-tone: var(--nx-info);
|
|
114
|
+
--nx-btn-tone-soft: var(--nx-info-soft);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
:is(.nx-btn--secondary, .nx-btn--ghost):is(
|
|
118
|
+
.nx-btn--hover-primary,
|
|
119
|
+
.nx-btn--hover-danger,
|
|
120
|
+
.nx-btn--hover-success,
|
|
121
|
+
.nx-btn--hover-warning,
|
|
122
|
+
.nx-btn--hover-info
|
|
123
|
+
):is(:hover, :focus-visible):not(:disabled) {
|
|
124
|
+
--nx-btn-bg: var(--nx-btn-tone-soft);
|
|
125
|
+
--nx-btn-bg-hover: var(--nx-btn-tone-soft);
|
|
126
|
+
--nx-btn-border: var(--nx-btn-tone);
|
|
127
|
+
--nx-btn-color: var(--nx-btn-tone);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/* Sizes */
|
|
131
|
+
.nx-btn--sm {
|
|
132
|
+
--nx-btn-height: var(--nx-control-sm);
|
|
133
|
+
padding: 0 var(--nx-space-2);
|
|
134
|
+
gap: 6px;
|
|
135
|
+
font-size: var(--nx-text-sm);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.nx-btn--lg {
|
|
139
|
+
--nx-btn-height: var(--nx-control-lg);
|
|
140
|
+
padding: 0 var(--nx-space-4);
|
|
141
|
+
font-size: var(--nx-text-lg);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.nx-btn--icon {
|
|
145
|
+
width: var(--nx-btn-height);
|
|
146
|
+
padding: 0;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.nx-btn--block {
|
|
150
|
+
display: flex;
|
|
151
|
+
width: 100%;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
@layer nexus.components {
|
|
2
|
+
/*
|
|
3
|
+
* Calendar: a month grid of day buttons under a header of month and year menus. Cells touch along a row, so a
|
|
4
|
+
* range reads as one band; the chosen days are solid primary, today has a primary edge, and holidays are red.
|
|
5
|
+
* Nepali text carries lang="ne", which switches to a font with Devanagari glyphs (Nexus.Base.css).
|
|
6
|
+
*/
|
|
7
|
+
.nx-cal {
|
|
8
|
+
--nx-cal-cell: 36px;
|
|
9
|
+
--nx-cal-font: var(--nx-text-sm);
|
|
10
|
+
|
|
11
|
+
display: inline-grid;
|
|
12
|
+
gap: var(--nx-space-2);
|
|
13
|
+
padding: var(--nx-space-2);
|
|
14
|
+
color: var(--nx-text);
|
|
15
|
+
font-size: var(--nx-cal-font);
|
|
16
|
+
line-height: 1.3;
|
|
17
|
+
user-select: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.nx-cal--sm {
|
|
21
|
+
--nx-cal-cell: 32px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.nx-cal--lg {
|
|
25
|
+
--nx-cal-cell: 42px;
|
|
26
|
+
--nx-cal-font: var(--nx-text-md);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.nx-cal[data-disabled] {
|
|
30
|
+
opacity: 0.6;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* One or more months side by side; each has its own header, and only the outer ones carry an arrow. */
|
|
34
|
+
.nx-cal__months {
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: flex-start;
|
|
37
|
+
gap: var(--nx-space-4);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.nx-cal__month {
|
|
41
|
+
display: grid;
|
|
42
|
+
gap: var(--nx-space-2);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Header: previous, month and year menus, next */
|
|
46
|
+
.nx-cal__head {
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
gap: 2px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.nx-cal__nav {
|
|
53
|
+
display: grid;
|
|
54
|
+
place-items: center;
|
|
55
|
+
flex-shrink: 0;
|
|
56
|
+
width: 28px;
|
|
57
|
+
height: 28px;
|
|
58
|
+
padding: 0;
|
|
59
|
+
border: 0;
|
|
60
|
+
border-radius: var(--nx-radius-sm);
|
|
61
|
+
background: none;
|
|
62
|
+
color: var(--nx-text-muted);
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
transition:
|
|
65
|
+
background-color var(--nx-duration),
|
|
66
|
+
color var(--nx-duration);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.nx-cal__nav .nx-icon {
|
|
70
|
+
width: 18px;
|
|
71
|
+
height: 18px;
|
|
72
|
+
vertical-align: 0;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.nx-cal__nav:hover:not(:disabled) {
|
|
76
|
+
background: var(--nx-surface-hover);
|
|
77
|
+
color: var(--nx-text);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.nx-cal__nav:focus-visible {
|
|
81
|
+
outline: 2px solid var(--nx-primary);
|
|
82
|
+
outline-offset: -2px;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.nx-cal__nav:disabled {
|
|
86
|
+
opacity: 0.35;
|
|
87
|
+
cursor: default;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* Keeps the menus centered in a month that has no arrow on that side. */
|
|
91
|
+
.nx-cal__nav--space {
|
|
92
|
+
visibility: hidden;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.nx-cal__menus {
|
|
96
|
+
display: flex;
|
|
97
|
+
flex: 1 1 auto;
|
|
98
|
+
justify-content: center;
|
|
99
|
+
gap: 2px;
|
|
100
|
+
min-width: 0;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/* A menu drawn as a title: no frame until hovered, its own small chevron. */
|
|
104
|
+
.nx-cal__select {
|
|
105
|
+
appearance: none;
|
|
106
|
+
max-width: 100%;
|
|
107
|
+
height: 28px;
|
|
108
|
+
padding: 0 18px 0 8px;
|
|
109
|
+
border: 0;
|
|
110
|
+
border-radius: var(--nx-radius-sm);
|
|
111
|
+
background:
|
|
112
|
+
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6-6'/%3E%3C/svg%3E")
|
|
113
|
+
no-repeat right 4px center / 12px;
|
|
114
|
+
color: var(--nx-text);
|
|
115
|
+
font-size: var(--nx-cal-font);
|
|
116
|
+
font-weight: 600;
|
|
117
|
+
cursor: pointer;
|
|
118
|
+
transition: background-color var(--nx-duration);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.nx-cal__select:hover:not(:disabled) {
|
|
122
|
+
background-color: var(--nx-surface-hover);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.nx-cal__select:focus-visible {
|
|
126
|
+
outline: 2px solid var(--nx-primary);
|
|
127
|
+
outline-offset: -2px;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.nx-cal__select:disabled {
|
|
131
|
+
cursor: default;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/* The menu's list takes the theme's colors in browsers that style it. */
|
|
135
|
+
.nx-cal__select option {
|
|
136
|
+
background: var(--nx-surface);
|
|
137
|
+
color: var(--nx-text);
|
|
138
|
+
font-weight: 400;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* Grid */
|
|
142
|
+
.nx-cal__grid {
|
|
143
|
+
display: grid;
|
|
144
|
+
gap: 2px 0;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.nx-cal__row {
|
|
148
|
+
display: grid;
|
|
149
|
+
grid-template-columns: repeat(7, var(--nx-cal-cell));
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.nx-cal__weekday {
|
|
153
|
+
display: grid;
|
|
154
|
+
place-items: center;
|
|
155
|
+
height: 26px;
|
|
156
|
+
color: var(--nx-text-muted);
|
|
157
|
+
font-size: var(--nx-text-xs);
|
|
158
|
+
font-weight: 600;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.nx-cal__day {
|
|
162
|
+
position: relative;
|
|
163
|
+
display: grid;
|
|
164
|
+
place-items: center;
|
|
165
|
+
width: var(--nx-cal-cell);
|
|
166
|
+
height: var(--nx-cal-cell);
|
|
167
|
+
padding: 0;
|
|
168
|
+
border: 1px solid transparent;
|
|
169
|
+
border-radius: var(--nx-radius);
|
|
170
|
+
background: none;
|
|
171
|
+
color: var(--nx-text);
|
|
172
|
+
font: inherit;
|
|
173
|
+
font-variant-numeric: tabular-nums;
|
|
174
|
+
cursor: pointer;
|
|
175
|
+
transition:
|
|
176
|
+
background-color var(--nx-duration),
|
|
177
|
+
color var(--nx-duration);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.nx-cal__day--empty {
|
|
181
|
+
cursor: default;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.nx-cal__day:hover:not([aria-disabled], [aria-selected="true"]) {
|
|
185
|
+
background: var(--nx-surface-hover);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/* A ring that stays visible on a solid primary day. */
|
|
189
|
+
.nx-cal__day:focus-visible {
|
|
190
|
+
outline: none;
|
|
191
|
+
box-shadow:
|
|
192
|
+
0 0 0 2px var(--nx-surface),
|
|
193
|
+
0 0 0 4px var(--nx-primary);
|
|
194
|
+
z-index: 1;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.nx-cal__day[data-outside] {
|
|
198
|
+
color: var(--nx-text-subtle);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.nx-cal__weekday[data-weekend],
|
|
202
|
+
.nx-cal__day[data-weekend]:not([data-outside]) {
|
|
203
|
+
color: var(--nx-danger);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.nx-cal__day[data-today] {
|
|
207
|
+
border-color: var(--nx-primary);
|
|
208
|
+
font-weight: 600;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/* Between the two ends of a range: a soft band across the row. */
|
|
212
|
+
.nx-cal__day[data-in-range] {
|
|
213
|
+
border-radius: 0;
|
|
214
|
+
background: var(--nx-primary-soft);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.nx-cal__day[data-range-start] {
|
|
218
|
+
border-top-right-radius: 0;
|
|
219
|
+
border-bottom-right-radius: 0;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.nx-cal__day[data-range-end] {
|
|
223
|
+
border-top-left-radius: 0;
|
|
224
|
+
border-bottom-left-radius: 0;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.nx-cal__day[aria-selected="true"] {
|
|
228
|
+
border-color: var(--nx-primary-solid);
|
|
229
|
+
background: var(--nx-primary-solid);
|
|
230
|
+
color: var(--nx-primary-text);
|
|
231
|
+
font-weight: 600;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.nx-cal__day[aria-disabled="true"] {
|
|
235
|
+
color: var(--nx-text-subtle);
|
|
236
|
+
opacity: 0.45;
|
|
237
|
+
cursor: default;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.nx-cal__day[aria-disabled="true"][aria-selected="true"] {
|
|
241
|
+
opacity: 0.7;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
/* Footer */
|
|
245
|
+
.nx-cal__foot {
|
|
246
|
+
display: flex;
|
|
247
|
+
justify-content: space-between;
|
|
248
|
+
gap: var(--nx-space-2);
|
|
249
|
+
padding-top: var(--nx-space-1);
|
|
250
|
+
border-top: 1px solid var(--nx-border);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/* Date picker: the box's text lines digits up, and its calendar opens in a popover placed by the component. */
|
|
254
|
+
.nx-field__control--date {
|
|
255
|
+
font-variant-numeric: tabular-nums;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.nx-date-popover {
|
|
259
|
+
position: fixed;
|
|
260
|
+
inset: auto;
|
|
261
|
+
padding: 0;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.nx-field__action--calendar[aria-expanded="true"] {
|
|
265
|
+
color: var(--nx-field-accent);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
@media (prefers-reduced-motion: reduce) {
|
|
269
|
+
.nx-cal__day,
|
|
270
|
+
.nx-cal__nav,
|
|
271
|
+
.nx-cal__select {
|
|
272
|
+
transition: none;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|