@educarehq/solaris-ui 0.1.0 → 0.2.0

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 (393) hide show
  1. package/educarehq-solaris-ui.d.ts +5 -0
  2. package/esm2022/educarehq-solaris-ui.js +5 -0
  3. package/esm2022/educarehq-solaris-ui.js.map +1 -0
  4. package/esm2022/index.js +70 -0
  5. package/esm2022/index.js.map +1 -0
  6. package/esm2022/lib/components/actions/button/directives/button-icon.directive.js +17 -0
  7. package/esm2022/lib/components/actions/button/directives/button-icon.directive.js.map +1 -0
  8. package/esm2022/lib/components/actions/button/directives/button.directive.js +60 -0
  9. package/esm2022/lib/components/actions/button/directives/button.directive.js.map +1 -0
  10. package/esm2022/lib/components/actions/button/model/button.types.js +1 -0
  11. package/esm2022/lib/components/actions/button/model/button.types.js.map +1 -0
  12. package/esm2022/lib/components/actions/button-group/component/button-group.component.js +21 -0
  13. package/esm2022/lib/components/actions/button-group/component/button-group.component.js.map +1 -0
  14. package/esm2022/lib/components/actions/button-group/model/button-group.types.js +1 -0
  15. package/esm2022/lib/components/actions/button-group/model/button-group.types.js.map +1 -0
  16. package/esm2022/lib/components/actions/icon-button/directives/icon-button-badge.directive.js +17 -0
  17. package/esm2022/lib/components/actions/icon-button/directives/icon-button-badge.directive.js.map +1 -0
  18. package/esm2022/lib/components/actions/icon-button/directives/icon-button.directive.js +58 -0
  19. package/esm2022/lib/components/actions/icon-button/directives/icon-button.directive.js.map +1 -0
  20. package/esm2022/lib/components/actions/icon-button/model/icon-button.types.js +1 -0
  21. package/esm2022/lib/components/actions/icon-button/model/icon-button.types.js.map +1 -0
  22. package/esm2022/lib/components/data-display/badge/component/badge.component.js +24 -0
  23. package/esm2022/lib/components/data-display/badge/component/badge.component.js.map +1 -0
  24. package/esm2022/lib/components/data-display/badge/directives/badge-icon.directive.js +17 -0
  25. package/esm2022/lib/components/data-display/badge/directives/badge-icon.directive.js.map +1 -0
  26. package/esm2022/lib/components/data-display/badge/model/badge.types.js +1 -0
  27. package/esm2022/lib/components/data-display/badge/model/badge.types.js.map +1 -0
  28. package/esm2022/lib/components/data-display/card/component/card.component.js +20 -0
  29. package/esm2022/lib/components/data-display/card/component/card.component.js.map +1 -0
  30. package/esm2022/lib/components/data-display/card/directives/card-actions.directive.js +17 -0
  31. package/esm2022/lib/components/data-display/card/directives/card-actions.directive.js.map +1 -0
  32. package/esm2022/lib/components/data-display/card/directives/card-content.directive.js +17 -0
  33. package/esm2022/lib/components/data-display/card/directives/card-content.directive.js.map +1 -0
  34. package/esm2022/lib/components/data-display/card/directives/card-description.directive.js +17 -0
  35. package/esm2022/lib/components/data-display/card/directives/card-description.directive.js.map +1 -0
  36. package/esm2022/lib/components/data-display/card/directives/card-footer.directive.js +19 -0
  37. package/esm2022/lib/components/data-display/card/directives/card-footer.directive.js.map +1 -0
  38. package/esm2022/lib/components/data-display/card/directives/card-header.directive.js +17 -0
  39. package/esm2022/lib/components/data-display/card/directives/card-header.directive.js.map +1 -0
  40. package/esm2022/lib/components/data-display/card/directives/card-media.directive.js +17 -0
  41. package/esm2022/lib/components/data-display/card/directives/card-media.directive.js.map +1 -0
  42. package/esm2022/lib/components/data-display/card/directives/card-title.directive.js +17 -0
  43. package/esm2022/lib/components/data-display/card/directives/card-title.directive.js.map +1 -0
  44. package/esm2022/lib/components/data-display/card/model/card.types.js +1 -0
  45. package/esm2022/lib/components/data-display/card/model/card.types.js.map +1 -0
  46. package/esm2022/lib/components/feedback/alert/component/alert-actions.component.js +18 -0
  47. package/esm2022/lib/components/feedback/alert/component/alert-actions.component.js.map +1 -0
  48. package/esm2022/lib/components/feedback/alert/component/alert.component.js +90 -0
  49. package/esm2022/lib/components/feedback/alert/component/alert.component.js.map +1 -0
  50. package/esm2022/lib/components/feedback/alert/directives/alert-description.directive.js +17 -0
  51. package/esm2022/lib/components/feedback/alert/directives/alert-description.directive.js.map +1 -0
  52. package/esm2022/lib/components/feedback/alert/directives/alert-title.directive.js +17 -0
  53. package/esm2022/lib/components/feedback/alert/directives/alert-title.directive.js.map +1 -0
  54. package/esm2022/lib/components/feedback/alert/model/alert.types.js +1 -0
  55. package/esm2022/lib/components/feedback/alert/model/alert.types.js.map +1 -0
  56. package/esm2022/lib/components/feedback/skeleton/component/skeleton.component.js +69 -0
  57. package/esm2022/lib/components/feedback/skeleton/component/skeleton.component.js.map +1 -0
  58. package/esm2022/lib/components/feedback/skeleton/model/skeleton.types.js +1 -0
  59. package/esm2022/lib/components/feedback/skeleton/model/skeleton.types.js.map +1 -0
  60. package/esm2022/lib/components/forms/checkbox/component/checkbox.component.js +227 -0
  61. package/esm2022/lib/components/forms/checkbox/component/checkbox.component.js.map +1 -0
  62. package/esm2022/lib/components/forms/checkbox/model/checkbox.types.js +1 -0
  63. package/esm2022/lib/components/forms/checkbox/model/checkbox.types.js.map +1 -0
  64. package/esm2022/lib/components/forms/checkbox-group/component/checkbox-group.component.js +441 -0
  65. package/esm2022/lib/components/forms/checkbox-group/component/checkbox-group.component.js.map +1 -0
  66. package/esm2022/lib/components/forms/checkbox-group/model/checkbox-group.types.js +1 -0
  67. package/esm2022/lib/components/forms/checkbox-group/model/checkbox-group.types.js.map +1 -0
  68. package/esm2022/lib/components/forms/email-field/component/email-field.component.js +214 -0
  69. package/esm2022/lib/components/forms/email-field/component/email-field.component.js.map +1 -0
  70. package/esm2022/lib/components/forms/email-field/model/email-field.types.js +1 -0
  71. package/esm2022/lib/components/forms/email-field/model/email-field.types.js.map +1 -0
  72. package/esm2022/lib/components/forms/email-field/validators/email-field.validators.js +69 -0
  73. package/esm2022/lib/components/forms/email-field/validators/email-field.validators.js.map +1 -0
  74. package/esm2022/lib/components/forms/form-field/component/form-error.component.js +19 -0
  75. package/esm2022/lib/components/forms/form-field/component/form-error.component.js.map +1 -0
  76. package/esm2022/lib/components/forms/form-field/component/form-field.component.js +394 -0
  77. package/esm2022/lib/components/forms/form-field/component/form-field.component.js.map +1 -0
  78. package/esm2022/lib/components/forms/form-field/component/form-hint.component.js +18 -0
  79. package/esm2022/lib/components/forms/form-field/component/form-hint.component.js.map +1 -0
  80. package/esm2022/lib/components/forms/form-field/component/form-label.component.js +18 -0
  81. package/esm2022/lib/components/forms/form-field/component/form-label.component.js.map +1 -0
  82. package/esm2022/lib/components/forms/form-field/directives/form-field-trigger.directive.js +14 -0
  83. package/esm2022/lib/components/forms/form-field/directives/form-field-trigger.directive.js.map +1 -0
  84. package/esm2022/lib/components/forms/form-field/directives/form-prefix.directive.js +17 -0
  85. package/esm2022/lib/components/forms/form-field/directives/form-prefix.directive.js.map +1 -0
  86. package/esm2022/lib/components/forms/form-field/directives/form-suffix.directive.js +17 -0
  87. package/esm2022/lib/components/forms/form-field/directives/form-suffix.directive.js.map +1 -0
  88. package/esm2022/lib/components/forms/form-field/index.js +8 -0
  89. package/esm2022/lib/components/forms/form-field/index.js.map +1 -0
  90. package/esm2022/lib/components/forms/form-field/model/form-control.contract.js +3 -0
  91. package/esm2022/lib/components/forms/form-field/model/form-control.contract.js.map +1 -0
  92. package/esm2022/lib/components/forms/form-field/model/form-field.types.js +1 -0
  93. package/esm2022/lib/components/forms/form-field/model/form-field.types.js.map +1 -0
  94. package/esm2022/lib/components/forms/input/directives/input.directive.js +148 -0
  95. package/esm2022/lib/components/forms/input/directives/input.directive.js.map +1 -0
  96. package/esm2022/lib/components/forms/input/index.js +2 -0
  97. package/esm2022/lib/components/forms/input/index.js.map +1 -0
  98. package/esm2022/lib/components/forms/input/model/input.defaults.js +27 -0
  99. package/esm2022/lib/components/forms/input/model/input.defaults.js.map +1 -0
  100. package/esm2022/lib/components/forms/input/model/input.types.js +1 -0
  101. package/esm2022/lib/components/forms/input/model/input.types.js.map +1 -0
  102. package/esm2022/lib/components/forms/multi-select/component/multi-select.component.js +1119 -0
  103. package/esm2022/lib/components/forms/multi-select/component/multi-select.component.js.map +1 -0
  104. package/esm2022/lib/components/forms/multi-select/model/multi-select.types.js +1 -0
  105. package/esm2022/lib/components/forms/multi-select/model/multi-select.types.js.map +1 -0
  106. package/esm2022/lib/components/forms/option/component/option.component.js +149 -0
  107. package/esm2022/lib/components/forms/option/component/option.component.js.map +1 -0
  108. package/esm2022/lib/components/forms/option/directives/option-slots.directive.js +58 -0
  109. package/esm2022/lib/components/forms/option/directives/option-slots.directive.js.map +1 -0
  110. package/esm2022/lib/components/forms/option/index.js +3 -0
  111. package/esm2022/lib/components/forms/option/index.js.map +1 -0
  112. package/esm2022/lib/components/forms/option/model/option.types.js +1 -0
  113. package/esm2022/lib/components/forms/option/model/option.types.js.map +1 -0
  114. package/esm2022/lib/components/forms/option-group/component/option-group.component.js +103 -0
  115. package/esm2022/lib/components/forms/option-group/component/option-group.component.js.map +1 -0
  116. package/esm2022/lib/components/forms/option-group/index.js +2 -0
  117. package/esm2022/lib/components/forms/option-group/index.js.map +1 -0
  118. package/esm2022/lib/components/forms/option-group/model/option-group.types.js +1 -0
  119. package/esm2022/lib/components/forms/option-group/model/option-group.types.js.map +1 -0
  120. package/esm2022/lib/components/forms/password-field/component/password-field.component.js +299 -0
  121. package/esm2022/lib/components/forms/password-field/component/password-field.component.js.map +1 -0
  122. package/esm2022/lib/components/forms/password-field/model/password-field-constants.js +5 -0
  123. package/esm2022/lib/components/forms/password-field/model/password-field-constants.js.map +1 -0
  124. package/esm2022/lib/components/forms/password-field/model/password-field.types.js +1 -0
  125. package/esm2022/lib/components/forms/password-field/model/password-field.types.js.map +1 -0
  126. package/esm2022/lib/components/forms/password-field/model/password-policy.types.js +1 -0
  127. package/esm2022/lib/components/forms/password-field/model/password-policy.types.js.map +1 -0
  128. package/esm2022/lib/components/forms/password-field/model/password-strength.js +67 -0
  129. package/esm2022/lib/components/forms/password-field/model/password-strength.js.map +1 -0
  130. package/esm2022/lib/components/forms/password-field/validators/password.validator.js +45 -0
  131. package/esm2022/lib/components/forms/password-field/validators/password.validator.js.map +1 -0
  132. package/esm2022/lib/components/forms/radio/component/radio.component.js +219 -0
  133. package/esm2022/lib/components/forms/radio/component/radio.component.js.map +1 -0
  134. package/esm2022/lib/components/forms/radio/model/radio.types.js +1 -0
  135. package/esm2022/lib/components/forms/radio/model/radio.types.js.map +1 -0
  136. package/esm2022/lib/components/forms/radio-group/component/radio-group.component.js +348 -0
  137. package/esm2022/lib/components/forms/radio-group/component/radio-group.component.js.map +1 -0
  138. package/esm2022/lib/components/forms/radio-group/model/radio-group.token.js +3 -0
  139. package/esm2022/lib/components/forms/radio-group/model/radio-group.token.js.map +1 -0
  140. package/esm2022/lib/components/forms/radio-group/model/radio-group.types.js +1 -0
  141. package/esm2022/lib/components/forms/radio-group/model/radio-group.types.js.map +1 -0
  142. package/esm2022/lib/components/forms/select/component/select.component.js +819 -0
  143. package/esm2022/lib/components/forms/select/component/select.component.js.map +1 -0
  144. package/esm2022/lib/components/forms/select/model/select.types.js +1 -0
  145. package/esm2022/lib/components/forms/select/model/select.types.js.map +1 -0
  146. package/esm2022/lib/components/forms/switch/component/switch.component.js +211 -0
  147. package/esm2022/lib/components/forms/switch/component/switch.component.js.map +1 -0
  148. package/esm2022/lib/components/forms/switch/index.js +2 -0
  149. package/esm2022/lib/components/forms/switch/index.js.map +1 -0
  150. package/esm2022/lib/components/forms/switch/model/switch.types.js +1 -0
  151. package/esm2022/lib/components/forms/switch/model/switch.types.js.map +1 -0
  152. package/esm2022/lib/components/forms/switch-group/component/switch-group.component.js +369 -0
  153. package/esm2022/lib/components/forms/switch-group/component/switch-group.component.js.map +1 -0
  154. package/esm2022/lib/components/forms/switch-group/model/switch-group.types.js +1 -0
  155. package/esm2022/lib/components/forms/switch-group/model/switch-group.types.js.map +1 -0
  156. package/esm2022/lib/components/forms/textarea/directives/textarea.directive.js +137 -0
  157. package/esm2022/lib/components/forms/textarea/directives/textarea.directive.js.map +1 -0
  158. package/esm2022/lib/components/forms/textarea/model/textarea.types.js +1 -0
  159. package/esm2022/lib/components/forms/textarea/model/textarea.types.js.map +1 -0
  160. package/esm2022/lib/components/icon/component/solaris-icon.component.js +20 -0
  161. package/esm2022/lib/components/icon/component/solaris-icon.component.js.map +1 -0
  162. package/esm2022/lib/components/icon/index.js +2 -0
  163. package/esm2022/lib/components/icon/index.js.map +1 -0
  164. package/esm2022/lib/components/interaction/popover/component/popover-panel.component.js +29 -0
  165. package/esm2022/lib/components/interaction/popover/component/popover-panel.component.js.map +1 -0
  166. package/esm2022/lib/components/interaction/popover/directives/popover-trigger.directive.js +317 -0
  167. package/esm2022/lib/components/interaction/popover/directives/popover-trigger.directive.js.map +1 -0
  168. package/esm2022/lib/components/interaction/popover/directives/popover.directive.js +16 -0
  169. package/esm2022/lib/components/interaction/popover/directives/popover.directive.js.map +1 -0
  170. package/esm2022/lib/components/interaction/popover/index.js +4 -0
  171. package/esm2022/lib/components/interaction/popover/index.js.map +1 -0
  172. package/esm2022/lib/components/interaction/popover/model/popover-position.js +145 -0
  173. package/esm2022/lib/components/interaction/popover/model/popover-position.js.map +1 -0
  174. package/esm2022/lib/components/interaction/popover/model/popover.types.js +1 -0
  175. package/esm2022/lib/components/interaction/popover/model/popover.types.js.map +1 -0
  176. package/esm2022/lib/components/interaction/popover/token/popover.tokens.js +3 -0
  177. package/esm2022/lib/components/interaction/popover/token/popover.tokens.js.map +1 -0
  178. package/esm2022/lib/components/interaction/tooltip/component/tooltip-panel.component.js +23 -0
  179. package/esm2022/lib/components/interaction/tooltip/component/tooltip-panel.component.js.map +1 -0
  180. package/esm2022/lib/components/interaction/tooltip/directive/tooltip.directive.js +405 -0
  181. package/esm2022/lib/components/interaction/tooltip/directive/tooltip.directive.js.map +1 -0
  182. package/esm2022/lib/components/interaction/tooltip/index.js +3 -0
  183. package/esm2022/lib/components/interaction/tooltip/index.js.map +1 -0
  184. package/esm2022/lib/components/interaction/tooltip/model/tooltip-position.js +209 -0
  185. package/esm2022/lib/components/interaction/tooltip/model/tooltip-position.js.map +1 -0
  186. package/esm2022/lib/components/interaction/tooltip/model/tooltip.types.js +1 -0
  187. package/esm2022/lib/components/interaction/tooltip/model/tooltip.types.js.map +1 -0
  188. package/esm2022/lib/components/interaction/tooltip/token/tooltip.tokens.js +3 -0
  189. package/esm2022/lib/components/interaction/tooltip/token/tooltip.tokens.js.map +1 -0
  190. package/esm2022/lib/services/accessibility/directives/visually-hidden.directive.js +25 -0
  191. package/esm2022/lib/services/accessibility/directives/visually-hidden.directive.js.map +1 -0
  192. package/esm2022/lib/services/accessibility/model/solaris-accessibility-config.interface.js +1 -0
  193. package/esm2022/lib/services/accessibility/model/solaris-accessibility-config.interface.js.map +1 -0
  194. package/esm2022/lib/services/accessibility/model/solaris-accessibility.types.js +1 -0
  195. package/esm2022/lib/services/accessibility/model/solaris-accessibility.types.js.map +1 -0
  196. package/esm2022/lib/services/accessibility/provider/provide-solaris-accessibility.js +10 -0
  197. package/esm2022/lib/services/accessibility/provider/provide-solaris-accessibility.js.map +1 -0
  198. package/esm2022/lib/services/accessibility/service/solaris-accessibility.service.js +60 -0
  199. package/esm2022/lib/services/accessibility/service/solaris-accessibility.service.js.map +1 -0
  200. package/esm2022/lib/services/accessibility/testing/solaris-accessibility-testing.provider.js +10 -0
  201. package/esm2022/lib/services/accessibility/testing/solaris-accessibility-testing.provider.js.map +1 -0
  202. package/esm2022/lib/services/accessibility/token/solaris-accessibility.tokens.js +3 -0
  203. package/esm2022/lib/services/accessibility/token/solaris-accessibility.tokens.js.map +1 -0
  204. package/esm2022/lib/services/icon/icons/index.js +2 -0
  205. package/esm2022/lib/services/icon/icons/index.js.map +1 -0
  206. package/esm2022/lib/services/icon/icons/solaris-built-in-icons.js +207 -0
  207. package/esm2022/lib/services/icon/icons/solaris-built-in-icons.js.map +1 -0
  208. package/esm2022/lib/services/icon/index.js +5 -0
  209. package/esm2022/lib/services/icon/index.js.map +1 -0
  210. package/esm2022/lib/services/icon/model/solaris-icon-definition.interface.js +1 -0
  211. package/esm2022/lib/services/icon/model/solaris-icon-definition.interface.js.map +1 -0
  212. package/esm2022/lib/services/icon/model/solaris-icon.types.js +1 -0
  213. package/esm2022/lib/services/icon/model/solaris-icon.types.js.map +1 -0
  214. package/esm2022/lib/services/icon/provider/provide-solaris-icons.js +10 -0
  215. package/esm2022/lib/services/icon/provider/provide-solaris-icons.js.map +1 -0
  216. package/esm2022/lib/services/icon/service/solaris-icon-registry.service.js +43 -0
  217. package/esm2022/lib/services/icon/service/solaris-icon-registry.service.js.map +1 -0
  218. package/esm2022/lib/services/icon/token/solaris-icon.tokens.js +3 -0
  219. package/esm2022/lib/services/icon/token/solaris-icon.tokens.js.map +1 -0
  220. package/esm2022/lib/services/theme/model/solaris-theme-config.interface.js +1 -0
  221. package/esm2022/lib/services/theme/model/solaris-theme-config.interface.js.map +1 -0
  222. package/esm2022/lib/services/theme/model/solaris-theme.types.js +1 -0
  223. package/esm2022/lib/services/theme/model/solaris-theme.types.js.map +1 -0
  224. package/esm2022/lib/services/theme/provider/provide-solaris-theme.js +10 -0
  225. package/esm2022/lib/services/theme/provider/provide-solaris-theme.js.map +1 -0
  226. package/esm2022/lib/services/theme/service/solaris-theme.service.js +22 -0
  227. package/esm2022/lib/services/theme/service/solaris-theme.service.js.map +1 -0
  228. package/esm2022/lib/services/theme/testing/solaris-theme-testing.provider.js +10 -0
  229. package/esm2022/lib/services/theme/testing/solaris-theme-testing.provider.js.map +1 -0
  230. package/esm2022/lib/services/theme/token/solaris-theme.tokens.js +3 -0
  231. package/esm2022/lib/services/theme/token/solaris-theme.tokens.js.map +1 -0
  232. package/esm2022/lib/services/translation/index.js +6 -0
  233. package/esm2022/lib/services/translation/index.js.map +1 -0
  234. package/esm2022/lib/services/translation/model/solaris-locale.types.js +1 -0
  235. package/esm2022/lib/services/translation/model/solaris-locale.types.js.map +1 -0
  236. package/esm2022/lib/services/translation/model/solaris-translate-config.interface.js +1 -0
  237. package/esm2022/lib/services/translation/model/solaris-translate-config.interface.js.map +1 -0
  238. package/esm2022/lib/services/translation/model/solaris-translate-defaults.js +40 -0
  239. package/esm2022/lib/services/translation/model/solaris-translate-defaults.js.map +1 -0
  240. package/esm2022/lib/services/translation/model/solaris-translation.types.js +1 -0
  241. package/esm2022/lib/services/translation/model/solaris-translation.types.js.map +1 -0
  242. package/esm2022/lib/services/translation/pipe/solaris-translate.pipe.js +20 -0
  243. package/esm2022/lib/services/translation/pipe/solaris-translate.pipe.js.map +1 -0
  244. package/esm2022/lib/services/translation/provider/provide-solaris-translate.js +10 -0
  245. package/esm2022/lib/services/translation/provider/provide-solaris-translate.js.map +1 -0
  246. package/esm2022/lib/services/translation/service/solaris-translate.service.js +87 -0
  247. package/esm2022/lib/services/translation/service/solaris-translate.service.js.map +1 -0
  248. package/esm2022/lib/services/translation/testing/solaris-translate-testing.provider.js +32 -0
  249. package/esm2022/lib/services/translation/testing/solaris-translate-testing.provider.js.map +1 -0
  250. package/esm2022/lib/services/translation/token/solaris-translate.tokens.js +3 -0
  251. package/esm2022/lib/services/translation/token/solaris-translate.tokens.js.map +1 -0
  252. package/esm2022/lib/testing/provide-solaris-testing.js +11 -0
  253. package/esm2022/lib/testing/provide-solaris-testing.js.map +1 -0
  254. package/esm2022/lib/testing/solaris-test-utilities.js +12 -0
  255. package/esm2022/lib/testing/solaris-test-utilities.js.map +1 -0
  256. package/index.d.ts +106 -0
  257. package/lib/components/actions/button/directives/button-icon.directive.d.ts +5 -0
  258. package/lib/components/actions/button/directives/button.directive.d.ts +22 -0
  259. package/lib/components/actions/button/model/button.types.d.ts +5 -0
  260. package/lib/components/actions/button-group/component/button-group.component.d.ts +10 -0
  261. package/lib/components/actions/button-group/model/button-group.types.d.ts +2 -0
  262. package/lib/components/actions/icon-button/directives/icon-button-badge.directive.d.ts +5 -0
  263. package/lib/components/actions/icon-button/directives/icon-button.directive.d.ts +21 -0
  264. package/lib/components/actions/icon-button/model/icon-button.types.d.ts +5 -0
  265. package/lib/components/data-display/badge/component/badge.component.d.ts +12 -0
  266. package/lib/components/data-display/badge/directives/badge-icon.directive.d.ts +5 -0
  267. package/lib/components/data-display/badge/model/badge.types.d.ts +6 -0
  268. package/lib/components/data-display/card/component/card.component.d.ts +10 -0
  269. package/lib/components/data-display/card/directives/card-actions.directive.d.ts +5 -0
  270. package/lib/components/data-display/card/directives/card-content.directive.d.ts +5 -0
  271. package/lib/components/data-display/card/directives/card-description.directive.d.ts +5 -0
  272. package/lib/components/data-display/card/directives/card-footer.directive.d.ts +6 -0
  273. package/lib/components/data-display/card/directives/card-header.directive.d.ts +5 -0
  274. package/lib/components/data-display/card/directives/card-media.directive.d.ts +5 -0
  275. package/lib/components/data-display/card/directives/card-title.directive.d.ts +5 -0
  276. package/lib/components/data-display/card/model/card.types.d.ts +4 -0
  277. package/lib/components/feedback/alert/component/alert-actions.component.d.ts +5 -0
  278. package/lib/components/feedback/alert/component/alert.component.d.ts +26 -0
  279. package/lib/components/feedback/alert/directives/alert-description.directive.d.ts +5 -0
  280. package/lib/components/feedback/alert/directives/alert-title.directive.d.ts +5 -0
  281. package/lib/components/feedback/alert/model/alert.types.d.ts +5 -0
  282. package/lib/components/feedback/skeleton/component/skeleton.component.d.ts +17 -0
  283. package/lib/components/feedback/skeleton/model/skeleton.types.d.ts +5 -0
  284. package/lib/components/forms/checkbox/component/checkbox.component.d.ts +70 -0
  285. package/lib/components/forms/checkbox/model/checkbox.types.d.ts +5 -0
  286. package/lib/components/forms/checkbox-group/component/checkbox-group.component.d.ts +123 -0
  287. package/lib/components/forms/checkbox-group/model/checkbox-group.types.d.ts +5 -0
  288. package/lib/components/forms/email-field/component/email-field.component.d.ts +66 -0
  289. package/lib/components/forms/email-field/model/email-field.types.d.ts +6 -0
  290. package/lib/components/forms/email-field/validators/email-field.validators.d.ts +8 -0
  291. package/lib/components/forms/form-field/component/form-error.component.d.ts +5 -0
  292. package/lib/components/forms/form-field/component/form-field.component.d.ts +90 -0
  293. package/lib/components/forms/form-field/component/form-hint.component.d.ts +5 -0
  294. package/lib/components/forms/form-field/component/form-label.component.d.ts +5 -0
  295. package/lib/components/forms/form-field/directives/form-field-trigger.directive.d.ts +5 -0
  296. package/lib/components/forms/form-field/directives/form-prefix.directive.d.ts +5 -0
  297. package/lib/components/forms/form-field/directives/form-suffix.directive.d.ts +5 -0
  298. package/lib/components/forms/form-field/index.d.ts +8 -0
  299. package/lib/components/forms/form-field/model/form-control.contract.d.ts +11 -0
  300. package/lib/components/forms/form-field/model/form-field.types.d.ts +5 -0
  301. package/lib/components/forms/input/directives/input.directive.d.ts +37 -0
  302. package/lib/components/forms/input/index.d.ts +2 -0
  303. package/lib/components/forms/input/model/input.defaults.d.ts +2 -0
  304. package/lib/components/forms/input/model/input.types.d.ts +4 -0
  305. package/lib/components/forms/multi-select/component/multi-select.component.d.ts +202 -0
  306. package/lib/components/forms/multi-select/model/multi-select.types.d.ts +5 -0
  307. package/lib/components/forms/option/component/option.component.d.ts +58 -0
  308. package/lib/components/forms/option/directives/option-slots.directive.d.ts +21 -0
  309. package/lib/components/forms/option/index.d.ts +3 -0
  310. package/lib/components/forms/option/model/option.types.d.ts +3 -0
  311. package/lib/components/forms/option-group/component/option-group.component.d.ts +32 -0
  312. package/lib/components/forms/option-group/index.d.ts +2 -0
  313. package/lib/components/forms/option-group/model/option-group.types.d.ts +2 -0
  314. package/lib/components/forms/password-field/component/password-field.component.d.ts +81 -0
  315. package/lib/components/forms/password-field/model/password-field-constants.d.ts +4 -0
  316. package/lib/components/forms/password-field/model/password-field.types.d.ts +6 -0
  317. package/lib/components/forms/password-field/model/password-policy.types.d.ts +10 -0
  318. package/lib/components/forms/password-field/model/password-strength.d.ts +2 -0
  319. package/lib/components/forms/password-field/validators/password.validator.d.ts +3 -0
  320. package/lib/components/forms/radio/component/radio.component.d.ts +68 -0
  321. package/lib/components/forms/radio/model/radio.types.d.ts +4 -0
  322. package/lib/components/forms/radio-group/component/radio-group.component.d.ts +86 -0
  323. package/lib/components/forms/radio-group/model/radio-group.token.d.ts +2 -0
  324. package/lib/components/forms/radio-group/model/radio-group.types.d.ts +5 -0
  325. package/lib/components/forms/select/component/select.component.d.ts +158 -0
  326. package/lib/components/forms/select/model/select.types.d.ts +4 -0
  327. package/lib/components/forms/switch/component/switch.component.d.ts +66 -0
  328. package/lib/components/forms/switch/index.d.ts +2 -0
  329. package/lib/components/forms/switch/model/switch.types.d.ts +4 -0
  330. package/lib/components/forms/switch-group/component/switch-group.component.d.ts +91 -0
  331. package/lib/components/forms/switch-group/model/switch-group.types.d.ts +5 -0
  332. package/lib/components/forms/textarea/directives/textarea.directive.d.ts +37 -0
  333. package/lib/components/forms/textarea/model/textarea.types.d.ts +5 -0
  334. package/lib/components/icon/component/solaris-icon.component.d.ts +13 -0
  335. package/lib/components/icon/index.d.ts +1 -0
  336. package/lib/components/interaction/popover/component/popover-panel.component.d.ts +10 -0
  337. package/lib/components/interaction/popover/directives/popover-trigger.directive.d.ts +65 -0
  338. package/lib/components/interaction/popover/directives/popover.directive.d.ts +7 -0
  339. package/lib/components/interaction/popover/index.d.ts +4 -0
  340. package/lib/components/interaction/popover/model/popover-position.d.ts +4 -0
  341. package/lib/components/interaction/popover/model/popover.types.d.ts +7 -0
  342. package/lib/components/interaction/popover/token/popover.tokens.d.ts +12 -0
  343. package/lib/components/interaction/tooltip/component/tooltip-panel.component.d.ts +9 -0
  344. package/lib/components/interaction/tooltip/directive/tooltip.directive.d.ts +80 -0
  345. package/lib/components/interaction/tooltip/index.d.ts +3 -0
  346. package/lib/components/interaction/tooltip/model/tooltip-position.d.ts +5 -0
  347. package/lib/components/interaction/tooltip/model/tooltip.types.d.ts +22 -0
  348. package/lib/components/interaction/tooltip/token/tooltip.tokens.d.ts +21 -0
  349. package/lib/services/accessibility/directives/visually-hidden.directive.d.ts +5 -0
  350. package/lib/services/accessibility/model/solaris-accessibility-config.interface.d.ts +4 -0
  351. package/lib/services/accessibility/model/solaris-accessibility.types.d.ts +5 -0
  352. package/lib/services/accessibility/provider/provide-solaris-accessibility.d.ts +3 -0
  353. package/lib/services/accessibility/service/solaris-accessibility.service.d.ts +15 -0
  354. package/lib/services/accessibility/testing/solaris-accessibility-testing.provider.d.ts +3 -0
  355. package/lib/services/accessibility/token/solaris-accessibility.tokens.d.ts +3 -0
  356. package/lib/services/icon/icons/index.d.ts +1 -0
  357. package/lib/services/icon/icons/solaris-built-in-icons.d.ts +2 -0
  358. package/lib/services/icon/index.d.ts +8 -0
  359. package/lib/services/icon/model/solaris-icon-definition.interface.d.ts +36 -0
  360. package/lib/services/icon/model/solaris-icon.types.d.ts +4 -0
  361. package/lib/services/icon/provider/provide-solaris-icons.d.ts +3 -0
  362. package/lib/services/icon/service/solaris-icon-registry.service.d.ts +12 -0
  363. package/lib/services/icon/token/solaris-icon.tokens.d.ts +6 -0
  364. package/lib/services/theme/model/solaris-theme-config.interface.d.ts +5 -0
  365. package/lib/services/theme/model/solaris-theme.types.d.ts +3 -0
  366. package/lib/services/theme/provider/provide-solaris-theme.d.ts +3 -0
  367. package/lib/services/theme/service/solaris-theme.service.d.ts +9 -0
  368. package/lib/services/theme/testing/solaris-theme-testing.provider.d.ts +3 -0
  369. package/lib/services/theme/token/solaris-theme.tokens.d.ts +3 -0
  370. package/lib/services/translation/index.d.ts +8 -0
  371. package/lib/services/translation/model/solaris-locale.types.d.ts +4 -0
  372. package/lib/services/translation/model/solaris-translate-config.interface.d.ts +8 -0
  373. package/lib/services/translation/model/solaris-translate-defaults.d.ts +2 -0
  374. package/lib/services/translation/model/solaris-translation.types.d.ts +3 -0
  375. package/lib/services/translation/pipe/solaris-translate.pipe.d.ts +8 -0
  376. package/lib/services/translation/provider/provide-solaris-translate.d.ts +3 -0
  377. package/lib/services/translation/service/solaris-translate.service.d.ts +15 -0
  378. package/lib/services/translation/testing/solaris-translate-testing.provider.d.ts +3 -0
  379. package/lib/services/translation/token/solaris-translate.tokens.d.ts +3 -0
  380. package/lib/testing/provide-solaris-testing.d.ts +10 -0
  381. package/lib/testing/solaris-test-utilities.d.ts +3 -0
  382. package/package.json +9 -5
  383. package/styles/_button.scss +50 -220
  384. package/styles/_core.scss +37 -37
  385. package/styles/_icon-button.scss +43 -219
  386. package/styles/_index.scss +19 -19
  387. package/styles/_input.scss +255 -0
  388. package/styles/_popover.scss +68 -0
  389. package/styles/_theme.scss +36 -36
  390. package/styles/_tooltip.scss +3 -0
  391. package/fesm2022/educarehq-solaris-ui.mjs +0 -1047
  392. package/fesm2022/educarehq-solaris-ui.mjs.map +0 -1
  393. package/types/educarehq-solaris-ui.d.ts +0 -408
