@riverty/web-components 5.7.0 → 6.0.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 (273) hide show
  1. package/CHANGELOG.md +128 -0
  2. package/custom-elements.json +152 -372
  3. package/dist/cjs/index-DJ4H_bFj.js +6 -10
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/r-accordion-panel.cjs.entry.js +1 -1
  6. package/dist/cjs/r-accordion-section.cjs.entry.js +1 -1
  7. package/dist/cjs/r-accordion-trigger.cjs.entry.js +5 -35
  8. package/dist/cjs/r-accordion.cjs.entry.js +3 -7
  9. package/dist/cjs/r-alert.cjs.entry.js +45 -14
  10. package/dist/cjs/r-badge.cjs.entry.js +1 -1
  11. package/dist/cjs/r-button.cjs.entry.js +2 -2
  12. package/dist/cjs/r-checkbox-group.cjs.entry.js +28 -24
  13. package/dist/cjs/r-checkbox.cjs.entry.js +97 -81
  14. package/dist/cjs/r-dialog.cjs.entry.js +3 -11
  15. package/dist/cjs/r-hint_2.cjs.entry.js +50 -0
  16. package/dist/cjs/{r-hint_3.cjs.entry.js → r-icon-button_2.cjs.entry.js} +64 -51
  17. package/dist/cjs/r-icon.cjs.entry.js +1 -1
  18. package/dist/cjs/r-input-code.cjs.entry.js +133 -25
  19. package/dist/cjs/r-input-date.cjs.entry.js +87 -23
  20. package/dist/cjs/r-input-password.cjs.entry.js +34 -13
  21. package/dist/cjs/r-input-phone-number.cjs.entry.js +30 -22
  22. package/dist/cjs/r-input.cjs.entry.js +108 -49
  23. package/dist/cjs/r-list-item.cjs.entry.js +5 -5
  24. package/dist/cjs/r-pagination.cjs.entry.js +1 -1
  25. package/dist/cjs/r-panel.cjs.entry.js +2 -2
  26. package/dist/cjs/r-popover-action.cjs.entry.js +2 -2
  27. package/dist/cjs/r-popover-content.cjs.entry.js +1 -1
  28. package/dist/cjs/r-popover-headline.cjs.entry.js +1 -1
  29. package/dist/cjs/r-popover-trigger.cjs.entry.js +1 -1
  30. package/dist/cjs/r-popover.cjs.entry.js +3 -3
  31. package/dist/cjs/r-progress-bar.cjs.entry.js +1 -1
  32. package/dist/cjs/r-radio-button-description.cjs.entry.js +1 -1
  33. package/dist/cjs/r-radio-button-leading.cjs.entry.js +1 -1
  34. package/dist/cjs/r-radio-button-title.cjs.entry.js +1 -1
  35. package/dist/cjs/r-radio-button-trailing.cjs.entry.js +1 -1
  36. package/dist/cjs/r-radio-button.cjs.entry.js +29 -12
  37. package/dist/cjs/r-radio-group.cjs.entry.js +32 -32
  38. package/dist/cjs/r-select-option.cjs.entry.js +1 -1
  39. package/dist/cjs/r-select.cjs.entry.js +116 -40
  40. package/dist/cjs/r-skip-link.cjs.entry.js +1 -1
  41. package/dist/cjs/r-stepper-item.cjs.entry.js +2 -2
  42. package/dist/cjs/r-stepper.cjs.entry.js +1 -1
  43. package/dist/cjs/r-tab-panel.cjs.entry.js +1 -1
  44. package/dist/cjs/r-tab.cjs.entry.js +1 -1
  45. package/dist/cjs/r-tabs-list.cjs.entry.js +1 -1
  46. package/dist/cjs/r-tabs.cjs.entry.js +1 -1
  47. package/dist/cjs/r-textarea.cjs.entry.js +24 -23
  48. package/dist/cjs/r-toast-group.cjs.entry.js +1 -1
  49. package/dist/cjs/r-toast.cjs.entry.js +51 -20
  50. package/dist/cjs/web-components.cjs.js +1 -1
  51. package/dist/collection/collection-manifest.json +0 -1
  52. package/dist/collection/components/accordion/accordion.css +0 -2
  53. package/dist/collection/components/accordion/accordion.js +4 -8
  54. package/dist/collection/components/accordion/exports.js +1 -1
  55. package/dist/collection/components/accordion-panel/accordion-panel.js +1 -1
  56. package/dist/collection/components/accordion-section/accordion-section.js +1 -1
  57. package/dist/collection/components/accordion-trigger/accordion-trigger.css +0 -4
  58. package/dist/collection/components/accordion-trigger/accordion-trigger.js +4 -215
  59. package/dist/collection/components/alert/alert.css +58 -12
  60. package/dist/collection/components/alert/alert.js +92 -17
  61. package/dist/collection/components/alert/exports.js +1 -1
  62. package/dist/collection/components/badge/badge.js +1 -1
  63. package/dist/collection/components/button/button.css +6 -7
  64. package/dist/collection/components/button/button.js +1 -1
  65. package/dist/collection/components/checkbox/checkbox.js +121 -104
  66. package/dist/collection/components/checkbox-group/checkbox-group.js +48 -63
  67. package/dist/collection/components/dialog/dialog.css +1 -3
  68. package/dist/collection/components/dialog/dialog.js +2 -10
  69. package/dist/collection/components/hint/hint.js +2 -2
  70. package/dist/collection/components/icon/bundled-icons/riverty-kit.json +1 -1
  71. package/dist/collection/components/icon/riverty-kit.js +1 -1
  72. package/dist/collection/components/icon-button/icon-button.css +0 -7
  73. package/dist/collection/components/icon-button/icon-button.js +3 -3
  74. package/dist/collection/components/input/input.css +3 -0
  75. package/dist/collection/components/input/input.js +221 -378
  76. package/dist/collection/components/input-code/exports.js +2 -0
  77. package/dist/collection/components/input-code/input-code.js +335 -34
  78. package/dist/collection/components/input-date/input-date.js +237 -87
  79. package/dist/collection/components/input-password/exports.js +1 -0
  80. package/dist/collection/components/input-password/input-password.css +1 -0
  81. package/dist/collection/components/input-password/input-password.js +233 -75
  82. package/dist/collection/components/input-phone-number/input-phone-number.js +50 -85
  83. package/dist/collection/components/label/label.js +3 -113
  84. package/dist/collection/components/list-item/list-item/list-item.css +7 -7
  85. package/dist/collection/components/list-item/list-item/list-item.js +4 -26
  86. package/dist/collection/components/pagination/pagination.css +23 -23
  87. package/dist/collection/components/panel/panel.js +2 -2
  88. package/dist/collection/components/popover/exports.js +0 -1
  89. package/dist/collection/components/popover/popover.css +13 -13
  90. package/dist/collection/components/popover/popover.js +2 -55
  91. package/dist/collection/components/popover-action/popover-action.css +3 -5
  92. package/dist/collection/components/popover-action/popover-action.js +1 -1
  93. package/dist/collection/components/popover-content/popover-content.js +1 -1
  94. package/dist/collection/components/popover-headline/popover-headline.js +1 -1
  95. package/dist/collection/components/popover-trigger/popover-trigger.js +1 -1
  96. package/dist/collection/components/progress-bar/progress-bar.js +1 -1
  97. package/dist/collection/components/radio-button/radio-button.js +49 -12
  98. package/dist/collection/components/radio-button-description/radio-button-description.js +1 -1
  99. package/dist/collection/components/radio-button-leading/radio-button-leading.js +1 -1
  100. package/dist/collection/components/radio-button-title/radio-button-title.js +1 -1
  101. package/dist/collection/components/radio-button-trailing/radio-button-trailing.js +1 -1
  102. package/dist/collection/components/radio-group/radio-group.js +53 -135
  103. package/dist/collection/components/select/select.js +197 -349
  104. package/dist/collection/components/select-option/select-option.js +1 -1
  105. package/dist/collection/components/skip-link/skip-link.js +1 -1
  106. package/dist/collection/components/stepper/stepper.js +1 -1
  107. package/dist/collection/components/stepper-item/stepper-item.js +2 -2
  108. package/dist/collection/components/tab/tab.js +1 -1
  109. package/dist/collection/components/tab-panel/tab-panel.js +1 -1
  110. package/dist/collection/components/tabs/tabs.js +1 -1
  111. package/dist/collection/components/tabs-list/tabs-list.js +1 -1
  112. package/dist/collection/components/textarea/textarea.js +44 -163
  113. package/dist/collection/components/toast/toast.css +22 -14
  114. package/dist/collection/components/toast/toast.js +95 -43
  115. package/dist/collection/components/toast-group/toast-group.js +1 -1
  116. package/dist/collection/components/tooltip/tooltip.js +1 -1
  117. package/dist/esm/index-Da7qOBFr.js +6 -10
  118. package/dist/esm/loader.js +1 -1
  119. package/dist/esm/r-accordion-panel.entry.js +1 -1
  120. package/dist/esm/r-accordion-section.entry.js +1 -1
  121. package/dist/esm/r-accordion-trigger.entry.js +5 -35
  122. package/dist/esm/r-accordion.entry.js +3 -7
  123. package/dist/esm/r-alert.entry.js +45 -14
  124. package/dist/esm/r-badge.entry.js +1 -1
  125. package/dist/esm/r-button.entry.js +2 -2
  126. package/dist/esm/r-checkbox-group.entry.js +28 -24
  127. package/dist/esm/r-checkbox.entry.js +97 -81
  128. package/dist/esm/r-dialog.entry.js +3 -11
  129. package/dist/esm/r-hint_2.entry.js +47 -0
  130. package/dist/esm/{r-hint_3.entry.js → r-icon-button_2.entry.js} +65 -51
  131. package/dist/esm/r-icon.entry.js +1 -1
  132. package/dist/esm/r-input-code.entry.js +133 -25
  133. package/dist/esm/r-input-date.entry.js +87 -23
  134. package/dist/esm/r-input-password.entry.js +34 -13
  135. package/dist/esm/r-input-phone-number.entry.js +30 -22
  136. package/dist/esm/r-input.entry.js +108 -49
  137. package/dist/esm/r-list-item.entry.js +5 -5
  138. package/dist/esm/r-pagination.entry.js +1 -1
  139. package/dist/esm/r-panel.entry.js +2 -2
  140. package/dist/esm/r-popover-action.entry.js +2 -2
  141. package/dist/esm/r-popover-content.entry.js +1 -1
  142. package/dist/esm/r-popover-headline.entry.js +1 -1
  143. package/dist/esm/r-popover-trigger.entry.js +1 -1
  144. package/dist/esm/r-popover.entry.js +3 -3
  145. package/dist/esm/r-progress-bar.entry.js +1 -1
  146. package/dist/esm/r-radio-button-description.entry.js +1 -1
  147. package/dist/esm/r-radio-button-leading.entry.js +1 -1
  148. package/dist/esm/r-radio-button-title.entry.js +1 -1
  149. package/dist/esm/r-radio-button-trailing.entry.js +1 -1
  150. package/dist/esm/r-radio-button.entry.js +29 -12
  151. package/dist/esm/r-radio-group.entry.js +32 -32
  152. package/dist/esm/r-select-option.entry.js +1 -1
  153. package/dist/esm/r-select.entry.js +116 -40
  154. package/dist/esm/r-skip-link.entry.js +1 -1
  155. package/dist/esm/r-stepper-item.entry.js +2 -2
  156. package/dist/esm/r-stepper.entry.js +1 -1
  157. package/dist/esm/r-tab-panel.entry.js +1 -1
  158. package/dist/esm/r-tab.entry.js +1 -1
  159. package/dist/esm/r-tabs-list.entry.js +1 -1
  160. package/dist/esm/r-tabs.entry.js +1 -1
  161. package/dist/esm/r-textarea.entry.js +24 -23
  162. package/dist/esm/r-toast-group.entry.js +1 -1
  163. package/dist/esm/r-toast.entry.js +51 -20
  164. package/dist/esm/web-components.js +1 -1
  165. package/dist/types/components/accordion/accordion.d.ts +1 -5
  166. package/dist/types/components/accordion/exports.d.ts +1 -1
  167. package/dist/types/components/accordion-trigger/accordion-trigger.d.ts +0 -36
  168. package/dist/types/components/alert/alert.d.ts +9 -1
  169. package/dist/types/components/alert/exports.d.ts +1 -1
  170. package/dist/types/components/checkbox/checkbox.d.ts +29 -34
  171. package/dist/types/components/checkbox-group/checkbox-group.d.ts +6 -11
  172. package/dist/types/components/dialog/dialog.d.ts +0 -2
  173. package/dist/types/components/input/input.d.ts +35 -72
  174. package/dist/types/components/input-code/exports.d.ts +4 -0
  175. package/dist/types/components/input-code/input-code.d.ts +54 -7
  176. package/dist/types/components/input-date/input-date.d.ts +30 -16
  177. package/dist/types/components/input-password/exports.d.ts +1 -0
  178. package/dist/types/components/input-password/input-password.d.ts +53 -16
  179. package/dist/types/components/input-phone-number/input-phone-number.d.ts +5 -16
  180. package/dist/types/components/label/label.d.ts +0 -18
  181. package/dist/types/components/list-item/list-item/list-item.d.ts +0 -6
  182. package/dist/types/components/popover/exports.d.ts +0 -2
  183. package/dist/types/components/popover/popover.d.ts +1 -14
  184. package/dist/types/components/radio-button/radio-button.d.ts +5 -0
  185. package/dist/types/components/radio-group/radio-group.d.ts +6 -28
  186. package/dist/types/components/select/select.d.ts +34 -52
  187. package/dist/types/components/textarea/textarea.d.ts +5 -32
  188. package/dist/types/components/toast/toast.d.ts +10 -7
  189. package/dist/types/components.d.ts +347 -647
  190. package/dist/web-components/bundled-icons/riverty-kit.json +1 -1
  191. package/dist/web-components/p-0347feff.entry.js +1 -0
  192. package/dist/web-components/p-05738503.entry.js +1 -0
  193. package/dist/web-components/p-0e4c8bf1.entry.js +1 -0
  194. package/dist/web-components/p-1da75540.entry.js +1 -0
  195. package/dist/web-components/p-26ef77d6.entry.js +1 -0
  196. package/dist/web-components/p-3884c6e7.entry.js +1 -0
  197. package/dist/web-components/p-3a5a67e7.entry.js +1 -0
  198. package/dist/web-components/p-3f60c6c0.entry.js +1 -0
  199. package/dist/web-components/p-4254a383.entry.js +1 -0
  200. package/dist/web-components/{p-87f39749.entry.js → p-4595fa8e.entry.js} +1 -1
  201. package/dist/web-components/{p-4e3df002.entry.js → p-4cc58c6a.entry.js} +1 -1
  202. package/dist/web-components/p-5441b746.entry.js +1 -0
  203. package/dist/web-components/{p-72fa1fd1.entry.js → p-550e2237.entry.js} +1 -1
  204. package/dist/web-components/p-589baaf9.entry.js +1 -0
  205. package/dist/web-components/p-60341de2.entry.js +1 -0
  206. package/dist/web-components/{p-4bd3e077.entry.js → p-60ca994e.entry.js} +1 -1
  207. package/dist/web-components/{p-44ae9f33.entry.js → p-62b788bf.entry.js} +1 -1
  208. package/dist/web-components/{p-2b2f581a.entry.js → p-6303b9fe.entry.js} +1 -1
  209. package/dist/web-components/p-63fd817d.entry.js +1 -0
  210. package/dist/web-components/{p-e0e2f2b2.entry.js → p-673dbfd0.entry.js} +1 -1
  211. package/dist/web-components/p-67fa3f84.entry.js +1 -0
  212. package/dist/web-components/p-6a4f3836.entry.js +1 -0
  213. package/dist/web-components/p-6cc2ea2c.entry.js +1 -0
  214. package/dist/web-components/p-70784685.entry.js +1 -0
  215. package/dist/web-components/{p-429213ea.entry.js → p-7fed6f4d.entry.js} +1 -1
  216. package/dist/web-components/p-8a66d20c.entry.js +1 -0
  217. package/dist/web-components/{p-0bb04d79.entry.js → p-8b4d2448.entry.js} +1 -1
  218. package/dist/web-components/{p-c7f8e59b.entry.js → p-8c31cbd5.entry.js} +1 -1
  219. package/dist/web-components/p-8dac326b.entry.js +1 -0
  220. package/dist/web-components/{p-1c2497de.entry.js → p-9ef1bbee.entry.js} +1 -1
  221. package/dist/web-components/p-a0dbde7c.entry.js +1 -0
  222. package/dist/web-components/{p-755cc697.entry.js → p-a71485d8.entry.js} +1 -1
  223. package/dist/web-components/p-a7d22c76.entry.js +1 -0
  224. package/dist/web-components/{p-85a9af42.entry.js → p-ae251d2f.entry.js} +1 -1
  225. package/dist/web-components/{p-77155630.entry.js → p-b98ab649.entry.js} +1 -1
  226. package/dist/web-components/p-b9e3b3d6.entry.js +1 -0
  227. package/dist/web-components/p-c1e748f2.entry.js +1 -0
  228. package/dist/web-components/p-c478712b.entry.js +1 -0
  229. package/dist/web-components/{p-72c0c0d8.entry.js → p-d054eb4d.entry.js} +1 -1
  230. package/dist/web-components/p-d433a828.entry.js +1 -0
  231. package/dist/web-components/p-d7726e46.entry.js +1 -0
  232. package/dist/web-components/p-d819c8e5.entry.js +1 -0
  233. package/dist/web-components/p-e2188953.entry.js +1 -0
  234. package/dist/web-components/{p-3b4e3faf.entry.js → p-e5945c01.entry.js} +1 -1
  235. package/dist/web-components/{p-d1379ac6.entry.js → p-f9d5004c.entry.js} +1 -1
  236. package/dist/web-components/web-components.esm.js +1 -1
  237. package/package.json +1 -1
  238. package/dist/cjs/r-accordion-item.cjs.entry.js +0 -78
  239. package/dist/cjs/r-icon-button.cjs.entry.js +0 -81
  240. package/dist/collection/components/accordion-item/accordion-item.css +0 -121
  241. package/dist/collection/components/accordion-item/accordion-item.js +0 -138
  242. package/dist/esm/r-accordion-item.entry.js +0 -76
  243. package/dist/esm/r-icon-button.entry.js +0 -79
  244. package/dist/types/components/accordion-item/accordion-item.d.ts +0 -26
  245. package/dist/web-components/p-00ca474f.entry.js +0 -1
  246. package/dist/web-components/p-289eb4b0.entry.js +0 -1
  247. package/dist/web-components/p-2b8e12ae.entry.js +0 -1
  248. package/dist/web-components/p-2e2c8a5b.entry.js +0 -1
  249. package/dist/web-components/p-3a39932b.entry.js +0 -1
  250. package/dist/web-components/p-3bc93d65.entry.js +0 -1
  251. package/dist/web-components/p-44be9992.entry.js +0 -1
  252. package/dist/web-components/p-4652635a.entry.js +0 -1
  253. package/dist/web-components/p-51a5804b.entry.js +0 -1
  254. package/dist/web-components/p-63474b32.entry.js +0 -1
  255. package/dist/web-components/p-74d2a563.entry.js +0 -1
  256. package/dist/web-components/p-7ad8e78b.entry.js +0 -1
  257. package/dist/web-components/p-8028c2a9.entry.js +0 -1
  258. package/dist/web-components/p-96ddeb7f.entry.js +0 -1
  259. package/dist/web-components/p-9d898089.entry.js +0 -1
  260. package/dist/web-components/p-9e50120b.entry.js +0 -1
  261. package/dist/web-components/p-9eb1f262.entry.js +0 -1
  262. package/dist/web-components/p-a022f356.entry.js +0 -1
  263. package/dist/web-components/p-a7e7f8fa.entry.js +0 -1
  264. package/dist/web-components/p-b2f03016.entry.js +0 -1
  265. package/dist/web-components/p-c300c22f.entry.js +0 -1
  266. package/dist/web-components/p-c937bd92.entry.js +0 -1
  267. package/dist/web-components/p-cbcd7699.entry.js +0 -1
  268. package/dist/web-components/p-d93c240d.entry.js +0 -1
  269. package/dist/web-components/p-e4b66277.entry.js +0 -1
  270. package/dist/web-components/p-e6a31881.entry.js +0 -1
  271. package/dist/web-components/p-f6a92287.entry.js +0 -1
  272. package/dist/web-components/p-f770e22b.entry.js +0 -1
  273. package/dist/web-components/p-f952161b.entry.js +0 -1
