@riverty/web-components 6.0.0 → 6.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 (274) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/custom-elements.json +259 -2
  3. package/dist/cjs/{index-DJ4H_bFj.js → index-BnETQtSf.js} +9 -382
  4. package/dist/cjs/loader.cjs.js +2 -2
  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 +1 -1
  8. package/dist/cjs/r-accordion.cjs.entry.js +1 -1
  9. package/dist/cjs/r-alert.cjs.entry.js +9 -6
  10. package/dist/cjs/r-badge.cjs.entry.js +1 -1
  11. package/dist/cjs/r-button.cjs.entry.js +6 -2
  12. package/dist/cjs/r-checkbox-group.cjs.entry.js +1 -1
  13. package/dist/cjs/r-checkbox.cjs.entry.js +4 -4
  14. package/dist/cjs/r-design-system-devtools.cjs.entry.js +1 -1
  15. package/dist/cjs/r-dialog.cjs.entry.js +1 -1
  16. package/dist/cjs/r-hint_2.cjs.entry.js +3 -3
  17. package/dist/cjs/r-icon-button_2.cjs.entry.js +27 -7
  18. package/dist/cjs/r-icon.cjs.entry.js +2 -2
  19. package/dist/cjs/r-illustration.cjs.entry.js +396 -0
  20. package/dist/cjs/r-input-code.cjs.entry.js +34 -12
  21. package/dist/cjs/r-input-date.cjs.entry.js +7 -7
  22. package/dist/cjs/r-input-password.cjs.entry.js +3 -3
  23. package/dist/cjs/r-input-phone-number.cjs.entry.js +4 -4
  24. package/dist/cjs/r-input.cjs.entry.js +8 -5
  25. package/dist/cjs/r-list-item.cjs.entry.js +17 -16
  26. package/dist/cjs/r-pagination.cjs.entry.js +56 -50
  27. package/dist/cjs/r-panel.cjs.entry.js +6 -6
  28. package/dist/cjs/r-popover-action.cjs.entry.js +2 -2
  29. package/dist/cjs/r-popover-content.cjs.entry.js +2 -2
  30. package/dist/cjs/r-popover-headline.cjs.entry.js +2 -2
  31. package/dist/cjs/r-popover-trigger.cjs.entry.js +2 -2
  32. package/dist/cjs/r-popover.cjs.entry.js +46 -5
  33. package/dist/cjs/r-progress-bar.cjs.entry.js +2 -2
  34. package/dist/cjs/r-radio-button-description.cjs.entry.js +2 -2
  35. package/dist/cjs/r-radio-button-leading.cjs.entry.js +2 -2
  36. package/dist/cjs/r-radio-button-title.cjs.entry.js +2 -2
  37. package/dist/cjs/r-radio-button-trailing.cjs.entry.js +2 -2
  38. package/dist/cjs/r-radio-button.cjs.entry.js +8 -7
  39. package/dist/cjs/r-radio-group.cjs.entry.js +83 -10
  40. package/dist/cjs/r-select-option.cjs.entry.js +2 -2
  41. package/dist/cjs/r-select.cjs.entry.js +6 -4
  42. package/dist/cjs/r-skip-link.cjs.entry.js +2 -2
  43. package/dist/cjs/r-stepper-item.cjs.entry.js +19 -4
  44. package/dist/cjs/r-stepper.cjs.entry.js +76 -3
  45. package/dist/cjs/r-tab-panel.cjs.entry.js +2 -2
  46. package/dist/cjs/r-tab.cjs.entry.js +7 -3
  47. package/dist/cjs/r-tabs-list.cjs.entry.js +161 -3
  48. package/dist/cjs/r-tabs.cjs.entry.js +35 -7
  49. package/dist/cjs/r-textarea.cjs.entry.js +2 -2
  50. package/dist/cjs/r-toast-group.cjs.entry.js +13 -4
  51. package/dist/cjs/r-toast.cjs.entry.js +104 -15
  52. package/dist/cjs/web-components.cjs.js +2 -2
  53. package/dist/collection/collection-manifest.json +1 -0
  54. package/dist/collection/components/alert/alert.css +6 -6
  55. package/dist/collection/components/alert/alert.js +7 -4
  56. package/dist/collection/components/button/button.js +30 -1
  57. package/dist/collection/components/button/exports.js +1 -0
  58. package/dist/collection/components/checkbox/checkbox.js +3 -3
  59. package/dist/collection/components/icon/exports.js +1 -1
  60. package/dist/collection/components/icon/icon.js +1 -1
  61. package/dist/collection/components/icon/riverty-kit.js +1 -1
  62. package/dist/collection/components/icon-button/icon-button.js +22 -3
  63. package/dist/collection/components/illustration/data.js +112 -0
  64. package/dist/collection/components/illustration/exports.js +3 -0
  65. package/dist/collection/components/illustration/illustration.js +540 -0
  66. package/dist/collection/components/illustration/illustration.scss +56 -0
  67. package/dist/collection/components/illustration/illustrations-ui-kit.js +2 -0
  68. package/dist/collection/components/input/exports.js +3 -0
  69. package/dist/collection/components/input/input.css +3 -0
  70. package/dist/collection/components/input/input.js +100 -3
  71. package/dist/collection/components/input-code/exports.js +2 -2
  72. package/dist/collection/components/input-code/input-code.css +6 -0
  73. package/dist/collection/components/input-code/input-code.js +54 -16
  74. package/dist/collection/components/input-date/input-date.js +6 -6
  75. package/dist/collection/components/input-password/input-password.js +2 -2
  76. package/dist/collection/components/input-phone-number/input-phone-number.js +3 -3
  77. package/dist/collection/components/label/label.js +2 -2
  78. package/dist/collection/components/list-item/list-item/list-item.css +46 -12
  79. package/dist/collection/components/list-item/list-item/list-item.js +34 -14
  80. package/dist/collection/components/pagination/pagination.css +33 -72
  81. package/dist/collection/components/pagination/pagination.js +194 -48
  82. package/dist/collection/components/panel/panel.css +40 -17
  83. package/dist/collection/components/panel/panel.js +6 -6
  84. package/dist/collection/components/popover/popover.css +0 -1
  85. package/dist/collection/components/popover/popover.js +44 -3
  86. package/dist/collection/components/popover-action/popover-action.js +1 -1
  87. package/dist/collection/components/popover-content/popover-content.js +1 -1
  88. package/dist/collection/components/popover-headline/popover-headline.js +1 -1
  89. package/dist/collection/components/popover-trigger/popover-trigger.js +1 -1
  90. package/dist/collection/components/progress-bar/progress-bar.js +1 -1
  91. package/dist/collection/components/radio-button/radio-button.js +7 -6
  92. package/dist/collection/components/radio-button-description/radio-button-description.js +1 -1
  93. package/dist/collection/components/radio-button-leading/radio-button-leading.js +1 -1
  94. package/dist/collection/components/radio-button-title/radio-button-title.js +1 -1
  95. package/dist/collection/components/radio-button-trailing/radio-button-trailing.js +1 -1
  96. package/dist/collection/components/radio-group/radio-group.css +4 -1
  97. package/dist/collection/components/radio-group/radio-group.js +100 -8
  98. package/dist/collection/components/select/select.js +5 -3
  99. package/dist/collection/components/select-option/select-option.js +1 -1
  100. package/dist/collection/components/skip-link/skip-link.js +1 -1
  101. package/dist/collection/components/stepper/stepper.css +5 -2
  102. package/dist/collection/components/stepper/stepper.js +125 -1
  103. package/dist/collection/components/stepper-item/stepper-item.css +25 -12
  104. package/dist/collection/components/stepper-item/stepper-item.js +36 -2
  105. package/dist/collection/components/tab/tab.css +29 -29
  106. package/dist/collection/components/tab/tab.js +5 -1
  107. package/dist/collection/components/tab-panel/tab-panel.js +1 -1
  108. package/dist/collection/components/tabs/tabs.js +34 -6
  109. package/dist/collection/components/tabs-list/exports.js +2 -0
  110. package/dist/collection/components/tabs-list/tabs-list.css +43 -2
  111. package/dist/collection/components/tabs-list/tabs-list.js +277 -1
  112. package/dist/collection/components/textarea/textarea.css +1 -1
  113. package/dist/collection/components/toast/toast.css +37 -11
  114. package/dist/collection/components/toast/toast.js +140 -18
  115. package/dist/collection/components/toast-group/toast-group.css +5 -11
  116. package/dist/collection/components/toast-group/toast-group.js +12 -3
  117. package/dist/collection/components/tooltip/tooltip.js +24 -4
  118. package/dist/esm/{index-Da7qOBFr.js → index-CTxpqopm.js} +9 -382
  119. package/dist/esm/loader.js +3 -3
  120. package/dist/esm/r-accordion-panel.entry.js +1 -1
  121. package/dist/esm/r-accordion-section.entry.js +1 -1
  122. package/dist/esm/r-accordion-trigger.entry.js +1 -1
  123. package/dist/esm/r-accordion.entry.js +1 -1
  124. package/dist/esm/r-alert.entry.js +9 -6
  125. package/dist/esm/r-badge.entry.js +1 -1
  126. package/dist/esm/r-button.entry.js +6 -2
  127. package/dist/esm/r-checkbox-group.entry.js +1 -1
  128. package/dist/esm/r-checkbox.entry.js +4 -4
  129. package/dist/esm/r-design-system-devtools.entry.js +1 -1
  130. package/dist/esm/r-dialog.entry.js +1 -1
  131. package/dist/esm/r-hint_2.entry.js +3 -3
  132. package/dist/esm/r-icon-button_2.entry.js +27 -7
  133. package/dist/esm/r-icon.entry.js +2 -2
  134. package/dist/esm/r-illustration.entry.js +394 -0
  135. package/dist/esm/r-input-code.entry.js +34 -12
  136. package/dist/esm/r-input-date.entry.js +7 -7
  137. package/dist/esm/r-input-password.entry.js +3 -3
  138. package/dist/esm/r-input-phone-number.entry.js +4 -4
  139. package/dist/esm/r-input.entry.js +8 -5
  140. package/dist/esm/r-list-item.entry.js +17 -16
  141. package/dist/esm/r-pagination.entry.js +56 -50
  142. package/dist/esm/r-panel.entry.js +6 -6
  143. package/dist/esm/r-popover-action.entry.js +2 -2
  144. package/dist/esm/r-popover-content.entry.js +2 -2
  145. package/dist/esm/r-popover-headline.entry.js +2 -2
  146. package/dist/esm/r-popover-trigger.entry.js +2 -2
  147. package/dist/esm/r-popover.entry.js +46 -5
  148. package/dist/esm/r-progress-bar.entry.js +2 -2
  149. package/dist/esm/r-radio-button-description.entry.js +2 -2
  150. package/dist/esm/r-radio-button-leading.entry.js +2 -2
  151. package/dist/esm/r-radio-button-title.entry.js +2 -2
  152. package/dist/esm/r-radio-button-trailing.entry.js +2 -2
  153. package/dist/esm/r-radio-button.entry.js +8 -7
  154. package/dist/esm/r-radio-group.entry.js +83 -10
  155. package/dist/esm/r-select-option.entry.js +2 -2
  156. package/dist/esm/r-select.entry.js +6 -4
  157. package/dist/esm/r-skip-link.entry.js +2 -2
  158. package/dist/esm/r-stepper-item.entry.js +19 -4
  159. package/dist/esm/r-stepper.entry.js +76 -3
  160. package/dist/esm/r-tab-panel.entry.js +2 -2
  161. package/dist/esm/r-tab.entry.js +7 -3
  162. package/dist/esm/r-tabs-list.entry.js +161 -3
  163. package/dist/esm/r-tabs.entry.js +35 -7
  164. package/dist/esm/r-textarea.entry.js +2 -2
  165. package/dist/esm/r-toast-group.entry.js +13 -4
  166. package/dist/esm/r-toast.entry.js +104 -15
  167. package/dist/esm/web-components.js +3 -3
  168. package/dist/types/components/alert/alert.d.ts +1 -0
  169. package/dist/types/components/button/button.d.ts +8 -1
  170. package/dist/types/components/button/exports.d.ts +2 -0
  171. package/dist/types/components/icon/{icon-data.d.ts → data.d.ts} +2 -1
  172. package/dist/types/components/icon/exports.d.ts +2 -1
  173. package/dist/types/components/icon/riverty-kit.d.ts +2 -1
  174. package/dist/types/components/icon-button/icon-button.d.ts +4 -0
  175. package/dist/types/components/illustration/data.d.ts +52 -0
  176. package/dist/types/components/illustration/exports.d.ts +23 -0
  177. package/dist/types/components/illustration/illustration.d.ts +51 -0
  178. package/dist/types/components/illustration/illustrations-ui-kit.d.ts +21 -0
  179. package/dist/types/components/input/exports.d.ts +6 -0
  180. package/dist/types/components/input/input.d.ts +31 -1
  181. package/dist/types/components/input-code/exports.d.ts +4 -4
  182. package/dist/types/components/input-code/input-code.d.ts +18 -4
  183. package/dist/types/components/list-item/list-item/list-item.d.ts +5 -3
  184. package/dist/types/components/pagination/pagination.d.ts +19 -0
  185. package/dist/types/components/popover/popover.d.ts +9 -0
  186. package/dist/types/components/radio-group/radio-group.d.ts +16 -0
  187. package/dist/types/components/stepper/stepper.d.ts +11 -0
  188. package/dist/types/components/stepper-item/stepper-item.d.ts +7 -0
  189. package/dist/types/components/tabs/tabs.d.ts +1 -0
  190. package/dist/types/components/tabs-list/exports.d.ts +4 -0
  191. package/dist/types/components/tabs-list/tabs-list.d.ts +38 -0
  192. package/dist/types/components/toast/toast.d.ts +20 -3
  193. package/dist/types/components/tooltip/tooltip.d.ts +5 -0
  194. package/dist/types/components.d.ts +360 -17
  195. package/dist/web-components/p-02b22f8e.entry.js +1 -0
  196. package/dist/web-components/{p-d054eb4d.entry.js → p-075a8dc8.entry.js} +1 -1
  197. package/dist/web-components/{p-8a66d20c.entry.js → p-0a34d33b.entry.js} +1 -1
  198. package/dist/web-components/{p-8c31cbd5.entry.js → p-10cc9983.entry.js} +1 -1
  199. package/dist/web-components/{p-d7726e46.entry.js → p-253068b9.entry.js} +1 -1
  200. package/dist/web-components/{p-3884c6e7.entry.js → p-3b8c8951.entry.js} +1 -1
  201. package/dist/web-components/{p-550e2237.entry.js → p-3beacdab.entry.js} +1 -1
  202. package/dist/web-components/{p-e2188953.entry.js → p-4214867d.entry.js} +1 -1
  203. package/dist/web-components/{p-3f60c6c0.entry.js → p-42c857e9.entry.js} +1 -1
  204. package/dist/web-components/{p-7fed6f4d.entry.js → p-44f87e16.entry.js} +1 -1
  205. package/dist/web-components/p-477614c5.entry.js +1 -0
  206. package/dist/web-components/{p-1da75540.entry.js → p-495ba3d2.entry.js} +1 -1
  207. package/dist/web-components/p-4de76291.entry.js +1 -0
  208. package/dist/web-components/{p-05738503.entry.js → p-55600d47.entry.js} +1 -1
  209. package/dist/web-components/p-562051aa.entry.js +1 -0
  210. package/dist/web-components/p-5b850e0f.entry.js +1 -0
  211. package/dist/web-components/p-6013dfc8.entry.js +1 -0
  212. package/dist/web-components/{p-6cc2ea2c.entry.js → p-62e7ae04.entry.js} +1 -1
  213. package/dist/web-components/p-71519d37.entry.js +1 -0
  214. package/dist/web-components/p-88f7b47f.entry.js +1 -0
  215. package/dist/web-components/p-8975a6a3.entry.js +1 -0
  216. package/dist/web-components/p-8e125826.entry.js +1 -0
  217. package/dist/web-components/p-91cc0bde.entry.js +1 -0
  218. package/dist/web-components/{p-0347feff.entry.js → p-93435fcd.entry.js} +1 -1
  219. package/dist/web-components/p-947969d7.entry.js +1 -0
  220. package/dist/web-components/p-95396b5c.entry.js +1 -0
  221. package/dist/web-components/p-9de3a1a5.entry.js +1 -0
  222. package/dist/web-components/p-9f583ed1.entry.js +1 -0
  223. package/dist/web-components/p-CTxpqopm.js +2 -0
  224. package/dist/web-components/{p-e5945c01.entry.js → p-a1086abe.entry.js} +1 -1
  225. package/dist/web-components/{p-f9d5004c.entry.js → p-bbba6d79.entry.js} +1 -1
  226. package/dist/web-components/{p-c478712b.entry.js → p-bde44ec4.entry.js} +1 -1
  227. package/dist/web-components/p-bfc7e6c0.entry.js +1 -0
  228. package/dist/web-components/p-c1030394.entry.js +1 -0
  229. package/dist/web-components/p-c1f59ed1.entry.js +1 -0
  230. package/dist/web-components/{p-26ef77d6.entry.js → p-c80a5541.entry.js} +1 -1
  231. package/dist/web-components/{p-9ef1bbee.entry.js → p-c96ee61a.entry.js} +1 -1
  232. package/dist/web-components/{p-8dac326b.entry.js → p-caf8f067.entry.js} +1 -1
  233. package/dist/web-components/p-cc363c3d.entry.js +1 -0
  234. package/dist/web-components/p-cf4ff357.entry.js +1 -0
  235. package/dist/web-components/p-d0310ed4.entry.js +1 -0
  236. package/dist/web-components/p-d1412932.entry.js +1 -0
  237. package/dist/web-components/{p-62b788bf.entry.js → p-d2447e30.entry.js} +1 -1
  238. package/dist/web-components/p-dc9cca06.entry.js +1 -0
  239. package/dist/web-components/p-e5b943a2.entry.js +1 -0
  240. package/dist/web-components/{p-4cc58c6a.entry.js → p-e67b13df.entry.js} +1 -1
  241. package/dist/web-components/p-efec231a.entry.js +1 -0
  242. package/dist/web-components/{p-4595fa8e.entry.js → p-f867e4c3.entry.js} +1 -1
  243. package/dist/web-components/web-components.esm.js +1 -1
  244. package/package.json +5 -2
  245. package/dist/collection/components/icon/bundled-icons/all-kit.json +0 -1
  246. package/dist/collection/components/icon/bundled-icons/riverty-kit.json +0 -1
  247. package/dist/web-components/bundled-icons/all-kit.json +0 -1
  248. package/dist/web-components/bundled-icons/riverty-kit.json +0 -1
  249. package/dist/web-components/p-0e4c8bf1.entry.js +0 -1
  250. package/dist/web-components/p-3a5a67e7.entry.js +0 -1
  251. package/dist/web-components/p-4254a383.entry.js +0 -1
  252. package/dist/web-components/p-5441b746.entry.js +0 -1
  253. package/dist/web-components/p-589baaf9.entry.js +0 -1
  254. package/dist/web-components/p-60341de2.entry.js +0 -1
  255. package/dist/web-components/p-60ca994e.entry.js +0 -1
  256. package/dist/web-components/p-6303b9fe.entry.js +0 -1
  257. package/dist/web-components/p-63fd817d.entry.js +0 -1
  258. package/dist/web-components/p-673dbfd0.entry.js +0 -1
  259. package/dist/web-components/p-67fa3f84.entry.js +0 -1
  260. package/dist/web-components/p-6a4f3836.entry.js +0 -1
  261. package/dist/web-components/p-70784685.entry.js +0 -1
  262. package/dist/web-components/p-8b4d2448.entry.js +0 -1
  263. package/dist/web-components/p-Da7qOBFr.js +0 -2
  264. package/dist/web-components/p-a0dbde7c.entry.js +0 -1
  265. package/dist/web-components/p-a71485d8.entry.js +0 -1
  266. package/dist/web-components/p-a7d22c76.entry.js +0 -1
  267. package/dist/web-components/p-ae251d2f.entry.js +0 -1
  268. package/dist/web-components/p-b98ab649.entry.js +0 -1
  269. package/dist/web-components/p-b9e3b3d6.entry.js +0 -1
  270. package/dist/web-components/p-c1e748f2.entry.js +0 -1
  271. package/dist/web-components/p-d433a828.entry.js +0 -1
  272. package/dist/web-components/p-d819c8e5.entry.js +0 -1
  273. package/dist/web-components/p-f7adb875.entry.js +0 -1
  274. /package/dist/collection/components/icon/{icon-data.js → data.js} +0 -0
