@neetechs/ui 0.0.2 → 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/LICENSE +21 -0
- package/README.md +123 -11
- package/dist/ai/ai-action-button/ai-action-button.css +271 -270
- package/dist/ai/ai-approval-card/ai-approval-card.css +323 -320
- package/dist/ai/ai-conversation-panel/ai-conversation-panel.css +447 -403
- package/dist/ai/ai-prompt-input/ai-prompt-input.css +380 -377
- package/dist/ai/ai-proposal-card/ai-proposal-card.css +358 -358
- package/dist/ai/ai-suggestion-card/ai-suggestion-card.css +295 -293
- package/dist/ai/ai-tool-call/ai-tool-call.css +256 -255
- package/dist/ai/index.css +1 -1
- package/dist/appearance/cache.d.ts +55 -0
- package/dist/appearance/cache.d.ts.map +1 -0
- package/dist/appearance/cache.js +182 -0
- package/dist/appearance/cache.js.map +1 -0
- package/dist/appearance/cookie.d.ts +33 -0
- package/dist/appearance/cookie.d.ts.map +1 -0
- package/dist/appearance/cookie.js +125 -0
- package/dist/appearance/cookie.js.map +1 -0
- package/dist/appearance/index.d.ts +9 -0
- package/dist/appearance/index.d.ts.map +1 -0
- package/dist/appearance/index.js +5 -0
- package/dist/appearance/index.js.map +1 -0
- package/dist/appearance/preference.d.ts +21 -0
- package/dist/appearance/preference.d.ts.map +1 -0
- package/dist/appearance/preference.js +80 -0
- package/dist/appearance/preference.js.map +1 -0
- package/dist/appearance/theme-controller.d.ts +62 -0
- package/dist/appearance/theme-controller.d.ts.map +1 -0
- package/dist/appearance/theme-controller.js +240 -0
- package/dist/appearance/theme-controller.js.map +1 -0
- package/dist/appearance/types.d.ts +48 -0
- package/dist/appearance/types.d.ts.map +1 -0
- package/dist/appearance/types.js +2 -0
- package/dist/appearance/types.js.map +1 -0
- 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 +220 -217
- package/dist/components/avatar/avatar.css +220 -219
- package/dist/components/badge/badge.css +174 -174
- package/dist/components/breadcrumb/breadcrumb.css +207 -205
- package/dist/components/button/button.css +195 -167
- package/dist/components/card/card.css +221 -220
- package/dist/components/checkbox/checkbox.css +189 -187
- package/dist/components/chip/chip.css +269 -267
- package/dist/components/data-grid/data-grid.css +520 -369
- package/dist/components/dialog/dialog.css +339 -275
- package/dist/components/drawer/drawer.css +484 -403
- package/dist/components/dropdown/dropdown.css +316 -298
- package/dist/components/icon-button/icon-button.css +162 -158
- package/dist/components/index.css +1 -2
- package/dist/components/input/input.css +163 -163
- package/dist/components/menu/menu.css +315 -314
- package/dist/components/pagination/pagination.css +250 -249
- package/dist/components/panel/panel.css +284 -283
- package/dist/components/progress/progress.css +256 -248
- package/dist/components/radio/radio.css +166 -164
- package/dist/components/segmented-control/segmented-control.css +205 -205
- package/dist/components/select/select.css +117 -103
- package/dist/components/skeleton/skeleton.css +262 -262
- package/dist/components/split-button/split-button.css +292 -285
- package/dist/components/switch/switch.css +195 -181
- package/dist/components/table/table.css +220 -0
- package/dist/components/tabs/tabs.css +293 -289
- package/dist/components/textarea/textarea.css +86 -86
- package/dist/components/toast/toast.css +345 -323
- package/dist/components/tooltip/tooltip.css +258 -255
- package/dist/domain/billing/index.css +498 -498
- package/dist/domain/calendar/agenda-list/agenda-list.css +224 -0
- package/dist/domain/calendar/day-slice/day-slice.css +384 -383
- package/dist/domain/calendar/day-timeline/day-timeline.css +332 -324
- package/dist/domain/calendar/event-card/event-card.css +338 -336
- package/dist/domain/calendar/index.css +2 -1
- package/dist/domain/calendar/month-grid/month-grid.css +426 -420
- package/dist/domain/calendar/week-grid/week-grid.css +480 -470
- package/dist/domain/companies/index.css +526 -525
- package/dist/index.css +5 -5
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -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 +447 -439
- package/dist/patterns/company-switcher/company-switcher.css +390 -363
- package/dist/patterns/content-state/content-state.css +236 -0
- package/dist/patterns/empty-state/empty-state.css +260 -259
- package/dist/patterns/error-state/error-state.css +272 -271
- 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 +287 -287
- package/dist/patterns/master-detail/master-detail.css +103 -0
- package/dist/patterns/notification-center/notification-center.css +443 -438
- package/dist/patterns/page/page.css +219 -0
- package/dist/patterns/profile-menu/profile-menu.css +298 -297
- package/dist/patterns/search-bar/search-bar.css +457 -444
- 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 +74 -67
- package/dist/shell/content-frame/content-frame.css +93 -93
- package/dist/shell/header/header.css +180 -178
- package/dist/shell/index.css +6 -6
- package/dist/shell/mobile-nav/mobile-nav.css +173 -171
- package/dist/shell/sidebar/sidebar.css +146 -146
- package/dist/styles/accessibility.css +116 -0
- package/dist/styles/animations/motion.css +162 -162
- 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 +83 -82
- package/dist/styles/index.css +8 -1
- package/dist/styles/localization.css +56 -0
- package/dist/styles/reset.css +51 -50
- package/dist/styles/responsive.css +101 -0
- package/dist/styles/themes/dark.css +202 -120
- package/dist/styles/themes/high-contrast.css +290 -119
- package/dist/styles/themes/light.css +201 -119
- package/dist/styles/tokens/breakpoints.css +37 -15
- package/dist/styles/tokens/color.css +96 -96
- package/dist/styles/tokens/compatibility.css +33 -0
- package/dist/styles/tokens/elevation.css +26 -32
- package/dist/styles/tokens/index.css +2 -1
- package/dist/styles/tokens/motion.css +35 -35
- package/dist/styles/tokens/radius.css +26 -21
- package/dist/styles/tokens/spacing.css +56 -50
- package/dist/styles/tokens/typography.css +85 -84
- package/dist/styles/tokens/z-index.css +14 -14
- package/dist/styles/utilities/layout.css +153 -135
- package/dist/styles/utilities/text.css +152 -152
- package/dist/styles/utilities/visibility.css +47 -47
- 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 +5 -0
- package/package.json +53 -17
- package/src/ai/ai-action-button/ai-action-button.css +271 -270
- package/src/ai/ai-approval-card/ai-approval-card.css +323 -320
- package/src/ai/ai-conversation-panel/ai-conversation-panel.css +447 -403
- package/src/ai/ai-prompt-input/ai-prompt-input.css +380 -377
- package/src/ai/ai-proposal-card/ai-proposal-card.css +358 -358
- package/src/ai/ai-suggestion-card/ai-suggestion-card.css +295 -293
- package/src/ai/ai-tool-call/ai-tool-call.css +256 -255
- package/src/ai/index.css +1 -1
- package/src/appearance/cache.ts +236 -0
- package/src/appearance/cookie.ts +184 -0
- package/src/appearance/index.ts +80 -0
- package/src/appearance/preference.ts +121 -0
- package/src/appearance/theme-controller.ts +371 -0
- package/src/appearance/types.ts +61 -0
- 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 +203 -168
- package/src/behaviors/direction.ts +34 -0
- package/src/behaviors/drawer.ts +210 -177
- package/src/behaviors/dropdown.ts +344 -281
- package/src/behaviors/focus-trap.ts +304 -261
- package/src/behaviors/forms.ts +205 -0
- package/src/behaviors/ids.ts +47 -47
- package/src/behaviors/index.ts +15 -7
- package/src/behaviors/keyboard.ts +305 -303
- package/src/behaviors/overlay.ts +344 -231
- 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 +220 -217
- package/src/components/avatar/avatar.css +220 -219
- package/src/components/badge/badge.css +174 -174
- package/src/components/breadcrumb/breadcrumb.css +207 -205
- package/src/components/button/button.css +195 -167
- package/src/components/card/card.css +221 -220
- package/src/components/checkbox/checkbox.css +189 -187
- package/src/components/chip/chip.css +269 -267
- package/src/components/data-grid/data-grid.css +520 -369
- package/src/components/dialog/dialog.css +339 -275
- package/src/components/drawer/drawer.css +484 -403
- package/src/components/dropdown/dropdown.css +316 -298
- package/src/components/icon-button/icon-button.css +162 -158
- package/src/components/index.css +1 -2
- package/src/components/input/input.css +163 -163
- package/src/components/menu/menu.css +315 -314
- package/src/components/pagination/pagination.css +250 -249
- package/src/components/panel/panel.css +284 -283
- package/src/components/progress/progress.css +256 -248
- package/src/components/radio/radio.css +166 -164
- package/src/components/segmented-control/segmented-control.css +205 -205
- package/src/components/select/select.css +117 -103
- package/src/components/skeleton/skeleton.css +262 -262
- package/src/components/split-button/split-button.css +292 -285
- package/src/components/switch/switch.css +195 -181
- package/src/components/table/table.css +220 -0
- package/src/components/tabs/tabs.css +293 -289
- package/src/components/textarea/textarea.css +86 -86
- package/src/components/toast/toast.css +345 -323
- package/src/components/tooltip/tooltip.css +258 -255
- package/src/domain/billing/index.css +498 -498
- package/src/domain/calendar/agenda-list/agenda-list.css +224 -0
- package/src/domain/calendar/day-slice/day-slice.css +384 -383
- package/src/domain/calendar/day-timeline/day-timeline.css +332 -324
- package/src/domain/calendar/event-card/event-card.css +338 -336
- package/src/domain/calendar/index.css +2 -1
- package/src/domain/calendar/month-grid/month-grid.css +426 -420
- package/src/domain/calendar/week-grid/week-grid.css +480 -470
- package/src/domain/companies/index.css +526 -525
- package/src/index.css +5 -5
- package/src/index.ts +7 -5
- package/src/localization/index.ts +56 -0
- package/src/patterns/command-palette/command-palette.css +447 -439
- package/src/patterns/company-switcher/company-switcher.css +390 -363
- package/src/patterns/content-state/content-state.css +236 -0
- package/src/patterns/empty-state/empty-state.css +260 -259
- package/src/patterns/error-state/error-state.css +272 -271
- 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 +287 -287
- package/src/patterns/master-detail/master-detail.css +103 -0
- package/src/patterns/notification-center/notification-center.css +443 -438
- package/src/patterns/page/page.css +219 -0
- package/src/patterns/profile-menu/profile-menu.css +298 -297
- package/src/patterns/search-bar/search-bar.css +457 -444
- 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 +74 -67
- package/src/shell/content-frame/content-frame.css +93 -93
- package/src/shell/header/header.css +180 -178
- package/src/shell/index.css +6 -6
- package/src/shell/mobile-nav/mobile-nav.css +173 -171
- package/src/shell/sidebar/sidebar.css +146 -146
- package/src/styles/accessibility.css +116 -0
- package/src/styles/animations/motion.css +162 -162
- 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 +83 -82
- package/src/styles/index.css +8 -1
- package/src/styles/localization.css +56 -0
- package/src/styles/reset.css +51 -50
- package/src/styles/responsive.css +101 -0
- package/src/styles/themes/dark.css +202 -120
- package/src/styles/themes/high-contrast.css +290 -119
- package/src/styles/themes/light.css +201 -119
- package/src/styles/tokens/breakpoints.css +37 -15
- package/src/styles/tokens/color.css +96 -96
- package/src/styles/tokens/compatibility.css +33 -0
- package/src/styles/tokens/elevation.css +26 -32
- package/src/styles/tokens/index.css +2 -1
- package/src/styles/tokens/motion.css +35 -35
- package/src/styles/tokens/radius.css +26 -21
- package/src/styles/tokens/spacing.css +56 -50
- package/src/styles/tokens/typography.css +85 -84
- package/src/styles/tokens/z-index.css +14 -14
- package/src/styles/utilities/layout.css +153 -135
- package/src/styles/utilities/text.css +152 -152
- package/src/styles/utilities/visibility.css +47 -47
- 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,40 @@
|
|
|
1
|
+
[data-nt-motion='reduced'] {
|
|
2
|
+
--nt-duration-fast: 0.01ms;
|
|
3
|
+
--nt-duration-normal: 0.01ms;
|
|
4
|
+
--nt-duration-slow: 0.01ms;
|
|
5
|
+
--nt-duration-slower: 0.01ms;
|
|
6
|
+
--nt-transition-transform: none;
|
|
7
|
+
--nt-transition-overlay: opacity 0.01ms linear;
|
|
8
|
+
--nt-motion-card: var(--nt-transition-colors);
|
|
9
|
+
--nt-motion-dialog: var(--nt-transition-overlay);
|
|
10
|
+
--nt-motion-drawer: var(--nt-transition-overlay);
|
|
11
|
+
--nt-motion-menu: var(--nt-transition-overlay);
|
|
12
|
+
--nt-motion-toast: var(--nt-transition-overlay);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
[data-nt-motion='reduced'] :where(.nt-card--interactive, .nt-button):active,
|
|
16
|
+
[data-nt-motion='reduced'] :where(.nt-card--interactive, .nt-button):hover {
|
|
17
|
+
transform: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
[data-nt-motion='reduced'] :where(
|
|
21
|
+
.nt-animate-slide-up,
|
|
22
|
+
.nt-animate-slide-down,
|
|
23
|
+
.nt-animate-scale-in,
|
|
24
|
+
.nt-animate-drawer-in-right,
|
|
25
|
+
.nt-animate-drawer-in-left,
|
|
26
|
+
.nt-animate-ai-pulse
|
|
27
|
+
) {
|
|
28
|
+
animation: none !important;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@media (prefers-reduced-motion: reduce) {
|
|
32
|
+
:root:not([data-nt-motion='full']) {
|
|
33
|
+
--nt-duration-fast: 0.01ms;
|
|
34
|
+
--nt-duration-normal: 0.01ms;
|
|
35
|
+
--nt-duration-slow: 0.01ms;
|
|
36
|
+
--nt-duration-slower: 0.01ms;
|
|
37
|
+
--nt-transition-transform: none;
|
|
38
|
+
--nt-transition-overlay: opacity 0.01ms linear;
|
|
39
|
+
}
|
|
40
|
+
}
|
package/src/styles/base.css
CHANGED
|
@@ -1,82 +1,83 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
color-scheme: dark;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
html {
|
|
6
|
-
scroll-behavior: smooth;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
body {
|
|
10
|
-
background: var(--nt-bg-app);
|
|
11
|
-
color: var(--nt-text-primary);
|
|
12
|
-
font-family: var(--nt-font-sans);
|
|
13
|
-
font-size: var(--nt-font-size-body-md);
|
|
14
|
-
line-height: var(--nt-line-height-body-md);
|
|
15
|
-
font-weight: var(--nt-font-weight-regular);
|
|
16
|
-
font-synthesis: none;
|
|
17
|
-
text-rendering: optimizeLegibility;
|
|
18
|
-
-webkit-font-smoothing: antialiased;
|
|
19
|
-
-moz-osx-font-smoothing: grayscale;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
::selection {
|
|
23
|
-
background: var(--nt-selection-bg);
|
|
24
|
-
color: var(--nt-selection-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
:focus-visible {
|
|
28
|
-
outline:
|
|
29
|
-
outline-offset:
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
html {
|
|
33
|
-
scrollbar-color: var(--nt-scrollbar-thumb) var(--nt-scrollbar-track);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
::-webkit-scrollbar {
|
|
37
|
-
width: var(--nt-scrollbar-size);
|
|
38
|
-
height: var(--nt-scrollbar-size);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
::-webkit-scrollbar-track {
|
|
42
|
-
background: var(--nt-scrollbar-track);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
::-webkit-scrollbar-thumb {
|
|
46
|
-
background: var(--nt-scrollbar-thumb);
|
|
47
|
-
border-radius: var(--nt-radius-full);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
::-webkit-scrollbar-thumb:hover {
|
|
51
|
-
background: var(--nt-scrollbar-thumb-hover);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.nt-app {
|
|
55
|
-
min-width: 320px;
|
|
56
|
-
min-height: 100vh;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
*::
|
|
77
|
-
|
|
78
|
-
animation-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
1
|
+
:root {
|
|
2
|
+
color-scheme: dark;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
html {
|
|
6
|
+
scroll-behavior: smooth;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
body {
|
|
10
|
+
background: var(--nt-bg-app);
|
|
11
|
+
color: var(--nt-text-primary);
|
|
12
|
+
font-family: var(--nt-font-sans);
|
|
13
|
+
font-size: var(--nt-font-size-body-md);
|
|
14
|
+
line-height: var(--nt-line-height-body-md);
|
|
15
|
+
font-weight: var(--nt-font-weight-regular);
|
|
16
|
+
font-synthesis: none;
|
|
17
|
+
text-rendering: optimizeLegibility;
|
|
18
|
+
-webkit-font-smoothing: antialiased;
|
|
19
|
+
-moz-osx-font-smoothing: grayscale;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
::selection {
|
|
23
|
+
background: var(--nt-selection-bg);
|
|
24
|
+
color: var(--nt-selection-fg);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:focus-visible {
|
|
28
|
+
outline: var(--nt-focus-ring-width) solid var(--nt-focus-ring-color);
|
|
29
|
+
outline-offset: var(--nt-focus-ring-offset);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
html {
|
|
33
|
+
scrollbar-color: var(--nt-scrollbar-thumb) var(--nt-scrollbar-track);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
::-webkit-scrollbar {
|
|
37
|
+
width: var(--nt-scrollbar-size);
|
|
38
|
+
height: var(--nt-scrollbar-size);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
::-webkit-scrollbar-track {
|
|
42
|
+
background: var(--nt-scrollbar-track);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
::-webkit-scrollbar-thumb {
|
|
46
|
+
background: var(--nt-scrollbar-thumb);
|
|
47
|
+
border-radius: var(--nt-radius-full);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
::-webkit-scrollbar-thumb:hover {
|
|
51
|
+
background: var(--nt-scrollbar-thumb-hover);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.nt-app {
|
|
55
|
+
min-width: 320px;
|
|
56
|
+
min-height: 100vh;
|
|
57
|
+
min-height: 100dvh;
|
|
58
|
+
background: var(--nt-bg-app);
|
|
59
|
+
color: var(--nt-text-primary);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.nt-theme-dark {
|
|
63
|
+
color-scheme: dark;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.nt-theme-light {
|
|
67
|
+
color-scheme: light;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@media (prefers-reduced-motion: reduce) {
|
|
71
|
+
html {
|
|
72
|
+
scroll-behavior: auto;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
*,
|
|
76
|
+
*::before,
|
|
77
|
+
*::after {
|
|
78
|
+
animation-duration: 0.001ms !important;
|
|
79
|
+
animation-iteration-count: 1 !important;
|
|
80
|
+
scroll-behavior: auto !important;
|
|
81
|
+
transition-duration: 0.001ms !important;
|
|
82
|
+
}
|
|
83
|
+
}
|
package/src/styles/index.css
CHANGED
|
@@ -6,10 +6,14 @@
|
|
|
6
6
|
@import './tokens/motion.css';
|
|
7
7
|
@import './tokens/z-index.css';
|
|
8
8
|
@import './tokens/breakpoints.css';
|
|
9
|
+
@import './tokens/compatibility.css';
|
|
9
10
|
|
|
10
11
|
@import './themes/dark.css';
|
|
11
12
|
@import './themes/light.css';
|
|
13
|
+
@import './appearance/accent.css';
|
|
14
|
+
@import './appearance/density.css';
|
|
12
15
|
@import './themes/high-contrast.css';
|
|
16
|
+
@import './appearance/motion.css';
|
|
13
17
|
|
|
14
18
|
@import './reset.css';
|
|
15
19
|
@import './base.css';
|
|
@@ -18,4 +22,7 @@
|
|
|
18
22
|
@import './utilities/text.css';
|
|
19
23
|
@import './utilities/visibility.css';
|
|
20
24
|
|
|
21
|
-
@import './animations/motion.css';
|
|
25
|
+
@import './animations/motion.css';
|
|
26
|
+
@import './accessibility.css';
|
|
27
|
+
@import './responsive.css';
|
|
28
|
+
@import './localization.css';
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/* Direction follows the nearest native dir attribute. Applications own lang/dir. */
|
|
2
|
+
:lang(ar) {
|
|
3
|
+
--nt-letter-spacing-tight: 0;
|
|
4
|
+
--nt-letter-spacing-heading: 0;
|
|
5
|
+
--nt-letter-spacing-title: 0;
|
|
6
|
+
--nt-letter-spacing-label: 0;
|
|
7
|
+
--nt-letter-spacing-wide: 0;
|
|
8
|
+
--nt-line-height-label: 1.5;
|
|
9
|
+
--nt-line-height-caption: 1.5;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:lang(ar) :is(.nt-text-display-lg, .nt-text-display-md, .nt-text-display-sm,
|
|
13
|
+
.nt-text-heading-lg, .nt-text-heading-md, .nt-text-heading-sm,
|
|
14
|
+
.nt-text-title-lg, .nt-text-title-md, .nt-text-title-sm,
|
|
15
|
+
.nt-text-label-lg, .nt-text-label-md, .nt-text-label-sm,
|
|
16
|
+
[class*='__eyebrow'], [class*='__label']) {
|
|
17
|
+
letter-spacing: normal;
|
|
18
|
+
text-transform: none;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* Individual scale composes with existing transform animations and rotations. */
|
|
22
|
+
.nt-icon--directional {
|
|
23
|
+
scale: 1 1;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.nt-icon--directional:dir(rtl) {
|
|
27
|
+
scale: -1 1;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.nt-bidi-auto {
|
|
31
|
+
unicode-bidi: plaintext;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.nt-bidi-isolate {
|
|
35
|
+
unicode-bidi: isolate;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.nt-text-ltr,
|
|
39
|
+
.nt-technical-value,
|
|
40
|
+
.nt-numeric-value {
|
|
41
|
+
direction: ltr;
|
|
42
|
+
unicode-bidi: isolate;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.nt-text-rtl {
|
|
46
|
+
direction: rtl;
|
|
47
|
+
unicode-bidi: isolate;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.nt-technical-value {
|
|
51
|
+
overflow-wrap: anywhere;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.nt-numeric-value {
|
|
55
|
+
font-variant-numeric: tabular-nums;
|
|
56
|
+
}
|
package/src/styles/reset.css
CHANGED
|
@@ -1,51 +1,52 @@
|
|
|
1
|
-
*,
|
|
2
|
-
*::before,
|
|
3
|
-
*::after {
|
|
4
|
-
box-sizing: border-box;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
html {
|
|
8
|
-
min-width: 320px;
|
|
9
|
-
min-height: 100%;
|
|
10
|
-
text-size-adjust: 100%;
|
|
11
|
-
-webkit-text-size-adjust: 100%;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
body {
|
|
15
|
-
min-width: 320px;
|
|
16
|
-
min-height: 100vh;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
border-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
1
|
+
*,
|
|
2
|
+
*::before,
|
|
3
|
+
*::after {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
html {
|
|
8
|
+
min-width: 320px;
|
|
9
|
+
min-height: 100%;
|
|
10
|
+
text-size-adjust: 100%;
|
|
11
|
+
-webkit-text-size-adjust: 100%;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
body {
|
|
15
|
+
min-width: 320px;
|
|
16
|
+
min-height: 100vh;
|
|
17
|
+
min-height: 100dvh;
|
|
18
|
+
margin: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
img,
|
|
22
|
+
picture,
|
|
23
|
+
video,
|
|
24
|
+
canvas,
|
|
25
|
+
svg {
|
|
26
|
+
display: block;
|
|
27
|
+
max-width: 100%;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
button,
|
|
31
|
+
input,
|
|
32
|
+
textarea,
|
|
33
|
+
select {
|
|
34
|
+
font: inherit;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
button {
|
|
38
|
+
color: inherit;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
a {
|
|
42
|
+
color: inherit;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
table {
|
|
46
|
+
border-collapse: collapse;
|
|
47
|
+
border-spacing: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
[hidden] {
|
|
51
|
+
display: none !important;
|
|
51
52
|
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Responsive and adaptive foundations.
|
|
3
|
+
* See docs/responsive-and-adaptive-design.md for the full contract.
|
|
4
|
+
*
|
|
5
|
+
* Reusable components respond to the width of the region that contains them,
|
|
6
|
+
* not to the viewport. A region opts in by becoming a query container.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/* Query-container primitive. Apply to page content areas, dialog and drawer
|
|
10
|
+
* bodies, dashboard columns, and split panes so nested components can adapt.
|
|
11
|
+
* Establishes inline-size containment: the element must not size itself from
|
|
12
|
+
* its children's inline size. */
|
|
13
|
+
.nt-region {
|
|
14
|
+
container-type: inline-size;
|
|
15
|
+
min-width: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.nt-region--named {
|
|
19
|
+
container-name: nt-region;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* Full-height surfaces: dynamic viewport height with a 100vh fallback so
|
|
23
|
+
* mobile browser chrome never hides fixed actions. Plain 100vh alone is
|
|
24
|
+
* rejected by `npm run check:responsive`. */
|
|
25
|
+
.nt-fill-viewport {
|
|
26
|
+
min-height: 100vh;
|
|
27
|
+
min-height: 100dvh;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.nt-fill-viewport--fixed {
|
|
31
|
+
height: 100vh;
|
|
32
|
+
height: 100dvh;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* Safe-area utilities for edge-anchored surfaces (drawers, sheets, composers,
|
|
36
|
+
* full-screen dialogs). Safe-area insets are physically anchored device
|
|
37
|
+
* cutouts, so the inline utility intentionally uses physical padding. */
|
|
38
|
+
.nt-safe-area-block-end {
|
|
39
|
+
padding-bottom: env(safe-area-inset-bottom, 0rem);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.nt-safe-area-block-start {
|
|
43
|
+
padding-top: env(safe-area-inset-top, 0rem);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.nt-safe-area-inline {
|
|
47
|
+
padding-left: env(safe-area-inset-left, 0rem);
|
|
48
|
+
padding-right: env(safe-area-inset-right, 0rem);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* Inline scroll region for wide content (tables, code, technical values).
|
|
52
|
+
* Give the element tabindex="0" and an accessible name (aria-label or
|
|
53
|
+
* aria-labelledby) when it can actually scroll. */
|
|
54
|
+
.nt-scroll-inline {
|
|
55
|
+
min-width: 0;
|
|
56
|
+
max-width: 100%;
|
|
57
|
+
overflow-x: auto;
|
|
58
|
+
overscroll-behavior-x: contain;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.nt-scroll-inline:focus-visible {
|
|
62
|
+
outline: var(--nt-focus-ring-width) solid var(--nt-focus-ring-color);
|
|
63
|
+
outline-offset: var(--nt-focus-ring-offset);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* Hover-revealed secondary actions. On fine pointers the action fades until
|
|
67
|
+
* the scope is hovered or focused; on touch and keyboard it is always
|
|
68
|
+
* visible, so hover is never the only path to an action. */
|
|
69
|
+
.nt-hover-reveal {
|
|
70
|
+
opacity: 1;
|
|
71
|
+
transition: opacity var(--nt-duration-fast) var(--nt-ease-standard);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@media (hover: hover) and (pointer: fine) {
|
|
75
|
+
.nt-hover-reveal-scope:not(:hover, :focus-within) .nt-hover-reveal {
|
|
76
|
+
opacity: 0;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* Coarse pointers get full-size touch targets even for compact controls.
|
|
81
|
+
* Compact density must not create unsafe touch targets. */
|
|
82
|
+
@media (pointer: coarse) {
|
|
83
|
+
:where(.nt-button--sm, .nt-icon-button--sm, .nt-chip--interactive, .nt-table__sort, .nt-data-grid__sort) {
|
|
84
|
+
min-block-size: var(--nt-target-size-default);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
:where(.nt-icon-button--sm) {
|
|
88
|
+
min-inline-size: var(--nt-target-size-default);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/* Pointer-precision affordances that are meaningless on touch. */
|
|
92
|
+
.nt-data-grid__resize-handle {
|
|
93
|
+
display: none;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@media (prefers-reduced-motion: reduce) {
|
|
98
|
+
.nt-hover-reveal {
|
|
99
|
+
transition: none !important;
|
|
100
|
+
}
|
|
101
|
+
}
|