@raintonic/formaui 0.4.0 → 0.9.2

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 (238) hide show
  1. package/CHANGELOG.md +80 -35
  2. package/README.md +22 -26
  3. package/fesm2022/raintonic-formaui-cdk-drag-drop.mjs +39 -41
  4. package/fesm2022/raintonic-formaui-cdk-drag-drop.mjs.map +1 -1
  5. package/fesm2022/raintonic-formaui-cdk-form-field.mjs +207 -3
  6. package/fesm2022/raintonic-formaui-cdk-form-field.mjs.map +1 -1
  7. package/fesm2022/raintonic-formaui-cdk-overlay.mjs +19 -1
  8. package/fesm2022/raintonic-formaui-cdk-overlay.mjs.map +1 -1
  9. package/fesm2022/raintonic-formaui-cdk-virtual-scroll.mjs +5 -12
  10. package/fesm2022/raintonic-formaui-cdk-virtual-scroll.mjs.map +1 -1
  11. package/fesm2022/raintonic-formaui-components-accordion.mjs +8 -5
  12. package/fesm2022/raintonic-formaui-components-accordion.mjs.map +1 -1
  13. package/fesm2022/raintonic-formaui-components-alert.mjs +16 -2
  14. package/fesm2022/raintonic-formaui-components-alert.mjs.map +1 -1
  15. package/fesm2022/raintonic-formaui-components-autocomplete.mjs +255 -462
  16. package/fesm2022/raintonic-formaui-components-autocomplete.mjs.map +1 -1
  17. package/fesm2022/raintonic-formaui-components-avatar.mjs +34 -59
  18. package/fesm2022/raintonic-formaui-components-avatar.mjs.map +1 -1
  19. package/fesm2022/raintonic-formaui-components-badge.mjs +2 -2
  20. package/fesm2022/raintonic-formaui-components-badge.mjs.map +1 -1
  21. package/fesm2022/raintonic-formaui-components-breadcrumb.mjs +4 -4
  22. package/fesm2022/raintonic-formaui-components-breadcrumb.mjs.map +1 -1
  23. package/fesm2022/raintonic-formaui-components-button-group.mjs +2 -2
  24. package/fesm2022/raintonic-formaui-components-button-group.mjs.map +1 -1
  25. package/fesm2022/raintonic-formaui-components-button.mjs +15 -20
  26. package/fesm2022/raintonic-formaui-components-button.mjs.map +1 -1
  27. package/fesm2022/raintonic-formaui-components-card.mjs +2 -2
  28. package/fesm2022/raintonic-formaui-components-card.mjs.map +1 -1
  29. package/fesm2022/raintonic-formaui-components-checkbox.mjs +2 -2
  30. package/fesm2022/raintonic-formaui-components-checkbox.mjs.map +1 -1
  31. package/fesm2022/raintonic-formaui-components-chip.mjs +97 -0
  32. package/fesm2022/raintonic-formaui-components-chip.mjs.map +1 -0
  33. package/fesm2022/raintonic-formaui-components-data-table.mjs +69 -29
  34. package/fesm2022/raintonic-formaui-components-data-table.mjs.map +1 -1
  35. package/fesm2022/raintonic-formaui-components-date-picker.mjs +223 -144
  36. package/fesm2022/raintonic-formaui-components-date-picker.mjs.map +1 -1
  37. package/fesm2022/raintonic-formaui-components-divider.mjs +2 -2
  38. package/fesm2022/raintonic-formaui-components-divider.mjs.map +1 -1
  39. package/fesm2022/raintonic-formaui-components-drawer.mjs +2 -2
  40. package/fesm2022/raintonic-formaui-components-drawer.mjs.map +1 -1
  41. package/fesm2022/raintonic-formaui-components-dropdown-menu.mjs +888 -0
  42. package/fesm2022/raintonic-formaui-components-dropdown-menu.mjs.map +1 -0
  43. package/fesm2022/raintonic-formaui-components-dual-tier-navigation.mjs +774 -0
  44. package/fesm2022/raintonic-formaui-components-dual-tier-navigation.mjs.map +1 -0
  45. package/fesm2022/raintonic-formaui-components-empty-state.mjs +2 -2
  46. package/fesm2022/raintonic-formaui-components-empty-state.mjs.map +1 -1
  47. package/fesm2022/raintonic-formaui-components-file-upload.mjs +2 -2
  48. package/fesm2022/raintonic-formaui-components-file-upload.mjs.map +1 -1
  49. package/fesm2022/raintonic-formaui-components-form-field.mjs +81 -50
  50. package/fesm2022/raintonic-formaui-components-form-field.mjs.map +1 -1
  51. package/fesm2022/raintonic-formaui-components-icon.mjs +2 -2
  52. package/fesm2022/raintonic-formaui-components-icon.mjs.map +1 -1
  53. package/fesm2022/raintonic-formaui-components-input.mjs +47 -12
  54. package/fesm2022/raintonic-formaui-components-input.mjs.map +1 -1
  55. package/fesm2022/raintonic-formaui-components-list.mjs +4 -4
  56. package/fesm2022/raintonic-formaui-components-list.mjs.map +1 -1
  57. package/fesm2022/raintonic-formaui-components-number-input.mjs +20 -12
  58. package/fesm2022/raintonic-formaui-components-number-input.mjs.map +1 -1
  59. package/fesm2022/raintonic-formaui-components-paginator.mjs +2 -2
  60. package/fesm2022/raintonic-formaui-components-paginator.mjs.map +1 -1
  61. package/fesm2022/raintonic-formaui-components-password-input.mjs +35 -110
  62. package/fesm2022/raintonic-formaui-components-password-input.mjs.map +1 -1
  63. package/fesm2022/raintonic-formaui-components-popover.mjs +3 -2
  64. package/fesm2022/raintonic-formaui-components-popover.mjs.map +1 -1
  65. package/fesm2022/raintonic-formaui-components-progressbar.mjs +3 -2
  66. package/fesm2022/raintonic-formaui-components-progressbar.mjs.map +1 -1
  67. package/fesm2022/raintonic-formaui-components-radio.mjs +5 -6
  68. package/fesm2022/raintonic-formaui-components-radio.mjs.map +1 -1
  69. package/fesm2022/raintonic-formaui-components-select.mjs +257 -412
  70. package/fesm2022/raintonic-formaui-components-select.mjs.map +1 -1
  71. package/fesm2022/raintonic-formaui-components-side-panel.mjs +2 -2
  72. package/fesm2022/raintonic-formaui-components-side-panel.mjs.map +1 -1
  73. package/fesm2022/raintonic-formaui-components-sidebar-nav-menu.mjs +525 -0
  74. package/fesm2022/raintonic-formaui-components-sidebar-nav-menu.mjs.map +1 -0
  75. package/fesm2022/raintonic-formaui-components-skeleton.mjs +2 -2
  76. package/fesm2022/raintonic-formaui-components-skeleton.mjs.map +1 -1
  77. package/fesm2022/raintonic-formaui-components-slider.mjs +2 -2
  78. package/fesm2022/raintonic-formaui-components-slider.mjs.map +1 -1
  79. package/fesm2022/raintonic-formaui-components-spinner.mjs +2 -2
  80. package/fesm2022/raintonic-formaui-components-spinner.mjs.map +1 -1
  81. package/fesm2022/raintonic-formaui-components-stepper.mjs +50 -45
  82. package/fesm2022/raintonic-formaui-components-stepper.mjs.map +1 -1
  83. package/fesm2022/raintonic-formaui-components-strength-meter.mjs +149 -0
  84. package/fesm2022/raintonic-formaui-components-strength-meter.mjs.map +1 -0
  85. package/fesm2022/raintonic-formaui-components-tab.mjs +2 -2
  86. package/fesm2022/raintonic-formaui-components-tab.mjs.map +1 -1
  87. package/fesm2022/raintonic-formaui-components-time-picker.mjs +194 -154
  88. package/fesm2022/raintonic-formaui-components-time-picker.mjs.map +1 -1
  89. package/fesm2022/raintonic-formaui-components-toggle-group.mjs +302 -0
  90. package/fesm2022/raintonic-formaui-components-toggle-group.mjs.map +1 -0
  91. package/fesm2022/raintonic-formaui-components-toggle.mjs +2 -2
  92. package/fesm2022/raintonic-formaui-components-toggle.mjs.map +1 -1
  93. package/fesm2022/raintonic-formaui-components-toolbar.mjs +2 -2
  94. package/fesm2022/raintonic-formaui-components-toolbar.mjs.map +1 -1
  95. package/fesm2022/raintonic-formaui-components-tooltip.mjs +10 -4
  96. package/fesm2022/raintonic-formaui-components-tooltip.mjs.map +1 -1
  97. package/fesm2022/raintonic-formaui-components-topbar.mjs +60 -0
  98. package/fesm2022/raintonic-formaui-components-topbar.mjs.map +1 -0
  99. package/fesm2022/raintonic-formaui-components-tree-select.mjs +59 -69
  100. package/fesm2022/raintonic-formaui-components-tree-select.mjs.map +1 -1
  101. package/fesm2022/raintonic-formaui-components-tree-table.mjs +2 -2
  102. package/fesm2022/raintonic-formaui-components-tree-table.mjs.map +1 -1
  103. package/fesm2022/raintonic-formaui-components-tree.mjs +31 -5
  104. package/fesm2022/raintonic-formaui-components-tree.mjs.map +1 -1
  105. package/fesm2022/raintonic-formaui-core.mjs +279 -1
  106. package/fesm2022/raintonic-formaui-core.mjs.map +1 -1
  107. package/fesm2022/raintonic-formaui-services-breakpoint.mjs +93 -0
  108. package/fesm2022/raintonic-formaui-services-breakpoint.mjs.map +1 -0
  109. package/fesm2022/raintonic-formaui-services-dialog.mjs +314 -16
  110. package/fesm2022/raintonic-formaui-services-dialog.mjs.map +1 -1
  111. package/fesm2022/raintonic-formaui-services-notification.mjs +93 -29
  112. package/fesm2022/raintonic-formaui-services-notification.mjs.map +1 -1
  113. package/fesm2022/raintonic-formaui-services-theme.mjs +46 -196
  114. package/fesm2022/raintonic-formaui-services-theme.mjs.map +1 -1
  115. package/fesm2022/raintonic-formaui.mjs +1 -1
  116. package/fesm2022/raintonic-formaui.mjs.map +1 -1
  117. package/llms-full.txt +2329 -450
  118. package/llms.txt +36 -33
  119. package/package.json +42 -19
  120. package/styles/fonts/Geist-Bold.woff2 +0 -0
  121. package/styles/fonts/Geist-Italic.woff2 +0 -0
  122. package/styles/fonts/Geist-Light.woff2 +0 -0
  123. package/styles/fonts/Geist-Medium.woff2 +0 -0
  124. package/styles/fonts/Geist-Regular.woff2 +0 -0
  125. package/styles/fonts/Geist-SemiBold.woff2 +0 -0
  126. package/styles/fonts/GeistMono-Regular.woff2 +0 -0
  127. package/styles/generated/_tokens.scss +906 -0
  128. package/styles/index.scss +11 -10
  129. package/styles/partials/_brand.scss +46 -0
  130. package/styles/partials/_constants.scss +22 -20
  131. package/styles/partials/_fonts.scss +54 -10
  132. package/styles/partials/_grid.scss +29 -18
  133. package/styles/partials/_mixins.scss +69 -27
  134. package/styles/partials/_motion.scss +28 -33
  135. package/styles/partials/_theme.scss +28 -255
  136. package/styles/partials/_type.scss +117 -0
  137. package/styles/partials/_typography.scss +45 -45
  138. package/styles/partials/_utilities.scss +198 -98
  139. package/styles/partials/components/_button.scss +144 -75
  140. package/styles/partials/components/_dialog.scss +181 -180
  141. package/styles/partials/components/_overlay.scss +87 -87
  142. package/styles/partials/themes/_dark.scss +3 -268
  143. package/styles/partials/themes/_light.scss +4 -268
  144. package/styles/styles.css +7744 -0
  145. package/styles/styles.entry.scss +3 -0
  146. package/styles/utilities.css +4802 -0
  147. package/styles/utilities.entry.scss +3 -0
  148. package/types/raintonic-formaui-cdk-drag-drop.d.ts +0 -1
  149. package/types/raintonic-formaui-cdk-drag-drop.d.ts.map +1 -1
  150. package/types/raintonic-formaui-cdk-form-field.d.ts +118 -2
  151. package/types/raintonic-formaui-cdk-form-field.d.ts.map +1 -1
  152. package/types/raintonic-formaui-cdk-overlay.d.ts +2 -0
  153. package/types/raintonic-formaui-cdk-overlay.d.ts.map +1 -1
  154. package/types/raintonic-formaui-cdk-virtual-scroll.d.ts +0 -1
  155. package/types/raintonic-formaui-cdk-virtual-scroll.d.ts.map +1 -1
  156. package/types/raintonic-formaui-components-accordion.d.ts +1 -1
  157. package/types/raintonic-formaui-components-accordion.d.ts.map +1 -1
  158. package/types/raintonic-formaui-components-alert.d.ts +6 -1
  159. package/types/raintonic-formaui-components-alert.d.ts.map +1 -1
  160. package/types/raintonic-formaui-components-autocomplete.d.ts +73 -116
  161. package/types/raintonic-formaui-components-autocomplete.d.ts.map +1 -1
  162. package/types/raintonic-formaui-components-avatar.d.ts +13 -31
  163. package/types/raintonic-formaui-components-avatar.d.ts.map +1 -1
  164. package/types/raintonic-formaui-components-button.d.ts +4 -10
  165. package/types/raintonic-formaui-components-button.d.ts.map +1 -1
  166. package/types/raintonic-formaui-components-chip.d.ts +43 -0
  167. package/types/raintonic-formaui-components-chip.d.ts.map +1 -0
  168. package/types/raintonic-formaui-components-data-table.d.ts +48 -11
  169. package/types/raintonic-formaui-components-data-table.d.ts.map +1 -1
  170. package/types/raintonic-formaui-components-date-picker.d.ts +59 -23
  171. package/types/raintonic-formaui-components-date-picker.d.ts.map +1 -1
  172. package/types/raintonic-formaui-components-dropdown-menu.d.ts +394 -0
  173. package/types/raintonic-formaui-components-dropdown-menu.d.ts.map +1 -0
  174. package/types/raintonic-formaui-components-dual-tier-navigation.d.ts +87 -0
  175. package/types/raintonic-formaui-components-dual-tier-navigation.d.ts.map +1 -0
  176. package/types/raintonic-formaui-components-form-field.d.ts +51 -21
  177. package/types/raintonic-formaui-components-form-field.d.ts.map +1 -1
  178. package/types/raintonic-formaui-components-input.d.ts +20 -11
  179. package/types/raintonic-formaui-components-input.d.ts.map +1 -1
  180. package/types/raintonic-formaui-components-number-input.d.ts +5 -3
  181. package/types/raintonic-formaui-components-number-input.d.ts.map +1 -1
  182. package/types/raintonic-formaui-components-password-input.d.ts +18 -32
  183. package/types/raintonic-formaui-components-password-input.d.ts.map +1 -1
  184. package/types/raintonic-formaui-components-popover.d.ts.map +1 -1
  185. package/types/raintonic-formaui-components-progressbar.d.ts +1 -1
  186. package/types/raintonic-formaui-components-progressbar.d.ts.map +1 -1
  187. package/types/raintonic-formaui-components-radio.d.ts +1 -2
  188. package/types/raintonic-formaui-components-radio.d.ts.map +1 -1
  189. package/types/raintonic-formaui-components-select.d.ts +107 -76
  190. package/types/raintonic-formaui-components-select.d.ts.map +1 -1
  191. package/types/raintonic-formaui-components-sidebar-nav-menu.d.ts +223 -0
  192. package/types/raintonic-formaui-components-sidebar-nav-menu.d.ts.map +1 -0
  193. package/types/raintonic-formaui-components-stepper.d.ts +4 -2
  194. package/types/raintonic-formaui-components-stepper.d.ts.map +1 -1
  195. package/types/raintonic-formaui-components-strength-meter.d.ts +78 -0
  196. package/types/raintonic-formaui-components-strength-meter.d.ts.map +1 -0
  197. package/types/raintonic-formaui-components-time-picker.d.ts +44 -24
  198. package/types/raintonic-formaui-components-time-picker.d.ts.map +1 -1
  199. package/types/raintonic-formaui-components-toggle-group.d.ts +100 -0
  200. package/types/raintonic-formaui-components-toggle-group.d.ts.map +1 -0
  201. package/types/raintonic-formaui-components-tooltip.d.ts +2 -1
  202. package/types/raintonic-formaui-components-tooltip.d.ts.map +1 -1
  203. package/types/raintonic-formaui-components-topbar.d.ts +48 -0
  204. package/types/raintonic-formaui-components-topbar.d.ts.map +1 -0
  205. package/types/raintonic-formaui-components-tree-select.d.ts +25 -9
  206. package/types/raintonic-formaui-components-tree-select.d.ts.map +1 -1
  207. package/types/raintonic-formaui-components-tree.d.ts +12 -1
  208. package/types/raintonic-formaui-components-tree.d.ts.map +1 -1
  209. package/types/raintonic-formaui-core.d.ts +243 -5
  210. package/types/raintonic-formaui-core.d.ts.map +1 -1
  211. package/types/raintonic-formaui-services-breakpoint.d.ts +44 -0
  212. package/types/raintonic-formaui-services-breakpoint.d.ts.map +1 -0
  213. package/types/raintonic-formaui-services-dialog.d.ts +141 -2
  214. package/types/raintonic-formaui-services-dialog.d.ts.map +1 -1
  215. package/types/raintonic-formaui-services-notification.d.ts +24 -2
  216. package/types/raintonic-formaui-services-notification.d.ts.map +1 -1
  217. package/types/raintonic-formaui-services-theme.d.ts +13 -103
  218. package/types/raintonic-formaui-services-theme.d.ts.map +1 -1
  219. package/types/raintonic-formaui.d.ts +1 -1
  220. package/fesm2022/raintonic-formaui-components-big-menu.mjs +0 -86
  221. package/fesm2022/raintonic-formaui-components-big-menu.mjs.map +0 -1
  222. package/fesm2022/raintonic-formaui-components-menu.mjs +0 -896
  223. package/fesm2022/raintonic-formaui-components-menu.mjs.map +0 -1
  224. package/fesm2022/raintonic-formaui-components-sidebar.mjs +0 -275
  225. package/fesm2022/raintonic-formaui-components-sidebar.mjs.map +0 -1
  226. package/fesm2022/raintonic-formaui-components-tag.mjs +0 -95
  227. package/fesm2022/raintonic-formaui-components-tag.mjs.map +0 -1
  228. package/styles/_fonts-entry.scss +0 -3
  229. package/styles/fonts/inter-tight-latin-italic.woff2 +0 -0
  230. package/styles/fonts/inter-tight-latin.woff2 +0 -0
  231. package/types/raintonic-formaui-components-big-menu.d.ts +0 -73
  232. package/types/raintonic-formaui-components-big-menu.d.ts.map +0 -1
  233. package/types/raintonic-formaui-components-menu.d.ts +0 -403
  234. package/types/raintonic-formaui-components-menu.d.ts.map +0 -1
  235. package/types/raintonic-formaui-components-sidebar.d.ts +0 -185
  236. package/types/raintonic-formaui-components-sidebar.d.ts.map +0 -1
  237. package/types/raintonic-formaui-components-tag.d.ts +0 -43
  238. package/types/raintonic-formaui-components-tag.d.ts.map +0 -1