@@ -1,14 +1,172 @@
1
- import { r as registerInstance, h, H as Host } from './index-Da7qOBFr.js';
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-CTxpqopm.js';
2
2
 
3
- const tabsListCss = ":host{display:block}.r-tabs-list{display:var(--r-tabs-list--display, flex);margin-bottom:var(--r-tabs-list--margin-bottom, 40px);border-bottom-width:var(--r-tabs-list--border-bottom-width, 1px);border-bottom-style:var(--r-tabs-list--border-bottom-style, solid);border-bottom-color:var(--r-tabs-list--border-bottom-color, var(--r-border-softer, #c9c9c9))}.r-tabs-list ::slotted(r-tab){margin-right:var(--r-tabs-list--r-tab--margin-right, 40px)}.r-tabs-list ::slotted(r-tab:last-of-type){margin-right:var(--r-tabs-list--r-tab--last-of-type--margin-right, 0)}";
3
+ const tabsListCss = ":host{display:block}:host([variant=compact]){--r-tabs-list--r-tab--margin-right:0;--r-tabs-list--r-tab--flex:1;--r-tab--width:100%}:host([scrollable=true]){--r-tabs-list--tabs-container--margin:-6px 4px}:host([border=branded]){--r-tab--marker--background-color:var(--r-border-brand-vanguard, #527a42)}.r-tabs-list{display:var(--r-tabs-list--display, flex);margin-bottom:var(--r-tabs-list--margin-bottom, var(--r-spacing-250, 2.5rem));border-bottom-width:var(--r-tabs-list--border-bottom-width, 1px);border-bottom-style:var(--r-tabs-list--border-bottom-style, solid);border-bottom-color:var(--r-tabs-list--border-bottom-color, var(--r-border-softer, #c9c9c9))}.r-tabs-list--scroll-button{--r-icon-button--border-radius:var(--r-tabs-list--border-radius, 0);--r-icon-button--width:var(--r-tabs-list--scroll-button--width, var(--r-spacing-200, 2rem));--r-icon-button--height:var(--r-tabs-list--scroll-button--height, var(--r-spacing-200, 2rem))}.r-tabs-list--tabs-container{display:var(--r-tabs-list--tabs-container--display, flex);flex:var(--r-tabs-list--tabs-container--flex, 1);overflow:var(--r-tabs-list--tabs-container--overflow, scroll hidden);scroll-snap-type:var(--r-tabs-list--tabs-container--scroll-snap-type, x proximity);scrollbar-width:var(--r-tabs-list--tabs-container--scrollbar-width, none);margin:var(--r-tabs-list--tabs-container--margin, -6px);padding:var(--r-tabs-list--tabs-container--padding, 6px)}.r-tabs-list--scroll-button-container{display:var(--r-tabs-list--scroll-button-container--display, flex);align-items:var(--r-tabs-list--scroll-button-container--align-items, start);gap:var(--r-tabs-list--scroll-button-container--gap, var(--r-spacing-025, 0.25rem))}.r-tabs-list--scroll-indicator{margin-top:var(--r-tabs-list--scroll-indicator--margin, 2px);width:var(--r-tabs-list--scroll-button--after--width, 1px);height:var(--r-tabs-list--scroll-button--after--height, var(--r-spacing-175, 1.75rem));background-color:var(--r-tabs-list----scroll-indicator--background-color, var(--r-border-softer, #c9c9c9));z-index:var(--r-tabs-list----scroll-indicator--z-index, 1)}.r-tabs-list ::slotted(r-tab){margin-right:var(--r-tabs-list--r-tab--margin-right, var(--r-spacing-250, 2.5rem));flex:var(--r-tabs-list--r-tab--flex, none)}.r-tabs-list ::slotted(r-tab:last-of-type){margin-right:var(--r-tabs-list--r-tab--last-of-type--margin-right, 0)}";
4
4
 
