@riverty/web-components 6.3.0 → 6.3.1

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 (397) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
  3. package/dist/cjs/focusable-Oll_rmtP.js +28 -0
  4. package/dist/cjs/formData-B2DZyLxP.js +44 -0
  5. package/dist/cjs/index-BnETQtSf.js +1834 -0
  6. package/dist/cjs/index.cjs.js +37 -0
  7. package/dist/cjs/loader.cjs.js +13 -0
  8. package/dist/cjs/r-accordion-panel.cjs.entry.js +24 -0
  9. package/dist/cjs/r-accordion-section.cjs.entry.js +125 -0
  10. package/dist/cjs/r-accordion-trigger.cjs.entry.js +93 -0
  11. package/dist/cjs/r-accordion.cjs.entry.js +20 -0
  12. package/dist/cjs/r-alert.cjs.entry.js +146 -0
  13. package/dist/cjs/r-badge.cjs.entry.js +41 -0
  14. package/dist/cjs/r-button.cjs.entry.js +149 -0
  15. package/dist/cjs/r-checkbox-group.cjs.entry.js +237 -0
  16. package/dist/cjs/r-checkbox.cjs.entry.js +274 -0
  17. package/dist/cjs/r-design-system-devtools.cjs.entry.js +31 -0
  18. package/dist/cjs/r-dialog.cjs.entry.js +107 -0
  19. package/dist/cjs/r-hint_2.cjs.entry.js +50 -0
  20. package/dist/cjs/r-icon-button_2.cjs.entry.js +492 -0
  21. package/dist/cjs/r-icon.cjs.entry.js +284 -0
  22. package/dist/cjs/r-illustration.cjs.entry.js +396 -0
  23. package/dist/cjs/r-input-code.cjs.entry.js +437 -0
  24. package/dist/cjs/r-input-date.cjs.entry.js +524 -0
  25. package/dist/cjs/r-input-password.cjs.entry.js +270 -0
  26. package/dist/cjs/r-input-phone-number.cjs.entry.js +2525 -0
  27. package/dist/cjs/r-input.cjs.entry.js +618 -0
  28. package/dist/cjs/r-list-item.cjs.entry.js +109 -0
  29. package/dist/cjs/r-pagination.cjs.entry.js +320 -0
  30. package/dist/cjs/r-panel.cjs.entry.js +184 -0
  31. package/dist/cjs/r-popover-action.cjs.entry.js +80 -0
  32. package/dist/cjs/r-popover-content.cjs.entry.js +62 -0
  33. package/dist/cjs/r-popover-headline.cjs.entry.js +28 -0
  34. package/dist/cjs/r-popover-trigger.cjs.entry.js +70 -0
  35. package/dist/cjs/r-popover.cjs.entry.js +347 -0
  36. package/dist/cjs/r-progress-bar.cjs.entry.js +25 -0
  37. package/dist/cjs/r-radio-button-description.cjs.entry.js +18 -0
  38. package/dist/cjs/r-radio-button-leading.cjs.entry.js +18 -0
  39. package/dist/cjs/r-radio-button-title.cjs.entry.js +18 -0
  40. package/dist/cjs/r-radio-button-trailing.cjs.entry.js +18 -0
  41. package/dist/cjs/r-radio-button.cjs.entry.js +139 -0
  42. package/dist/cjs/r-radio-group.cjs.entry.js +428 -0
  43. package/dist/cjs/r-select-option.cjs.entry.js +130 -0
  44. package/dist/cjs/r-select.cjs.entry.js +1107 -0
  45. package/dist/cjs/r-skip-link.cjs.entry.js +19 -0
  46. package/dist/cjs/r-stepper-item.cjs.entry.js +42 -0
  47. package/dist/cjs/r-stepper.cjs.entry.js +99 -0
  48. package/dist/cjs/r-tab-panel.cjs.entry.js +26 -0
  49. package/dist/cjs/r-tab.cjs.entry.js +62 -0
  50. package/dist/cjs/r-tabs-list.cjs.entry.js +175 -0
  51. package/dist/cjs/r-tabs.cjs.entry.js +277 -0
  52. package/dist/cjs/r-textarea.cjs.entry.js +270 -0
  53. package/dist/cjs/r-toast-group.cjs.entry.js +46 -0
  54. package/dist/cjs/r-toast.cjs.entry.js +314 -0
  55. package/dist/cjs/style-observer-D9zSP9wP.js +1118 -0
  56. package/dist/cjs/theming-NqxjhVJS.js +109 -0
  57. package/dist/cjs/web-components.cjs.js +25 -0
  58. package/dist/collection/collection-manifest.json +60 -0
  59. package/dist/collection/components/accordion/accordion.css +24 -0
  60. package/dist/collection/components/accordion/accordion.js +90 -0
  61. package/dist/collection/components/accordion/exports.js +1 -0
  62. package/dist/collection/components/accordion-panel/accordion-panel.css +50 -0
  63. package/dist/collection/components/accordion-panel/accordion-panel.js +86 -0
  64. package/dist/collection/components/accordion-section/accordion-section.css +27 -0
  65. package/dist/collection/components/accordion-section/accordion-section.js +235 -0
  66. package/dist/collection/components/accordion-trigger/accordion-trigger.css +93 -0
  67. package/dist/collection/components/accordion-trigger/accordion-trigger.js +220 -0
  68. package/dist/collection/components/alert/alert.css +120 -0
  69. package/dist/collection/components/alert/alert.js +526 -0
  70. package/dist/collection/components/alert/exports.js +2 -0
  71. package/dist/collection/components/badge/badge.css +62 -0
  72. package/dist/collection/components/badge/badge.js +124 -0
  73. package/dist/collection/components/badge/exports.js +1 -0
  74. package/dist/collection/components/button/button.css +180 -0
  75. package/dist/collection/components/button/button.js +510 -0
  76. package/dist/collection/components/button/exports.js +5 -0
  77. package/dist/collection/components/checkbox/checkbox.css +116 -0
  78. package/dist/collection/components/checkbox/checkbox.js +803 -0
  79. package/dist/collection/components/checkbox-group/checkbox-group.css +48 -0
  80. package/dist/collection/components/checkbox-group/checkbox-group.js +744 -0
  81. package/dist/collection/components/design-system-devtools/design-system-devtools.js +59 -0
  82. package/dist/collection/components/dialog/dialog.css +125 -0
  83. package/dist/collection/components/dialog/dialog.js +345 -0
  84. package/dist/collection/components/dialog/exports.js +9 -0
  85. package/dist/collection/components/hint/exports.js +1 -0
  86. package/dist/collection/components/hint/hint.css +63 -0
  87. package/dist/collection/components/hint/hint.js +114 -0
  88. package/dist/collection/components/icon/all-kit.js +2 -0
  89. package/dist/collection/components/icon/data.js +90 -0
  90. package/dist/collection/components/icon/exports.js +7 -0
  91. package/dist/collection/components/icon/icon.css +105 -0
  92. package/dist/collection/components/icon/icon.js +379 -0
  93. package/dist/collection/components/icon/riverty-kit.js +2 -0
  94. package/dist/collection/components/icon-button/icon-button.css +105 -0
  95. package/dist/collection/components/icon-button/icon-button.js +343 -0
  96. package/dist/collection/components/illustration/data.js +112 -0
  97. package/dist/collection/components/illustration/exports.js +3 -0
  98. package/dist/collection/components/illustration/illustration.css +52 -0
  99. package/dist/collection/components/illustration/illustration.js +540 -0
  100. package/dist/collection/components/illustration/illustrations-ui-kit.js +2 -0
  101. package/dist/collection/components/input/exports.js +62 -0
  102. package/dist/collection/components/input/input.css +186 -0
  103. package/dist/collection/components/input/input.js +1861 -0
  104. package/dist/collection/components/input-code/exports.js +2 -0
  105. package/dist/collection/components/input-code/input-code.css +127 -0
  106. package/dist/collection/components/input-code/input-code.js +1165 -0
  107. package/dist/collection/components/input-date/exports.js +1 -0
  108. package/dist/collection/components/input-date/input-date.css +148 -0
  109. package/dist/collection/components/input-date/input-date.js +1254 -0
  110. package/dist/collection/components/input-password/exports.js +1 -0
  111. package/dist/collection/components/input-password/input-password.css +25 -0
  112. package/dist/collection/components/input-password/input-password.js +1077 -0
  113. package/dist/collection/components/input-phone-number/input-phone-number.css +61 -0
  114. package/dist/collection/components/input-phone-number/input-phone-number.js +893 -0
  115. package/dist/collection/components/label/label.css +38 -0
  116. package/dist/collection/components/label/label.js +47 -0
  117. package/dist/collection/components/list-item/list-item/exports.js +2 -0
  118. package/dist/collection/components/list-item/list-item/list-item.css +199 -0
  119. package/dist/collection/components/list-item/list-item/list-item.js +467 -0
  120. package/dist/collection/components/pagination/exports.js +3 -0
  121. package/dist/collection/components/pagination/pagination.css +118 -0
  122. package/dist/collection/components/pagination/pagination.js +814 -0
  123. package/dist/collection/components/panel/exports.js +1 -0
  124. package/dist/collection/components/panel/panel.css +192 -0
  125. package/dist/collection/components/panel/panel.js +473 -0
  126. package/dist/collection/components/popover/exports.js +3 -0
  127. package/dist/collection/components/popover/popover.css +251 -0
  128. package/dist/collection/components/popover/popover.js +741 -0
  129. package/dist/collection/components/popover-action/popover-action.css +21 -0
  130. package/dist/collection/components/popover-action/popover-action.js +150 -0
  131. package/dist/collection/components/popover-content/popover-content.css +9 -0
  132. package/dist/collection/components/popover-content/popover-content.js +130 -0
  133. package/dist/collection/components/popover-headline/popover-headline.css +7 -0
  134. package/dist/collection/components/popover-headline/popover-headline.js +28 -0
  135. package/dist/collection/components/popover-trigger/exports.js +1 -0
  136. package/dist/collection/components/popover-trigger/popover-trigger.css +4 -0
  137. package/dist/collection/components/popover-trigger/popover-trigger.js +163 -0
  138. package/dist/collection/components/progress-bar/progress-bar.css +41 -0
  139. package/dist/collection/components/progress-bar/progress-bar.js +71 -0
  140. package/dist/collection/components/radio-button/radio-button.css +126 -0
  141. package/dist/collection/components/radio-button/radio-button.js +559 -0
  142. package/dist/collection/components/radio-button-description/radio-button-description.css +5 -0
  143. package/dist/collection/components/radio-button-description/radio-button-description.js +22 -0
  144. package/dist/collection/components/radio-button-leading/radio-button-leading.css +3 -0
  145. package/dist/collection/components/radio-button-leading/radio-button-leading.js +22 -0
  146. package/dist/collection/components/radio-button-title/radio-button-title.css +8 -0
  147. package/dist/collection/components/radio-button-title/radio-button-title.js +22 -0
  148. package/dist/collection/components/radio-button-trailing/radio-button-trailing.css +6 -0
  149. package/dist/collection/components/radio-button-trailing/radio-button-trailing.js +22 -0
  150. package/dist/collection/components/radio-group/exports.js +1 -0
  151. package/dist/collection/components/radio-group/radio-group.css +65 -0
  152. package/dist/collection/components/radio-group/radio-group.js +1023 -0
  153. package/dist/collection/components/select/exports.js +1 -0
  154. package/dist/collection/components/select/select.css +247 -0
  155. package/dist/collection/components/select/select.js +2038 -0
  156. package/dist/collection/components/select-option/select-option.css +93 -0
  157. package/dist/collection/components/select-option/select-option.js +459 -0
  158. package/dist/collection/components/skip-link/exports.js +1 -0
  159. package/dist/collection/components/skip-link/skip-link.css +37 -0
  160. package/dist/collection/components/skip-link/skip-link.js +52 -0
  161. package/dist/collection/components/stepper/stepper.css +25 -0
  162. package/dist/collection/components/stepper/stepper.js +216 -0
  163. package/dist/collection/components/stepper-item/stepper-item.css +62 -0
  164. package/dist/collection/components/stepper-item/stepper-item.js +171 -0
  165. package/dist/collection/components/tab/tab.css +81 -0
  166. package/dist/collection/components/tab/tab.js +169 -0
  167. package/dist/collection/components/tab-panel/tab-panel.css +19 -0
  168. package/dist/collection/components/tab-panel/tab-panel.js +72 -0
  169. package/dist/collection/components/tabs/tabs.css +4 -0
  170. package/dist/collection/components/tabs/tabs.js +345 -0
  171. package/dist/collection/components/tabs-list/exports.js +2 -0
  172. package/dist/collection/components/tabs-list/tabs-list.css +58 -0
  173. package/dist/collection/components/tabs-list/tabs-list.js +294 -0
  174. package/dist/collection/components/textarea/exports.js +8 -0
  175. package/dist/collection/components/textarea/textarea.css +148 -0
  176. package/dist/collection/components/textarea/textarea.js +1055 -0
  177. package/dist/collection/components/toast/exports.js +3 -0
  178. package/dist/collection/components/toast/toast.css +179 -0
  179. package/dist/collection/components/toast/toast.js +820 -0
  180. package/dist/collection/components/toast-group/exports.js +1 -0
  181. package/dist/collection/components/toast-group/toast-group.css +37 -0
  182. package/dist/collection/components/toast-group/toast-group.js +49 -0
  183. package/dist/collection/components/tooltip/exports.js +3 -0
  184. package/dist/collection/components/tooltip/tooltip.css +77 -0
  185. package/dist/collection/components/tooltip/tooltip.js +525 -0
  186. package/dist/collection/index.js +2 -0
  187. package/dist/collection/utils/focusable.js +24 -0
  188. package/dist/collection/utils/formData.js +40 -0
  189. package/dist/collection/utils/theming.js +103 -0
  190. package/dist/collection/utils/version-checker.js +33 -0
  191. package/dist/esm/app-globals-DQuL1Twl.js +3 -0
  192. package/dist/esm/focusable-ky1yonnS.js +26 -0
  193. package/dist/esm/formData-DvLT8-y3.js +42 -0
  194. package/dist/esm/index-CTxpqopm.js +1806 -0
  195. package/dist/esm/index.js +35 -0
  196. package/dist/esm/loader.js +11 -0
  197. package/dist/esm/r-accordion-panel.entry.js +22 -0
  198. package/dist/esm/r-accordion-section.entry.js +123 -0
  199. package/dist/esm/r-accordion-trigger.entry.js +91 -0
  200. package/dist/esm/r-accordion.entry.js +18 -0
  201. package/dist/esm/r-alert.entry.js +144 -0
  202. package/dist/esm/r-badge.entry.js +39 -0
  203. package/dist/esm/r-button.entry.js +147 -0
  204. package/dist/esm/r-checkbox-group.entry.js +235 -0
  205. package/dist/esm/r-checkbox.entry.js +272 -0
  206. package/dist/esm/r-design-system-devtools.entry.js +29 -0
  207. package/dist/esm/r-dialog.entry.js +105 -0
  208. package/dist/esm/r-hint_2.entry.js +47 -0
  209. package/dist/esm/r-icon-button_2.entry.js +489 -0
  210. package/dist/esm/r-icon.entry.js +282 -0
  211. package/dist/esm/r-illustration.entry.js +394 -0
  212. package/dist/esm/r-input-code.entry.js +435 -0
  213. package/dist/esm/r-input-date.entry.js +522 -0
  214. package/dist/esm/r-input-password.entry.js +268 -0
  215. package/dist/esm/r-input-phone-number.entry.js +2523 -0
  216. package/dist/esm/r-input.entry.js +616 -0
  217. package/dist/esm/r-list-item.entry.js +107 -0
  218. package/dist/esm/r-pagination.entry.js +318 -0
  219. package/dist/esm/r-panel.entry.js +182 -0
  220. package/dist/esm/r-popover-action.entry.js +78 -0
  221. package/dist/esm/r-popover-content.entry.js +60 -0
  222. package/dist/esm/r-popover-headline.entry.js +26 -0
  223. package/dist/esm/r-popover-trigger.entry.js +68 -0
  224. package/dist/esm/r-popover.entry.js +345 -0
  225. package/dist/esm/r-progress-bar.entry.js +23 -0
  226. package/dist/esm/r-radio-button-description.entry.js +16 -0
  227. package/dist/esm/r-radio-button-leading.entry.js +16 -0
  228. package/dist/esm/r-radio-button-title.entry.js +16 -0
  229. package/dist/esm/r-radio-button-trailing.entry.js +16 -0
  230. package/dist/esm/r-radio-button.entry.js +137 -0
  231. package/dist/esm/r-radio-group.entry.js +426 -0
  232. package/dist/esm/r-select-option.entry.js +128 -0
  233. package/dist/esm/r-select.entry.js +1105 -0
  234. package/dist/esm/r-skip-link.entry.js +17 -0
  235. package/dist/esm/r-stepper-item.entry.js +40 -0
  236. package/dist/esm/r-stepper.entry.js +97 -0
  237. package/dist/esm/r-tab-panel.entry.js +24 -0
  238. package/dist/esm/r-tab.entry.js +60 -0
  239. package/dist/esm/r-tabs-list.entry.js +173 -0
  240. package/dist/esm/r-tabs.entry.js +275 -0
  241. package/dist/esm/r-textarea.entry.js +268 -0
  242. package/dist/esm/r-toast-group.entry.js +44 -0
  243. package/dist/esm/r-toast.entry.js +312 -0
  244. package/dist/esm/style-observer-4Uv3PpKT.js +1116 -0
  245. package/dist/esm/theming-DD2IrjpG.js +106 -0
  246. package/dist/esm/web-components.js +21 -0
  247. package/dist/index.cjs.js +1 -0
  248. package/dist/index.js +1 -0
  249. package/dist/types/components/accordion/accordion.d.ts +27 -0
  250. package/dist/types/components/accordion/exports.d.ts +2 -0
  251. package/dist/types/components/accordion-panel/accordion-panel.d.ts +10 -0
  252. package/dist/types/components/accordion-section/accordion-section.d.ts +36 -0
  253. package/dist/types/components/accordion-trigger/accordion-trigger.d.ts +33 -0
  254. package/dist/types/components/alert/alert.d.ts +67 -0
  255. package/dist/types/components/alert/exports.d.ts +4 -0
  256. package/dist/types/components/badge/badge.d.ts +26 -0
  257. package/dist/types/components/badge/exports.d.ts +2 -0
  258. package/dist/types/components/button/button.d.ts +89 -0
  259. package/dist/types/components/button/exports.d.ts +10 -0
  260. package/dist/types/components/checkbox/checkbox.d.ts +138 -0
  261. package/dist/types/components/checkbox-group/checkbox-group.d.ts +124 -0
  262. package/dist/types/components/design-system-devtools/design-system-devtools.d.ts +15 -0
  263. package/dist/types/components/dialog/dialog.d.ts +69 -0
  264. package/dist/types/components/dialog/exports.d.ts +10 -0
  265. package/dist/types/components/hint/exports.d.ts +2 -0
  266. package/dist/types/components/hint/hint.d.ts +20 -0
  267. package/dist/types/components/icon/all-kit.d.ts +2890 -0
  268. package/dist/types/components/icon/data.d.ts +145 -0
  269. package/dist/types/components/icon/exports.d.ts +152 -0
  270. package/dist/types/components/icon/icon.d.ts +37 -0
  271. package/dist/types/components/icon/riverty-kit.d.ts +139 -0
  272. package/dist/types/components/icon-button/icon-button.d.ts +69 -0
  273. package/dist/types/components/illustration/data.d.ts +52 -0
  274. package/dist/types/components/illustration/exports.d.ts +23 -0
  275. package/dist/types/components/illustration/illustration.d.ts +51 -0
  276. package/dist/types/components/illustration/illustrations-ui-kit.d.ts +21 -0
  277. package/dist/types/components/input/exports.d.ts +55 -0
  278. package/dist/types/components/input/input.d.ts +365 -0
  279. package/dist/types/components/input-code/exports.d.ts +4 -0
  280. package/dist/types/components/input-code/input-code.d.ts +177 -0
  281. package/dist/types/components/input-date/exports.d.ts +5 -0
  282. package/dist/types/components/input-date/input-date.d.ts +174 -0
  283. package/dist/types/components/input-password/exports.d.ts +1 -0
  284. package/dist/types/components/input-password/input-password.d.ts +186 -0
  285. package/dist/types/components/input-phone-number/input-phone-number.d.ts +130 -0
  286. package/dist/types/components/label/label.d.ts +9 -0
  287. package/dist/types/components/list-item/list-item/exports.d.ts +4 -0
  288. package/dist/types/components/list-item/list-item/list-item.d.ts +61 -0
  289. package/dist/types/components/pagination/exports.d.ts +6 -0
  290. package/dist/types/components/pagination/pagination.d.ts +140 -0
  291. package/dist/types/components/panel/exports.d.ts +2 -0
  292. package/dist/types/components/panel/panel.d.ts +56 -0
  293. package/dist/types/components/popover/exports.d.ts +6 -0
  294. package/dist/types/components/popover/popover.d.ts +131 -0
  295. package/dist/types/components/popover-action/popover-action.d.ts +24 -0
  296. package/dist/types/components/popover-content/popover-content.d.ts +22 -0
  297. package/dist/types/components/popover-headline/popover-headline.d.ts +6 -0
  298. package/dist/types/components/popover-trigger/exports.d.ts +2 -0
  299. package/dist/types/components/popover-trigger/popover-trigger.d.ts +31 -0
  300. package/dist/types/components/progress-bar/progress-bar.d.ts +10 -0
  301. package/dist/types/components/radio-button/radio-button.d.ts +92 -0
  302. package/dist/types/components/radio-button-description/radio-button-description.d.ts +8 -0
  303. package/dist/types/components/radio-button-leading/radio-button-leading.d.ts +8 -0
  304. package/dist/types/components/radio-button-title/radio-button-title.d.ts +8 -0
  305. package/dist/types/components/radio-button-trailing/radio-button-trailing.d.ts +8 -0
  306. package/dist/types/components/radio-group/exports.d.ts +2 -0
  307. package/dist/types/components/radio-group/radio-group.d.ts +179 -0
  308. package/dist/types/components/select/exports.d.ts +2 -0
  309. package/dist/types/components/select/select.d.ts +319 -0
  310. package/dist/types/components/select-option/select-option.d.ts +113 -0
  311. package/dist/types/components/skip-link/exports.d.ts +2 -0
  312. package/dist/types/components/skip-link/skip-link.d.ts +6 -0
  313. package/dist/types/components/stepper/stepper.d.ts +22 -0
  314. package/dist/types/components/stepper-item/stepper-item.d.ts +23 -0
  315. package/dist/types/components/tab/tab.d.ts +23 -0
  316. package/dist/types/components/tab-panel/tab-panel.d.ts +7 -0
  317. package/dist/types/components/tabs/tabs.d.ts +49 -0
  318. package/dist/types/components/tabs-list/exports.d.ts +4 -0
  319. package/dist/types/components/tabs-list/tabs-list.d.ts +41 -0
  320. package/dist/types/components/textarea/exports.d.ts +2 -0
  321. package/dist/types/components/textarea/textarea.d.ts +158 -0
  322. package/dist/types/components/toast/exports.d.ts +6 -0
  323. package/dist/types/components/toast/toast.d.ts +146 -0
  324. package/dist/types/components/toast-group/exports.d.ts +2 -0
  325. package/dist/types/components/toast-group/toast-group.d.ts +9 -0
  326. package/dist/types/components/tooltip/exports.d.ts +6 -0
  327. package/dist/types/components/tooltip/tooltip.d.ts +132 -0
  328. package/dist/types/components.d.ts +6347 -0
  329. package/dist/types/index.d.ts +1 -0
  330. package/dist/types/stencil-public-runtime.d.ts +1732 -0
  331. package/dist/types/types/jsx-shim.d.ts +13 -0
  332. package/dist/types/types/style-observer.d.ts +20 -0
  333. package/dist/types/utils/focusable.d.ts +1 -0
  334. package/dist/types/utils/formData.d.ts +1 -0
  335. package/dist/types/utils/theming.d.ts +15 -0
  336. package/dist/types/utils/version-checker.d.ts +1 -0
  337. package/dist/web-components/index.esm.js +1 -0
  338. package/dist/web-components/p-01aefcf0.entry.js +1 -0
  339. package/dist/web-components/p-05cb55db.entry.js +1 -0
  340. package/dist/web-components/p-0a34d33b.entry.js +1 -0
  341. package/dist/web-components/p-11b22309.entry.js +1 -0
  342. package/dist/web-components/p-2d878934.entry.js +1 -0
  343. package/dist/web-components/p-325dbedf.entry.js +1 -0
  344. package/dist/web-components/p-34b9457b.entry.js +1 -0
  345. package/dist/web-components/p-36abd05a.entry.js +1 -0
  346. package/dist/web-components/p-386d1ef9.entry.js +1 -0
  347. package/dist/web-components/p-3d67b77b.entry.js +1 -0
  348. package/dist/web-components/p-4Uv3PpKT.js +1 -0
  349. package/dist/web-components/p-4b12fbc0.entry.js +1 -0
  350. package/dist/web-components/p-52f7b505.entry.js +1 -0
  351. package/dist/web-components/p-55600d47.entry.js +1 -0
  352. package/dist/web-components/p-57ebc474.entry.js +1 -0
  353. package/dist/web-components/p-57edf7f4.entry.js +1 -0
  354. package/dist/web-components/p-69a24fe2.entry.js +1 -0
  355. package/dist/web-components/p-6d92648c.entry.js +1 -0
  356. package/dist/web-components/p-75052597.entry.js +1 -0
  357. package/dist/web-components/p-7b2c5b63.entry.js +1 -0
  358. package/dist/web-components/p-7bf463ff.entry.js +1 -0
  359. package/dist/web-components/p-838e43d4.entry.js +1 -0
  360. package/dist/web-components/p-8c16d038.entry.js +1 -0
  361. package/dist/web-components/p-8f8313de.entry.js +1 -0
  362. package/dist/web-components/p-9026d5a2.entry.js +1 -0
  363. package/dist/web-components/p-95396b5c.entry.js +1 -0
  364. package/dist/web-components/p-9c31c7c4.entry.js +1 -0
  365. package/dist/web-components/p-9c415b9c.entry.js +1 -0
  366. package/dist/web-components/p-9f583ed1.entry.js +1 -0
  367. package/dist/web-components/p-B9rsR6cQ.js +1 -0
  368. package/dist/web-components/p-CTxpqopm.js +2 -0
  369. package/dist/web-components/p-DQuL1Twl.js +1 -0
  370. package/dist/web-components/p-DvLT8-y3.js +1 -0
  371. package/dist/web-components/p-b303b2cc.entry.js +1 -0
  372. package/dist/web-components/p-b8df041d.entry.js +1 -0
  373. package/dist/web-components/p-bc30844f.entry.js +1 -0
  374. package/dist/web-components/p-c4a77a65.entry.js +1 -0
  375. package/dist/web-components/p-c549addf.entry.js +1 -0
  376. package/dist/web-components/p-c65df19f.entry.js +1 -0
  377. package/dist/web-components/p-c80a5541.entry.js +1 -0
  378. package/dist/web-components/p-c96ee61a.entry.js +1 -0
  379. package/dist/web-components/p-cf3f044d.entry.js +1 -0
  380. package/dist/web-components/p-d1412932.entry.js +1 -0
  381. package/dist/web-components/p-d9778cfa.entry.js +1 -0
  382. package/dist/web-components/p-dbe4ccb8.entry.js +1 -0
  383. package/dist/web-components/p-ded50850.entry.js +1 -0
  384. package/dist/web-components/p-e5be895b.entry.js +1 -0
  385. package/dist/web-components/p-e6b34c1e.entry.js +1 -0
  386. package/dist/web-components/p-ec3c4800.entry.js +1 -0
  387. package/dist/web-components/p-f670fd87.entry.js +1 -0
  388. package/dist/web-components/p-f867e4c3.entry.js +1 -0
  389. package/dist/web-components/p-ff6b1b8f.entry.js +1 -0
  390. package/dist/web-components/p-ky1yonnS.js +1 -0
  391. package/dist/web-components/web-components.esm.js +1 -0
  392. package/loader/cdn.js +1 -0
  393. package/loader/index.cjs.js +1 -0
  394. package/loader/index.d.ts +24 -0
  395. package/loader/index.es2017.js +1 -0
  396. package/loader/index.js +2 -0
  397. package/package.json +1 -1
