@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,314 +0,0 @@
1
- 'use strict';
2
-
3
- var index = require('./index-BnETQtSf.js');
4
-
5
- const paginationCss = ":host{--r-pagination--display:flex;--r-pagination--list-style:none;--r-pagination--align-items:center;--r-pagination--justify-content:center;--r-pagination--font-family:var(--r-font-family-text);--r-pagination--margin:0 auto;--r-pagination--flex-direction:column;--r-pagination--width:100%;--r-pagination--max-width:664px;--r-pagination--margin:0 auto;--r-pagination--items-list--display:flex;--r-paginaition--items-list--justify-content:center;--r-paginaition--items-list--align-items:center;--r-paginaition--items-list--list-style-type:none;--r-paginaition--items-list--padding:0;--r-paginaition--items-list--margin:0;--r-pagination--item--width:var(--r-spacing-300, 3rem);--r-pagination--item--height:var(--r-spacing-300, 3rem);--r-pagination--item--border-radius:0;--r-pagination--button--border-width:0;--r-pagination--button--padding:0;--r-pagination--header--display:flex;--r-pagination--header--align-items:center;--r-pagination--header--justify-content:space-between;--r-pagination--header--min-width:287px;--r-pagination--footer--display:flex;--r-pagination--footer--justify-content:center;--r-pagination--footer--width:100%;--r-pagination--item--disabled-text:none;--r-pagination--font-size:var(--r-font-size-200);display:block}:host([variant=minimized]){--r-pagination--max-width:440px}:host([variant=standard]){--r-pagination--max-width:560px}:host([variant=maximized]){--r-pagination--max-width:664px}.r-pagination r-select{--r-select--font-size:var(--r-pagination--font-size, 12px);--r-select-option--font-size:var(--r-pagination--font-size, 12px)}.r-pagination{align-items:var(--r-pagination--align-items);display:var(--r-pagination--display);flex-direction:var(--r-pagination--flex-direction);font-family:var(--r-pagination--font-family);font-size:var(--r-pagination--font-size);justify-content:var(--r-pagination--justify-content);list-style:var(--r-pagination--list-style);margin:var(--r-pagination--margin);max-width:var(--r-pagination--max-width);user-select:var(--r-pagination--item--disabled-text);width:var(--r-pagination--width)}.r-pagination--footer{align-items:var(--r-pagination--header--align-items);display:var(--r-pagination--footer--display);justify-content:var(--r-pagination--footer--justify-content)}.r-pagination--header{align-items:var(--r-pagination--header--align-items);display:var(--r-pagination--header--display);justify-content:var(--r-pagination--header--justify-content);font-family:var(--r-pagination--font-family);min-width:var(--r-pagination--header--min-width)}.r-pagination--header--select{min-width:auto;--width:unset !important}.r-pagination--header label{font-size:var(--r-pagination--font-size)}.r-pagination--items-list{display:var(--r-pagination--items-list--display);justify-content:var(--r-paginaition--items-list--justify-content);align-items:var(--r-paginaition--items-list--align-items);list-style-type:var(--r-paginaition--items-list--list-style-type);padding:var(--r-paginaition--items-list--padding);margin:var(--r-paginaition--items-list--margin)}.r-pagination--item.active{--r-button--color:var(--r-text-regular);--r-button--background-color:var(--r-background-interactive-activated);font-weight:var(--r-font-weight-semibold)}.r-pagination--item.number{--r-button--font-size:0.813rem}.r-pagination--item{--r-icon-button--height:var(--r-pagination--item--height);--r-icon-button--width:var(--r-pagination--item--width);--r-icon-button--border-radius:var(--r-pagination--item--border-radius);--r-button--width:var(--r-pagination--item--width);--r-button--height:var(--r-pagination--item--height);--r-button--border-width:var(--r-pagination--button--border-width);--r-button--padding:var(--r-pagination--button--padding)}.visually-hidden{position:absolute;width:1px;height:1px;clip:rect(0 0 0 0);clip-path:inset(50%);overflow:hidden;white-space:nowrap}";
6
-
7
- const RPagination = class {
8
- constructor(hostRef) {
9
- index.registerInstance(this, hostRef);
10
- this.rChange = index.createEvent(this, "rChange");
11
- this.rNumberClick = index.createEvent(this, "rNumberClick");
12
- this.rArrowClick = index.createEvent(this, "rArrowClick");
13
- this.rItemsPerPageChange = index.createEvent(this, "rItemsPerPageChange");
14
- /** UI: Arrows present/absent */
15
- this.arrows = true;
16
- /** Total amount of pages to select from */
17
- this.totalResults = 1;
18
- /** Current page number */
19
- this.pageActive = 1;
20
- /** Amount of items to show per page */
21
- this.itemsPerPage = 5;
22
- /** Items per page options for dropdown */
23
- this.itemsPerPageOptions = [5, 10, 15, 20, 25, 50, 100];
24
- // @Prop() variant?: PaginationVariant;
25
- /** Allows selection between different pagination styles: minimized, standard, maximized */
26
- this.variant = 'standard';
27
- /** UI: Result Line and select field present/absent */
28
- this.resultsLine = false;
29
- /** Text to show in beginning of resultLine */
30
- this.startText = 'Showing';
31
- /** Text to display between currently shown results and total amount of results */
32
- this.middleText = 'of';
33
- /** Text to display after total results */
34
- this.endText = 'results';
35
- /** Text to show in select */
36
- this.selectText = 'page';
37
- /** Position of the list box */
38
- this.listBoxPosition = 'top';
39
- /** Label for Previous Page button. Important to ensure accessibility for screen reader users. */
40
- this.previousPageButtonLabel = 'Go to the previous page';
41
- /** Label for Next Page button. Important to ensure accessibility for screen reader users.*/
42
- this.nextPageButtonLabel = 'Go to the next page';
43
- /** Label for First Page button. Important to ensure accessibility for screen reader users.*/
44
- this.firstPageButtonLabel = 'Go to the first page';
45
- /** Label for Last Page button. Important to ensure accessibility for screen reader users.*/
46
- this.lastPageButtonLabel = 'Go to the last page';
47
- /** Label for Page number buttons. Important to ensure accessibility for screen reader users.*/
48
- this.pageLabel = 'Page';
49
- /** Label for Ellipsis stepper. Important to ensure accessibility for screen reader users.*/
50
- this.ellipsisLabel = 'Ellipsis indicating skipped pages';
51
- /** Label for Items per page select. */
52
- this.itemsPerPageLabel = 'Items per page';
53
- this.resizeObserver = null;
54
- this.handleItemsPerPageChange = (event) => {
55
- const newItemsPerPage = parseInt(event.detail.value, 10);
56
- this.itemsPerPage = newItemsPerPage;
57
- this.rItemsPerPageChange.emit(this.itemsPerPage);
58
- this.setPaginationState();
59
- };
60
- this._activateStep = (index) => {
61
- if (index < 1 || index > this.total || this.pageActive === index)
62
- return; // Prevent invalid or redundant updates
63
- this.pageActive = index;
64
- requestAnimationFrame(() => {
65
- this.setPaginationState(); // Ensure state updates correctly
66
- requestAnimationFrame(() => {
67
- var _a;
68
- // Ensure the correct button is focused AFTER the state updates
69
- const newActiveButton = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(`.r-pagination--item[data-index="${this.pageActive}"]`);
70
- if (newActiveButton) {
71
- newActiveButton.focus();
72
- }
73
- });
74
- });
75
- };
76
- this.handleItemChange = e => {
77
- const buttonElement = e.target.closest('r-icon-button') || e.target.closest('r-button');
78
- const index = Number(buttonElement.getAttribute('data-index'));
79
- if (index === null)
80
- return;
81
- this._activateStep(index);
82
- requestAnimationFrame(() => {
83
- const focusTarget = this.getFocusTargetAfterNavigation(buttonElement);
84
- focusTarget === null || focusTarget === void 0 ? void 0 : focusTarget.setFocus();
85
- });
86
- if (buttonElement.classList.contains('number')) {
87
- this.rNumberClick.emit(this.paginationState);
88
- }
89
- if (buttonElement.classList.contains('arrow')) {
90
- const direction = buttonElement.classList.contains('next') ? 'next' : 'previous';
91
- this.rArrowClick.emit(Object.assign(Object.assign({}, this.paginationState), { direction }));
92
- }
93
- };
94
- this.syncHeaderWidth = () => {
95
- requestAnimationFrame(() => {
96
- if (this.headerRef && this.footerRef) {
97
- const footerWidth = this.footerRef.offsetWidth;
98
- this.headerRef.style.width = `${footerWidth}px`;
99
- }
100
- });
101
- };
102
- }
103
- get isNoPreviousPage() {
104
- return this.previous === null;
105
- }
106
- get isNoNextPage() {
107
- return this.next === null;
108
- }
109
- get isNotFirstPage() {
110
- return this.first === null;
111
- }
112
- get isNotLastPage() {
113
- return this.last === null;
114
- }
115
- get paginationState() {
116
- const { total, active, previous, next, first, last, arrows } = this;
117
- return { total, active, previous, next, first, last, arrows };
118
- }
119
- // State recalculation
120
- setPaginationState() {
121
- // Correctly calculate total pages based on items per page
122
- this.total = Math.ceil(this.totalResults / this.itemsPerPage);
123
- // Ensure the active page does not exceed the total pages
124
- if (this.pageActive > this.total) {
125
- this.pageActive = this.total;
126
- }
127
- // Set the reveal value based on variant and screen size
128
- switch (this.variant) {
129
- case 'minimized':
130
- {
131
- this.arrows = false;
132
- this.resultsLine = false;
133
- break;
134
- }
135
- case 'standard': {
136
- this.arrows = true;
137
- break;
138
- }
139
- case 'maximized': {
140
- this.arrows = true;
141
- break;
142
- }
143
- default: {
144
- console.warn('No variant specified. Defaulting to "standard".');
145
- this.variant = 'standard';
146
- break;
147
- }
148
- }
149
- // Update pagination-related state variables
150
- this.active = this.pageActive;
151
- this.previous = this.active - 1 > 0 ? this.active - 1 : null;
152
- this.next = this.active + 1 > this.total ? null : this.active + 1;
153
- this.first = this.variant === 'maximized' && this.active !== 1 ? 1 : null;
154
- this.last = this.variant === 'maximized' && this.active !== this.total ? this.total : null;
155
- if (typeof ResizeObserver !== 'undefined') {
156
- this.resizeObserver = new ResizeObserver(() => {
157
- this.syncHeaderWidth();
158
- });
159
- if (this.footerRef) {
160
- this.resizeObserver.observe(this.footerRef);
161
- }
162
- }
163
- // Emit updated pagination state
164
- this.rChange.emit(this.paginationState);
165
- }
166
- /**
167
- * Determines the appropriate focus target after navigation based on button states.
168
- * Handles edge cases where navigation buttons become disabled.
169
- */
170
- getFocusTargetAfterNavigation(buttonElement) {
171
- var _a, _b, _c, _d, _e;
172
- const isArrowButton = buttonElement.classList.contains('arrow');
173
- const isNextButton = buttonElement.classList.contains('next');
174
- const isPrevButton = buttonElement.classList.contains('previous');
175
- const isFirstButton = buttonElement.classList.contains('first');
176
- const isLastButton = buttonElement.classList.contains('last');
177
- const willNextBeDisabled = this.next === null;
178
- const willPrevBeDisabled = this.previous === null;
179
- const willLastBeDisabled = this.active === this.total;
180
- const willFirstBeDisabled = this.first === null;
181
- if (isNextButton && willNextBeDisabled) {
182
- return (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(`.r-pagination--item.number[data-index="${this.total}"]`);
183
- }
184
- if (isPrevButton && willPrevBeDisabled) {
185
- return (_b = this.el.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector(`.r-pagination--item.number[data-index="1"]`);
186
- }
187
- if (isLastButton && willLastBeDisabled) {
188
- return (_c = this.el.shadowRoot) === null || _c === void 0 ? void 0 : _c.querySelector(`.r-pagination--item.number[data-index="${this.total}"]`);
189
- }
190
- if (isFirstButton && willFirstBeDisabled) {
191
- return (_d = this.el.shadowRoot) === null || _d === void 0 ? void 0 : _d.querySelector('.r-pagination--item.number[data-index="1"]');
192
- }
193
- return isArrowButton ? buttonElement : (_e = this.el.shadowRoot) === null || _e === void 0 ? void 0 : _e.querySelector(`.r-pagination--item[data-index="${this.pageActive}"]`);
194
- }
195
- componentWillLoad() {
196
- this.setPaginationState();
197
- }
198
- disconnectedCallback() {
199
- if (this.resizeObserver) {
200
- this.resizeObserver.disconnect();
201
- }
202
- }
203
- componentDidRender() {
204
- this.syncHeaderWidth();
205
- }
206
- componentDidUpdate() {
207
- this.setPaginationState(); // Recalculate when props change
208
- }
209
- render() {
210
- const { active, previous, next, first, itemsPerPage, itemsPerPageOptions, startText, middleText, endText, selectText, listBoxPosition } = this;
211
- const itemTemplate = (type, index$1) => {
212
- if (type === 'number') {
213
- return (index.h("li", null, index.h("r-button", { class: "r-pagination--item number", "data-index": index$1, variant: "secondary", onRClick: this.handleItemChange }, index.h("span", { class: "visually-hidden" }, this.pageLabel), " ", index$1)));
214
- }
215
- if (type === 'active') {
216
- return (index.h("li", null, index.h("r-button", { "data-index": index$1, class: "r-pagination--item number active", rAriaCurrent: "page" }, index.h("span", { class: "visually-hidden" }, this.pageLabel), " ", index$1)));
217
- }
218
- if (type === 'stepper') {
219
- return (index.h("li", { "aria-label": this.ellipsisLabel, class: "r-pagination--item stepper" }, "..."));
220
- }
221
- };
222
- const renderNumbers = () => {
223
- const totalPages = Math.ceil(this.totalResults / itemsPerPage);
224
- const maxVisiblePages = 10;
225
- const items = [];
226
- const startEdge = 1;
227
- const endEdge = totalPages;
228
- const _createItem = (value) => {
229
- const item = value + 1; // Convert to 1-indexed
230
- const type = item === active ? 'active' : 'number';
231
- return itemTemplate(type, item);
232
- };
233
- // Case: total pages are less than or equal to maxVisiblePages
234
- if (totalPages <= maxVisiblePages) {
235
- return index.h("ul", { class: "r-pagination--items-list" }, [...Array(totalPages).keys()].map(_createItem));
236
- }
237
- // Always add startEdge
238
- items.push(itemTemplate(active === startEdge ? 'active' : 'number', startEdge));
239
- const showStartStepper = active > 5;
240
- const showEndStepper = active < totalPages - 5;
241
- // Case: active page is near the beginning
242
- if (!showStartStepper) {
243
- for (let i = 2; i <= 8; i++) {
244
- items.push(_createItem(i - 1)); // Convert to 0-indexed for _createItem
245
- }
246
- items.push(itemTemplate('stepper', null));
247
- }
248
- // Case: active page is near the end
249
- else if (!showEndStepper) {
250
- items.push(itemTemplate('stepper', null));
251
- for (let i = totalPages - 7; i < totalPages; i++) {
252
- items.push(_createItem(i - 1)); // Convert to 0-indexed for _createItem
253
- }
254
- }
255
- // Case: active page is in the middle
256
- else {
257
- items.push(itemTemplate('stepper', null));
258
- for (let i = active - 2; i <= active + 2; i++) {
259
- items.push(_createItem(i - 1)); // Convert to 0-indexed for _createItem
260
- }
261
- items.push(itemTemplate('stepper', null));
262
- }
263
- // Always add endEdge
264
- items.push(itemTemplate(active === endEdge ? 'active' : 'number', endEdge));
265
- // Ensure the total number of items is 10
266
- if (items.length > maxVisiblePages) {
267
- items.splice(1, items.length - maxVisiblePages - 1); // Remove excess items while keeping steppers
268
- }
269
- else if (items.length < maxVisiblePages) {
270
- // Add additional pages if the total number of items is less than 10
271
- const additionalPages = maxVisiblePages - items.length;
272
- if (showStartStepper && showEndStepper) {
273
- for (let i = active + 3; i <= active + 2 + additionalPages; i++) {
274
- if (i < totalPages) {
275
- items.splice(items.length - 2, 0, _createItem(i - 1)); // Convert to 0-indexed for _createItem
276
- }
277
- }
278
- }
279
- else if (showStartStepper) {
280
- for (let i = active + 3; i <= active + 2 + additionalPages; i++) {
281
- if (i < totalPages) {
282
- items.splice(items.length - 1, 0, _createItem(i - 1)); // Convert to 0-indexed for _createItem
283
- }
284
- }
285
- }
286
- else if (showEndStepper) {
287
- for (let i = active - 3; i >= active - 2 - additionalPages; i--) {
288
- if (i > 1) {
289
- items.splice(1, 0, _createItem(i - 1)); // Convert to 0-indexed for _createItem
290
- }
291
- }
292
- }
293
- }
294
- return index.h("ul", { class: "r-pagination--items-list" }, items);
295
- };
296
- const renderHeader = () => {
297
- const startItem = Math.min((active - 1) * itemsPerPage + 1, this.totalResults);
298
- const endItem = Math.min(active * itemsPerPage, this.totalResults);
299
- return (index.h(index.Fragment, null, index.h("div", { ref: el => (this.headerRef = el), class: "r-pagination--header" }, index.h("div", { class: "results-info", "aria-live": "polite" }, startText ? startText : 'Showing', " ", startItem, "\u2013", endItem, " ", middleText ? middleText : 'of', " ", this.totalResults, " ", endText ? endText : 'results'), index.h("div", null, index.h("r-select", { class: "r-pagination--header--select", value: this.itemsPerPage.toString(), id: "items-per-page", onRChange: this.handleItemsPerPageChange, label: this.itemsPerPageLabel, "listbox-position": listBoxPosition }, itemsPerPageOptions.map(option => (index.h("r-select-option", { value: option.toString() }, option, "/", selectText ? selectText : 'page'))))))));
300
- };
301
- const isLastPage = active === this.total;
302
- const renderList = () => {
303
- if (this.variant === 'minimized') {
304
- return (index.h(index.Fragment, null, index.h("div", { ref: el => (this.footerRef = el), class: "r-pagination--footer" }, renderNumbers())));
305
- }
306
- return (index.h(index.Fragment, null, index.h("div", { ref: el => (this.footerRef = el), class: "r-pagination--footer" }, this.variant === 'maximized' && (index.h("r-icon-button", { "data-index": first, name: "angle-left-with-vertical-line", size: "s", disabled: this.isNotFirstPage, label: this.firstPageButtonLabel, class: "r-pagination--item arrow first", onRClick: this.handleItemChange })), index.h("r-icon-button", { "data-index": previous, name: "angle-left", size: "s", disabled: this.isNoPreviousPage, label: this.previousPageButtonLabel, class: "r-pagination--item arrow previous", onRClick: this.handleItemChange }), renderNumbers(), index.h("r-icon-button", { "data-index": next, name: "angle-right", size: "s", disabled: this.isNoNextPage, label: this.nextPageButtonLabel, class: "r-pagination--item arrow next", onRClick: this.handleItemChange }), this.variant === 'maximized' && (index.h("r-icon-button", { "data-index": this.total, name: "angle-right-with-vertical-line", size: "s", disabled: isLastPage, label: this.lastPageButtonLabel, class: "r-pagination--item arrow last", onRClick: this.handleItemChange })))));
307
- };
308
- return (index.h(index.Host, { role: "navigation" }, index.h("div", { class: "r-pagination" }, this.resultsLine && renderHeader(), renderList())));
309
- }
310
- get el() { return index.getElement(this); }
311
- };
312
- RPagination.style = paginationCss;
313
-
314
- exports.r_pagination = RPagination;
@@ -1,184 +0,0 @@
1
- 'use strict';
2
-
3
- var index = require('./index-BnETQtSf.js');
4
-
5
- const panelCss = ":host{--r-panel--min-width:18.75rem;--r-panel--background-color:var(--r-background-soft, #F3F1F0);--r-panel--display:flex;--r-panel--flex-direction:column;--r-panel--position:fixed;--r-panel--align-items:flex-start;--r-panel--top:0;--r-panel--padding:8px 0;--r-panel--width:18.75rem;--r-panel--height:100%;--r-panel--color:var(--r-text-regular, #282828);--r-panel--transition:all 250ms ease-in-out;--r-panel--transform:none;--r-panel--font-family:var(--r-font-family-text);--r-panel--left:0;--r-panel--header--display:flex;--r-panel--header--padding:12px 16px;--r-panel--header--justify-content:space-between;--r-panel--header--align-items:center;--r-panel--header--align-self:stretch;--r-panel--header--icon-rotate:none;--r-panel--header--flex-direction:row;--r-panel--header--gap:3.125rem;--r-panel--header--logo--img--width:100%;--r-panel--header--logo--img--height:auto;--r-panel--header--logo--img--expanded--width:12rem;--r-panel--header--logo--img--collapsed--width:1.875rem;--r-panel--header--height:unset;--r-panel--body--display:block;--r-panel--body--flex-grow:1;--r-panel--body--align-self:stretch;--r-panel--body--overflow:auto;--r-panel--body--padding:4px 8px 0;--r-panel--body-header--color:var(--r-text-soft, #686868);--r-panel--body-header--font-size:var(--r-font-size-400, 1rem);--r-panel--body-header--font-weight:var(--r-font-weight-regular, 400);--r-panel--body-header--padding:16px 0;--r-panel--body-header--width:16.75rem;--r-panel--body-header--margin:0px;--r-panel--footer--dispay:flex;--r-panel--footer--width:100%;--r-panel--footer--padding:16px 16px 24px;--r-panel--footer--flex-direction:column;--r-panel--footer--justify-content:center;--r-panel--footer-gap:var(--spacing-100, 1rem);--r-panel--footer--align-self:stretch;--r-panel--footer--text-align:center}:host([variant=drawer]) r-button{--r-button--padding:0.625rem;--r-button--background:var(--r-background-interactive-softer, #E7E4E2);--r-button--border-radius:10%;--r-button--slot--position:relative;--r-button--left:5%}:host([variant=drawer][collapsed]){--r-panel--width:var(--r-spacing-450, 4.5rem);--r-panel--header--display:none;--r-panel--header--icon-rotate:rotate(180deg);--r-panel--header--logo--expaned--display:none;--r-panel--header--logo--collapsed--display:block;--r-panel--header--flex-direction:column;--r-panel--header--gap:0.625rem;--r-list-item--epxanded--background-color:rgba(40, 40, 40, 0.08)}:host([variant=drawer][collapsed]) r-button{--r-button--slot--position:inherit;transition:transform 250ms ease-in-out}:host([variant=modal][collapsed]){--r-panel--transform:translate(-100%)}:host([collapsed]:not([variant=modal])){--r-panel--min-width:0;--r-list-item--sr-text--display:block;--r-list-item--text--display:none;--r-list-item--trailing--display:none}:host([variant=drawer]:not([has-header]):not([collapsed])),:host([variant=drawer][has-header=false]:not([collapsed])){--r-panel--header--height:var(--spacing-150, 1.5rem);--r-panel--header--padding:12px 8px 0 16px}:host([variant=drawer]:not([has-header]):not([collapsed])) r-button,:host([variant=drawer][has-header=false]:not([collapsed])) r-button{--r-button--top:20%;--r-button--left:97%}:host([collapsed]){--r-list-item--active-parent--background-color:rgba(40, 40, 40, 0.08)}.r-panel{z-index:2;min-width:var(--r-panel--min-width);background-color:var(--r-panel--background-color);display:var(--r-panel--display);flex-direction:var(--r-panel--flex-direction);align-items:var(--r-panel--align-items);width:var(--r-panel--width);height:var(--r-panel--height);position:var(--r-panel--position);top:var(--r-panel--top);padding:var(--r-panel--padding);color:var(--r-panel--color);transition:var(--r-panel--transition);transform:var(--r-panel--transform);left:var(--r-panel--left);font-family:var(--r-panel--font-family);box-sizing:border-box}.r-panel .logo-wrapper .logo-expanded{width:var(--r-panel--header--logo--img--expanded--width)}.r-panel .logo-wrapper .logo-collapsed{width:var(--r-panel--header--logo--img--collapsed--width)}.r-panel .logo-wrapper img{width:var(--r-panel--header--logo--img--width);height:var(--r-panel--header--logo--img--height)}.r-panel .logo-wrapper:focus,.r-panel .logo-wrapper:focus-visible{box-shadow:0 0 0 6px var(--r-border-focused-outlined, #fff);outline:2px solid var(--r-border-focused, #0071e3);outline-offset:2px}.r-panel--header{display:flex;padding:var(--r-panel--header--padding);justify-content:var(--r-panel--header--justify-content);align-items:var(--r-panel--header--align-items);align-self:var(--r-panel--header--align-self);flex-direction:var(--r-panel--header--flex-direction);gap:var(--r-panel--header--gap);height:var(--r-panel--header--height)}.r-panel--header r-button{--r-button--padding:0;transform:var(--r-panel--header--icon-rotate);background:var(--r-button--background);position:var(--r-button--slot--position);left:var(--r-button--left);top:var(--r-button--top);border-radius:var(--r-button--border-radius)}.r-panel--body{flex-grow:var(--r-panel--body--flex-grow);align-self:var(--r-panel--body--align-self);display:var(--r-panel--body--display);overflow:var(--r-panel--body--overflow);padding:var(--r-panel--body--padding)}.r-panel--body ::slotted(.header){color:var(--r-panel--body-header--color);font-size:var(--r-panel--body-header--font-size);font-weight:var(--r-panel--body-header--font-weight);padding:var(--r-panel--body-header--padding);display:var(--r-panel--header--display);width:var(--r-panel--body-header--width);margin:var(--r-panel--body-header--margin)}.r-panel--footer{width:var(--r-panel--footer--width)}.r-panel ::slotted([slot=footer]){display:var(--r-panel--footer--dispay);padding:var(--r-panel--footer--padding);flex-direction:var(--r-panel--footer--flex-direction);justify-content:var(--r-panel--footer--justify-content);gap:var(--r-panel--footer-gap);align-self:var(--r-panel--footer--align-self);text-align:var(--r-panel--footer--text-align)}.r-panel ::slotted(ul){margin:var(--r-panel--item-list--margin, 0);padding:var(--r-panel--item-list--padding, 0);list-style-type:var(--r-panel--item-list--list-style-type, \"\")}@media (prefers-reduced-motion){.r-panel,:host([variant=drawer][collapsed]) r-button{transition:none}}";
6
-
7
- const Panel = class {
8
- constructor(hostRef) {
9
- index.registerInstance(this, hostRef);
10
- this.panelStateChanged = index.createEvent(this, "panelStateChanged");
11
- /** A boolean property that indicates whether the component includes a header */
12
- this.hasHeader = false;
13
- /** A boolean property that indicates whether the navitems are active of not */
14
- this.active = false;
15
- /** A boolean property that indicates whether the component includes a footer */
16
- this.hasFooter = false;
17
- /** Presentational style */
18
- this.variant = 'visible';
19
- /** A boolean property that determines the collapsed state of the component. The default state is `false`. */
20
- this.collapsed = false;
21
- /** Aria-label text for collapse */
22
- this.labelCollapse = 'Collapse panel';
23
- /** Aria-label text for expand */
24
- this.labelExpand = 'Expand panel';
25
- this.isCollapsed = this.collapsed;
26
- // Pre-bound method for event listeners
27
- this.updateCurrentLocationBound = this.updateCurrentLocation.bind(this);
28
- this.handleSemiCollapsedButtonClick = () => {
29
- this.togglePanel();
30
- const parentPanels = document.querySelectorAll('r-list-item[expanded]');
31
- if (this.isCollapsed) {
32
- parentPanels.forEach(parentPanel => {
33
- parentPanel.removeAttribute('expanded');
34
- });
35
- }
36
- else {
37
- parentPanels.forEach(parentPanel => {
38
- parentPanel.setAttribute('expanded', '');
39
- });
40
- }
41
- };
42
- this.handleFullyCollapsedButtonClick = () => {
43
- this.collapsePanel();
44
- };
45
- }
46
- toggleSubItems(event) {
47
- const target = event.target;
48
- if (target.tagName === 'R-LIST-ITEM' && this.isCollapsed && this.variant) {
49
- const hasSubItems = target.hasAttribute('has-sub-items');
50
- if (hasSubItems) {
51
- this.expandPanel();
52
- }
53
- }
54
- }
55
- /** Expand/Collapse Panel */
56
- async togglePanel() {
57
- this.isCollapsed = !this.isCollapsed;
58
- }
59
- /** Expand Panel */
60
- async expandPanel() {
61
- this.isCollapsed = false;
62
- }
63
- /** Collapse Panel */
64
- async collapsePanel() {
65
- this.isCollapsed = true;
66
- }
67
- handleCollapseChange(collapsed) {
68
- this.isCollapsed = collapsed;
69
- // Save the state to localStorage whenever it changes
70
- if (this.variant === 'drawer' || this.variant === 'modal') {
71
- localStorage.setItem('panelState', JSON.stringify(collapsed));
72
- this.panelStateChanged.emit({ collapsed });
73
- }
74
- }
75
- watchVariant(newVariant) {
76
- this.isCollapsed = newVariant === 'modal';
77
- }
78
- handleDocumentClick(event) {
79
- this.handleClickOutside(event);
80
- }
81
- getNavLinks() {
82
- return document.querySelectorAll('r-list-item[href]');
83
- }
84
- get isVariantCollapsible() {
85
- return this.variant === 'modal';
86
- }
87
- /*
88
- * Collapse the panel when a click occurs outside of it (in mobile/when variant is 'modal'):
89
- * Check if the clicked target is not an R-BUTTON element (that is the button[hamburger] that toggles the panel in mobile)
90
- * Check if the click happened outside of the host element
91
- * Ensure the variant is 'modal' and the panel is currently expanded
92
- */
93
- handleClickOutside(event) {
94
- if (event.target.tagName !== 'R-BUTTON' &&
95
- !this.host.contains(event.target) &&
96
- this.isVariantCollapsible &&
97
- !this.isCollapsed) {
98
- this.collapsePanel();
99
- }
100
- }
101
- componentWillLoad() {
102
- this.isCollapsed = this.isVariantCollapsible;
103
- if (this.variant === 'drawer') {
104
- const savedState = localStorage.getItem('panelState');
105
- this.isCollapsed = savedState ? JSON.parse(savedState) : this.isCollapsed;
106
- }
107
- }
108
- componentWillRender() {
109
- window.addEventListener('popstate', this.updateCurrentLocationBound);
110
- window.addEventListener('hashchange', this.updateCurrentLocationBound);
111
- this.highlightCurrentLink();
112
- }
113
- componentDidRender() {
114
- this.highlightCurrentLink();
115
- }
116
- disconnectedCallback() {
117
- window.removeEventListener('popstate', this.updateCurrentLocationBound);
118
- window.removeEventListener('hashchange', this.updateCurrentLocationBound);
119
- }
120
- updateCurrentLocation() {
121
- this.currentLocation = window.location.hash ? window.location.hash.slice(1) : window.location.href;
122
- this.highlightCurrentLink();
123
- }
124
- // Highlight the current link based on the current URL
125
- // Scroll the active link into view
126
- highlightCurrentLink() {
127
- const navLinks = this.getNavLinks();
128
- navLinks.forEach((link) => {
129
- if (link instanceof HTMLElement) {
130
- const linkHref = link.getAttribute('href');
131
- const isActive = linkHref === this.currentLocation || linkHref === window.location.pathname + window.location.hash;
132
- this.updateLinkState(link, isActive);
133
- }
134
- });
135
- const activeLink = document.querySelector('.active');
136
- if (activeLink) {
137
- activeLink.scrollIntoView({
138
- behavior: 'smooth',
139
- block: 'end'
140
- });
141
- }
142
- }
143
- // Update link attributes based on active state
144
- updateLinkState(link, isActive) {
145
- if (isActive) {
146
- link.setAttribute('active', '');
147
- link.classList.add('active');
148
- this.expandParentMenus(link);
149
- this.highlightParent(link);
150
- }
151
- else {
152
- link.removeAttribute('active');
153
- link.classList.remove('active');
154
- }
155
- }
156
- highlightParent(link) {
157
- const parentActive = link.parentElement;
158
- if (parentActive && parentActive.tagName === 'R-LIST-ITEM') {
159
- parentActive.setAttribute('active-parent', '');
160
- }
161
- }
162
- expandParentMenus(link) {
163
- var _a;
164
- let parentPanel = link.closest('r-list-item[has-sub-items]');
165
- while (parentPanel && !this.isCollapsed) {
166
- parentPanel.setAttribute('expanded', '');
167
- parentPanel = (_a = parentPanel.parentElement) === null || _a === void 0 ? void 0 : _a.closest('r-panel');
168
- }
169
- }
170
- render() {
171
- return (index.h(index.Host, { key: '0404a2c3acbba8414d7baffc8c0f861e512fe7cb', role: "navigation", collapsed: this.isCollapsed }, index.h("div", { key: 'b93d1555f060793b7137fd6aac0de2a1a1f35436', class: "r-panel" }, index.h("div", { key: 'b7dd2dee4c145a21a5a963750e8b26ab2d8b9bbe', class: "r-panel--header" }, this.hasHeader && (index.h("a", { key: 'dbb02cd6271fba2a5d4a783a20d5e6d9e34ee734', class: "logo-wrapper", href: this.logoLink }, this.isCollapsed ?
172
- index.h("slot", { name: "logo-collapsed" })
173
- :
174
- index.h("slot", { name: "logo-expanded" }))), this.variant === 'modal' ? (index.h("r-button", { class: "r-panel--trigger", variant: "blank", icon: "cross", rAriaLabel: `${this.labelCollapse}`, onClick: this.handleFullyCollapsedButtonClick })) : this.variant === 'drawer' ? (index.h("r-button", { class: "r-panel--trigger", variant: "blank", icon: "angle-left", rAriaLabel: this.isCollapsed ? `${this.labelExpand}` : `${this.labelCollapse}`, onClick: this.handleSemiCollapsedButtonClick })) : this.variant === 'visible' ? (null) : null), index.h("div", { key: 'bb3d86b7a4b0890709d4a4637eca033ddaec24a6', class: "r-panel--body" }, index.h("slot", { key: '201aa3f616d3d239fc7b0edc23565a6618304ce5' })), this.hasFooter && !this.isCollapsed && (index.h("div", { key: 'a15f34fbb86ad8b16c6d036b885c7c8b13655fc6', class: "r-panel--footer" }, index.h("slot", { key: '41de73edf832d3a5ca93e4f9a79a62780fdcd68b', name: "footer" }))))));
175
- }
176
- get host() { return index.getElement(this); }
177
- static get watchers() { return {
178
- "isCollapsed": ["handleCollapseChange"],
179
- "variant": ["watchVariant"]
180
- }; }
181
- };
182
- Panel.style = panelCss;
183
-
184
- exports.r_panel = Panel;
@@ -1,80 +0,0 @@
1
- 'use strict';
2
-
3
- var index = require('./index-BnETQtSf.js');
4
- var theming = require('./theming-NqxjhVJS.js');
5
- var focusable = require('./focusable-Oll_rmtP.js');
6
- require('./style-observer-D9zSP9wP.js');
7
-
8
- const popoverActionCss = ":host slot{display:contents}::slotted(r-button){--r-button--color:var(--r-text-regular);--r-button--border-width:0;--r-button--background-color:rgba(0,0,0,0);--r-button--slot--position:relative;--r-button--slot--text-decoration:underline;--r-button--padding:10px 2px 18px 2px;--r-button--slot--text-underline-offset:9px}::slotted(r-button:hover:not([disabled]):not([disabled=false])){--r-button--background-color:var(--r-background-interactive-hovered)}::slotted(r-button:active:not([disabled]):not([disabled=false])){--r-button--background-color:var(--r-background-interactive-pressed)}";
9
-
10
- const PopoverAction = class {
11
- constructor(hostRef) {
12
- index.registerInstance(this, hostRef);
13
- this.handleSlotChange = () => {
14
- this.setButtonDefaults();
15
- };
16
- }
17
- connectedCallback() {
18
- // Apply default properties to any buttons
19
- this.setButtonDefaults();
20
- const themeContextElement = this.host.closest('r-popover');
21
- theming.setupInverseThemeAwareness(this.host, themeContextElement);
22
- }
23
- disconnectedCallback() {
24
- const themeContextElement = this.host.closest('r-popover');
25
- theming.stopInverseThemeAwareness(this.host, themeContextElement);
26
- }
27
- setButtonDefaults() {
28
- const buttons = this.host.querySelectorAll('r-button');
29
- // Set default attributes on each button
30
- buttons.forEach(button => {
31
- // Default size="small"
32
- if (!button.hasAttribute('size')) {
33
- button.setAttribute('size', 'small');
34
- }
35
- // Default variant="text-inline"
36
- if (!button.hasAttribute('variant')) {
37
- button.setAttribute('variant', 'text-inline');
38
- }
39
- });
40
- }
41
- /**
42
- * Set focus on the first focusable element within the popover action
43
- * @returns {Promise<HTMLElement | null>} The focused element or null if no element is found
44
- */
45
- async setFocus() {
46
- if (!this.activeElement)
47
- return;
48
- if ('setFocus' in this.activeElement && typeof this.activeElement.setFocus === 'function') {
49
- await this.activeElement.setFocus();
50
- return;
51
- }
52
- this.activeElement.focus();
53
- return this.activeElement;
54
- }
55
- /**
56
- * Remove focus from the first focusable element within the popover action
57
- * @returns {Promise<void>}
58
- */
59
- async setBlur() {
60
- var _a;
61
- (_a = this.activeElement) === null || _a === void 0 ? void 0 : _a.blur();
62
- }
63
- get activeElement() {
64
- return this.getActiveElements[0] || null;
65
- }
66
- /**
67
- * Get all focusable elements within the popover content
68
- * @returns {Promise<HTMLElement[]>} Array of focusable elements
69
- */
70
- async getActiveElements() {
71
- return focusable.focusableElements(this.host);
72
- }
73
- render() {
74
- return (index.h(index.Host, { key: '8e0de158033b48c66aa49930911e1f383c2010ae', slot: "action" }, index.h("slot", { key: 'b9c762d2c1774600a29306559253125abc21cbcd', onSlotchange: this.handleSlotChange })));
75
- }
76
- get host() { return index.getElement(this); }
77
- };
78
- PopoverAction.style = popoverActionCss;
79
-
80
- exports.r_popover_action = PopoverAction;
@@ -1,62 +0,0 @@
1
- 'use strict';
2
-
3
- var index = require('./index-BnETQtSf.js');
4
- var theming = require('./theming-NqxjhVJS.js');
5
- var focusable = require('./focusable-Oll_rmtP.js');
6
- require('./style-observer-D9zSP9wP.js');
7
-
8
- const popoverContentCss = "::slotted(*:first-child){margin-top:0;padding-top:0}::slotted(*:last-child){margin-bottom:0;padding-bottom:0}";
9
-
10
- const PopoverContent = class {
11
- constructor(hostRef) {
12
- index.registerInstance(this, hostRef);
13
- }
14
- connectedCallback() {
15
- const themeContextElement = this.host.closest('r-popover');
16
- theming.setupInverseThemeAwareness(this.host, themeContextElement);
17
- }
18
- disconnectedCallback() {
19
- const themeContextElement = this.host.closest('r-popover');
20
- theming.stopInverseThemeAwareness(this.host, themeContextElement);
21
- }
22
- /**
23
- * Set focus on the first focusable element within the popover content
24
- * @returns {Promise<HTMLElement | null>} The focused element or null if no element is found
25
- */
26
- async setFocus() {
27
- var _a;
28
- if (!this.activeElement)
29
- return Promise.resolve(null);
30
- if ('setFocus' in this.activeElement && typeof this.activeElement.setFocus === 'function') {
31
- await this.activeElement.setFocus();
32
- return Promise.resolve(this.activeElement);
33
- }
34
- (_a = this.activeElement) === null || _a === void 0 ? void 0 : _a.focus();
35
- return Promise.resolve(this.activeElement);
36
- }
37
- /**
38
- * Remove focus from the first focusable element within the popover content
39
- * @returns {Promise<void>}
40
- */
41
- async setBlur() {
42
- var _a;
43
- (_a = this.activeElement) === null || _a === void 0 ? void 0 : _a.blur();
44
- }
45
- get activeElement() {
46
- return this.getActiveElements[0] || null;
47
- }
48
- /**
49
- * Get all focusable elements within the popover content
50
- * @returns {Promise<HTMLElement[]>} Array of focusable elements
51
- */
52
- async getActiveElements() {
53
- return focusable.focusableElements(this.host);
54
- }
55
- render() {
56
- return (index.h(index.Host, { key: 'f05a31b3948094f5f7ca657f4bd81474af2fcb6e', slot: "content", class: "r-typography" }, index.h("slot", { key: '0ecbe8de6c0ec200499aead61fc883804c4c4dd7' })));
57
- }
58
- get host() { return index.getElement(this); }
59
- };
60
- PopoverContent.style = popoverContentCss;
61
-
62
- exports.r_popover_content = PopoverContent;