@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,4 +1,4 @@
|
|
|
1
|
-
.nt-empty-state {
|
|
1
|
+
.nt-empty-state {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
min-height: 18rem;
|
|
10
10
|
padding: var(--nt-space-8) var(--nt-space-6);
|
|
11
11
|
border: 1px solid var(--nt-border-subtle);
|
|
12
|
-
border-radius: var(--nt-radius-
|
|
12
|
+
border-radius: var(--nt-radius-card);
|
|
13
13
|
background: var(--nt-bg-surface);
|
|
14
14
|
color: var(--nt-text-primary);
|
|
15
15
|
text-align: center;
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
width: 4rem;
|
|
23
23
|
height: 4rem;
|
|
24
24
|
border: 1px solid var(--nt-border-subtle);
|
|
25
|
-
border-radius: var(--nt-radius-
|
|
26
|
-
background: var(--nt-bg-muted);
|
|
25
|
+
border-radius: var(--nt-radius-dialog);
|
|
26
|
+
background: var(--nt-bg-surface-muted);
|
|
27
27
|
color: var(--nt-text-muted);
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -88,20 +88,21 @@
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
.nt-empty-state__link {
|
|
91
|
-
color: var(--nt-
|
|
91
|
+
color: var(--nt-text-link);
|
|
92
92
|
font: var(--nt-text-label-sm);
|
|
93
93
|
letter-spacing: var(--nt-letter-spacing-label);
|
|
94
94
|
text-decoration: none;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
.nt-empty-state__link:hover {
|
|
98
|
-
color: var(--nt-
|
|
98
|
+
color: var(--nt-text-link-hover);
|
|
99
99
|
text-decoration: underline;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
.nt-empty-state__link:focus-visible {
|
|
103
|
-
outline:
|
|
104
|
-
|
|
103
|
+
outline: var(--nt-focus-ring-width) solid var(--nt-focus-ring-color);
|
|
104
|
+
outline-offset: var(--nt-focus-ring-offset);
|
|
105
|
+
border-radius: var(--nt-radius-indicator);
|
|
105
106
|
box-shadow: 0 0 0 3px var(--nt-focus-ring-muted);
|
|
106
107
|
}
|
|
107
108
|
|
|
@@ -111,7 +112,7 @@
|
|
|
111
112
|
}
|
|
112
113
|
|
|
113
114
|
.nt-empty-state--muted {
|
|
114
|
-
background: var(--nt-bg-muted);
|
|
115
|
+
background: var(--nt-bg-surface-muted);
|
|
115
116
|
}
|
|
116
117
|
|
|
117
118
|
.nt-empty-state--flat {
|
|
@@ -127,7 +128,7 @@
|
|
|
127
128
|
.nt-empty-state--compact .nt-empty-state__icon {
|
|
128
129
|
width: 3rem;
|
|
129
130
|
height: 3rem;
|
|
130
|
-
border-radius: var(--nt-radius-
|
|
131
|
+
border-radius: var(--nt-radius-card);
|
|
131
132
|
}
|
|
132
133
|
|
|
133
134
|
.nt-empty-state--compact .nt-empty-state__icon svg {
|
|
@@ -169,7 +170,7 @@
|
|
|
169
170
|
.nt-empty-state--inline .nt-empty-state__icon {
|
|
170
171
|
width: 2.75rem;
|
|
171
172
|
height: 2.75rem;
|
|
172
|
-
border-radius: var(--nt-radius-
|
|
173
|
+
border-radius: var(--nt-radius-card);
|
|
173
174
|
}
|
|
174
175
|
|
|
175
176
|
.nt-empty-state--inline .nt-empty-state__icon svg {
|
|
@@ -187,8 +188,8 @@
|
|
|
187
188
|
}
|
|
188
189
|
|
|
189
190
|
.nt-empty-state--accent .nt-empty-state__icon {
|
|
190
|
-
border-color: var(--nt-
|
|
191
|
-
background: var(--nt-accent-
|
|
191
|
+
border-color: var(--nt-border-interactive);
|
|
192
|
+
background: var(--nt-accent-subtle);
|
|
192
193
|
color: var(--nt-accent-text);
|
|
193
194
|
}
|
|
194
195
|
|
|
@@ -232,7 +233,7 @@
|
|
|
232
233
|
min-width: 0;
|
|
233
234
|
}
|
|
234
235
|
|
|
235
|
-
@media (max-width:
|
|
236
|
+
@media (max-width: 40rem) {
|
|
236
237
|
.nt-empty-state {
|
|
237
238
|
min-height: 14rem;
|
|
238
239
|
padding: var(--nt-space-6) var(--nt-space-4);
|
|
@@ -256,4 +257,4 @@
|
|
|
256
257
|
.nt-empty-state--inline .nt-empty-state__body {
|
|
257
258
|
align-items: center;
|
|
258
259
|
}
|
|
259
|
-
}
|
|
260
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.nt-error-state {
|
|
1
|
+
.nt-error-state {
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
min-height: 18rem;
|
|
10
10
|
padding: var(--nt-space-8) var(--nt-space-6);
|
|
11
11
|
border: 1px solid var(--nt-danger-border);
|
|
12
|
-
border-radius: var(--nt-radius-
|
|
12
|
+
border-radius: var(--nt-radius-card);
|
|
13
13
|
background: var(--nt-danger-bg);
|
|
14
14
|
color: var(--nt-text-primary);
|
|
15
15
|
text-align: center;
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
width: 4rem;
|
|
23
23
|
height: 4rem;
|
|
24
24
|
border: 1px solid var(--nt-danger-border);
|
|
25
|
-
border-radius: var(--nt-radius-
|
|
25
|
+
border-radius: var(--nt-radius-dialog);
|
|
26
26
|
background: var(--nt-bg-surface);
|
|
27
27
|
color: var(--nt-danger-text);
|
|
28
28
|
}
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
max-width: 100%;
|
|
70
70
|
padding: var(--nt-space-1) var(--nt-space-2);
|
|
71
71
|
border: 1px solid var(--nt-danger-border);
|
|
72
|
-
border-radius: var(--nt-radius-
|
|
72
|
+
border-radius: var(--nt-radius-control);
|
|
73
73
|
background: var(--nt-bg-surface);
|
|
74
74
|
color: var(--nt-danger-text);
|
|
75
75
|
font: var(--nt-text-label-xs);
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
margin-block-start: var(--nt-space-2);
|
|
84
84
|
padding: var(--nt-space-4);
|
|
85
85
|
border: 1px solid var(--nt-border-subtle);
|
|
86
|
-
border-radius: var(--nt-radius-
|
|
86
|
+
border-radius: var(--nt-radius-item);
|
|
87
87
|
background: var(--nt-bg-surface);
|
|
88
88
|
color: var(--nt-text-muted);
|
|
89
89
|
font: var(--nt-text-body-sm);
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
margin: 0;
|
|
102
102
|
overflow: auto;
|
|
103
103
|
color: var(--nt-text-muted);
|
|
104
|
-
font: var(--nt-text-
|
|
104
|
+
font: var(--nt-text-mono-sm);
|
|
105
105
|
white-space: pre-wrap;
|
|
106
106
|
}
|
|
107
107
|
|
|
@@ -136,8 +136,9 @@
|
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
.nt-error-state__link:focus-visible {
|
|
139
|
-
outline:
|
|
140
|
-
|
|
139
|
+
outline: var(--nt-focus-ring-width) solid var(--nt-focus-ring-color);
|
|
140
|
+
outline-offset: var(--nt-focus-ring-offset);
|
|
141
|
+
border-radius: var(--nt-radius-indicator);
|
|
141
142
|
box-shadow: 0 0 0 3px var(--nt-focus-ring-muted);
|
|
142
143
|
}
|
|
143
144
|
|
|
@@ -153,7 +154,7 @@
|
|
|
153
154
|
|
|
154
155
|
.nt-error-state--muted {
|
|
155
156
|
border-color: var(--nt-border-subtle);
|
|
156
|
-
background: var(--nt-bg-muted);
|
|
157
|
+
background: var(--nt-bg-surface-muted);
|
|
157
158
|
}
|
|
158
159
|
|
|
159
160
|
.nt-error-state--compact {
|
|
@@ -165,7 +166,7 @@
|
|
|
165
166
|
.nt-error-state--compact .nt-error-state__icon {
|
|
166
167
|
width: 3rem;
|
|
167
168
|
height: 3rem;
|
|
168
|
-
border-radius: var(--nt-radius-
|
|
169
|
+
border-radius: var(--nt-radius-card);
|
|
169
170
|
}
|
|
170
171
|
|
|
171
172
|
.nt-error-state--compact .nt-error-state__icon svg {
|
|
@@ -207,7 +208,7 @@
|
|
|
207
208
|
.nt-error-state--inline .nt-error-state__icon {
|
|
208
209
|
width: 2.75rem;
|
|
209
210
|
height: 2.75rem;
|
|
210
|
-
border-radius: var(--nt-radius-
|
|
211
|
+
border-radius: var(--nt-radius-card);
|
|
211
212
|
}
|
|
212
213
|
|
|
213
214
|
.nt-error-state--inline .nt-error-state__icon svg {
|
|
@@ -236,7 +237,7 @@
|
|
|
236
237
|
|
|
237
238
|
.nt-error-state--offline {
|
|
238
239
|
border-color: var(--nt-border-subtle);
|
|
239
|
-
background: var(--nt-bg-muted);
|
|
240
|
+
background: var(--nt-bg-surface-muted);
|
|
240
241
|
}
|
|
241
242
|
|
|
242
243
|
.nt-error-state--offline .nt-error-state__icon,
|
|
@@ -245,7 +246,7 @@
|
|
|
245
246
|
color: var(--nt-text-muted);
|
|
246
247
|
}
|
|
247
248
|
|
|
248
|
-
@media (max-width:
|
|
249
|
+
@media (max-width: 40rem) {
|
|
249
250
|
.nt-error-state {
|
|
250
251
|
min-height: 14rem;
|
|
251
252
|
padding: var(--nt-space-6) var(--nt-space-4);
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Responsive form layout (docs/page-patterns-and-workflows.md).
|
|
3
|
+
* DOM order is the reading and keyboard order: rows collapse to one column
|
|
4
|
+
* from the form's own width without reordering fields. Field internals
|
|
5
|
+
* (labels, hints, errors) come from the existing .nt-field contract.
|
|
6
|
+
*/
|
|
7
|
+
.nt-form {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
gap: var(--nt-space-6);
|
|
11
|
+
min-width: 0;
|
|
12
|
+
container-type: inline-size;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* Sections group related fields; works as <fieldset> or <section>. */
|
|
16
|
+
.nt-form__section {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
gap: var(--nt-space-4);
|
|
20
|
+
min-width: 0;
|
|
21
|
+
margin: 0;
|
|
22
|
+
padding: 0;
|
|
23
|
+
border: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.nt-form__section-title {
|
|
27
|
+
margin: 0;
|
|
28
|
+
padding: 0;
|
|
29
|
+
color: var(--nt-text-primary);
|
|
30
|
+
font: var(--nt-text-title-sm);
|
|
31
|
+
letter-spacing: var(--nt-letter-spacing-title);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.nt-form__section-description {
|
|
35
|
+
max-width: 52rem;
|
|
36
|
+
margin: 0;
|
|
37
|
+
color: var(--nt-text-muted);
|
|
38
|
+
font: var(--nt-text-body-sm);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* Rows: single column by default; opt into two or three columns only when
|
|
42
|
+
* fields are genuinely parallel. Never more than three. */
|
|
43
|
+
.nt-form__row {
|
|
44
|
+
display: grid;
|
|
45
|
+
grid-template-columns: minmax(0, 1fr);
|
|
46
|
+
gap: var(--nt-space-4) var(--nt-grid-gap-md);
|
|
47
|
+
min-width: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.nt-form__row--2 {
|
|
51
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.nt-form__row--3 {
|
|
55
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* A field spanning a full multi-column row (e.g. a long address line). */
|
|
59
|
+
.nt-form__row .nt-form__span {
|
|
60
|
+
grid-column: 1 / -1;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@container (max-width: 40rem) {
|
|
64
|
+
.nt-form__row--2,
|
|
65
|
+
.nt-form__row--3 {
|
|
66
|
+
grid-template-columns: minmax(0, 1fr);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* Form actions: safe action last in reading order, destructive actions
|
|
71
|
+
* separated in the start slot. Buttons keep their natural width; they only
|
|
72
|
+
* stretch when the container is genuinely narrow. */
|
|
73
|
+
.nt-form__actions {
|
|
74
|
+
display: flex;
|
|
75
|
+
flex-wrap: wrap;
|
|
76
|
+
align-items: center;
|
|
77
|
+
justify-content: flex-end;
|
|
78
|
+
gap: var(--nt-space-3);
|
|
79
|
+
min-width: 0;
|
|
80
|
+
padding-block-start: var(--nt-space-4);
|
|
81
|
+
border-block-start: 1px solid var(--nt-border-subtle);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.nt-form__actions--flush {
|
|
85
|
+
padding-block-start: 0;
|
|
86
|
+
border-block-start: 0;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.nt-form__actions-start {
|
|
90
|
+
display: flex;
|
|
91
|
+
flex-wrap: wrap;
|
|
92
|
+
align-items: center;
|
|
93
|
+
gap: var(--nt-space-2);
|
|
94
|
+
margin-inline-end: auto;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@container (max-width: 30rem) {
|
|
98
|
+
.nt-form__actions {
|
|
99
|
+
flex-direction: column-reverse;
|
|
100
|
+
align-items: stretch;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.nt-form__actions-start {
|
|
104
|
+
margin-inline-end: 0;
|
|
105
|
+
}
|
|
106
|
+
}
|
package/dist/patterns/index.css
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
@import './page/page.css';
|
|
2
|
+
@import './form-layout/form-layout.css';
|
|
3
|
+
@import './settings-layout/settings-layout.css';
|
|
4
|
+
@import './master-detail/master-detail.css';
|
|
5
|
+
@import './workflow/workflow.css';
|
|
6
|
+
@import './profile-menu/profile-menu.css';
|
|
2
7
|
@import './company-switcher/company-switcher.css';
|
|
3
|
-
@import './
|
|
8
|
+
@import './content-state/content-state.css';
|
|
4
9
|
@import './empty-state/empty-state.css';
|
|
5
10
|
@import './error-state/error-state.css';
|
|
6
11
|
@import './loading-state/loading-state.css';
|
|
7
12
|
@import './notification-center/notification-center.css';
|
|
8
13
|
@import './command-palette/command-palette.css';
|
|
9
|
-
@import './search-bar/search-bar.css';
|
|
14
|
+
@import './search-bar/search-bar.css';
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
min-height: 18rem;
|
|
10
10
|
padding: var(--nt-space-8) var(--nt-space-6);
|
|
11
11
|
border: 1px solid var(--nt-border-subtle);
|
|
12
|
-
border-radius: var(--nt-radius-
|
|
12
|
+
border-radius: var(--nt-radius-card);
|
|
13
13
|
background: var(--nt-bg-surface);
|
|
14
14
|
color: var(--nt-text-primary);
|
|
15
15
|
text-align: center;
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
height: 2rem;
|
|
30
30
|
border: 2px solid var(--nt-border-subtle);
|
|
31
31
|
border-top-color: currentColor;
|
|
32
|
-
border-radius: var(--nt-radius-
|
|
32
|
+
border-radius: var(--nt-radius-pill);
|
|
33
33
|
content: '';
|
|
34
34
|
animation: nt-loading-state-spin var(--nt-duration-slower) linear infinite;
|
|
35
35
|
}
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
width: 4rem;
|
|
42
42
|
height: 4rem;
|
|
43
43
|
border: 1px solid var(--nt-border-subtle);
|
|
44
|
-
border-radius: var(--nt-radius-
|
|
45
|
-
background: var(--nt-bg-muted);
|
|
44
|
+
border-radius: var(--nt-radius-dialog);
|
|
45
|
+
background: var(--nt-bg-surface-muted);
|
|
46
46
|
color: var(--nt-accent);
|
|
47
47
|
}
|
|
48
48
|
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
.nt-loading-state--muted {
|
|
113
|
-
background: var(--nt-bg-muted);
|
|
113
|
+
background: var(--nt-bg-surface-muted);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
.nt-loading-state--flat {
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
.nt-loading-state--compact .nt-loading-state__icon {
|
|
137
137
|
width: 3rem;
|
|
138
138
|
height: 3rem;
|
|
139
|
-
border-radius: var(--nt-radius-
|
|
139
|
+
border-radius: var(--nt-radius-card);
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
.nt-loading-state--compact .nt-loading-state__icon svg {
|
|
@@ -198,11 +198,11 @@
|
|
|
198
198
|
.nt-loading-state--overlay {
|
|
199
199
|
position: absolute;
|
|
200
200
|
inset: 0;
|
|
201
|
-
z-index: var(--nt-z-
|
|
201
|
+
z-index: var(--nt-z-raised);
|
|
202
202
|
min-height: 0;
|
|
203
203
|
border: 0;
|
|
204
204
|
border-radius: inherit;
|
|
205
|
-
background: var(--nt-bg-
|
|
205
|
+
background: var(--nt-bg-backdrop);
|
|
206
206
|
backdrop-filter: blur(6px);
|
|
207
207
|
}
|
|
208
208
|
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
|
|
258
|
-
@media (max-width:
|
|
258
|
+
@media (max-width: 40rem) {
|
|
259
259
|
.nt-loading-state {
|
|
260
260
|
min-height: 14rem;
|
|
261
261
|
padding: var(--nt-space-6) var(--nt-space-4);
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Master-detail layout (docs/page-patterns-and-workflows.md).
|
|
3
|
+
* Wide regions show the record list and the selected record side by side.
|
|
4
|
+
* Narrow regions become a single pane: the application sets
|
|
5
|
+
* data-nt-pane="list" or data-nt-pane="detail" when it changes selection,
|
|
6
|
+
* and the back control returns to the list. Only one pane is in the
|
|
7
|
+
* accessibility tree at a time in single-pane mode.
|
|
8
|
+
*/
|
|
9
|
+
.nt-master-detail {
|
|
10
|
+
display: grid;
|
|
11
|
+
grid-template-columns: minmax(16rem, 24rem) minmax(0, 1fr);
|
|
12
|
+
align-items: stretch;
|
|
13
|
+
min-width: 0;
|
|
14
|
+
min-height: 0;
|
|
15
|
+
border: 1px solid var(--nt-border-subtle);
|
|
16
|
+
border-radius: var(--nt-radius-card);
|
|
17
|
+
background: var(--nt-bg-surface);
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
container-type: inline-size;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.nt-master-detail__list {
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
min-width: 0;
|
|
26
|
+
min-height: 0;
|
|
27
|
+
overflow-y: auto;
|
|
28
|
+
border-inline-end: 1px solid var(--nt-border-subtle);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.nt-master-detail__detail {
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
min-width: 0;
|
|
35
|
+
min-height: 0;
|
|
36
|
+
overflow-y: auto;
|
|
37
|
+
padding: var(--nt-space-5);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* Empty selection keeps the region meaningful instead of blank. */
|
|
41
|
+
.nt-master-detail__empty {
|
|
42
|
+
display: flex;
|
|
43
|
+
flex: 1 1 auto;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
align-items: center;
|
|
46
|
+
justify-content: center;
|
|
47
|
+
gap: var(--nt-space-2);
|
|
48
|
+
padding: var(--nt-space-6);
|
|
49
|
+
color: var(--nt-text-muted);
|
|
50
|
+
font: var(--nt-text-body-sm);
|
|
51
|
+
text-align: center;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* Back to the list; only rendered/visible in single-pane detail mode. */
|
|
55
|
+
.nt-master-detail__back {
|
|
56
|
+
display: none;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@container (max-width: 48rem) {
|
|
60
|
+
.nt-master-detail {
|
|
61
|
+
grid-template-columns: minmax(0, 1fr);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.nt-master-detail__list {
|
|
65
|
+
border-inline-end: 0;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.nt-master-detail[data-nt-pane='list'] .nt-master-detail__detail {
|
|
69
|
+
display: none;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.nt-master-detail[data-nt-pane='detail'] .nt-master-detail__list {
|
|
73
|
+
display: none;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.nt-master-detail[data-nt-pane='detail'] .nt-master-detail__back {
|
|
77
|
+
display: inline-flex;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* Viewport fallback for pages that render the layout outside a query
|
|
82
|
+
* container. */
|
|
83
|
+
@media (max-width: 48rem) {
|
|
84
|
+
.nt-master-detail {
|
|
85
|
+
grid-template-columns: minmax(0, 1fr);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.nt-master-detail__list {
|
|
89
|
+
border-inline-end: 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.nt-master-detail[data-nt-pane='list'] .nt-master-detail__detail {
|
|
93
|
+
display: none;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.nt-master-detail[data-nt-pane='detail'] .nt-master-detail__list {
|
|
97
|
+
display: none;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.nt-master-detail[data-nt-pane='detail'] .nt-master-detail__back {
|
|
101
|
+
display: inline-flex;
|
|
102
|
+
}
|
|
103
|
+
}
|