5
5
  const RTabsList = class {
6
6
  constructor(hostRef) {
7
7
  registerInstance(this, hostRef);
8
+ /**
9
+ * Visual variant of the tab list
10
+ * @defaulr 'expanded'
11
+ * */
12
+ this.variant = 'expanded';
13
+ /**
14
+ * Border style of the active tab
15
+ * @default 'standard'
16
+ * */
17
+ this.border = 'standard';
18
+ /** Indicates if the tab list is scrollable */
19
+ this.scrollable = false;
20
+ /** Indicates if the first tab is fully visible */
21
+ this.firstItemVisible = true;
22
+ /** Indicates if the last tab is fully visible */
23
+ this.lastItemVisible = false;
24
+ this.initiatizeResizeObserver = () => {
25
+ if (!this.containerRef || this.resizeObserver)
26
+ return;
27
+ this.resizeObserver = new ResizeObserver(() => this.updateScrollState());
28
+ this.resizeObserver.observe(this.containerRef);
29
+ };
30
+ this.updateScrollState = () => {
31
+ if (!this.containerRef)
32
+ return;
33
+ const { scrollWidth, clientWidth } = this.containerRef;
34
+ const containerRect = this.containerRef.getBoundingClientRect();
35
+ const tabs = Array.from(this.tabElements);
36
+ // Check if content is scrollable
37
+ this.scrollable = scrollWidth > clientWidth;
38
+ if (!this.scrollable || tabs.length === 0) {
39
+ this.firstItemVisible = true;
40
+ this.lastItemVisible = true;
41
+ return;
42
+ }
43
+ const firstTab = tabs[0];
44
+ const firstTabRect = firstTab.getBoundingClientRect();
45
+ this.firstItemVisible = firstTabRect.left >= containerRect.left - 1;
46
+ const lastTab = tabs[tabs.length - 1];
47
+ const lastTabRect = lastTab.getBoundingClientRect();
48
+ this.lastItemVisible = lastTabRect.right <= containerRect.right + 1;
49
+ };
50
+ this.getVisibleTabOnLeft = () => {
51
+ if (!this.containerRef)
52
+ return null;
53
+ const containerRect = this.containerRef.getBoundingClientRect();
54
+ const tabs = Array.from(this.tabElements);
55
+ // Find first tab that's partially or fully visible from the left
56
+ for (const tab of tabs) {
57
+ const tabRect = tab.getBoundingClientRect();
58
+ if (tabRect.right > containerRect.left + 1) {
59
+ return tab;
60
+ }
61
+ }
62
+ return;
63
+ };
64
+ this.getVisibleTabOnRight = () => {
65
+ if (!this.containerRef)
66
+ return null;
67
+ const containerRect = this.containerRef.getBoundingClientRect();
68
+ const tabs = Array.from(this.tabElements);
69
+ for (let i = tabs.length - 1; i >= 0; i--) {
70
+ const tab = tabs[i];
71
+ const tabRect = tab.getBoundingClientRect();
72
+ if (tabRect.left < containerRect.right - 1) {
73
+ return tab;
74
+ }
75
+ }
76
+ return null;
77
+ };
78
+ this.scrollLeft = () => {
79
+ if (!this.containerRef)
80
+ return;
81
+ const visibleTab = this.getVisibleTabOnLeft();
82
+ if (!visibleTab)
83
+ return;
84
+ const tabs = Array.from(this.tabElements);
85
+ const currentIndex = tabs.indexOf(visibleTab);
86
+ const prevTab = currentIndex > 0 ? tabs[currentIndex - 1] : null;
87
+ if (!prevTab)
88
+ return;
89
+ const containerLeft = this.containerRef.getBoundingClientRect().left;
90
+ const prevTabLeft = prevTab.getBoundingClientRect().left;
91
+ const offset = prevTabLeft - containerLeft;
92
+ this.containerRef.scrollBy({
93
+ left: offset,
94
+ behavior: 'smooth'
95
+ });
96
+ };
97
+ this.scrollRight = () => {
98
+ if (!this.containerRef)
99
+ return;
100
+ const visibleTab = this.getVisibleTabOnRight();
101
+ if (!visibleTab)
102
+ return;
103
+ const tabs = Array.from(this.tabElements);
104
+ const currentIndex = tabs.indexOf(visibleTab);
105
+ const nextTab = currentIndex < tabs.length - 1 ? tabs[currentIndex + 1] : null;
106
+ if (!nextTab)
107
+ return;
108
+ const containerRight = this.containerRef.getBoundingClientRect().right;
109
+ const nextTabRight = nextTab.getBoundingClientRect().right;
110
+ const offset = nextTabRight - containerRight;
111
+ this.containerRef.scrollBy({
112
+ left: offset,
113
+ behavior: 'smooth'
114
+ });
115
+ };
116
+ this.scrollToActiveTab = (activeTabElement) => {
117
+ if (!this.containerRef || !this.scrollable)
118
+ return;
119
+ const activeTab = activeTabElement || this.host.querySelector('r-tab[active]');
120
+ if (!activeTab)
121
+ return;
122
+ const containerRect = this.containerRef.getBoundingClientRect();
123
+ const activeTabRect = activeTab.getBoundingClientRect();
124
+ // Check if already fully visible
125
+ const isVisible = activeTabRect.left >= containerRect.left &&
126
+ activeTabRect.right <= containerRect.right;
127
+ if (isVisible)
128
+ return;
129
+ // Center the active tab
130
+ const offset = (activeTabRect.left - containerRect.left) -
131
+ (containerRect.width / 2) +
132
+ (activeTabRect.width / 2);
133
+ this.containerRef.scrollBy({
134
+ left: offset,
135
+ behavior: 'smooth'
136
+ });
137
+ };
138
+ this.renderScrollButton = (direction, disabled, onClick, tooltip) => {
139
+ const iconName = direction === 'left' ? 'angle-left' : 'angle-right';
140
+ const button = (h("r-icon-button", { onRClick: onClick, disabled: disabled, name: iconName, size: "s", rTabindex: -1, class: "r-tabs-list--scroll-button" }));
141
+ if (tooltip) {
142
+ return (h("r-tooltip", { text: tooltip, position: "top" }, button));
143
+ }
144
+ return button;
145
+ };
146
+ }
147
+ /** Listen for "click" event on `<r-tab>` */
148
+ tabChangeAction(event) {
149
+ this.scrollToActiveTab(event.target);
150
+ }
151
+ /** `<r-tab>` group of elements */
152
+ get tabElements() {
153
+ return this.host.querySelectorAll('r-tab');
154
+ }
155
+ componentDidLoad() {
156
+ this.updateScrollState();
157
+ this.initiatizeResizeObserver();
158
+ this.scrollToActiveTab();
159
+ }
160
+ disconnectedCallback() {
161
+ var _a;
162
+ (_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
8
163
  }
9
164
  render() {
10
- return (h(Host, { key: '98a63f5b2df8649a90efc639cf745537eb903446', role: "tablist" }, h("div", { key: 'f1f0ce63461fed127e2e0789e941404545265b51', class: "r-tabs-list" }, h("slot", { key: 'e8302171cd66fba6332ed3301be7370dff43e69d' }))));
165
+ return (h(Host, { key: '19666af123fe058aa3e654c153ad84ec16861a59', scrollable: `${this.scrollable}`, role: "tablist" }, h("div", { key: '5de7241f57b419133f81ae565bf517873a8e9268', class: "r-tabs-list" }, this.scrollable &&
166
+ h("div", { key: 'ff5edcbb61dd4ba9be3e0baf22822edbcbf8ec6d', "aria-hidden": "true", class: "r-tabs-list--scroll-button-container" }, this.renderScrollButton('left', this.firstItemVisible, this.scrollLeft, this.scrollLeftTooltip), !this.firstItemVisible && h("div", { key: '76fbeab529e2a7869ac7e946b1c0863969114888', class: "r-tabs-list--scroll-indicator" })), h("div", { key: 'd520b386242700c000daf85eba8d50fb014fc616', class: "r-tabs-list--tabs-container", ref: (el) => this.containerRef = el, onScroll: this.updateScrollState }, h("slot", { key: 'f8534275445ed4d32154519f0a8f592ee7ea3353' })), this.scrollable &&
167
+ h("div", { key: '8ca03d4864eba5af975de4dd6dc6fd3c3e8be108', "aria-hidden": "true", class: "r-tabs-list--scroll-button-container" }, !this.lastItemVisible && h("div", { key: '1a0534b79bbe3273a73f48530a3a17ccac0d7826', class: "r-tabs-list--scroll-indicator" }), this.renderScrollButton('right', this.lastItemVisible, this.scrollRight, this.scrollRightTooltip)))));
11
168
  }
169
+ get host() { return getElement(this); }
12
170
  };
13
171
  RTabsList.style = tabsListCss;
14
172
 
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-Da7qOBFr.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-CTxpqopm.js';
2
2
 
3
3
  const tabsCss = ":host{display:block;margin-top:var(--r-spacing-150, 1.5rem)}";
4
4
 
@@ -185,23 +185,51 @@ const RTabs = class {
185
185
  history.pushState({ tabId, tabsGroup }, '', url.toString());
186
186
  }
187
187
  _changeFocusTab(tab, keycode) {
188
- var _a, _b, _c, _d;
189
188
  const tabs = Array.from(this.tabElements).filter(element => !element.disabled);
190
189
  const index = tabs.indexOf(tab);
190
+ let nextTab;
191
191
  switch (keycode) {
192
192
  case 'ArrowLeft':
193
- index === 0 ? (_a = tabs[tabs.length - 1]) === null || _a === void 0 ? void 0 : _a.focus() : tabs[index - 1].focus();
193
+ nextTab = index === 0 ? tabs[tabs.length - 1] : tabs[index - 1];
194
194
  break;
195
195
  case 'ArrowRight':
196
- index === tabs.length - 1 ? (_b = tabs[0]) === null || _b === void 0 ? void 0 : _b.focus() : tabs[index + 1].focus();
196
+ nextTab = index === tabs.length - 1 ? tabs[0] : tabs[index + 1];
197
197
  break;
198
198
  case 'Home':
199
- (_c = tabs[0]) === null || _c === void 0 ? void 0 : _c.focus();
199
+ nextTab = tabs[0];
200
200
  break;
201
201
  case 'End':
202
- (_d = tabs[tabs.length - 1]) === null || _d === void 0 ? void 0 : _d.focus();
202
+ nextTab = tabs[tabs.length - 1];
203
203
  break;
204
204
  }
205
+ if (nextTab) {
206
+ nextTab.focus();
207
+ this.scrollTabIntoView(nextTab);
208
+ }
209
+ }
210
+ scrollTabIntoView(tab) {
211
+ var _a;
212
+ const tabsList = this.host.querySelector('r-tabs-list');
213
+ if (!tabsList)
214
+ return;
215
+ const container = (_a = tabsList.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.r-tabs-list--tabs-container');
216
+ if (!container)
217
+ return;
218
+ const containerRect = container.getBoundingClientRect();
219
+ const tabRect = tab.getBoundingClientRect();
220
+ // Check if tab is fully visible
221
+ const isFullyVisible = tabRect.left >= containerRect.left - 1 &&
222
+ tabRect.right <= containerRect.right + 1;
223
+ if (isFullyVisible)
224
+ return;
225
+ // Calculate scroll offset to center the tab
226
+ const centerOffset = (tabRect.left - containerRect.left) -
227
+ (containerRect.width / 2) +
228
+ (tabRect.width / 2);
229
+ container.scrollBy({
230
+ left: centerOffset,
231
+ behavior: 'smooth'
232
+ });
205
233
  }
206
234
  /** Listen for "click" event on `<r-tab>` */
207
235
  tabChangeAction(event) {
@@ -238,7 +266,7 @@ const RTabs = class {
238
266
  this._changeFocusTab(e.target, e.detail.keycode);
239
267
  }
240
268
  render() {
241
- return (h(Host, { key: '4c86b16a8af456854579e7141ff2b3d2b60627e5', class: "r-tabs" }, h("slot", { key: '589b8ae9f3f51df095ed28b896714e1407fd9d87' })));
269
+ return (h(Host, { key: '0737bf78e596f8fb9d4a2ec10f1503d1072f2683', class: "r-tabs" }, h("slot", { key: '5bc87b17930c9ea159ef29335c6b11f0f4c7d43e' })));
242
270
  }
243
271
  get host() { return getElement(this); }
244
272
  };
@@ -1,7 +1,7 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-Da7qOBFr.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-CTxpqopm.js';
2
2
  import { a as appendControlToFormData } from './formData-DvLT8-y3.js';
3
3
 
4
- const textareaCss = ":host{opacity:1;display:block;outline:none;--r-label--margin-bottom:0}:host(:focus-visible){outline:none}:host([resize=none]){--r-textarea--input--resize:none}:host([resize=both]){--r-textarea--input--resize:both}:host([resize=horizontal]){--r-textarea--input--resize:horizontal}:host([resize=vertical]){--r-textarea--input--resize:vertical}:host([resize=initial]){--r-textarea--input--resize:initial}:host([resize=inherit]){--r-textarea--input--resize:inherit}:host([invalid]:not([invalid=false])){--r-textarea--container--background-color:var(--r-status-error-soft, #fef6f6);--r-textarea--container--border-color:var(--r-status-error-regular, #b00c15)}.r-textarea--label-container{display:var(--r-textarea--label-container--display, flex);gap:var(--r-textarea--label-container--gap, var(--r-spacing-100, 1rem));align-items:var(--r-textarea--label-container--align-items, center);justify-content:var(--r-textarea--label-container--align-items, space-between)}.r-textarea--label-container ::slotted([slot=popover]){display:var(--r-textarea--popover--display, inline-flex);height:var(--r-textarea--popover--height, var(--r-spacing-150, 1.5));align-items:var(--r-textarea--popover--align-items, center);justify-content:var(--r-textarea--popover--justify-content, center);margin-right:var(--r-textarea--popover--margin-right, -0.25rem);--r-popover--trigger--min-width:var(--r-textarea--popover-trigger--min-width, var(--r-spacing-150, 1.5))}.r-textarea--input::placeholder{color:var(--r-textarea--input--placeholder--color, var(--r-text-soft, #686868))}.r-textarea--input{vertical-align:top;width:var(--r-textarea--input--width, 100%);max-width:var(--r-textarea--input--max-width, 100%);min-height:var(--r-textarea--input--min-height, 8.875em);font-family:var(--r-textarea--input--font-family, var(--r-font-family-text, system-ui));font-weight:var(--r-textarea--input--font-weight, var(--r-font-weight-regular, 400));font-size:var(--r-textarea--input--font-size, var(--r-font-size-400, 1rem));line-height:var(--r-textarea--input--line-height, var(--r-line-height-m, 1.5));color:var(--r-textarea--input--color, var(--r-text-regular, #282828));background-color:var(--r-textarea--input--background-color, transparent);opacity:var(--r-textarea--input--opacity, 1);border-width:var(--r-textarea--input--border-width, 0px);border-style:var(--r-textarea--input--border-style, solid);border-color:var(--r-textarea--input--border-color, var(--r-border-soft, #686868));border-radius:var(--r-textarea--input--border-radius, 0);box-sizing:var(--r-textarea--input--box-sizing, border-box);box-shadow:var(--r-textarea--input--box-shadow, none);padding:var(--r-textarea--input--padding, var(--r-textarea--input--padding-top, 0.688em) var(--r-textarea--input--padding-right, 0.625em) var(--r-textarea--input--padding-bottom, 0.688em) var(--r-textarea--input--padding-left, 0.625em));margin-top:var(--r-textarea--input--margin-top, 0);resize:var(--r-textarea--input--resize, both);z-index:var(--r-textarea--input--z-index, 1);outline:var(--r-textarea--input--outline, none);outline-offset:var(--r-textarea--input--outline-offset, 0);pointer-events:var(--r-textarea--input--pointer-events, auto);cursor:var(--r-textarea--input--cursor, inherit)}.r-textarea--container{display:flex;align-items:start;overflow:visible;background-color:var(--r-textarea--container--background-color, var(--r-background-interactive-softest, #f7f7f7));border-width:var(--r-textarea--container--border-width, 1px);border-style:var(--r-textarea--container--border-style, solid);border-color:var(--r-textarea--container--border-color, var(--r-border-soft, #686868));padding:var(--r-textarea--container--padding, 0);margin-top:var(--r-textarea--container--margin-top, var(--r-spacing-025, 0.25rem));box-shadow:var(--r-textarea--container--box-shadow, none);outline:var(--r-textarea--container--outline, none);outline-offset:var(--r-textarea--container--outline-offset, none)}.r-textarea--container[data-readonly=true]{--r-textarea--container--background-color:var(--r-background-soft, #f3f1f0);--r-textarea--container--border-color:transparent transparent var(--r-border-soft, #686868) transparent;--r-textarea--container--cursor:text}.r-textarea--container:hover:not([data-disabled=true]):not([data-readonly=true]){--r-textarea--container--background-color:var(--r-background-interactive-hovered)}.r-textarea--container:active:not([data-disabled=true]):not([data-readonly=true]){--r-textarea--container--background-color:var(--r-background-interactive-pressed)}.r-textarea--container:focus-within{--r-textarea--container--box-shadow:0 0 0 6px var(--r-border-focused-outlined, #fff);--r-textarea--container--outline:2px solid var(--r-border-focused, #0071e3);--r-textarea--container--outline-offset:2px}.r-textarea--trailing{display:var(--r-textarea--trailing--display, flex);margin-top:var(--r-textarea--trailing--margin-top, 0.688em);margin-right:var(--r-textarea--trailing--margin-right, 0.625em);margin-left:var(--r-textarea--trailing--margin-left, auto);gap:var(--r-textarea--trailing--gap, 0.625rem)}.r-textarea--trailing:empty{display:none}.r-textarea--readonly-icon{color:var(--r-textarea--readonly-icon--color, var(--r-icon-soft, #686868))}.r-textarea--messages{display:flex;gap:var(--r-textarea--messages--gap, var(--r-spacing-025, 0.25rem))}.r-textarea--messages--counter{margin-left:auto}.r-textarea--messages:has(r-hint){margin-top:var(--r-spacing-025, 0.25rem)}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}";
4
+ const textareaCss = ":host{opacity:1;display:block;outline:none;--r-label--margin-bottom:0}:host(:focus-visible){outline:none}:host([resize=none]){--r-textarea--input--resize:none}:host([resize=both]){--r-textarea--input--resize:both}:host([resize=horizontal]){--r-textarea--input--resize:horizontal}:host([resize=vertical]){--r-textarea--input--resize:vertical}:host([resize=initial]){--r-textarea--input--resize:initial}:host([resize=inherit]){--r-textarea--input--resize:inherit}:host([invalid]:not([invalid=false])){--r-textarea--container--background-color:var(--r-status-error-soft, #fef6f6);--r-textarea--container--border-color:var(--r-status-error-regular, #b00c15)}.r-textarea--label-container{display:var(--r-textarea--label-container--display, flex);gap:var(--r-textarea--label-container--gap, var(--r-spacing-100, 1rem));align-items:var(--r-textarea--label-container--align-items, center);justify-content:var(--r-textarea--label-container--align-items, space-between)}.r-textarea--label-container ::slotted([slot=popover]){display:var(--r-textarea--popover--display, inline-flex);height:var(--r-textarea--popover--height, var(--r-spacing-150, 1.5));align-items:var(--r-textarea--popover--align-items, center);justify-content:var(--r-textarea--popover--justify-content, center);margin-right:var(--r-textarea--popover--margin-right, -0.25rem);--r-popover--trigger--min-width:var(--r-textarea--popover-trigger--min-width, var(--r-spacing-150, 1.5))}.r-textarea--input::placeholder{color:var(--r-textarea--input--placeholder--color, var(--r-text-soft, #686868))}.r-textarea--input{vertical-align:top;width:var(--r-textarea--input--width, 100%);max-width:var(--r-textarea--input--max-width, 100%);min-height:var(--r-textarea--input--min-height, 8.875em);font-family:var(--r-textarea--input--font-family, var(--r-font-family-text, system-ui));font-weight:var(--r-textarea--input--font-weight, var(--r-font-weight-regular, 400));font-size:var(--r-textarea--input--font-size, var(--r-font-size-400, 1rem));line-height:var(--r-textarea--input--line-height, var(--r-line-height-m, 1.5));color:var(--r-textarea--input--color, var(--r-text-regular, #282828));background-color:var(--r-textarea--input--background-color, transparent);opacity:var(--r-textarea--input--opacity, 1);border-width:var(--r-textarea--input--border-width, 0px);border-style:var(--r-textarea--input--border-style, solid);border-color:var(--r-textarea--input--border-color, var(--r-border-soft, #686868));border-radius:var(--r-textarea--input--border-radius, 0);box-sizing:var(--r-textarea--input--box-sizing, border-box);box-shadow:var(--r-textarea--input--box-shadow, none);padding:var(--r-textarea--input--padding, var(--r-textarea--input--padding-top, 0.688em) var(--r-textarea--input--padding-right, 0.625em) var(--r-textarea--input--padding-bottom, 0.688em) var(--r-textarea--input--padding-left, 0.625em));margin-top:var(--r-textarea--input--margin-top, 0);resize:var(--r-textarea--input--resize, both);z-index:var(--r-textarea--input--z-index, initial);outline:var(--r-textarea--input--outline, none);outline-offset:var(--r-textarea--input--outline-offset, 0);pointer-events:var(--r-textarea--input--pointer-events, auto);cursor:var(--r-textarea--input--cursor, inherit)}.r-textarea--container{display:flex;align-items:start;overflow:visible;background-color:var(--r-textarea--container--background-color, var(--r-background-interactive-softest, #f7f7f7));border-width:var(--r-textarea--container--border-width, 1px);border-style:var(--r-textarea--container--border-style, solid);border-color:var(--r-textarea--container--border-color, var(--r-border-soft, #686868));padding:var(--r-textarea--container--padding, 0);margin-top:var(--r-textarea--container--margin-top, var(--r-spacing-025, 0.25rem));box-shadow:var(--r-textarea--container--box-shadow, none);outline:var(--r-textarea--container--outline, none);outline-offset:var(--r-textarea--container--outline-offset, none)}.r-textarea--container[data-readonly=true]{--r-textarea--container--background-color:var(--r-background-soft, #f3f1f0);--r-textarea--container--border-color:transparent transparent var(--r-border-soft, #686868) transparent;--r-textarea--container--cursor:text}.r-textarea--container:hover:not([data-disabled=true]):not([data-readonly=true]){--r-textarea--container--background-color:var(--r-background-interactive-hovered)}.r-textarea--container:active:not([data-disabled=true]):not([data-readonly=true]){--r-textarea--container--background-color:var(--r-background-interactive-pressed)}.r-textarea--container:focus-within{--r-textarea--container--box-shadow:0 0 0 6px var(--r-border-focused-outlined, #fff);--r-textarea--container--outline:2px solid var(--r-border-focused, #0071e3);--r-textarea--container--outline-offset:2px}.r-textarea--trailing{display:var(--r-textarea--trailing--display, flex);margin-top:var(--r-textarea--trailing--margin-top, 0.688em);margin-right:var(--r-textarea--trailing--margin-right, 0.625em);margin-left:var(--r-textarea--trailing--margin-left, auto);gap:var(--r-textarea--trailing--gap, 0.625rem)}.r-textarea--trailing:empty{display:none}.r-textarea--readonly-icon{color:var(--r-textarea--readonly-icon--color, var(--r-icon-soft, #686868))}.r-textarea--messages{display:flex;gap:var(--r-textarea--messages--gap, var(--r-spacing-025, 0.25rem))}.r-textarea--messages--counter{margin-left:auto}.r-textarea--messages:has(r-hint){margin-top:var(--r-spacing-025, 0.25rem)}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}";
5
5
 
6
6
  const RTextarea = class {
7
7
  constructor(hostRef) {
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, h, H as Host, g as getElement } from './index-Da7qOBFr.js';
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-CTxpqopm.js';
2
2
 
3
- const toastGroupCss = "@media (max-width: 48rem){.sc-r-toast-group-h{--width:auto;--right:24px;--bottom:auto;--left:24px;--padding-right:0}}[data-visually-hidden=true].sc-r-toast-group-h{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.sc-r-toast-group-h{display:var(--display, block);position:var(--position, fixed);top:var(--top, 32px);right:var(--right, 0);bottom:var(--bottom, auto);left:var(--left, auto);overflow:var(--overflow, hidden);overflow-y:var(--overflow-y, auto);width:var(--width, 352px);max-height:var(--max-height, calc(100vh - 64px));padding-right:var(--padding-right, 32px);padding-bottom:var(--padding-bottom, 32px);z-index:var(--z-index, 1)}.r-toast-group.sc-r-toast-group{position:relative;display:var(--r-toast-group--display, flex);flex-direction:var(--r-toast-group--flex-direction, column);justify-content:var(--r-toast-group--justify-content, flex-start);gap:var(--r-toast-group--gap, var(--r-spacing-100, 1rem))}";
3
+ const toastGroupCss = ":host([data-visually-hidden=true]){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}:host{display:var(--display, block);position:var(--position, fixed);top:var(--top, 0);right:var(--right, 0);bottom:var(--bottom, auto);left:var(--left, auto);overflow:var(--overflow, hidden);overflow-y:var(--overflow-y, auto);width:var(--width, 352px);max-height:var(--max-height, calc(100vh - 64px));padding-right:var(--padding-right, 32px);padding-top:var(--padding-top, 16px);padding-bottom:var(--padding-bottom, 32px);z-index:var(--z-index, 1)}:host ::slotted(r-toast){margin-top:var(--r-spacing-100, 1rem)}.r-toast-group{position:relative;display:var(--r-toast-group--display, flex);flex-direction:var(--r-toast-group--flex-direction, column);justify-content:var(--r-toast-group--justify-content, flex-start)}";
4
4
 
5
5
  const ToastGroup = class {
6
6
  constructor(hostRef) {
@@ -9,8 +9,17 @@ const ToastGroup = class {
9
9
  this.host.setAttribute('data-visually-hidden', `${!this.hasChildren}`);
10
10
  };
11
11
  this.observeSlotContentChange = () => {
12
- this.observer = new MutationObserver(() => {
12
+ this.observer = new MutationObserver(async (mutations) => {
13
+ var _a, _b;
13
14
  this.updateHiddenState();
15
+ const addedToast = mutations
16
+ .flatMap(mutation => Array.from(mutation.addedNodes))
17
+ .find(node => node.nodeName === 'R-TOAST');
18
+ if (addedToast) {
19
+ // Measure height then reveal for smooth animation
20
+ await ((_a = addedToast.measureAndPrepareHeight) === null || _a === void 0 ? void 0 : _a.call(addedToast));
21
+ await ((_b = addedToast.reveal) === null || _b === void 0 ? void 0 : _b.call(addedToast));
22
+ }
14
23
  });
15
24
  this.observer.observe(this.host, {
16
25
  childList: true,
@@ -26,7 +35,7 @@ const ToastGroup = class {
26
35
  this.observeSlotContentChange();
27
36
  }
28
37
  render() {
29
- return (h(Host, { key: 'bbb13408cb02b62fe5f6ab1c09548509bfb3a195' }, h("div", { key: 'd82f7deff5b66aa8f9e19d29a5b34fc4b984c94d', class: "r-toast-group" }, h("slot", { key: '02a49bceae7197f72d5b80ba7d71374345d0f0c7' }))));
38
+ return (h(Host, { key: '85ab80be1fca1d1a9c3dc2e17de616747748a4dd' }, h("div", { key: 'a88670978563caeb8f500f4b5f9af2bcd0ade386', class: "r-toast-group" }, h("slot", { key: 'ab1480a47cfae0cacc45de708d51e8a77b6dfb85' }))));
30
39
  }
31
40
  get host() { return getElement(this); }
32
41
  };
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-Da7qOBFr.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-CTxpqopm.js';
2
2
 
3
- const toastCss = ":host([status=info]){--r-toast--border-color:var(--r-status-info-regular, #3e5c73);--r-toast--background-color:var(--r-status-info-soft, #f8fafb);--r-toast--leading-icon--color:var(--r-status-info-regular, #3e5c73)}:host([status=warning]){--r-toast--border-color:var(--r-status-warning-regular, #ff7429);--r-toast--background-color:var(--r-status-warning-soft, #fef9f5);--r-toast--leading-icon--color:var(--r-status-warning-regular, #89411A)}:host([status=error]){--r-toast--border-color:var(--r-status-error-regular, #b00c15);--r-toast--background-color:var(--r-status-error-soft, #fef6f6);--r-toast--leading-icon--color:var(--r-status-error-regular, #b00c15)}:host([status=success]){--r-toast--border-color:var(--r-status-success-regular, #298535);--r-toast--background-color:var(--r-status-success-soft, #f7fdf8);--r-toast--leading-icon--color:var(--r-status-success-regular, #298535)}:host([is-content=false]){--r-toast--content--display:none}:host([headline]){--r-toast--content--margin-top:var(--r-spacing-050, 0.5rem)}:host([data-visually-hidden=true]){--r-toast--host--transition:all 0.15s;--r-toast--host--transition-delay:0.15s;--r-toast--host--opacity:0;--r-toast--host--height-expanded:0}:host{animation-duration:var(--r-toast--host--animation-duration, 0.3s);animation-fill-mode:var(--r-toast--host--animation-fill-mode, forwards);animation-name:var(--r-toast--host--animation-name, none);box-sizing:var(--r-toast--host--box-sizing, border-box);display:var(--r-toast--host--display, block);height:var(--r-toast--host--height, var(--r-toast--host--height-expanded, auto));opacity:var(--r-toast--host--opacity, 1);overflow:var(--r-toast--host--overflow, hidden);position:var(--r-toast--host--position, relative);transition:var(--r-toast--host--transition, all 0.3s);transition-delay:var(--r-toast--host--transition-delay, 0s)}:host ::slotted(p){margin:0}:host ::slotted(p+p),:host ::slotted(p+ul),:host ::slotted(p+ol){margin-top:1rem}:host .r-toast--trailing-button{--r-button--width:2.75rem;--r-button--height:2.75rem;--r-button--color:var(--r-text-regular, #282828);--r-button--border-color:transparent;--r-button--background-color:transparent;position:relative;top:-8px;right:-8px}:host .r-toast--trailing-button:hover{--r-button--color:var(--r-text-strong, #000000);--r-button--background-color:var(--r-background-interactive-hovered, #000000)}:host .r-toast--trailing-button:active{--r-button--transform:scale(0.94)}@media (prefers-reduced-motion){:host{--r-toast--transition:none;--r-toast--host--animation-name:none}}.r-toast{font-family:var(--r-toast--font-family, var(--r-font-family-text, system-ui));font-size:var(--r-toast--font-size, var(--r-font-size-400, 1rem));display:var(--r-toast--display, flex);flex-direction:var(--r-toast--flex-direction, row);align-items:var(--r-toast--align-items, stretch);gap:var(--r-toast--gap, var(--r-spacing-050, 0.5rem));padding:var(--r-toast--padding, 12px);border-width:var(--r-toast--border-width, 1px);border-style:var(--r-toast--border-style, solid);border-color:var(--r-toast--border-color, var(--r-status-info-regular, #3e5c73));background-color:var(--r-toast--background-color, var(--r-status-info-soft, #f8fafb));box-sizing:var(--r-toast--box-sizing, border-box);transition:var(--r-toast--transition, all 0.3s)}.r-toast--main{flex:var(--r-toast--content--flex, 1)}.r-toast--leading-icon{color:var(--r-toast--leading-icon--color, var(--r-status-info-regular, #3e5c73));margin-top:var(--r-toast--leading-icon--margin-top, 0);margin-right:var(--r-toast--leading-icon--margin-right, var(--r-spacing-025, 0.25rem))}.r-toast--headline{color:var(--r-toast--headline--color, var(--r-text-regular, #282828));font-size:var(--r-toast--headline--font-size, var(--r-font-size-400, 1rem));font-weight:var(--r-toast--headline--font-weight, var(--r-font-weight-semibold, 600));line-height:var(--r-toast--headline--line-height, var(--r-line-height-m, 1.5));margin:var(--r-toast--headline--margin, 0)}.r-toast--content{display:var(--r-toast--content--display, block);color:var(--r-toast--content--color, var(--r-text-regular, #282828));line-height:var(--r-toast--content--line-height, var(--r-line-height-m, 1.5));font-size:var(--r-toast--content--font-size, var(--r-font-size-300, 0.875rem));font-weight:var(--r-toast--content--font-weight, var(--r-font-weight-regular, 400));margin-top:var(--r-toast--content--margin-top, 0)}.r-toast--action{display:var(--r-toast--action--display, flex);margin-top:var(--r-toast--action--margin-top, var(--r-spacing-050, 0.5rem));color:var(--r-toast--action--color, var(--r-text-regular, #282828));font-size:var(--r-toast--action--font-size, var(--r-font-size-300, 0.875rem));font-weight:var(--r-toast--action--font-weight, var(--r-font-weight-light, 300))}.r-toast--action-link,.r-toast--action ::slotted(r-button){--r-button--background-color:transparent;--r-button--border-width:0;--r-button--color:var(--r-text-regular);--r-button--padding:10px 2px 18px 2px;--r-button--slot--text-decoration:underline;--r-button--slot--text-underline-offset:9px}.r-toast--action-link:hover,.r-toast--action ::slotted(r-button:hover:not([disabled]):not([disabled=true])){--r-button--background-color:var(--r-background-interactive-hovered)}.r-toast--action-link:active,.r-toast--action ::slotted(r-button:active:not([disabled]):not([disabled=true])){--r-button--background-color:var(--r-background-interactive-pressed)}.r-toast--action ::slotted(*){font-size:inherit;color:inherit}.r-toast--action ::slotted(a){color:var(--r-toast--action--color, var(--r-text-regular, #282828))}";
3
+ const toastCss = ":host([status=info]){--r-toast--border-color:var(--r-status-info-regular, #3e5c73);--r-toast--background-color:var(--r-status-info-soft, #f8fafb);--r-toast--leading-icon--color:var(--r-status-info-regular, #3e5c73)}:host([status=warning]){--r-toast--border-color:var(--r-status-warning-regular, #ff7429);--r-toast--background-color:var(--r-status-warning-soft, #fef9f5);--r-toast--leading-icon--color:var(--r-status-warning-regular, #89411A)}:host([status=error]){--r-toast--border-color:var(--r-status-error-regular, #b00c15);--r-toast--background-color:var(--r-status-error-soft, #fef6f6);--r-toast--leading-icon--color:var(--r-status-error-regular, #b00c15)}:host([status=success]){--r-toast--border-color:var(--r-status-success-regular, #298535);--r-toast--background-color:var(--r-status-success-soft, #f7fdf8);--r-toast--leading-icon--color:var(--r-status-success-regular, #298535)}:host([is-content=false]){--r-toast--content--display:none}:host([headline]){--r-toast--content--margin-top:var(--r-spacing-050, 0.5rem)}:host([data-visually-hidden=true]){--r-toast--host--animation-duration:0.2s;--r-toast--host--animation-name:fade-out}:host(:not(:last-child)){margin-bottom:var(--r-toast-group--spacing, 0)}:host{animation-duration:var(--r-toast--host--animation-duration, 0.3s);animation-fill-mode:var(--r-toast--host--animation-fill-mode, forwards);animation-name:var(--r-toast--host--animation-name, fade-in);box-sizing:var(--r-toast--host--box-sizing, border-box);display:var(--r-toast--host--display, block);height:var(--r-toast--host--height, var(--r-toast--host--height-expanded, auto));opacity:var(--r-toast--host--opacity, 1);overflow:var(--r-toast--host--overflow, hidden);position:var(--r-toast--host--position, relative);transition:var(--r-toast--host--transition, none);transition-delay:var(--r-toast--host--transition-delay, 0s)}:host ::slotted(p){margin:0}:host ::slotted(p+p),:host ::slotted(p+ul),:host ::slotted(p+ol){margin-top:1rem}:host .r-toast--trailing-button{--r-button--width:2.75rem;--r-button--height:2.75rem;--r-button--color:var(--r-text-regular, #282828);--r-button--border-color:transparent;--r-button--background-color:transparent;position:relative;margin-top:-8px;margin-right:-8px}:host .r-toast--trailing-button:hover{--r-button--color:var(--r-text-strong, #000000);--r-button--background-color:var(--r-background-interactive-hovered, #000000)}:host .r-toast--trailing-button:active{--r-button--transform:scale(0.94)}@media (prefers-reduced-motion){:host{transition:none;animation-name:none}}@keyframes fade-in{from{opacity:0;max-height:0}to{opacity:1;max-height:var(--r-toast--host--height-expanded)}}@keyframes fade-out{from{opacity:1;max-height:var(--r-toast--host--height-expanded);margin-top:var(--r-spacing-100, 1rem)}to{opacity:0;max-height:0;margin-top:0}}.r-toast{font-family:var(--r-toast--font-family, var(--r-font-family-text, system-ui));font-size:var(--r-toast--font-size, var(--r-font-size-400, 1rem));display:var(--r-toast--display, flex);flex-direction:var(--r-toast--flex-direction, row);align-items:var(--r-toast--align-items, stretch);gap:var(--r-toast--gap, var(--r-spacing-050, 0.5rem));padding:var(--r-toast--padding, 12px);border-width:var(--r-toast--border-width, 1px);border-style:var(--r-toast--border-style, solid);border-color:var(--r-toast--border-color, var(--r-status-info-regular, #3e5c73));background-color:var(--r-toast--background-color, var(--r-status-info-soft, #f8fafb));box-sizing:var(--r-toast--box-sizing, border-box);transition:var(--r-toast--transition, none)}.r-toast--main{flex:var(--r-toast--content--flex, 1);word-break:var(--r-toast--content--word-break, break-word)}.r-toast--leading-icon{color:var(--r-toast--leading-icon--color, var(--r-status-info-regular, #3e5c73));margin-top:var(--r-toast--leading-icon--margin-top, 0);margin-right:var(--r-toast--leading-icon--margin-right, var(--r-spacing-025, 0.25rem))}.r-toast--headline{color:var(--r-toast--headline--color, var(--r-text-regular, #282828));font-size:var(--r-toast--headline--font-size, var(--r-font-size-400, 1rem));font-weight:var(--r-toast--headline--font-weight, var(--r-font-weight-semibold, 600));line-height:var(--r-toast--headline--line-height, var(--r-line-height-m, 1.5));margin:var(--r-toast--headline--margin, 0)}.r-toast--content{display:var(--r-toast--content--display, block);color:var(--r-toast--content--color, var(--r-text-regular, #282828));line-height:var(--r-toast--content--line-height, var(--r-line-height-m, 1.5));font-size:var(--r-toast--content--font-size, var(--r-font-size-300, 0.875rem));font-weight:var(--r-toast--content--font-weight, var(--r-font-weight-regular, 400));margin-top:var(--r-toast--content--margin-top, 0);word-break:var(--r-toast--content--word-break, break-word)}.r-toast--action{display:var(--r-toast--action--display, flex);margin-top:var(--r-toast--action--margin-top, var(--r-spacing-050, 0.5rem));color:var(--r-toast--action--color, var(--r-text-regular, #282828));font-size:var(--r-toast--action--font-size, var(--r-font-size-300, 0.875rem));font-weight:var(--r-toast--action--font-weight, var(--r-font-weight-light, 300))}.r-toast--action-link,.r-toast--action ::slotted(r-button){--r-button--background-color:transparent;--r-button--border-width:0;--r-button--color:var(--r-text-regular);--r-button--padding:10px 2px 18px 2px;--r-button--slot--text-decoration:underline;--r-button--slot--text-underline-offset:9px}.r-toast--action-link:hover,.r-toast--action ::slotted(r-button:hover:not([disabled]):not([disabled=true])){--r-button--background-color:var(--r-background-interactive-hovered)}.r-toast--action-link:active,.r-toast--action ::slotted(r-button:active:not([disabled]):not([disabled=true])){--r-button--background-color:var(--r-background-interactive-pressed)}.r-toast--action ::slotted(*){font-size:inherit;color:inherit}.r-toast--action ::slotted(a){color:var(--r-toast--action--color, var(--r-text-regular, #282828))}";
4
4
 
5
5
  const Toast = class {
6
6
  constructor(hostRef) {
@@ -9,6 +9,7 @@ const Toast = class {
9
9
  this.toastDismiss = createEvent(this, "dismiss");
10
10
  this.toastReveal = createEvent(this, "reveal");
11
11
  this.toastHide = createEvent(this, "hide");
12
+ this.toastDismissed = createEvent(this, "dismissed");
12
13
  /**
13
14
  * Controls if toast is initially shown.
14
15
  * */
@@ -49,6 +50,7 @@ const Toast = class {
49
50
  * @default 300
50
51
  * */
51
52
  this.delayBeforeRemoval = 300;
53
+ this.animationCompleted = false;
52
54
  /** Unique id for each accordion item/row */
53
55
  this.uniqueId = `r-toast-${Date.now().toString(32)}${Math.random().toString(32)}`.replace(/\./g, '');
54
56
  this.hasElContent = (selector) => {
@@ -67,6 +69,22 @@ const Toast = class {
67
69
  clearTimeout(this.delayTimer);
68
70
  }, time);
69
71
  };
72
+ this.handleAnimationEnd = (event) => {
73
+ if (event.animationName === 'fade-out') {
74
+ this.animationCompleted = true;
75
+ // Only emit if still connected to DOM
76
+ if (this.host.isConnected) {
77
+ this.toastDismissed.emit();
78
+ }
79
+ // Clear height after fade-out completes as final cleanup
80
+ this.host.style.setProperty('--r-toast--host--height-expanded', null);
81
+ }
82
+ else if (event.animationName === 'fade-in') {
83
+ // Clear height restriction after fade-in completes to allow natural resizing
84
+ // The toast can now grow/shrink dynamically without animation constraints
85
+ this.host.style.setProperty('--r-toast--host--height-expanded', null);
86
+ }
87
+ };
70
88
  this.handleTrailingButtonClick = () => {
71
89
  this.rClickToastTrailingIcon.emit();
72
90
  this.dismiss();
@@ -81,12 +99,29 @@ const Toast = class {
81
99
  * hide the toast before the auto-dismiss timer expires.
82
100
  */
83
101
  async dismiss() {
84
- this.host.style.setProperty('--r-toast--host--height-expanded', `${this.host.offsetHeight}px`);
102
+ // Re-measure height before fade-out to ensure smooth collapse animation
103
+ // This captures the current natural height for the animation
104
+ this.updateHeightVariable();
85
105
  this.isOpen = false;
86
106
  this.toastDismiss.emit();
107
+ this.animationCompleted = false;
87
108
  if (this.removalTimer)
88
109
  clearTimeout(this.removalTimer);
89
- this.removalTimer = setTimeout(() => this.host.remove(), this.delayBeforeRemoval);
110
+ this.removalTimer = setTimeout(() => {
111
+ if (!this.animationCompleted && this.host.isConnected) {
112
+ this.toastDismissed.emit();
113
+ }
114
+ // Safely remove from DOM - check parent exists and contains this element
115
+ if (this.host.isConnected && this.host.parentNode) {
116
+ try {
117
+ this.host.remove();
118
+ }
119
+ catch (e) {
120
+ // In test environments, element may have already been removed
121
+ // or DOM structure changed - silently ignore
122
+ }
123
+ }
124
+ }, this.delayBeforeRemoval);
90
125
  }
91
126
  /**
92
127
  * Reveals the toast notification by setting it to a visible state.
@@ -94,27 +129,60 @@ const Toast = class {
94
129
  * automatically dismiss the toast after the specified duration.
95
130
  */
96
131
  async reveal() {
132
+ // Measure height for smooth fade-in animation
133
+ await this.measureAndPrepareHeight();
97
134
  this.isOpen = true;
98
- this.toastReveal.emit();
135
+ // Only emit if still connected to DOM
136
+ if (this.host.isConnected) {
137
+ this.toastReveal.emit();
138
+ }
99
139
  if (this.delayTimer)
100
140
  clearTimeout(this.delayTimer);
101
141
  if (this.isDismissManual)
102
142
  return;
103
143
  if (this.hasDelay)
104
144
  this.startDelayTimer();
145
+ return this;
105
146
  }
106
147
  /**
107
148
  * Hides toast, keeps it in dom.
108
149
  * */
109
150
  async hide() {
151
+ this.updateHeightVariable();
110
152
  this.isOpen = false;
111
- this.toastHide.emit();
153
+ // Only emit if still connected to DOM
154
+ if (this.host.isConnected) {
155
+ this.toastHide.emit();
156
+ }
157
+ return this;
112
158
  }
113
159
  /**
114
160
  * Toggles visibility of the toast.
115
161
  * */
116
162
  async toggle() {
117
163
  this.isOpen ? this.hide() : this.reveal();
164
+ return this;
165
+ }
166
+ /**
167
+ * Measures the natural height of toast and prepares it for reveal animation.
168
+ * This should be called on newly added toasts before they are revealed.
169
+ */
170
+ async measureAndPrepareHeight() {
171
+ return new Promise((resolve) => {
172
+ requestAnimationFrame(() => {
173
+ // Temporarily override animation to prevent visual glitches during measurement
174
+ const tempStyle = this.host.style.cssText;
175
+ this.host.style.cssText = tempStyle + '; animation: none !important; max-height: none !important; height: auto !important;';
176
+ const height = this.host.scrollHeight;
177
+ // Restore original style
178
+ this.host.style.cssText = tempStyle;
179
+ // Set the measured height for animation
180
+ if (height > 0) {
181
+ this.host.style.setProperty('--r-toast--host--height-expanded', `${height}px`);
182
+ }
183
+ resolve();
184
+ });
185
+ });
118
186
  }
119
187
  handleOpenChange() {
120
188
  this.isOpen ? this.hide() : this.reveal();
@@ -176,7 +244,28 @@ const Toast = class {
176
244
  }
177
245
  }
178
246
  componentWillLoad() {
179
- this.open ? this.reveal() : this.hide();
247
+ // Set initial state but don't trigger reveal yet - let mutation observer handle it
248
+ this.isOpen = this.open;
249
+ }
250
+ async componentDidLoad() {
251
+ this.host.addEventListener('animationend', this.handleAnimationEnd);
252
+ // Measure and store the toast height for smooth initial fade-in animation
253
+ await this.measureAndPrepareHeight();
254
+ // Start auto-dismiss timer if configured and toast is initially open
255
+ if (this.isOpen && !this.isDismissManual && this.hasDelay) {
256
+ this.startDelayTimer();
257
+ }
258
+ }
259
+ updateHeightVariable() {
260
+ // Use requestAnimationFrame to ensure the element is fully rendered
261
+ requestAnimationFrame(() => {
262
+ if (this.host.offsetHeight > 0) {
263
+ this.host.style.setProperty('--r-toast--host--height-expanded', `${this.host.offsetHeight}px`);
264
+ }
265
+ });
266
+ }
267
+ disconnectedCallback() {
268
+ this.host.removeEventListener('animationend', this.handleAnimationEnd);
180
269
  }
181
270
  render() {
182
271
  const { headline, href, action, target, trailingIcon } = this;
@@ -196,14 +285,14 @@ const Toast = class {
196
285
  name: trailingIcon,
197
286
  size: 'm'
198
287
  };
199
- return (h(Host, Object.assign({ key: '11d9a9cce4598984682419e16e15fe7b729f3407' }, hostAttrs, { id: this.uniqueId, "data-visually-hidden": `${this.isOpen ? 'false' : 'true'}` }), h("div", { key: '54ec630d4a3ae1cd904eed72f4232188f1fd4449', class: "r-toast" }, this.hasLeading &&
200
- h("div", { key: 'ac681856ff541aa8d86be8b4c2e252c5768cc4d7', class: "r-toast--leading" }, this.hasLeadingSlot && h("slot", { key: 'f0fe00eedca4b8fa3515cf57c3eaaded40879fc7', name: "leading" }), this.leadingIconVisible && h("r-icon", Object.assign({ key: 'd5028dd6a0af6cbe6c8f602bf9de2cf0b5e23ed5', class: "r-toast--leading-icon" }, leadingIconAttrs))), h("div", { key: '9a093ec50d733c0b5d84802d4e6de301dced145f', class: "r-toast--main" }, this.hasHeadline &&
201
- h("h2", { key: '5fd2dd5139c14e7f95d12f987fa2aa14b746f9ee', class: "r-toast--headline" }, h("slot", { key: '9951ba737e8a10a1f9a68dc72c18f4b42645a13c', name: "headline" }, headline)), this.hasContent &&
202
- h("div", { key: 'd476014ac425fff629df7e17f8fd5bdd7dd508e2', class: "r-toast--content r-typography" }, h("slot", { key: '34d63dad6ff75a19f3faa4a20b683495ebfb0b0f', onSlotchange: this.handleSlotChange })), this.hasAction &&
203
- h("div", { key: '61ee7f4922349100f78d6dde6a55cf78ff1de2bd', class: "r-toast--action" }, h("slot", { key: '8e70ff93aac9ef4e086f539aba2797122dc5402e', name: "action" }, this.hasActionLink &&
204
- h("r-button", Object.assign({ key: '556f7182d22ac37ec60653da44667f9a4d2b6cab', class: "r-toast--action-link", variant: "text-inline", size: "small" }, actionAttrs), action)))), this.hasTrailing &&
205
- h("div", { key: '806708fbaec919dea26c83f0e2446a9b4c9377cb', class: "r-toast--trailing" }, this.hasTrailingSlot && h("slot", { key: '91f35c745b8de0797085a7829743415bfc5f2ce1', name: "trailing" }), this.isDismissManual &&
206
- h("r-icon-button", Object.assign({ key: '9fe07d3faeeda5cf46494167868dfc664f11d80f' }, trailingIconAttrs, { class: "r-toast--trailing-button", onClick: this.handleTrailingButtonClick, label: this.dismissLabel }), h("slot", { key: 'fc3bd145b42458c857d84cac443ccde89ca6c1db', name: "dismiss" }))))));
288
+ return (h(Host, Object.assign({ key: '4fa8a3d2db292941933f73437d823f3f6581d626' }, hostAttrs, { id: this.uniqueId, "data-visually-hidden": `${this.isOpen ? 'false' : 'true'}`, style: { visibility: this.isOpen ? 'visible' : 'hidden' } }), h("div", { key: '20506092a2459d836918da00f1670cf18730a42c', class: "r-toast" }, this.hasLeading &&
289
+ h("div", { key: '384ce331ff3825bc01323bbb6f3972ccd4198223', class: "r-toast--leading" }, this.hasLeadingSlot && h("slot", { key: 'eb455c5729d37431b8576dfcaff6eceead5000bb', name: "leading" }), this.leadingIconVisible && h("r-icon", Object.assign({ key: '3b0b3e9d9516a072d5c3b5ca50ab3353cdf20053', class: "r-toast--leading-icon" }, leadingIconAttrs))), h("div", { key: 'dcfc949dda66a2437cbb4b3e2847266e55ab83d6', class: "r-toast--main" }, this.hasHeadline &&
290
+ h("h2", { key: 'c1abf4f2b6abc7b53db6727ff09f027d4b2a940d', class: "r-toast--headline" }, h("slot", { key: '9b6a57199eac2a4e0f96d38cc0b3d02adc2bb279', name: "headline" }, headline)), this.hasContent &&
291
+ h("div", { key: '6c182bd58efe6cd404ae7b20ee2464f3965b889d', class: "r-toast--content r-typography" }, h("slot", { key: 'a49fd6e859f1b512069fc3bed9c0c21da35d78cc', onSlotchange: this.handleSlotChange })), this.hasAction &&
292
+ h("div", { key: 'b0282c4677483b96b3eac7ddbdb2e13ae245ebe2', class: "r-toast--action" }, h("slot", { key: 'e267d02a4e39a443865c1c0a62f3d6ed06e2a319', name: "action" }, this.hasActionLink &&
293
+ h("r-button", Object.assign({ key: '8785094717619bd69c5e711873598b2fb7eeb5be', class: "r-toast--action-link", variant: "text-inline", size: "small" }, actionAttrs), action)))), this.hasTrailing &&
294
+ h("div", { key: '066ecbc6346ed516aa9dd193505a26544bbdf92f', class: "r-toast--trailing" }, this.hasTrailingSlot && h("slot", { key: '890fd983d1208ea514b89aeaf394ae82c1d1ec55', name: "trailing" }), this.isDismissManual &&
295
+ h("r-icon-button", Object.assign({ key: '2b9e06adc46cf1a726d5d78f7cedb2d1405b4c72' }, trailingIconAttrs, { class: "r-toast--trailing-button", onClick: this.handleTrailingButtonClick, label: this.dismissLabel }), h("slot", { key: '7349c7b3422f194852609c2cdf150a5dc4498aa9', name: "dismiss" }))))));
207
296
  }
208
297
  get host() { return getElement(this); }
209
298
  static get watchers() { return {