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