@@ -2,29 +2,29 @@
2
2
  --solaris-button-gap: initial;
3
3
  --solaris-button-color: initial;
4
4
  --solaris-button-radius: initial;
5
+ --solaris-button-height: initial;
5
6
  --solaris-button-padding-x: initial;
6
7
  --solaris-button-padding-y: initial;
7
- --solaris-button-height: initial;
8
8
  --solaris-button-min-width: initial;
9
9
  --solaris-button-font-size: initial;
10
- --solaris-button-font-weight: initial;
11
10
  --solaris-button-icon-size: initial;
12
11
  --solaris-button-background: initial;
12
+ --solaris-button-font-weight: initial;
13
13
  --solaris-button-border-color: initial;
14
14
  --solaris-button-border-width: initial;
15
+ --solaris-button-disabled-opacity: 0.5;
15
16
  --solaris-button-hover-background: initial;
16
- --solaris-button-hover-border-color: initial;
17
+ --solaris-button-focus-ring-color: initial;
17
18
  --solaris-button-active-background: initial;
19
+ --solaris-button-hover-border-color: initial;
18
20
  --solaris-button-active-border-color: initial;
19
- --solaris-button-focus-ring-color: initial;
20
- --solaris-button-disabled-opacity: 0.5;
21
21
 
22
22
  --solaris-button-custom-color: initial;
