@riverty/web-components 6.2.0 → 6.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (397) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +78 -0
  3. package/custom-elements.json +4 -0
  4. package/package.json +3 -2
  5. package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -5
  6. package/dist/cjs/focusable-Oll_rmtP.js +0 -28
  7. package/dist/cjs/formData-B2DZyLxP.js +0 -44
  8. package/dist/cjs/index-BnETQtSf.js +0 -1834
  9. package/dist/cjs/index.cjs.js +0 -2
  10. package/dist/cjs/loader.cjs.js +0 -13
  11. package/dist/cjs/r-accordion-panel.cjs.entry.js +0 -24
  12. package/dist/cjs/r-accordion-section.cjs.entry.js +0 -125
  13. package/dist/cjs/r-accordion-trigger.cjs.entry.js +0 -93
  14. package/dist/cjs/r-accordion.cjs.entry.js +0 -20
  15. package/dist/cjs/r-alert.cjs.entry.js +0 -146
  16. package/dist/cjs/r-badge.cjs.entry.js +0 -40
  17. package/dist/cjs/r-button.cjs.entry.js +0 -149
  18. package/dist/cjs/r-checkbox-group.cjs.entry.js +0 -232
  19. package/dist/cjs/r-checkbox.cjs.entry.js +0 -269
  20. package/dist/cjs/r-design-system-devtools.cjs.entry.js +0 -31
  21. package/dist/cjs/r-dialog.cjs.entry.js +0 -107
  22. package/dist/cjs/r-hint_2.cjs.entry.js +0 -50
  23. package/dist/cjs/r-icon-button_2.cjs.entry.js +0 -467
  24. package/dist/cjs/r-icon.cjs.entry.js +0 -284
  25. package/dist/cjs/r-illustration.cjs.entry.js +0 -396
  26. package/dist/cjs/r-input-code.cjs.entry.js +0 -432
  27. package/dist/cjs/r-input-date.cjs.entry.js +0 -519
  28. package/dist/cjs/r-input-password.cjs.entry.js +0 -265
  29. package/dist/cjs/r-input-phone-number.cjs.entry.js +0 -2525
  30. package/dist/cjs/r-input.cjs.entry.js +0 -402
  31. package/dist/cjs/r-list-item.cjs.entry.js +0 -109
  32. package/dist/cjs/r-pagination.cjs.entry.js +0 -314
  33. package/dist/cjs/r-panel.cjs.entry.js +0 -184
  34. package/dist/cjs/r-popover-action.cjs.entry.js +0 -80
  35. package/dist/cjs/r-popover-content.cjs.entry.js +0 -62
  36. package/dist/cjs/r-popover-headline.cjs.entry.js +0 -28
  37. package/dist/cjs/r-popover-trigger.cjs.entry.js +0 -70
  38. package/dist/cjs/r-popover.cjs.entry.js +0 -347
  39. package/dist/cjs/r-progress-bar.cjs.entry.js +0 -25
  40. package/dist/cjs/r-radio-button-description.cjs.entry.js +0 -18
  41. package/dist/cjs/r-radio-button-leading.cjs.entry.js +0 -18
  42. package/dist/cjs/r-radio-button-title.cjs.entry.js +0 -18
  43. package/dist/cjs/r-radio-button-trailing.cjs.entry.js +0 -18
  44. package/dist/cjs/r-radio-button.cjs.entry.js +0 -139
  45. package/dist/cjs/r-radio-group.cjs.entry.js +0 -425
  46. package/dist/cjs/r-select-option.cjs.entry.js +0 -130
  47. package/dist/cjs/r-select.cjs.entry.js +0 -1101
  48. package/dist/cjs/r-skip-link.cjs.entry.js +0 -19
  49. package/dist/cjs/r-stepper-item.cjs.entry.js +0 -42
  50. package/dist/cjs/r-stepper.cjs.entry.js +0 -99
  51. package/dist/cjs/r-tab-panel.cjs.entry.js +0 -26
  52. package/dist/cjs/r-tab.cjs.entry.js +0 -62
  53. package/dist/cjs/r-tabs-list.cjs.entry.js +0 -175
  54. package/dist/cjs/r-tabs.cjs.entry.js +0 -277
  55. package/dist/cjs/r-textarea.cjs.entry.js +0 -270
  56. package/dist/cjs/r-toast-group.cjs.entry.js +0 -46
  57. package/dist/cjs/r-toast.cjs.entry.js +0 -306
  58. package/dist/cjs/style-observer-D9zSP9wP.js +0 -1118
  59. package/dist/cjs/theming-NqxjhVJS.js +0 -109
  60. package/dist/cjs/web-components.cjs.js +0 -25
  61. package/dist/collection/collection-manifest.json +0 -60
  62. package/dist/collection/components/accordion/accordion.css +0 -24
  63. package/dist/collection/components/accordion/accordion.js +0 -90
  64. package/dist/collection/components/accordion/exports.js +0 -1
  65. package/dist/collection/components/accordion-panel/accordion-panel.css +0 -50
  66. package/dist/collection/components/accordion-panel/accordion-panel.js +0 -86
  67. package/dist/collection/components/accordion-section/accordion-section.css +0 -27
  68. package/dist/collection/components/accordion-section/accordion-section.js +0 -235
  69. package/dist/collection/components/accordion-trigger/accordion-trigger.css +0 -93
  70. package/dist/collection/components/accordion-trigger/accordion-trigger.js +0 -220
  71. package/dist/collection/components/alert/alert.css +0 -119
  72. package/dist/collection/components/alert/alert.js +0 -526
  73. package/dist/collection/components/alert/exports.js +0 -2
  74. package/dist/collection/components/badge/badge.css +0 -52
  75. package/dist/collection/components/badge/badge.js +0 -120
  76. package/dist/collection/components/badge/exports.js +0 -1
  77. package/dist/collection/components/button/button.css +0 -180
  78. package/dist/collection/components/button/button.js +0 -510
  79. package/dist/collection/components/button/exports.js +0 -5
  80. package/dist/collection/components/checkbox/checkbox.css +0 -116
  81. package/dist/collection/components/checkbox/checkbox.js +0 -777
  82. package/dist/collection/components/checkbox-group/checkbox-group.css +0 -48
  83. package/dist/collection/components/checkbox-group/checkbox-group.js +0 -718
  84. package/dist/collection/components/design-system-devtools/design-system-devtools.js +0 -59
  85. package/dist/collection/components/dialog/dialog.css +0 -125
  86. package/dist/collection/components/dialog/dialog.js +0 -345
  87. package/dist/collection/components/dialog/exports.js +0 -9
  88. package/dist/collection/components/hint/exports.js +0 -1
  89. package/dist/collection/components/hint/hint.css +0 -63
  90. package/dist/collection/components/hint/hint.js +0 -114
  91. package/dist/collection/components/icon/all-kit.js +0 -2
  92. package/dist/collection/components/icon/data.js +0 -90
  93. package/dist/collection/components/icon/exports.js +0 -7
  94. package/dist/collection/components/icon/icon.css +0 -105
  95. package/dist/collection/components/icon/icon.js +0 -379
  96. package/dist/collection/components/icon/riverty-kit.js +0 -2
  97. package/dist/collection/components/icon-button/icon-button.css +0 -105
  98. package/dist/collection/components/icon-button/icon-button.js +0 -343
  99. package/dist/collection/components/illustration/data.js +0 -112
  100. package/dist/collection/components/illustration/exports.js +0 -3
  101. package/dist/collection/components/illustration/illustration.js +0 -540
  102. package/dist/collection/components/illustration/illustration.scss +0 -56
  103. package/dist/collection/components/illustration/illustrations-ui-kit.js +0 -2
  104. package/dist/collection/components/input/exports.js +0 -16
  105. package/dist/collection/components/input/input.css +0 -180
  106. package/dist/collection/components/input/input.js +0 -1572
  107. package/dist/collection/components/input-code/exports.js +0 -2
  108. package/dist/collection/components/input-code/input-code.css +0 -127
  109. package/dist/collection/components/input-code/input-code.js +0 -1139
  110. package/dist/collection/components/input-date/exports.js +0 -1
  111. package/dist/collection/components/input-date/input-date.css +0 -148
  112. package/dist/collection/components/input-date/input-date.js +0 -1228
  113. package/dist/collection/components/input-password/exports.js +0 -1
  114. package/dist/collection/components/input-password/input-password.css +0 -25
  115. package/dist/collection/components/input-password/input-password.js +0 -1051
  116. package/dist/collection/components/input-phone-number/input-phone-number.css +0 -61
  117. package/dist/collection/components/input-phone-number/input-phone-number.js +0 -874
  118. package/dist/collection/components/label/label.css +0 -38
  119. package/dist/collection/components/label/label.js +0 -47
  120. package/dist/collection/components/list-item/list-item/exports.js +0 -2
  121. package/dist/collection/components/list-item/list-item/list-item.css +0 -199
  122. package/dist/collection/components/list-item/list-item/list-item.js +0 -467
  123. package/dist/collection/components/pagination/exports.js +0 -3
  124. package/dist/collection/components/pagination/pagination.css +0 -118
  125. package/dist/collection/components/pagination/pagination.js +0 -799
  126. package/dist/collection/components/panel/exports.js +0 -1
  127. package/dist/collection/components/panel/panel.css +0 -192
  128. package/dist/collection/components/panel/panel.js +0 -473
  129. package/dist/collection/components/popover/exports.js +0 -3
  130. package/dist/collection/components/popover/popover.css +0 -251
  131. package/dist/collection/components/popover/popover.js +0 -741
  132. package/dist/collection/components/popover-action/popover-action.css +0 -21
  133. package/dist/collection/components/popover-action/popover-action.js +0 -150
  134. package/dist/collection/components/popover-content/popover-content.css +0 -9
  135. package/dist/collection/components/popover-content/popover-content.js +0 -130
  136. package/dist/collection/components/popover-headline/popover-headline.css +0 -7
  137. package/dist/collection/components/popover-headline/popover-headline.js +0 -28
  138. package/dist/collection/components/popover-trigger/exports.js +0 -1
  139. package/dist/collection/components/popover-trigger/popover-trigger.css +0 -4
  140. package/dist/collection/components/popover-trigger/popover-trigger.js +0 -163
  141. package/dist/collection/components/progress-bar/progress-bar.css +0 -41
  142. package/dist/collection/components/progress-bar/progress-bar.js +0 -71
  143. package/dist/collection/components/radio-button/radio-button.css +0 -126
  144. package/dist/collection/components/radio-button/radio-button.js +0 -559
  145. package/dist/collection/components/radio-button-description/radio-button-description.css +0 -5
  146. package/dist/collection/components/radio-button-description/radio-button-description.js +0 -22
  147. package/dist/collection/components/radio-button-leading/radio-button-leading.css +0 -3
  148. package/dist/collection/components/radio-button-leading/radio-button-leading.js +0 -22
  149. package/dist/collection/components/radio-button-title/radio-button-title.css +0 -8
  150. package/dist/collection/components/radio-button-title/radio-button-title.js +0 -22
  151. package/dist/collection/components/radio-button-trailing/radio-button-trailing.css +0 -6
  152. package/dist/collection/components/radio-button-trailing/radio-button-trailing.js +0 -22
  153. package/dist/collection/components/radio-group/exports.js +0 -1
  154. package/dist/collection/components/radio-group/radio-group.css +0 -65
  155. package/dist/collection/components/radio-group/radio-group.js +0 -1020
  156. package/dist/collection/components/select/exports.js +0 -1
  157. package/dist/collection/components/select/select.css +0 -247
  158. package/dist/collection/components/select/select.js +0 -2011
  159. package/dist/collection/components/select-option/select-option.css +0 -93
  160. package/dist/collection/components/select-option/select-option.js +0 -459
  161. package/dist/collection/components/skip-link/exports.js +0 -1
  162. package/dist/collection/components/skip-link/skip-link.css +0 -37
  163. package/dist/collection/components/skip-link/skip-link.js +0 -52
  164. package/dist/collection/components/stepper/stepper.css +0 -25
  165. package/dist/collection/components/stepper/stepper.js +0 -216
  166. package/dist/collection/components/stepper-item/stepper-item.css +0 -62
  167. package/dist/collection/components/stepper-item/stepper-item.js +0 -171
  168. package/dist/collection/components/tab/tab.css +0 -81
  169. package/dist/collection/components/tab/tab.js +0 -169
  170. package/dist/collection/components/tab-panel/tab-panel.css +0 -19
  171. package/dist/collection/components/tab-panel/tab-panel.js +0 -72
  172. package/dist/collection/components/tabs/tabs.css +0 -4
  173. package/dist/collection/components/tabs/tabs.js +0 -345
  174. package/dist/collection/components/tabs-list/exports.js +0 -2
  175. package/dist/collection/components/tabs-list/tabs-list.css +0 -58
  176. package/dist/collection/components/tabs-list/tabs-list.js +0 -294
  177. package/dist/collection/components/textarea/exports.js +0 -8
  178. package/dist/collection/components/textarea/textarea.css +0 -148
  179. package/dist/collection/components/textarea/textarea.js +0 -1055
  180. package/dist/collection/components/toast/exports.js +0 -3
  181. package/dist/collection/components/toast/toast.css +0 -179
  182. package/dist/collection/components/toast/toast.js +0 -812
  183. package/dist/collection/components/toast-group/exports.js +0 -1
  184. package/dist/collection/components/toast-group/toast-group.css +0 -37
  185. package/dist/collection/components/toast-group/toast-group.js +0 -49
  186. package/dist/collection/components/tooltip/exports.js +0 -3
  187. package/dist/collection/components/tooltip/tooltip.css +0 -106
  188. package/dist/collection/components/tooltip/tooltip.js +0 -500
  189. package/dist/collection/index.js +0 -1
  190. package/dist/collection/utils/focusable.js +0 -24
  191. package/dist/collection/utils/formData.js +0 -40
  192. package/dist/collection/utils/theming.js +0 -103
  193. package/dist/esm/app-globals-DQuL1Twl.js +0 -3
  194. package/dist/esm/focusable-ky1yonnS.js +0 -26
  195. package/dist/esm/formData-DvLT8-y3.js +0 -42
  196. package/dist/esm/index-CTxpqopm.js +0 -1806
  197. package/dist/esm/index.js +0 -1
  198. package/dist/esm/loader.js +0 -11
  199. package/dist/esm/r-accordion-panel.entry.js +0 -22
  200. package/dist/esm/r-accordion-section.entry.js +0 -123
  201. package/dist/esm/r-accordion-trigger.entry.js +0 -91
  202. package/dist/esm/r-accordion.entry.js +0 -18
  203. package/dist/esm/r-alert.entry.js +0 -144
  204. package/dist/esm/r-badge.entry.js +0 -38
  205. package/dist/esm/r-button.entry.js +0 -147
  206. package/dist/esm/r-checkbox-group.entry.js +0 -230
  207. package/dist/esm/r-checkbox.entry.js +0 -267
  208. package/dist/esm/r-design-system-devtools.entry.js +0 -29
  209. package/dist/esm/r-dialog.entry.js +0 -105
  210. package/dist/esm/r-hint_2.entry.js +0 -47
  211. package/dist/esm/r-icon-button_2.entry.js +0 -464
  212. package/dist/esm/r-icon.entry.js +0 -282
  213. package/dist/esm/r-illustration.entry.js +0 -394
  214. package/dist/esm/r-input-code.entry.js +0 -430
  215. package/dist/esm/r-input-date.entry.js +0 -517
  216. package/dist/esm/r-input-password.entry.js +0 -263
  217. package/dist/esm/r-input-phone-number.entry.js +0 -2523
  218. package/dist/esm/r-input.entry.js +0 -400
  219. package/dist/esm/r-list-item.entry.js +0 -107
  220. package/dist/esm/r-pagination.entry.js +0 -312
  221. package/dist/esm/r-panel.entry.js +0 -182
  222. package/dist/esm/r-popover-action.entry.js +0 -78
  223. package/dist/esm/r-popover-content.entry.js +0 -60
  224. package/dist/esm/r-popover-headline.entry.js +0 -26
  225. package/dist/esm/r-popover-trigger.entry.js +0 -68
  226. package/dist/esm/r-popover.entry.js +0 -345
  227. package/dist/esm/r-progress-bar.entry.js +0 -23
  228. package/dist/esm/r-radio-button-description.entry.js +0 -16
  229. package/dist/esm/r-radio-button-leading.entry.js +0 -16
  230. package/dist/esm/r-radio-button-title.entry.js +0 -16
  231. package/dist/esm/r-radio-button-trailing.entry.js +0 -16
  232. package/dist/esm/r-radio-button.entry.js +0 -137
  233. package/dist/esm/r-radio-group.entry.js +0 -423
  234. package/dist/esm/r-select-option.entry.js +0 -128
  235. package/dist/esm/r-select.entry.js +0 -1099
  236. package/dist/esm/r-skip-link.entry.js +0 -17
  237. package/dist/esm/r-stepper-item.entry.js +0 -40
  238. package/dist/esm/r-stepper.entry.js +0 -97
  239. package/dist/esm/r-tab-panel.entry.js +0 -24
  240. package/dist/esm/r-tab.entry.js +0 -60
  241. package/dist/esm/r-tabs-list.entry.js +0 -173
  242. package/dist/esm/r-tabs.entry.js +0 -275
  243. package/dist/esm/r-textarea.entry.js +0 -268
  244. package/dist/esm/r-toast-group.entry.js +0 -44
  245. package/dist/esm/r-toast.entry.js +0 -304
  246. package/dist/esm/style-observer-4Uv3PpKT.js +0 -1116
  247. package/dist/esm/theming-DD2IrjpG.js +0 -106
  248. package/dist/esm/web-components.js +0 -21
  249. package/dist/index.cjs.js +0 -1
  250. package/dist/index.js +0 -1
  251. package/dist/types/components/accordion/accordion.d.ts +0 -27
  252. package/dist/types/components/accordion/exports.d.ts +0 -2
  253. package/dist/types/components/accordion-panel/accordion-panel.d.ts +0 -10
  254. package/dist/types/components/accordion-section/accordion-section.d.ts +0 -36
  255. package/dist/types/components/accordion-trigger/accordion-trigger.d.ts +0 -33
  256. package/dist/types/components/alert/alert.d.ts +0 -67
  257. package/dist/types/components/alert/exports.d.ts +0 -4
  258. package/dist/types/components/badge/badge.d.ts +0 -23
  259. package/dist/types/components/badge/exports.d.ts +0 -2
  260. package/dist/types/components/button/button.d.ts +0 -89
  261. package/dist/types/components/button/exports.d.ts +0 -10
  262. package/dist/types/components/checkbox/checkbox.d.ts +0 -136
  263. package/dist/types/components/checkbox-group/checkbox-group.d.ts +0 -122
  264. package/dist/types/components/design-system-devtools/design-system-devtools.d.ts +0 -15
  265. package/dist/types/components/dialog/dialog.d.ts +0 -69
  266. package/dist/types/components/dialog/exports.d.ts +0 -10
  267. package/dist/types/components/hint/exports.d.ts +0 -2
  268. package/dist/types/components/hint/hint.d.ts +0 -20
  269. package/dist/types/components/icon/all-kit.d.ts +0 -2890
  270. package/dist/types/components/icon/data.d.ts +0 -145
  271. package/dist/types/components/icon/exports.d.ts +0 -152
  272. package/dist/types/components/icon/icon.d.ts +0 -37
  273. package/dist/types/components/icon/riverty-kit.d.ts +0 -139
  274. package/dist/types/components/icon-button/icon-button.d.ts +0 -69
  275. package/dist/types/components/illustration/data.d.ts +0 -52
  276. package/dist/types/components/illustration/exports.d.ts +0 -23
  277. package/dist/types/components/illustration/illustration.d.ts +0 -51
  278. package/dist/types/components/illustration/illustrations-ui-kit.d.ts +0 -21
  279. package/dist/types/components/input/exports.d.ts +0 -10
  280. package/dist/types/components/input/input.d.ts +0 -300
  281. package/dist/types/components/input-code/exports.d.ts +0 -4
  282. package/dist/types/components/input-code/input-code.d.ts +0 -175
  283. package/dist/types/components/input-date/exports.d.ts +0 -5
  284. package/dist/types/components/input-date/input-date.d.ts +0 -172
  285. package/dist/types/components/input-password/exports.d.ts +0 -1
  286. package/dist/types/components/input-password/input-password.d.ts +0 -184
  287. package/dist/types/components/input-phone-number/input-phone-number.d.ts +0 -128
  288. package/dist/types/components/label/label.d.ts +0 -9
  289. package/dist/types/components/list-item/list-item/exports.d.ts +0 -4
  290. package/dist/types/components/list-item/list-item/list-item.d.ts +0 -61
  291. package/dist/types/components/pagination/exports.d.ts +0 -6
  292. package/dist/types/components/pagination/pagination.d.ts +0 -140
  293. package/dist/types/components/panel/exports.d.ts +0 -2
  294. package/dist/types/components/panel/panel.d.ts +0 -56
  295. package/dist/types/components/popover/exports.d.ts +0 -6
  296. package/dist/types/components/popover/popover.d.ts +0 -131
  297. package/dist/types/components/popover-action/popover-action.d.ts +0 -24
  298. package/dist/types/components/popover-content/popover-content.d.ts +0 -22
  299. package/dist/types/components/popover-headline/popover-headline.d.ts +0 -6
  300. package/dist/types/components/popover-trigger/exports.d.ts +0 -2
  301. package/dist/types/components/popover-trigger/popover-trigger.d.ts +0 -31
  302. package/dist/types/components/progress-bar/progress-bar.d.ts +0 -10
  303. package/dist/types/components/radio-button/radio-button.d.ts +0 -92
  304. package/dist/types/components/radio-button-description/radio-button-description.d.ts +0 -8
  305. package/dist/types/components/radio-button-leading/radio-button-leading.d.ts +0 -8
  306. package/dist/types/components/radio-button-title/radio-button-title.d.ts +0 -8
  307. package/dist/types/components/radio-button-trailing/radio-button-trailing.d.ts +0 -8
  308. package/dist/types/components/radio-group/exports.d.ts +0 -2
  309. package/dist/types/components/radio-group/radio-group.d.ts +0 -178
  310. package/dist/types/components/select/exports.d.ts +0 -2
  311. package/dist/types/components/select/select.d.ts +0 -317
  312. package/dist/types/components/select-option/select-option.d.ts +0 -113
  313. package/dist/types/components/skip-link/exports.d.ts +0 -2
  314. package/dist/types/components/skip-link/skip-link.d.ts +0 -6
  315. package/dist/types/components/stepper/stepper.d.ts +0 -22
  316. package/dist/types/components/stepper-item/stepper-item.d.ts +0 -23
  317. package/dist/types/components/tab/tab.d.ts +0 -23
  318. package/dist/types/components/tab-panel/tab-panel.d.ts +0 -7
  319. package/dist/types/components/tabs/tabs.d.ts +0 -49
  320. package/dist/types/components/tabs-list/exports.d.ts +0 -4
  321. package/dist/types/components/tabs-list/tabs-list.d.ts +0 -41
  322. package/dist/types/components/textarea/exports.d.ts +0 -2
  323. package/dist/types/components/textarea/textarea.d.ts +0 -158
  324. package/dist/types/components/toast/exports.d.ts +0 -6
  325. package/dist/types/components/toast/toast.d.ts +0 -146
  326. package/dist/types/components/toast-group/exports.d.ts +0 -2
  327. package/dist/types/components/toast-group/toast-group.d.ts +0 -9
  328. package/dist/types/components/tooltip/exports.d.ts +0 -6
  329. package/dist/types/components/tooltip/tooltip.d.ts +0 -131
  330. package/dist/types/components.d.ts +0 -6286
  331. package/dist/types/index.d.ts +0 -1
  332. package/dist/types/stencil-public-runtime.d.ts +0 -1732
  333. package/dist/types/types/jsx-shim.d.ts +0 -13
  334. package/dist/types/types/style-observer.d.ts +0 -20
  335. package/dist/types/utils/focusable.d.ts +0 -1
  336. package/dist/types/utils/formData.d.ts +0 -1
  337. package/dist/types/utils/theming.d.ts +0 -15
  338. package/dist/web-components/index.esm.js +0 -0
  339. package/dist/web-components/p-02b22f8e.entry.js +0 -1
  340. package/dist/web-components/p-075a8dc8.entry.js +0 -1
  341. package/dist/web-components/p-0a34d33b.entry.js +0 -1
  342. package/dist/web-components/p-10cc9983.entry.js +0 -1
  343. package/dist/web-components/p-253068b9.entry.js +0 -1
  344. package/dist/web-components/p-3b8c8951.entry.js +0 -1
  345. package/dist/web-components/p-3beacdab.entry.js +0 -1
  346. package/dist/web-components/p-4214867d.entry.js +0 -1
  347. package/dist/web-components/p-42c857e9.entry.js +0 -1
  348. package/dist/web-components/p-44f87e16.entry.js +0 -1
  349. package/dist/web-components/p-477614c5.entry.js +0 -1
  350. package/dist/web-components/p-495ba3d2.entry.js +0 -1
  351. package/dist/web-components/p-4Uv3PpKT.js +0 -1
  352. package/dist/web-components/p-4de76291.entry.js +0 -1
  353. package/dist/web-components/p-55600d47.entry.js +0 -1
  354. package/dist/web-components/p-562051aa.entry.js +0 -1
  355. package/dist/web-components/p-5b850e0f.entry.js +0 -1
  356. package/dist/web-components/p-6013dfc8.entry.js +0 -1
  357. package/dist/web-components/p-62e7ae04.entry.js +0 -1
  358. package/dist/web-components/p-71519d37.entry.js +0 -1
  359. package/dist/web-components/p-88f7b47f.entry.js +0 -1
  360. package/dist/web-components/p-8975a6a3.entry.js +0 -1
  361. package/dist/web-components/p-8e125826.entry.js +0 -1
  362. package/dist/web-components/p-91cc0bde.entry.js +0 -1
  363. package/dist/web-components/p-93435fcd.entry.js +0 -1
  364. package/dist/web-components/p-947969d7.entry.js +0 -1
  365. package/dist/web-components/p-95396b5c.entry.js +0 -1
  366. package/dist/web-components/p-9de3a1a5.entry.js +0 -1
  367. package/dist/web-components/p-9f583ed1.entry.js +0 -1
  368. package/dist/web-components/p-B9rsR6cQ.js +0 -1
  369. package/dist/web-components/p-CTxpqopm.js +0 -2
  370. package/dist/web-components/p-DQuL1Twl.js +0 -1
  371. package/dist/web-components/p-DvLT8-y3.js +0 -1
  372. package/dist/web-components/p-a1086abe.entry.js +0 -1
  373. package/dist/web-components/p-bbba6d79.entry.js +0 -1
  374. package/dist/web-components/p-bde44ec4.entry.js +0 -1
  375. package/dist/web-components/p-bfc7e6c0.entry.js +0 -1
  376. package/dist/web-components/p-c1030394.entry.js +0 -1
  377. package/dist/web-components/p-c1f59ed1.entry.js +0 -1
  378. package/dist/web-components/p-c80a5541.entry.js +0 -1
  379. package/dist/web-components/p-c96ee61a.entry.js +0 -1
  380. package/dist/web-components/p-caf8f067.entry.js +0 -1
  381. package/dist/web-components/p-cc363c3d.entry.js +0 -1
  382. package/dist/web-components/p-cf4ff357.entry.js +0 -1
  383. package/dist/web-components/p-d0310ed4.entry.js +0 -1
  384. package/dist/web-components/p-d1412932.entry.js +0 -1
  385. package/dist/web-components/p-d2447e30.entry.js +0 -1
  386. package/dist/web-components/p-dc9cca06.entry.js +0 -1
  387. package/dist/web-components/p-e5b943a2.entry.js +0 -1
  388. package/dist/web-components/p-e67b13df.entry.js +0 -1
  389. package/dist/web-components/p-efec231a.entry.js +0 -1
  390. package/dist/web-components/p-f867e4c3.entry.js +0 -1
  391. package/dist/web-components/p-ky1yonnS.js +0 -1
  392. package/dist/web-components/web-components.esm.js +0 -1
  393. package/loader/cdn.js +0 -1
  394. package/loader/index.cjs.js +0 -1
  395. package/loader/index.d.ts +0 -24
  396. package/loader/index.es2017.js +0 -1
  397. package/loader/index.js +0 -2