@@ -1,36 +1,6 @@
1
1
  import { Host, h } from "@stencil/core";
2
2
  export class AccordionTrigger {
3
3
  constructor() {
4
- /**
5
- * _DEPRECATED_ (This property will be removed in November 2025 release.)
6
- * Icon to be used as status indication
7
- **/
8
- this.icon = 'angle-down';
9
- /**
10
- * _DEPRECATED_ (This property will be removed in November 2025 release.)
11
- * Defines the size of an icon used as status indication. Default: `m`.
12
- **/
13
- this.iconSize = 'm';
14
- /**
15
- * _DEPRECATED_ (This property will be removed in November 2025 release.)
16
- * Icon might be placed before or after content
17
- **/
18
- this.iconPosition = 'end';
19
- /**
20
- * _DEPRECATED_ (This property will be removed in November 2025 release.)
21
- * Icon for expanded state
22
- **/
23
- this.iconExpanded = 'angle-up';
24
- /**
25
- * _DEPRECATED_ (This property will be removed in November 2025 release.)
26
- * Icon for collapsed state
27
- **/
28
- this.iconCollapsed = 'angle-down';
29
- /**
30
- * _DEPRECATED_ (This property will be removed in November 2025 release. Use leading icon slot instead)
31
- * Defines the size of an icon in leading slot. Default: `m`.
32
- * */
33
- this.leadingIconSize = 'm';
34
4
  this.handleClick = (event) => {
35
5
  if (this.disabled)
36
6
  return;
@@ -97,13 +67,13 @@ export class AccordionTrigger {
97
67
  'data-has-panel': `${this.hasPanel}`
98
68
  };
99
69
  hostAttrs['aria-controls'] = this.panel ? `${this.panel}` : null;
100
- return (h(Host, Object.assign({ key: 'd235b70fd5a27c0395e7d64b1ceec4a9254de4c6', onClick: this.handleClick, onKeyup: this.handleKeyup, onKeydown: this.handleKeydown }, hostAttrs), h("span", { key: 'e0aa03725cae1b5b2562581388b9d86a56c7ff9c', class: "r-accordion-trigger" }, h("span", { key: '556699d5335fce11c5ad4e801d43770049971c52', class: "r-accordion-trigger--content" }, h("slot", { key: '0666ed3a794a45d16d385909e9c7d37924d9c8c5', name: "leading-icon" }, this.leadingIcon && h("r-icon", { key: '05d42ffa9abcff6a3261bfc9af598587f0cc0c83', name: this.leadingIcon, size: this.leadingIconSize })), this.splitted ?
70
+ return (h(Host, Object.assign({ key: 'e823c4799fa51824a6de4db7bf857385b0558ec4', onClick: this.handleClick, onKeyup: this.handleKeyup, onKeydown: this.handleKeydown }, hostAttrs), h("span", { key: '55249e964a4eb164a4f842567f8cf14c9c58fee5', class: "r-accordion-trigger" }, h("span", { key: '37ffd053c1af48ff23ee9d1c22b6a0b6c92a3110', class: "r-accordion-trigger--content" }, h("slot", { key: 'b4583e319fd62bb98c2f2b312cd2edcfc646ddb5', name: "leading-icon" }), this.splitted ?
101
71
  h("slot", { name: `content-${this.nameAddition}` }, h("slot", null))
102
72
  :
103
- h("slot", null)), h("span", { key: 'c174ffb461cb2ea616928c7d905926c548afac36', class: "r-accordion-trigger--icon" }, this.splitted ?
104
- h("slot", { name: `icon-${this.nameAddition}` }, h("r-icon", { name: this.expanded ? this.iconExpanded : this.iconCollapsed, size: this.iconSize }))
73
+ h("slot", null)), h("span", { key: '190013be64d4239d80be83ae9fb581b1d1e64f83', class: "r-accordion-trigger--icon" }, this.splitted ?
74
+ h("slot", { name: `icon-${this.nameAddition}` }, h("r-icon", { name: this.expanded ? 'angle-up' : 'angle-down', size: "m" }))
105
75
  :
106
- h("slot", { name: "icon" }, h("r-icon", { name: this.icon, size: this.iconSize }))))));
76
+ h("slot", { name: "icon" }, h("r-icon", { name: "angle-down", size: "m" }))))));
107
77
  }
108
78
  static get is() { return "r-accordion-trigger"; }
109
79
  static get encapsulation() { return "shadow"; }
@@ -194,187 +164,6 @@ export class AccordionTrigger {
194
164
  "getter": false,
195
165
  "setter": false,
196
166
  "reflect": false
197
- },
198
- "icon": {
199
- "type": "string",
200
- "attribute": "icon",
201
- "mutable": false,
202
- "complexType": {
203
- "original": "IconName",
204
- "resolved": "string",
205
- "references": {
206
- "IconName": {
207
- "location": "import",
208
- "path": "../icon/exports",
209
- "id": "src/components/icon/exports.ts::IconName"
210
- }
211
- }
212
- },
213
- "required": false,
214
- "optional": false,
215
- "docs": {
216
- "tags": [],
217
- "text": "_DEPRECATED_ (This property will be removed in November 2025 release.)\nIcon to be used as status indication"
218
- },
219
- "getter": false,
220
- "setter": false,
221
- "reflect": false,
222
- "defaultValue": "'angle-down'"
223
- },
224
- "iconSize": {
225
- "type": "string",
226
- "attribute": "icon-size",
227
- "mutable": false,
228
- "complexType": {
229
- "original": "IconSize",
230
- "resolved": "\"l\" | \"m\" | \"s\"",
231
- "references": {
232
- "IconSize": {
233
- "location": "import",
234
- "path": "../icon/exports",
235
- "id": "src/components/icon/exports.ts::IconSize"
236
- }
237
- }
238
- },
239
- "required": false,
240
- "optional": false,
241
- "docs": {
242
- "tags": [],
243
- "text": "_DEPRECATED_ (This property will be removed in November 2025 release.)\nDefines the size of an icon used as status indication. Default: `m`."
244
- },
245
- "getter": false,
246
- "setter": false,
247
- "reflect": false,
248
- "defaultValue": "'m'"
249
- },
250
- "iconPosition": {
251
- "type": "string",
252
- "attribute": "icon-position",
253
- "mutable": false,
254
- "complexType": {
255
- "original": "IconPosition",
256
- "resolved": "\"end\" | \"start\"",
257
- "references": {
258
- "IconPosition": {
259
- "location": "import",
260
- "path": "../icon/exports",
261
- "id": "src/components/icon/exports.ts::IconPosition"
262
- }
263
- }
264
- },
265
- "required": false,
266
- "optional": false,
267
- "docs": {
268
- "tags": [],
269
- "text": "_DEPRECATED_ (This property will be removed in November 2025 release.)\nIcon might be placed before or after content"
270
- },
271
- "getter": false,
272
- "setter": false,
273
- "reflect": false,
274
- "defaultValue": "'end'"
275
- },
276
- "iconExpanded": {
277
- "type": "string",
278
- "attribute": "icon-expanded",
279
- "mutable": false,
280
- "complexType": {
281
- "original": "IconName",
282
- "resolved": "string",
283
- "references": {
284
- "IconName": {
285
- "location": "import",
286
- "path": "../icon/exports",
287
- "id": "src/components/icon/exports.ts::IconName"
288
- }
289
- }
290
- },
291
- "required": false,
292
- "optional": true,
293
- "docs": {
294
- "tags": [],
295
- "text": "_DEPRECATED_ (This property will be removed in November 2025 release.)\nIcon for expanded state"
296
- },
297
- "getter": false,
298
- "setter": false,
299
- "reflect": false,
300
- "defaultValue": "'angle-up'"
301
- },
302
- "iconCollapsed": {
303
- "type": "string",
304
- "attribute": "icon-collapsed",
305
- "mutable": false,
306
- "complexType": {
307
- "original": "IconName",
308
- "resolved": "string",
309
- "references": {
310
- "IconName": {
311
- "location": "import",
312
- "path": "../icon/exports",
313
- "id": "src/components/icon/exports.ts::IconName"
314
- }
315
- }
316
- },
317
- "required": false,
318
- "optional": true,
319
- "docs": {
320
- "tags": [],
321
- "text": "_DEPRECATED_ (This property will be removed in November 2025 release.)\nIcon for collapsed state"
322
- },
323
- "getter": false,
324
- "setter": false,
325
- "reflect": false,
326
- "defaultValue": "'angle-down'"
327
- },
328
- "leadingIcon": {
329
- "type": "string",
330
- "attribute": "leading-icon",
331
- "mutable": false,
332
- "complexType": {
333
- "original": "IconName",
334
- "resolved": "string",
335
- "references": {
336
- "IconName": {
337
- "location": "import",
338
- "path": "../icon/exports",
339
- "id": "src/components/icon/exports.ts::IconName"
340
- }
341
- }
342
- },
343
- "required": false,
344
- "optional": true,
345
- "docs": {
346
- "tags": [],
347
- "text": "_DEPRECATED_ (This property will be removed in November 2025 release. Use leading icon slot instead)\nName of an icon rendered within leading slot (before content)."
348
- },
349
- "getter": false,
350
- "setter": false,
351
- "reflect": false
352
- },
353
- "leadingIconSize": {
354
- "type": "string",
355
- "attribute": "leading-icon-size",
356
- "mutable": false,
357
- "complexType": {
358
- "original": "IconSize",
359
- "resolved": "\"l\" | \"m\" | \"s\"",
360
- "references": {
361
- "IconSize": {
362
- "location": "import",
363
- "path": "../icon/exports",
364
- "id": "src/components/icon/exports.ts::IconSize"
365
- }
366
- }
367
- },
368
- "required": false,
369
- "optional": false,
370
- "docs": {
371
- "tags": [],
372
- "text": "_DEPRECATED_ (This property will be removed in November 2025 release. Use leading icon slot instead)\nDefines the size of an icon in leading slot. Default: `m`."
373
- },
374
- "getter": false,
375
- "setter": false,
376
- "reflect": false,
377
- "defaultValue": "'m'"
378
167
  }
379
168
  };
380
169
  }