23
23
  --solaris-button-custom-background: initial;
24
24
  --solaris-button-custom-border-color: initial;
25
25
  --solaris-button-custom-hover-background: initial;
26
- --solaris-button-custom-hover-border-color: initial;
27
26
  --solaris-button-custom-active-background: initial;
27
+ --solaris-button-custom-hover-border-color: initial;
28
28
  --solaris-button-custom-active-border-color: initial;
29
29
 
30
30
  cursor: pointer;
@@ -37,16 +37,16 @@
37
37
  gap: var(--solaris-button-gap);
38
38
  color: var(--solaris-button-color);
39
39
  height: var(--solaris-button-height);
40
+ line-height: var(--solaris-line-height-sm);
40
41
  min-width: var(--solaris-button-min-width);
41
42
  font-size: var(--solaris-button-font-size);
42
43
  border-radius: var(--solaris-button-radius);
43
44
  background: var(--solaris-button-background);
44
45
  font-weight: var(--solaris-button-font-weight);
46
+ font-family: var(--solaris-font-family-sans), system-ui;
45
47
  padding: var(--solaris-button-padding-y) var(--solaris-button-padding-x);
46
48
  border: var(--solaris-button-border-width) solid
47
49
  var(--solaris-button-border-color);
48
- line-height: var(--solaris-line-height-sm, 1.25);
49
- font-family: var(--solaris-font-family-sans), system-ui;
50
50
  transition:
