@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
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Settings layout (docs/page-patterns-and-workflows.md).
|
|
3
|
+
* Section navigation beside settings content on wide regions; the navigation
|
|
4
|
+
* becomes a horizontally scrollable row when the region narrows. Grouping is
|
|
5
|
+
* by user intent; permanent account-wide settings route to MyAccount instead
|
|
6
|
+
* of being recreated inside tools.
|
|
7
|
+
*/
|
|
8
|
+
.nt-settings-layout {
|
|
9
|
+
display: grid;
|
|
10
|
+
grid-template-columns: minmax(13rem, 16rem) minmax(0, 1fr);
|
|
11
|
+
align-items: start;
|
|
12
|
+
gap: var(--nt-space-8);
|
|
13
|
+
min-width: 0;
|
|
14
|
+
container-type: inline-size;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.nt-settings-layout__nav {
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
gap: var(--nt-space-1);
|
|
21
|
+
min-width: 0;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.nt-settings-layout__nav-item {
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
gap: var(--nt-space-2);
|
|
28
|
+
min-height: var(--nt-density-navigation-item-height);
|
|
29
|
+
padding-inline: var(--nt-space-3);
|
|
30
|
+
border: 1px solid transparent;
|
|
31
|
+
border-radius: var(--nt-radius-control);
|
|
32
|
+
color: var(--nt-text-secondary);
|
|
33
|
+
font: var(--nt-text-label-md);
|
|
34
|
+
text-decoration: none;
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
transition: var(--nt-transition-colors);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.nt-settings-layout__nav-item:hover {
|
|
40
|
+
background: var(--nt-bg-surface-hover);
|
|
41
|
+
color: var(--nt-text-primary);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.nt-settings-layout__nav-item:focus-visible {
|
|
45
|
+
outline: var(--nt-focus-ring-width) solid var(--nt-focus-ring-color);
|
|
46
|
+
outline-offset: var(--nt-focus-ring-offset);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.nt-settings-layout__nav-item[aria-current='page'],
|
|
50
|
+
.nt-settings-layout__nav-item--active {
|
|
51
|
+
background: var(--nt-selection-bg);
|
|
52
|
+
border-color: var(--nt-selection-border);
|
|
53
|
+
color: var(--nt-selection-fg);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.nt-settings-layout__content {
|
|
57
|
+
display: flex;
|
|
58
|
+
flex-direction: column;
|
|
59
|
+
gap: var(--nt-space-8);
|
|
60
|
+
min-width: 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@container (max-width: 48rem) {
|
|
64
|
+
.nt-settings-layout {
|
|
65
|
+
grid-template-columns: minmax(0, 1fr);
|
|
66
|
+
gap: var(--nt-space-5);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.nt-settings-layout__nav {
|
|
70
|
+
flex-direction: row;
|
|
71
|
+
gap: var(--nt-space-2);
|
|
72
|
+
overflow-x: auto;
|
|
73
|
+
padding-block-end: var(--nt-space-1);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.nt-settings-layout__nav-item {
|
|
77
|
+
flex: 0 0 auto;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* Viewport fallback for pages rendered outside a query container. */
|
|
82
|
+
@media (max-width: 48rem) {
|
|
83
|
+
.nt-settings-layout {
|
|
84
|
+
grid-template-columns: minmax(0, 1fr);
|
|
85
|
+
gap: var(--nt-space-5);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.nt-settings-layout__nav {
|
|
89
|
+
flex-direction: row;
|
|
90
|
+
gap: var(--nt-space-2);
|
|
91
|
+
overflow-x: auto;
|
|
92
|
+
padding-block-end: var(--nt-space-1);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.nt-settings-layout__nav-item {
|
|
96
|
+
flex: 0 0 auto;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* One settings section: heading, explanation, controls, optional footer. */
|
|
101
|
+
.nt-settings-section {
|
|
102
|
+
display: flex;
|
|
103
|
+
flex-direction: column;
|
|
104
|
+
gap: var(--nt-space-4);
|
|
105
|
+
min-width: 0;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.nt-settings-section__header {
|
|
109
|
+
display: flex;
|
|
110
|
+
flex-direction: column;
|
|
111
|
+
gap: var(--nt-space-1);
|
|
112
|
+
min-width: 0;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.nt-settings-section__title {
|
|
116
|
+
margin: 0;
|
|
117
|
+
color: var(--nt-text-primary);
|
|
118
|
+
font: var(--nt-text-title-sm);
|
|
119
|
+
letter-spacing: var(--nt-letter-spacing-title);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.nt-settings-section__description {
|
|
123
|
+
max-width: 52rem;
|
|
124
|
+
margin: 0;
|
|
125
|
+
color: var(--nt-text-muted);
|
|
126
|
+
font: var(--nt-text-body-sm);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/* Dangerous settings are visually fenced and never mixed into routine
|
|
130
|
+
* groups. */
|
|
131
|
+
.nt-settings-section--danger {
|
|
132
|
+
gap: var(--nt-space-3);
|
|
133
|
+
padding: var(--nt-space-4);
|
|
134
|
+
border: 1px solid var(--nt-danger-border);
|
|
135
|
+
border-radius: var(--nt-radius-card);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.nt-settings-section--danger .nt-settings-section__title {
|
|
139
|
+
color: var(--nt-danger-text);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* Pointer to the surface that owns a setting (e.g. MyAccount). */
|
|
143
|
+
.nt-settings-section__managed-note {
|
|
144
|
+
display: flex;
|
|
145
|
+
flex-wrap: wrap;
|
|
146
|
+
align-items: center;
|
|
147
|
+
gap: var(--nt-space-2);
|
|
148
|
+
color: var(--nt-text-muted);
|
|
149
|
+
font: var(--nt-text-body-sm);
|
|
150
|
+
}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Multi-step workflow shell and step indicator
|
|
3
|
+
* (docs/page-patterns-and-workflows.md).
|
|
4
|
+
* Markup contract: an <ol> of steps; the current step carries
|
|
5
|
+
* aria-current="step"; completed steps mark state in text (the marker glyph
|
|
6
|
+
* is aria-hidden). Validation timing, drafts, and navigation policy belong
|
|
7
|
+
* to the application.
|
|
8
|
+
*/
|
|
9
|
+
.nt-workflow {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
gap: var(--nt-space-6);
|
|
13
|
+
min-width: 0;
|
|
14
|
+
container-type: inline-size;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.nt-step-indicator {
|
|
18
|
+
display: flex;
|
|
19
|
+
gap: var(--nt-space-2);
|
|
20
|
+
margin: 0;
|
|
21
|
+
padding: 0;
|
|
22
|
+
min-width: 0;
|
|
23
|
+
list-style: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.nt-step-indicator__step {
|
|
27
|
+
display: flex;
|
|
28
|
+
flex: 1 1 0;
|
|
29
|
+
align-items: center;
|
|
30
|
+
gap: var(--nt-space-2);
|
|
31
|
+
min-width: 0;
|
|
32
|
+
padding-block: var(--nt-space-2);
|
|
33
|
+
border-block-start: 2px solid var(--nt-border-subtle);
|
|
34
|
+
color: var(--nt-text-muted);
|
|
35
|
+
font: var(--nt-text-label-sm);
|
|
36
|
+
letter-spacing: var(--nt-letter-spacing-label);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.nt-step-indicator__step--completed {
|
|
40
|
+
border-block-start-color: var(--nt-selection-indicator);
|
|
41
|
+
color: var(--nt-text-secondary);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.nt-step-indicator__step--current,
|
|
45
|
+
.nt-step-indicator__step[aria-current='step'] {
|
|
46
|
+
border-block-start-color: var(--nt-accent);
|
|
47
|
+
color: var(--nt-text-primary);
|
|
48
|
+
font-weight: var(--nt-font-weight-semibold);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.nt-step-indicator__marker {
|
|
52
|
+
display: inline-flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
justify-content: center;
|
|
55
|
+
width: var(--nt-space-6);
|
|
56
|
+
height: var(--nt-space-6);
|
|
57
|
+
flex: 0 0 auto;
|
|
58
|
+
border: 1px solid var(--nt-border-default);
|
|
59
|
+
border-radius: var(--nt-radius-pill);
|
|
60
|
+
font-variant-numeric: tabular-nums;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.nt-step-indicator__step--completed .nt-step-indicator__marker {
|
|
64
|
+
border-color: var(--nt-selection-border);
|
|
65
|
+
background: var(--nt-selection-bg);
|
|
66
|
+
color: var(--nt-selection-fg);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.nt-step-indicator__step--current .nt-step-indicator__marker,
|
|
70
|
+
.nt-step-indicator__step[aria-current='step'] .nt-step-indicator__marker {
|
|
71
|
+
border-color: var(--nt-border-interactive);
|
|
72
|
+
background: var(--nt-accent-subtle);
|
|
73
|
+
color: var(--nt-accent);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.nt-step-indicator__label {
|
|
77
|
+
min-width: 0;
|
|
78
|
+
overflow: hidden;
|
|
79
|
+
text-overflow: ellipsis;
|
|
80
|
+
white-space: nowrap;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.nt-step-indicator__optional {
|
|
84
|
+
color: var(--nt-text-subtle);
|
|
85
|
+
font: var(--nt-text-caption);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/* Narrow regions: markers stay for orientation; non-current labels hide and
|
|
89
|
+
* the visible "Step X of Y" progress text carries the context. */
|
|
90
|
+
.nt-workflow__progress {
|
|
91
|
+
color: var(--nt-text-muted);
|
|
92
|
+
font: var(--nt-text-label-sm);
|
|
93
|
+
letter-spacing: var(--nt-letter-spacing-label);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@container (max-width: 40rem) {
|
|
97
|
+
.nt-step-indicator__step:not(.nt-step-indicator__step--current, [aria-current='step'])
|
|
98
|
+
.nt-step-indicator__label,
|
|
99
|
+
.nt-step-indicator__step:not(.nt-step-indicator__step--current, [aria-current='step'])
|
|
100
|
+
.nt-step-indicator__optional {
|
|
101
|
+
display: none;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.nt-step-indicator__step {
|
|
105
|
+
flex: 0 1 auto;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.nt-step-indicator__step--current,
|
|
109
|
+
.nt-step-indicator__step[aria-current='step'] {
|
|
110
|
+
flex: 1 1 auto;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/* Final review summary before submission. */
|
|
115
|
+
.nt-workflow__review {
|
|
116
|
+
display: flex;
|
|
117
|
+
flex-direction: column;
|
|
118
|
+
gap: var(--nt-space-3);
|
|
119
|
+
min-width: 0;
|
|
120
|
+
padding: var(--nt-space-4);
|
|
121
|
+
border: 1px solid var(--nt-border-subtle);
|
|
122
|
+
border-radius: var(--nt-radius-card);
|
|
123
|
+
background: var(--nt-bg-surface-muted);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.nt-workflow__review-title {
|
|
127
|
+
margin: 0;
|
|
128
|
+
color: var(--nt-text-primary);
|
|
129
|
+
font: var(--nt-text-title-sm);
|
|
130
|
+
letter-spacing: var(--nt-letter-spacing-title);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.nt-workflow__consequence {
|
|
134
|
+
color: var(--nt-text-secondary);
|
|
135
|
+
font: var(--nt-text-body-sm);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/* Workflow footer: back and save-and-exit at the start, the step's
|
|
139
|
+
* continuing action at the end. */
|
|
140
|
+
.nt-workflow__footer {
|
|
141
|
+
display: flex;
|
|
142
|
+
flex-wrap: wrap;
|
|
143
|
+
align-items: center;
|
|
144
|
+
justify-content: flex-end;
|
|
145
|
+
gap: var(--nt-space-3);
|
|
146
|
+
min-width: 0;
|
|
147
|
+
padding-block-start: var(--nt-space-4);
|
|
148
|
+
border-block-start: 1px solid var(--nt-border-subtle);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.nt-workflow__footer-start {
|
|
152
|
+
display: flex;
|
|
153
|
+
flex-wrap: wrap;
|
|
154
|
+
align-items: center;
|
|
155
|
+
gap: var(--nt-space-2);
|
|
156
|
+
margin-inline-end: auto;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@container (max-width: 30rem) {
|
|
160
|
+
.nt-workflow__footer {
|
|
161
|
+
flex-direction: column-reverse;
|
|
162
|
+
align-items: stretch;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.nt-workflow__footer-start {
|
|
166
|
+
margin-inline-end: 0;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
grid-template-columns: var(--nt-sidebar-width) minmax(0, 1fr);
|
|
4
4
|
min-width: 0;
|
|
5
5
|
min-height: 100vh;
|
|
6
|
+
min-height: 100dvh;
|
|
6
7
|
background: var(--nt-bg-app);
|
|
7
8
|
color: var(--nt-text-primary);
|
|
8
9
|
}
|
|
@@ -17,6 +18,7 @@
|
|
|
17
18
|
z-index: var(--nt-z-sidebar);
|
|
18
19
|
min-width: 0;
|
|
19
20
|
height: 100vh;
|
|
21
|
+
height: 100dvh;
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
.nt-app-shell__main {
|
|
@@ -24,6 +26,7 @@
|
|
|
24
26
|
grid-template-rows: var(--nt-header-height) minmax(0, 1fr);
|
|
25
27
|
min-width: 0;
|
|
26
28
|
min-height: 100vh;
|
|
29
|
+
min-height: 100dvh;
|
|
27
30
|
}
|
|
28
31
|
|
|
29
32
|
.nt-app-shell__header {
|
|
@@ -36,6 +39,10 @@
|
|
|
36
39
|
.nt-app-shell__content {
|
|
37
40
|
min-width: 0;
|
|
38
41
|
min-height: 0;
|
|
42
|
+
/* The main content area is the default query container for adaptive
|
|
43
|
+
* components rendered inside it. */
|
|
44
|
+
container-type: inline-size;
|
|
45
|
+
container-name: nt-region;
|
|
39
46
|
}
|
|
40
47
|
|
|
41
48
|
.nt-app-shell__drawer {
|
|
@@ -49,7 +56,7 @@
|
|
|
49
56
|
position: fixed;
|
|
50
57
|
inset: 0;
|
|
51
58
|
z-index: calc(var(--nt-z-drawer) - 1);
|
|
52
|
-
background: var(--nt-bg-
|
|
59
|
+
background: var(--nt-bg-backdrop);
|
|
53
60
|
}
|
|
54
61
|
|
|
55
62
|
@media (max-width: 64rem) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.nt-header {
|
|
1
|
+
.nt-header {
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
justify-content: space-between;
|
|
@@ -37,10 +37,6 @@
|
|
|
37
37
|
gap: var(--nt-space-2);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
.nt-header__mobile-trigger {
|
|
41
|
-
display: none;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
40
|
.nt-header__title-group {
|
|
45
41
|
display: flex;
|
|
46
42
|
flex-direction: column;
|
|
@@ -117,7 +113,7 @@
|
|
|
117
113
|
margin-inline-start: auto;
|
|
118
114
|
padding: var(--nt-space-0-5) var(--nt-space-1-5);
|
|
119
115
|
border: 1px solid var(--nt-border-subtle);
|
|
120
|
-
border-radius: var(--nt-radius-
|
|
116
|
+
border-radius: var(--nt-radius-indicator);
|
|
121
117
|
color: var(--nt-text-subtle);
|
|
122
118
|
font: var(--nt-text-caption);
|
|
123
119
|
}
|
|
@@ -142,14 +138,20 @@
|
|
|
142
138
|
}
|
|
143
139
|
|
|
144
140
|
.nt-header__action:focus-visible {
|
|
145
|
-
outline:
|
|
146
|
-
outline-offset:
|
|
141
|
+
outline: var(--nt-focus-ring-width) solid var(--nt-focus-ring-color);
|
|
142
|
+
outline-offset: var(--nt-focus-ring-offset);
|
|
147
143
|
}
|
|
148
144
|
|
|
149
145
|
.nt-header__action--active {
|
|
150
|
-
background: var(--nt-
|
|
151
|
-
border-color: var(--nt-border
|
|
152
|
-
color: var(--nt-
|
|
146
|
+
background: var(--nt-selection-bg);
|
|
147
|
+
border-color: var(--nt-selection-border);
|
|
148
|
+
color: var(--nt-selection-fg);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/* Declared after .nt-header__action so the combination
|
|
152
|
+
* "nt-header__mobile-trigger nt-header__action" stays hidden on desktop. */
|
|
153
|
+
.nt-header__mobile-trigger {
|
|
154
|
+
display: none;
|
|
153
155
|
}
|
|
154
156
|
|
|
155
157
|
@media (max-width: 64rem) {
|
|
@@ -175,4 +177,4 @@
|
|
|
175
177
|
.nt-header__right {
|
|
176
178
|
gap: var(--nt-space-1);
|
|
177
179
|
}
|
|
178
|
-
}
|
|
180
|
+
}
|
package/dist/shell/index.css
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
@import './sidebar/sidebar.css';
|
|
3
3
|
@import './header/header.css';
|
|
4
4
|
@import './content-frame/content-frame.css';
|
|
5
|
-
@import '
|
|
6
|
-
@import './mobile-nav/mobile-nav.css';
|
|
5
|
+
@import '../components/drawer/drawer.css';
|
|
6
|
+
@import './mobile-nav/mobile-nav.css';
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
.nt-mobile-nav {
|
|
1
|
+
.nt-mobile-nav {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: min(20rem, 100vw);
|
|
5
5
|
height: 100vh;
|
|
6
|
+
height: 100dvh;
|
|
6
7
|
min-width: 0;
|
|
7
8
|
background: var(--nt-bg-sidebar);
|
|
8
9
|
border-inline-end: 1px solid var(--nt-border-subtle);
|
|
9
10
|
color: var(--nt-text-secondary);
|
|
10
|
-
box-shadow: var(--nt-
|
|
11
|
+
box-shadow: var(--nt-elevation-drawer);
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
.nt-mobile-nav__header {
|
|
@@ -34,7 +35,7 @@
|
|
|
34
35
|
width: var(--nt-control-height-md);
|
|
35
36
|
height: var(--nt-control-height-md);
|
|
36
37
|
flex: 0 0 auto;
|
|
37
|
-
border-radius: var(--nt-radius-
|
|
38
|
+
border-radius: var(--nt-radius-item);
|
|
38
39
|
background: var(--nt-accent-subtle);
|
|
39
40
|
color: var(--nt-accent);
|
|
40
41
|
}
|
|
@@ -69,8 +70,8 @@
|
|
|
69
70
|
}
|
|
70
71
|
|
|
71
72
|
.nt-mobile-nav__close:focus-visible {
|
|
72
|
-
outline:
|
|
73
|
-
outline-offset:
|
|
73
|
+
outline: var(--nt-focus-ring-width) solid var(--nt-focus-ring-color);
|
|
74
|
+
outline-offset: var(--nt-focus-ring-offset);
|
|
74
75
|
}
|
|
75
76
|
|
|
76
77
|
.nt-mobile-nav__body {
|
|
@@ -83,7 +84,7 @@
|
|
|
83
84
|
.nt-mobile-nav__section {
|
|
84
85
|
display: flex;
|
|
85
86
|
flex-direction: column;
|
|
86
|
-
gap: var(--nt-
|
|
87
|
+
gap: var(--nt-density-navigation-gap);
|
|
87
88
|
margin-block-end: var(--nt-space-4);
|
|
88
89
|
}
|
|
89
90
|
|
|
@@ -103,10 +104,10 @@
|
|
|
103
104
|
display: flex;
|
|
104
105
|
align-items: center;
|
|
105
106
|
gap: var(--nt-space-3);
|
|
106
|
-
min-height: var(--nt-
|
|
107
|
-
padding-inline: var(--nt-
|
|
107
|
+
min-height: var(--nt-density-navigation-item-height);
|
|
108
|
+
padding-inline: var(--nt-density-control-padding-inline);
|
|
108
109
|
border: 1px solid transparent;
|
|
109
|
-
border-radius: var(--nt-radius-
|
|
110
|
+
border-radius: var(--nt-radius-control);
|
|
110
111
|
color: var(--nt-text-secondary);
|
|
111
112
|
font: var(--nt-text-label-md);
|
|
112
113
|
text-decoration: none;
|
|
@@ -120,15 +121,15 @@
|
|
|
120
121
|
}
|
|
121
122
|
|
|
122
123
|
.nt-mobile-nav__item:focus-visible {
|
|
123
|
-
outline:
|
|
124
|
-
outline-offset:
|
|
124
|
+
outline: var(--nt-focus-ring-width) solid var(--nt-focus-ring-color);
|
|
125
|
+
outline-offset: var(--nt-focus-ring-offset);
|
|
125
126
|
}
|
|
126
127
|
|
|
127
128
|
.nt-mobile-nav__item[aria-current='page'],
|
|
128
129
|
.nt-mobile-nav__item--active {
|
|
129
|
-
background: var(--nt-
|
|
130
|
-
border-color: var(--nt-border
|
|
131
|
-
color: var(--nt-
|
|
130
|
+
background: var(--nt-selection-bg);
|
|
131
|
+
border-color: var(--nt-selection-border);
|
|
132
|
+
color: var(--nt-selection-fg);
|
|
132
133
|
}
|
|
133
134
|
|
|
134
135
|
.nt-mobile-nav__item--disabled {
|
|
@@ -160,6 +161,7 @@
|
|
|
160
161
|
|
|
161
162
|
.nt-mobile-nav__footer {
|
|
162
163
|
padding: var(--nt-space-3);
|
|
164
|
+
padding-bottom: max(var(--nt-space-3), env(safe-area-inset-bottom, 0rem));
|
|
163
165
|
border-block-start: 1px solid var(--nt-border-subtle);
|
|
164
166
|
}
|
|
165
167
|
|
|
@@ -167,5 +169,5 @@
|
|
|
167
169
|
position: fixed;
|
|
168
170
|
inset: 0;
|
|
169
171
|
z-index: calc(var(--nt-z-drawer) - 1);
|
|
170
|
-
background: var(--nt-bg-
|
|
171
|
-
}
|
|
172
|
+
background: var(--nt-bg-backdrop);
|
|
173
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.nt-sidebar {
|
|
1
|
+
.nt-sidebar {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
width: var(--nt-control-height-md);
|
|
26
26
|
height: var(--nt-control-height-md);
|
|
27
27
|
flex: 0 0 auto;
|
|
28
|
-
border-radius: var(--nt-radius-
|
|
28
|
+
border-radius: var(--nt-radius-item);
|
|
29
29
|
background: var(--nt-accent-subtle);
|
|
30
30
|
color: var(--nt-accent);
|
|
31
31
|
}
|
|
@@ -65,10 +65,10 @@
|
|
|
65
65
|
display: flex;
|
|
66
66
|
align-items: center;
|
|
67
67
|
gap: var(--nt-space-3);
|
|
68
|
-
min-height: var(--nt-
|
|
68
|
+
min-height: var(--nt-density-navigation-item-height);
|
|
69
69
|
padding-inline: var(--nt-space-3);
|
|
70
70
|
border: 1px solid transparent;
|
|
71
|
-
border-radius: var(--nt-radius-
|
|
71
|
+
border-radius: var(--nt-radius-control);
|
|
72
72
|
color: var(--nt-text-secondary);
|
|
73
73
|
font: var(--nt-text-label-md);
|
|
74
74
|
text-decoration: none;
|
|
@@ -82,15 +82,15 @@
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
.nt-sidebar__item:focus-visible {
|
|
85
|
-
outline:
|
|
86
|
-
outline-offset:
|
|
85
|
+
outline: var(--nt-focus-ring-width) solid var(--nt-focus-ring-color);
|
|
86
|
+
outline-offset: var(--nt-focus-ring-offset);
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
.nt-sidebar__item[aria-current='page'],
|
|
90
90
|
.nt-sidebar__item--active {
|
|
91
|
-
background: var(--nt-
|
|
92
|
-
border-color: var(--nt-border
|
|
93
|
-
color: var(--nt-
|
|
91
|
+
background: var(--nt-selection-bg);
|
|
92
|
+
border-color: var(--nt-selection-border);
|
|
93
|
+
color: var(--nt-selection-fg);
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
.nt-sidebar__item--disabled {
|
|
@@ -143,4 +143,4 @@
|
|
|
143
143
|
.nt-app-shell--collapsed .nt-sidebar__item {
|
|
144
144
|
justify-content: center;
|
|
145
145
|
padding-inline: var(--nt-space-2);
|
|
146
|
-
}
|
|
146
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/* Native elements and explicit composite-widget roles receive one focus contract. */
|
|
2
|
+
a[href]:focus-visible,
|
|
3
|
+
button:focus-visible,
|
|
4
|
+
input:focus-visible,
|
|
5
|
+
select:focus-visible,
|
|
6
|
+
textarea:focus-visible,
|
|
7
|
+
summary:focus-visible,
|
|
8
|
+
[role='button']:focus-visible,
|
|
9
|
+
[role='link']:focus-visible,
|
|
10
|
+
[role='menuitem']:focus-visible,
|
|
11
|
+
[role='menuitemcheckbox']:focus-visible,
|
|
12
|
+
[role='menuitemradio']:focus-visible,
|
|
13
|
+
[role='option']:focus-visible,
|
|
14
|
+
[role='tab']:focus-visible,
|
|
15
|
+
[role='gridcell']:focus-visible,
|
|
16
|
+
[role='columnheader']:focus-visible,
|
|
17
|
+
[role='rowheader']:focus-visible,
|
|
18
|
+
[role='switch']:focus-visible,
|
|
19
|
+
[role='checkbox']:focus-visible,
|
|
20
|
+
[role='radio']:focus-visible,
|
|
21
|
+
[data-nt-focusable]:focus-visible {
|
|
22
|
+
outline: var(--nt-focus-ring-width) solid var(--nt-focus-ring-color);
|
|
23
|
+
outline-offset: var(--nt-focus-ring-offset);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:where(.nt-button--danger, .nt-icon-button--danger, [aria-invalid='true']):focus-visible {
|
|
27
|
+
outline-color: var(--nt-focus-ring-danger);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:where([aria-disabled='true'], [data-disabled='true']) {
|
|
31
|
+
cursor: not-allowed;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:where([aria-busy='true']) {
|
|
35
|
+
cursor: progress;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:where([hidden]) {
|
|
39
|
+
display: none !important;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* Primary actions and icon-only controls expose a real hit area. */
|
|
43
|
+
:where(.nt-button--primary:not(.nt-button--sm), .nt-ai-action-button:not(.nt-ai-action-button--sm)) {
|
|
44
|
+
min-block-size: var(--nt-target-size-primary);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:where(.nt-icon-button:not(.nt-icon-button--sm), .nt-dialog__close, .nt-modal__close, .nt-drawer__close) {
|
|
48
|
+
min-width: var(--nt-target-size-primary);
|
|
49
|
+
min-height: var(--nt-target-size-primary);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:where(
|
|
53
|
+
.nt-tabs__trigger,
|
|
54
|
+
.nt-menu__item,
|
|
55
|
+
.nt-dropdown__item,
|
|
56
|
+
.nt-pagination__button,
|
|
57
|
+
.nt-sidebar__item,
|
|
58
|
+
.nt-mobile-nav__item
|
|
59
|
+
) {
|
|
60
|
+
min-block-size: var(--nt-target-size-default);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.nt-pagination__button {
|
|
64
|
+
min-inline-size: var(--nt-target-size-default);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* Calendar behavior hooks remain readable and operable before a product adds layout chrome. */
|
|
68
|
+
[data-nt-calendar-date] {
|
|
69
|
+
min-inline-size: var(--nt-target-size-primary);
|
|
70
|
+
min-block-size: var(--nt-target-size-primary);
|
|
71
|
+
border: 1px solid var(--nt-border-default);
|
|
72
|
+
background: var(--nt-bg-surface);
|
|
73
|
+
color: var(--nt-text-primary);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@media (forced-colors: active) {
|
|
77
|
+
a[href] {
|
|
78
|
+
color: LinkText;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
:where(
|
|
82
|
+
button,
|
|
83
|
+
input,
|
|
84
|
+
select,
|
|
85
|
+
textarea,
|
|
86
|
+
[role='button'],
|
|
87
|
+
[role='menuitem'],
|
|
88
|
+
[role='option'],
|
|
89
|
+
[role='tab'],
|
|
90
|
+
[role='gridcell']
|
|
91
|
+
) {
|
|
92
|
+
border-color: ButtonText;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
:where(
|
|
96
|
+
[aria-selected='true'],
|
|
97
|
+
[aria-current='page'],
|
|
98
|
+
[aria-checked='true'],
|
|
99
|
+
[data-state='active']
|
|
100
|
+
) {
|
|
101
|
+
outline: var(--nt-focus-ring-width) solid Highlight;
|
|
102
|
+
outline-offset: calc(var(--nt-focus-ring-offset) * -1);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
:where(svg, .nt-icon, [class$='__icon']) {
|
|
106
|
+
color: currentColor;
|
|
107
|
+
fill: currentColor;
|
|
108
|
+
stroke: currentColor;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
@media (prefers-reduced-motion: reduce) {
|
|
113
|
+
:where(html:focus-within) {
|
|
114
|
+
scroll-behavior: auto;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
@keyframes nt-ai-pulse {
|
|
99
99
|
0%,
|
|
100
100
|
100% {
|
|
101
|
-
|
|
101
|
+
box-shadow: 0 0 0 0 var(--nt-ai-processing);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
50% {
|
|
@@ -159,4 +159,4 @@
|
|
|
159
159
|
.nt-animate-ai-pulse {
|
|
160
160
|
animation: none !important;
|
|
161
161
|
}
|
|
162
|
-
}
|
|
162
|
+
}
|