@@ -0,0 +1,169 @@
1
+ import { h, Host } from "@stencil/core";
2
+ export class RTab {
3
+ constructor() {
4
+ /** Indicates if `<r-tab>` is disabled */
5
+ this.disabled = false;
6
+ /** Indicates if `<r-tab>` is active */
7
+ this.active = false;
8
+ this.handleClick = () => {
9
+ if (this.disabled || this.active)
10
+ return;
11
+ this.tabChange.emit({ element: this.host });
12
+ };
13
+ this.handleKeyup = (event) => {
14
+ if (this.disabled || this.active)
15
+ return;
16
+ const isSpace = event.code === 'Space';
17
+ const isEnter = event.code === 'Enter';
18
+ if (isEnter || isSpace)
19
+ this.tabChange.emit({ element: this.host });
20
+ };
21
+ this.handleKeydown = (event) => {
22
+ if (this.disabled)
23
+ return;
24
+ switch (event.code) {
25
+ case 'ArrowLeft':
26
+ case 'ArrowRight':
27
+ case 'Space':
28
+ case 'Home':
29
+ case 'End':
30
+ event.preventDefault();
31
+ break;
32
+ }
33
+ this.moveTabFocus.emit({ element: this.host, keycode: event.code });
34
+ };
35
+ }
36
+ render() {
37
+ const { disabled, active, panelId } = this;
38
+ const hostAttrs = {
39
+ role: 'tab',
40
+ tabindex: `${active ? '0' : '-1'}`,
41
+ 'panel-id': panelId,
42
+ 'aria-controls': panelId,
43
+ 'aria-selected': `${active}`,
44
+ 'aria-disabled': `${disabled}`
45
+ };
46
+ return (h(Host, Object.assign({ key: 'b68ad2b51c624ef92886f791e2093951ec235042', onClick: this.handleClick, onKeyUp: this.handleKeyup, onKeyDown: this.handleKeydown }, hostAttrs), h("span", { key: '59898569007666db12270834489378d695b7b651', class: "r-tab" }, disabled ?
47
+ h("r-icon", { class: "r-tab--disabled-icon", size: "s", name: "circle-slash" })
48
+ : h("slot", { name: "icon" }), h("slot", { key: '5e3b5ace265b9884bd659311d23955c084da995b' }))));
49
+ }
50
+ static get is() { return "r-tab"; }
51
+ static get encapsulation() { return "shadow"; }
52
+ static get originalStyleUrls() {
53
+ return {
54
+ "$": ["tab.css"]
55
+ };
56
+ }
57
+ static get styleUrls() {
58
+ return {
59
+ "$": ["tab.css"]
60
+ };
61
+ }
62
+ static get properties() {
63
+ return {
64
+ "disabled": {
65
+ "type": "boolean",
66
+ "attribute": "disabled",
67
+ "mutable": false,
68
+ "complexType": {
69
+ "original": "boolean",
70
+ "resolved": "boolean",
71
+ "references": {}
72
+ },
73
+ "required": false,
74
+ "optional": false,
75
+ "docs": {
76
+ "tags": [],
77
+ "text": "Indicates if `<r-tab>` is disabled"
78
+ },
79
+ "getter": false,
80
+ "setter": false,
81
+ "reflect": true,
82
+ "defaultValue": "false"
83
+ },
84
+ "active": {
85
+ "type": "boolean",
86
+ "attribute": "active",
87
+ "mutable": false,
88
+ "complexType": {
89
+ "original": "boolean",
90
+ "resolved": "boolean",
91
+ "references": {}
92
+ },
93
+ "required": false,
94
+ "optional": false,
95
+ "docs": {
96
+ "tags": [],
97
+ "text": "Indicates if `<r-tab>` is active"
98
+ },
99
+ "getter": false,
100
+ "setter": false,
101
+ "reflect": true,
102
+ "defaultValue": "false"
103
+ },
104
+ "panelId": {
105
+ "type": "string",
106
+ "attribute": "panel-id",
107
+ "mutable": false,
108
+ "complexType": {
109
+ "original": "string",
110
+ "resolved": "string",
111
+ "references": {}
112
+ },
113
+ "required": false,
114
+ "optional": false,
115
+ "docs": {
116
+ "tags": [],
117
+ "text": "Id of the panel that `<r-tab>` controls"
118
+ },
119
+ "getter": false,
120
+ "setter": false,
121
+ "reflect": true
122
+ }
123
+ };
124
+ }
125
+ static get events() {
126
+ return [{
127
+ "method": "tabChange",
128
+ "name": "tabChange",
129
+ "bubbles": true,
130
+ "cancelable": true,
131
+ "composed": true,
132
+ "docs": {
133
+ "tags": [],
134
+ "text": "Emits `click` event on the `<r-tab>`"
135
+ },
136
+ "complexType": {
137
+ "original": "{\n element: HTMLRTabElement\n }",
138
+ "resolved": "{ element: HTMLRTabElement; }",
139
+ "references": {
140
+ "HTMLRTabElement": {
141
+ "location": "global",
142
+ "id": "global::HTMLRTabElement"
143
+ }
144
+ }
145
+ }
146
+ }, {
147
+ "method": "moveTabFocus",
148
+ "name": "moveTabFocus",
149
+ "bubbles": true,
150
+ "cancelable": true,
151
+ "composed": true,
152
+ "docs": {
153
+ "tags": [],
154
+ "text": "Emits `keydown` event on the `<r-tab>` to notify tabs component to move focus"
155
+ },
156
+ "complexType": {
157
+ "original": "{\n element: HTMLRTabElement,\n keycode: string,\n }",
158
+ "resolved": "{ element: HTMLRTabElement; keycode: string; }",
159
+ "references": {
160
+ "HTMLRTabElement": {
161
+ "location": "global",
162
+ "id": "global::HTMLRTabElement"
163
+ }
164
+ }
165
+ }
166
+ }];
167
+ }
168
+ static get elementRef() { return "host"; }
169
+ }
@@ -0,0 +1,19 @@
1
+ :host([active]:not([active=false])) {
2
+ display: block;
3
+ }
4
+
5
+ :host {
6
+ display: none;
7
+ outline: none;
8
+ }
9
+
10
+ :host(:focus-visible) {
11
+ box-shadow: 0 0 0 6px var(--r-border-focused-outlined, #fff);
12
+ outline: 2px solid var(--r-border-focused, #0071e3);
13
+ outline-offset: 2px;
14
+ }
15
+
16
+ .r-tab-panel {
17
+ font-family: var(--r-tab-panel--font-family, var(--r-font-family-text, system-ui));
18
+ font-size: var(--r-tab-panel--font-size, var(--r-font-size-text-400, 1rem));
19
+ }
@@ -0,0 +1,72 @@
1
+ import { Host, h } from "@stencil/core";
2
+ export class RTabPanel {
3
+ constructor() {
4
+ /** Defines if the `panel` is hidden */
5
+ this.active = false;
6
+ }
7
+ render() {
8
+ const { tabId, active } = this;
9
+ const hostAttrs = {
10
+ role: 'tabpanel',
11
+ tabindex: '0',
12
+ active,
13
+ 'aria-labelledby': tabId
14
+ };
15
+ return (h(Host, Object.assign({ key: '22e44ca7e5addc5d912e8005374cf0b01149eabe', class: "r-typography" }, hostAttrs), h("div", { key: '4b9498ba0f513636a5cfa0c29eb8158ab9ebca70', class: "r-tab-panel" }, h("slot", { key: 'e6d9d6538663c6a3b6c6772242bb8b7a107f26c0' }))));
16
+ }
17
+ static get is() { return "r-tab-panel"; }
18
+ static get encapsulation() { return "shadow"; }
19
+ static get originalStyleUrls() {
20
+ return {
21
+ "$": ["tab-panel.css"]
22
+ };
23
+ }
24
+ static get styleUrls() {
25
+ return {
26
+ "$": ["tab-panel.css"]
27
+ };
28
+ }
29
+ static get properties() {
30
+ return {
31
+ "active": {
32
+ "type": "boolean",
33
+ "attribute": "active",
34
+ "mutable": false,
35
+ "complexType": {
36
+ "original": "boolean",
37
+ "resolved": "boolean",
38
+ "references": {}
39
+ },
40
+ "required": false,
41
+ "optional": false,
42
+ "docs": {
43
+ "tags": [],
44
+ "text": "Defines if the `panel` is hidden"
45
+ },
46
+ "getter": false,
47
+ "setter": false,
48
+ "reflect": true,
49
+ "defaultValue": "false"
50
+ },
51
+ "tabId": {
52
+ "type": "string",
53
+ "attribute": "tab-id",
54
+ "mutable": false,
55
+ "complexType": {
56
+ "original": "string",
57
+ "resolved": "string",
58
+ "references": {}
59
+ },
60
+ "required": false,
61
+ "optional": true,
62
+ "docs": {
63
+ "tags": [],
64
+ "text": "Id of the 'tab' connected to this `panel`"
65
+ },
66
+ "getter": false,
67
+ "setter": false,
68
+ "reflect": true
69
+ }
70
+ };
71
+ }
72
+ }
@@ -0,0 +1,4 @@
1
+ :host {
2
+ display: block;
3
+ margin-top: var(--r-spacing-150, 1.5rem);
4
+ }
@@ -0,0 +1,345 @@
1
+ import { Host, h } from "@stencil/core";
2
+ export class RTabs {
3
+ constructor() {
4
+ this.activeTab = null;
5
+ }
6
+ /** `<r-tab>` group of elements */
7
+ get tabElements() {
8
+ var _a;
9
+ return (_a = this.host.querySelector('r-tabs-list')) === null || _a === void 0 ? void 0 : _a.querySelectorAll('r-tab');
10
+ }
11
+ /** `<r-tab-panel>` group of elements */
12
+ get panelElements() {
13
+ return this.host.querySelectorAll(':scope > r-tab-panel');
14
+ }
15
+ /** Active tab element */
16
+ get activeTabElement() {
17
+ return this.activeTab || this.host.querySelector('r-tab[active]');
18
+ }
19
+ /** Check if active tab element exists */
20
+ get hasActiveTabElement() {
21
+ return this.activeTabElement !== null;
22
+ }
23
+ /** Check if active tab element is disabled */
24
+ get isActiveTabElementDisabled() {
25
+ var _a;
26
+ return ((_a = this.activeTabElement) === null || _a === void 0 ? void 0 : _a.disabled) || false;
27
+ }
28
+ get isStructureCorrect() {
29
+ var _a, _b;
30
+ return Boolean(((_a = this.tabElements) === null || _a === void 0 ? void 0 : _a.length) && ((_b = this.panelElements) === null || _b === void 0 ? void 0 : _b.length));
31
+ }
32
+ get isMissingPanel() {
33
+ var _a, _b;
34
+ return ((_a = this.panelElements) === null || _a === void 0 ? void 0 : _a.length) < ((_b = this.tabElements) === null || _b === void 0 ? void 0 : _b.length);
35
+ }
36
+ get isDisabledPanel() {
37
+ return Boolean(Array.from(this.panelElements).find(panel => panel.hasAttribute('disabled')));
38
+ }
39
+ _disableTabIfPanelMissing() {
40
+ var _a;
41
+ if (!this.isMissingPanel)
42
+ return;
43
+ (_a = this.tabElements) === null || _a === void 0 ? void 0 : _a.forEach((tab, index) => {
44
+ if (!this.panelElements[index]) {
45
+ tab.disabled = true;
46
+ tab.setAttribute('disabled', 'true');
47
+ return;
48
+ }
49
+ });
50
+ }
51
+ get tabGroupsAmount() {
52
+ return document.querySelectorAll('r-tabs').length;
53
+ }
54
+ markGroupsWithIndex() {
55
+ document.querySelectorAll('r-tabs').forEach((el, index) => {
56
+ el.setAttribute('data-group', `${index}`);
57
+ });
58
+ }
59
+ _connectTabsAndPanelsById() {
60
+ this.markGroupsWithIndex();
61
+ // Connect tabs and panels with id's
62
+ this.tabElements.forEach((tab, index) => {
63
+ var _a, _b;
64
+ const label = this.transliterateToKebabCase(tab.textContent);
65
+ // Unique id per each tab-panel pair
66
+ const tabId = `r-tab-${label}`;
67
+ const panelId = `r-tab-panel-${label}`;
68
+ // Assign `id` and `panel-id` to each tab
69
+ tab.setAttribute('id', tabId);
70
+ tab.setAttribute('panel-id', panelId);
71
+ // Assign `tab-id` and `id` to each panel
72
+ (_a = this.panelElements[index]) === null || _a === void 0 ? void 0 : _a.setAttribute('tab-id', tabId);
73
+ (_b = this.panelElements[index]) === null || _b === void 0 ? void 0 : _b.setAttribute('id', panelId);
74
+ return this;
75
+ });
76
+ }
77
+ _disableTabIfPanelDisabled() {
78
+ if (!this.isDisabledPanel)
79
+ return;
80
+ this.panelElements.forEach(panel => {
81
+ if (panel.hasAttribute('disabled')) {
82
+ const tabEl = Array.from(this.tabElements).find(tab => tab.getAttribute('id') === panel.getAttribute('tab-id'));
83
+ tabEl.setAttribute('disabled', 'true');
84
+ }
85
+ });
86
+ }
87
+ transliterateToKebabCase(label) {
88
+ // Normalize and replace accents/diacritics
89
+ let latinLabel = label.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
90
+ // Replace common non-Latin characters with approximate Latin equivalents
91
+ latinLabel = latinLabel
92
+ .replace(/ß/g, "ss") // German Eszett
93
+ .replace(/æ/g, "ae") // Scandinavian
94
+ .replace(/ø/g, "o") // Scandinavian
95
+ .replace(/đ/g, "d") // Croatian/Serbian
96
+ .replace(/ł/g, "l"); // Polish
97
+ latinLabel = latinLabel.toLowerCase();
98
+ // Replace spaces and underscores with dashes
99
+ latinLabel = latinLabel.replace(/[ _]+/g, "-");
100
+ // Remove non-alphanumeric and non-dash characters
101
+ latinLabel = latinLabel.replace(/[^a-z0-9-]/g, "");
102
+ // Remove consecutive dashes and trim
103
+ latinLabel = latinLabel.replace(/-+/g, "-").replace(/^-+|-+$/g, "");
104
+ return latinLabel;
105
+ }
106
+ get tabIdFromUrl() {
107
+ const url = new URL(window.location.href);
108
+ return url.searchParams.get('tab') || null;
109
+ }
110
+ get tabsGroupFromUrl() {
111
+ const url = new URL(window.location.href);
112
+ return url.searchParams.get('tabs-group') || '0';
113
+ }
114
+ get groupFromData() {
115
+ return this.host.getAttribute('data-group');
116
+ }
117
+ _getTabElFromUrl() {
118
+ if (!this.navigation)
119
+ return;
120
+ const isCurrentGroup = this.groupFromData === this.tabsGroupFromUrl;
121
+ if (!isCurrentGroup)
122
+ return;
123
+ // Find the tab that matches the `tabId`
124
+ const tabEl = Array.from(this.tabElements).find(tab => tab.id === this.tabIdFromUrl);
125
+ if (!tabEl)
126
+ return null;
127
+ return tabEl;
128
+ }
129
+ _defineInitiallyActiveTab() {
130
+ if (this.tabIdFromUrl)
131
+ return this._getTabElFromUrl();
132
+ if (this.hasActiveTabElement && !this.isActiveTabElementDisabled)
133
+ return this.activeTabElement;
134
+ return this.host.querySelector('r-tab:not([disabled])');
135
+ }
136
+ _selectInitialTabAndPanel() {
137
+ const tabEl = this._defineInitiallyActiveTab();
138
+ tabEl && this._selectTab(tabEl);
139
+ }
140
+ _selectTab(tabEl) {
141
+ // Pass active tab to state
142
+ this.activeTab = tabEl;
143
+ // Mark active tab element
144
+ this.tabElements.forEach(element => {
145
+ element.active = element.id === tabEl.id;
146
+ element.active ? element.setAttribute('active', '') : element.removeAttribute('active');
147
+ });
148
+ // Mark active panel element
149
+ this.panelElements.forEach(element => {
150
+ element.active = element.id === tabEl.panelId;
151
+ element.active ? element.setAttribute('active', '') : element.removeAttribute('active');
152
+ });
153
+ // If URL contains tabId --> scroll active tab into view
154
+ if (this.tabIdFromUrl)
155
+ this.host.scrollIntoView({ behavior: 'smooth' });
156
+ }
157
+ handlePopState(event) {
158
+ var _a, _b;
159
+ if (!this.navigation)
160
+ return;
161
+ const tabId = (_a = event.state) === null || _a === void 0 ? void 0 : _a.tabId;
162
+ const tabsGroup = (_b = event.state) === null || _b === void 0 ? void 0 : _b.tabsGroup;
163
+ const isInGroup = tabsGroup === this.host.getAttribute('data-group');
164
+ if (!tabId)
165
+ window.location.reload();
166
+ if (!isInGroup)
167
+ return;
168
+ const tab = Array.from(this.tabElements).find(tab => tab.id === tabId);
169
+ if (!tab)
170
+ return;
171
+ this._selectTab(tab);
172
+ }
173
+ handleHistory(tab) {
174
+ const tabId = tab.getAttribute('id');
175
+ const tabsGroup = tab.closest('r-tabs').getAttribute('data-group');
176
+ const url = new URL(window.location.href);
177
+ url.searchParams.set('tab', tabId);
178
+ if (this.tabGroupsAmount > 1)
179
+ url.searchParams.set('tabs-group', tabsGroup);
180
+ history.pushState({ tabId, tabsGroup }, '', url.toString());
181
+ }
182
+ _changeFocusTab(tab, keycode) {
183
+ const tabs = Array.from(this.tabElements).filter(element => !element.disabled);
184
+ const index = tabs.indexOf(tab);
185
+ let nextTab;
186
+ switch (keycode) {
187
+ case 'ArrowLeft':
188
+ nextTab = index === 0 ? tabs[tabs.length - 1] : tabs[index - 1];
189
+ break;
190
+ case 'ArrowRight':
191
+ nextTab = index === tabs.length - 1 ? tabs[0] : tabs[index + 1];
192
+ break;
193
+ case 'Home':
194
+ nextTab = tabs[0];
195
+ break;
196
+ case 'End':
197
+ nextTab = tabs[tabs.length - 1];
198
+ break;
199
+ }
200
+ if (nextTab) {
201
+ nextTab.focus();
202
+ this.scrollTabIntoView(nextTab);
203
+ }
204
+ }
205
+ scrollTabIntoView(tab) {
206
+ var _a;
207
+ const tabsList = this.host.querySelector('r-tabs-list');
208
+ if (!tabsList)
209
+ return;
210
+ const container = (_a = tabsList.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.r-tabs-list--tabs-container');
211
+ if (!container)
212
+ return;
213
+ const containerRect = container.getBoundingClientRect();
214
+ const tabRect = tab.getBoundingClientRect();
215
+ // Check if tab is fully visible
216
+ const isFullyVisible = tabRect.left >= containerRect.left - 1 &&
217
+ tabRect.right <= containerRect.right + 1;
218
+ if (isFullyVisible)
219
+ return;
220
+ // Calculate scroll offset to center the tab
221
+ const centerOffset = (tabRect.left - containerRect.left) -
222
+ (containerRect.width / 2) +
223
+ (tabRect.width / 2);
224
+ container.scrollBy({
225
+ left: centerOffset,
226
+ behavior: 'smooth'
227
+ });
228
+ }
229
+ /** Listen for "click" event on `<r-tab>` */
230
+ tabChangeAction(event) {
231
+ event.stopPropagation();
232
+ const tab = event.target;
233
+ this._selectTab(tab);
234
+ if (this.navigation)
235
+ this.handleHistory(tab);
236
+ this.rChange.emit({ element: tab });
237
+ }
238
+ componentWillLoad() {
239
+ // If no tabs or no panels, skip the rest of initiation
240
+ if (!this.isStructureCorrect)
241
+ return;
242
+ // If panel is missing, tab is disabled
243
+ this._disableTabIfPanelMissing();
244
+ // Establish connection between tabs and panels through id
245
+ this._connectTabsAndPanelsById();
246
+ // If panel is disabled, tab is disabled
247
+ this._disableTabIfPanelDisabled();
248
+ // Active initial tab and panel
249
+ this._selectInitialTabAndPanel();
250
+ }
251
+ connectedCallback() {
252
+ // Listen for popstate events (when the user navigates back/forward)
253
+ window.addEventListener('popstate', this.handlePopState.bind(this));
254
+ }
255
+ disconnectedCallback() {
256
+ window.removeEventListener('popstate', this.handlePopState.bind(this));
257
+ }
258
+ /** Listen for "moveTabFocus" event on `<r-tab>` */
259
+ moveTabFocusAction(e) {
260
+ e.stopPropagation();
261
+ this._changeFocusTab(e.target, e.detail.keycode);
262
+ }
263
+ render() {
264
+ return (h(Host, { key: 'a1ff15e7b90774486932acd7035839fc8794e10b', class: "r-tabs" }, h("slot", { key: '4d8a00d7344c8cbc69896b43da740009fa54cab9' })));
265
+ }
266
+ static get is() { return "r-tabs"; }
267
+ static get encapsulation() { return "shadow"; }
268
+ static get originalStyleUrls() {
269
+ return {
270
+ "$": ["tabs.css"]
271
+ };
272
+ }
273
+ static get styleUrls() {
274
+ return {
275
+ "$": ["tabs.css"]
276
+ };
277
+ }
278
+ static get properties() {
279
+ return {
280
+ "navigation": {
281
+ "type": "boolean",
282
+ "attribute": "navigation",
283
+ "mutable": false,
284
+ "complexType": {
285
+ "original": "boolean",
286
+ "resolved": "boolean",
287
+ "references": {}
288
+ },
289
+ "required": false,
290
+ "optional": true,
291
+ "docs": {
292
+ "tags": [],
293
+ "text": "Determines if the tabs should update the browser's URL and allow navigation via history changes"
294
+ },
295
+ "getter": false,
296
+ "setter": false,
297
+ "reflect": false
298
+ }
299
+ };
300
+ }
301
+ static get states() {
302
+ return {
303
+ "activeTab": {}
304
+ };
305
+ }
306
+ static get events() {
307
+ return [{
308
+ "method": "rChange",
309
+ "name": "rChange",
310
+ "bubbles": true,
311
+ "cancelable": true,
312
+ "composed": true,
313
+ "docs": {
314
+ "tags": [],
315
+ "text": "Emits `rChange` event when active `<r-tab>` changes"
316
+ },
317
+ "complexType": {
318
+ "original": "{\n element: HTMLRTabElement\n }",
319
+ "resolved": "{ element: HTMLRTabElement; }",
320
+ "references": {
321
+ "HTMLRTabElement": {
322
+ "location": "global",
323
+ "id": "global::HTMLRTabElement"
324
+ }
325
+ }
326
+ }
327
+ }];
328
+ }
329
+ static get elementRef() { return "host"; }
330
+ static get listeners() {
331
+ return [{
332
+ "name": "tabChange",
333
+ "method": "tabChangeAction",
334
+ "target": undefined,
335
+ "capture": false,
336
+ "passive": false
337
+ }, {
338
+ "name": "moveTabFocus",
339
+ "method": "moveTabFocusAction",
340
+ "target": undefined,
341
+ "capture": false,
342
+ "passive": false
343
+ }];
344
+ }
345
+ }
@@ -0,0 +1,2 @@
1
+ export const TabListVariantArray = ['expanded', 'compact'];
2
+ export const ActiveTabBorderArray = ['standard', 'branded'];
@@ -0,0 +1,58 @@
1
+ :host {
2
+ display: block;
3
+ }
4
+
5
+ :host([variant=compact]) {
6
+ --r-tabs-list--r-tab--margin-right: 0;
7
+ --r-tabs-list--r-tab--flex: 1;
8
+ --r-tab--width: 100%;
9
+ }
10
+
11
+ :host([scrollable=true]) {
12
+ --r-tabs-list--tabs-container--margin: -6px 4px ;
13
+ }
14
+
15
+ :host([border=branded]) {
16
+ --r-tab--marker--background-color: var(--r-border-brand-vanguard, #527a42);
17
+ }
18
+
19
+ .r-tabs-list {
20
+ display: var(--r-tabs-list--display, flex);
21
+ margin-bottom: var(--r-tabs-list--margin-bottom, var(--r-spacing-250, 2.5rem));
22
+ border-bottom-width: var(--r-tabs-list--border-bottom-width, 1px);
23
+ border-bottom-style: var(--r-tabs-list--border-bottom-style, solid);
24
+ border-bottom-color: var(--r-tabs-list--border-bottom-color, var(--r-border-softer, #c9c9c9));
25
+ }
26
+ .r-tabs-list--scroll-button {
27
+ --r-icon-button--border-radius: var(--r-tabs-list--border-radius, 0);
28
+ --r-icon-button--width: var(--r-tabs-list--scroll-button--width, var(--r-spacing-200, 2rem));
29
+ --r-icon-button--height: var(--r-tabs-list--scroll-button--height, var(--r-spacing-200, 2rem));
30
+ }
31
+ .r-tabs-list--tabs-container {
32
+ display: var(--r-tabs-list--tabs-container--display, flex);
33
+ flex: var(--r-tabs-list--tabs-container--flex, 1);
34
+ overflow: var(--r-tabs-list--tabs-container--overflow, scroll hidden);
35
+ scroll-snap-type: var(--r-tabs-list--tabs-container--scroll-snap-type, x proximity);
36
+ scrollbar-width: var(--r-tabs-list--tabs-container--scrollbar-width, none);
37
+ margin: var(--r-tabs-list--tabs-container--margin, -6px);
38
+ padding: var(--r-tabs-list--tabs-container--padding, 6px);
39
+ }
40
+ .r-tabs-list--scroll-button-container {
41
+ display: var(--r-tabs-list--scroll-button-container--display, flex);
42
+ align-items: var(--r-tabs-list--scroll-button-container--align-items, start);
43
+ gap: var(--r-tabs-list--scroll-button-container--gap, var(--r-spacing-025, 0.25rem));
44
+ }
45
+ .r-tabs-list--scroll-indicator {
46
+ margin-top: var(--r-tabs-list--scroll-indicator--margin, 2px);
47
+ width: var(--r-tabs-list--scroll-button--after--width, 1px);
48
+ height: var(--r-tabs-list--scroll-button--after--height, var(--r-spacing-175, 1.75rem));
49
+ background-color: var(--r-tabs-list----scroll-indicator--background-color, var(--r-border-softer, #c9c9c9));
50
+ z-index: var(--r-tabs-list----scroll-indicator--z-index, 1);
51
+ }
52
+ .r-tabs-list ::slotted(r-tab) {
53
+ margin-right: var(--r-tabs-list--r-tab--margin-right, var(--r-spacing-250, 2.5rem));
54
+ flex: var(--r-tabs-list--r-tab--flex, none);
55
+ }
56
+ .r-tabs-list ::slotted(r-tab:last-of-type) {
57
+ margin-right: var(--r-tabs-list--r-tab--last-of-type--margin-right, 0);
58
+ }