@@ -1,180 +1,181 @@
1
- /**
2
- * # Dialog Styles
3
- *
4
- * Global styles for the fui dialog component.
5
- * These styles are applied to the overlay elements.
6
- */
7
-
8
- // Component tokens with fallbacks
9
- .fui-dialog-panel {
10
- --fui-dialog-backdrop-color: var(--fui-black-30);
11
- --fui-dialog-title-padding: var(--fui-padding-24) var(--fui-padding-24) 0;
12
- --fui-dialog-title-font-size: var(--fui-font-size-05);
13
- --fui-dialog-title-font-weight: var(--fui-font-weight-medium);
14
- --fui-dialog-title-line-height: 1.4;
15
- --fui-dialog-content-padding: var(--fui-padding-24);
16
- --fui-dialog-content-font-size: var(--fui-font-size-02);
17
- --fui-dialog-content-line-height: 1.5;
18
- --fui-dialog-actions-gap: var(--fui-gap-8);
19
- --fui-dialog-actions-padding: var(--fui-padding-8) var(--fui-padding-24) var(--fui-padding-24);
20
- --fui-dialog-actions-min-height: 52px;
21
- --fui-dialog-close-top: var(--fui-padding-8);
22
- --fui-dialog-close-right: var(--fui-padding-8);
23
- }
24
-
25
- // Dialog backdrop
26
- // Note: z-index is applied dynamically by the overlay service for proper stacking
27
- .fui-dialog-backdrop {
28
- position: fixed;
29
- inset: 0;
30
- background-color: var(--fui-dialog-backdrop-color);
31
- transition: opacity var(--fui-duration-moderate-02) var(--fui-ease-standard);
32
- }
33
-
34
- // Dialog panel (overlay pane)
35
- // Note: z-index is applied dynamically by the overlay service for proper stacking
36
- .fui-dialog-panel {
37
- display: flex;
38
- flex-direction: column;
39
- position: fixed;
40
- pointer-events: auto;
41
- box-sizing: border-box;
42
- outline: 0;
43
-
44
- // Enter animation
45
- &:not(.fui-dialog-exit) {
46
- animation: fui-dialog-panel-enter var(--fui-duration-moderate-02) var(--fui-ease-entrance);
47
- }
48
-
49
- // Exit animation
50
- &.fui-dialog-exit {
51
- animation: fui-dialog-panel-exit var(--fui-duration-moderate-01) var(--fui-ease-exit) forwards;
52
- }
53
- }
54
-
55
- // Dialog container host
56
- .fui-dialog-container-host {
57
- display: block;
58
- width: 100%;
59
- height: 100%;
60
- }
61
-
62
- // Animation keyframes
63
- @keyframes fui-dialog-panel-enter {
64
- from {
65
- opacity: 0;
66
- }
67
- to {
68
- opacity: 1;
69
- }
70
- }
71
-
72
- @keyframes fui-dialog-panel-exit {
73
- from {
74
- opacity: 1;
75
- }
76
- to {
77
- opacity: 0;
78
- }
79
- }
80
-
81
- // Dialog content sections (optional utility classes)
82
- .fui-dialog-title {
83
- display: block;
84
- margin: 0;
85
- padding: var(--fui-dialog-title-padding, 24px 24px 0);
86
- font-size: var(--fui-dialog-title-font-size, 20px);
87
- font-weight: var(--fui-dialog-title-font-weight, 500);
88
- line-height: var(--fui-dialog-title-line-height, 1.4);
89
- color: var(--fui-dialog-title-color, inherit);
90
- }
91
-
92
- .fui-dialog-content {
93
- display: block;
94
- flex: 1;
95
- overflow: auto;
96
- padding: var(--fui-dialog-content-padding, 20px 24px);
97
- font-size: var(--fui-dialog-content-font-size, 14px);
98
- line-height: var(--fui-dialog-content-line-height, 1.5);
99
- color: var(--fui-dialog-content-color, inherit);
100
-
101
- // Remove default margin for first/last elements
102
- > :first-child {
103
- margin-top: 0;
104
- }
105
-
106
- > :last-child {
107
- margin-bottom: 0;
108
- }
109
- }
110
-
111
- .fui-dialog-actions {
112
- display: flex;
113
- flex-wrap: wrap;
114
- align-items: center;
115
- justify-content: flex-end;
116
- gap: var(--fui-dialog-actions-gap, 8px);
117
- padding: var(--fui-dialog-actions-padding, 8px 24px 24px);
118
- min-height: var(--fui-dialog-actions-min-height, 52px);
119
-
120
- // Align actions to the start
121
- &.fui-dialog-actions-start {
122
- justify-content: flex-start;
123
- }
124
-
125
- // Center actions
126
- &.fui-dialog-actions-center {
127
- justify-content: center;
128
- }
129
-
130
- // Space between actions (first left, rest right)
131
- &.fui-dialog-actions-between {
132
- justify-content: space-between;
133
- }
134
- }
135
-
136
- // Close button utility class
137
- .fui-dialog-close {
138
- position: absolute;
139
- top: var(--fui-dialog-close-top, 8px);
140
- right: var(--fui-dialog-close-right, 8px);
141
- cursor: pointer;
142
- background: transparent;
143
- border: none;
144
- padding: var(--fui-padding-8);
145
- border-radius: var(--fui-border-radius-pill);
146
- display: flex;
147
- align-items: center;
148
- justify-content: center;
149
- color: var(--fui-dialog-close-color, var(--fui-black-50));
150
- transition: background-color var(--fui-duration-moderate-01) var(--fui-ease-standard);
151
-
152
- &:hover {
153
- background-color: var(--fui-dialog-close-hover-bg, var(--fui-black-5));
154
- }
155
-
156
- &:focus {
157
- outline: none;
158
- background-color: var(--fui-dialog-close-focus-bg, var(--fui-black-10));
159
- }
160
- }
161
-
162
- // Responsive adjustments
163
- @media screen and (max-width: 599px) {
164
- .fui-dialog-panel {
165
- max-width: calc(100vw - 32px) !important;
166
- max-height: calc(100vh - 32px) !important;
167
- }
168
-
169
- .fui-dialog-title {
170
- padding: var(--fui-dialog-title-padding-mobile, 16px 16px 0);
171
- }
172
-
173
- .fui-dialog-content {
174
- padding: var(--fui-dialog-content-padding-mobile, 16px);
175
- }
176
-
177
- .fui-dialog-actions {
178
- padding: var(--fui-dialog-actions-padding-mobile, 8px 16px 16px);
179
- }
180
- }
1
+ /**
2
+ * # Dialog Styles
3
+ *
4
+ * Global styles for the fui dialog component.
5
+ * These styles are applied to the overlay elements.
6
+ */
7
+
8
+ // Component tokens with fallbacks
9
+ :root {
10
+ --fui-dialog-backdrop-color: rgba(0, 0, 0, 0.3);
11
+ --fui-dialog-title-padding: var(--fui-spacing-9) var(--fui-spacing-9) 0;
12
+ --fui-dialog-title-font-size: var(--fui-text-xl);
13
+ --fui-dialog-title-font-weight: var(--fui-weight-medium);
14
+ --fui-dialog-title-line-height: 1.4;
15
+ --fui-dialog-content-padding: var(--fui-spacing-9);
16
+ --fui-dialog-content-font-size: var(--fui-text-base);
17
+ --fui-dialog-content-line-height: 1.5;
18
+ --fui-dialog-actions-gap: var(--fui-spacing-4);
19
+ --fui-dialog-actions-padding: var(--fui-spacing-4) var(--fui-spacing-9) var(--fui-spacing-9);
20
+ --fui-dialog-actions-min-height: 52px;
21
+ --fui-dialog-close-top: var(--fui-spacing-4);
22
+ --fui-dialog-close-right: var(--fui-spacing-4);
23
+ }
24
+
25
+ // Dialog backdrop
26
+ // Note: z-index is applied dynamically by the overlay service for proper stacking
27
+ .fui-dialog-backdrop,
28
+ .fui-drawer-service-backdrop {
29
+ position: fixed;
30
+ inset: 0;
31
+ background-color: var(--fui-dialog-backdrop-color);
32
+ transition: opacity var(--fui-duration-moderate) var(--fui-ease-in-out);
33
+ }
34
+
35
+ // Dialog panel (overlay pane)
36
+ // Note: z-index is applied dynamically by the overlay service for proper stacking
37
+ .fui-dialog-panel {
38
+ display: flex;
39
+ flex-direction: column;
40
+ position: fixed;
41
+ pointer-events: auto;
42
+ box-sizing: border-box;
43
+ outline: 0;
44
+
45
+ // Enter animation
46
+ &:not(.fui-dialog-exit) {
47
+ animation: fui-dialog-panel-enter var(--fui-duration-moderate) var(--fui-ease-out);
48
+ }
49
+
50
+ // Exit animation
51
+ &.fui-dialog-exit {
52
+ animation: fui-dialog-panel-exit var(--fui-duration-base) var(--fui-ease-in) forwards;
53
+ }
54
+ }
55
+
56
+ // Dialog container host
57
+ .fui-dialog-container-host {
58
+ display: block;
59
+ width: 100%;
60
+ height: 100%;
61
+ }
62
+
63
+ // Animation keyframes
64
+ @keyframes fui-dialog-panel-enter {
65
+ from {
66
+ opacity: 0;
67
+ }
68
+ to {
69
+ opacity: 1;
70
+ }
71
+ }
72
+
73
+ @keyframes fui-dialog-panel-exit {
74
+ from {
75
+ opacity: 1;
76
+ }
77
+ to {
78
+ opacity: 0;
79
+ }
80
+ }
81
+
82
+ // Dialog content sections (optional utility classes)
83
+ .fui-dialog-title {
84
+ display: block;
85
+ margin: 0;
86
+ padding: var(--fui-dialog-title-padding, 24px 24px 0);
87
+ font-size: var(--fui-dialog-title-font-size, 20px);
88
+ font-weight: var(--fui-dialog-title-font-weight, 500);
89
+ line-height: var(--fui-dialog-title-line-height, 1.4);
90
+ color: var(--fui-dialog-title-color, inherit);
91
+ }
92
+
93
+ .fui-dialog-content {
94
+ display: block;
95
+ flex: 1;
96
+ overflow: auto;
97
+ padding: var(--fui-dialog-content-padding, 20px 24px);
98
+ font-size: var(--fui-dialog-content-font-size, 14px);
99
+ line-height: var(--fui-dialog-content-line-height, 1.5);
100
+ color: var(--fui-dialog-content-color, inherit);
101
+
102
+ // Remove default margin for first/last elements
103
+ > :first-child {
104
+ margin-top: 0;
105
+ }
106
+
107
+ > :last-child {
108
+ margin-bottom: 0;
109
+ }
110
+ }
111
+
112
+ .fui-dialog-actions {
113
+ display: flex;
114
+ flex-wrap: wrap;
115
+ align-items: center;
116
+ justify-content: flex-end;
117
+ gap: var(--fui-dialog-actions-gap, 8px);
118
+ padding: var(--fui-dialog-actions-padding, 8px 24px 24px);
119
+ min-height: var(--fui-dialog-actions-min-height, 52px);
120
+
121
+ // Align actions to the start
122
+ &.fui-dialog-actions-start {
123
+ justify-content: flex-start;
124
+ }
125
+
126
+ // Center actions
127
+ &.fui-dialog-actions-center {
128
+ justify-content: center;
129
+ }
130
+
131
+ // Space between actions (first left, rest right)
132
+ &.fui-dialog-actions-between {
133
+ justify-content: space-between;
134
+ }
135
+ }
136
+
137
+ // Close button utility class
138
+ .fui-dialog-close {
139
+ position: absolute;
140
+ top: var(--fui-dialog-close-top, 8px);
141
+ right: var(--fui-dialog-close-right, 8px);
142
+ cursor: pointer;
143
+ background: transparent;
144
+ border: none;
145
+ padding: var(--fui-spacing-4);
146
+ border-radius: var(--fui-radius-pill);
147
+ display: flex;
148
+ align-items: center;
149
+ justify-content: center;
150
+ color: var(--fui-dialog-close-color, rgba(0, 0, 0, 0.5));
151
+ transition: background-color var(--fui-duration-base) var(--fui-ease-in-out);
152
+
153
+ &:hover {
154
+ background-color: var(--fui-dialog-close-hover-bg, rgba(0, 0, 0, 0.05));
155
+ }
156
+
157
+ &:focus {
158
+ outline: none;
159
+ background-color: var(--fui-dialog-close-focus-bg, rgba(0, 0, 0, 0.1));
160
+ }
161
+ }
162
+
163
+ // Responsive adjustments
164
+ @media screen and (max-width: 599px) {
165
+ .fui-dialog-panel {
166
+ max-width: calc(100vw - 32px) !important;
167
+ max-height: calc(100vh - 32px) !important;
168
+ }
169
+
170
+ .fui-dialog-title {
171
+ padding: var(--fui-dialog-title-padding-mobile, 16px 16px 0);
172
+ }
173
+
174
+ .fui-dialog-content {
175
+ padding: var(--fui-dialog-content-padding-mobile, 16px);
176
+ }
177
+
178
+ .fui-dialog-actions {
179
+ padding: var(--fui-dialog-actions-padding-mobile, 8px 16px 16px);
180
+ }
181
+ }
@@ -1,87 +1,87 @@
1
- @use '../constants' as *;
2
- @use '../mixins' as mixins;
3
-
4
- // Overlay pane base styles
5
- .fui-overlay-pane {
6
- position: absolute;
7
- pointer-events: auto;
8
- box-sizing: border-box;
9
- z-index: 2;
10
- }
11
-
12
- // Overlay backdrop styles
13
- .fui-overlay-backdrop {
14
- position: absolute;
15
- top: 0;
16
- left: 0;
17
- width: 100%;
18
- height: 100%;
19
- pointer-events: auto;
20
- background-color: transparent;
21
- z-index: 1;
22
- }
23
-
24
- // Tooltip panel styles
25
- .fui-tooltip-panel {
26
- z-index: var(--fui-z-index-tooltip, 1100);
27
-
28
- .fui-tooltip {
29
- // Tooltip-specific overlay styles
30
- max-width: var(--fui-tooltip-max-width, 200px);
31
- }
32
- }
33
-
34
- // Menu panel styles
35
- .fui-menu-panel {
36
- z-index: var(--fui-z-index-dropdown, 1050);
37
-
38
- .fui-menu {
39
- // Menu-specific overlay styles
40
- min-width: var(--fui-menu-min-width, 8rem);
41
- max-width: var(--fui-menu-max-width, 20rem);
42
- }
43
-
44
- &--sm {
45
- .fui-menu {
46
- min-width: var(--fui-menu-min-width-sm, 6rem);
47
- }
48
- }
49
-
50
- &--lg {
51
- .fui-menu {
52
- min-width: var(--fui-menu-min-width-lg, 12rem);
53
- }
54
- }
55
- }
56
-
57
- // Menu backdrop styles
58
- .fui-menu-backdrop {
59
- background-color: transparent;
60
- }
61
-
62
- // Animation classes for overlays
63
- .fui-overlay-enter {
64
- opacity: 0;
65
- transform: scale(0.95);
66
- transition:
67
- opacity var(--fui-duration-fast-02) var(--fui-ease-standard),
68
- transform var(--fui-duration-fast-02) var(--fui-ease-standard);
69
- }
70
-
71
- .fui-overlay-enter-active {
72
- opacity: 1;
73
- transform: scale(1);
74
- }
75
-
76
- .fui-overlay-exit {
77
- opacity: 1;
78
- transform: scale(1);
79
- transition:
80
- opacity var(--fui-duration-fast-01) var(--fui-ease-standard),
81
- transform var(--fui-duration-fast-01) var(--fui-ease-standard);
82
- }
83
-
84
- .fui-overlay-exit-active {
85
- opacity: 0;
86
- transform: scale(0.95);
87
- }
1
+ @use '../constants' as *;
2
+ @use '../mixins' as mixins;
3
+
4
+ // Overlay pane base styles
5
+ .fui-overlay-pane {
6
+ position: absolute;
7
+ pointer-events: auto;
8
+ box-sizing: border-box;
9
+ z-index: 2;
10
+ }
11
+
12
+ // Overlay backdrop styles
13
+ .fui-overlay-backdrop {
14
+ position: absolute;
15
+ top: 0;
16
+ left: 0;
17
+ width: 100%;
18
+ height: 100%;
19
+ pointer-events: auto;
20
+ background-color: transparent;
21
+ z-index: 1;
22
+ }
23
+
24
+ // Tooltip panel styles
25
+ .fui-tooltip-panel {
26
+ z-index: var(--fui-z-index-tooltip, 1100);
27
+
28
+ .fui-tooltip {
29
+ // Tooltip-specific overlay styles
30
+ max-width: var(--fui-tooltip-max-width, 200px);
31
+ }
32
+ }
33
+
34
+ // Dropdown-menu panel styles
35
+ .fui-dropdown-menu-panel {
36
+ z-index: var(--fui-z-index-dropdown, 1050);
37
+
38
+ .fui-dropdown-menu {
39
+ // Dropdown-menu-specific overlay styles
40
+ min-width: var(--fui-dropdown-menu-min-width, 8rem);
41
+ max-width: var(--fui-dropdown-menu-max-width, 20rem);
42
+ }
43
+
44
+ &--sm {
45
+ .fui-dropdown-menu {
46
+ min-width: var(--fui-dropdown-menu-min-width-sm, 6rem);
47
+ }
48
+ }
49
+
50
+ &--lg {
51
+ .fui-dropdown-menu {
52
+ min-width: var(--fui-dropdown-menu-min-width-lg, 12rem);
53
+ }
54
+ }
55
+ }
56
+
57
+ // Dropdown-menu backdrop styles
58
+ .fui-dropdown-menu-backdrop {
59
+ background-color: transparent;
60
+ }
61
+
62
+ // Animation classes for overlays
63
+ .fui-overlay-enter {
64
+ opacity: 0;
65
+ transform: scale(0.95);
66
+ transition:
67
+ opacity var(--fui-duration-fast) var(--fui-ease-in-out),
68
+ transform var(--fui-duration-fast) var(--fui-ease-in-out);
69
+ }
70
+
71
+ .fui-overlay-enter-active {
72
+ opacity: 1;
73
+ transform: scale(1);
74
+ }
75
+
76
+ .fui-overlay-exit {
77
+ opacity: 1;
78
+ transform: scale(1);
79
+ transition:
80
+ opacity var(--fui-duration-fast) var(--fui-ease-in-out),
81
+ transform var(--fui-duration-fast) var(--fui-ease-in-out);
82
+ }
83
+
84
+ .fui-overlay-exit-active {
85
+ opacity: 0;
86
+ transform: scale(0.95);
87
+ }