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,159 @@
|
|
|
1
|
+
@layer nexus.components {
|
|
2
|
+
/* Popover panel: a native [popover] element, placed by the component that opens it. In dark mode it is a step
|
|
3
|
+
lighter than the surface it floats over, so it reads as raised. */
|
|
4
|
+
.nx-popover {
|
|
5
|
+
margin: 0;
|
|
6
|
+
padding: var(--nx-space-4);
|
|
7
|
+
border: 1px solid var(--nx-border);
|
|
8
|
+
border-radius: var(--nx-radius-lg);
|
|
9
|
+
background: light-dark(var(--nx-surface), var(--nx-surface-2));
|
|
10
|
+
color: var(--nx-text);
|
|
11
|
+
box-shadow: var(--nx-shadow);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.nx-theme-switcher__panel {
|
|
15
|
+
position: fixed;
|
|
16
|
+
inset: auto;
|
|
17
|
+
width: min(340px, calc(100vw - 16px));
|
|
18
|
+
max-height: calc(100vh - 80px);
|
|
19
|
+
overflow-y: auto;
|
|
20
|
+
overscroll-behavior: contain;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.nx-theme-picker {
|
|
24
|
+
display: grid;
|
|
25
|
+
gap: var(--nx-space-4);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.nx-theme-picker__group {
|
|
29
|
+
min-width: 0;
|
|
30
|
+
margin: 0;
|
|
31
|
+
padding: 0;
|
|
32
|
+
border: 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.nx-theme-picker__legend {
|
|
36
|
+
margin: 0 0 var(--nx-space-2);
|
|
37
|
+
padding: 0;
|
|
38
|
+
color: var(--nx-text-muted);
|
|
39
|
+
font-size: var(--nx-text-xs);
|
|
40
|
+
font-weight: 600;
|
|
41
|
+
letter-spacing: 0.06em;
|
|
42
|
+
text-transform: uppercase;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Theme cards */
|
|
46
|
+
.nx-theme-picker__grid {
|
|
47
|
+
display: grid;
|
|
48
|
+
grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
|
|
49
|
+
gap: var(--nx-space-2);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.nx-theme-option {
|
|
53
|
+
display: grid;
|
|
54
|
+
gap: 6px;
|
|
55
|
+
padding: 5px;
|
|
56
|
+
border: 1px solid var(--nx-border);
|
|
57
|
+
border-radius: var(--nx-radius);
|
|
58
|
+
background: var(--nx-surface);
|
|
59
|
+
color: var(--nx-text);
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
transition:
|
|
62
|
+
border-color var(--nx-duration),
|
|
63
|
+
box-shadow var(--nx-duration);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.nx-theme-option:hover {
|
|
67
|
+
border-color: var(--nx-border-strong);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.nx-theme-option:has(:checked) {
|
|
71
|
+
border-color: var(--nx-primary);
|
|
72
|
+
box-shadow: 0 0 0 1px var(--nx-primary);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.nx-theme-option:has(:focus-visible) {
|
|
76
|
+
box-shadow: 0 0 0 1px var(--nx-primary), var(--nx-focus-ring);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* Drawn with the previewed theme's tokens, because the element carries its data-nx-theme. */
|
|
80
|
+
.nx-theme-option__preview {
|
|
81
|
+
display: block;
|
|
82
|
+
padding: 7px;
|
|
83
|
+
border-radius: var(--nx-radius-sm);
|
|
84
|
+
background: var(--nx-bg);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.nx-theme-option__window {
|
|
88
|
+
display: grid;
|
|
89
|
+
gap: 5px;
|
|
90
|
+
padding: 7px;
|
|
91
|
+
border: 1px solid var(--nx-border);
|
|
92
|
+
border-radius: var(--nx-radius-sm);
|
|
93
|
+
background: var(--nx-surface);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.nx-theme-option__line {
|
|
97
|
+
width: 78%;
|
|
98
|
+
height: 5px;
|
|
99
|
+
border-radius: 3px;
|
|
100
|
+
background: var(--nx-text);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.nx-theme-option__line--muted {
|
|
104
|
+
width: 52%;
|
|
105
|
+
background: var(--nx-text-muted);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.nx-theme-option__swatches {
|
|
109
|
+
display: flex;
|
|
110
|
+
align-items: center;
|
|
111
|
+
gap: 4px;
|
|
112
|
+
margin-top: 2px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.nx-theme-option__pill {
|
|
116
|
+
width: 26px;
|
|
117
|
+
height: 10px;
|
|
118
|
+
margin-right: auto;
|
|
119
|
+
border-radius: var(--nx-radius-full);
|
|
120
|
+
background: var(--nx-primary);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.nx-theme-option__dot {
|
|
124
|
+
width: 9px;
|
|
125
|
+
height: 9px;
|
|
126
|
+
border-radius: 50%;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.nx-theme-option__dot--success {
|
|
130
|
+
background: var(--nx-success);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.nx-theme-option__dot--warning {
|
|
134
|
+
background: var(--nx-warning);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.nx-theme-option__dot--danger {
|
|
138
|
+
background: var(--nx-danger);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.nx-theme-option__name {
|
|
142
|
+
display: flex;
|
|
143
|
+
align-items: center;
|
|
144
|
+
justify-content: space-between;
|
|
145
|
+
gap: 4px;
|
|
146
|
+
padding: 0 3px 1px;
|
|
147
|
+
font-size: var(--nx-text-sm);
|
|
148
|
+
font-weight: 500;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.nx-theme-option__check {
|
|
152
|
+
color: var(--nx-primary);
|
|
153
|
+
visibility: hidden;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.nx-theme-option:has(:checked) .nx-theme-option__check {
|
|
157
|
+
visibility: visible;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Color themes. Each sets its base palette once per color as light-dark(light, dark); the page's color-scheme
|
|
3
|
+
* (light, dark, or the system setting) picks the side. Hover colors, soft backgrounds, and the focus ring are
|
|
4
|
+
* derived from these in Nexus.Tokens.css.
|
|
5
|
+
*
|
|
6
|
+
* Colors follow each theme's official palette, darkened or lightened where needed to meet WCAG AA contrast.
|
|
7
|
+
* --nx-primary and --nx-danger are the accent as text and lines (light in dark mode, for contrast on dark panels);
|
|
8
|
+
* --nx-primary-solid and --nx-danger-solid are the same hue as a fill behind white text (buttons, selected days,
|
|
9
|
+
* checks), a darker shade in dark mode. --nx-primary-text and --nx-danger-text sit on the solid fills.
|
|
10
|
+
* After changing a color, run: npm run check:themes
|
|
11
|
+
*
|
|
12
|
+
* A new theme is one more block with its own data-nx-theme value, added to NEXUS_THEMES or passed to the theme components.
|
|
13
|
+
*/
|
|
14
|
+
@layer nexus.themes {
|
|
15
|
+
/* Nexus: neutral grays with a confident blue. The default. */
|
|
16
|
+
:root,
|
|
17
|
+
[data-nx-theme="nexus"] {
|
|
18
|
+
--nx-bg: light-dark(#f5f6f8, #0f1115);
|
|
19
|
+
--nx-surface: light-dark(#ffffff, #171a20);
|
|
20
|
+
--nx-surface-2: light-dark(#f0f2f5, #1e222a);
|
|
21
|
+
--nx-surface-hover: light-dark(#e9ecf1, #262b35);
|
|
22
|
+
--nx-border: light-dark(#dde1e7, #2c323d);
|
|
23
|
+
--nx-border-strong: light-dark(#c3cad4, #3d4552);
|
|
24
|
+
--nx-text: light-dark(#171c26, #e6e9ef);
|
|
25
|
+
--nx-text-muted: light-dark(#5a6375, #a1a9b7);
|
|
26
|
+
--nx-text-subtle: light-dark(#8b93a2, #6f7888);
|
|
27
|
+
--nx-primary: light-dark(#1c5cea, #4f8fff);
|
|
28
|
+
--nx-primary-solid: light-dark(#1c5cea, #3270dd);
|
|
29
|
+
--nx-primary-text: light-dark(#ffffff, #ffffff);
|
|
30
|
+
--nx-danger: light-dark(#c5291d, #f26b5e);
|
|
31
|
+
--nx-danger-solid: light-dark(#c5291d, #cb473d);
|
|
32
|
+
--nx-danger-text: light-dark(#ffffff, #ffffff);
|
|
33
|
+
--nx-success: light-dark(#147739, #4cc27a);
|
|
34
|
+
--nx-warning: light-dark(#b34608, #f2a54a);
|
|
35
|
+
--nx-info: light-dark(#0b6aa2, #5bb3e6);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* GitHub: Primer grays with GitHub green. */
|
|
39
|
+
[data-nx-theme="github"] {
|
|
40
|
+
--nx-bg: light-dark(#f6f8fa, #010409);
|
|
41
|
+
--nx-surface: light-dark(#ffffff, #0d1117);
|
|
42
|
+
--nx-surface-2: light-dark(#f6f8fa, #151b23);
|
|
43
|
+
--nx-surface-hover: light-dark(#eef1f4, #212830);
|
|
44
|
+
--nx-border: light-dark(#d1d9e0, #3d444d);
|
|
45
|
+
--nx-border-strong: light-dark(#b1bac4, #656c76);
|
|
46
|
+
--nx-text: light-dark(#1f2328, #f0f6fc);
|
|
47
|
+
--nx-text-muted: light-dark(#59636e, #9198a1);
|
|
48
|
+
--nx-text-subtle: light-dark(#818b98, #6e7681);
|
|
49
|
+
--nx-primary: light-dark(#1b7736, #3fb950);
|
|
50
|
+
--nx-primary-solid: light-dark(#1b7736, #388441);
|
|
51
|
+
--nx-primary-text: light-dark(#ffffff, #ffffff);
|
|
52
|
+
--nx-danger: light-dark(#c8212d, #f85149);
|
|
53
|
+
--nx-danger-solid: light-dark(#c8212d, #db3330);
|
|
54
|
+
--nx-danger-text: light-dark(#ffffff, #ffffff);
|
|
55
|
+
--nx-success: light-dark(#197934, #3fb950);
|
|
56
|
+
--nx-warning: light-dark(#8d5e00, #d29922);
|
|
57
|
+
--nx-info: light-dark(#0964d0, #4493f8);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* Nord: arctic, north-bluish calm. */
|
|
61
|
+
[data-nx-theme="nord"] {
|
|
62
|
+
--nx-bg: light-dark(#e5e9f0, #242933);
|
|
63
|
+
--nx-surface: light-dark(#eceff4, #2e3440);
|
|
64
|
+
--nx-surface-2: light-dark(#e5e9f0, #3b4252);
|
|
65
|
+
--nx-surface-hover: light-dark(#d8dee9, #434c5e);
|
|
66
|
+
--nx-border: light-dark(#d8dee9, #434c5e);
|
|
67
|
+
--nx-border-strong: light-dark(#b8c2d3, #4c566a);
|
|
68
|
+
--nx-text: light-dark(#2e3440, #eceff4);
|
|
69
|
+
--nx-text-muted: light-dark(#4c566a, #b9c2d0);
|
|
70
|
+
--nx-text-subtle: light-dark(#7b88a1, #7b88a1);
|
|
71
|
+
--nx-primary: light-dark(#446184, #88c0d0);
|
|
72
|
+
--nx-primary-solid: light-dark(#446184, #4b717c);
|
|
73
|
+
--nx-primary-text: light-dark(#eceff4, #eceff4);
|
|
74
|
+
--nx-danger: light-dark(#9e4049, #dba6ab);
|
|
75
|
+
--nx-danger-solid: light-dark(#9e4049, #8e5e63);
|
|
76
|
+
--nx-danger-text: light-dark(#eceff4, #eceff4);
|
|
77
|
+
--nx-success: light-dark(#4e6639, #a3be8c);
|
|
78
|
+
--nx-warning: light-dark(#954931, #ebcb8b);
|
|
79
|
+
--nx-info: light-dark(#406283, #9cb5ce);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* Dracula: the dark purple classic, with its Alucard palette for light. */
|
|
83
|
+
[data-nx-theme="dracula"] {
|
|
84
|
+
--nx-bg: light-dark(#f3eed9, #21222c);
|
|
85
|
+
--nx-surface: light-dark(#fffbeb, #282a36);
|
|
86
|
+
--nx-surface-2: light-dark(#f7f1dc, #303241);
|
|
87
|
+
--nx-surface-hover: light-dark(#efe8cf, #44475a);
|
|
88
|
+
--nx-border: light-dark(#e4dcc0, #44475a);
|
|
89
|
+
--nx-border-strong: light-dark(#cfc49f, #6272a4);
|
|
90
|
+
--nx-text: light-dark(#1f1f1f, #f8f8f2);
|
|
91
|
+
--nx-text-muted: light-dark(#635d97, #c5c8d8);
|
|
92
|
+
--nx-text-subtle: light-dark(#8e89ae, #6272a4);
|
|
93
|
+
--nx-primary: light-dark(#644ac9, #bd93f9);
|
|
94
|
+
--nx-primary-solid: light-dark(#644ac9, #8a60c1);
|
|
95
|
+
--nx-primary-text: light-dark(#ffffff, #ffffff);
|
|
96
|
+
--nx-danger: light-dark(#ba3527, #ff7b7b);
|
|
97
|
+
--nx-danger-solid: light-dark(#ba3527, #c8494d);
|
|
98
|
+
--nx-danger-text: light-dark(#ffffff, #ffffff);
|
|
99
|
+
--nx-success: light-dark(#14710a, #50fa7b);
|
|
100
|
+
--nx-warning: light-dark(#a34d14, #ffb86c);
|
|
101
|
+
--nx-info: light-dark(#036a96, #8be9fd);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* Solarized: warm cream or deep teal, with precise accents. */
|
|
105
|
+
[data-nx-theme="solarized"] {
|
|
106
|
+
--nx-bg: light-dark(#eee8d5, #00212b);
|
|
107
|
+
--nx-surface: light-dark(#fdf6e3, #002b36);
|
|
108
|
+
--nx-surface-2: light-dark(#f5efdc, #073642);
|
|
109
|
+
--nx-surface-hover: light-dark(#eee8d5, #0b4453);
|
|
110
|
+
--nx-border: light-dark(#e4ddc8, #0d3f4c);
|
|
111
|
+
--nx-border-strong: light-dark(#cdc5ab, #2a5561);
|
|
112
|
+
--nx-text: light-dark(#073642, #eee8d5);
|
|
113
|
+
--nx-text-muted: light-dark(#566b72, #93a1a1);
|
|
114
|
+
--nx-text-subtle: light-dark(#809294, #657b83);
|
|
115
|
+
--nx-primary: light-dark(#1c679c, #55a7e0);
|
|
116
|
+
--nx-primary-solid: light-dark(#1c679c, #247bb2);
|
|
117
|
+
--nx-primary-text: light-dark(#ffffff, #ffffff);
|
|
118
|
+
--nx-danger: light-dark(#bd2320, #e9807e);
|
|
119
|
+
--nx-danger-solid: light-dark(#bd2320, #b95555);
|
|
120
|
+
--nx-danger-text: light-dark(#ffffff, #ffffff);
|
|
121
|
+
--nx-success: light-dark(#5b6900, #92a800);
|
|
122
|
+
--nx-warning: light-dark(#7d5e00, #c69700);
|
|
123
|
+
--nx-info: light-dark(#1d6e68, #2fb3a9);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/* Catppuccin: soothing pastels, Latte for light and Mocha for dark. */
|
|
127
|
+
[data-nx-theme="catppuccin"] {
|
|
128
|
+
--nx-bg: light-dark(#e6e9ef, #11111b);
|
|
129
|
+
--nx-surface: light-dark(#eff1f5, #1e1e2e);
|
|
130
|
+
--nx-surface-2: light-dark(#e6e9ef, #313244);
|
|
131
|
+
--nx-surface-hover: light-dark(#dce0e8, #45475a);
|
|
132
|
+
--nx-border: light-dark(#ccd0da, #45475a);
|
|
133
|
+
--nx-border-strong: light-dark(#acb0be, #585b70);
|
|
134
|
+
--nx-text: light-dark(#42455c, #dce2f7);
|
|
135
|
+
--nx-text-muted: light-dark(#65687d, #a6adc8);
|
|
136
|
+
--nx-text-subtle: light-dark(#868a9c, #7f849c);
|
|
137
|
+
--nx-primary: light-dark(#7a21ed, #cba6f7);
|
|
138
|
+
--nx-primary-solid: light-dark(#7a21ed, #8965b1);
|
|
139
|
+
--nx-primary-text: light-dark(#ffffff, #ffffff);
|
|
140
|
+
--nx-danger: light-dark(#ba0d33, #f38ba8);
|
|
141
|
+
--nx-danger-solid: light-dark(#ba0d33, #b75573);
|
|
142
|
+
--nx-danger-text: light-dark(#ffffff, #ffffff);
|
|
143
|
+
--nx-success: light-dark(#2c6e1d, #a6e3a1);
|
|
144
|
+
--nx-warning: light-dark(#875612, #f9e2af);
|
|
145
|
+
--nx-info: light-dark(#0a52e0, #89b4fa);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/* Rosé Pine: muted pine, iris, and rose; Dawn for light. */
|
|
149
|
+
[data-nx-theme="rose-pine"] {
|
|
150
|
+
--nx-bg: light-dark(#faf4ed, #191724);
|
|
151
|
+
--nx-surface: light-dark(#fffaf3, #1f1d2e);
|
|
152
|
+
--nx-surface-2: light-dark(#f2e9e1, #26233a);
|
|
153
|
+
--nx-surface-hover: light-dark(#ebe2da, #2a2740);
|
|
154
|
+
--nx-border: light-dark(#dfdad9, #403d52);
|
|
155
|
+
--nx-border-strong: light-dark(#cecacd, #524f67);
|
|
156
|
+
--nx-text: light-dark(#494565, #e0def4);
|
|
157
|
+
--nx-text-muted: light-dark(#6a6683, #908caa);
|
|
158
|
+
--nx-text-subtle: light-dark(#948fa2, #6e6a86);
|
|
159
|
+
--nx-primary: light-dark(#745c8f, #c4a7e7);
|
|
160
|
+
--nx-primary-solid: light-dark(#745c8f, #8166a1);
|
|
161
|
+
--nx-primary-text: light-dark(#fffaf3, #fffaf3);
|
|
162
|
+
--nx-danger: light-dark(#9d4c63, #eb6f92);
|
|
163
|
+
--nx-danger-solid: light-dark(#9d4c63, #bf476c);
|
|
164
|
+
--nx-danger-text: light-dark(#fffaf3, #fffaf3);
|
|
165
|
+
--nx-success: light-dark(#286983, #9ccfd8);
|
|
166
|
+
--nx-warning: light-dark(#90590f, #f6c177);
|
|
167
|
+
--nx-info: light-dark(#406d76, #4da0c2);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/* Browsers without light-dark() (before 2024) get the Nexus light palette. */
|
|
171
|
+
@supports not (color: light-dark(#fff, #000)) {
|
|
172
|
+
:root,
|
|
173
|
+
[data-nx-theme] {
|
|
174
|
+
--nx-bg: #f5f6f8;
|
|
175
|
+
--nx-surface: #ffffff;
|
|
176
|
+
--nx-surface-2: #f0f2f5;
|
|
177
|
+
--nx-surface-hover: #e9ecf1;
|
|
178
|
+
--nx-border: #dde1e7;
|
|
179
|
+
--nx-border-strong: #c3cad4;
|
|
180
|
+
--nx-text: #171c26;
|
|
181
|
+
--nx-text-muted: #5a6375;
|
|
182
|
+
--nx-text-subtle: #8b93a2;
|
|
183
|
+
--nx-primary: #1c5cea;
|
|
184
|
+
--nx-primary-solid: #1c5cea;
|
|
185
|
+
--nx-primary-text: #ffffff;
|
|
186
|
+
--nx-danger: #c5291d;
|
|
187
|
+
--nx-danger-solid: #c5291d;
|
|
188
|
+
--nx-danger-text: #ffffff;
|
|
189
|
+
--nx-success: #147739;
|
|
190
|
+
--nx-warning: #b34608;
|
|
191
|
+
--nx-info: #0b6aa2;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
@layer nexus.components {
|
|
2
|
+
/*
|
|
3
|
+
* Time picker: the box lines digits up, and its panel opens in a popover placed by the component. The panel shows
|
|
4
|
+
* columns of hours, minutes, seconds, and AM/PM whose chosen items scroll to the middle row, so the chosen time reads
|
|
5
|
+
* as one line with its neighbours above and below; or a single list of slots. Chosen items are solid primary, like
|
|
6
|
+
* the calendar's chosen day.
|
|
7
|
+
*/
|
|
8
|
+
.nx-field__control--time {
|
|
9
|
+
font-variant-numeric: tabular-nums;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.nx-field__action--clock[aria-expanded="true"] {
|
|
13
|
+
color: var(--nx-field-accent);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.nx-time-popover {
|
|
17
|
+
position: fixed;
|
|
18
|
+
inset: auto;
|
|
19
|
+
padding: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.nx-time {
|
|
23
|
+
--nx-time-item: 32px;
|
|
24
|
+
--nx-time-rows: 7;
|
|
25
|
+
--nx-time-bg: light-dark(var(--nx-surface), var(--nx-surface-2));
|
|
26
|
+
--nx-time-scrollbar: color-mix(in oklab, var(--nx-text-subtle) 75%, transparent);
|
|
27
|
+
|
|
28
|
+
display: grid;
|
|
29
|
+
color: var(--nx-text);
|
|
30
|
+
font-size: var(--nx-text-sm);
|
|
31
|
+
line-height: 1.3;
|
|
32
|
+
user-select: none;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.nx-time__columns {
|
|
36
|
+
display: flex;
|
|
37
|
+
padding: var(--nx-space-1);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* A column scrolls; the space before its first item and after its last lets both reach the middle row. */
|
|
41
|
+
.nx-time__column {
|
|
42
|
+
position: relative;
|
|
43
|
+
width: 56px;
|
|
44
|
+
height: calc(var(--nx-time-item) * var(--nx-time-rows));
|
|
45
|
+
padding: calc(var(--nx-time-item) * (var(--nx-time-rows) - 1) / 2) var(--nx-space-1);
|
|
46
|
+
overflow-y: auto;
|
|
47
|
+
overscroll-behavior: contain;
|
|
48
|
+
outline: none;
|
|
49
|
+
scrollbar-width: thin;
|
|
50
|
+
scrollbar-color: transparent transparent;
|
|
51
|
+
transition: scrollbar-color var(--nx-duration);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.nx-time__column--meridiem {
|
|
55
|
+
width: auto;
|
|
56
|
+
min-width: 56px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.nx-time__column:is(:hover, :focus-within) {
|
|
60
|
+
scrollbar-color: var(--nx-time-scrollbar) transparent;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.nx-time__column + .nx-time__column {
|
|
64
|
+
border-left: 1px solid var(--nx-border);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.nx-time__item {
|
|
68
|
+
display: grid;
|
|
69
|
+
place-items: center;
|
|
70
|
+
height: var(--nx-time-item);
|
|
71
|
+
padding: 0 var(--nx-space-2);
|
|
72
|
+
border-radius: var(--nx-radius);
|
|
73
|
+
font-variant-numeric: tabular-nums;
|
|
74
|
+
white-space: nowrap;
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
outline: none;
|
|
77
|
+
transition:
|
|
78
|
+
background-color var(--nx-duration),
|
|
79
|
+
color var(--nx-duration);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.nx-time__item:hover:not([aria-disabled="true"], [aria-selected="true"]) {
|
|
83
|
+
background: var(--nx-surface-hover);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.nx-time__item[aria-selected="true"] {
|
|
87
|
+
background: var(--nx-primary-solid);
|
|
88
|
+
color: var(--nx-primary-text);
|
|
89
|
+
font-weight: 600;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* An inset ring, so the column does not clip it, with a band of the panel's color that shows on a chosen item. */
|
|
93
|
+
.nx-time__item:focus-visible {
|
|
94
|
+
box-shadow:
|
|
95
|
+
inset 0 0 0 2px var(--nx-primary),
|
|
96
|
+
inset 0 0 0 4px var(--nx-time-bg);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.nx-time__item[aria-disabled="true"] {
|
|
100
|
+
color: var(--nx-text-subtle);
|
|
101
|
+
opacity: 0.45;
|
|
102
|
+
cursor: default;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.nx-time__item[aria-disabled="true"][aria-selected="true"] {
|
|
106
|
+
color: var(--nx-primary-text);
|
|
107
|
+
opacity: 0.7;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.nx-time__foot {
|
|
111
|
+
display: flex;
|
|
112
|
+
justify-content: space-between;
|
|
113
|
+
gap: var(--nx-space-2);
|
|
114
|
+
padding: 6px var(--nx-space-2);
|
|
115
|
+
border-top: 1px solid var(--nx-border);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/* List of slots */
|
|
119
|
+
.nx-time__list {
|
|
120
|
+
position: relative;
|
|
121
|
+
min-width: 132px;
|
|
122
|
+
max-height: calc(var(--nx-time-item) * 8 + var(--nx-space-2));
|
|
123
|
+
padding: var(--nx-space-1);
|
|
124
|
+
overflow-y: auto;
|
|
125
|
+
overscroll-behavior: contain;
|
|
126
|
+
outline: none;
|
|
127
|
+
scrollbar-width: thin;
|
|
128
|
+
scrollbar-color: var(--nx-time-scrollbar) transparent;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.nx-time__slot {
|
|
132
|
+
place-items: center start;
|
|
133
|
+
padding: 0 var(--nx-space-3);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.nx-time__empty {
|
|
137
|
+
padding: var(--nx-space-2) var(--nx-space-3);
|
|
138
|
+
color: var(--nx-text-muted);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@media (prefers-reduced-motion: reduce) {
|
|
142
|
+
.nx-time__item,
|
|
143
|
+
.nx-time__column {
|
|
144
|
+
transition: none;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|