51
51
  background var(--solaris-motion-duration-normal, 250ms)
52
52
  var(--solaris-motion-easing-standard, ease),
@@ -143,8 +143,8 @@
143
143
  }
144
144
 
145
145
  [solaris-button][data-appearance='outline'] {
146
- --solaris-button-border-width: 1px;
147
146
  --solaris-button-background: transparent;
147
+ --solaris-button-border-width: var(--solaris-border-width-sm);
148
148
  }
149
149
 
150
150
  [solaris-button][data-appearance='ghost'] {
@@ -154,135 +154,13 @@
154
154
  }
155
155
 
156
156
  [solaris-button][data-appearance='tonal'] {
157
- --solaris-button-border-width: 1px;
157
+ --solaris-button-border-width: var(--solaris-border-width-sm);
158
158
  }
159
159
 
160
160
  [solaris-button][data-appearance='surface'] {
161
161
  --solaris-button-border-width: 0;
162
162
  }
163
163
 
164
- [solaris-button][data-appearance='glass'] {
165
- --solaris-button-border-width: 1px;
166
- --solaris-button-glass-blur: 22px;
167
-
168
- // SOLARIS_TOKEN_EXCEPTION: glass appearance requires translucent rgba values for frosted glass effect.
169
- --solaris-button-background:
170
- linear-gradient(
171
- 135deg,
172
- rgba(255, 255, 255, 0.24) 0%,
173
- rgba(255, 255, 255, 0.1) 34%,
174
- rgba(255, 255, 255, 0.04) 100%
175
- ),
176
- rgba(24, 20, 18, 0.34);
177
-
178
- // SOLARIS_TOKEN_EXCEPTION: glass appearance requires translucent rgba values for frosted glass effect.
179
- --solaris-button-hover-background:
180
- linear-gradient(
181
- 135deg,
182
- rgba(255, 255, 255, 0.3) 0%,
183
- rgba(255, 255, 255, 0.14) 34%,
184
- rgba(255, 255, 255, 0.06) 100%
185
- ),
186
- rgba(24, 20, 18, 0.4);
187
-
188
- // SOLARIS_TOKEN_EXCEPTION: glass appearance requires translucent rgba values for frosted glass effect.
189
- --solaris-button-active-background:
190
- linear-gradient(
191
- 135deg,
192
- rgba(255, 255, 255, 0.22) 0%,
193
- rgba(255, 255, 255, 0.1) 34%,
194
- rgba(255, 255, 255, 0.04) 100%
195
- ),
196
- rgba(24, 20, 18, 0.46);
197
-
198
- // SOLARIS_TOKEN_EXCEPTION: glass appearance requires translucent rgba values for frosted glass effect.
199
- --solaris-button-border-color: rgba(255, 255, 255, 0.22);
200
- --solaris-button-hover-border-color: rgba(255, 255, 255, 0.3);
201
- --solaris-button-active-border-color: rgba(255, 255, 255, 0.26);
202
-
203
- --solaris-button-glass-accent: rgba(255, 110, 24, 0.36);
204
- --solaris-button-glass-accent-hover: rgba(255, 110, 24, 0.46);
205
-
206
- position: relative;
207
- isolation: isolate;
208
- overflow: hidden;
209
-
210
- background: var(--solaris-button-background);
211
- border-color: var(--solaris-button-border-color);
212
-
213
- // SOLARIS_TOKEN_EXCEPTION: glass appearance uses translucent rgba/box-shadow for the frosted glass depth effect.
214
- box-shadow:
215
- 0 12px 36px rgba(0, 0, 0, 0.34),
216
- inset 0 1px 0 rgba(255, 255, 255, 0.28),
217
- inset 0 -1px 0 rgba(255, 255, 255, 0.06);
218
-
219
- backdrop-filter: blur(var(--solaris-button-glass-blur)) saturate(150%)
220
- contrast(108%);
221
-
222
- -webkit-backdrop-filter: blur(var(--solaris-button-glass-blur)) saturate(150%)
223
- contrast(108%);
224
- }
225
-
226
- [solaris-button][data-appearance='glass']::before {
227
- inset: 0;
228
- content: '';
229
- z-index: -1;
230
- opacity: 0.95;
231
- position: absolute;
232
- pointer-events: none;
233
- border-radius: inherit;
234
-
235
- // SOLARIS_TOKEN_EXCEPTION: glass ::before requires translucent rgba for inner highlights.
236
- background:
237
- radial-gradient(
238
- circle at 72% 58%,
239
- var(--solaris-button-glass-accent),
240
- transparent 42%
241
- ),
242
- radial-gradient(
243
- circle at 22% 16%,
244
- rgba(255, 255, 255, 0.2),
245
- transparent 34%
246
- ),
247
- // SOLARIS_TOKEN_EXCEPTION: glass ::before requires translucent rgba for inner highlights.
248
- linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 46%);
249
-
250
- transition:
251
- opacity var(--solaris-motion-duration-normal, 250ms)
252
- var(--solaris-motion-easing-standard, ease),
253
- filter var(--solaris-motion-duration-normal, 250ms)
254
- var(--solaris-motion-easing-standard, ease);
255
- }
256
-
257
- [solaris-button][data-appearance='glass']:hover {
258
- background: var(--solaris-button-hover-background);
259
- border-color: var(--solaris-button-hover-border-color);
260
-
261
- // SOLARIS_TOKEN_EXCEPTION: glass hover requires translucent rgba/box-shadow for the depth effect.
262
- box-shadow:
263
- 0 14px 42px rgba(0, 0, 0, 0.38),
264
- inset 0 1px 0 rgba(255, 255, 255, 0.34),
265
- inset 0 -1px 0 rgba(255, 255, 255, 0.08);
266
- }
267
-
268
- [solaris-button][data-appearance='glass']:hover::before {
269
- opacity: 1;
270
- filter: saturate(115%);
271
- }
272
-
273
- [solaris-button][data-appearance='glass']:active,
274
- [solaris-button][data-appearance='glass'][data-active] {
275
- transform: translateY(1px);
276
- background: var(--solaris-button-active-background);
277
- border-color: var(--solaris-button-active-border-color);
278
-
279
- // SOLARIS_TOKEN_EXCEPTION: glass active requires translucent rgba/box-shadow for the depth effect.
280
- box-shadow:
281
- 0 8px 24px rgba(0, 0, 0, 0.34),
282
- inset 0 1px 0 rgba(255, 255, 255, 0.2),
283
- inset 0 2px 8px rgba(0, 0, 0, 0.18);
284
- }
285
-
286
164
  [solaris-button][data-color='neutral'][data-appearance='solid'] {
287
165
  --solaris-button-color: var(--solaris-text-inverse);
288
166
  --solaris-button-background: var(--solaris-text-default);
@@ -325,14 +203,6 @@
325
203
  --solaris-button-active-background: var(--solaris-surface-subtle);
326
204
  }
