@neetechs/ui 0.0.3 → 0.0.4
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/README.md +118 -16
- package/dist/ai/ai-action-button/ai-action-button.css +36 -35
- package/dist/ai/ai-approval-card/ai-approval-card.css +20 -17
- package/dist/ai/ai-conversation-panel/ai-conversation-panel.css +70 -26
- package/dist/ai/ai-prompt-input/ai-prompt-input.css +36 -33
- package/dist/ai/ai-proposal-card/ai-proposal-card.css +17 -17
- package/dist/ai/ai-suggestion-card/ai-suggestion-card.css +27 -25
- package/dist/ai/ai-tool-call/ai-tool-call.css +15 -14
- package/dist/appearance/cache.d.ts +6 -1
- package/dist/appearance/cache.d.ts.map +1 -1
- package/dist/appearance/cache.js +57 -1
- package/dist/appearance/cache.js.map +1 -1
- package/dist/appearance/cookie.d.ts +16 -1
- package/dist/appearance/cookie.d.ts.map +1 -1
- package/dist/appearance/cookie.js +73 -4
- package/dist/appearance/cookie.js.map +1 -1
- package/dist/appearance/index.d.ts +7 -6
- package/dist/appearance/index.d.ts.map +1 -1
- package/dist/appearance/index.js +4 -4
- package/dist/appearance/index.js.map +1 -1
- package/dist/appearance/preference.d.ts +9 -1
- package/dist/appearance/preference.d.ts.map +1 -1
- package/dist/appearance/preference.js +54 -0
- package/dist/appearance/preference.js.map +1 -1
- package/dist/appearance/theme-controller.d.ts +31 -49
- package/dist/appearance/theme-controller.d.ts.map +1 -1
- package/dist/appearance/theme-controller.js +150 -145
- package/dist/appearance/theme-controller.js.map +1 -1
- package/dist/appearance/types.d.ts +29 -2
- package/dist/appearance/types.d.ts.map +1 -1
- package/dist/behaviors/announcer.d.ts +34 -0
- package/dist/behaviors/announcer.d.ts.map +1 -0
- package/dist/behaviors/announcer.js +150 -0
- package/dist/behaviors/announcer.js.map +1 -0
- package/dist/behaviors/calendar.d.ts +15 -0
- package/dist/behaviors/calendar.d.ts.map +1 -0
- package/dist/behaviors/calendar.js +77 -0
- package/dist/behaviors/calendar.js.map +1 -0
- package/dist/behaviors/data-grid.d.ts +18 -0
- package/dist/behaviors/data-grid.d.ts.map +1 -0
- package/dist/behaviors/data-grid.js +114 -0
- package/dist/behaviors/data-grid.js.map +1 -0
- package/dist/behaviors/dialog.d.ts +14 -0
- package/dist/behaviors/dialog.d.ts.map +1 -1
- package/dist/behaviors/dialog.js +24 -6
- package/dist/behaviors/dialog.js.map +1 -1
- package/dist/behaviors/direction.d.ts +10 -0
- package/dist/behaviors/direction.d.ts.map +1 -0
- package/dist/behaviors/direction.js +24 -0
- package/dist/behaviors/direction.js.map +1 -0
- package/dist/behaviors/drawer.d.ts +15 -3
- package/dist/behaviors/drawer.d.ts.map +1 -1
- package/dist/behaviors/drawer.js +25 -10
- package/dist/behaviors/drawer.js.map +1 -1
- package/dist/behaviors/dropdown.d.ts +11 -0
- package/dist/behaviors/dropdown.d.ts.map +1 -1
- package/dist/behaviors/dropdown.js +53 -11
- package/dist/behaviors/dropdown.js.map +1 -1
- package/dist/behaviors/focus-trap.d.ts.map +1 -1
- package/dist/behaviors/focus-trap.js +45 -5
- package/dist/behaviors/focus-trap.js.map +1 -1
- package/dist/behaviors/forms.d.ts +32 -0
- package/dist/behaviors/forms.d.ts.map +1 -0
- package/dist/behaviors/forms.js +147 -0
- package/dist/behaviors/forms.js.map +1 -0
- package/dist/behaviors/index.d.ts +8 -0
- package/dist/behaviors/index.d.ts.map +1 -1
- package/dist/behaviors/index.js +8 -0
- package/dist/behaviors/index.js.map +1 -1
- package/dist/behaviors/keyboard.d.ts.map +1 -1
- package/dist/behaviors/keyboard.js +4 -2
- package/dist/behaviors/keyboard.js.map +1 -1
- package/dist/behaviors/overlay.d.ts +6 -0
- package/dist/behaviors/overlay.d.ts.map +1 -1
- package/dist/behaviors/overlay.js +93 -3
- package/dist/behaviors/overlay.js.map +1 -1
- package/dist/behaviors/state.d.ts +49 -0
- package/dist/behaviors/state.d.ts.map +1 -0
- package/dist/behaviors/state.js +220 -0
- package/dist/behaviors/state.js.map +1 -0
- package/dist/behaviors/tabs.d.ts +18 -0
- package/dist/behaviors/tabs.d.ts.map +1 -0
- package/dist/behaviors/tabs.js +103 -0
- package/dist/behaviors/tabs.js.map +1 -0
- package/dist/behaviors/viewport.d.ts +40 -0
- package/dist/behaviors/viewport.d.ts.map +1 -0
- package/dist/behaviors/viewport.js +47 -0
- package/dist/behaviors/viewport.js.map +1 -0
- package/dist/components/alert/alert.css +13 -10
- package/dist/components/avatar/avatar.css +16 -15
- package/dist/components/badge/badge.css +6 -6
- package/dist/components/breadcrumb/breadcrumb.css +12 -10
- package/dist/components/button/button.css +65 -37
- package/dist/components/card/card.css +15 -14
- package/dist/components/checkbox/checkbox.css +13 -11
- package/dist/components/chip/chip.css +22 -20
- package/dist/components/data-grid/data-grid.css +167 -16
- package/dist/components/dialog/dialog.css +127 -63
- package/dist/components/drawer/drawer.css +117 -36
- package/dist/components/dropdown/dropdown.css +32 -14
- package/dist/components/icon-button/icon-button.css +41 -37
- package/dist/components/index.css +1 -2
- package/dist/components/input/input.css +10 -10
- package/dist/components/menu/menu.css +18 -17
- package/dist/components/pagination/pagination.css +13 -12
- package/dist/components/panel/panel.css +13 -12
- package/dist/components/progress/progress.css +20 -12
- package/dist/components/radio/radio.css +11 -9
- package/dist/components/segmented-control/segmented-control.css +20 -20
- package/dist/components/select/select.css +23 -9
- package/dist/components/skeleton/skeleton.css +14 -14
- package/dist/components/split-button/split-button.css +38 -31
- package/dist/components/switch/switch.css +25 -11
- package/dist/components/table/table.css +220 -0
- package/dist/components/tabs/tabs.css +36 -32
- package/dist/components/textarea/textarea.css +13 -13
- package/dist/components/toast/toast.css +43 -21
- package/dist/components/tooltip/tooltip.css +22 -19
- package/dist/domain/billing/index.css +19 -19
- package/dist/domain/calendar/agenda-list/agenda-list.css +224 -0
- package/dist/domain/calendar/day-slice/day-slice.css +18 -17
- package/dist/domain/calendar/day-timeline/day-timeline.css +42 -34
- package/dist/domain/calendar/event-card/event-card.css +20 -18
- package/dist/domain/calendar/index.css +2 -1
- package/dist/domain/calendar/month-grid/month-grid.css +34 -28
- package/dist/domain/calendar/week-grid/week-grid.css +63 -53
- package/dist/domain/companies/index.css +30 -29
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/localization/index.d.ts +8 -0
- package/dist/localization/index.d.ts.map +1 -0
- package/dist/localization/index.js +22 -0
- package/dist/localization/index.js.map +1 -0
- package/dist/patterns/command-palette/command-palette.css +39 -31
- package/dist/patterns/company-switcher/company-switcher.css +112 -85
- package/dist/patterns/content-state/content-state.css +236 -0
- package/dist/patterns/empty-state/empty-state.css +16 -15
- package/dist/patterns/error-state/error-state.css +14 -13
- package/dist/patterns/form-layout/form-layout.css +106 -0
- package/dist/patterns/index.css +8 -3
- package/dist/patterns/loading-state/loading-state.css +9 -9
- package/dist/patterns/master-detail/master-detail.css +103 -0
- package/dist/patterns/notification-center/notification-center.css +38 -33
- package/dist/patterns/page/page.css +219 -0
- package/dist/patterns/profile-menu/profile-menu.css +15 -14
- package/dist/patterns/search-bar/search-bar.css +38 -25
- package/dist/patterns/settings-layout/settings-layout.css +150 -0
- package/dist/patterns/workflow/workflow.css +168 -0
- package/dist/shell/app-shell/app-shell.css +8 -1
- package/dist/shell/header/header.css +14 -12
- package/dist/shell/index.css +2 -2
- package/dist/shell/mobile-nav/mobile-nav.css +18 -16
- package/dist/shell/sidebar/sidebar.css +10 -10
- package/dist/styles/accessibility.css +116 -0
- package/dist/styles/animations/motion.css +2 -2
- package/dist/styles/appearance/accent.css +173 -0
- package/dist/styles/appearance/density.css +61 -0
- package/dist/styles/appearance/motion.css +40 -0
- package/dist/styles/base.css +6 -5
- package/dist/styles/index.css +8 -1
- package/dist/styles/localization.css +56 -0
- package/dist/styles/reset.css +1 -0
- package/dist/styles/responsive.css +101 -0
- package/dist/styles/themes/dark.css +95 -13
- package/dist/styles/themes/high-contrast.css +182 -11
- package/dist/styles/themes/light.css +97 -15
- package/dist/styles/tokens/breakpoints.css +29 -7
- package/dist/styles/tokens/compatibility.css +33 -0
- package/dist/styles/tokens/elevation.css +1 -7
- package/dist/styles/tokens/index.css +2 -1
- package/dist/styles/tokens/radius.css +6 -1
- package/dist/styles/tokens/spacing.css +12 -6
- package/dist/styles/tokens/typography.css +3 -2
- package/dist/styles/utilities/layout.css +20 -2
- package/dist/styles/utilities/text.css +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/docs/accessibility.md +218 -0
- package/docs/appearance-and-theming.md +118 -0
- package/docs/component-architecture.md +137 -0
- package/docs/component-guidelines.md +64 -0
- package/docs/content-and-terminology.md +207 -0
- package/docs/design-system-baseline-audit.md +226 -0
- package/docs/design-token-contract.md +279 -0
- package/docs/localization-and-rtl.md +147 -0
- package/docs/migration.md +142 -0
- package/docs/page-patterns-and-workflows.md +260 -0
- package/docs/responsive-and-adaptive-design.md +351 -0
- package/docs/semantic-role-migration-audit.md +77 -0
- package/docs/states-feedback-and-recovery.md +206 -0
- package/docs/theming.md +3 -225
- package/package.json +32 -3
- package/src/ai/ai-action-button/ai-action-button.css +36 -35
- package/src/ai/ai-approval-card/ai-approval-card.css +20 -17
- package/src/ai/ai-conversation-panel/ai-conversation-panel.css +70 -26
- package/src/ai/ai-prompt-input/ai-prompt-input.css +36 -33
- package/src/ai/ai-proposal-card/ai-proposal-card.css +17 -17
- package/src/ai/ai-suggestion-card/ai-suggestion-card.css +27 -25
- package/src/ai/ai-tool-call/ai-tool-call.css +15 -14
- package/src/appearance/cache.ts +78 -2
- package/src/appearance/cookie.ts +123 -7
- package/src/appearance/index.ts +44 -2
- package/src/appearance/preference.ts +87 -1
- package/src/appearance/theme-controller.ts +221 -233
- package/src/appearance/types.ts +40 -2
- package/src/behaviors/announcer.ts +222 -0
- package/src/behaviors/calendar.ts +92 -0
- package/src/behaviors/data-grid.ts +133 -0
- package/src/behaviors/dialog.ts +42 -7
- package/src/behaviors/direction.ts +34 -0
- package/src/behaviors/drawer.ts +48 -15
- package/src/behaviors/dropdown.ts +76 -13
- package/src/behaviors/focus-trap.ts +49 -6
- package/src/behaviors/forms.ts +205 -0
- package/src/behaviors/index.ts +9 -1
- package/src/behaviors/keyboard.ts +5 -3
- package/src/behaviors/overlay.ts +116 -3
- package/src/behaviors/state.ts +282 -0
- package/src/behaviors/tabs.ts +137 -0
- package/src/behaviors/viewport.ts +61 -0
- package/src/components/alert/alert.css +13 -10
- package/src/components/avatar/avatar.css +16 -15
- package/src/components/badge/badge.css +6 -6
- package/src/components/breadcrumb/breadcrumb.css +12 -10
- package/src/components/button/button.css +65 -37
- package/src/components/card/card.css +15 -14
- package/src/components/checkbox/checkbox.css +13 -11
- package/src/components/chip/chip.css +22 -20
- package/src/components/data-grid/data-grid.css +167 -16
- package/src/components/dialog/dialog.css +127 -63
- package/src/components/drawer/drawer.css +117 -36
- package/src/components/dropdown/dropdown.css +32 -14
- package/src/components/icon-button/icon-button.css +41 -37
- package/src/components/index.css +1 -2
- package/src/components/input/input.css +10 -10
- package/src/components/menu/menu.css +18 -17
- package/src/components/pagination/pagination.css +13 -12
- package/src/components/panel/panel.css +13 -12
- package/src/components/progress/progress.css +20 -12
- package/src/components/radio/radio.css +11 -9
- package/src/components/segmented-control/segmented-control.css +20 -20
- package/src/components/select/select.css +23 -9
- package/src/components/skeleton/skeleton.css +14 -14
- package/src/components/split-button/split-button.css +38 -31
- package/src/components/switch/switch.css +25 -11
- package/src/components/table/table.css +220 -0
- package/src/components/tabs/tabs.css +36 -32
- package/src/components/textarea/textarea.css +13 -13
- package/src/components/toast/toast.css +43 -21
- package/src/components/tooltip/tooltip.css +22 -19
- package/src/domain/billing/index.css +19 -19
- package/src/domain/calendar/agenda-list/agenda-list.css +224 -0
- package/src/domain/calendar/day-slice/day-slice.css +18 -17
- package/src/domain/calendar/day-timeline/day-timeline.css +42 -34
- package/src/domain/calendar/event-card/event-card.css +20 -18
- package/src/domain/calendar/index.css +2 -1
- package/src/domain/calendar/month-grid/month-grid.css +34 -28
- package/src/domain/calendar/week-grid/week-grid.css +63 -53
- package/src/domain/companies/index.css +30 -29
- package/src/index.ts +3 -2
- package/src/localization/index.ts +56 -0
- package/src/patterns/command-palette/command-palette.css +39 -31
- package/src/patterns/company-switcher/company-switcher.css +112 -85
- package/src/patterns/content-state/content-state.css +236 -0
- package/src/patterns/empty-state/empty-state.css +16 -15
- package/src/patterns/error-state/error-state.css +14 -13
- package/src/patterns/form-layout/form-layout.css +106 -0
- package/src/patterns/index.css +8 -3
- package/src/patterns/loading-state/loading-state.css +9 -9
- package/src/patterns/master-detail/master-detail.css +103 -0
- package/src/patterns/notification-center/notification-center.css +38 -33
- package/src/patterns/page/page.css +219 -0
- package/src/patterns/profile-menu/profile-menu.css +15 -14
- package/src/patterns/search-bar/search-bar.css +38 -25
- package/src/patterns/settings-layout/settings-layout.css +150 -0
- package/src/patterns/workflow/workflow.css +168 -0
- package/src/shell/app-shell/app-shell.css +8 -1
- package/src/shell/header/header.css +14 -12
- package/src/shell/index.css +2 -2
- package/src/shell/mobile-nav/mobile-nav.css +18 -16
- package/src/shell/sidebar/sidebar.css +10 -10
- package/src/styles/accessibility.css +116 -0
- package/src/styles/animations/motion.css +2 -2
- package/src/styles/appearance/accent.css +173 -0
- package/src/styles/appearance/density.css +61 -0
- package/src/styles/appearance/motion.css +40 -0
- package/src/styles/base.css +6 -5
- package/src/styles/index.css +8 -1
- package/src/styles/localization.css +56 -0
- package/src/styles/reset.css +1 -0
- package/src/styles/responsive.css +101 -0
- package/src/styles/themes/dark.css +95 -13
- package/src/styles/themes/high-contrast.css +182 -11
- package/src/styles/themes/light.css +97 -15
- package/src/styles/tokens/breakpoints.css +29 -7
- package/src/styles/tokens/compatibility.css +33 -0
- package/src/styles/tokens/elevation.css +1 -7
- package/src/styles/tokens/index.css +2 -1
- package/src/styles/tokens/radius.css +6 -1
- package/src/styles/tokens/spacing.css +12 -6
- package/src/styles/tokens/typography.css +3 -2
- package/src/styles/utilities/layout.css +20 -2
- package/src/styles/utilities/text.css +1 -1
- package/src/types/index.ts +2 -1
- package/dist/components/modal/modal.css +0 -318
- package/dist/patterns/workspace-switcher/workspace-switcher.css +0 -380
- package/dist/shell/right-drawer/right-drawer.css +0 -108
- package/src/components/modal/modal.css +0 -318
- package/src/patterns/workspace-switcher/workspace-switcher.css +0 -380
- package/src/shell/right-drawer/right-drawer.css +0 -108
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
/* Canonical entity-switcher CSS for company and workspace public patterns. */
|
|
2
|
+
:is(.nt-company-switcher, .nt-workspace-switcher) {
|
|
2
3
|
display: flex;
|
|
3
4
|
flex-direction: column;
|
|
4
5
|
min-width: 20rem;
|
|
5
6
|
max-width: min(28rem, calc(100vw - var(--nt-space-4)));
|
|
6
7
|
overflow: hidden;
|
|
7
8
|
border: 1px solid var(--nt-border-subtle);
|
|
8
|
-
border-radius: var(--nt-radius-
|
|
9
|
-
background: var(--nt-bg-surface);
|
|
9
|
+
border-radius: var(--nt-radius-popover);
|
|
10
|
+
background: var(--nt-bg-surface-overlay);
|
|
10
11
|
color: var(--nt-text-primary);
|
|
11
|
-
box-shadow: var(--nt-
|
|
12
|
+
box-shadow: var(--nt-elevation-popover);
|
|
12
13
|
}
|
|
13
14
|
|
|
14
|
-
.nt-company-switcher__header {
|
|
15
|
+
:is(.nt-company-switcher__header, .nt-workspace-switcher__header) {
|
|
15
16
|
display: flex;
|
|
16
17
|
align-items: flex-start;
|
|
17
18
|
justify-content: space-between;
|
|
@@ -21,34 +22,34 @@
|
|
|
21
22
|
background: var(--nt-bg-surface);
|
|
22
23
|
}
|
|
23
24
|
|
|
24
|
-
.nt-company-switcher__header-main {
|
|
25
|
+
:is(.nt-company-switcher__header-main, .nt-workspace-switcher__header-main) {
|
|
25
26
|
display: flex;
|
|
26
27
|
flex-direction: column;
|
|
27
28
|
gap: var(--nt-space-1);
|
|
28
29
|
min-width: 0;
|
|
29
30
|
}
|
|
30
31
|
|
|
31
|
-
.nt-company-switcher__eyebrow {
|
|
32
|
+
:is(.nt-company-switcher__eyebrow, .nt-workspace-switcher__eyebrow) {
|
|
32
33
|
color: var(--nt-text-muted);
|
|
33
34
|
font: var(--nt-text-label-xs);
|
|
34
35
|
letter-spacing: var(--nt-letter-spacing-label);
|
|
35
36
|
text-transform: uppercase;
|
|
36
37
|
}
|
|
37
38
|
|
|
38
|
-
.nt-company-switcher__title {
|
|
39
|
+
:is(.nt-company-switcher__title, .nt-workspace-switcher__title) {
|
|
39
40
|
margin: 0;
|
|
40
41
|
color: var(--nt-text-primary);
|
|
41
42
|
font: var(--nt-text-label-md);
|
|
42
43
|
letter-spacing: var(--nt-letter-spacing-label);
|
|
43
44
|
}
|
|
44
45
|
|
|
45
|
-
.nt-company-switcher__description {
|
|
46
|
+
:is(.nt-company-switcher__description, .nt-workspace-switcher__description) {
|
|
46
47
|
margin: 0;
|
|
47
48
|
color: var(--nt-text-muted);
|
|
48
49
|
font: var(--nt-text-caption);
|
|
49
50
|
}
|
|
50
51
|
|
|
51
|
-
.nt-company-switcher__action {
|
|
52
|
+
:is(.nt-company-switcher__action, .nt-workspace-switcher__action) {
|
|
52
53
|
display: inline-flex;
|
|
53
54
|
align-items: center;
|
|
54
55
|
justify-content: center;
|
|
@@ -56,32 +57,33 @@
|
|
|
56
57
|
width: var(--nt-control-height-sm);
|
|
57
58
|
height: var(--nt-control-height-sm);
|
|
58
59
|
border: 1px solid var(--nt-control-border);
|
|
59
|
-
border-radius: var(--nt-radius-
|
|
60
|
+
border-radius: var(--nt-radius-control);
|
|
60
61
|
background: var(--nt-control-bg);
|
|
61
62
|
color: var(--nt-text-muted);
|
|
62
63
|
cursor: pointer;
|
|
63
64
|
transition: var(--nt-transition-colors);
|
|
64
65
|
}
|
|
65
66
|
|
|
66
|
-
.nt-company-switcher__action:hover {
|
|
67
|
+
:is(.nt-company-switcher__action, .nt-workspace-switcher__action):hover {
|
|
67
68
|
border-color: var(--nt-control-border-hover);
|
|
68
69
|
background: var(--nt-control-bg-hover);
|
|
69
70
|
color: var(--nt-text-primary);
|
|
70
71
|
}
|
|
71
72
|
|
|
72
|
-
.nt-company-switcher__action:focus-visible {
|
|
73
|
-
outline:
|
|
73
|
+
:is(.nt-company-switcher__action, .nt-workspace-switcher__action):focus-visible {
|
|
74
|
+
outline: var(--nt-focus-ring-width) solid var(--nt-focus-ring-color);
|
|
75
|
+
outline-offset: var(--nt-focus-ring-offset);
|
|
74
76
|
border-color: var(--nt-control-border-focus);
|
|
75
77
|
box-shadow: 0 0 0 3px var(--nt-focus-ring-muted);
|
|
76
78
|
}
|
|
77
79
|
|
|
78
|
-
.nt-company-switcher__search {
|
|
80
|
+
:is(.nt-company-switcher__search, .nt-workspace-switcher__search) {
|
|
79
81
|
padding: var(--nt-space-3);
|
|
80
82
|
border-bottom: 1px solid var(--nt-border-subtle);
|
|
81
83
|
background: var(--nt-bg-surface);
|
|
82
84
|
}
|
|
83
85
|
|
|
84
|
-
.nt-company-switcher__body {
|
|
86
|
+
:is(.nt-company-switcher__body, .nt-workspace-switcher__body) {
|
|
85
87
|
display: flex;
|
|
86
88
|
flex-direction: column;
|
|
87
89
|
gap: var(--nt-space-1);
|
|
@@ -91,14 +93,14 @@
|
|
|
91
93
|
padding: var(--nt-space-1);
|
|
92
94
|
}
|
|
93
95
|
|
|
94
|
-
.nt-company-switcher__section {
|
|
96
|
+
:is(.nt-company-switcher__section, .nt-workspace-switcher__section) {
|
|
95
97
|
display: flex;
|
|
96
98
|
flex-direction: column;
|
|
97
99
|
gap: var(--nt-space-0-5);
|
|
98
100
|
min-width: 0;
|
|
99
101
|
}
|
|
100
102
|
|
|
101
|
-
.nt-company-switcher__label {
|
|
103
|
+
:is(.nt-company-switcher__label, .nt-workspace-switcher__label) {
|
|
102
104
|
padding: var(--nt-space-2) var(--nt-space-2-5) var(--nt-space-1);
|
|
103
105
|
color: var(--nt-text-muted);
|
|
104
106
|
font: var(--nt-text-label-xs);
|
|
@@ -106,7 +108,7 @@
|
|
|
106
108
|
text-transform: uppercase;
|
|
107
109
|
}
|
|
108
110
|
|
|
109
|
-
.nt-company-switcher__item {
|
|
111
|
+
:is(.nt-company-switcher__item, .nt-workspace-switcher__item) {
|
|
110
112
|
display: grid;
|
|
111
113
|
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
112
114
|
align-items: center;
|
|
@@ -116,7 +118,7 @@
|
|
|
116
118
|
min-height: 3.25rem;
|
|
117
119
|
padding: var(--nt-space-2);
|
|
118
120
|
border: 1px solid transparent;
|
|
119
|
-
border-radius: var(--nt-radius-
|
|
121
|
+
border-radius: var(--nt-radius-item);
|
|
120
122
|
background: transparent;
|
|
121
123
|
color: var(--nt-text-primary);
|
|
122
124
|
text-align: start;
|
|
@@ -125,36 +127,37 @@
|
|
|
125
127
|
transition: var(--nt-transition-colors);
|
|
126
128
|
}
|
|
127
129
|
|
|
128
|
-
.nt-company-switcher__item:hover,
|
|
129
|
-
.nt-company-switcher__item[data-highlighted='true'] {
|
|
130
|
+
:is(.nt-company-switcher__item, .nt-workspace-switcher__item):hover,
|
|
131
|
+
:is(.nt-company-switcher__item, .nt-workspace-switcher__item)[data-highlighted='true'] {
|
|
130
132
|
background: var(--nt-bg-surface-hover);
|
|
131
133
|
color: var(--nt-text-primary);
|
|
132
134
|
}
|
|
133
135
|
|
|
134
|
-
.nt-company-switcher__item:focus-visible {
|
|
135
|
-
outline:
|
|
136
|
+
:is(.nt-company-switcher__item, .nt-workspace-switcher__item):focus-visible {
|
|
137
|
+
outline: var(--nt-focus-ring-width) solid var(--nt-focus-ring-color);
|
|
138
|
+
outline-offset: var(--nt-focus-ring-offset);
|
|
136
139
|
border-color: var(--nt-control-border-focus);
|
|
137
140
|
box-shadow: 0 0 0 3px var(--nt-focus-ring-muted);
|
|
138
141
|
}
|
|
139
142
|
|
|
140
|
-
.nt-company-switcher__item[aria-current='true'],
|
|
141
|
-
.nt-company-switcher__item[aria-selected='true'],
|
|
142
|
-
.nt-company-switcher__item[data-state='active'],
|
|
143
|
-
.nt-company-switcher__item--active {
|
|
144
|
-
border-color: var(--nt-
|
|
145
|
-
background: var(--nt-
|
|
146
|
-
color: var(--nt-
|
|
143
|
+
:is(.nt-company-switcher__item, .nt-workspace-switcher__item)[aria-current='true'],
|
|
144
|
+
:is(.nt-company-switcher__item, .nt-workspace-switcher__item)[aria-selected='true'],
|
|
145
|
+
:is(.nt-company-switcher__item, .nt-workspace-switcher__item)[data-state='active'],
|
|
146
|
+
:is(.nt-company-switcher__item--active, .nt-workspace-switcher__item--active) {
|
|
147
|
+
border-color: var(--nt-selection-border);
|
|
148
|
+
background: var(--nt-selection-bg);
|
|
149
|
+
color: var(--nt-selection-fg);
|
|
147
150
|
}
|
|
148
151
|
|
|
149
|
-
.nt-company-switcher__item[aria-disabled='true'],
|
|
150
|
-
.nt-company-switcher__item:disabled,
|
|
151
|
-
.nt-company-switcher__item--disabled {
|
|
152
|
-
color: var(--nt-disabled
|
|
152
|
+
:is(.nt-company-switcher__item, .nt-workspace-switcher__item)[aria-disabled='true'],
|
|
153
|
+
:is(.nt-company-switcher__item, .nt-workspace-switcher__item):disabled,
|
|
154
|
+
:is(.nt-company-switcher__item--disabled, .nt-workspace-switcher__item--disabled) {
|
|
155
|
+
color: var(--nt-text-disabled);
|
|
153
156
|
cursor: not-allowed;
|
|
154
157
|
pointer-events: none;
|
|
155
158
|
}
|
|
156
159
|
|
|
157
|
-
.nt-company-switcher__logo {
|
|
160
|
+
:is(.nt-company-switcher__logo, .nt-workspace-switcher__icon) {
|
|
158
161
|
display: inline-flex;
|
|
159
162
|
align-items: center;
|
|
160
163
|
justify-content: center;
|
|
@@ -163,38 +166,38 @@
|
|
|
163
166
|
height: 2rem;
|
|
164
167
|
overflow: hidden;
|
|
165
168
|
border: 1px solid var(--nt-border-subtle);
|
|
166
|
-
border-radius: var(--nt-radius-
|
|
167
|
-
background: var(--nt-bg-muted);
|
|
169
|
+
border-radius: var(--nt-radius-item);
|
|
170
|
+
background: var(--nt-bg-surface-muted);
|
|
168
171
|
color: var(--nt-text-primary);
|
|
169
172
|
font: var(--nt-text-label-sm);
|
|
170
173
|
letter-spacing: var(--nt-letter-spacing-label);
|
|
171
174
|
text-transform: uppercase;
|
|
172
175
|
}
|
|
173
176
|
|
|
174
|
-
.nt-company-switcher__logo img {
|
|
177
|
+
:is(.nt-company-switcher__logo, .nt-workspace-switcher__icon) img {
|
|
175
178
|
display: block;
|
|
176
179
|
width: 100%;
|
|
177
180
|
height: 100%;
|
|
178
181
|
object-fit: cover;
|
|
179
182
|
}
|
|
180
183
|
|
|
181
|
-
.nt-company-switcher__item[aria-current='true'] .nt-company-switcher__logo,
|
|
182
|
-
.nt-company-switcher__item[aria-selected='true'] .nt-company-switcher__logo,
|
|
183
|
-
.nt-company-switcher__item[data-state='active'] .nt-company-switcher__logo,
|
|
184
|
-
.nt-company-switcher__item--active .nt-company-switcher__logo {
|
|
185
|
-
border-color: var(--nt-
|
|
186
|
-
background: var(--nt-
|
|
187
|
-
color: var(--nt-accent
|
|
184
|
+
:is(.nt-company-switcher__item, .nt-workspace-switcher__item)[aria-current='true'] :is(.nt-company-switcher__logo, .nt-workspace-switcher__icon),
|
|
185
|
+
:is(.nt-company-switcher__item, .nt-workspace-switcher__item)[aria-selected='true'] :is(.nt-company-switcher__logo, .nt-workspace-switcher__icon),
|
|
186
|
+
:is(.nt-company-switcher__item, .nt-workspace-switcher__item)[data-state='active'] :is(.nt-company-switcher__logo, .nt-workspace-switcher__icon),
|
|
187
|
+
:is(.nt-company-switcher__item--active, .nt-workspace-switcher__item--active) :is(.nt-company-switcher__logo, .nt-workspace-switcher__icon) {
|
|
188
|
+
border-color: var(--nt-selection-border);
|
|
189
|
+
background: var(--nt-selection-indicator);
|
|
190
|
+
color: var(--nt-text-on-accent);
|
|
188
191
|
}
|
|
189
192
|
|
|
190
|
-
.nt-company-switcher__item-main {
|
|
193
|
+
:is(.nt-company-switcher__item-main, .nt-workspace-switcher__item-main) {
|
|
191
194
|
display: flex;
|
|
192
195
|
flex-direction: column;
|
|
193
196
|
gap: var(--nt-space-0-5);
|
|
194
197
|
min-width: 0;
|
|
195
198
|
}
|
|
196
199
|
|
|
197
|
-
.nt-company-switcher__name {
|
|
200
|
+
:is(.nt-company-switcher__name, .nt-workspace-switcher__name) {
|
|
198
201
|
min-width: 0;
|
|
199
202
|
overflow: hidden;
|
|
200
203
|
color: inherit;
|
|
@@ -204,7 +207,7 @@
|
|
|
204
207
|
white-space: nowrap;
|
|
205
208
|
}
|
|
206
209
|
|
|
207
|
-
.nt-company-switcher__meta {
|
|
210
|
+
:is(.nt-company-switcher__meta, .nt-workspace-switcher__meta) {
|
|
208
211
|
display: flex;
|
|
209
212
|
flex-wrap: wrap;
|
|
210
213
|
align-items: center;
|
|
@@ -214,45 +217,45 @@
|
|
|
214
217
|
font: var(--nt-text-caption);
|
|
215
218
|
}
|
|
216
219
|
|
|
217
|
-
.nt-company-switcher__country,
|
|
218
|
-
.nt-company-switcher__role,
|
|
219
|
-
.nt-company-switcher__currency {
|
|
220
|
+
:is(.nt-company-switcher__country, .nt-workspace-switcher__country),
|
|
221
|
+
:is(.nt-company-switcher__role, .nt-workspace-switcher__role),
|
|
222
|
+
:is(.nt-company-switcher__currency, .nt-workspace-switcher__currency) {
|
|
220
223
|
display: inline-flex;
|
|
221
224
|
align-items: center;
|
|
222
225
|
gap: var(--nt-space-1);
|
|
223
226
|
min-width: 0;
|
|
224
227
|
}
|
|
225
228
|
|
|
226
|
-
.nt-company-switcher__role {
|
|
229
|
+
:is(.nt-company-switcher__role, .nt-workspace-switcher__role) {
|
|
227
230
|
text-transform: lowercase;
|
|
228
231
|
}
|
|
229
232
|
|
|
230
|
-
.nt-company-switcher__check {
|
|
233
|
+
:is(.nt-company-switcher__check, .nt-workspace-switcher__check) {
|
|
231
234
|
display: inline-flex;
|
|
232
235
|
align-items: center;
|
|
233
236
|
justify-content: center;
|
|
234
237
|
flex: 0 0 auto;
|
|
235
238
|
width: 1rem;
|
|
236
239
|
height: 1rem;
|
|
237
|
-
color: var(--nt-
|
|
240
|
+
color: var(--nt-selection-indicator);
|
|
238
241
|
opacity: 0;
|
|
239
242
|
}
|
|
240
243
|
|
|
241
|
-
.nt-company-switcher__item[aria-current='true'] .nt-company-switcher__check,
|
|
242
|
-
.nt-company-switcher__item[aria-selected='true'] .nt-company-switcher__check,
|
|
243
|
-
.nt-company-switcher__item[data-state='active'] .nt-company-switcher__check,
|
|
244
|
-
.nt-company-switcher__item--active .nt-company-switcher__check {
|
|
244
|
+
:is(.nt-company-switcher__item, .nt-workspace-switcher__item)[aria-current='true'] :is(.nt-company-switcher__check, .nt-workspace-switcher__check),
|
|
245
|
+
:is(.nt-company-switcher__item, .nt-workspace-switcher__item)[aria-selected='true'] :is(.nt-company-switcher__check, .nt-workspace-switcher__check),
|
|
246
|
+
:is(.nt-company-switcher__item, .nt-workspace-switcher__item)[data-state='active'] :is(.nt-company-switcher__check, .nt-workspace-switcher__check),
|
|
247
|
+
:is(.nt-company-switcher__item--active, .nt-workspace-switcher__item--active) :is(.nt-company-switcher__check, .nt-workspace-switcher__check) {
|
|
245
248
|
opacity: 1;
|
|
246
249
|
}
|
|
247
250
|
|
|
248
|
-
.nt-company-switcher__separator {
|
|
251
|
+
:is(.nt-company-switcher__separator, .nt-workspace-switcher__separator) {
|
|
249
252
|
height: 1px;
|
|
250
253
|
margin: var(--nt-space-1);
|
|
251
254
|
border: 0;
|
|
252
255
|
background: var(--nt-border-subtle);
|
|
253
256
|
}
|
|
254
257
|
|
|
255
|
-
.nt-company-switcher__empty {
|
|
258
|
+
:is(.nt-company-switcher__empty, .nt-workspace-switcher__empty) {
|
|
256
259
|
display: flex;
|
|
257
260
|
flex-direction: column;
|
|
258
261
|
align-items: center;
|
|
@@ -262,30 +265,30 @@
|
|
|
262
265
|
text-align: center;
|
|
263
266
|
}
|
|
264
267
|
|
|
265
|
-
.nt-company-switcher__empty-title {
|
|
268
|
+
:is(.nt-company-switcher__empty-title, .nt-workspace-switcher__empty-title) {
|
|
266
269
|
margin: 0;
|
|
267
270
|
color: var(--nt-text-primary);
|
|
268
271
|
font: var(--nt-text-label-md);
|
|
269
272
|
letter-spacing: var(--nt-letter-spacing-label);
|
|
270
273
|
}
|
|
271
274
|
|
|
272
|
-
.nt-company-switcher__empty-description {
|
|
275
|
+
:is(.nt-company-switcher__empty-description, .nt-workspace-switcher__empty-description) {
|
|
273
276
|
max-width: 18rem;
|
|
274
277
|
margin: 0;
|
|
275
278
|
color: var(--nt-text-muted);
|
|
276
279
|
font: var(--nt-text-body-sm);
|
|
277
280
|
}
|
|
278
281
|
|
|
279
|
-
.nt-company-switcher__footer {
|
|
282
|
+
:is(.nt-company-switcher__footer, .nt-workspace-switcher__footer) {
|
|
280
283
|
display: flex;
|
|
281
284
|
flex-direction: column;
|
|
282
285
|
gap: var(--nt-space-2);
|
|
283
286
|
padding: var(--nt-space-3);
|
|
284
287
|
border-top: 1px solid var(--nt-border-subtle);
|
|
285
|
-
background: var(--nt-bg-muted);
|
|
288
|
+
background: var(--nt-bg-surface-muted);
|
|
286
289
|
}
|
|
287
290
|
|
|
288
|
-
.nt-company-switcher__footer-action {
|
|
291
|
+
:is(.nt-company-switcher__footer-action, .nt-workspace-switcher__footer-action) {
|
|
289
292
|
display: inline-flex;
|
|
290
293
|
align-items: center;
|
|
291
294
|
justify-content: center;
|
|
@@ -294,7 +297,7 @@
|
|
|
294
297
|
min-height: var(--nt-control-height-sm);
|
|
295
298
|
padding: 0 var(--nt-space-3);
|
|
296
299
|
border: 1px solid var(--nt-control-border);
|
|
297
|
-
border-radius: var(--nt-radius-
|
|
300
|
+
border-radius: var(--nt-radius-control);
|
|
298
301
|
background: var(--nt-control-bg);
|
|
299
302
|
color: var(--nt-text-primary);
|
|
300
303
|
font: var(--nt-text-label-sm);
|
|
@@ -304,60 +307,84 @@
|
|
|
304
307
|
transition: var(--nt-transition-colors);
|
|
305
308
|
}
|
|
306
309
|
|
|
307
|
-
.nt-company-switcher__footer-action:hover {
|
|
310
|
+
:is(.nt-company-switcher__footer-action, .nt-workspace-switcher__footer-action):hover {
|
|
308
311
|
border-color: var(--nt-control-border-hover);
|
|
309
312
|
background: var(--nt-control-bg-hover);
|
|
310
313
|
}
|
|
311
314
|
|
|
312
|
-
.nt-company-switcher__footer-action:focus-visible {
|
|
313
|
-
outline:
|
|
315
|
+
:is(.nt-company-switcher__footer-action, .nt-workspace-switcher__footer-action):focus-visible {
|
|
316
|
+
outline: var(--nt-focus-ring-width) solid var(--nt-focus-ring-color);
|
|
317
|
+
outline-offset: var(--nt-focus-ring-offset);
|
|
314
318
|
border-color: var(--nt-control-border-focus);
|
|
315
319
|
box-shadow: 0 0 0 3px var(--nt-focus-ring-muted);
|
|
316
320
|
}
|
|
317
321
|
|
|
318
|
-
.nt-company-switcher--compact {
|
|
322
|
+
:is(.nt-company-switcher--compact, .nt-workspace-switcher--compact) {
|
|
319
323
|
min-width: 17rem;
|
|
320
324
|
}
|
|
321
325
|
|
|
322
|
-
.nt-company-switcher--compact .nt-company-switcher__header,
|
|
323
|
-
.nt-company-switcher--compact .nt-company-switcher__search,
|
|
324
|
-
.nt-company-switcher--compact .nt-company-switcher__footer {
|
|
326
|
+
:is(.nt-company-switcher--compact, .nt-workspace-switcher--compact) :is(.nt-company-switcher__header, .nt-workspace-switcher__header),
|
|
327
|
+
:is(.nt-company-switcher--compact, .nt-workspace-switcher--compact) :is(.nt-company-switcher__search, .nt-workspace-switcher__search),
|
|
328
|
+
:is(.nt-company-switcher--compact, .nt-workspace-switcher--compact) :is(.nt-company-switcher__footer, .nt-workspace-switcher__footer) {
|
|
325
329
|
padding: var(--nt-space-3);
|
|
326
330
|
}
|
|
327
331
|
|
|
328
|
-
.nt-company-switcher--compact .nt-company-switcher__item {
|
|
332
|
+
:is(.nt-company-switcher--compact, .nt-workspace-switcher--compact) :is(.nt-company-switcher__item, .nt-workspace-switcher__item) {
|
|
329
333
|
min-height: 2.75rem;
|
|
330
334
|
gap: var(--nt-space-2);
|
|
331
335
|
}
|
|
332
336
|
|
|
333
|
-
.nt-company-switcher--compact .nt-company-switcher__logo {
|
|
337
|
+
:is(.nt-company-switcher--compact, .nt-workspace-switcher--compact) :is(.nt-company-switcher__logo, .nt-workspace-switcher__icon) {
|
|
334
338
|
width: 1.75rem;
|
|
335
339
|
height: 1.75rem;
|
|
336
340
|
}
|
|
337
341
|
|
|
338
|
-
.nt-company-switcher--wide {
|
|
342
|
+
:is(.nt-company-switcher--wide, .nt-workspace-switcher--wide) {
|
|
339
343
|
min-width: 24rem;
|
|
340
344
|
}
|
|
341
345
|
|
|
342
|
-
|
|
343
|
-
|
|
346
|
+
|
|
347
|
+
/* Workspace-only metadata remains a pattern-level extension of the shared switcher. */
|
|
348
|
+
.nt-workspace-switcher__type,
|
|
349
|
+
.nt-workspace-switcher__status {
|
|
350
|
+
display: inline-flex;
|
|
351
|
+
align-items: center;
|
|
352
|
+
gap: var(--nt-space-1);
|
|
353
|
+
min-width: 0;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.nt-workspace-switcher__status-dot {
|
|
357
|
+
display: inline-block;
|
|
358
|
+
flex: 0 0 auto;
|
|
359
|
+
width: 0.375rem;
|
|
360
|
+
height: 0.375rem;
|
|
361
|
+
border-radius: var(--nt-radius-pill);
|
|
362
|
+
background: var(--nt-text-muted);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.nt-workspace-switcher__status-dot--active { background: var(--nt-success); }
|
|
366
|
+
.nt-workspace-switcher__status-dot--paused { background: var(--nt-warning); }
|
|
367
|
+
.nt-workspace-switcher__status-dot--archived { background: var(--nt-text-muted); }
|
|
368
|
+
|
|
369
|
+
@media (max-width: 40rem) {
|
|
370
|
+
:is(.nt-company-switcher, .nt-workspace-switcher) {
|
|
344
371
|
width: calc(100vw - var(--nt-space-6));
|
|
345
372
|
min-width: 0;
|
|
346
373
|
}
|
|
347
374
|
|
|
348
|
-
.nt-company-switcher__item {
|
|
375
|
+
:is(.nt-company-switcher__item, .nt-workspace-switcher__item) {
|
|
349
376
|
grid-template-columns: auto minmax(0, 1fr);
|
|
350
377
|
}
|
|
351
378
|
|
|
352
|
-
.nt-company-switcher__check {
|
|
379
|
+
:is(.nt-company-switcher__check, .nt-workspace-switcher__check) {
|
|
353
380
|
display: none;
|
|
354
381
|
}
|
|
355
382
|
}
|
|
356
383
|
|
|
357
384
|
@media (prefers-reduced-motion: reduce) {
|
|
358
|
-
.nt-company-switcher__action,
|
|
359
|
-
.nt-company-switcher__item,
|
|
360
|
-
.nt-company-switcher__footer-action {
|
|
385
|
+
:is(.nt-company-switcher__action, .nt-workspace-switcher__action),
|
|
386
|
+
:is(.nt-company-switcher__item, .nt-workspace-switcher__item),
|
|
387
|
+
:is(.nt-company-switcher__footer-action, .nt-workspace-switcher__footer-action) {
|
|
361
388
|
transition: none !important;
|
|
362
389
|
}
|
|
363
|
-
}
|
|
390
|
+
}
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
.nt-content-state {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: center;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
gap: var(--nt-space-4);
|
|
7
|
+
width: 100%;
|
|
8
|
+
min-width: 0;
|
|
9
|
+
min-height: 18rem;
|
|
10
|
+
padding: var(--nt-space-8) var(--nt-space-6);
|
|
11
|
+
border: 1px solid var(--nt-border-subtle);
|
|
12
|
+
border-radius: var(--nt-radius-card);
|
|
13
|
+
background: var(--nt-bg-surface);
|
|
14
|
+
color: var(--nt-text-primary);
|
|
15
|
+
text-align: center;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.nt-content-state[aria-busy='true'],
|
|
19
|
+
.nt-content-state[data-nt-content-state='loading'],
|
|
20
|
+
.nt-content-state[data-nt-content-state='refreshing'] {
|
|
21
|
+
cursor: progress;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.nt-content-state__icon,
|
|
25
|
+
.nt-content-state__spinner {
|
|
26
|
+
display: inline-flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
width: 4rem;
|
|
30
|
+
height: 4rem;
|
|
31
|
+
border: 1px solid var(--nt-border-subtle);
|
|
32
|
+
border-radius: var(--nt-radius-dialog);
|
|
33
|
+
background: var(--nt-bg-surface-muted);
|
|
34
|
+
color: var(--nt-text-muted);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.nt-content-state__spinner::before {
|
|
38
|
+
width: 2rem;
|
|
39
|
+
height: 2rem;
|
|
40
|
+
border: 2px solid var(--nt-border-subtle);
|
|
41
|
+
border-top-color: currentColor;
|
|
42
|
+
border-radius: var(--nt-radius-pill);
|
|
43
|
+
content: '';
|
|
44
|
+
animation: nt-content-state-spin var(--nt-duration-slower) linear infinite;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.nt-content-state__body {
|
|
48
|
+
display: flex;
|
|
49
|
+
flex-direction: column;
|
|
50
|
+
align-items: center;
|
|
51
|
+
gap: var(--nt-space-2);
|
|
52
|
+
max-width: 36rem;
|
|
53
|
+
min-width: 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.nt-content-state__eyebrow {
|
|
57
|
+
color: var(--nt-text-muted);
|
|
58
|
+
font: var(--nt-text-label-sm);
|
|
59
|
+
letter-spacing: var(--nt-letter-spacing-label);
|
|
60
|
+
text-transform: uppercase;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.nt-content-state__title {
|
|
64
|
+
margin: 0;
|
|
65
|
+
color: var(--nt-text-primary);
|
|
66
|
+
font: var(--nt-text-title-md);
|
|
67
|
+
letter-spacing: var(--nt-letter-spacing-title);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.nt-content-state__description {
|
|
71
|
+
margin: 0;
|
|
72
|
+
color: var(--nt-text-muted);
|
|
73
|
+
font: var(--nt-text-body-sm);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.nt-content-state__details {
|
|
77
|
+
width: 100%;
|
|
78
|
+
max-width: 42rem;
|
|
79
|
+
margin-block-start: var(--nt-space-2);
|
|
80
|
+
padding: var(--nt-space-4);
|
|
81
|
+
border: 1px solid var(--nt-border-subtle);
|
|
82
|
+
border-radius: var(--nt-radius-item);
|
|
83
|
+
background: var(--nt-bg-surface);
|
|
84
|
+
color: var(--nt-text-muted);
|
|
85
|
+
font: var(--nt-text-body-sm);
|
|
86
|
+
text-align: start;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.nt-content-state__actions {
|
|
90
|
+
display: flex;
|
|
91
|
+
flex-wrap: wrap;
|
|
92
|
+
align-items: center;
|
|
93
|
+
justify-content: center;
|
|
94
|
+
gap: var(--nt-space-2);
|
|
95
|
+
margin-block-start: var(--nt-space-1);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.nt-content-state__meta {
|
|
99
|
+
display: flex;
|
|
100
|
+
flex-wrap: wrap;
|
|
101
|
+
align-items: center;
|
|
102
|
+
justify-content: center;
|
|
103
|
+
gap: var(--nt-space-2);
|
|
104
|
+
color: var(--nt-text-muted);
|
|
105
|
+
font: var(--nt-text-caption);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.nt-content-state--inline {
|
|
109
|
+
flex-direction: row;
|
|
110
|
+
align-items: flex-start;
|
|
111
|
+
justify-content: flex-start;
|
|
112
|
+
min-height: 0;
|
|
113
|
+
padding: var(--nt-space-4);
|
|
114
|
+
text-align: start;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.nt-content-state--section {
|
|
118
|
+
min-height: 18rem;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.nt-content-state--page {
|
|
122
|
+
min-height: calc(100dvh - var(--nt-space-16));
|
|
123
|
+
border-color: transparent;
|
|
124
|
+
background: transparent;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.nt-content-state--compact {
|
|
128
|
+
min-height: 12rem;
|
|
129
|
+
gap: var(--nt-space-3);
|
|
130
|
+
padding: var(--nt-space-6) var(--nt-space-4);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.nt-content-state--compact :is(.nt-content-state__icon, .nt-content-state__spinner) {
|
|
134
|
+
width: 3rem;
|
|
135
|
+
height: 3rem;
|
|
136
|
+
border-radius: var(--nt-radius-card);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.nt-content-state--left {
|
|
140
|
+
align-items: flex-start;
|
|
141
|
+
text-align: start;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.nt-content-state--left :is(.nt-content-state__body, .nt-content-state__actions, .nt-content-state__meta),
|
|
145
|
+
.nt-content-state--inline :is(.nt-content-state__body, .nt-content-state__actions, .nt-content-state__meta) {
|
|
146
|
+
align-items: flex-start;
|
|
147
|
+
justify-content: flex-start;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.nt-content-state[data-nt-content-state='loading'] :is(.nt-content-state__icon, .nt-content-state__spinner),
|
|
151
|
+
.nt-content-state[data-nt-content-state='refreshing'] :is(.nt-content-state__icon, .nt-content-state__spinner) {
|
|
152
|
+
color: var(--nt-accent);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.nt-content-state[data-nt-content-state='empty'] :is(.nt-content-state__icon, .nt-content-state__spinner),
|
|
156
|
+
.nt-content-state[data-nt-content-state='stale'] :is(.nt-content-state__icon, .nt-content-state__spinner) {
|
|
157
|
+
color: var(--nt-text-muted);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.nt-content-state[data-nt-content-state='error'],
|
|
161
|
+
.nt-content-state[data-nt-content-state='forbidden'],
|
|
162
|
+
.nt-content-state[data-nt-content-state='not-found'] {
|
|
163
|
+
border-color: var(--nt-danger-border);
|
|
164
|
+
background: var(--nt-danger-bg);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.nt-content-state[data-nt-content-state='error'] :is(.nt-content-state__icon, .nt-content-state__eyebrow),
|
|
168
|
+
.nt-content-state[data-nt-content-state='forbidden'] :is(.nt-content-state__icon, .nt-content-state__eyebrow),
|
|
169
|
+
.nt-content-state[data-nt-content-state='not-found'] :is(.nt-content-state__icon, .nt-content-state__eyebrow) {
|
|
170
|
+
color: var(--nt-danger-text);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.nt-content-state[data-nt-content-state='offline'],
|
|
174
|
+
.nt-content-state[data-nt-content-state='maintenance'],
|
|
175
|
+
.nt-content-state[data-nt-content-state='partial'] {
|
|
176
|
+
border-color: var(--nt-warning-border);
|
|
177
|
+
background: var(--nt-warning-bg);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.nt-content-state[data-nt-content-state='offline'] :is(.nt-content-state__icon, .nt-content-state__eyebrow),
|
|
181
|
+
.nt-content-state[data-nt-content-state='maintenance'] :is(.nt-content-state__icon, .nt-content-state__eyebrow),
|
|
182
|
+
.nt-content-state[data-nt-content-state='partial'] :is(.nt-content-state__icon, .nt-content-state__eyebrow) {
|
|
183
|
+
color: var(--nt-warning-text);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.nt-content-state[data-nt-content-state='unauthenticated'] {
|
|
187
|
+
border-color: var(--nt-border-interactive);
|
|
188
|
+
background: var(--nt-accent-subtle);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.nt-content-state[data-nt-content-state='success'] {
|
|
192
|
+
border-color: var(--nt-success-border);
|
|
193
|
+
background: var(--nt-success-bg);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.nt-content-state[data-nt-content-state='success'] :is(.nt-content-state__icon, .nt-content-state__eyebrow) {
|
|
197
|
+
color: var(--nt-success-text);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
@keyframes nt-content-state-spin {
|
|
201
|
+
to {
|
|
202
|
+
transform: rotate(360deg);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
@media (max-width: 40rem) {
|
|
207
|
+
.nt-content-state {
|
|
208
|
+
min-height: 14rem;
|
|
209
|
+
padding: var(--nt-space-6) var(--nt-space-4);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.nt-content-state__actions {
|
|
213
|
+
width: 100%;
|
|
214
|
+
align-items: stretch;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.nt-content-state__actions > * {
|
|
218
|
+
flex: 1 1 auto;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.nt-content-state--inline {
|
|
222
|
+
flex-direction: column;
|
|
223
|
+
align-items: center;
|
|
224
|
+
text-align: center;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.nt-content-state--inline .nt-content-state__body {
|
|
228
|
+
align-items: center;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
@media (prefers-reduced-motion: reduce) {
|
|
233
|
+
.nt-content-state__spinner::before {
|
|
234
|
+
animation: none !important;
|
|
235
|
+
}
|
|
236
|
+
}
|