@aeris-ui/core 22.0.0-alpha.1 → 22.0.0-alpha.10

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 (288) hide show
  1. package/README.md +200 -191
  2. package/fesm2022/aeris-ui-core-accordion.mjs +646 -255
  3. package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -1
  4. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +284 -103
  5. package/fesm2022/aeris-ui-core-animate-on-scroll.mjs.map +1 -1
  6. package/fesm2022/aeris-ui-core-auto-complete.mjs +1228 -446
  7. package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -1
  8. package/fesm2022/aeris-ui-core-auto-focus.mjs +111 -61
  9. package/fesm2022/aeris-ui-core-auto-focus.mjs.map +1 -1
  10. package/fesm2022/aeris-ui-core-avatar.mjs +383 -101
  11. package/fesm2022/aeris-ui-core-avatar.mjs.map +1 -1
  12. package/fesm2022/aeris-ui-core-badge.mjs +562 -115
  13. package/fesm2022/aeris-ui-core-badge.mjs.map +1 -1
  14. package/fesm2022/aeris-ui-core-block-ui.mjs +209 -101
  15. package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
  16. package/fesm2022/aeris-ui-core-breadcrumb.mjs +581 -189
  17. package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -1
  18. package/fesm2022/aeris-ui-core-button-group.mjs +153 -38
  19. package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -1
  20. package/fesm2022/aeris-ui-core-button.mjs +741 -139
  21. package/fesm2022/aeris-ui-core-button.mjs.map +1 -1
  22. package/fesm2022/aeris-ui-core-card.mjs +371 -101
  23. package/fesm2022/aeris-ui-core-card.mjs.map +1 -1
  24. package/fesm2022/aeris-ui-core-carousel.mjs +773 -369
  25. package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
  26. package/fesm2022/aeris-ui-core-cascade-select.mjs +1171 -521
  27. package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
  28. package/fesm2022/aeris-ui-core-chart.mjs +455 -258
  29. package/fesm2022/aeris-ui-core-chart.mjs.map +1 -1
  30. package/fesm2022/aeris-ui-core-checkbox.mjs +440 -140
  31. package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -1
  32. package/fesm2022/aeris-ui-core-chip.mjs +430 -117
  33. package/fesm2022/aeris-ui-core-chip.mjs.map +1 -1
  34. package/fesm2022/aeris-ui-core-class-names.mjs +87 -65
  35. package/fesm2022/aeris-ui-core-class-names.mjs.map +1 -1
  36. package/fesm2022/aeris-ui-core-code-block.mjs +637 -0
  37. package/fesm2022/aeris-ui-core-code-block.mjs.map +1 -0
  38. package/fesm2022/aeris-ui-core-color-picker.mjs +1340 -700
  39. package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
  40. package/fesm2022/aeris-ui-core-compare.mjs +823 -318
  41. package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
  42. package/fesm2022/aeris-ui-core-confirm-dialog.mjs +1404 -555
  43. package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
  44. package/fesm2022/aeris-ui-core-confirm-popup.mjs +1471 -740
  45. package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
  46. package/fesm2022/aeris-ui-core-context-menu.mjs +918 -443
  47. package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
  48. package/fesm2022/aeris-ui-core-date-picker.mjs +1942 -1123
  49. package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
  50. package/fesm2022/aeris-ui-core-dialog.mjs +1079 -346
  51. package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
  52. package/fesm2022/aeris-ui-core-divider.mjs +204 -43
  53. package/fesm2022/aeris-ui-core-divider.mjs.map +1 -1
  54. package/fesm2022/aeris-ui-core-drawer.mjs +1015 -322
  55. package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
  56. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +410 -254
  57. package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
  58. package/fesm2022/aeris-ui-core-editor.mjs +967 -587
  59. package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
  60. package/fesm2022/aeris-ui-core-file-upload.mjs +1379 -522
  61. package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -1
  62. package/fesm2022/aeris-ui-core-filter-service.mjs +258 -301
  63. package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -1
  64. package/fesm2022/aeris-ui-core-fluid.mjs +68 -21
  65. package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -1
  66. package/fesm2022/aeris-ui-core-focus-trap.mjs +206 -182
  67. package/fesm2022/aeris-ui-core-focus-trap.mjs.map +1 -1
  68. package/fesm2022/aeris-ui-core-form-field.mjs +688 -0
  69. package/fesm2022/aeris-ui-core-form-field.mjs.map +1 -0
  70. package/fesm2022/aeris-ui-core-galleria.mjs +2446 -1117
  71. package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
  72. package/fesm2022/aeris-ui-core-glass.mjs +110 -33
  73. package/fesm2022/aeris-ui-core-glass.mjs.map +1 -1
  74. package/fesm2022/aeris-ui-core-icon-field.mjs +426 -98
  75. package/fesm2022/aeris-ui-core-icon-field.mjs.map +1 -1
  76. package/fesm2022/aeris-ui-core-inplace.mjs +452 -130
  77. package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -1
  78. package/fesm2022/aeris-ui-core-input-group.mjs +413 -107
  79. package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
  80. package/fesm2022/aeris-ui-core-input-mask.mjs +658 -255
  81. package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
  82. package/fesm2022/aeris-ui-core-input-number.mjs +926 -291
  83. package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
  84. package/fesm2022/aeris-ui-core-input-otp.mjs +678 -264
  85. package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -1
  86. package/fesm2022/aeris-ui-core-input-text.mjs +625 -158
  87. package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -1
  88. package/fesm2022/aeris-ui-core-key-filter.mjs +263 -201
  89. package/fesm2022/aeris-ui-core-key-filter.mjs.map +1 -1
  90. package/fesm2022/aeris-ui-core-mega-menu.mjs +613 -382
  91. package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
  92. package/fesm2022/aeris-ui-core-menu.mjs +1062 -472
  93. package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
  94. package/fesm2022/aeris-ui-core-menubar.mjs +994 -393
  95. package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
  96. package/fesm2022/aeris-ui-core-message.mjs +477 -145
  97. package/fesm2022/aeris-ui-core-message.mjs.map +1 -1
  98. package/fesm2022/aeris-ui-core-meter-group.mjs +623 -230
  99. package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
  100. package/fesm2022/aeris-ui-core-multi-select.mjs +1598 -561
  101. package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
  102. package/fesm2022/aeris-ui-core-order-list.mjs +592 -220
  103. package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
  104. package/fesm2022/aeris-ui-core-organization-chart.mjs +485 -199
  105. package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
  106. package/fesm2022/aeris-ui-core-paginator.mjs +428 -123
  107. package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
  108. package/fesm2022/aeris-ui-core-panel.mjs +596 -196
  109. package/fesm2022/aeris-ui-core-panel.mjs.map +1 -1
  110. package/fesm2022/aeris-ui-core-password.mjs +925 -249
  111. package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
  112. package/fesm2022/aeris-ui-core-pick-list.mjs +1280 -659
  113. package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -1
  114. package/fesm2022/aeris-ui-core-popover.mjs +912 -375
  115. package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
  116. package/fesm2022/aeris-ui-core-progress-bar.mjs +549 -176
  117. package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -1
  118. package/fesm2022/aeris-ui-core-progress-spinner.mjs +410 -133
  119. package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -1
  120. package/fesm2022/aeris-ui-core-radio-button.mjs +394 -124
  121. package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
  122. package/fesm2022/aeris-ui-core-rating.mjs +506 -231
  123. package/fesm2022/aeris-ui-core-rating.mjs.map +1 -1
  124. package/fesm2022/aeris-ui-core-scroll-panel.mjs +457 -154
  125. package/fesm2022/aeris-ui-core-scroll-panel.mjs.map +1 -1
  126. package/fesm2022/aeris-ui-core-scroll-top.mjs +226 -63
  127. package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -1
  128. package/fesm2022/aeris-ui-core-select.mjs +1845 -648
  129. package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
  130. package/fesm2022/aeris-ui-core-skeleton.mjs +149 -45
  131. package/fesm2022/aeris-ui-core-skeleton.mjs.map +1 -1
  132. package/fesm2022/aeris-ui-core-slider.mjs +884 -430
  133. package/fesm2022/aeris-ui-core-slider.mjs.map +1 -1
  134. package/fesm2022/aeris-ui-core-speed-dial.mjs +861 -337
  135. package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
  136. package/fesm2022/aeris-ui-core-split-button.mjs +955 -266
  137. package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
  138. package/fesm2022/aeris-ui-core-splitter.mjs +812 -352
  139. package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -1
  140. package/fesm2022/aeris-ui-core-stepper.mjs +697 -254
  141. package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -1
  142. package/fesm2022/aeris-ui-core-style-class.mjs +587 -342
  143. package/fesm2022/aeris-ui-core-style-class.mjs.map +1 -1
  144. package/fesm2022/aeris-ui-core-table.mjs +2034 -869
  145. package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
  146. package/fesm2022/aeris-ui-core-tabs.mjs +789 -279
  147. package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
  148. package/fesm2022/aeris-ui-core-textarea.mjs +856 -219
  149. package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
  150. package/fesm2022/aeris-ui-core-theme-builder.mjs +1284 -1399
  151. package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
  152. package/fesm2022/aeris-ui-core-theming.mjs +132 -144
  153. package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
  154. package/fesm2022/aeris-ui-core-tiered-menu.mjs +909 -441
  155. package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
  156. package/fesm2022/aeris-ui-core-timeline.mjs +407 -131
  157. package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -1
  158. package/fesm2022/aeris-ui-core-toast.mjs +1076 -384
  159. package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
  160. package/fesm2022/aeris-ui-core-toggle-switch.mjs +398 -132
  161. package/fesm2022/aeris-ui-core-toggle-switch.mjs.map +1 -1
  162. package/fesm2022/aeris-ui-core-toolbar.mjs +458 -121
  163. package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -1
  164. package/fesm2022/aeris-ui-core-tooltip.mjs +625 -330
  165. package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -1
  166. package/fesm2022/aeris-ui-core-tree-select.mjs +1453 -621
  167. package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
  168. package/fesm2022/aeris-ui-core-tree-table.mjs +2019 -940
  169. package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
  170. package/fesm2022/aeris-ui-core-tree.mjs +1107 -658
  171. package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
  172. package/fesm2022/aeris-ui-core.mjs +985 -316
  173. package/fesm2022/aeris-ui-core.mjs.map +1 -1
  174. package/package.json +20 -8
  175. package/schematics/ng-add/schema.json +1 -1
  176. package/schematics/runtime/schematics/ng-add/options.js +4 -4
  177. package/schematics/runtime/schematics/ng-add/options.js.map +1 -1
  178. package/schematics/runtime/schematics/ng-add/workspace.js +1 -1
  179. package/schematics/runtime/schematics/ng-add/workspace.js.map +1 -1
  180. package/schematics/runtime/theme-builder/aeris-contrast.js +6 -17
  181. package/schematics/runtime/theme-builder/aeris-contrast.js.map +1 -1
  182. package/schematics/runtime/theme-builder/aeris-foundation.js +10 -4
  183. package/schematics/runtime/theme-builder/aeris-foundation.js.map +1 -1
  184. package/schematics/runtime/theme-builder/aeris-semantic-tones.js +28 -5
  185. package/schematics/runtime/theme-builder/aeris-semantic-tones.js.map +1 -1
  186. package/schematics/runtime/theme-builder/aeris-theme-generator.js +2 -2
  187. package/schematics/runtime/theme-builder/aeris-theme-generator.js.map +1 -1
  188. package/schematics/runtime/theme-builder/aeris-theme-resolver.js +22 -8
  189. package/schematics/runtime/theme-builder/aeris-theme-resolver.js.map +1 -1
  190. package/schematics/runtime/theme-builder/aeris-theme-tokens.js +12 -4
  191. package/schematics/runtime/theme-builder/aeris-theme-tokens.js.map +1 -1
  192. package/schematics/runtime/theme-builder/aeris-theme-validation.js +7 -1
  193. package/schematics/runtime/theme-builder/aeris-theme-validation.js.map +1 -1
  194. package/schematics/runtime/theme-builder/aeris-theme.js +49 -33
  195. package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -1
  196. package/styles/_fallback-colors.scss +10 -0
  197. package/styles/_mobile.scss +16 -0
  198. package/styles/_tokens.scss +5 -5
  199. package/styles/aeris.css +412 -125
  200. package/styles/controls.css +61 -29
  201. package/tools/aeris-theme.mjs +2 -2
  202. package/tools/aeris-theme.schema.json +5 -2
  203. package/types/aeris-ui-core-accordion.d.ts +167 -93
  204. package/types/aeris-ui-core-animate-on-scroll.d.ts +72 -31
  205. package/types/aeris-ui-core-auto-complete.d.ts +327 -140
  206. package/types/aeris-ui-core-auto-focus.d.ts +24 -16
  207. package/types/aeris-ui-core-avatar.d.ts +112 -42
  208. package/types/aeris-ui-core-badge.d.ts +160 -46
  209. package/types/aeris-ui-core-block-ui.d.ts +47 -27
  210. package/types/aeris-ui-core-breadcrumb.d.ts +163 -92
  211. package/types/aeris-ui-core-button-group.d.ts +37 -16
  212. package/types/aeris-ui-core-button.d.ts +226 -67
  213. package/types/aeris-ui-core-card.d.ts +74 -37
  214. package/types/aeris-ui-core-carousel.d.ts +201 -117
  215. package/types/aeris-ui-core-cascade-select.d.ts +257 -123
  216. package/types/aeris-ui-core-chart.d.ts +134 -84
  217. package/types/aeris-ui-core-checkbox.d.ts +139 -54
  218. package/types/aeris-ui-core-chip.d.ts +116 -51
  219. package/types/aeris-ui-core-class-names.d.ts +22 -20
  220. package/types/aeris-ui-core-code-block.d.ts +188 -0
  221. package/types/aeris-ui-core-color-picker.d.ts +348 -143
  222. package/types/aeris-ui-core-compare.d.ts +224 -102
  223. package/types/aeris-ui-core-confirm-dialog.d.ts +442 -245
  224. package/types/aeris-ui-core-confirm-popup.d.ts +442 -263
  225. package/types/aeris-ui-core-context-menu.d.ts +264 -146
  226. package/types/aeris-ui-core-date-picker.d.ts +489 -217
  227. package/types/aeris-ui-core-dialog.d.ts +288 -117
  228. package/types/aeris-ui-core-divider.d.ts +58 -20
  229. package/types/aeris-ui-core-drawer.d.ts +273 -112
  230. package/types/aeris-ui-core-dynamic-dialog.d.ts +158 -137
  231. package/types/aeris-ui-core-editor.d.ts +250 -123
  232. package/types/aeris-ui-core-file-upload.d.ts +367 -197
  233. package/types/aeris-ui-core-filter-service.d.ts +48 -52
  234. package/types/aeris-ui-core-fluid.d.ts +12 -9
  235. package/types/aeris-ui-core-focus-trap.d.ts +39 -31
  236. package/types/aeris-ui-core-form-field.d.ts +163 -0
  237. package/types/aeris-ui-core-galleria.d.ts +588 -256
  238. package/types/aeris-ui-core-glass.d.ts +24 -11
  239. package/types/aeris-ui-core-icon-field.d.ts +94 -32
  240. package/types/aeris-ui-core-inplace.d.ts +123 -62
  241. package/types/aeris-ui-core-input-group.d.ts +84 -33
  242. package/types/aeris-ui-core-input-mask.d.ts +194 -69
  243. package/types/aeris-ui-core-input-number.d.ts +272 -87
  244. package/types/aeris-ui-core-input-otp.d.ts +191 -81
  245. package/types/aeris-ui-core-input-text.d.ts +185 -60
  246. package/types/aeris-ui-core-key-filter.d.ts +53 -39
  247. package/types/aeris-ui-core-mega-menu.d.ts +175 -121
  248. package/types/aeris-ui-core-menu.d.ts +277 -168
  249. package/types/aeris-ui-core-menubar.d.ts +273 -135
  250. package/types/aeris-ui-core-message.d.ts +132 -60
  251. package/types/aeris-ui-core-meter-group.d.ts +163 -90
  252. package/types/aeris-ui-core-multi-select.d.ts +439 -180
  253. package/types/aeris-ui-core-order-list.d.ts +144 -66
  254. package/types/aeris-ui-core-organization-chart.d.ts +133 -77
  255. package/types/aeris-ui-core-paginator.d.ts +93 -38
  256. package/types/aeris-ui-core-panel.d.ts +149 -78
  257. package/types/aeris-ui-core-password.d.ts +258 -102
  258. package/types/aeris-ui-core-pick-list.d.ts +374 -179
  259. package/types/aeris-ui-core-popover.d.ts +219 -105
  260. package/types/aeris-ui-core-progress-bar.d.ts +157 -73
  261. package/types/aeris-ui-core-progress-spinner.d.ts +110 -48
  262. package/types/aeris-ui-core-radio-button.d.ts +124 -50
  263. package/types/aeris-ui-core-rating.d.ts +149 -76
  264. package/types/aeris-ui-core-scroll-panel.d.ts +142 -64
  265. package/types/aeris-ui-core-scroll-top.d.ts +66 -29
  266. package/types/aeris-ui-core-select.d.ts +475 -217
  267. package/types/aeris-ui-core-skeleton.d.ts +39 -17
  268. package/types/aeris-ui-core-slider.d.ts +270 -115
  269. package/types/aeris-ui-core-speed-dial.d.ts +241 -111
  270. package/types/aeris-ui-core-split-button.d.ts +267 -113
  271. package/types/aeris-ui-core-splitter.d.ts +225 -106
  272. package/types/aeris-ui-core-stepper.d.ts +184 -91
  273. package/types/aeris-ui-core-style-class.d.ts +141 -71
  274. package/types/aeris-ui-core-table.d.ts +596 -304
  275. package/types/aeris-ui-core-tabs.d.ts +181 -76
  276. package/types/aeris-ui-core-textarea.d.ts +261 -78
  277. package/types/aeris-ui-core-theme-builder.d.ts +472 -450
  278. package/types/aeris-ui-core-theming.d.ts +42 -45
  279. package/types/aeris-ui-core-tiered-menu.d.ts +251 -142
  280. package/types/aeris-ui-core-timeline.d.ts +109 -71
  281. package/types/aeris-ui-core-toast.d.ts +225 -115
  282. package/types/aeris-ui-core-toggle-switch.d.ts +125 -51
  283. package/types/aeris-ui-core-toolbar.d.ts +98 -41
  284. package/types/aeris-ui-core-tooltip.d.ts +157 -88
  285. package/types/aeris-ui-core-tree-select.d.ts +364 -171
  286. package/types/aeris-ui-core-tree-table.d.ts +566 -286
  287. package/types/aeris-ui-core-tree.d.ts +270 -165
  288. package/types/aeris-ui-core.d.ts +197 -72