@@ -1,275 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-CTxpqopm.js';
2
-
3
- const tabsCss = ":host{display:block;margin-top:var(--r-spacing-150, 1.5rem)}";
4
-
5
- const RTabs = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.rChange = createEvent(this, "rChange");
9
- this.activeTab = null;
10
- }
11
- /** `<r-tab>` group of elements */
12
- get tabElements() {
13
- var _a;
14
- return (_a = this.host.querySelector('r-tabs-list')) === null || _a === void 0 ? void 0 : _a.querySelectorAll('r-tab');
15
- }
16
- /** `<r-tab-panel>` group of elements */
17
- get panelElements() {
18
- return this.host.querySelectorAll(':scope > r-tab-panel');
19
- }
20
- /** Active tab element */
21
- get activeTabElement() {
22
- return this.activeTab || this.host.querySelector('r-tab[active]');
23
- }
24
- /** Check if active tab element exists */
25
- get hasActiveTabElement() {
26
- return this.activeTabElement !== null;
27
- }
28
- /** Check if active tab element is disabled */
29
- get isActiveTabElementDisabled() {
30
- var _a;
31
- return ((_a = this.activeTabElement) === null || _a === void 0 ? void 0 : _a.disabled) || false;
32
- }
33
- get isStructureCorrect() {
34
- var _a, _b;
35
- return Boolean(((_a = this.tabElements) === null || _a === void 0 ? void 0 : _a.length) && ((_b = this.panelElements) === null || _b === void 0 ? void 0 : _b.length));
36
- }
37
- get isMissingPanel() {
38
- var _a, _b;
39
- return ((_a = this.panelElements) === null || _a === void 0 ? void 0 : _a.length) < ((_b = this.tabElements) === null || _b === void 0 ? void 0 : _b.length);
40
- }
41
- get isDisabledPanel() {
42
- return Boolean(Array.from(this.panelElements).find(panel => panel.hasAttribute('disabled')));
43
- }
44
- _disableTabIfPanelMissing() {
45
- var _a;
46
- if (!this.isMissingPanel)
47
- return;
48
- (_a = this.tabElements) === null || _a === void 0 ? void 0 : _a.forEach((tab, index) => {
49
- if (!this.panelElements[index]) {
50
- tab.disabled = true;
51
- tab.setAttribute('disabled', 'true');
52
- return;
53
- }
54
- });
55
- }
56
- get tabGroupsAmount() {
57
- return document.querySelectorAll('r-tabs').length;
58
- }
59
- markGroupsWithIndex() {
60
- document.querySelectorAll('r-tabs').forEach((el, index) => {
61
- el.setAttribute('data-group', `${index}`);
62
- });
63
- }
64
- _connectTabsAndPanelsById() {
65
- this.markGroupsWithIndex();
66
- // Connect tabs and panels with id's
67
- this.tabElements.forEach((tab, index) => {
68
- var _a, _b;
69
- const label = this.transliterateToKebabCase(tab.textContent);
70
- // Unique id per each tab-panel pair
71
- const tabId = `r-tab-${label}`;
72
- const panelId = `r-tab-panel-${label}`;
73
- // Assign `id` and `panel-id` to each tab
74
- tab.setAttribute('id', tabId);
75
- tab.setAttribute('panel-id', panelId);
76
- // Assign `tab-id` and `id` to each panel
77
- (_a = this.panelElements[index]) === null || _a === void 0 ? void 0 : _a.setAttribute('tab-id', tabId);
78
- (_b = this.panelElements[index]) === null || _b === void 0 ? void 0 : _b.setAttribute('id', panelId);
79
- return this;
80
- });
81
- }
82
- _disableTabIfPanelDisabled() {
83
- if (!this.isDisabledPanel)
84
- return;
85
- this.panelElements.forEach(panel => {
86
- if (panel.hasAttribute('disabled')) {
87
- const tabEl = Array.from(this.tabElements).find(tab => tab.getAttribute('id') === panel.getAttribute('tab-id'));
88
- tabEl.setAttribute('disabled', 'true');
89
- }
90
- });
91
- }
92
- transliterateToKebabCase(label) {
93
- // Normalize and replace accents/diacritics
94
- let latinLabel = label.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
95
- // Replace common non-Latin characters with approximate Latin equivalents
96
- latinLabel = latinLabel
97
- .replace(/ß/g, "ss") // German Eszett
98
- .replace(/æ/g, "ae") // Scandinavian
99
- .replace(/ø/g, "o") // Scandinavian
100
- .replace(/đ/g, "d") // Croatian/Serbian
101
- .replace(/ł/g, "l"); // Polish
102
- latinLabel = latinLabel.toLowerCase();
103
- // Replace spaces and underscores with dashes
104
- latinLabel = latinLabel.replace(/[ _]+/g, "-");
105
- // Remove non-alphanumeric and non-dash characters
106
- latinLabel = latinLabel.replace(/[^a-z0-9-]/g, "");
107
- // Remove consecutive dashes and trim
108
- latinLabel = latinLabel.replace(/-+/g, "-").replace(/^-+|-+$/g, "");
109
- return latinLabel;
110
- }
111
- get tabIdFromUrl() {
112
- const url = new URL(window.location.href);
113
- return url.searchParams.get('tab') || null;
114
- }
115
- get tabsGroupFromUrl() {
116
- const url = new URL(window.location.href);
117
- return url.searchParams.get('tabs-group') || '0';
118
- }
119
- get groupFromData() {
120
- return this.host.getAttribute('data-group');
121
- }
122
- _getTabElFromUrl() {
123
- if (!this.navigation)
124
- return;
125
- const isCurrentGroup = this.groupFromData === this.tabsGroupFromUrl;
126
- if (!isCurrentGroup)
127
- return;
128
- // Find the tab that matches the `tabId`
129
- const tabEl = Array.from(this.tabElements).find(tab => tab.id === this.tabIdFromUrl);
130
- if (!tabEl)
131
- return null;
132
- return tabEl;
133
- }
134
- _defineInitiallyActiveTab() {
135
- if (this.tabIdFromUrl)
136
- return this._getTabElFromUrl();
137
- if (this.hasActiveTabElement && !this.isActiveTabElementDisabled)
138
- return this.activeTabElement;
139
- return this.host.querySelector('r-tab:not([disabled])');
140
- }
141
- _selectInitialTabAndPanel() {
142
- const tabEl = this._defineInitiallyActiveTab();
143
- tabEl && this._selectTab(tabEl);
144
- }
145
- _selectTab(tabEl) {
146
- // Pass active tab to state
147
- this.activeTab = tabEl;
148
- // Mark active tab element
149
- this.tabElements.forEach(element => {
150
- element.active = element.id === tabEl.id;
151
- element.active ? element.setAttribute('active', '') : element.removeAttribute('active');
152
- });
153
- // Mark active panel element
154
- this.panelElements.forEach(element => {
155
- element.active = element.id === tabEl.panelId;
156
- element.active ? element.setAttribute('active', '') : element.removeAttribute('active');
157
- });
158
- // If URL contains tabId --> scroll active tab into view
159
- if (this.tabIdFromUrl)
160
- this.host.scrollIntoView({ behavior: 'smooth' });
161
- }
162
- handlePopState(event) {
163
- var _a, _b;
164
- if (!this.navigation)
165
- return;
166
- const tabId = (_a = event.state) === null || _a === void 0 ? void 0 : _a.tabId;
167
- const tabsGroup = (_b = event.state) === null || _b === void 0 ? void 0 : _b.tabsGroup;
168
- const isInGroup = tabsGroup === this.host.getAttribute('data-group');
169
- if (!tabId)
170
- window.location.reload();
171
- if (!isInGroup)
172
- return;
173
- const tab = Array.from(this.tabElements).find(tab => tab.id === tabId);
174
- if (!tab)
175
- return;
176
- this._selectTab(tab);
177
- }
178
- handleHistory(tab) {
179
- const tabId = tab.getAttribute('id');
180
- const tabsGroup = tab.closest('r-tabs').getAttribute('data-group');
181
- const url = new URL(window.location.href);
182
- url.searchParams.set('tab', tabId);
183
- if (this.tabGroupsAmount > 1)
184
- url.searchParams.set('tabs-group', tabsGroup);
185
- history.pushState({ tabId, tabsGroup }, '', url.toString());
186
- }
187
- _changeFocusTab(tab, keycode) {
188
- const tabs = Array.from(this.tabElements).filter(element => !element.disabled);
189
- const index = tabs.indexOf(tab);
190
- let nextTab;
191
- switch (keycode) {
192
- case 'ArrowLeft':
193
- nextTab = index === 0 ? tabs[tabs.length - 1] : tabs[index - 1];
194
- break;
195
- case 'ArrowRight':
196
- nextTab = index === tabs.length - 1 ? tabs[0] : tabs[index + 1];
197
- break;
198
- case 'Home':
199
- nextTab = tabs[0];
200
- break;
201
- case 'End':
202
- nextTab = tabs[tabs.length - 1];
203
- break;
204
- }
205
- if (nextTab) {
206
- nextTab.focus();
207
- this.scrollTabIntoView(nextTab);
208
- }
209
- }
210
- scrollTabIntoView(tab) {
211
- var _a;
212
- const tabsList = this.host.querySelector('r-tabs-list');
213
- if (!tabsList)
214
- return;
215
- const container = (_a = tabsList.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.r-tabs-list--tabs-container');
216
- if (!container)
217
- return;
218
- const containerRect = container.getBoundingClientRect();
219
- const tabRect = tab.getBoundingClientRect();
220
- // Check if tab is fully visible
221
- const isFullyVisible = tabRect.left >= containerRect.left - 1 &&
222
- tabRect.right <= containerRect.right + 1;
223
- if (isFullyVisible)
224
- return;
225
- // Calculate scroll offset to center the tab
226
- const centerOffset = (tabRect.left - containerRect.left) -
227
- (containerRect.width / 2) +
228
- (tabRect.width / 2);
229
- container.scrollBy({
230
- left: centerOffset,
231
- behavior: 'smooth'
232
- });
233
- }
234
- /** Listen for "click" event on `<r-tab>` */
235
- tabChangeAction(event) {
236
- event.stopPropagation();
237
- const tab = event.target;
238
- this._selectTab(tab);
239
- if (this.navigation)
240
- this.handleHistory(tab);
241
- this.rChange.emit({ element: tab });
242
- }
243
- componentWillLoad() {
244
- // If no tabs or no panels, skip the rest of initiation
245
- if (!this.isStructureCorrect)
246
- return;
247
- // If panel is missing, tab is disabled
248
- this._disableTabIfPanelMissing();
249
- // Establish connection between tabs and panels through id
250
- this._connectTabsAndPanelsById();
251
- // If panel is disabled, tab is disabled
252
- this._disableTabIfPanelDisabled();
253
- // Active initial tab and panel
254
- this._selectInitialTabAndPanel();
255
- }
256
- connectedCallback() {
257
- // Listen for popstate events (when the user navigates back/forward)
258
- window.addEventListener('popstate', this.handlePopState.bind(this));
259
- }
260
- disconnectedCallback() {
261
- window.removeEventListener('popstate', this.handlePopState.bind(this));
262
- }
263
- /** Listen for "moveTabFocus" event on `<r-tab>` */
264
- moveTabFocusAction(e) {
265
- e.stopPropagation();
266
- this._changeFocusTab(e.target, e.detail.keycode);
267
- }
268
- render() {
269
- return (h(Host, { key: '0737bf78e596f8fb9d4a2ec10f1503d1072f2683', class: "r-tabs" }, h("slot", { key: '5bc87b17930c9ea159ef29335c6b11f0f4c7d43e' })));
270
- }
271
- get host() { return getElement(this); }
272
- };
273
- RTabs.style = tabsCss;
274
-
275
- export { RTabs as r_tabs };
@@ -1,268 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-CTxpqopm.js';
2
- import { a as appendControlToFormData } from './formData-DvLT8-y3.js';
3
-
4
- const textareaCss = ":host{opacity:1;display:block;outline:none;--r-label--margin-bottom:0}:host(:focus-visible){outline:none}:host([resize=none]){--r-textarea--input--resize:none}:host([resize=both]){--r-textarea--input--resize:both}:host([resize=horizontal]){--r-textarea--input--resize:horizontal}:host([resize=vertical]){--r-textarea--input--resize:vertical}:host([resize=initial]){--r-textarea--input--resize:initial}:host([resize=inherit]){--r-textarea--input--resize:inherit}:host([invalid]:not([invalid=false])){--r-textarea--container--background-color:var(--r-status-error-soft, #fef6f6);--r-textarea--container--border-color:var(--r-status-error-regular, #b00c15)}.r-textarea--label-container{display:var(--r-textarea--label-container--display, flex);gap:var(--r-textarea--label-container--gap, var(--r-spacing-100, 1rem));align-items:var(--r-textarea--label-container--align-items, center);justify-content:var(--r-textarea--label-container--align-items, space-between)}.r-textarea--label-container ::slotted([slot=popover]){display:var(--r-textarea--popover--display, inline-flex);height:var(--r-textarea--popover--height, var(--r-spacing-150, 1.5));align-items:var(--r-textarea--popover--align-items, center);justify-content:var(--r-textarea--popover--justify-content, center);margin-right:var(--r-textarea--popover--margin-right, -0.25rem);--r-popover--trigger--min-width:var(--r-textarea--popover-trigger--min-width, var(--r-spacing-150, 1.5))}.r-textarea--input::placeholder{color:var(--r-textarea--input--placeholder--color, var(--r-text-soft, #686868))}.r-textarea--input{vertical-align:top;width:var(--r-textarea--input--width, 100%);max-width:var(--r-textarea--input--max-width, 100%);min-height:var(--r-textarea--input--min-height, 8.875em);font-family:var(--r-textarea--input--font-family, var(--r-font-family-text, system-ui));font-weight:var(--r-textarea--input--font-weight, var(--r-font-weight-regular, 400));font-size:var(--r-textarea--input--font-size, var(--r-font-size-400, 1rem));line-height:var(--r-textarea--input--line-height, var(--r-line-height-m, 1.5));color:var(--r-textarea--input--color, var(--r-text-regular, #282828));background-color:var(--r-textarea--input--background-color, transparent);opacity:var(--r-textarea--input--opacity, 1);border-width:var(--r-textarea--input--border-width, 0px);border-style:var(--r-textarea--input--border-style, solid);border-color:var(--r-textarea--input--border-color, var(--r-border-soft, #686868));border-radius:var(--r-textarea--input--border-radius, 0);box-sizing:var(--r-textarea--input--box-sizing, border-box);box-shadow:var(--r-textarea--input--box-shadow, none);padding:var(--r-textarea--input--padding, var(--r-textarea--input--padding-top, 0.688em) var(--r-textarea--input--padding-right, 0.625em) var(--r-textarea--input--padding-bottom, 0.688em) var(--r-textarea--input--padding-left, 0.625em));margin-top:var(--r-textarea--input--margin-top, 0);resize:var(--r-textarea--input--resize, both);z-index:var(--r-textarea--input--z-index, initial);outline:var(--r-textarea--input--outline, none);outline-offset:var(--r-textarea--input--outline-offset, 0);pointer-events:var(--r-textarea--input--pointer-events, auto);cursor:var(--r-textarea--input--cursor, inherit)}.r-textarea--container{display:flex;align-items:start;overflow:visible;background-color:var(--r-textarea--container--background-color, var(--r-background-interactive-softest, #f7f7f7));border-width:var(--r-textarea--container--border-width, 1px);border-style:var(--r-textarea--container--border-style, solid);border-color:var(--r-textarea--container--border-color, var(--r-border-soft, #686868));padding:var(--r-textarea--container--padding, 0);margin-top:var(--r-textarea--container--margin-top, var(--r-spacing-025, 0.25rem));box-shadow:var(--r-textarea--container--box-shadow, none);outline:var(--r-textarea--container--outline, none);outline-offset:var(--r-textarea--container--outline-offset, none)}.r-textarea--container[data-readonly=true]{--r-textarea--container--background-color:var(--r-background-soft, #f3f1f0);--r-textarea--container--border-color:transparent transparent var(--r-border-soft, #686868) transparent;--r-textarea--container--cursor:text}.r-textarea--container:hover:not([data-disabled=true]):not([data-readonly=true]){--r-textarea--container--background-color:var(--r-background-interactive-hovered)}.r-textarea--container:active:not([data-disabled=true]):not([data-readonly=true]){--r-textarea--container--background-color:var(--r-background-interactive-pressed)}.r-textarea--container:focus-within{--r-textarea--container--box-shadow:0 0 0 6px var(--r-border-focused-outlined, #fff);--r-textarea--container--outline:2px solid var(--r-border-focused, #0071e3);--r-textarea--container--outline-offset:2px}.r-textarea--trailing{display:var(--r-textarea--trailing--display, flex);margin-top:var(--r-textarea--trailing--margin-top, 0.688em);margin-right:var(--r-textarea--trailing--margin-right, 0.625em);margin-left:var(--r-textarea--trailing--margin-left, auto);gap:var(--r-textarea--trailing--gap, 0.625rem)}.r-textarea--trailing:empty{display:none}.r-textarea--readonly-icon{color:var(--r-textarea--readonly-icon--color, var(--r-icon-soft, #686868))}.r-textarea--messages{display:flex;gap:var(--r-textarea--messages--gap, var(--r-spacing-025, 0.25rem))}.r-textarea--messages--counter{margin-left:auto}.r-textarea--messages:has(r-hint){margin-top:var(--r-spacing-025, 0.25rem)}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}";
5
-
6
- const RTextarea = class {
7
- constructor(hostRef) {
8
- registerInstance(this, hostRef);
9
- this.rChange = createEvent(this, "rChange");
10
- this.rInput = createEvent(this, "rInput");
11
- this.rReset = createEvent(this, "rReset");
12
- this.rValidate = createEvent(this, "rValidate");
13
- /** Represents the current value of the `<textarea>`, reflecting the content entered
14
- * by the user or provided programmatically. */
15
- this.value = this.textareaSlotValue;
16
- /** Specifies a short hint that describes the expected value of the `<textarea>`,
17
- * displayed when it is empty. */
18
- this.placeholder = 'Provide an input';
19
- /** Controls the resizability of the `<textarea>`, allowing
20
- * or preventing the user from resizing it. */
21
- this.resize = 'none';
22
- /** Custom message when the character limit is reached to alert screen reader users. */
23
- this.characterLimitReachedMessage = "You've reached the character limit.";
24
- /** Custom validity state */
25
- this.validityState = null;
26
- /** Custom validity message */
27
- this.validityMessage = '';
28
- /**
29
- * Initial attributes state
30
- * */
31
- this.initial = {};
32
- /** Unique id */
33
- this.uniqueId = `r-textarea-${Date.now().toString(32)}${Math.random().toString(32)}`.replace(/\./g, '');
34
- this.onInput = event => {
35
- if (this.readonly)
36
- return;
37
- this.value = event.target.value;
38
- this.validateFormElement(this.nativeElement);
39
- const { host, value } = this;
40
- this.rInput.emit({ element: host, value });
41
- if (value.length === this.maxlength && this.characterLimitReachedAlert) {
42
- this.characterLimitReachedAlert.innerText = this.characterLimitReachedMessage;
43
- setTimeout(() => {
44
- this.characterLimitReachedAlert.innerText = '';
45
- }, 2000);
46
- }
47
- };
48
- this.onChange = event => {
49
- if (this.readonly)
50
- return;
51
- this.value = event.target.value;
52
- this.validateFormElement(this.nativeElement);
53
- const { host, value } = this;
54
- this.rChange.emit({ element: host, value });
55
- };
56
- this.onSubmitForm = (event) => {
57
- if (this.isNoValidate)
58
- return;
59
- this.validateFormElement(this.nativeElement);
60
- if (this.invalid) {
61
- event.preventDefault();
62
- event.stopPropagation();
63
- }
64
- };
65
- this.onResetForm = () => {
66
- if (this.readonly)
67
- return;
68
- // Return to initial state
69
- this.validityState = null;
70
- this.validityMessage = null;
71
- this.value = this.initial['value'];
72
- this.invalid = this.initial['invalid'];
73
- this.valid = !this.invalid;
74
- const { host, value } = this;
75
- this.rReset.emit({ element: host, value });
76
- };
77
- this.getValidityStateData = (element) => {
78
- let validityState = '';
79
- let validityMessage = '';
80
- for (const state in element.validity) {
81
- if (element.validity[state]) {
82
- validityState = state;
83
- if (this[state + 'Message']) {
84
- validityMessage = this[state + 'Message'];
85
- return { validityState, validityMessage };
86
- }
87
- validityMessage = element.validationMessage;
88
- }
89
- }
90
- return { validityState, validityMessage };
91
- };
92
- this.validateFormElement = (element = null) => {
93
- if (element === null)
94
- return;
95
- if (this.isNoValidate)
96
- return;
97
- if (this.error)
98
- return;
99
- const { validityState, validityMessage } = this.getValidityStateData(element);
100
- this.validityState = validityState;
101
- this.validityMessage = validityMessage;
102
- const isValid = this.validityState === 'valid';
103
- this.valid = isValid;
104
- this.invalid = !isValid;
105
- this.rValidate.emit({
106
- state: this.validityState,
107
- message: this.validityMessage
108
- });
109
- };
110
- this.contributeToFormData = (event) => {
111
- appendControlToFormData(this.nativeElement || this.host, event.formData);
112
- };
113
- }
114
- /** Sets the value of the element. */
115
- async setValue(value) {
116
- if (this.readonly)
117
- return;
118
- this.value = value;
119
- }
120
- /** Gets the value of the element. */
121
- async getValue() {
122
- return this.value;
123
- }
124
- /** Resets value and validity state to initial. */
125
- async reset() {
126
- if (this.readonly)
127
- return;
128
- this.validityState = null;
129
- this.validityMessage = null;
130
- this.value = this.initial['value'];
131
- this.invalid = this.initial['invalid'];
132
- this.valid = !this.invalid;
133
- }
134
- /** Sets focus on the element. */
135
- async setFocus() {
136
- this.nativeElement.focus();
137
- }
138
- /** Removes focus from the element. */
139
- async setBlur() {
140
- this.nativeElement.blur();
141
- }
142
- /** Sets the start and end positions of the text selection. */
143
- async setSelectionRange(start, end, direction) {
144
- this.nativeElement.setSelectionRange(start, end, direction);
145
- }
146
- /** Replaces the current text selection with a new string. */
147
- async setRangeText(replacement, start, end, selectionMode) {
148
- this.nativeElement.setRangeText(replacement, start, end, selectionMode);
149
- }
150
- /** Validates an element, displays provided message in case value is invalid. */
151
- async setCustomValidity(message) {
152
- this.customErrorMessage = message;
153
- this.validateFormElement(this.nativeElement);
154
- }
155
- /**
156
- * Validates the textarea without triggering UI and returns a boolean indicating its validity.
157
- * @returns A boolean indicating whether the textarea is valid.
158
- */
159
- async checkValidity() {
160
- const { validityState } = this.getValidityStateData(this.nativeElement);
161
- return validityState === 'valid';
162
- }
163
- /** Validates an element and displays validity state. */
164
- async reportValidity() {
165
- this.validateFormElement(this.nativeElement);
166
- }
167
- /** Identify wrapping form element. */
168
- get parentFormEl() {
169
- return this.host.closest('form') || document.querySelector(`#${this.form}`) || null;
170
- }
171
- get ariaDescribedBy() {
172
- const describedBy = `${this.uniqueId}-message`;
173
- return this.hint ? `${this.uniqueId}-hint ${describedBy}` : describedBy;
174
- }
175
- get hasError() {
176
- var _a;
177
- return this.invalid && !!((_a = this.error) === null || _a === void 0 ? void 0 : _a.length);
178
- }
179
- get hasValidationError() {
180
- if (!this.validityState)
181
- return false;
182
- const isInvalid = this.validityState !== 'valid';
183
- const hasMessage = !!(this.customErrorMessage || this.validityMessage);
184
- return isInvalid && hasMessage;
185
- }
186
- get hasMessage() {
187
- return this.hasError || this.hasValidationError;
188
- }
189
- /**
190
- * Determine whether this element should be ignored
191
- * during Constraint Validation API validation.
192
- * */
193
- get isNoValidate() {
194
- var _a;
195
- return (((_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.hasAttribute('novalidate')) ||
196
- this.novalidate ||
197
- false);
198
- }
199
- get hasTrailingSlot() {
200
- return !!this.host.querySelector('[slot="trailing"]');
201
- }
202
- get textareaSlotValue() {
203
- return this.host.textContent;
204
- }
205
- connectFormEventListeners() {
206
- var _a, _b, _c;
207
- (_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.addEventListener('formdata', this.contributeToFormData);
208
- (_b = this.parentFormEl) === null || _b === void 0 ? void 0 : _b.addEventListener('submit', this.onSubmitForm, { capture: true });
209
- (_c = this.parentFormEl) === null || _c === void 0 ? void 0 : _c.addEventListener('reset', this.onResetForm);
210
- }
211
- disconnectFormEventListeners() {
212
- var _a, _b, _c;
213
- (_a = this.parentFormEl) === null || _a === void 0 ? void 0 : _a.removeEventListener('formdata', this.contributeToFormData);
214
- (_b = this.parentFormEl) === null || _b === void 0 ? void 0 : _b.removeEventListener('submit', this.onSubmitForm);
215
- (_c = this.parentFormEl) === null || _c === void 0 ? void 0 : _c.removeEventListener('reset', this.onResetForm);
216
- }
217
- componentWillLoad() {
218
- this.initial['value'] = this.value;
219
- this.initial['invalid'] = this.invalid;
220
- }
221
- connectedCallback() {
222
- this.connectFormEventListeners();
223
- }
224
- disconnectedCallback() {
225
- this.disconnectFormEventListeners();
226
- }
227
- render() {
228
- const { name, rows, cols, placeholder, required, showCounter, maxlength, minlength, form, value, disabled, resize, hint, invalid, label, uniqueId, fieldIndicator, readonly } = this;
229
- const textareaAttrs = {
230
- name,
231
- rows,
232
- cols,
233
- placeholder,
234
- required,
235
- maxlength,
236
- minlength,
237
- form,
238
- value,
239
- disabled,
240
- resize,
241
- readonly,
242
- id: uniqueId,
243
- 'aria-describedby': this.ariaDescribedBy,
244
- 'aria-invalid': `${!!invalid}`,
245
- 'aria-required': `${!!required}`
246
- };
247
- const labelAttr = label ? {
248
- label,
249
- fieldIndicator
250
- } : {};
251
- // Filter out event listener properties based on naming convention.
252
- // Pass them to native element.
253
- const eventListeners = Object.entries(this).reduce((acc, [key, value]) => {
254
- if (typeof value === 'function' && key.startsWith('on')) {
255
- acc[key] = value;
256
- }
257
- return acc;
258
- }, {});
259
- return (h(Host, null, h("div", { class: "r-textarea--label-container" }, h("label", { htmlFor: uniqueId }, label &&
260
- h("r-label", Object.assign({ id: `${uniqueId}-label` }, labelAttr), label)), h("slot", { name: "popover" })), hint &&
261
- h("r-hint", { id: `${uniqueId}-hint`, role: "note" }, hint), h("div", { class: "r-textarea--container", "data-disabled": `${!!disabled}`, "data-readonly": `${!!readonly}` }, h("textarea", Object.assign({ class: "r-textarea--input" }, textareaAttrs, eventListeners, { ref: el => this.nativeElement = el, onChange: this.onChange, onInput: this.onInput })), h("div", { class: "r-textarea--trailing" }, this.readonly && h("r-icon", { class: "r-textarea--readonly-icon", name: "pen-disabled", size: "s" }), this.hasTrailingSlot && h("slot", { name: "trailing" }))), h("div", { class: "r-textarea--messages" }, h("r-hint", { "aria-live": "polite", "aria-atomic": "true", id: `${uniqueId}-message`, class: !this.hasMessage && 'visually-hidden', variant: invalid ? 'error' : 'success' }, this.hasError && this.error, this.hasValidationError && (this.customErrorMessage || this.validityMessage)), showCounter && h("r-hint", { "aria-hidden": true, class: "r-textarea--messages--counter" }, `${value.length}${maxlength ? '/' : ''}${maxlength}`), maxlength &&
262
- h("div", { class: "visually-hidden", ref: el => this.characterLimitReachedAlert = el, "aria-live": "assertive" }))));
263
- }
264
- get host() { return getElement(this); }
265
- };
266
- RTextarea.style = textareaCss;
267
-
268
- export { RTextarea as r_textarea };
@@ -1,44 +0,0 @@
1
- import { r as registerInstance, h, H as Host, g as getElement } from './index-CTxpqopm.js';
2
-
3
- const toastGroupCss = ":host([data-visually-hidden=true]){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}:host{display:var(--display, block);position:var(--position, fixed);top:var(--top, 0);right:var(--right, 0);bottom:var(--bottom, auto);left:var(--left, auto);overflow:var(--overflow, hidden);overflow-y:var(--overflow-y, auto);width:var(--width, 352px);max-height:var(--max-height, calc(100vh - 64px));padding-right:var(--padding-right, 32px);padding-top:var(--padding-top, 16px);padding-bottom:var(--padding-bottom, 32px);z-index:var(--z-index, 1)}:host ::slotted(r-toast){margin-top:var(--r-spacing-100, 1rem)}.r-toast-group{position:relative;display:var(--r-toast-group--display, flex);flex-direction:var(--r-toast-group--flex-direction, column);justify-content:var(--r-toast-group--justify-content, flex-start)}";
4
-
5
- const ToastGroup = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.updateHiddenState = () => {
9
- this.host.setAttribute('data-visually-hidden', `${!this.hasChildren}`);
10
- };
11
- this.observeSlotContentChange = () => {
12
- this.observer = new MutationObserver(async (mutations) => {
13
- var _a, _b;
14
- this.updateHiddenState();
15
- const addedToast = mutations
16
- .flatMap(mutation => Array.from(mutation.addedNodes))
17
- .find(node => node.nodeName === 'R-TOAST');
18
- if (addedToast) {
19
- // Measure height then reveal for smooth animation
20
- await ((_a = addedToast.measureAndPrepareHeight) === null || _a === void 0 ? void 0 : _a.call(addedToast));
21
- await ((_b = addedToast.reveal) === null || _b === void 0 ? void 0 : _b.call(addedToast));
22
- }
23
- });
24
- this.observer.observe(this.host, {
25
- childList: true,
26
- subtree: true
27
- });
28
- };
29
- }
30
- get hasChildren() {
31
- return this.host.querySelectorAll('r-toast').length > 0;
32
- }
33
- componentWillLoad() {
34
- this.updateHiddenState();
35
- this.observeSlotContentChange();
36
- }
37
- render() {
38
- return (h(Host, { key: '85ab80be1fca1d1a9c3dc2e17de616747748a4dd' }, h("div", { key: 'a88670978563caeb8f500f4b5f9af2bcd0ade386', class: "r-toast-group" }, h("slot", { key: 'ab1480a47cfae0cacc45de708d51e8a77b6dfb85' }))));
39
- }
40
- get host() { return getElement(this); }
41
- };
42
- ToastGroup.style = toastGroupCss;
43
-
44
- export { ToastGroup as r_toast_group };