@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.
Files changed (330) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +123 -11
  3. package/dist/ai/ai-action-button/ai-action-button.css +271 -270
  4. package/dist/ai/ai-approval-card/ai-approval-card.css +323 -320
  5. package/dist/ai/ai-conversation-panel/ai-conversation-panel.css +447 -403
  6. package/dist/ai/ai-prompt-input/ai-prompt-input.css +380 -377
  7. package/dist/ai/ai-proposal-card/ai-proposal-card.css +358 -358
  8. package/dist/ai/ai-suggestion-card/ai-suggestion-card.css +295 -293
  9. package/dist/ai/ai-tool-call/ai-tool-call.css +256 -255
  10. package/dist/ai/index.css +1 -1
  11. package/dist/appearance/cache.d.ts +55 -0
  12. package/dist/appearance/cache.d.ts.map +1 -0
  13. package/dist/appearance/cache.js +182 -0
  14. package/dist/appearance/cache.js.map +1 -0
  15. package/dist/appearance/cookie.d.ts +33 -0
  16. package/dist/appearance/cookie.d.ts.map +1 -0
  17. package/dist/appearance/cookie.js +125 -0
  18. package/dist/appearance/cookie.js.map +1 -0
  19. package/dist/appearance/index.d.ts +9 -0
  20. package/dist/appearance/index.d.ts.map +1 -0
  21. package/dist/appearance/index.js +5 -0
  22. package/dist/appearance/index.js.map +1 -0
  23. package/dist/appearance/preference.d.ts +21 -0
  24. package/dist/appearance/preference.d.ts.map +1 -0
  25. package/dist/appearance/preference.js +80 -0
  26. package/dist/appearance/preference.js.map +1 -0
  27. package/dist/appearance/theme-controller.d.ts +62 -0
  28. package/dist/appearance/theme-controller.d.ts.map +1 -0
  29. package/dist/appearance/theme-controller.js +240 -0
  30. package/dist/appearance/theme-controller.js.map +1 -0
  31. package/dist/appearance/types.d.ts +48 -0
  32. package/dist/appearance/types.d.ts.map +1 -0
  33. package/dist/appearance/types.js +2 -0
  34. package/dist/appearance/types.js.map +1 -0
  35. package/dist/behaviors/announcer.d.ts +34 -0
  36. package/dist/behaviors/announcer.d.ts.map +1 -0
  37. package/dist/behaviors/announcer.js +150 -0
  38. package/dist/behaviors/announcer.js.map +1 -0
  39. package/dist/behaviors/calendar.d.ts +15 -0
  40. package/dist/behaviors/calendar.d.ts.map +1 -0
  41. package/dist/behaviors/calendar.js +77 -0
  42. package/dist/behaviors/calendar.js.map +1 -0
  43. package/dist/behaviors/data-grid.d.ts +18 -0
  44. package/dist/behaviors/data-grid.d.ts.map +1 -0
  45. package/dist/behaviors/data-grid.js +114 -0
  46. package/dist/behaviors/data-grid.js.map +1 -0
  47. package/dist/behaviors/dialog.d.ts +14 -0
  48. package/dist/behaviors/dialog.d.ts.map +1 -1
  49. package/dist/behaviors/dialog.js +24 -6
  50. package/dist/behaviors/dialog.js.map +1 -1
  51. package/dist/behaviors/direction.d.ts +10 -0
  52. package/dist/behaviors/direction.d.ts.map +1 -0
  53. package/dist/behaviors/direction.js +24 -0
  54. package/dist/behaviors/direction.js.map +1 -0
  55. package/dist/behaviors/drawer.d.ts +15 -3
  56. package/dist/behaviors/drawer.d.ts.map +1 -1
  57. package/dist/behaviors/drawer.js +25 -10
  58. package/dist/behaviors/drawer.js.map +1 -1
  59. package/dist/behaviors/dropdown.d.ts +11 -0
  60. package/dist/behaviors/dropdown.d.ts.map +1 -1
  61. package/dist/behaviors/dropdown.js +53 -11
  62. package/dist/behaviors/dropdown.js.map +1 -1
  63. package/dist/behaviors/focus-trap.d.ts.map +1 -1
  64. package/dist/behaviors/focus-trap.js +45 -5
  65. package/dist/behaviors/focus-trap.js.map +1 -1
  66. package/dist/behaviors/forms.d.ts +32 -0
  67. package/dist/behaviors/forms.d.ts.map +1 -0
  68. package/dist/behaviors/forms.js +147 -0
  69. package/dist/behaviors/forms.js.map +1 -0
  70. package/dist/behaviors/index.d.ts +8 -0
  71. package/dist/behaviors/index.d.ts.map +1 -1
  72. package/dist/behaviors/index.js +8 -0
  73. package/dist/behaviors/index.js.map +1 -1
  74. package/dist/behaviors/keyboard.d.ts.map +1 -1
  75. package/dist/behaviors/keyboard.js +4 -2
  76. package/dist/behaviors/keyboard.js.map +1 -1
  77. package/dist/behaviors/overlay.d.ts +6 -0
  78. package/dist/behaviors/overlay.d.ts.map +1 -1
  79. package/dist/behaviors/overlay.js +93 -3
  80. package/dist/behaviors/overlay.js.map +1 -1
  81. package/dist/behaviors/state.d.ts +49 -0
  82. package/dist/behaviors/state.d.ts.map +1 -0
  83. package/dist/behaviors/state.js +220 -0
  84. package/dist/behaviors/state.js.map +1 -0
  85. package/dist/behaviors/tabs.d.ts +18 -0
  86. package/dist/behaviors/tabs.d.ts.map +1 -0
  87. package/dist/behaviors/tabs.js +103 -0
  88. package/dist/behaviors/tabs.js.map +1 -0
  89. package/dist/behaviors/viewport.d.ts +40 -0
  90. package/dist/behaviors/viewport.d.ts.map +1 -0
  91. package/dist/behaviors/viewport.js +47 -0
  92. package/dist/behaviors/viewport.js.map +1 -0
  93. package/dist/components/alert/alert.css +220 -217
  94. package/dist/components/avatar/avatar.css +220 -219
  95. package/dist/components/badge/badge.css +174 -174
  96. package/dist/components/breadcrumb/breadcrumb.css +207 -205
  97. package/dist/components/button/button.css +195 -167
  98. package/dist/components/card/card.css +221 -220
  99. package/dist/components/checkbox/checkbox.css +189 -187
  100. package/dist/components/chip/chip.css +269 -267
  101. package/dist/components/data-grid/data-grid.css +520 -369
  102. package/dist/components/dialog/dialog.css +339 -275
  103. package/dist/components/drawer/drawer.css +484 -403
  104. package/dist/components/dropdown/dropdown.css +316 -298
  105. package/dist/components/icon-button/icon-button.css +162 -158
  106. package/dist/components/index.css +1 -2
  107. package/dist/components/input/input.css +163 -163
  108. package/dist/components/menu/menu.css +315 -314
  109. package/dist/components/pagination/pagination.css +250 -249
  110. package/dist/components/panel/panel.css +284 -283
  111. package/dist/components/progress/progress.css +256 -248
  112. package/dist/components/radio/radio.css +166 -164
  113. package/dist/components/segmented-control/segmented-control.css +205 -205
  114. package/dist/components/select/select.css +117 -103
  115. package/dist/components/skeleton/skeleton.css +262 -262
  116. package/dist/components/split-button/split-button.css +292 -285
  117. package/dist/components/switch/switch.css +195 -181
  118. package/dist/components/table/table.css +220 -0
  119. package/dist/components/tabs/tabs.css +293 -289
  120. package/dist/components/textarea/textarea.css +86 -86
  121. package/dist/components/toast/toast.css +345 -323
  122. package/dist/components/tooltip/tooltip.css +258 -255
  123. package/dist/domain/billing/index.css +498 -498
  124. package/dist/domain/calendar/agenda-list/agenda-list.css +224 -0
  125. package/dist/domain/calendar/day-slice/day-slice.css +384 -383
  126. package/dist/domain/calendar/day-timeline/day-timeline.css +332 -324
  127. package/dist/domain/calendar/event-card/event-card.css +338 -336
  128. package/dist/domain/calendar/index.css +2 -1
  129. package/dist/domain/calendar/month-grid/month-grid.css +426 -420
  130. package/dist/domain/calendar/week-grid/week-grid.css +480 -470
  131. package/dist/domain/companies/index.css +526 -525
  132. package/dist/index.css +5 -5
  133. package/dist/index.d.ts +3 -1
  134. package/dist/index.d.ts.map +1 -1
  135. package/dist/index.js +3 -1
  136. package/dist/index.js.map +1 -1
  137. package/dist/localization/index.d.ts +8 -0
  138. package/dist/localization/index.d.ts.map +1 -0
  139. package/dist/localization/index.js +22 -0
  140. package/dist/localization/index.js.map +1 -0
  141. package/dist/patterns/command-palette/command-palette.css +447 -439
  142. package/dist/patterns/company-switcher/company-switcher.css +390 -363
  143. package/dist/patterns/content-state/content-state.css +236 -0
  144. package/dist/patterns/empty-state/empty-state.css +260 -259
  145. package/dist/patterns/error-state/error-state.css +272 -271
  146. package/dist/patterns/form-layout/form-layout.css +106 -0
  147. package/dist/patterns/index.css +8 -3
  148. package/dist/patterns/loading-state/loading-state.css +287 -287
  149. package/dist/patterns/master-detail/master-detail.css +103 -0
  150. package/dist/patterns/notification-center/notification-center.css +443 -438
  151. package/dist/patterns/page/page.css +219 -0
  152. package/dist/patterns/profile-menu/profile-menu.css +298 -297
  153. package/dist/patterns/search-bar/search-bar.css +457 -444
  154. package/dist/patterns/settings-layout/settings-layout.css +150 -0
  155. package/dist/patterns/workflow/workflow.css +168 -0
  156. package/dist/shell/app-shell/app-shell.css +74 -67
  157. package/dist/shell/content-frame/content-frame.css +93 -93
  158. package/dist/shell/header/header.css +180 -178
  159. package/dist/shell/index.css +6 -6
  160. package/dist/shell/mobile-nav/mobile-nav.css +173 -171
  161. package/dist/shell/sidebar/sidebar.css +146 -146
  162. package/dist/styles/accessibility.css +116 -0
  163. package/dist/styles/animations/motion.css +162 -162
  164. package/dist/styles/appearance/accent.css +173 -0
  165. package/dist/styles/appearance/density.css +61 -0
  166. package/dist/styles/appearance/motion.css +40 -0
  167. package/dist/styles/base.css +83 -82
  168. package/dist/styles/index.css +8 -1
  169. package/dist/styles/localization.css +56 -0
  170. package/dist/styles/reset.css +51 -50
  171. package/dist/styles/responsive.css +101 -0
  172. package/dist/styles/themes/dark.css +202 -120
  173. package/dist/styles/themes/high-contrast.css +290 -119
  174. package/dist/styles/themes/light.css +201 -119
  175. package/dist/styles/tokens/breakpoints.css +37 -15
  176. package/dist/styles/tokens/color.css +96 -96
  177. package/dist/styles/tokens/compatibility.css +33 -0
  178. package/dist/styles/tokens/elevation.css +26 -32
  179. package/dist/styles/tokens/index.css +2 -1
  180. package/dist/styles/tokens/motion.css +35 -35
  181. package/dist/styles/tokens/radius.css +26 -21
  182. package/dist/styles/tokens/spacing.css +56 -50
  183. package/dist/styles/tokens/typography.css +85 -84
  184. package/dist/styles/tokens/z-index.css +14 -14
  185. package/dist/styles/utilities/layout.css +153 -135
  186. package/dist/styles/utilities/text.css +152 -152
  187. package/dist/styles/utilities/visibility.css +47 -47
  188. package/dist/types/index.d.ts +1 -0
  189. package/dist/types/index.d.ts.map +1 -1
  190. package/docs/accessibility.md +218 -0
  191. package/docs/appearance-and-theming.md +118 -0
  192. package/docs/component-architecture.md +137 -0
  193. package/docs/component-guidelines.md +64 -0
  194. package/docs/content-and-terminology.md +207 -0
  195. package/docs/design-system-baseline-audit.md +226 -0
  196. package/docs/design-token-contract.md +279 -0
  197. package/docs/localization-and-rtl.md +147 -0
  198. package/docs/migration.md +142 -0
  199. package/docs/page-patterns-and-workflows.md +260 -0
  200. package/docs/responsive-and-adaptive-design.md +351 -0
  201. package/docs/semantic-role-migration-audit.md +77 -0
  202. package/docs/states-feedback-and-recovery.md +206 -0
  203. package/docs/theming.md +5 -0
  204. package/package.json +53 -17
  205. package/src/ai/ai-action-button/ai-action-button.css +271 -270
  206. package/src/ai/ai-approval-card/ai-approval-card.css +323 -320
  207. package/src/ai/ai-conversation-panel/ai-conversation-panel.css +447 -403
  208. package/src/ai/ai-prompt-input/ai-prompt-input.css +380 -377
  209. package/src/ai/ai-proposal-card/ai-proposal-card.css +358 -358
  210. package/src/ai/ai-suggestion-card/ai-suggestion-card.css +295 -293
  211. package/src/ai/ai-tool-call/ai-tool-call.css +256 -255
  212. package/src/ai/index.css +1 -1
  213. package/src/appearance/cache.ts +236 -0
  214. package/src/appearance/cookie.ts +184 -0
  215. package/src/appearance/index.ts +80 -0
  216. package/src/appearance/preference.ts +121 -0
  217. package/src/appearance/theme-controller.ts +371 -0
  218. package/src/appearance/types.ts +61 -0
  219. package/src/behaviors/announcer.ts +222 -0
  220. package/src/behaviors/calendar.ts +92 -0
  221. package/src/behaviors/data-grid.ts +133 -0
  222. package/src/behaviors/dialog.ts +203 -168
  223. package/src/behaviors/direction.ts +34 -0
  224. package/src/behaviors/drawer.ts +210 -177
  225. package/src/behaviors/dropdown.ts +344 -281
  226. package/src/behaviors/focus-trap.ts +304 -261
  227. package/src/behaviors/forms.ts +205 -0
  228. package/src/behaviors/ids.ts +47 -47
  229. package/src/behaviors/index.ts +15 -7
  230. package/src/behaviors/keyboard.ts +305 -303
  231. package/src/behaviors/overlay.ts +344 -231
  232. package/src/behaviors/state.ts +282 -0
  233. package/src/behaviors/tabs.ts +137 -0
  234. package/src/behaviors/viewport.ts +61 -0
  235. package/src/components/alert/alert.css +220 -217
  236. package/src/components/avatar/avatar.css +220 -219
  237. package/src/components/badge/badge.css +174 -174
  238. package/src/components/breadcrumb/breadcrumb.css +207 -205
  239. package/src/components/button/button.css +195 -167
  240. package/src/components/card/card.css +221 -220
  241. package/src/components/checkbox/checkbox.css +189 -187
  242. package/src/components/chip/chip.css +269 -267
  243. package/src/components/data-grid/data-grid.css +520 -369
  244. package/src/components/dialog/dialog.css +339 -275
  245. package/src/components/drawer/drawer.css +484 -403
  246. package/src/components/dropdown/dropdown.css +316 -298
  247. package/src/components/icon-button/icon-button.css +162 -158
  248. package/src/components/index.css +1 -2
  249. package/src/components/input/input.css +163 -163
  250. package/src/components/menu/menu.css +315 -314
  251. package/src/components/pagination/pagination.css +250 -249
  252. package/src/components/panel/panel.css +284 -283
  253. package/src/components/progress/progress.css +256 -248
  254. package/src/components/radio/radio.css +166 -164
  255. package/src/components/segmented-control/segmented-control.css +205 -205
  256. package/src/components/select/select.css +117 -103
  257. package/src/components/skeleton/skeleton.css +262 -262
  258. package/src/components/split-button/split-button.css +292 -285
  259. package/src/components/switch/switch.css +195 -181
  260. package/src/components/table/table.css +220 -0
  261. package/src/components/tabs/tabs.css +293 -289
  262. package/src/components/textarea/textarea.css +86 -86
  263. package/src/components/toast/toast.css +345 -323
  264. package/src/components/tooltip/tooltip.css +258 -255
  265. package/src/domain/billing/index.css +498 -498
  266. package/src/domain/calendar/agenda-list/agenda-list.css +224 -0
  267. package/src/domain/calendar/day-slice/day-slice.css +384 -383
  268. package/src/domain/calendar/day-timeline/day-timeline.css +332 -324
  269. package/src/domain/calendar/event-card/event-card.css +338 -336
  270. package/src/domain/calendar/index.css +2 -1
  271. package/src/domain/calendar/month-grid/month-grid.css +426 -420
  272. package/src/domain/calendar/week-grid/week-grid.css +480 -470
  273. package/src/domain/companies/index.css +526 -525
  274. package/src/index.css +5 -5
  275. package/src/index.ts +7 -5
  276. package/src/localization/index.ts +56 -0
  277. package/src/patterns/command-palette/command-palette.css +447 -439
  278. package/src/patterns/company-switcher/company-switcher.css +390 -363
  279. package/src/patterns/content-state/content-state.css +236 -0
  280. package/src/patterns/empty-state/empty-state.css +260 -259
  281. package/src/patterns/error-state/error-state.css +272 -271
  282. package/src/patterns/form-layout/form-layout.css +106 -0
  283. package/src/patterns/index.css +8 -3
  284. package/src/patterns/loading-state/loading-state.css +287 -287
  285. package/src/patterns/master-detail/master-detail.css +103 -0
  286. package/src/patterns/notification-center/notification-center.css +443 -438
  287. package/src/patterns/page/page.css +219 -0
  288. package/src/patterns/profile-menu/profile-menu.css +298 -297
  289. package/src/patterns/search-bar/search-bar.css +457 -444
  290. package/src/patterns/settings-layout/settings-layout.css +150 -0
  291. package/src/patterns/workflow/workflow.css +168 -0
  292. package/src/shell/app-shell/app-shell.css +74 -67
  293. package/src/shell/content-frame/content-frame.css +93 -93
  294. package/src/shell/header/header.css +180 -178
  295. package/src/shell/index.css +6 -6
  296. package/src/shell/mobile-nav/mobile-nav.css +173 -171
  297. package/src/shell/sidebar/sidebar.css +146 -146
  298. package/src/styles/accessibility.css +116 -0
  299. package/src/styles/animations/motion.css +162 -162
  300. package/src/styles/appearance/accent.css +173 -0
  301. package/src/styles/appearance/density.css +61 -0
  302. package/src/styles/appearance/motion.css +40 -0
  303. package/src/styles/base.css +83 -82
  304. package/src/styles/index.css +8 -1
  305. package/src/styles/localization.css +56 -0
  306. package/src/styles/reset.css +51 -50
  307. package/src/styles/responsive.css +101 -0
  308. package/src/styles/themes/dark.css +202 -120
  309. package/src/styles/themes/high-contrast.css +290 -119
  310. package/src/styles/themes/light.css +201 -119
  311. package/src/styles/tokens/breakpoints.css +37 -15
  312. package/src/styles/tokens/color.css +96 -96
  313. package/src/styles/tokens/compatibility.css +33 -0
  314. package/src/styles/tokens/elevation.css +26 -32
  315. package/src/styles/tokens/index.css +2 -1
  316. package/src/styles/tokens/motion.css +35 -35
  317. package/src/styles/tokens/radius.css +26 -21
  318. package/src/styles/tokens/spacing.css +56 -50
  319. package/src/styles/tokens/typography.css +85 -84
  320. package/src/styles/tokens/z-index.css +14 -14
  321. package/src/styles/utilities/layout.css +153 -135
  322. package/src/styles/utilities/text.css +152 -152
  323. package/src/styles/utilities/visibility.css +47 -47
  324. package/src/types/index.ts +2 -1
  325. package/dist/components/modal/modal.css +0 -318
  326. package/dist/patterns/workspace-switcher/workspace-switcher.css +0 -380
  327. package/dist/shell/right-drawer/right-drawer.css +0 -108
  328. package/src/components/modal/modal.css +0 -318
  329. package/src/patterns/workspace-switcher/workspace-switcher.css +0 -380
  330. package/src/shell/right-drawer/right-drawer.css +0 -108
