@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,90 @@
1
+ import IconsData from "./riverty-kit";
2
+ export const PATH_ICONS = 'https://cdn.riverty.design/icons/';
3
+ export const DEFAULT_KIT_NAME = 'riverty';
4
+ let parser;
5
+ const data = IconsData;
6
+ const minifySvgContent = (content) => {
7
+ // Remove spaces at the beginning and at the end
8
+ let string = content.trim();
9
+ // Strip fill attributes
10
+ string = string.replace(/\sfill="([\S]*)"/gi, '');
11
+ // Strip stroke attributes
12
+ string = string.replace(/\sstroke="([\S]*)"/gi, '');
13
+ // Remove line breaks
14
+ string = string.replace(/\n|\r/g, "");
15
+ // Remove spaces between tags
16
+ string = string.replace(/>\s+</g, '><');
17
+ // Strip attributes from <svg> tag
18
+ string = string.replace(/<svg[^>]*?>/gi, '<svg stroke="currentColor">');
19
+ return string;
20
+ };
21
+ const checkEventListeners = element => {
22
+ // Get all inner nodes
23
+ const nodesArray = Array.from(element.querySelectorAll('*'));
24
+ // Take each node
25
+ const nodesFilter = nodesArray.filter((el) => {
26
+ // Get an array of attributes
27
+ const attributes = Array.from(el.attributes);
28
+ // Check if there is an attribute, that starts with "on"
29
+ if (attributes.filter(attr => attr.name.startsWith("on")).length > 0) {
30
+ return el;
31
+ }
32
+ });
33
+ // If nodes found -> hasEventListeners = true
34
+ return nodesFilter.length > 0;
35
+ };
36
+ const isSvgContentValid = (element) => {
37
+ const hasEventListeners = checkEventListeners(element);
38
+ const hasScriptTags = element.querySelectorAll('script').length > 0;
39
+ const hasLinksJSTriggers = element.querySelectorAll('[href^="javascript:"]').length > 0;
40
+ return !hasEventListeners && !hasScriptTags && !hasLinksJSTriggers;
41
+ };
42
+ // Get SVG Element based on SVG text content
43
+ export const parseElementFromSvgContent = (content) => {
44
+ if (!parser) {
45
+ parser = new DOMParser();
46
+ }
47
+ const htmlContent = parser.parseFromString(content, 'text/html');
48
+ const element = htmlContent.querySelector('svg');
49
+ if (!element)
50
+ return null;
51
+ if (isSvgContentValid(element)) {
52
+ return element;
53
+ }
54
+ return null;
55
+ };
56
+ export const getSvgElementBySrc = async (src) => {
57
+ try {
58
+ // Fetch content of the SVG from source provided
59
+ const responce = await fetch(src);
60
+ if (!responce.ok) {
61
+ console.warn(`Error while fetching from ${src}: ${responce.status}.`);
62
+ return;
63
+ }
64
+ const textContent = await responce.text();
65
+ const svgElement = parseElementFromSvgContent(textContent);
66
+ return Promise.resolve(svgElement);
67
+ }
68
+ catch (error) {
69
+ return Promise.reject(error);
70
+ }
71
+ };
72
+ export const getSvgContentByName = (name) => {
73
+ return data[name] || null;
74
+ };
75
+ // Define <SVG> element by name
76
+ export const getSvgElementByName = name => {
77
+ // Get content from json
78
+ const svgContent = getSvgContentByName(name);
79
+ // Get element if content exists
80
+ return svgContent ? parseElementFromSvgContent(svgContent) : null;
81
+ };
82
+ export const getIconsData = () => {
83
+ return data;
84
+ };
85
+ export const addToIconsData = (name, value) => {
86
+ const content = minifySvgContent(value);
87
+ if (data[name] === undefined) {
88
+ data[name] = content;
89
+ }
90
+ };
@@ -0,0 +1,7 @@
1
+ import { getIconsData } from "./data";
2
+ export const iconsData = getIconsData();
3
+ export const iconSizeArray = ['s', 'm', 'l'];
4
+ export const iconSizeValue = { 's': '16', 'm': '24', 'l': '32' };
5
+ export const iconPositionArray = ['start', 'end'];
6
+ export const iconKitArray = ['riverty', 'test'];
7
+ export const iconVariantArray = ['button'];
@@ -0,0 +1,105 @@
1
+ :host {
2
+ display: inline-block;
3
+ vertical-align: top;
4
+ }
5
+
6
+ :host([size=s]) {
7
+ --r-icon--width: 16px;
8
+ --r-icon--height: 16px;
9
+ line-height: 16px;
10
+ }
11
+
12
+ :host([size=m]) {
13
+ --r-icon--width: 24px;
14
+ --r-icon--height: 24px;
15
+ line-height: 24px;
16
+ }
17
+
18
+ :host([size=l]) {
19
+ --r-icon--width: 32px;
20
+ --r-icon--height: 32px;
21
+ line-height: 32px;
22
+ }
23
+
24
+ :host([size]) {
25
+ --r-icon--slotted--width: var(--r-icon--width, 24px);
26
+ --r-icon--slotted--height: var(--r-icon--height, 24px);
27
+ }
28
+
29
+ :host([variant=button]) {
30
+ --r-icon--target-area--display: block;
31
+ --r-icon--button-area--display: block;
32
+ }
33
+
34
+ :host([variant=button]:hover) {
35
+ --r-icon--button-area--border-color: var(--r-border-softer);
36
+ --r-icon--button-area--background-color: var(--r-background-interactive-hovered);
37
+ }
38
+
39
+ :host([variant=button][size=m]) {
40
+ --r-icon--button-area--width: 2.25rem;
41
+ --r-icon--button-area--height: 2.25rem;
42
+ --r-icon--button-area--top: calc(50% - 1.125rem)
43
+ --r-icon--button-area--left: calc(50% - 1.125rem) ;
44
+ }
45
+
46
+ :host([variant=button][size=l]) {
47
+ --r-icon--button-area--width: 2.75rem;
48
+ --r-icon--button-area--height: 2.75rem;
49
+ --r-icon--button-area--top: calc(50% - 1.375rem)
50
+ --r-icon--button-area--left: calc(50% - 1.375rem) ;
51
+ }
52
+
53
+ .r-icon {
54
+ display: var(--r-icon--display, block);
55
+ width: var(--r-icon--width, 24px);
56
+ height: var(--r-icon--height, 24px);
57
+ margin-left: var(--r-icon--margin-left, 0);
58
+ margin-right: var(--r-icon--margin-right, 0);
59
+ overflow: var(--r-icon--overflow, hidden);
60
+ color: var(--r-icon--color, inherit);
61
+ }
62
+ .r-icon--container {
63
+ display: var(--r-icon--container--display, flex);
64
+ align-items: var(--r-icon--container--align-items, center);
65
+ justify-content: var(--r-icon--container--justify-content, center);
66
+ fill: var(--r-icon--container--fill, rgba(0, 0, 0, 0));
67
+ stroke: var(--r-icon--container--stroke, inherit);
68
+ stroke-width: var(--r-icon--container--stroke-width, 1.5);
69
+ width: var(--r-icon--container--width, inherit);
70
+ height: var(--r-icon--container--height, inherit);
71
+ }
72
+ .r-icon ::slotted(svg) {
73
+ width: var(--r-icon--slotted--width, 100%);
74
+ height: var(--r-icon--slotted--height, auto);
75
+ vertical-align: var(--r-icon--slotted--vertical-align, top);
76
+ color: var(--r-icon--slotted--color, inherit);
77
+ stroke-width: var(--r-icon--slotted--stroke-width, 1.5);
78
+ fill: var(--r-icon--slotted--fill, transparent);
79
+ }
80
+ .r-icon--button-area {
81
+ position: var(--r-icon--button-area--position, absolute);
82
+ left: var(--r-icon--button-area--left, calc(50% - 0.75rem));
83
+ top: var(--r-icon--button-area--top, calc(50% - 0.75rem));
84
+ display: var(--r-icon--button-area--display, none);
85
+ width: var(--r-icon--button-area--width, 1.5rem);
86
+ height: var(--r-icon--button-area--height, 1.5rem);
87
+ background-color: var(--r-icon--button-area--background-color, transparent);
88
+ border-width: var(--r-icon--button-area--border-width, 1px);
89
+ border-style: var(--r-icon--button-area--border-style, solid);
90
+ border-color: var(--r-icon--button-area--border-color, transparent);
91
+ border-radius: var(--r-icon--button-area--border-radius, 50%);
92
+ box-sizing: var(--r-icon--button-area--box-sizing, border-box);
93
+ outline: var(--r-icon--button-area--outline, none);
94
+ outline-offset: var(--r-icon--button-area--outline-offset, 0);
95
+ box-shadow: var(--r-icon--button-area--box-shadow, 0);
96
+ }
97
+ .r-icon--target-area {
98
+ position: var(--r-icon--target-area--position, absolute);
99
+ left: var(--r-icon--target-area--left, calc(50% - 1.375rem));
100
+ top: var(--r-icon--target-area--top, calc(50% - 1.375rem));
101
+ display: var(--r-icon--target-area--display, none);
102
+ width: var(--r-icon--target-area--width, 2.75rem);
103
+ height: var(--r-icon--target-area--height, 2.75rem);
104
+ background-color: var(--r-icon--target-area--background-color, transparent);
105
+ }
@@ -0,0 +1,379 @@
1
+ import { Host, h, Fragment } from "@stencil/core";
2
+ import { PATH_ICONS, DEFAULT_KIT_NAME, getSvgElementBySrc, getSvgElementByName, getIconsData, addToIconsData } from "./data";
3
+ import { iconSizeValue } from "./exports";
4
+ let iconsData = getIconsData();
5
+ export class RIcon {
6
+ constructor() {
7
+ /** Select kit */
8
+ this.kit = DEFAULT_KIT_NAME;
9
+ /** Select one of pre-set sizes (width and height automatically selected) */
10
+ this.size = "m";
11
+ /** Customize `viewBox` of rendered icon SVG element */
12
+ this.viewBox = '0 0 24 24';
13
+ /**
14
+ * Quick way to set display color to one of the
15
+ * Riverty color tokens
16
+ */
17
+ this.color = null;
18
+ this._setElementAttrs = (el, attrs = {}) => {
19
+ if (!el)
20
+ return;
21
+ const keys = Object.keys(attrs);
22
+ keys.forEach(key => {
23
+ const elHasNoAttr = el.getAttribute(key) === null;
24
+ const attrHasValue = attrs[key] !== undefined;
25
+ if (elHasNoAttr && attrHasValue) {
26
+ el.setAttribute(key, attrs[key]);
27
+ }
28
+ });
29
+ };
30
+ // Combine attributes for <SVG>
31
+ this._defineSvgAttrs = () => {
32
+ const { viewBox, name } = this;
33
+ const sizeValue = this.size ? iconSizeValue[this.size] : null;
34
+ const attrs = {
35
+ viewBox,
36
+ key: name,
37
+ xmlns: 'http://www.w3.org/2000/svg',
38
+ 'aria-label': this.iconAriaLabel,
39
+ 'aria-hidden': !this.iconAriaLabel
40
+ };
41
+ if (sizeValue !== null) {
42
+ attrs['width'] = sizeValue;
43
+ attrs['height'] = sizeValue;
44
+ }
45
+ return attrs;
46
+ };
47
+ // Pass attributes from <r-icon> to <SVG>
48
+ this._passAttributesToSvg = () => {
49
+ // Search for an <svg> within <r-icon> component
50
+ const svgElement = this.host.querySelector('svg');
51
+ // If an SVG was not found inside <r-icon>
52
+ // Exit function
53
+ if (svgElement === null)
54
+ return;
55
+ // Pass name of an attribute, get the value
56
+ const _getAttrValue = attrName => {
57
+ return (
58
+ // First check if an attribute is provided by <r-icon>,
59
+ this.host.getAttribute(attrName) ||
60
+ // If not, then check if <SVG> in slot provides one
61
+ svgElement.getAttribute(attrName) ||
62
+ // If not, then take deafult <r-icon> value
63
+ this[attrName]);
64
+ };
65
+ // Collect attribute values available
66
+ // Priority of overriding: host -> svg -> default
67
+ // Set values of attributes of an <SVG>
68
+ this._setElementAttrs(svgElement, {
69
+ viewBox: _getAttrValue('viewBox')
70
+ });
71
+ };
72
+ this._defineSvgElement = async () => {
73
+ let svgElement = null;
74
+ let attrs = {};
75
+ // Define <SVG> element by source
76
+ if (this.src) {
77
+ // Fetch <SVG> content from the source
78
+ try {
79
+ svgElement = await getSvgElementBySrc(this.src);
80
+ }
81
+ catch (error) {
82
+ console.info('Error while fetching:', error);
83
+ return null;
84
+ }
85
+ // If <SVG> element fetched successfully
86
+ if (svgElement) {
87
+ // Set <SVG> element attributes
88
+ this._setElementAttrs(svgElement, this._defineSvgAttrs());
89
+ // Extract name from src
90
+ const name = this.src.split("/").pop().replace('.svg', '');
91
+ if (iconsData[name] !== undefined) {
92
+ return svgElement;
93
+ }
94
+ // Save icon content to data object
95
+ addToIconsData(name, `${svgElement.outerHTML}`);
96
+ // Update data object
97
+ iconsData = getIconsData();
98
+ return svgElement;
99
+ }
100
+ console.warn(`The icon was NOT found by src "${this.src}".`);
101
+ }
102
+ // Check name attribute
103
+ if (this.name) {
104
+ // Getting an <SVG> element by name
105
+ svgElement = getSvgElementByName(this.name);
106
+ if (svgElement !== null) {
107
+ attrs = this._defineSvgAttrs();
108
+ this._setElementAttrs(svgElement, attrs);
109
+ return svgElement;
110
+ }
111
+ const isDefaultKit = this.kit === DEFAULT_KIT_NAME;
112
+ // If element was NOT found by name
113
+ // Pass source based on CDN path and name prop
114
+ const source = !isDefaultKit ? `${PATH_ICONS}${this.kit}/${this.name}.svg` : `${PATH_ICONS}${this.name}.svg`;
115
+ try {
116
+ svgElement = await getSvgElementBySrc(source);
117
+ }
118
+ catch (error) {
119
+ console.info(`Error while fetching "${source}":`, error);
120
+ return;
121
+ }
122
+ if (!svgElement) {
123
+ console.info(`
124
+ No SVG Element recieved after fetching "${source}".
125
+ `);
126
+ return;
127
+ }
128
+ // Add set of attributes to SVG
129
+ this._setElementAttrs(svgElement, this._defineSvgAttrs());
130
+ // Save icon content to data object
131
+ addToIconsData(this.name, `${svgElement.outerHTML}`);
132
+ // Update data object
133
+ iconsData = getIconsData();
134
+ return svgElement;
135
+ }
136
+ };
137
+ }
138
+ get cssColor() {
139
+ if (!this.color)
140
+ return null;
141
+ const varRegex = new RegExp(/^var\(/);
142
+ const nameRegex = new RegExp(/^--r-/);
143
+ const rgbRegex = new RegExp(/^rgb?.\(/);
144
+ const hexRegex = new RegExp(/^#(?:[0-9a-fA-F]{3}){1,2}$/);
145
+ const isHex = hexRegex.test(this.color);
146
+ const isRgb = rgbRegex.test(this.color);
147
+ const isVar = varRegex.test(this.color);
148
+ const isName = nameRegex.test(this.color);
149
+ return (isHex || isRgb || isVar) ? this.color : isName ? `var(${this.color})` : null;
150
+ }
151
+ componentWillLoad() {
152
+ // If an <SVG> within <r-icon> slot exists
153
+ // Collect attributes and pass them to an <SVG>
154
+ // According to defined priority (host -> svg -> default)
155
+ this._passAttributesToSvg();
156
+ }
157
+ async componentWillRender() {
158
+ // Define the source on an <SVG> element
159
+ // Priority: src -> name -> from cdn by src based on name
160
+ this.svgElement = await this._defineSvgElement();
161
+ }
162
+ render() {
163
+ const attrs = {};
164
+ // Add style to the wrapper
165
+ attrs['style'] = {
166
+ color: this.cssColor
167
+ };
168
+ // If no <SVG> Element defined at this point
169
+ if (!this.svgElement) {
170
+ // Render slot content
171
+ return (h(Host, null, h("div", Object.assign({ class: "r-icon" }, attrs), h("slot", null))));
172
+ }
173
+ // Else paste <SVG> element into innerHTML attribute
174
+ // And render into <Host>
175
+ const containerAttrs = {
176
+ innerHTML: this.svgElement.outerHTML
177
+ };
178
+ return (h(Host, null, h("div", Object.assign({ class: "r-icon" }, attrs), h("i", Object.assign({ class: "r-icon--container" }, containerAttrs)), this.variant === 'button' &&
179
+ h(Fragment, null, h("i", { class: "r-icon--button-area" }), h("i", { class: "r-icon--target-area" })))));
180
+ }
181
+ static get is() { return "r-icon"; }
182
+ static get encapsulation() { return "shadow"; }
183
+ static get originalStyleUrls() {
184
+ return {
185
+ "$": ["icon.css"]
186
+ };
187
+ }
188
+ static get styleUrls() {
189
+ return {
190
+ "$": ["icon.css"]
191
+ };
192
+ }
193
+ static get assetsDirs() { return ["bundled-icons"]; }
194
+ static get properties() {
195
+ return {
196
+ "name": {
197
+ "type": "string",
198
+ "attribute": "name",
199
+ "mutable": false,
200
+ "complexType": {
201
+ "original": "IconName",
202
+ "resolved": "string",
203
+ "references": {
204
+ "IconName": {
205
+ "location": "import",
206
+ "path": "./exports",
207
+ "id": "src/components/icon/exports.ts::IconName"
208
+ }
209
+ }
210
+ },
211
+ "required": false,
212
+ "optional": true,
213
+ "docs": {
214
+ "tags": [],
215
+ "text": "Name of icon to select from the set"
216
+ },
217
+ "getter": false,
218
+ "setter": false,
219
+ "reflect": true
220
+ },
221
+ "src": {
222
+ "type": "string",
223
+ "attribute": "src",
224
+ "mutable": false,
225
+ "complexType": {
226
+ "original": "string",
227
+ "resolved": "string",
228
+ "references": {}
229
+ },
230
+ "required": false,
231
+ "optional": true,
232
+ "docs": {
233
+ "tags": [],
234
+ "text": "Source of an icon to fetch from"
235
+ },
236
+ "getter": false,
237
+ "setter": false,
238
+ "reflect": false
239
+ },
240
+ "kit": {
241
+ "type": "string",
242
+ "attribute": "kit",
243
+ "mutable": false,
244
+ "complexType": {
245
+ "original": "IconKit",
246
+ "resolved": "\"riverty\" | \"test\"",
247
+ "references": {
248
+ "IconKit": {
249
+ "location": "import",
250
+ "path": "./exports",
251
+ "id": "src/components/icon/exports.ts::IconKit"
252
+ }
253
+ }
254
+ },
255
+ "required": false,
256
+ "optional": false,
257
+ "docs": {
258
+ "tags": [],
259
+ "text": "Select kit"
260
+ },
261
+ "getter": false,
262
+ "setter": false,
263
+ "reflect": false,
264
+ "defaultValue": "DEFAULT_KIT_NAME"
265
+ },
266
+ "size": {
267
+ "type": "string",
268
+ "attribute": "size",
269
+ "mutable": false,
270
+ "complexType": {
271
+ "original": "IconSize",
272
+ "resolved": "\"l\" | \"m\" | \"s\"",
273
+ "references": {
274
+ "IconSize": {
275
+ "location": "import",
276
+ "path": "./exports",
277
+ "id": "src/components/icon/exports.ts::IconSize"
278
+ }
279
+ }
280
+ },
281
+ "required": false,
282
+ "optional": true,
283
+ "docs": {
284
+ "tags": [],
285
+ "text": "Select one of pre-set sizes (width and height automatically selected)"
286
+ },
287
+ "getter": false,
288
+ "setter": false,
289
+ "reflect": true,
290
+ "defaultValue": "\"m\""
291
+ },
292
+ "viewBox": {
293
+ "type": "string",
294
+ "attribute": "view-box",
295
+ "mutable": false,
296
+ "complexType": {
297
+ "original": "string",
298
+ "resolved": "string",
299
+ "references": {}
300
+ },
301
+ "required": false,
302
+ "optional": false,
303
+ "docs": {
304
+ "tags": [],
305
+ "text": "Customize `viewBox` of rendered icon SVG element"
306
+ },
307
+ "getter": false,
308
+ "setter": false,
309
+ "reflect": false,
310
+ "defaultValue": "'0 0 24 24'"
311
+ },
312
+ "color": {
313
+ "type": "string",
314
+ "attribute": "color",
315
+ "mutable": false,
316
+ "complexType": {
317
+ "original": "string",
318
+ "resolved": "string",
319
+ "references": {}
320
+ },
321
+ "required": false,
322
+ "optional": false,
323
+ "docs": {
324
+ "tags": [],
325
+ "text": "Quick way to set display color to one of the\nRiverty color tokens"
326
+ },
327
+ "getter": false,
328
+ "setter": false,
329
+ "reflect": false,
330
+ "defaultValue": "null"
331
+ },
332
+ "variant": {
333
+ "type": "string",
334
+ "attribute": "variant",
335
+ "mutable": false,
336
+ "complexType": {
337
+ "original": "IconVariant",
338
+ "resolved": "\"button\"",
339
+ "references": {
340
+ "IconVariant": {
341
+ "location": "import",
342
+ "path": "./exports",
343
+ "id": "src/components/icon/exports.ts::IconVariant"
344
+ }
345
+ }
346
+ },
347
+ "required": false,
348
+ "optional": true,
349
+ "docs": {
350
+ "tags": [],
351
+ "text": "Defines UI deviations for the icon."
352
+ },
353
+ "getter": false,
354
+ "setter": false,
355
+ "reflect": true
356
+ },
357
+ "iconAriaLabel": {
358
+ "type": "string",
359
+ "attribute": "icon-aria-label",
360
+ "mutable": false,
361
+ "complexType": {
362
+ "original": "string",
363
+ "resolved": "string",
364
+ "references": {}
365
+ },
366
+ "required": false,
367
+ "optional": true,
368
+ "docs": {
369
+ "tags": [],
370
+ "text": "Defines an accessible name for the icon."
371
+ },
372
+ "getter": false,
373
+ "setter": false,
374
+ "reflect": false
375
+ }
376
+ };
377
+ }
378
+ static get elementRef() { return "host"; }
379
+ }