@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
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
min-width: 0;
|
|
6
6
|
overflow: hidden;
|
|
7
7
|
border: 1px solid var(--nt-border-subtle);
|
|
8
|
-
border-radius: var(--nt-radius-
|
|
8
|
+
border-radius: var(--nt-radius-card);
|
|
9
9
|
background: var(--nt-bg-surface);
|
|
10
10
|
color: var(--nt-text-primary);
|
|
11
|
-
box-shadow: var(--nt-
|
|
11
|
+
box-shadow: var(--nt-elevation-card);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.nt-data-grid__toolbar {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
align-items: center;
|
|
17
17
|
justify-content: space-between;
|
|
18
18
|
gap: var(--nt-space-3);
|
|
19
|
-
padding: var(--nt-
|
|
19
|
+
padding: var(--nt-density-toolbar-padding);
|
|
20
20
|
border-bottom: 1px solid var(--nt-border-subtle);
|
|
21
21
|
background: var(--nt-bg-surface);
|
|
22
22
|
}
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
|
|
66
66
|
.nt-data-grid__table th,
|
|
67
67
|
.nt-data-grid__table td {
|
|
68
|
+
height: var(--nt-density-row-height);
|
|
68
69
|
padding: var(--nt-space-3) var(--nt-space-4);
|
|
69
70
|
border-bottom: 1px solid var(--nt-border-subtle);
|
|
70
71
|
text-align: start;
|
|
@@ -73,7 +74,7 @@
|
|
|
73
74
|
|
|
74
75
|
.nt-data-grid__table th {
|
|
75
76
|
position: relative;
|
|
76
|
-
background: var(--nt-bg-muted);
|
|
77
|
+
background: var(--nt-bg-surface-muted);
|
|
77
78
|
color: var(--nt-text-muted);
|
|
78
79
|
font: var(--nt-text-label-sm);
|
|
79
80
|
letter-spacing: var(--nt-letter-spacing-label);
|
|
@@ -101,19 +102,33 @@
|
|
|
101
102
|
|
|
102
103
|
.nt-data-grid__row--selected td,
|
|
103
104
|
.nt-data-grid__row[aria-selected='true'] td {
|
|
104
|
-
background: var(--nt-
|
|
105
|
+
background: var(--nt-selection-bg);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.nt-data-grid__row--selected td:first-child,
|
|
109
|
+
.nt-data-grid__row[aria-selected='true'] td:first-child {
|
|
110
|
+
box-shadow: inset var(--nt-focus-ring-width) 0 0 var(--nt-selection-indicator);
|
|
105
111
|
}
|
|
106
112
|
|
|
107
113
|
.nt-data-grid__row--disabled td,
|
|
108
114
|
.nt-data-grid__row[aria-disabled='true'] td {
|
|
109
|
-
color: var(--nt-disabled
|
|
115
|
+
color: var(--nt-text-disabled);
|
|
110
116
|
cursor: not-allowed;
|
|
111
117
|
}
|
|
112
118
|
|
|
113
119
|
.nt-data-grid__cell {
|
|
120
|
+
position: relative;
|
|
114
121
|
min-width: 0;
|
|
115
122
|
}
|
|
116
123
|
|
|
124
|
+
.nt-data-grid__cell:focus-visible,
|
|
125
|
+
.nt-data-grid__table [role='gridcell']:focus-visible,
|
|
126
|
+
.nt-data-grid__table [role='columnheader']:focus-visible {
|
|
127
|
+
z-index: 1;
|
|
128
|
+
outline: var(--nt-focus-ring-width) solid var(--nt-focus-ring-color);
|
|
129
|
+
outline-offset: calc(var(--nt-focus-ring-offset) * -1);
|
|
130
|
+
}
|
|
131
|
+
|
|
117
132
|
.nt-data-grid__cell--muted {
|
|
118
133
|
color: var(--nt-text-muted);
|
|
119
134
|
}
|
|
@@ -171,6 +186,11 @@
|
|
|
171
186
|
cursor: pointer;
|
|
172
187
|
}
|
|
173
188
|
|
|
189
|
+
.nt-data-grid__sort:focus-visible {
|
|
190
|
+
outline: var(--nt-focus-ring-width) solid var(--nt-focus-ring-color);
|
|
191
|
+
outline-offset: var(--nt-focus-ring-offset);
|
|
192
|
+
}
|
|
193
|
+
|
|
174
194
|
.nt-data-grid__sort-icon {
|
|
175
195
|
display: inline-flex;
|
|
176
196
|
align-items: center;
|
|
@@ -183,22 +203,28 @@
|
|
|
183
203
|
.nt-data-grid__sort[aria-sort='ascending'] .nt-data-grid__sort-icon,
|
|
184
204
|
.nt-data-grid__sort[aria-sort='descending'] .nt-data-grid__sort-icon,
|
|
185
205
|
.nt-data-grid__sort[data-state='active'] .nt-data-grid__sort-icon {
|
|
186
|
-
color: var(--nt-
|
|
206
|
+
color: var(--nt-selection-indicator);
|
|
187
207
|
}
|
|
188
208
|
|
|
189
209
|
.nt-data-grid__resize-handle {
|
|
190
210
|
position: absolute;
|
|
191
211
|
top: 0;
|
|
192
|
-
|
|
212
|
+
inset-inline-end: 0;
|
|
193
213
|
width: 0.5rem;
|
|
194
214
|
height: 100%;
|
|
195
215
|
cursor: col-resize;
|
|
216
|
+
touch-action: none;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.nt-data-grid__resize-handle:focus-visible {
|
|
220
|
+
outline: var(--nt-focus-ring-width) solid var(--nt-focus-ring-color);
|
|
221
|
+
outline-offset: calc(var(--nt-focus-ring-offset) * -1);
|
|
196
222
|
}
|
|
197
223
|
|
|
198
224
|
.nt-data-grid__resize-handle::after {
|
|
199
225
|
position: absolute;
|
|
200
226
|
top: 25%;
|
|
201
|
-
|
|
227
|
+
inset-inline-end: 0;
|
|
202
228
|
width: 1px;
|
|
203
229
|
height: 50%;
|
|
204
230
|
background: var(--nt-border-subtle);
|
|
@@ -248,8 +274,8 @@
|
|
|
248
274
|
width: 3rem;
|
|
249
275
|
height: 3rem;
|
|
250
276
|
border: 1px solid var(--nt-border-subtle);
|
|
251
|
-
border-radius: var(--nt-radius-
|
|
252
|
-
background: var(--nt-bg-muted);
|
|
277
|
+
border-radius: var(--nt-radius-card);
|
|
278
|
+
background: var(--nt-bg-surface-muted);
|
|
253
279
|
color: var(--nt-text-muted);
|
|
254
280
|
}
|
|
255
281
|
|
|
@@ -276,7 +302,7 @@
|
|
|
276
302
|
inset: 0;
|
|
277
303
|
display: grid;
|
|
278
304
|
place-items: center;
|
|
279
|
-
background: var(--nt-bg-
|
|
305
|
+
background: var(--nt-bg-backdrop);
|
|
280
306
|
color: var(--nt-text-muted);
|
|
281
307
|
font: var(--nt-text-label-sm);
|
|
282
308
|
letter-spacing: var(--nt-letter-spacing-label);
|
|
@@ -314,7 +340,7 @@
|
|
|
314
340
|
}
|
|
315
341
|
|
|
316
342
|
.nt-data-grid--striped .nt-data-grid__table tbody tr:nth-child(even) td {
|
|
317
|
-
background: var(--nt-bg-muted);
|
|
343
|
+
background: var(--nt-bg-surface-muted);
|
|
318
344
|
}
|
|
319
345
|
|
|
320
346
|
.nt-data-grid--sticky-header .nt-data-grid__table thead th {
|
|
@@ -326,7 +352,7 @@
|
|
|
326
352
|
.nt-data-grid--sticky-first-column .nt-data-grid__table th:first-child,
|
|
327
353
|
.nt-data-grid--sticky-first-column .nt-data-grid__table td:first-child {
|
|
328
354
|
position: sticky;
|
|
329
|
-
|
|
355
|
+
inset-inline-start: 0;
|
|
330
356
|
z-index: 1;
|
|
331
357
|
}
|
|
332
358
|
|
|
@@ -334,6 +360,131 @@
|
|
|
334
360
|
z-index: calc(var(--nt-z-sticky) + 1);
|
|
335
361
|
}
|
|
336
362
|
|
|
363
|
+
/*
|
|
364
|
+
* Responsive grid modes (docs/responsive-and-adaptive-design.md):
|
|
365
|
+
* Desktop grid — the default interactive table above.
|
|
366
|
+
* Constrained — priority columns hide, resize handles disappear, record
|
|
367
|
+
* identity stays sticky. Applies automatically from the
|
|
368
|
+
* grid's own container width, or opt in with --constrained.
|
|
369
|
+
* Mobile record — applications render .nt-data-grid__record-list *instead
|
|
370
|
+
* of* the table (never both at once) when the interactive
|
|
371
|
+
* grid cannot work safely on a phone.
|
|
372
|
+
*/
|
|
373
|
+
.nt-data-grid {
|
|
374
|
+
container-type: inline-size;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
@container (max-width: 48rem) {
|
|
378
|
+
.nt-data-grid__cell--tertiary,
|
|
379
|
+
.nt-data-grid__table th.nt-data-grid__cell--tertiary {
|
|
380
|
+
display: none;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.nt-data-grid__resize-handle {
|
|
384
|
+
display: none;
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
@container (max-width: 40rem) {
|
|
389
|
+
.nt-data-grid__cell--secondary,
|
|
390
|
+
.nt-data-grid__table th.nt-data-grid__cell--secondary {
|
|
391
|
+
display: none;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.nt-data-grid--constrained .nt-data-grid__cell--tertiary,
|
|
396
|
+
.nt-data-grid--constrained .nt-data-grid__table th.nt-data-grid__cell--tertiary,
|
|
397
|
+
.nt-data-grid--constrained .nt-data-grid__resize-handle {
|
|
398
|
+
display: none;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.nt-data-grid--constrained .nt-data-grid__table {
|
|
402
|
+
min-width: 0;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
/* Mobile record mode: one accessible record list replacing the table. */
|
|
406
|
+
.nt-data-grid__record-list {
|
|
407
|
+
display: flex;
|
|
408
|
+
flex-direction: column;
|
|
409
|
+
min-width: 0;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.nt-data-grid__record {
|
|
413
|
+
display: flex;
|
|
414
|
+
flex-direction: column;
|
|
415
|
+
gap: var(--nt-space-2);
|
|
416
|
+
padding: var(--nt-space-4);
|
|
417
|
+
border-block-end: 1px solid var(--nt-border-subtle);
|
|
418
|
+
background: var(--nt-bg-surface);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.nt-data-grid__record:last-child {
|
|
422
|
+
border-block-end: 0;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.nt-data-grid__record--selected {
|
|
426
|
+
background: var(--nt-selection-bg);
|
|
427
|
+
box-shadow: inset var(--nt-focus-ring-width) 0 0 var(--nt-selection-indicator);
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.nt-data-grid__record-header {
|
|
431
|
+
display: flex;
|
|
432
|
+
align-items: flex-start;
|
|
433
|
+
justify-content: space-between;
|
|
434
|
+
gap: var(--nt-space-3);
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.nt-data-grid__record-title {
|
|
438
|
+
min-width: 0;
|
|
439
|
+
margin: 0;
|
|
440
|
+
color: var(--nt-text-primary);
|
|
441
|
+
font: var(--nt-text-label-md);
|
|
442
|
+
overflow-wrap: anywhere;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
.nt-data-grid__record-status {
|
|
446
|
+
flex: 0 0 auto;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
.nt-data-grid__record-fields {
|
|
450
|
+
display: flex;
|
|
451
|
+
flex-direction: column;
|
|
452
|
+
gap: var(--nt-space-1);
|
|
453
|
+
margin: 0;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.nt-data-grid__record-field {
|
|
457
|
+
display: flex;
|
|
458
|
+
flex-wrap: wrap;
|
|
459
|
+
gap: var(--nt-space-2);
|
|
460
|
+
font: var(--nt-text-body-sm);
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.nt-data-grid__record-term {
|
|
464
|
+
min-width: 7rem;
|
|
465
|
+
color: var(--nt-text-muted);
|
|
466
|
+
font: var(--nt-text-label-sm);
|
|
467
|
+
letter-spacing: var(--nt-letter-spacing-label);
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.nt-data-grid__record-value {
|
|
471
|
+
min-width: 0;
|
|
472
|
+
margin: 0;
|
|
473
|
+
color: var(--nt-text-secondary);
|
|
474
|
+
overflow-wrap: anywhere;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.nt-data-grid__record-value--numeric {
|
|
478
|
+
font-variant-numeric: tabular-nums;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.nt-data-grid__record-actions {
|
|
482
|
+
display: flex;
|
|
483
|
+
flex-wrap: wrap;
|
|
484
|
+
justify-content: flex-end;
|
|
485
|
+
gap: var(--nt-space-2);
|
|
486
|
+
}
|
|
487
|
+
|
|
337
488
|
.nt-data-grid--flat {
|
|
338
489
|
box-shadow: none;
|
|
339
490
|
}
|
|
@@ -344,7 +495,7 @@
|
|
|
344
495
|
box-shadow: none;
|
|
345
496
|
}
|
|
346
497
|
|
|
347
|
-
@media (max-width:
|
|
498
|
+
@media (max-width: 40rem) {
|
|
348
499
|
.nt-data-grid__toolbar,
|
|
349
500
|
.nt-data-grid__footer {
|
|
350
501
|
flex-direction: column;
|
|
@@ -366,4 +517,4 @@
|
|
|
366
517
|
.nt-data-grid__table tbody tr {
|
|
367
518
|
transition: none !important;
|
|
368
519
|
}
|
|
369
|
-
}
|
|
520
|
+
}
|
|
@@ -1,74 +1,78 @@
|
|
|
1
|
-
.nt-
|
|
1
|
+
/* Canonical dialog CSS. The nt-modal selectors are deprecated compatibility aliases. */
|
|
2
|
+
:is(.nt-dialog-backdrop, .nt-modal-backdrop) {
|
|
2
3
|
position: fixed;
|
|
3
4
|
inset: 0;
|
|
4
5
|
z-index: var(--nt-z-modal);
|
|
5
6
|
display: grid;
|
|
6
7
|
place-items: center;
|
|
7
8
|
padding: var(--nt-space-4);
|
|
8
|
-
background: var(--nt-bg-
|
|
9
|
+
background: var(--nt-bg-backdrop);
|
|
9
10
|
backdrop-filter: blur(12px);
|
|
10
11
|
}
|
|
11
12
|
|
|
12
|
-
.nt-dialog {
|
|
13
|
+
:is(.nt-dialog, .nt-modal) {
|
|
13
14
|
position: relative;
|
|
14
15
|
display: flex;
|
|
15
16
|
flex-direction: column;
|
|
16
|
-
width: min(100%,
|
|
17
|
-
max-height: min(
|
|
17
|
+
width: min(100%, 40rem);
|
|
18
|
+
max-height: min(44rem, calc(100dvh - var(--nt-space-8)));
|
|
18
19
|
overflow: hidden;
|
|
19
20
|
border: 1px solid var(--nt-border-subtle);
|
|
20
|
-
border-radius: var(--nt-radius-
|
|
21
|
-
background: var(--nt-bg-surface);
|
|
21
|
+
border-radius: var(--nt-radius-dialog);
|
|
22
|
+
background: var(--nt-bg-surface-overlay);
|
|
22
23
|
color: var(--nt-text-primary);
|
|
23
|
-
box-shadow: var(--nt-
|
|
24
|
+
box-shadow: var(--nt-elevation-dialog);
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
.nt-dialog:focus {
|
|
27
|
-
outline:
|
|
27
|
+
:is(.nt-dialog, .nt-modal):focus {
|
|
28
|
+
outline: var(--nt-focus-ring-width) solid var(--nt-focus-ring-color);
|
|
29
|
+
outline-offset: var(--nt-focus-ring-offset);
|
|
28
30
|
}
|
|
29
31
|
|
|
30
|
-
.nt-dialog:focus-visible {
|
|
31
|
-
outline:
|
|
32
|
-
|
|
32
|
+
:is(.nt-dialog, .nt-modal):focus-visible {
|
|
33
|
+
outline: var(--nt-focus-ring-width) solid var(--nt-focus-ring-color);
|
|
34
|
+
outline-offset: var(--nt-focus-ring-offset);
|
|
35
|
+
box-shadow: 0 0 0 3px var(--nt-focus-ring-muted), var(--nt-elevation-dialog);
|
|
33
36
|
}
|
|
34
37
|
|
|
35
|
-
.nt-dialog__header {
|
|
38
|
+
:is(.nt-dialog__header, .nt-modal__header) {
|
|
36
39
|
display: flex;
|
|
37
40
|
align-items: flex-start;
|
|
38
41
|
justify-content: space-between;
|
|
39
42
|
gap: var(--nt-space-4);
|
|
40
43
|
padding: var(--nt-space-5);
|
|
41
44
|
border-bottom: 1px solid var(--nt-border-subtle);
|
|
45
|
+
background: var(--nt-bg-surface);
|
|
42
46
|
}
|
|
43
47
|
|
|
44
|
-
.nt-dialog__header-main {
|
|
48
|
+
:is(.nt-dialog__header-main, .nt-modal__header-main) {
|
|
45
49
|
display: flex;
|
|
46
50
|
flex-direction: column;
|
|
47
51
|
gap: var(--nt-space-1);
|
|
48
52
|
min-width: 0;
|
|
49
53
|
}
|
|
50
54
|
|
|
51
|
-
.nt-dialog__eyebrow {
|
|
55
|
+
:is(.nt-dialog__eyebrow, .nt-modal__eyebrow) {
|
|
52
56
|
color: var(--nt-text-muted);
|
|
53
57
|
font: var(--nt-text-label-sm);
|
|
54
58
|
letter-spacing: var(--nt-letter-spacing-label);
|
|
55
59
|
text-transform: uppercase;
|
|
56
60
|
}
|
|
57
61
|
|
|
58
|
-
.nt-dialog__title {
|
|
62
|
+
:is(.nt-dialog__title, .nt-modal__title) {
|
|
59
63
|
margin: 0;
|
|
60
64
|
color: var(--nt-text-primary);
|
|
61
65
|
font: var(--nt-text-title-md);
|
|
62
66
|
letter-spacing: var(--nt-letter-spacing-title);
|
|
63
67
|
}
|
|
64
68
|
|
|
65
|
-
.nt-dialog__description {
|
|
69
|
+
:is(.nt-dialog__description, .nt-modal__description) {
|
|
66
70
|
margin: 0;
|
|
67
71
|
color: var(--nt-text-muted);
|
|
68
72
|
font: var(--nt-text-body-sm);
|
|
69
73
|
}
|
|
70
74
|
|
|
71
|
-
.nt-dialog__close {
|
|
75
|
+
:is(.nt-dialog__close, .nt-modal__close) {
|
|
72
76
|
display: inline-flex;
|
|
73
77
|
align-items: center;
|
|
74
78
|
justify-content: center;
|
|
@@ -76,26 +80,27 @@
|
|
|
76
80
|
width: var(--nt-control-height-sm);
|
|
77
81
|
height: var(--nt-control-height-sm);
|
|
78
82
|
border: 1px solid transparent;
|
|
79
|
-
border-radius: var(--nt-radius-
|
|
83
|
+
border-radius: var(--nt-radius-control);
|
|
80
84
|
background: transparent;
|
|
81
85
|
color: var(--nt-text-muted);
|
|
82
86
|
cursor: pointer;
|
|
83
87
|
transition: var(--nt-transition-colors);
|
|
84
88
|
}
|
|
85
89
|
|
|
86
|
-
.nt-dialog__close:hover {
|
|
90
|
+
:is(.nt-dialog__close, .nt-modal__close):hover {
|
|
87
91
|
border-color: var(--nt-border-subtle);
|
|
88
92
|
background: var(--nt-bg-surface-hover);
|
|
89
93
|
color: var(--nt-text-primary);
|
|
90
94
|
}
|
|
91
95
|
|
|
92
|
-
.nt-dialog__close:focus-visible {
|
|
93
|
-
outline:
|
|
96
|
+
:is(.nt-dialog__close, .nt-modal__close):focus-visible {
|
|
97
|
+
outline: var(--nt-focus-ring-width) solid var(--nt-focus-ring-color);
|
|
98
|
+
outline-offset: var(--nt-focus-ring-offset);
|
|
94
99
|
border-color: var(--nt-control-border-focus);
|
|
95
100
|
box-shadow: 0 0 0 3px var(--nt-focus-ring-muted);
|
|
96
101
|
}
|
|
97
102
|
|
|
98
|
-
.nt-dialog__body {
|
|
103
|
+
:is(.nt-dialog__body, .nt-modal__body) {
|
|
99
104
|
display: flex;
|
|
100
105
|
flex: 1 1 auto;
|
|
101
106
|
flex-direction: column;
|
|
@@ -103,9 +108,13 @@
|
|
|
103
108
|
min-width: 0;
|
|
104
109
|
overflow: auto;
|
|
105
110
|
padding: var(--nt-space-5);
|
|
111
|
+
/* Dialog content is a query container: nested components adapt to the
|
|
112
|
+
* dialog width, not the viewport. */
|
|
113
|
+
container-type: inline-size;
|
|
114
|
+
container-name: nt-region;
|
|
106
115
|
}
|
|
107
116
|
|
|
108
|
-
.nt-dialog__footer {
|
|
117
|
+
:is(.nt-dialog__footer, .nt-modal__footer) {
|
|
109
118
|
display: flex;
|
|
110
119
|
align-items: center;
|
|
111
120
|
justify-content: flex-end;
|
|
@@ -115,80 +124,132 @@
|
|
|
115
124
|
background: var(--nt-bg-surface);
|
|
116
125
|
}
|
|
117
126
|
|
|
118
|
-
.nt-dialog__footer--split {
|
|
127
|
+
:is(.nt-dialog__footer--split, .nt-modal__footer--split) {
|
|
119
128
|
justify-content: space-between;
|
|
120
129
|
}
|
|
121
130
|
|
|
122
|
-
.nt-dialog__footer-main,
|
|
123
|
-
.nt-dialog__footer-actions {
|
|
131
|
+
:is(.nt-dialog__footer-main, .nt-modal__footer-main),
|
|
132
|
+
:is(.nt-dialog__footer-actions, .nt-modal__footer-actions) {
|
|
124
133
|
display: inline-flex;
|
|
125
134
|
align-items: center;
|
|
126
135
|
gap: var(--nt-space-2);
|
|
127
136
|
min-width: 0;
|
|
128
137
|
}
|
|
129
138
|
|
|
130
|
-
.nt-
|
|
131
|
-
|
|
139
|
+
:is(.nt-dialog__section, .nt-modal__section) {
|
|
140
|
+
display: flex;
|
|
141
|
+
flex-direction: column;
|
|
142
|
+
gap: var(--nt-space-3);
|
|
143
|
+
min-width: 0;
|
|
132
144
|
}
|
|
133
145
|
|
|
134
|
-
.nt-
|
|
135
|
-
|
|
146
|
+
:is(.nt-dialog__section-title, .nt-modal__section-title) {
|
|
147
|
+
margin: 0;
|
|
148
|
+
color: var(--nt-text-primary);
|
|
149
|
+
font: var(--nt-text-label-md);
|
|
150
|
+
letter-spacing: var(--nt-letter-spacing-label);
|
|
136
151
|
}
|
|
137
152
|
|
|
138
|
-
.nt-
|
|
139
|
-
|
|
153
|
+
:is(.nt-dialog__section-description, .nt-modal__section-description) {
|
|
154
|
+
margin: 0;
|
|
155
|
+
color: var(--nt-text-muted);
|
|
156
|
+
font: var(--nt-text-body-sm);
|
|
140
157
|
}
|
|
141
158
|
|
|
142
|
-
.nt-
|
|
143
|
-
width:
|
|
159
|
+
:is(.nt-dialog__divider, .nt-modal__divider) {
|
|
160
|
+
width: 100%;
|
|
161
|
+
height: 1px;
|
|
162
|
+
margin: 0;
|
|
163
|
+
border: 0;
|
|
164
|
+
background: var(--nt-border-subtle);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
:is(.nt-dialog--sm, .nt-modal--sm) {
|
|
168
|
+
width: min(100%, 28rem);
|
|
144
169
|
}
|
|
145
170
|
|
|
146
|
-
.nt-dialog--
|
|
171
|
+
:is(.nt-dialog--md, .nt-modal--md) {
|
|
172
|
+
width: min(100%, 40rem);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
:is(.nt-dialog--lg, .nt-modal--lg) {
|
|
176
|
+
width: min(100%, 56rem);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
:is(.nt-dialog--xl, .nt-modal--xl) {
|
|
180
|
+
width: min(100%, 72rem);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
:is(.nt-dialog--fullscreen, .nt-modal--fullscreen) {
|
|
147
184
|
width: calc(100dvw - var(--nt-space-6));
|
|
148
185
|
height: calc(100dvh - var(--nt-space-6));
|
|
149
186
|
max-height: none;
|
|
150
187
|
}
|
|
151
188
|
|
|
152
|
-
.nt-dialog--
|
|
189
|
+
:is(.nt-dialog--compact, .nt-modal--compact) :is(.nt-dialog__header, .nt-modal__header),
|
|
190
|
+
:is(.nt-dialog--compact, .nt-modal--compact) :is(.nt-dialog__body, .nt-modal__body),
|
|
191
|
+
:is(.nt-dialog--compact, .nt-modal--compact) :is(.nt-dialog__footer, .nt-modal__footer) {
|
|
192
|
+
padding: var(--nt-space-4);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
:is(.nt-dialog--spacious, .nt-modal--spacious) :is(.nt-dialog__header, .nt-modal__header),
|
|
196
|
+
:is(.nt-dialog--spacious, .nt-modal--spacious) :is(.nt-dialog__body, .nt-modal__body),
|
|
197
|
+
:is(.nt-dialog--spacious, .nt-modal--spacious) :is(.nt-dialog__footer, .nt-modal__footer) {
|
|
198
|
+
padding: var(--nt-space-6);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
:is(.nt-dialog--danger, .nt-modal--danger) {
|
|
153
202
|
border-color: var(--nt-danger-border);
|
|
154
203
|
}
|
|
155
204
|
|
|
156
|
-
.nt-dialog--danger .nt-dialog__eyebrow {
|
|
205
|
+
:is(.nt-dialog--danger, .nt-modal--danger) :is(.nt-dialog__eyebrow, .nt-modal__eyebrow) {
|
|
157
206
|
color: var(--nt-danger-text);
|
|
158
207
|
}
|
|
159
208
|
|
|
160
|
-
.nt-dialog--success {
|
|
209
|
+
:is(.nt-dialog--success, .nt-modal--success) {
|
|
161
210
|
border-color: var(--nt-success-border);
|
|
162
211
|
}
|
|
163
212
|
|
|
164
|
-
.nt-dialog--success .nt-dialog__eyebrow {
|
|
213
|
+
:is(.nt-dialog--success, .nt-modal--success) :is(.nt-dialog__eyebrow, .nt-modal__eyebrow) {
|
|
165
214
|
color: var(--nt-success-text);
|
|
166
215
|
}
|
|
167
216
|
|
|
168
|
-
.nt-dialog--warning {
|
|
217
|
+
:is(.nt-dialog--warning, .nt-modal--warning) {
|
|
169
218
|
border-color: var(--nt-warning-border);
|
|
170
219
|
}
|
|
171
220
|
|
|
172
|
-
.nt-dialog--warning .nt-dialog__eyebrow {
|
|
221
|
+
:is(.nt-dialog--warning, .nt-modal--warning) :is(.nt-dialog__eyebrow, .nt-modal__eyebrow) {
|
|
173
222
|
color: var(--nt-warning-text);
|
|
174
223
|
}
|
|
175
224
|
|
|
176
|
-
.nt-dialog-backdrop[data-state='open'] {
|
|
225
|
+
:is(.nt-dialog-backdrop, .nt-modal-backdrop)[data-state='open'] {
|
|
177
226
|
animation: nt-dialog-backdrop-in var(--nt-duration-normal) var(--nt-ease-standard);
|
|
178
227
|
}
|
|
179
228
|
|
|
180
|
-
.nt-dialog-backdrop[data-state='closed'] {
|
|
229
|
+
:is(.nt-dialog-backdrop, .nt-modal-backdrop)[data-state='closed'] {
|
|
181
230
|
animation: nt-dialog-backdrop-out var(--nt-duration-fast) var(--nt-ease-standard);
|
|
182
231
|
}
|
|
183
232
|
|
|
184
|
-
.nt-dialog[data-state='open'] {
|
|
233
|
+
:is(.nt-dialog, .nt-modal)[data-state='open'] {
|
|
185
234
|
animation: nt-dialog-in var(--nt-duration-normal) var(--nt-ease-standard);
|
|
186
235
|
}
|
|
187
236
|
|
|
188
|
-
.nt-dialog[data-state='closed'] {
|
|
237
|
+
:is(.nt-dialog, .nt-modal)[data-state='closed'] {
|
|
189
238
|
animation: nt-dialog-out var(--nt-duration-fast) var(--nt-ease-standard);
|
|
190
239
|
}
|
|
191
240
|
|
|
241
|
+
|
|
242
|
+
/* Dialog keeps its established narrower sizing while modal classes remain compatible. */
|
|
243
|
+
.nt-dialog {
|
|
244
|
+
width: min(100%, 34rem);
|
|
245
|
+
max-height: min(42rem, calc(100dvh - var(--nt-space-8)));
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.nt-dialog--sm { width: min(100%, 26rem); }
|
|
249
|
+
.nt-dialog--md { width: min(100%, 34rem); }
|
|
250
|
+
.nt-dialog--lg { width: min(100%, 48rem); }
|
|
251
|
+
.nt-dialog--xl { width: min(100%, 64rem); }
|
|
252
|
+
|
|
192
253
|
@keyframes nt-dialog-backdrop-in {
|
|
193
254
|
from {
|
|
194
255
|
opacity: 0;
|
|
@@ -212,7 +273,7 @@
|
|
|
212
273
|
@keyframes nt-dialog-in {
|
|
213
274
|
from {
|
|
214
275
|
opacity: 0;
|
|
215
|
-
transform: translateY(
|
|
276
|
+
transform: translateY(var(--nt-space-3)) scale(0.98);
|
|
216
277
|
}
|
|
217
278
|
|
|
218
279
|
to {
|
|
@@ -229,47 +290,50 @@
|
|
|
229
290
|
|
|
230
291
|
to {
|
|
231
292
|
opacity: 0;
|
|
232
|
-
transform: translateY(
|
|
293
|
+
transform: translateY(var(--nt-space-2)) scale(0.98);
|
|
233
294
|
}
|
|
234
295
|
}
|
|
235
296
|
|
|
236
|
-
@media (max-width:
|
|
237
|
-
.nt-dialog-backdrop {
|
|
297
|
+
@media (max-width: 40rem) {
|
|
298
|
+
:is(.nt-dialog-backdrop, .nt-modal-backdrop) {
|
|
238
299
|
align-items: end;
|
|
239
300
|
padding: var(--nt-space-2);
|
|
240
301
|
}
|
|
241
302
|
|
|
242
|
-
.nt-dialog {
|
|
303
|
+
:is(.nt-dialog, .nt-modal) {
|
|
243
304
|
width: 100%;
|
|
244
305
|
max-height: calc(100dvh - var(--nt-space-4));
|
|
245
|
-
border-radius: var(--nt-radius-
|
|
306
|
+
border-radius: var(--nt-radius-dialog) var(--nt-radius-dialog) var(--nt-radius-item) var(--nt-radius-item);
|
|
246
307
|
}
|
|
247
308
|
|
|
248
|
-
.nt-dialog__header,
|
|
249
|
-
.nt-dialog__body,
|
|
250
|
-
.nt-dialog__footer {
|
|
309
|
+
:is(.nt-dialog__header, .nt-modal__header),
|
|
310
|
+
:is(.nt-dialog__body, .nt-modal__body),
|
|
311
|
+
:is(.nt-dialog__footer, .nt-modal__footer) {
|
|
251
312
|
padding: var(--nt-space-4);
|
|
252
313
|
}
|
|
253
314
|
|
|
254
|
-
.nt-dialog__footer {
|
|
315
|
+
:is(.nt-dialog__footer, .nt-modal__footer) {
|
|
255
316
|
flex-direction: column-reverse;
|
|
256
317
|
align-items: stretch;
|
|
318
|
+
padding-bottom: max(var(--nt-space-4), env(safe-area-inset-bottom, 0rem));
|
|
257
319
|
}
|
|
258
320
|
|
|
259
|
-
.nt-dialog__footer-main,
|
|
260
|
-
.nt-dialog__footer-actions {
|
|
321
|
+
:is(.nt-dialog__footer-main, .nt-modal__footer-main),
|
|
322
|
+
:is(.nt-dialog__footer-actions, .nt-modal__footer-actions) {
|
|
261
323
|
width: 100%;
|
|
262
324
|
justify-content: stretch;
|
|
263
325
|
}
|
|
264
326
|
|
|
265
|
-
.nt-dialog__footer-actions > * {
|
|
327
|
+
:is(.nt-dialog__footer-actions, .nt-modal__footer-actions) > * {
|
|
266
328
|
flex: 1 1 auto;
|
|
267
329
|
}
|
|
268
330
|
}
|
|
269
331
|
|
|
270
332
|
@media (prefers-reduced-motion: reduce) {
|
|
271
|
-
.nt-dialog-backdrop,
|
|
272
|
-
.nt-dialog
|
|
333
|
+
:is(.nt-dialog-backdrop, .nt-modal-backdrop),
|
|
334
|
+
:is(.nt-dialog, .nt-modal),
|
|
335
|
+
:is(.nt-dialog__close, .nt-modal__close) {
|
|
336
|
+
transition: none !important;
|
|
273
337
|
animation: none !important;
|
|
274
338
|
}
|
|
275
|
-
}
|
|
339
|
+
}
|