327
205
 
328
- /* SOLARIS_TOKEN_EXCEPTION: glass appearance uses translucent rgba/backdrop-filter for frosted glass effect. */
329
- [solaris-button][data-color='neutral'][data-appearance='glass'] {
330
- --solaris-button-color: var(--solaris-text-glass);
331
- --solaris-button-glass-accent: rgba(255, 110, 24, 0.36);
332
- --solaris-button-glass-accent-hover: rgba(255, 110, 24, 0.46);
333
- --solaris-button-focus-ring-color: var(--solaris-text-default);
334
- }
335
-
336
206
  [solaris-button][data-color='primary'][data-appearance='solid'] {
337
207
  --solaris-button-color: var(--solaris-primary-text);
338
208
  --solaris-button-background: var(--solaris-primary-base);
@@ -374,14 +244,6 @@
374
244
  --solaris-button-active-background: var(--solaris-primary-active);
375
245
  }
376
246
 
377
- /* SOLARIS_TOKEN_EXCEPTION: glass appearance uses translucent rgba/backdrop-filter for frosted glass effect. */
378
- [solaris-button][data-color='primary'][data-appearance='glass'] {
379
- --solaris-button-color: var(--solaris-primary-text);
380
- --solaris-button-glass-accent: rgba(22, 119, 255, 0.32);
381
- --solaris-button-glass-accent-hover: rgba(22, 119, 255, 0.42);
382
- --solaris-button-focus-ring-color: var(--solaris-primary-base);
383
- }
384
-
385
247
  [solaris-button][data-color='success'][data-appearance='solid'] {
386
248
  --solaris-button-background: var(--solaris-success-base);
387
249
  --solaris-button-color: var(--solaris-success-on-solid);
@@ -423,14 +285,6 @@
423
285
  --solaris-button-active-background: var(--solaris-success-active);
424
286
  }