@@ -1,275 +1,339 @@
1
- .nt-dialog-backdrop {
2
- position: fixed;
3
- inset: 0;
4
- z-index: var(--nt-z-modal);
5
- display: grid;
6
- place-items: center;
7
- padding: var(--nt-space-4);
8
- background: var(--nt-bg-overlay);
9
- backdrop-filter: blur(12px);
10
- }
11
-
12
- .nt-dialog {
13
- position: relative;
14
- display: flex;
15
- flex-direction: column;
16
- width: min(100%, 34rem);
17
- max-height: min(42rem, calc(100dvh - var(--nt-space-8)));
18
- overflow: hidden;
19
- border: 1px solid var(--nt-border-subtle);
20
- border-radius: var(--nt-radius-2xl);
21
- background: var(--nt-bg-surface);
22
- color: var(--nt-text-primary);
23
- box-shadow: var(--nt-shadow-2xl);
24
- }
25
-
26
- .nt-dialog:focus {
27
- outline: none;
28
- }
29
-
30
- .nt-dialog:focus-visible {
31
- outline: none;
32
- box-shadow: 0 0 0 3px var(--nt-focus-ring-muted), var(--nt-shadow-2xl);
33
- }
34
-
35
- .nt-dialog__header {
36
- display: flex;
37
- align-items: flex-start;
38
- justify-content: space-between;
39
- gap: var(--nt-space-4);
40
- padding: var(--nt-space-5);
41
- border-bottom: 1px solid var(--nt-border-subtle);
42
- }
43
-
44
- .nt-dialog__header-main {
45
- display: flex;
46
- flex-direction: column;
47
- gap: var(--nt-space-1);
48
- min-width: 0;
49
- }
50
-
51
- .nt-dialog__eyebrow {
52
- color: var(--nt-text-muted);
53
- font: var(--nt-text-label-sm);
54
- letter-spacing: var(--nt-letter-spacing-label);
55
- text-transform: uppercase;
56
- }
57
-
58
- .nt-dialog__title {
59
- margin: 0;
60
- color: var(--nt-text-primary);
61
- font: var(--nt-text-title-md);
62
- letter-spacing: var(--nt-letter-spacing-title);
63
- }
64
-
65
- .nt-dialog__description {
66
- margin: 0;
67
- color: var(--nt-text-muted);
68
- font: var(--nt-text-body-sm);
69
- }
70
-
71
- .nt-dialog__close {
72
- display: inline-flex;
73
- align-items: center;
74
- justify-content: center;
75
- flex: 0 0 auto;
76
- width: var(--nt-control-height-sm);
77
- height: var(--nt-control-height-sm);
78
- border: 1px solid transparent;
79
- border-radius: var(--nt-radius-md);
80
- background: transparent;
81
- color: var(--nt-text-muted);
82
- cursor: pointer;
83
- transition: var(--nt-transition-colors);
84
- }
85
-
86
- .nt-dialog__close:hover {
87
- border-color: var(--nt-border-subtle);
88
- background: var(--nt-bg-surface-hover);
89
- color: var(--nt-text-primary);
90
- }
91
-
92
- .nt-dialog__close:focus-visible {
93
- outline: none;
94
- border-color: var(--nt-control-border-focus);
95
- box-shadow: 0 0 0 3px var(--nt-focus-ring-muted);
96
- }
97
-
98
- .nt-dialog__body {
99
- display: flex;
100
- flex: 1 1 auto;
101
- flex-direction: column;
102
- gap: var(--nt-space-4);
103
- min-width: 0;
104
- overflow: auto;
105
- padding: var(--nt-space-5);
106
- }
107
-
108
- .nt-dialog__footer {
109
- display: flex;
110
- align-items: center;
111
- justify-content: flex-end;
112
- gap: var(--nt-space-2);
113
- padding: var(--nt-space-5);
114
- border-top: 1px solid var(--nt-border-subtle);
115
- background: var(--nt-bg-surface);
116
- }
117
-
118
- .nt-dialog__footer--split {
119
- justify-content: space-between;
120
- }
121
-
122
- .nt-dialog__footer-main,
123
- .nt-dialog__footer-actions {
124
- display: inline-flex;
125
- align-items: center;
126
- gap: var(--nt-space-2);
127
- min-width: 0;
128
- }
129
-
130
- .nt-dialog--sm {
131
- width: min(100%, 26rem);
132
- }
133
-
134
- .nt-dialog--md {
135
- width: min(100%, 34rem);
136
- }
137
-
138
- .nt-dialog--lg {
139
- width: min(100%, 48rem);
140
- }
141
-
142
- .nt-dialog--xl {
143
- width: min(100%, 64rem);
144
- }
145
-
146
- .nt-dialog--fullscreen {
147
- width: calc(100dvw - var(--nt-space-6));
148
- height: calc(100dvh - var(--nt-space-6));
149
- max-height: none;
150
- }
151
-
152
- .nt-dialog--danger {
153
- border-color: var(--nt-danger-border);
154
- }
155
-
156
- .nt-dialog--danger .nt-dialog__eyebrow {
157
- color: var(--nt-danger-text);
158
- }
159
-
160
- .nt-dialog--success {
161
- border-color: var(--nt-success-border);
162
- }
163
-
164
- .nt-dialog--success .nt-dialog__eyebrow {
165
- color: var(--nt-success-text);
166
- }
167
-
168
- .nt-dialog--warning {
169
- border-color: var(--nt-warning-border);
170
- }
171
-
172
- .nt-dialog--warning .nt-dialog__eyebrow {
173
- color: var(--nt-warning-text);
174
- }
175
-
176
- .nt-dialog-backdrop[data-state='open'] {
177
- animation: nt-dialog-backdrop-in var(--nt-duration-normal) var(--nt-ease-standard);
178
- }
179
-
180
- .nt-dialog-backdrop[data-state='closed'] {
181
- animation: nt-dialog-backdrop-out var(--nt-duration-fast) var(--nt-ease-standard);
182
- }
183
-
184
- .nt-dialog[data-state='open'] {
185
- animation: nt-dialog-in var(--nt-duration-normal) var(--nt-ease-standard);
186
- }
187
-
188
- .nt-dialog[data-state='closed'] {
189
- animation: nt-dialog-out var(--nt-duration-fast) var(--nt-ease-standard);
190
- }
191
-
192
- @keyframes nt-dialog-backdrop-in {
193
- from {
194
- opacity: 0;
195
- }
196
-
197
- to {
198
- opacity: 1;
199
- }
200
- }
201
-
202
- @keyframes nt-dialog-backdrop-out {
203
- from {
204
- opacity: 1;
205
- }
206
-
207
- to {
208
- opacity: 0;
209
- }
210
- }
211
-
212
- @keyframes nt-dialog-in {
213
- from {
214
- opacity: 0;
215
- transform: translateY(0.75rem) scale(0.98);
216
- }
217
-
218
- to {
219
- opacity: 1;
220
- transform: translateY(0) scale(1);
221
- }
222
- }
223
-
224
- @keyframes nt-dialog-out {
225
- from {
226
- opacity: 1;
227
- transform: translateY(0) scale(1);
228
- }
229
-
230
- to {
231
- opacity: 0;
232
- transform: translateY(0.5rem) scale(0.98);
233
- }
234
- }
235
-
236
- @media (max-width: 640px) {
237
- .nt-dialog-backdrop {
238
- align-items: end;
239
- padding: var(--nt-space-2);
240
- }
241
-
242
- .nt-dialog {
243
- width: 100%;
244
- max-height: calc(100dvh - var(--nt-space-4));
245
- border-radius: var(--nt-radius-2xl) var(--nt-radius-2xl) var(--nt-radius-lg) var(--nt-radius-lg);
246
- }
247
-
248
- .nt-dialog__header,
249
- .nt-dialog__body,
250
- .nt-dialog__footer {
251
- padding: var(--nt-space-4);
252
- }
253
-
254
- .nt-dialog__footer {
255
- flex-direction: column-reverse;
256
- align-items: stretch;
257
- }
258
-
259
- .nt-dialog__footer-main,
260
- .nt-dialog__footer-actions {
261
- width: 100%;
262
- justify-content: stretch;
263
- }
264
-
265
- .nt-dialog__footer-actions > * {
266
- flex: 1 1 auto;
267
- }
268
- }
269
-
270
- @media (prefers-reduced-motion: reduce) {
271
- .nt-dialog-backdrop,
272
- .nt-dialog {
273
- animation: none !important;
274
- }
275
- }
1
+ /* Canonical dialog CSS. The nt-modal selectors are deprecated compatibility aliases. */
2
+ :is(.nt-dialog-backdrop, .nt-modal-backdrop) {
3
+ position: fixed;
4
+ inset: 0;
5
+ z-index: var(--nt-z-modal);
6
+ display: grid;
7
+ place-items: center;
8
+ padding: var(--nt-space-4);
9
+ background: var(--nt-bg-backdrop);
10
+ backdrop-filter: blur(12px);
11
+ }
12
+
13
+ :is(.nt-dialog, .nt-modal) {
14
+ position: relative;
15
+ display: flex;
16
+ flex-direction: column;
17
+ width: min(100%, 40rem);
18
+ max-height: min(44rem, calc(100dvh - var(--nt-space-8)));
19
+ overflow: hidden;
20
+ border: 1px solid var(--nt-border-subtle);
21
+ border-radius: var(--nt-radius-dialog);
22
+ background: var(--nt-bg-surface-overlay);
23
+ color: var(--nt-text-primary);
24
+ box-shadow: var(--nt-elevation-dialog);
25
+ }
26
+
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);
30
+ }
31
+
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);
36
+ }
37
+
38
+ :is(.nt-dialog__header, .nt-modal__header) {
39
+ display: flex;
40
+ align-items: flex-start;
41
+ justify-content: space-between;
42
+ gap: var(--nt-space-4);
43
+ padding: var(--nt-space-5);
44
+ border-bottom: 1px solid var(--nt-border-subtle);
45
+ background: var(--nt-bg-surface);
46
+ }
47
+
48
+ :is(.nt-dialog__header-main, .nt-modal__header-main) {
49
+ display: flex;
50
+ flex-direction: column;
51
+ gap: var(--nt-space-1);
52
+ min-width: 0;
53
+ }
54
+
55
+ :is(.nt-dialog__eyebrow, .nt-modal__eyebrow) {
56
+ color: var(--nt-text-muted);
57
+ font: var(--nt-text-label-sm);
58
+ letter-spacing: var(--nt-letter-spacing-label);
59
+ text-transform: uppercase;
60
+ }
61
+
62
+ :is(.nt-dialog__title, .nt-modal__title) {
63
+ margin: 0;
64
+ color: var(--nt-text-primary);
65
+ font: var(--nt-text-title-md);
66
+ letter-spacing: var(--nt-letter-spacing-title);
67
+ }
68
+
69
+ :is(.nt-dialog__description, .nt-modal__description) {
70
+ margin: 0;
71
+ color: var(--nt-text-muted);
72
+ font: var(--nt-text-body-sm);
73
+ }
74
+
75
+ :is(.nt-dialog__close, .nt-modal__close) {
76
+ display: inline-flex;
77
+ align-items: center;
78
+ justify-content: center;
79
+ flex: 0 0 auto;
80
+ width: var(--nt-control-height-sm);
81
+ height: var(--nt-control-height-sm);
82
+ border: 1px solid transparent;
83
+ border-radius: var(--nt-radius-control);
84
+ background: transparent;
85
+ color: var(--nt-text-muted);
86
+ cursor: pointer;
87
+ transition: var(--nt-transition-colors);
88
+ }
89
+
90
+ :is(.nt-dialog__close, .nt-modal__close):hover {
91
+ border-color: var(--nt-border-subtle);
92
+ background: var(--nt-bg-surface-hover);
93
+ color: var(--nt-text-primary);
94
+ }
95
+
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);
99
+ border-color: var(--nt-control-border-focus);
100
+ box-shadow: 0 0 0 3px var(--nt-focus-ring-muted);
101
+ }
102
+
103
+ :is(.nt-dialog__body, .nt-modal__body) {
104
+ display: flex;
105
+ flex: 1 1 auto;
106
+ flex-direction: column;
107
+ gap: var(--nt-space-4);
108
+ min-width: 0;
109
+ overflow: auto;
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;
115
+ }
116
+
117
+ :is(.nt-dialog__footer, .nt-modal__footer) {
118
+ display: flex;
119
+ align-items: center;
120
+ justify-content: flex-end;
121
+ gap: var(--nt-space-2);
122
+ padding: var(--nt-space-5);
123
+ border-top: 1px solid var(--nt-border-subtle);
124
+ background: var(--nt-bg-surface);
125
+ }
126
+
127
+ :is(.nt-dialog__footer--split, .nt-modal__footer--split) {
128
+ justify-content: space-between;
129
+ }
130
+
131
+ :is(.nt-dialog__footer-main, .nt-modal__footer-main),
132
+ :is(.nt-dialog__footer-actions, .nt-modal__footer-actions) {
133
+ display: inline-flex;
134
+ align-items: center;
135
+ gap: var(--nt-space-2);
136
+ min-width: 0;
137
+ }
138
+
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;
144
+ }
145
+
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);
151
+ }
152
+
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);
157
+ }
158
+
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);
169
+ }
170
+
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) {
184
+ width: calc(100dvw - var(--nt-space-6));
185
+ height: calc(100dvh - var(--nt-space-6));
186
+ max-height: none;
187
+ }
188
+
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) {
202
+ border-color: var(--nt-danger-border);
203
+ }
204
+
205
+ :is(.nt-dialog--danger, .nt-modal--danger) :is(.nt-dialog__eyebrow, .nt-modal__eyebrow) {
206
+ color: var(--nt-danger-text);
207
+ }
208
+
209
+ :is(.nt-dialog--success, .nt-modal--success) {
210
+ border-color: var(--nt-success-border);
211
+ }
212
+
213
+ :is(.nt-dialog--success, .nt-modal--success) :is(.nt-dialog__eyebrow, .nt-modal__eyebrow) {
214
+ color: var(--nt-success-text);
215
+ }
216
+
217
+ :is(.nt-dialog--warning, .nt-modal--warning) {
218
+ border-color: var(--nt-warning-border);
219
+ }
220
+
221
+ :is(.nt-dialog--warning, .nt-modal--warning) :is(.nt-dialog__eyebrow, .nt-modal__eyebrow) {
222
+ color: var(--nt-warning-text);
223
+ }
224
+
225
+ :is(.nt-dialog-backdrop, .nt-modal-backdrop)[data-state='open'] {
226
+ animation: nt-dialog-backdrop-in var(--nt-duration-normal) var(--nt-ease-standard);
227
+ }
228
+
229
+ :is(.nt-dialog-backdrop, .nt-modal-backdrop)[data-state='closed'] {
230
+ animation: nt-dialog-backdrop-out var(--nt-duration-fast) var(--nt-ease-standard);
231
+ }
232
+
233
+ :is(.nt-dialog, .nt-modal)[data-state='open'] {
234
+ animation: nt-dialog-in var(--nt-duration-normal) var(--nt-ease-standard);
235
+ }
236
+
237
+ :is(.nt-dialog, .nt-modal)[data-state='closed'] {
238
+ animation: nt-dialog-out var(--nt-duration-fast) var(--nt-ease-standard);
239
+ }
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
+
253
+ @keyframes nt-dialog-backdrop-in {
254
+ from {
255
+ opacity: 0;
256
+ }
257
+
258
+ to {
259
+ opacity: 1;
260
+ }
261
+ }
262
+
263
+ @keyframes nt-dialog-backdrop-out {
264
+ from {
265
+ opacity: 1;
266
+ }
267
+
268
+ to {
269
+ opacity: 0;
270
+ }
271
+ }
272
+
273
+ @keyframes nt-dialog-in {
274
+ from {
275
+ opacity: 0;
276
+ transform: translateY(var(--nt-space-3)) scale(0.98);
277
+ }
278
+
279
+ to {
280
+ opacity: 1;
281
+ transform: translateY(0) scale(1);
282
+ }
283
+ }
284
+
285
+ @keyframes nt-dialog-out {
286
+ from {
287
+ opacity: 1;
288
+ transform: translateY(0) scale(1);
289
+ }
290
+
291
+ to {
292
+ opacity: 0;
293
+ transform: translateY(var(--nt-space-2)) scale(0.98);
294
+ }
295
+ }
296
+
297
+ @media (max-width: 40rem) {
298
+ :is(.nt-dialog-backdrop, .nt-modal-backdrop) {
299
+ align-items: end;
300
+ padding: var(--nt-space-2);
301
+ }
302
+
303
+ :is(.nt-dialog, .nt-modal) {
304
+ width: 100%;
305
+ max-height: calc(100dvh - var(--nt-space-4));
306
+ border-radius: var(--nt-radius-dialog) var(--nt-radius-dialog) var(--nt-radius-item) var(--nt-radius-item);
307
+ }
308
+
309
+ :is(.nt-dialog__header, .nt-modal__header),
310
+ :is(.nt-dialog__body, .nt-modal__body),
311
+ :is(.nt-dialog__footer, .nt-modal__footer) {
312
+ padding: var(--nt-space-4);
313
+ }
314
+
315
+ :is(.nt-dialog__footer, .nt-modal__footer) {
316
+ flex-direction: column-reverse;
317
+ align-items: stretch;
318
+ padding-bottom: max(var(--nt-space-4), env(safe-area-inset-bottom, 0rem));
319
+ }
320
+
321
+ :is(.nt-dialog__footer-main, .nt-modal__footer-main),
322
+ :is(.nt-dialog__footer-actions, .nt-modal__footer-actions) {
323
+ width: 100%;
324
+ justify-content: stretch;
325
+ }
326
+
327
+ :is(.nt-dialog__footer-actions, .nt-modal__footer-actions) > * {
328
+ flex: 1 1 auto;
329
+ }
330
+ }
331
+
332
+ @media (prefers-reduced-motion: reduce) {
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;
337
+ animation: none !important;
338
+ }
339
+ }