@@ -3,13 +3,9 @@
3
3
  --background-color: var(--r-status-info-regular, #3e5c73);
4
4
  }
5
5
 
6
- :host([status=success]) {
7
- --color: var(--r-status-success-soft, #f7fdf8);
8
- --background-color: var(--r-status-success-regular, #298535);
9
- }
10
-
11
6
  :host([status=warning]) {
12
- --color: var(--r-color-grey-charcoal-400, #282828);
7
+ --color: var(--r-text-warning, #000000);
8
+ --r-alert--leading-icon--color: var(--r-icon-warning, #000000);
13
9
  --background-color: var(--r-status-warning-regular, #ff7429);
14
10
  }
15
11
 
@@ -18,6 +14,27 @@
18
14
  --background-color: var(--r-status-error-regular, #b00c15);
19
15
  }
20
16
 
17
+ :host([status=error]) r-icon-button:hover,
18
+ :host([status=info]) r-icon-button:hover {
19
+ --r-icon-button--background-color: var(--r-background-interactive-hovered-inverse, rgba(243, 241, 240, 0.04));
20
+ }
21
+ :host([status=error]) r-icon-button:active,
22
+ :host([status=info]) r-icon-button:active {
23
+ --r-icon-button--background-color: var(--r-background-interactive-pressed-inverse, rgba(243, 241, 240, 0.12));
24
+ }
25
+ :host([status=error]) .r-alert--link:hover,
26
+ :host([status=error]) ::slotted(r-button:hover:not([disabled]):not([disabled=true])),
27
+ :host([status=info]) .r-alert--link:hover,
28
+ :host([status=info]) ::slotted(r-button:hover:not([disabled]):not([disabled=true])) {
29
+ --r-button--background-color: var(--r-background-interactive-hovered-inverse, rgba(243, 241, 240, 0.04));
30
+ }
31
+ :host([status=error]) .r-alert--link:active,
32
+ :host([status=error]) ::slotted(r-button:active:not([disabled]):not([disabled=true])),
33
+ :host([status=info]) .r-alert--link:active,
34
+ :host([status=info]) ::slotted(r-button:active:not([disabled]):not([disabled=true])) {
35
+ --r-button--background-color--active: var(--r-background-interactive-pressed-inverse, rgba(243, 241, 240, 0.12));
36
+ }
37
+
21
38
  :host([aria-hidden=true]) {
22
39
  --transition: all 0.5s;
23
40
  --position: absolute;
@@ -38,28 +55,33 @@
38
55
  opacity: var(--opacity, 1);
39
56
  z-index: var(--z-index, unset);
40
57
  font-family: var(--font-family, var(--r-font-family-text, system-ui));
41
- font-size: var(--font-size, var(--r-font-size-400, 16px));
58
+ font-size: var(--font-size, var(--r-font-size-400, 1rem));
42
59
  font-weight: var(--font-weight, var(--r-font-weight-regular, 400));
43
60
  }
61
+ @media (prefers-reduced-motion) {
62
+ :host {
63
+ transition: none;
64
+ }
65
+ }
44
66
 
45
67
  .r-alert {
46
68
  display: var(--r-alert--display, grid);
47
69
  grid-template-columns: var(--r-alert--grid-template-columns, auto 1fr auto);
48
70
  gap: var(--r-alert--gap, var(--r-spacing-100, 1rem));
49
- padding: var(--r-alert--padding, var(--r-spacing-100, 1rem));
71
+ padding: var(--r-alert--padding, 16px);
50
72
  box-sizing: var(--r-alert--box-sizing, border-box);
51
73
  }
52
74
  .r-alert:empty {
53
75
  --r-alert--display: none;
54
76
  }
55
- .r-alert a {
56
- color: var(--color);
57
- }
58
77
  .r-alert--main {
59
78
  display: var(--r-alert--main--display, flex);
60
79
  flex-flow: var(--r-alert--main--flex-flow, column);
61
80
  gap: var(--r-alert--main--gap, var(--r-spacing-050));
62
81
  }
82
+ .r-alert--main:not(:has(.r-alert--headline)) {
83
+ --r-alert--content--margin-top: var(--r-spacing-025, 0.25rem);
84
+ }
63
85
  .r-alert--headline {
64
86
  color: var(--r-alert--headline--color, var(--color));
65
87
  font-size: var(--r-alert--headline--font-size, var(--r-font-size-400, 1rem));
@@ -67,7 +89,31 @@
67
89
  line-height: var(--r-alert--headline--line-height, var(--r-line-height-m, 1.5));
68
90
  margin: var(--r-alert--headline--margin, 0);
69
91
  }
70
- .r-alert--trailing r-button {
92
+ .r-alert--leading {
93
+ color: var(--r-alert--leading-icon--color, var(--color));
94
+ }
95
+ .r-alert--trailing r-icon-button {
71
96
  --r-button--padding: 0;
72
97
  --r-button--color: var(--color);
73
98
  }
99
+ .r-alert--content {
100
+ margin-top: var(--r-alert--content--margin-top, 0);
101
+ }
102
+ .r-alert--link,
103
+ .r-alert ::slotted(r-button) {
104
+ --r-button--background-color: transparent;
105
+ --r-button--border-width: 0;
106
+ --r-button--color: var(--r-alert--link--color, var(--color));
107
+ --r-button--padding: 10px 2px 18px 2px;
108
+ --r-button--slot--text-decoration: underline;
109
+ --r-button--slot--text-underline-offset: 9px;
110
+ }
111
+ .r-alert--link:hover,
112
+ .r-alert ::slotted(r-button:hover:not([disabled]):not([disabled=true])) {
113
+ --r-button--background-color: var(--r-background-interactive-hovered);
114
+ }
115
+ .r-alert--link:active,
116
+ .r-alert ::slotted(r-button:active:not([disabled]):not([disabled=true])) {
117
+ --r-button--color--active: var(--r-alert--link--color, var(--color));
118
+ --r-button--background-color--active: var(--r-background-interactive-pressed);
119
+ }
@@ -3,17 +3,26 @@ export class Alert {
3
3
  constructor() {
4
4
  /** Alert status controls apperance according to the status */
5
5
  this.status = 'info';
6
+ /** Sets role="alert" and will be announced to screen reader users */
7
+ this.announced = true;
6
8
  /** Defines an icon size to be presented in leading slot*/
7
9
  this.leadingIconSize = 'm';
10
+ /**
11
+ * Defines whether the leading icon is visible.
12
+ * @default true
13
+ * */
14
+ this.leadingIconVisible = true;
15
+ /** Defines an icon to be presented in trailing slot */
16
+ this.trailingIcon = 'cross';
8
17
  /** Defines an icon size to be presented in trailing slot*/
9
- this.trailingIconSize = 's';
18
+ this.trailingIconSize = 'm';
10
19
  /**
11
20
  * Defines the target for the linked URL when `href` is provided.
12
21
  * Options: `"_blank"`, `"_self"`, `"_parent"`, `"_top"`.
13
22
  */
14
23
  this.target = '_self';
15
24
  /** Text content for an alert dismiss button */
16
- this.dismissButtonAriaLabel = 'close-button';
25
+ this.dismissButtonAriaLabel = 'Dismiss alert';
17
26
  this.isElContent = (selector) => {
18
27
  const el = this.host.querySelector(selector);
19
28
  return el !== null && (el === null || el === void 0 ? void 0 : el.textContent.trim().length) > 0;
@@ -33,15 +42,11 @@ export class Alert {
33
42
  this.collapseAlert();
34
43
  };
35
44
  }
36
- get isLeadingIcon() {
37
- var _a, _b;
38
- return ((_a = this.leadingIcon) === null || _a === void 0 ? void 0 : _a.length) > 0 || ((_b = this.leadingIconSrc) === null || _b === void 0 ? void 0 : _b.length) > 0;
39
- }
40
45
  get isLeadingSlot() {
41
46
  return this.isElContent('[slot="leading"]');
42
47
  }
43
48
  get isLeading() {
44
- return this.isLeadingIcon || this.isLeadingSlot;
49
+ return this.leadingIconVisible || this.isLeadingSlot;
45
50
  }
46
51
  get isTrailingIcon() {
47
52
  var _a, _b;
@@ -74,13 +79,39 @@ export class Alert {
74
79
  get isDelay() {
75
80
  return this.delay && this.delay >= 0;
76
81
  }
82
+ get headlineSlotContent() {
83
+ var _a;
84
+ const el = this.host.querySelector('[slot="headline"]');
85
+ return (_a = el === null || el === void 0 ? void 0 : el.textContent) === null || _a === void 0 ? void 0 : _a.trim();
86
+ }
87
+ get statusBasedLeadingIconName() {
88
+ if (this.leadingIcon)
89
+ return this.leadingIcon;
90
+ switch (this.status) {
91
+ case 'info':
92
+ return 'circled-information-i';
93
+ case 'warning':
94
+ return 'circled-exclamation-mark';
95
+ case 'error':
96
+ return 'triangle-with-exclamation-mark';
97
+ default:
98
+ return 'circled-information-i';
99
+ }
100
+ }
77
101
  componentDidLoad() {
78
102
  if (this.isDelay)
79
103
  this.startCollapseTimer();
80
104
  }
81
105
  render() {
106
+ const hostAttrs = this.announced ? {
107
+ role: 'alert',
108
+ 'aria-live': this.status === 'info' ? 'polite' : 'assertive'
109
+ } : {
110
+ role: 'region',
111
+ 'aria-label': this.headlineSlotContent || this.headline || null
112
+ };
82
113
  const leadingIconAttrs = {
83
- name: this.leadingIcon,
114
+ name: this.statusBasedLeadingIconName,
84
115
  src: this.leadingIconSrc,
85
116
  size: this.leadingIconSize
86
117
  };
@@ -89,14 +120,14 @@ export class Alert {
89
120
  src: this.trailingIconSrc,
90
121
  size: this.trailingIconSize
91
122
  };
92
- return (h(Host, { key: 'f97ea22cbaacceb5954cbf084ddbe85975266463' }, h("div", { key: '8a2de8f27af0cb57bf429fbe0ae75557d6505111', class: "r-alert" }, this.isLeading &&
93
- h("div", { key: '6ecab67bd5eb14b06ad13f1c5257c43ff5c5acdc', class: "r-alert--leading" }, h("slot", { key: '106fad47e317120e6bdc47a4509fe3b330a43451', name: "leading" }), this.isLeadingIcon && h("r-icon", Object.assign({ key: '4d2b589d2d6179eecdaec7f2be5e265fcaf5e82b' }, leadingIconAttrs))), this.isMain ?
123
+ return (h(Host, Object.assign({ key: 'e0bb7ba3b7ca0c93e47c20c8666489976b52fe6d' }, hostAttrs), h("div", { key: 'c13d2517796fb274af8632a574196603feb13e61', class: "r-alert" }, this.isLeading &&
124
+ h("div", { key: 'b38044eb982c0b9fcd352122a6d21008e1802abb', class: "r-alert--leading" }, h("slot", { key: '01a26f5684ab9dc959c5f79cb8694a23621d091f', name: "leading" }, this.leadingIconVisible && h("r-icon", Object.assign({ key: '36b7c3e1c35faee26737e0f165ecad79c109bd4f' }, leadingIconAttrs)))), this.isMain ?
94
125
  h("div", { class: "r-alert--main" }, h("slot", { name: "headline" }, this.isHeadline && h("h3", { class: "r-alert--headline" }, this.headline)), h("slot", { name: "content" }, this.isContent && h("div", { class: "r-alert--content" }, this.content)), h("slot", { name: "link" }, this.isLink &&
95
- h("a", { class: "r-alert--link", href: this.href, target: this.target }, this.linkText)), h("slot", null))
126
+ h("r-button", { class: "r-alert--link", variant: "text-inline", size: "small", href: this.href, target: this.target }, this.linkText)), h("slot", null))
96
127
  :
97
128
  h("slot", null), this.isTrailing &&
98
- h("div", { key: '2bc31060546003c180d235f3992df5c1fdf31f30', class: "r-alert--trailing" }, h("slot", { key: '7816f3c023dd174dfe0b385ad282ad9356f7a45d', name: "trailing" }), this.isTrailingIcon &&
99
- h("r-button", { key: '493fdd793b54ba34ebe6453d668d9251874b8409', variant: "blank", onClick: this.handleTrailingButtonClick, "r-aria-label": this.dismissButtonAriaLabel || trailingIconAttrs.name }, h("r-icon", Object.assign({ key: '9148348328646173144d98d2c2f58ea67ed20c88' }, trailingIconAttrs)))))));
129
+ h("div", { key: 'dc9b171a6263c167a08816bfb2c149376eef6d34', class: "r-alert--trailing" }, h("slot", { key: '2d31946de22bb1cc247969207fc4243e4fcd7c08', name: "trailing" }, this.isTrailingIcon &&
130
+ h("r-icon-button", { key: '0c738aed534f98062835a59b55fe7b83e20473fb', name: !this.trailingIconSrc ? this.trailingIcon : null, onClick: this.handleTrailingButtonClick, label: this.dismissButtonAriaLabel }, this.trailingIconSrc && h("r-icon", Object.assign({ key: '13653d686f0886f16c157cdb3a499abbd5006d2b' }, trailingIconAttrs))))))));
100
131
  }
101
132
  static get is() { return "r-alert"; }
102
133
  static get encapsulation() { return "shadow"; }
@@ -118,7 +149,7 @@ export class Alert {
118
149
  "mutable": false,
119
150
  "complexType": {
120
151
  "original": "AlertStatus",
121
- "resolved": "\"error\" | \"info\" | \"success\" | \"warning\"",
152
+ "resolved": "\"error\" | \"info\" | \"warning\"",
122
153
  "references": {
123
154
  "AlertStatus": {
124
155
  "location": "import",
@@ -138,6 +169,26 @@ export class Alert {
138
169
  "reflect": true,
139
170
  "defaultValue": "'info'"
140
171
  },
172
+ "announced": {
173
+ "type": "boolean",
174
+ "attribute": "announced",
175
+ "mutable": false,
176
+ "complexType": {
177
+ "original": "boolean",
178
+ "resolved": "boolean",
179
+ "references": {}
180
+ },
181
+ "required": false,
182
+ "optional": false,
183
+ "docs": {
184
+ "tags": [],
185
+ "text": "Sets role=\"alert\" and will be announced to screen reader users"
186
+ },
187
+ "getter": false,
188
+ "setter": false,
189
+ "reflect": true,
190
+ "defaultValue": "true"
191
+ },
141
192
  "leadingIcon": {
142
193
  "type": "string",
143
194
  "attribute": "leading-icon",
@@ -208,6 +259,29 @@ export class Alert {
208
259
  "reflect": false,
209
260
  "defaultValue": "'m'"
210
261
  },
262
+ "leadingIconVisible": {
263
+ "type": "boolean",
264
+ "attribute": "leading-icon-visible",
265
+ "mutable": false,
266
+ "complexType": {
267
+ "original": "boolean",
268
+ "resolved": "boolean",
269
+ "references": {}
270
+ },
271
+ "required": false,
272
+ "optional": false,
273
+ "docs": {
274
+ "tags": [{
275
+ "name": "default",
276
+ "text": "true"
277
+ }],
278
+ "text": "Defines whether the leading icon is visible."
279
+ },
280
+ "getter": false,
281
+ "setter": false,
282
+ "reflect": false,
283
+ "defaultValue": "true"
284
+ },
211
285
  "trailingIcon": {
212
286
  "type": "string",
213
287
  "attribute": "trailing-icon",
@@ -231,7 +305,8 @@ export class Alert {
231
305
  },
232
306
  "getter": false,
233
307
  "setter": false,
234
- "reflect": false
308
+ "reflect": false,
309
+ "defaultValue": "'cross'"
235
310
  },
236
311
  "trailingIconSrc": {
237
312
  "type": "string",
@@ -276,7 +351,7 @@ export class Alert {
276
351
  "getter": false,
277
352
  "setter": false,
278
353
  "reflect": false,
279
- "defaultValue": "'s'"
354
+ "defaultValue": "'m'"
280
355
  },
281
356
  "headline": {
282
357
  "type": "string",
@@ -417,7 +492,7 @@ export class Alert {
417
492
  "getter": false,
418
493
  "setter": false,
419
494
  "reflect": false,
420
- "defaultValue": "'close-button'"
495
+ "defaultValue": "'Dismiss alert'"
421
496
  }
422
497
  };
423
498
  }
@@ -1,2 +1,2 @@
1
- export const alertStatusArray = ['info', 'warning', 'success', 'error'];
1
+ export const alertStatusArray = ['info', 'warning', 'error'];
2
2
  export const alertTargetArray = ['_blank', '_self', '_parent', '_top'];
@@ -29,7 +29,7 @@ export class RBadge {
29
29
  const hostAttrs = {
30
30
  variant
31
31
  };
32
- return (h(Host, Object.assign({ key: '73206915b750bff058e10baa6b725f763ce9c4cc' }, hostAttrs), h("div", { key: 'cd108d117bfd02dbddf34f026aabee07dcf9a709', class: "r-badge" }, iconVisible && h("slot", { key: '8c171f451c87943a2e079eee5dc0b41da0ef0c2b', name: "icon" }, h("r-icon", { key: 'a9fdeb7b0685cd9f76916818bd6ea5fd320cb657', size: "s", name: this.iconName, iconAriaLabel: iconAriaLabel })), h("slot", { key: '507b120621c22339e988216713197f22ab7bf6f8' }))));
32
+ return (h(Host, Object.assign({ key: '414f16e5a8bde16b295420ea689be3b528b6b9d7' }, hostAttrs), h("div", { key: 'd06b6b22be283666817326c82503080c247b3cb7', class: "r-badge" }, iconVisible && h("slot", { key: '38e1c8768bbc6560294f798ba635bb6a1ecd5ee1', name: "icon" }, h("r-icon", { key: 'da0d4672b3fd929deb32944faeb2cf6676dd0751', size: "s", name: this.iconName, iconAriaLabel: iconAriaLabel })), h("slot", { key: 'f0c3ce3e33ddb887af28e03cbd9af75f0fe0346e' }))));
33
33
  }
34
34
  static get is() { return "r-badge"; }
35
35
  static get encapsulation() { return "shadow"; }
@@ -51,7 +51,7 @@
51
51
  --r-button--border-color: var(--r-border-soft, #686868);
52
52
  }
53
53
 
54
- :host([variant=secondary] .r-button[aria-disabled=false]:active) {
54
+ :host([variant=secondary] .r-button:not([aria-disabled=true]):active) {
55
55
  --r-button--color: var(--r-text-regular, #282828);
56
56
  --r-button--border-color: var(--r-border-soft, #686868);
57
57
  --r-button--background-color: var(--r-background-interactive-pressed, rgba(40, 40, 40, 0.12));
@@ -70,7 +70,7 @@
70
70
  --r-button--background-color: var(--r-background-interactive-hovered, rgba(40, 40, 40, 0.04));
71
71
  }
72
72
 
73
- :host([variant=text] .r-button[aria-disabled=false]:active) {
73
+ :host([variant=text] .r-button:not([aria-disabled=true]):active) {
74
74
  --r-button--background-color: var(--r-background-interactive-pressed, rgba(40, 40, 40, 0.12));
75
75
  --r-button--border-color: var(--r-border-soft, #686868);
76
76
  }
@@ -99,7 +99,6 @@
99
99
  }
100
100
 
101
101
  :host([variant=text-inline]:active:not([disabled]:not([disabled=false]))) {
102
- --r-button--color: var(--r-border-softer, #c9c9c9);
103
102
  --r-button--border-color: transparent;
104
103
  --r-button--background-color: transparent;
105
104
  }
@@ -161,10 +160,10 @@
161
160
  vertical-align: var(--r-button--vertical-align, top);
162
161
  opacity: var(--r-button--opacity, 1);
163
162
  }
164
- .r-button[aria-disabled=false]:active {
165
- --r-button--color: var(--r-text-regular, #282828);
166
- --r-button--background-color: var(--r-background-interactive-pressed, rgba(40, 40, 40, 0.12));
167
- --r-button--border-color: var(--r-border-soft, #686868);
163
+ .r-button:not([aria-disabled=true]):active {
164
+ --r-button--color: var(--r-button--color--active, var(--r-text-regular, #282828));
165
+ --r-button--background-color: var(--r-button--background-color--active, var(--r-background-interactive-pressed, rgba(40, 40, 40, 0.12)));
166
+ --r-button--border-color: var(--r-button--border-color--active, var(--r-border-soft, #686868));
168
167
  }
169
168
  .r-button--slot {
170
169
  position: var(--r-button--slot--position, relative);
@@ -131,7 +131,7 @@ export class Button {
131
131
  position: iconPosition
132
132
  };
133
133
  const TagName = isLink ? 'a' : 'button';
134
- return (h(Host, { key: '0b48f424b11006ab76b94efcc9c2bf8f09b34102' }, h(TagName, Object.assign({ key: '3ce6a6d4a585fb785d44c9da2e41a6257ff83577', class: "r-button" }, attrs, { "aria-label": rAriaLabel || null, ref: (el) => (this.nativeElement = el), onClick: this.handleClick }), h("span", { key: '1a554fd1567c800d7ba10d8862e9fd90ede883a4', class: "r-button--slot" }, icon && h("r-icon", Object.assign({ key: '3a05d454414ce42b0a1ead502d0a7df48c35a647', name: icon }, iconAttrs, { size: "s" })), this.hasIconSlot && h("slot", { key: '723ad285f16dea5a7e007a46a47e308942366b92', name: "icon" }), h("div", { key: 'bf7829917767fa2d578508bbfa5c4456579f6766', style: { display: 'contents' } }, h("slot", { key: '59ecb9a9901fe5084af9d42ad408c7413e0c3d1f', onSlotchange: this.handleSlotChange }))))));
134
+ return (h(Host, { key: '97dbd8b4be7ada112d733f3e8838bb98b23ea37d' }, h(TagName, Object.assign({ key: '51ac8df717d9db6901b0bf313987fca0aa3c9e0e', class: "r-button" }, attrs, { "aria-label": rAriaLabel || null, ref: (el) => (this.nativeElement = el), onClick: this.handleClick }), h("span", { key: '5d18e8d4d11946a950196113ca34b13389d380d7', class: "r-button--slot" }, icon && h("r-icon", Object.assign({ key: 'b0eab29fd53184befd2e63cc48b8e9fa5262f742', name: icon }, iconAttrs, { size: "s" })), this.hasIconSlot && h("slot", { key: '1679c43372773a8888d790afcee23d4b4a4d5969', name: "icon" }), h("div", { key: 'd3862e66255a78e2cfb0ae3741cd8f82e4efc0ea', style: { display: 'contents' } }, h("slot", { key: '68dc5cbb93492c37139d6efdbc706050271f710f', onSlotchange: this.handleSlotChange }))))));
135
135
  }
136
136
  static get is() { return "r-button"; }
137
137
  static get encapsulation() { return "shadow"; }