425
287
 
426
- /* SOLARIS_TOKEN_EXCEPTION: glass appearance uses translucent rgba/backdrop-filter for frosted glass effect. */
427
- [solaris-button][data-color='success'][data-appearance='glass'] {
428
- --solaris-button-color: var(--solaris-success-text);
429
- --solaris-button-glass-accent: rgba(22, 163, 74, 0.32);
430
- --solaris-button-glass-accent-hover: rgba(22, 163, 74, 0.42);
431
- --solaris-button-focus-ring-color: var(--solaris-success-base);
432
- }
433
-
434
288
  [solaris-button][data-color='warning'][data-appearance='solid'] {
435
289
  --solaris-button-background: var(--solaris-warning-base);
436
290
  --solaris-button-color: var(--solaris-warning-on-solid);
@@ -472,14 +326,6 @@
472
326
  --solaris-button-active-background: var(--solaris-warning-active);
473
327
  }
474
328
 
475
- /* SOLARIS_TOKEN_EXCEPTION: glass appearance uses translucent rgba/backdrop-filter for frosted glass effect. */
476
- [solaris-button][data-color='warning'][data-appearance='glass'] {
477
- --solaris-button-color: var(--solaris-warning-text);
478
- --solaris-button-glass-accent: rgba(255, 110, 24, 0.38);
479
- --solaris-button-glass-accent-hover: rgba(255, 110, 24, 0.48);
480
- --solaris-button-focus-ring-color: var(--solaris-warning-base);
481
- }
482
-
483
329
  [solaris-button][data-color='danger'][data-appearance='solid'] {
484
330
  --solaris-button-background: var(--solaris-danger-base);
485
331
  --solaris-button-color: var(--solaris-danger-on-solid);
@@ -521,14 +367,6 @@
521
367
  --solaris-button-active-background: var(--solaris-danger-active);
522
368
  }