package/README.md CHANGED
@@ -1,191 +1,200 @@
1
- # @aeris-ui/core
2
-
3
- Angular 22 UI components with accessible behavior, signal-based APIs, secondary entry points,
4
- and CSS custom property theming.
5
-
6
- > **Prerelease:** Aeris UI is alpha software and is not production ready. Pin the exact prerelease
7
- > version and review the changelog when updating.
8
-
9
- The package is available on npm as [`@aeris-ui/core`](https://www.npmjs.com/package/@aeris-ui/core).
10
-
11
- ## Setup
12
-
13
- Use the Angular initializer for guided or reproducible setup:
14
-
15
- ```bash
16
- ng add @aeris-ui/core@22.0.0-alpha.1
17
- ```
18
-
19
- It configures an application project, theme or custom palette seeds, built-in density and corners,
20
- light/dark support, runtime or build-time theming, mode persistence, initial direction, style order,
21
- and framework detection. Use a schema-backed setup file for repeatable installation:
22
-
23
- ```bash
24
- ng add @aeris-ui/core@22.0.0-alpha.1 --config=aeris.setup.json
25
- ```
26
-
27
- ```json
28
- {
29
- "$schema": "./node_modules/@aeris-ui/core/setup-config.schema.json",
30
- "theme": { "preset": "coastal" },
31
- "density": "medium",
32
- "corners": "rounded",
33
- "schemes": "both",
34
- "defaultMode": "system",
35
- "strategy": "runtime",
36
- "persistMode": true,
37
- "direction": "ltr"
38
- }
39
- ```
40
-
41
- For manual runtime setup:
42
-
43
- ```ts
44
- import { ApplicationConfig } from '@angular/core';
45
- import { AERIS_THEME_PRESETS, provideAeris } from '@aeris-ui/core/theming';
46
-
47
- export const appConfig: ApplicationConfig = {
48
- providers: [
49
- provideAeris({
50
- mode: 'system',
51
- theme: AERIS_THEME_PRESETS.coastal,
52
- }),
53
- ],
54
- };
55
- ```
56
-
57
- Choose `earth`, `coastal`, `orchid`, or `monochrome`. Omit `theme` to use Aeris Earth, the default starter
58
- theme, or provide a custom `AerisThemeOverride` when the application needs its own palette.
59
-
60
- ```css
61
- @import '@aeris-ui/core/styles/aeris.css';
62
- @import '@aeris-ui/core/styles/controls.css';
63
- ```
64
-
65
- ## Tailwind CSS and Bootstrap
66
-
67
- Aeris can be used alongside Tailwind CSS 4 and Bootstrap 5.3. Aeris owns only
68
- `aeris-` prefixed selectors, custom elements, and `--aeris-` custom properties,
69
- so it does not reset or restyle application markup. Load the framework first and
70
- the Aeris styles afterward so Tailwind Preflight or Bootstrap Reboot runs before
71
- Aeris styles its native controls.
72
-
73
- ```css
74
- /* Tailwind CSS */
75
- @import 'tailwindcss';
76
- @import '@aeris-ui/core/styles/aeris.css';
77
- @import '@aeris-ui/core/styles/controls.css';
78
- ```
79
-
80
- ```css
81
- /* Bootstrap */
82
- @import 'bootstrap/dist/css/bootstrap.min.css';
83
- @import '@aeris-ui/core/styles/aeris.css';
84
- @import '@aeris-ui/core/styles/controls.css';
85
- ```
86
-
87
- Framework layout and spacing utilities can be used around Aeris components.
88
- Avoid applying two component systems to the same native element, such as adding
89
- Bootstrap's `btn` class to a button that also uses `aerisButton`.
90
-
91
- All Aeris components are designed for narrow viewports. Controls stay within
92
- their containers, overlays stay within the viewport, navigation adapts on small
93
- screens, and dense data components provide stacking or contained scrolling.
94
-
95
- ## Security
96
-
97
- Aeris treats interpolated content and URLs as untrusted and relies on Angular's
98
- context-aware escaping and sanitization. The Editor additionally sanitizes HTML
99
- before importing supported rich-text nodes. Aeris does not call any
100
- `bypassSecurityTrust*` API.
101
-
102
- FileUpload validation is client-side feedback, not a server security boundary.
103
- Applications must validate file signatures, size, authorization, names, and
104
- content on the server before storage or processing. Table CSV exports quote every
105
- field, neutralize spreadsheet formula prefixes, and sanitize download filenames.
106
-
107
- Applications should still deploy Angular's recommended Content Security Policy
108
- and Trusted Types configuration as defense in depth.
109
-
110
- Report suspected vulnerabilities privately according to the repository
111
- [security policy](https://github.com/Aeris-UI/AerisUI/security/policy).
112
-
113
- ## Theming
114
-
115
- Official starter themes and custom themes use the same configuration property. A preset can be
116
- combined with the shared density and radius options:
117
-
118
- ```ts
119
- provideAeris({
120
- mode: 'system',
121
- theme: {
122
- ...AERIS_THEME_PRESETS.orchid,
123
- density: 'compact',
124
- radius: 'soft',
125
- },
126
- });
127
- ```
128
-
129
- The palette drives both light and dark semantic tokens. Change modes at runtime with
130
- `AerisThemeService.setMode()`. Mode selection is persisted by default. In Angular development
131
- mode, runtime themes are checked for unsafe values, missing scales, and WCAG contrast problems;
132
- the structured `validateAerisTheme()` report is also available for tests and custom tooling. Set
133
- `themeValidation: false` when an application intentionally uses a different review policy.
134
-
135
- ### Build-time theme CSS
136
-
137
- Applications with a fixed theme can generate the complete token stylesheet before the Angular
138
- build. This avoids runtime theme calculation while preserving light, dark, and system modes.
139
-
140
- ```json
141
- {
142
- "$schema": "./node_modules/@aeris-ui/core/theme-config.schema.json",
143
- "derivationVersion": 1,
144
- "preset": "coastal",
145
- "output": "src/styles/aeris-theme.css",
146
- "theme": {
147
- "density": "compact",
148
- "radius": "soft"
149
- }
150
- }
151
- ```
152
-
153
- ```bash
154
- npx aeris-theme --config aeris.theme.json
155
- ```
156
-
157
- Load the generated file after `aeris.css` and `controls.css`. The generator validates both color
158
- schemes and exits with an error for failed or unresolved contrast checks, unsafe CSS values, or
159
- missing selected scales. The pinned derivation version prevents a package update from silently
160
- changing existing generated colors; review and update it only when release notes announce a new
161
- color derivation contract. Set `css.validateContrast` to `false` only when contrast enforcement is
162
- intentionally handled elsewhere; CSS-safety and structural checks remain enabled. Use
163
- `@aeris-ui/core/theme-builder` for the equivalent framework-free
164
- programmatic API. Keep `provideAeris` when the application needs persisted runtime customization.
165
-
166
- Ordinary text stays achromatic through `--aeris-text`, `--aeris-text-2`, and
167
- `--aeris-text-3`, while the selected palette shapes surfaces, borders, focus, and semantic
168
- states. Use contrast-aware tokens such as `--aeris-primary-text` or `--aeris-success-text`
169
- when colored text is intentional, and paired tokens such as `--aeris-on-primary` for content
170
- on filled semantic backgrounds.
171
-
172
- ```ts
173
- const theme = inject(AerisThemeService);
174
- theme.setMode('dark');
175
- ```
176
-
177
- ## Button
178
-
179
- ```ts
180
- import { AerisButton } from '@aeris-ui/core/button';
181
- ```
182
-
183
- ```html
184
- <button aerisButton>Save changes</button>
185
- <button aerisButton variant="secondary" size="sm">Cancel</button>
186
- ```
187
-
188
- ## License
189
-
190
- MIT. See the repository [license](https://github.com/Aeris-UI/AerisUI/blob/main/LICENSE) and
191
- [third-party notices](https://github.com/Aeris-UI/AerisUI/blob/main/THIRD_PARTY_LICENSES.md).
1
+ # @aeris-ui/core
2
+
3
+ Angular 22 UI components with accessible behavior, signal-based APIs, secondary entry points,
4
+ and CSS custom property theming.
5
+
6
+ > **Prerelease:** Aeris UI is alpha software and is not production ready. Pin the exact prerelease
7
+ > version and review the changelog when updating.
8
+
9
+ The package is available on npm as [`@aeris-ui/core`](https://www.npmjs.com/package/@aeris-ui/core).
10
+
11
+ ## Setup
12
+
13
+ CodeBlock has an optional [Shiki](https://shiki.style/) peer dependency:
14
+
15
+ ```bash
16
+ npm install shiki
17
+ ```
18
+
19
+ Install it only when importing `@aeris-ui/core/code-block`. Highlighting is lazy-loaded;
20
+ other Aeris components do not require or load Shiki.
21
+
22
+ Use the Angular initializer for guided or reproducible setup:
23
+
24
+ ```bash
25
+ ng add @aeris-ui/core@22.0.0-alpha.10
26
+ ```
27
+
28
+ It configures an application project, theme or custom palette seeds, built-in density and corners,
29
+ light/dark support, runtime or build-time theming, mode persistence, initial direction, style order,
30
+ and framework detection. Use a schema-backed setup file for repeatable installation:
31
+
32
+ ```bash
33
+ ng add @aeris-ui/core@22.0.0-alpha.10 --config=aeris.setup.json
34
+ ```
35
+
36
+ ```json
37
+ {
38
+ "$schema": "./node_modules/@aeris-ui/core/setup-config.schema.json",
39
+ "theme": { "preset": "coastal" },
40
+ "density": "medium",
41
+ "corners": "rounded",
42
+ "schemes": "both",
43
+ "defaultMode": "system",
44
+ "strategy": "runtime",
45
+ "persistMode": true,
46
+ "direction": "ltr"
47
+ }
48
+ ```
49
+
50
+ For manual runtime setup:
51
+
52
+ ```ts
53
+ import { ApplicationConfig } from '@angular/core';
54
+ import { AERIS_THEME_PRESETS, provideAeris } from '@aeris-ui/core/theming';
55
+
56
+ export const appConfig: ApplicationConfig = {
57
+ providers: [
58
+ provideAeris({
59
+ mode: 'system',
60
+ theme: AERIS_THEME_PRESETS.coastal,
61
+ }),
62
+ ],
63
+ };
64
+ ```
65
+
66
+ Choose `monochrome`, `earth`, `coastal`, or `orchid`. Omit `theme` to use Monochrome, the default starter
67
+ theme, or provide a custom `AerisThemeOverride` when the application needs its own palette.
68
+
69
+ ```css
70
+ @import '@aeris-ui/core/styles/aeris.css';
71
+ @import '@aeris-ui/core/styles/controls.css';
72
+ ```
73
+
74
+ ## Tailwind CSS and Bootstrap
75
+
76
+ Aeris can be used alongside Tailwind CSS 4 and Bootstrap 5.3. Aeris owns only
77
+ `aeris-` prefixed selectors, custom elements, and `--aeris-` custom properties,
78
+ so it does not reset or restyle application markup. Load the framework first and
79
+ the Aeris styles afterward so Tailwind Preflight or Bootstrap Reboot runs before
80
+ Aeris styles its native controls.
81
+
82
+ ```css
83
+ /* Tailwind CSS */
84
+ @import 'tailwindcss';
85
+ @import '@aeris-ui/core/styles/aeris.css';
86
+ @import '@aeris-ui/core/styles/controls.css';
87
+ ```
88
+
89
+ ```css
90
+ /* Bootstrap */
91
+ @import 'bootstrap/dist/css/bootstrap.min.css';
92
+ @import '@aeris-ui/core/styles/aeris.css';
93
+ @import '@aeris-ui/core/styles/controls.css';
94
+ ```
95
+
96
+ Framework layout and spacing utilities can be used around Aeris components.
97
+ Avoid applying two component systems to the same native element, such as adding
98
+ Bootstrap's `btn` class to a button that also uses `aerisButton`.
99
+
100
+ All Aeris components are designed for narrow viewports. Controls stay within
101
+ their containers, overlays stay within the viewport, navigation adapts on small
102
+ screens, and dense data components provide stacking or contained scrolling.
103
+
104
+ ## Security
105
+
106
+ Aeris treats interpolated content and URLs as untrusted and relies on Angular's
107
+ context-aware escaping and sanitization. The Editor additionally sanitizes HTML
108
+ before importing supported rich-text nodes. Aeris does not call any
109
+ `bypassSecurityTrust*` API.
110
+
111
+ FileUpload validation is client-side feedback, not a server security boundary.
112
+ Applications must validate file signatures, size, authorization, names, and
113
+ content on the server before storage or processing. Table CSV exports quote every
114
+ field, neutralize spreadsheet formula prefixes, and sanitize download filenames.
115
+
116
+ Applications should still deploy Angular's recommended Content Security Policy
117
+ and Trusted Types configuration as defense in depth.
118
+
119
+ Report suspected vulnerabilities privately according to the repository
120
+ [security policy](https://github.com/Aeris-UI/AerisUI/security/policy).
121
+
122
+ ## Theming
123
+
124
+ Official starter themes and custom themes use the same configuration property. A preset can be
125
+ combined with the shared density and radius options:
126
+
127
+ ```ts
128
+ provideAeris({
129
+ mode: 'system',
130
+ theme: {
131
+ ...AERIS_THEME_PRESETS.orchid,
132
+ density: 'compact',
133
+ radius: 'soft',
134
+ },
135
+ });
136
+ ```
137
+
138
+ The palette drives both light and dark semantic tokens. Change modes at runtime with
139
+ `AerisThemeService.setMode()`. Mode selection is persisted by default. In Angular development
140
+ mode, runtime themes are checked for unsafe values, missing scales, and WCAG contrast problems;
141
+ the structured `validateAerisTheme()` report is also available for tests and custom tooling. Set
142
+ `themeValidation: false` when an application intentionally uses a different review policy.
143
+
144
+ ### Build-time theme CSS
145
+
146
+ Applications with a fixed theme can generate the complete token stylesheet before the Angular
147
+ build. This avoids runtime theme calculation while preserving light, dark, and system modes.
148
+
149
+ ```json
150
+ {
151
+ "$schema": "./node_modules/@aeris-ui/core/theme-config.schema.json",
152
+ "derivationVersion": 1,
153
+ "preset": "coastal",
154
+ "output": "src/styles/aeris-theme.css",
155
+ "theme": {
156
+ "density": "compact",
157
+ "radius": "soft"
158
+ }
159
+ }
160
+ ```
161
+
162
+ ```bash
163
+ npx aeris-theme --config aeris.theme.json
164
+ ```
165
+
166
+ Load the generated file after `aeris.css` and `controls.css`. The generator validates both color
167
+ schemes and exits with an error for failed or unresolved contrast checks, unsafe CSS values, or
168
+ missing selected scales. The pinned derivation version prevents a package update from silently
169
+ changing existing generated colors; review and update it only when release notes announce a new
170
+ color derivation contract. Set `css.validateContrast` to `false` only when contrast enforcement is
171
+ intentionally handled elsewhere; CSS-safety and structural checks remain enabled. Use
172
+ `@aeris-ui/core/theme-builder` for the equivalent framework-free
173
+ programmatic API. Keep `provideAeris` when the application needs persisted runtime customization.
174
+
175
+ Ordinary text stays achromatic through `--aeris-text`, `--aeris-text-2`, and
176
+ `--aeris-text-3`, while the selected palette shapes surfaces, borders, focus, and semantic
177
+ states. Use contrast-aware tokens such as `--aeris-primary-text` or `--aeris-success-text`
178
+ when colored text is intentional, and paired tokens such as `--aeris-on-primary` for content
179
+ on filled semantic backgrounds.
180
+
181
+ ```ts
182
+ const theme = inject(AerisThemeService);
183
+ theme.setMode('dark');
184
+ ```
185
+
186
+ ## Button
187
+
188
+ ```ts
189
+ import { AerisButton } from '@aeris-ui/core/button';
190
+ ```
191
+
192
+ ```html
193
+ <button aerisButton>Save changes</button>
194
+ <button aerisButton variant="secondary" size="sm">Cancel</button>
195
+ ```
196
+
197
+ ## License
198
+
199
+ MIT. See the repository [license](https://github.com/Aeris-UI/AerisUI/blob/main/LICENSE) and
200
+ [third-party notices](https://github.com/Aeris-UI/AerisUI/blob/main/THIRD_PARTY_LICENSES.md).