523
369
 
524
- /* SOLARIS_TOKEN_EXCEPTION: glass appearance uses translucent rgba/backdrop-filter for frosted glass effect. */
525
- [solaris-button][data-color='danger'][data-appearance='glass'] {
526
- --solaris-button-color: var(--solaris-danger-text);
527
- --solaris-button-glass-accent: rgba(220, 38, 38, 0.34);
528
- --solaris-button-glass-accent-hover: rgba(220, 38, 38, 0.44);
529
- --solaris-button-focus-ring-color: var(--solaris-danger-base);
530
- }
531
-
532
370
  [solaris-button][data-color='info'][data-appearance='solid'] {
533
371
  --solaris-button-color: var(--solaris-info-text);
534
372
  --solaris-button-background: var(--solaris-info-base);
@@ -570,14 +408,6 @@
570
408
  --solaris-button-active-background: var(--solaris-info-active);
571
409
  }
572
410
 
573
- /* SOLARIS_TOKEN_EXCEPTION: glass appearance uses translucent rgba/backdrop-filter for frosted glass effect. */
574
- [solaris-button][data-color='info'][data-appearance='glass'] {
575
- --solaris-button-color: var(--solaris-info-text);
576
- --solaris-button-glass-accent: rgba(59, 130, 246, 0.32);
577
- --solaris-button-focus-ring-color: var(--solaris-info-base);
578
- --solaris-button-glass-accent-hover: rgba(59, 130, 246, 0.42);
579
- }
580
-
581
411
  [solaris-button][data-color='custom'] {
582
412
  --solaris-button-hover-background: var(
583
413
  --solaris-button-custom-hover-background
@@ -610,71 +440,71 @@
610
440
  }
611
441
 
612
442
  [solaris-button][data-size='sm'] {
613
- --solaris-button-height: 2rem;
614
- --solaris-button-gap: 0.25rem;
615
- --solaris-button-min-width: 4rem;
616
- --solaris-button-padding-x: 0.75rem;
617
- --solaris-button-padding-y: 0.25rem;
618
- --solaris-button-icon-size: 0.875rem;
619
- --solaris-button-font-size: var(--solaris-font-size-sm, 0.875rem);
620
- --solaris-button-font-weight: var(--solaris-font-weight-medium, 500);
443
+ --solaris-button-gap: var(--solaris-spacing-1);
444
+ --solaris-button-height: var(--solaris-spacing-8);
445
+ --solaris-button-padding-x: var(--solaris-spacing-3);
446
+ --solaris-button-padding-y: var(--solaris-spacing-1);
447
+ --solaris-button-min-width: var(--solaris-spacing-16);
448
+ --solaris-button-icon-size: var(--solaris-font-size-sm);
449
+ --solaris-button-font-size: var(--solaris-font-size-sm);
450
+ --solaris-button-font-weight: var(--solaris-font-weight-medium);
621
451
  }
622
452
 
623
453
  [solaris-button][data-size='md'] {
624
- --solaris-button-gap: 0.375rem;
625
- --solaris-button-height: 2.5rem;
626
- --solaris-button-min-width: 5rem;
627
- --solaris-button-padding-x: 1rem;
628
- --solaris-button-icon-size: 1rem;
629
- --solaris-button-padding-y: 0.375rem;
630
- --solaris-button-font-size: var(--solaris-font-size-md, 0.875rem);
631
- --solaris-button-font-weight: var(--solaris-font-weight-medium, 500);
454
+ --solaris-button-gap: var(--solaris-spacing-2);
455
+ --solaris-button-height: var(--solaris-spacing-10);
456
+ --solaris-button-padding-y: var(--solaris-spacing-2);
457
+ --solaris-button-padding-x: var(--solaris-spacing-4);
458
+ --solaris-button-icon-size: var(--solaris-spacing-4);
459
+ --solaris-button-min-width: var(--solaris-spacing-20);
460
+ --solaris-button-font-size: var(--solaris-font-size-md);
461
+ --solaris-button-font-weight: var(--solaris-font-weight-medium);
632
462
  }
633
463
 
634
464
  [solaris-button][data-size='lg'] {
635
- --solaris-button-gap: 0.5rem;
636
- --solaris-button-height: 3rem;
637
- --solaris-button-min-width: 6rem;
638
- --solaris-button-padding-y: 0.5rem;
639
- --solaris-button-padding-x: 1.25rem;
640
- --solaris-button-icon-size: 1.25rem;
641
- --solaris-button-font-size: var(--solaris-font-size-lg, 1rem);
642
- --solaris-button-font-weight: var(--solaris-font-weight-semibold, 600);
465
+ --solaris-button-gap: var(--solaris-spacing-2);
466
+ --solaris-button-height: var(--solaris-spacing-12);
467
+ --solaris-button-padding-y: var(--solaris-spacing-2);
468
+ --solaris-button-padding-x: var(--solaris-spacing-5);
469
+ --solaris-button-icon-size: var(--solaris-spacing-5);
470
+ --solaris-button-min-width: var(--solaris-spacing-24);
471
+ --solaris-button-font-size: var(--solaris-font-size-lg);
472
+ --solaris-button-font-weight: var(--solaris-font-weight-semibold);
643
473
  }
644
474
 
645
475
  [solaris-button][data-radius='none'] {
646
- --solaris-button-radius: var(--solaris-radius-none, 0);
476
+ --solaris-button-radius: var(--solaris-radius-none);
647
477
  }
648
478
 
649
479
  [solaris-button][data-radius='sm'] {
650
- --solaris-button-radius: var(--solaris-radius-sm, 0.25rem);
480
+ --solaris-button-radius: var(--solaris-radius-sm);
651
481
  }
652
482
 
653
483
  [solaris-button][data-radius='md'] {
654
- --solaris-button-radius: var(--solaris-radius-md, 0.5rem);
484
+ --solaris-button-radius: var(--solaris-radius-md);
655
485
  }
656
486
 
657
487
  [solaris-button][data-radius='lg'] {
658
- --solaris-button-radius: var(--solaris-radius-lg, 0.75rem);
488
+ --solaris-button-radius: var(--solaris-radius-lg);
659
489
  }
660
490
 
661
491
  [solaris-button][data-radius='full'] {
662
- --solaris-button-radius: var(--solaris-radius-full, 624.9375rem);
492
+ --solaris-button-radius: var(--solaris-radius-full);
663
493
  }
664
494
 
665
495
  [solaris-button][data-density='compact'] {
666
- --solaris-button-height: 2rem;
667
- --solaris-button-gap: 0.25rem;
668
- --solaris-button-min-width: 4rem;
669
- --solaris-button-padding-x: 0.75rem;
670
- --solaris-button-icon-size: 0.875rem;
671
- --solaris-button-padding-y: 0.1875rem;
496
+ --solaris-button-gap: var(--solaris-density-gap-md);
497
+ --solaris-button-padding-y: var(--solaris-spacing-4);
498
+ --solaris-button-min-width: var(--solaris-spacing-10);
499
+ --solaris-button-icon-size: var(--solaris-font-size-sm);
500
+ --solaris-button-height: var(--solaris-density-min-height);
501
+ --solaris-button-padding-x: var(--solaris-density-padding-lg);
672
502
  }
673
503
 
674
504
  [solaris-button][data-density='comfortable'] {
675
- --solaris-button-gap: 0.5rem;
676
- --solaris-button-height: 2.5rem;
677
- --solaris-button-padding-x: 1rem;
678
- --solaris-button-icon-size: 1rem;
679
- --solaris-button-padding-y: 0.5rem;
505
+ --solaris-button-gap: var(--solaris-density-gap-md);
506
+ --solaris-button-icon-size: var(--solaris-spacing-4);
507
+ --solaris-button-padding-y: var(--solaris-spacing-4);
508
+ --solaris-button-height: var(--solaris-density-min-height);
509
+ --solaris-button-padding-x: var(--solaris-density-padding-lg);
680
510
  }
package/styles/_core.scss CHANGED
@@ -1,37 +1,37 @@
1
- /// Solaris UI Core
2
- /// Provides root font-size strategy and base resets.
3
- ///
4
- /// The default `none` strategy respects the browser's default font-size (typically 16px)
5
- /// and produces no additional CSS. Consumers who prefer the `rem-10` strategy may opt in,
6
- /// but must ensure token SCSS files are imported at the correct scope.
7
- ///
8
- /// Usage:
9
- /// @use '@solaris-ui/angular/styles' as solaris;
10
- ///
11
- /// // Default: no root font-size override (browser default)
12
- /// @include solaris.core();
13
- ///
14
- /// // rem-10 strategy: 1rem = 10px at root, body reset to 16px
15
- /// @include solaris.core((root-font-size: rem-10));
16
-
17
- @use 'sass:map';
18
-
19
- $-default-config: (
20
- root-font-size: none,
21
- );
22
-
23
- @mixin core($config: ()) {
24
- $merged: map.merge($-default-config, $config);
25
-
26
- $root-font-size: map.get($merged, root-font-size);
27
-
28
- @if $root-font-size == rem-10 {
29
- :root {
30
- font-size: 62.5%;
31
- }
32
-
33
- body {
34
- font-size: 1.6rem;
35
- }
36
- }
37
- }
1
+ /// Solaris UI Core
2
+ /// Provides root font-size strategy and base resets.
3
+ ///
4
+ /// The default `none` strategy respects the browser's default font-size (typically 16px)
5
+ /// and produces no additional CSS. Consumers who prefer the `rem-10` strategy may opt in,
6
+ /// but must ensure token SCSS files are imported at the correct scope.
7
+ ///
8
+ /// Usage:
9
+ /// @use '@solaris-ui/angular/styles' as solaris;
10
+ ///
11
+ /// // Default: no root font-size override (browser default)
12
+ /// @include solaris.core();
13
+ ///
14
+ /// // rem-10 strategy: 1rem = 10px at root, body reset to 16px
15
+ /// @include solaris.core((root-font-size: rem-10));
16
+
17
+ @use 'sass:map';
18
+
19
+ $-default-config: (
20
+ root-font-size: none,
21
+ );
22
+
23
+ @mixin core($config: ()) {
24
+ $merged: map.merge($-default-config, $config);
25
+
26
+ $root-font-size: map.get($merged, root-font-size);
27
+
28
+ @if $root-font-size == rem-10 {
29
+ :root {
30
+ font-size: 62.5%;
31
+ }
32
+
33
+ body {
34
+ font-size: 1.6rem;
35
+ }
36
+ }
37
+ }