@riverty/web-components 6.1.0 → 6.2.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 (256) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/custom-elements.json +160 -1
  3. package/dist/cjs/{index-DJ4H_bFj.js → index-BnETQtSf.js} +9 -382
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/r-accordion-panel.cjs.entry.js +1 -1
  6. package/dist/cjs/r-accordion-section.cjs.entry.js +1 -1
  7. package/dist/cjs/r-accordion-trigger.cjs.entry.js +1 -1
  8. package/dist/cjs/r-accordion.cjs.entry.js +1 -1
  9. package/dist/cjs/r-alert.cjs.entry.js +9 -6
  10. package/dist/cjs/r-badge.cjs.entry.js +1 -1
  11. package/dist/cjs/r-button.cjs.entry.js +6 -2
  12. package/dist/cjs/r-checkbox-group.cjs.entry.js +1 -1
  13. package/dist/cjs/r-checkbox.cjs.entry.js +4 -4
  14. package/dist/cjs/r-design-system-devtools.cjs.entry.js +1 -1
  15. package/dist/cjs/r-dialog.cjs.entry.js +1 -1
  16. package/dist/cjs/r-hint_2.cjs.entry.js +3 -3
  17. package/dist/cjs/r-icon-button_2.cjs.entry.js +24 -4
  18. package/dist/cjs/r-icon.cjs.entry.js +2 -2
  19. package/dist/cjs/r-illustration.cjs.entry.js +396 -0
  20. package/dist/cjs/r-input-code.cjs.entry.js +34 -12
  21. package/dist/cjs/r-input-date.cjs.entry.js +7 -7
  22. package/dist/cjs/r-input-password.cjs.entry.js +3 -3
  23. package/dist/cjs/r-input-phone-number.cjs.entry.js +4 -4
  24. package/dist/cjs/r-input.cjs.entry.js +5 -4
  25. package/dist/cjs/r-list-item.cjs.entry.js +1 -1
  26. package/dist/cjs/r-pagination.cjs.entry.js +56 -50
  27. package/dist/cjs/r-panel.cjs.entry.js +3 -3
  28. package/dist/cjs/r-popover-action.cjs.entry.js +2 -2
  29. package/dist/cjs/r-popover-content.cjs.entry.js +2 -2
  30. package/dist/cjs/r-popover-headline.cjs.entry.js +2 -2
  31. package/dist/cjs/r-popover-trigger.cjs.entry.js +2 -2
  32. package/dist/cjs/r-popover.cjs.entry.js +46 -5
  33. package/dist/cjs/r-progress-bar.cjs.entry.js +2 -2
  34. package/dist/cjs/r-radio-button-description.cjs.entry.js +2 -2
  35. package/dist/cjs/r-radio-button-leading.cjs.entry.js +2 -2
  36. package/dist/cjs/r-radio-button-title.cjs.entry.js +2 -2
  37. package/dist/cjs/r-radio-button-trailing.cjs.entry.js +2 -2
  38. package/dist/cjs/r-radio-button.cjs.entry.js +8 -7
  39. package/dist/cjs/r-radio-group.cjs.entry.js +83 -10
  40. package/dist/cjs/r-select-option.cjs.entry.js +2 -2
  41. package/dist/cjs/r-select.cjs.entry.js +6 -4
  42. package/dist/cjs/r-skip-link.cjs.entry.js +2 -2
  43. package/dist/cjs/r-stepper-item.cjs.entry.js +19 -4
  44. package/dist/cjs/r-stepper.cjs.entry.js +76 -3
  45. package/dist/cjs/r-tab-panel.cjs.entry.js +2 -2
  46. package/dist/cjs/r-tab.cjs.entry.js +3 -3
  47. package/dist/cjs/r-tabs-list.cjs.entry.js +4 -4
  48. package/dist/cjs/r-tabs.cjs.entry.js +2 -2
  49. package/dist/cjs/r-textarea.cjs.entry.js +1 -1
  50. package/dist/cjs/r-toast-group.cjs.entry.js +13 -4
  51. package/dist/cjs/r-toast.cjs.entry.js +87 -18
  52. package/dist/cjs/web-components.cjs.js +2 -2
  53. package/dist/collection/collection-manifest.json +1 -0
  54. package/dist/collection/components/alert/alert.css +4 -3
  55. package/dist/collection/components/alert/alert.js +7 -4
  56. package/dist/collection/components/button/button.js +30 -1
  57. package/dist/collection/components/button/exports.js +1 -0
  58. package/dist/collection/components/checkbox/checkbox.js +3 -3
  59. package/dist/collection/components/icon/exports.js +1 -1
  60. package/dist/collection/components/icon/icon.js +1 -1
  61. package/dist/collection/components/icon/riverty-kit.js +1 -1
  62. package/dist/collection/components/illustration/data.js +112 -0
  63. package/dist/collection/components/illustration/exports.js +3 -0
  64. package/dist/collection/components/illustration/illustration.js +540 -0
  65. package/dist/collection/components/illustration/illustration.scss +56 -0
  66. package/dist/collection/components/illustration/illustrations-ui-kit.js +2 -0
  67. package/dist/collection/components/input/exports.js +1 -0
  68. package/dist/collection/components/input/input.css +3 -0
  69. package/dist/collection/components/input/input.js +47 -2
  70. package/dist/collection/components/input-code/input-code.css +6 -0
  71. package/dist/collection/components/input-code/input-code.js +48 -10
  72. package/dist/collection/components/input-date/input-date.js +6 -6
  73. package/dist/collection/components/input-password/input-password.js +2 -2
  74. package/dist/collection/components/input-phone-number/input-phone-number.js +3 -3
  75. package/dist/collection/components/label/label.js +2 -2
  76. package/dist/collection/components/pagination/pagination.css +33 -72
  77. package/dist/collection/components/pagination/pagination.js +194 -48
  78. package/dist/collection/components/panel/panel.js +2 -2
  79. package/dist/collection/components/popover/popover.css +0 -1
  80. package/dist/collection/components/popover/popover.js +44 -3
  81. package/dist/collection/components/popover-action/popover-action.js +1 -1
  82. package/dist/collection/components/popover-content/popover-content.js +1 -1
  83. package/dist/collection/components/popover-headline/popover-headline.js +1 -1
  84. package/dist/collection/components/popover-trigger/popover-trigger.js +1 -1
  85. package/dist/collection/components/progress-bar/progress-bar.js +1 -1
  86. package/dist/collection/components/radio-button/radio-button.js +7 -6
  87. package/dist/collection/components/radio-button-description/radio-button-description.js +1 -1
  88. package/dist/collection/components/radio-button-leading/radio-button-leading.js +1 -1
  89. package/dist/collection/components/radio-button-title/radio-button-title.js +1 -1
  90. package/dist/collection/components/radio-button-trailing/radio-button-trailing.js +1 -1
  91. package/dist/collection/components/radio-group/radio-group.css +4 -1
  92. package/dist/collection/components/radio-group/radio-group.js +100 -8
  93. package/dist/collection/components/select/select.js +5 -3
  94. package/dist/collection/components/select-option/select-option.js +1 -1
  95. package/dist/collection/components/skip-link/skip-link.js +1 -1
  96. package/dist/collection/components/stepper/stepper.css +4 -1
  97. package/dist/collection/components/stepper/stepper.js +125 -1
  98. package/dist/collection/components/stepper-item/stepper-item.css +22 -9
  99. package/dist/collection/components/stepper-item/stepper-item.js +36 -2
  100. package/dist/collection/components/tab/tab.js +2 -2
  101. package/dist/collection/components/tab-panel/tab-panel.js +1 -1
  102. package/dist/collection/components/tabs/tabs.js +1 -1
  103. package/dist/collection/components/tabs-list/tabs-list.js +3 -3
  104. package/dist/collection/components/toast/toast.css +9 -9
  105. package/dist/collection/components/toast/toast.js +109 -21
  106. package/dist/collection/components/toast-group/toast-group.css +5 -11
  107. package/dist/collection/components/toast-group/toast-group.js +12 -3
  108. package/dist/collection/components/tooltip/tooltip.js +23 -3
  109. package/dist/esm/{index-Da7qOBFr.js → index-CTxpqopm.js} +9 -382
  110. package/dist/esm/loader.js +3 -3
  111. package/dist/esm/r-accordion-panel.entry.js +1 -1
  112. package/dist/esm/r-accordion-section.entry.js +1 -1
  113. package/dist/esm/r-accordion-trigger.entry.js +1 -1
  114. package/dist/esm/r-accordion.entry.js +1 -1
  115. package/dist/esm/r-alert.entry.js +9 -6
  116. package/dist/esm/r-badge.entry.js +1 -1
  117. package/dist/esm/r-button.entry.js +6 -2
  118. package/dist/esm/r-checkbox-group.entry.js +1 -1
  119. package/dist/esm/r-checkbox.entry.js +4 -4
  120. package/dist/esm/r-design-system-devtools.entry.js +1 -1
  121. package/dist/esm/r-dialog.entry.js +1 -1
  122. package/dist/esm/r-hint_2.entry.js +3 -3
  123. package/dist/esm/r-icon-button_2.entry.js +24 -4
  124. package/dist/esm/r-icon.entry.js +2 -2
  125. package/dist/esm/r-illustration.entry.js +394 -0
  126. package/dist/esm/r-input-code.entry.js +34 -12
  127. package/dist/esm/r-input-date.entry.js +7 -7
  128. package/dist/esm/r-input-password.entry.js +3 -3
  129. package/dist/esm/r-input-phone-number.entry.js +4 -4
  130. package/dist/esm/r-input.entry.js +5 -4
  131. package/dist/esm/r-list-item.entry.js +1 -1
  132. package/dist/esm/r-pagination.entry.js +56 -50
  133. package/dist/esm/r-panel.entry.js +3 -3
  134. package/dist/esm/r-popover-action.entry.js +2 -2
  135. package/dist/esm/r-popover-content.entry.js +2 -2
  136. package/dist/esm/r-popover-headline.entry.js +2 -2
  137. package/dist/esm/r-popover-trigger.entry.js +2 -2
  138. package/dist/esm/r-popover.entry.js +46 -5
  139. package/dist/esm/r-progress-bar.entry.js +2 -2
  140. package/dist/esm/r-radio-button-description.entry.js +2 -2
  141. package/dist/esm/r-radio-button-leading.entry.js +2 -2
  142. package/dist/esm/r-radio-button-title.entry.js +2 -2
  143. package/dist/esm/r-radio-button-trailing.entry.js +2 -2
  144. package/dist/esm/r-radio-button.entry.js +8 -7
  145. package/dist/esm/r-radio-group.entry.js +83 -10
  146. package/dist/esm/r-select-option.entry.js +2 -2
  147. package/dist/esm/r-select.entry.js +6 -4
  148. package/dist/esm/r-skip-link.entry.js +2 -2
  149. package/dist/esm/r-stepper-item.entry.js +19 -4
  150. package/dist/esm/r-stepper.entry.js +76 -3
  151. package/dist/esm/r-tab-panel.entry.js +2 -2
  152. package/dist/esm/r-tab.entry.js +3 -3
  153. package/dist/esm/r-tabs-list.entry.js +4 -4
  154. package/dist/esm/r-tabs.entry.js +2 -2
  155. package/dist/esm/r-textarea.entry.js +1 -1
  156. package/dist/esm/r-toast-group.entry.js +13 -4
  157. package/dist/esm/r-toast.entry.js +87 -18
  158. package/dist/esm/web-components.js +3 -3
  159. package/dist/types/components/alert/alert.d.ts +1 -0
  160. package/dist/types/components/button/button.d.ts +8 -1
  161. package/dist/types/components/button/exports.d.ts +2 -0
  162. package/dist/types/components/icon/exports.d.ts +1 -1
  163. package/dist/types/components/icon/riverty-kit.d.ts +1 -1
  164. package/dist/types/components/illustration/data.d.ts +52 -0
  165. package/dist/types/components/illustration/exports.d.ts +23 -0
  166. package/dist/types/components/illustration/illustration.d.ts +51 -0
  167. package/dist/types/components/illustration/illustrations-ui-kit.d.ts +21 -0
  168. package/dist/types/components/input/exports.d.ts +2 -0
  169. package/dist/types/components/input/input.d.ts +15 -1
  170. package/dist/types/components/input-code/input-code.d.ts +15 -1
  171. package/dist/types/components/pagination/pagination.d.ts +19 -0
  172. package/dist/types/components/popover/popover.d.ts +9 -0
  173. package/dist/types/components/radio-group/radio-group.d.ts +16 -0
  174. package/dist/types/components/stepper/stepper.d.ts +11 -0
  175. package/dist/types/components/stepper-item/stepper-item.d.ts +7 -0
  176. package/dist/types/components/toast/toast.d.ts +10 -4
  177. package/dist/types/components/tooltip/tooltip.d.ts +5 -0
  178. package/dist/types/components.d.ts +273 -7
  179. package/dist/web-components/p-02b22f8e.entry.js +1 -0
  180. package/dist/web-components/{p-d054eb4d.entry.js → p-075a8dc8.entry.js} +1 -1
  181. package/dist/web-components/{p-8a66d20c.entry.js → p-0a34d33b.entry.js} +1 -1
  182. package/dist/web-components/{p-8c31cbd5.entry.js → p-10cc9983.entry.js} +1 -1
  183. package/dist/web-components/{p-d7726e46.entry.js → p-253068b9.entry.js} +1 -1
  184. package/dist/web-components/{p-3884c6e7.entry.js → p-3b8c8951.entry.js} +1 -1
  185. package/dist/web-components/{p-550e2237.entry.js → p-3beacdab.entry.js} +1 -1
  186. package/dist/web-components/p-4214867d.entry.js +1 -0
  187. package/dist/web-components/{p-3f60c6c0.entry.js → p-42c857e9.entry.js} +1 -1
  188. package/dist/web-components/{p-7fed6f4d.entry.js → p-44f87e16.entry.js} +1 -1
  189. package/dist/web-components/p-477614c5.entry.js +1 -0
  190. package/dist/web-components/{p-1da75540.entry.js → p-495ba3d2.entry.js} +1 -1
  191. package/dist/web-components/{p-19407a14.entry.js → p-4de76291.entry.js} +1 -1
  192. package/dist/web-components/{p-cd5daad2.entry.js → p-55600d47.entry.js} +1 -1
  193. package/dist/web-components/{p-c95b6470.entry.js → p-562051aa.entry.js} +1 -1
  194. package/dist/web-components/p-5b850e0f.entry.js +1 -0
  195. package/dist/web-components/p-6013dfc8.entry.js +1 -0
  196. package/dist/web-components/{p-6cc2ea2c.entry.js → p-62e7ae04.entry.js} +1 -1
  197. package/dist/web-components/p-71519d37.entry.js +1 -0
  198. package/dist/web-components/p-88f7b47f.entry.js +1 -0
  199. package/dist/web-components/p-8975a6a3.entry.js +1 -0
  200. package/dist/web-components/{p-6bb44ec6.entry.js → p-8e125826.entry.js} +1 -1
  201. package/dist/web-components/p-91cc0bde.entry.js +1 -0
  202. package/dist/web-components/{p-0347feff.entry.js → p-93435fcd.entry.js} +1 -1
  203. package/dist/web-components/p-947969d7.entry.js +1 -0
  204. package/dist/web-components/{p-cdd88c5a.entry.js → p-95396b5c.entry.js} +1 -1
  205. package/dist/web-components/p-9de3a1a5.entry.js +1 -0
  206. package/dist/web-components/p-9f583ed1.entry.js +1 -0
  207. package/dist/web-components/p-CTxpqopm.js +2 -0
  208. package/dist/web-components/{p-5eeb7002.entry.js → p-a1086abe.entry.js} +1 -1
  209. package/dist/web-components/{p-f9d5004c.entry.js → p-bbba6d79.entry.js} +1 -1
  210. package/dist/web-components/{p-c478712b.entry.js → p-bde44ec4.entry.js} +1 -1
  211. package/dist/web-components/p-bfc7e6c0.entry.js +1 -0
  212. package/dist/web-components/p-c1030394.entry.js +1 -0
  213. package/dist/web-components/p-c1f59ed1.entry.js +1 -0
  214. package/dist/web-components/{p-26ef77d6.entry.js → p-c80a5541.entry.js} +1 -1
  215. package/dist/web-components/{p-9ef1bbee.entry.js → p-c96ee61a.entry.js} +1 -1
  216. package/dist/web-components/{p-8dac326b.entry.js → p-caf8f067.entry.js} +1 -1
  217. package/dist/web-components/p-cc363c3d.entry.js +1 -0
  218. package/dist/web-components/p-cf4ff357.entry.js +1 -0
  219. package/dist/web-components/p-d0310ed4.entry.js +1 -0
  220. package/dist/web-components/p-d1412932.entry.js +1 -0
  221. package/dist/web-components/{p-62b788bf.entry.js → p-d2447e30.entry.js} +1 -1
  222. package/dist/web-components/p-dc9cca06.entry.js +1 -0
  223. package/dist/web-components/p-e5b943a2.entry.js +1 -0
  224. package/dist/web-components/{p-4cc58c6a.entry.js → p-e67b13df.entry.js} +1 -1
  225. package/dist/web-components/p-efec231a.entry.js +1 -0
  226. package/dist/web-components/{p-4595fa8e.entry.js → p-f867e4c3.entry.js} +1 -1
  227. package/dist/web-components/web-components.esm.js +1 -1
  228. package/package.json +5 -2
  229. package/dist/collection/components/icon/bundled-icons/all-kit.json +0 -1
  230. package/dist/collection/components/icon/bundled-icons/riverty-kit.json +0 -1
  231. package/dist/web-components/bundled-icons/all-kit.json +0 -1
  232. package/dist/web-components/bundled-icons/riverty-kit.json +0 -1
  233. package/dist/web-components/p-159822fe.entry.js +0 -1
  234. package/dist/web-components/p-4f261b63.entry.js +0 -1
  235. package/dist/web-components/p-50893211.entry.js +0 -1
  236. package/dist/web-components/p-589baaf9.entry.js +0 -1
  237. package/dist/web-components/p-60341de2.entry.js +0 -1
  238. package/dist/web-components/p-63fd817d.entry.js +0 -1
  239. package/dist/web-components/p-67fa3f84.entry.js +0 -1
  240. package/dist/web-components/p-70784685.entry.js +0 -1
  241. package/dist/web-components/p-7ce57332.entry.js +0 -1
  242. package/dist/web-components/p-92c7cf33.entry.js +0 -1
  243. package/dist/web-components/p-Da7qOBFr.js +0 -2
  244. package/dist/web-components/p-a7d22c76.entry.js +0 -1
  245. package/dist/web-components/p-b96d59ca.entry.js +0 -1
  246. package/dist/web-components/p-b98ab649.entry.js +0 -1
  247. package/dist/web-components/p-ba801820.entry.js +0 -1
  248. package/dist/web-components/p-bfc8c077.entry.js +0 -1
  249. package/dist/web-components/p-c05b05da.entry.js +0 -1
  250. package/dist/web-components/p-c1e748f2.entry.js +0 -1
  251. package/dist/web-components/p-d433a828.entry.js +0 -1
  252. package/dist/web-components/p-d819c8e5.entry.js +0 -1
  253. package/dist/web-components/p-e4dc60f0.entry.js +0 -1
  254. package/dist/web-components/p-f7adb875.entry.js +0 -1
  255. package/dist/collection/components/icon/{icon-data.js → data.js} +0 -0
  256. package/dist/types/components/icon/{icon-data.d.ts → data.d.ts} +1 -1
@@ -282,7 +282,6 @@ export class RInput {
282
282
  const regex = new RegExp(this.pattern, 'u');
283
283
  return regex.test(this.value);
284
284
  }
285
- ;
286
285
  componentWillLoad() {
287
286
  this.initial['value'] = this.value;
288
287
  this.initial['invalid'] = this.invalid;
@@ -315,7 +314,7 @@ export class RInput {
315
314
  this.setValue(this.nativeElement.value);
316
315
  }
317
316
  render() {
318
- const { name, placeholder, required, fieldIndicator, maxlength, minlength, min, max, value, disabled, form, pattern, invalid, valid, hint, label, internal, uniqueId, autocomplete, readonly, autofocus, passwordrules, enterkeyhint, validityMarker } = this;
317
+ const { name, placeholder, required, fieldIndicator, maxlength, minlength, min, max, value, disabled, form, pattern, invalid, valid, hint, label, internal, uniqueId, autocomplete, readonly, autofocus, passwordrules, enterkeyhint, spellcheck, autocapitalize, validityMarker } = this;
319
318
  const inputAttrs = {
320
319
  disabled,
321
320
  readonly,
@@ -333,6 +332,8 @@ export class RInput {
333
332
  autofocus: autofocus || null,
334
333
  passwordrules,
335
334
  enterkeyhint,
335
+ autocapitalize,
336
+ spellcheck,
336
337
  inputmode: this.inputmode || null,
337
338
  id: uniqueId,
338
339
  'data-value': value,
@@ -1058,6 +1059,50 @@ export class RInput {
1058
1059
  "setter": false,
1059
1060
  "reflect": false
1060
1061
  },
1062
+ "spellcheck": {
1063
+ "type": "boolean",
1064
+ "attribute": "spellcheck",
1065
+ "mutable": true,
1066
+ "complexType": {
1067
+ "original": "boolean",
1068
+ "resolved": "boolean",
1069
+ "references": {}
1070
+ },
1071
+ "required": false,
1072
+ "optional": true,
1073
+ "docs": {
1074
+ "tags": [],
1075
+ "text": "Controls browser spell-checking for text input.\nWhen true, enables spell-checking; when false, disables it.\nBrowser default behavior applies when not specified."
1076
+ },
1077
+ "getter": false,
1078
+ "setter": false,
1079
+ "reflect": true
1080
+ },
1081
+ "autocapitalize": {
1082
+ "type": "string",
1083
+ "attribute": "autocapitalize",
1084
+ "mutable": false,
1085
+ "complexType": {
1086
+ "original": "AutocapitalizeType",
1087
+ "resolved": "\"characters\" | \"none\" | \"off\" | \"on\" | \"sentences\" | \"words\"",
1088
+ "references": {
1089
+ "AutocapitalizeType": {
1090
+ "location": "import",
1091
+ "path": "./exports",
1092
+ "id": "src/components/input/exports.ts::AutocapitalizeType"
1093
+ }
1094
+ }
1095
+ },
1096
+ "required": false,
1097
+ "optional": true,
1098
+ "docs": {
1099
+ "tags": [],
1100
+ "text": "Controls automatic capitalization of text input on mobile devices.\n- `off` or `none`: No automatic capitalization\n- `on` or `sentences`: Capitalize first letter of each sentence (default for most text inputs)\n- `words`: Capitalize first letter of each word\n- `characters`: Capitalize all characters"
1101
+ },
1102
+ "getter": false,
1103
+ "setter": false,
1104
+ "reflect": false
1105
+ },
1061
1106
  "passwordrules": {
1062
1107
  "type": "string",
1063
1108
  "attribute": "passwordrules",
@@ -11,6 +11,12 @@
11
11
  display: flex;
12
12
  margin-left: auto;
13
13
  }
14
+ :host .r-form-field {
15
+ display: flex;
16
+ align-items: center;
17
+ justify-content: start;
18
+ gap: 1rem;
19
+ }
14
20
 
15
21
  :host([readonly]:not([readonly=false])) {
16
22
  --r-input-code--container--background-color: var(--r-background-soft, #f3f1f0);
@@ -28,11 +28,35 @@ export class InputCode {
28
28
  this.autocomplete = 'one-time-code';
29
29
  /** Holds the current values of each input box */
30
30
  this.values = [];
31
+ /** Tracks whether the component was previously in a complete state */
32
+ this.wasComplete = false;
33
+ /** Tracks the last completed value to detect changes */
34
+ this.lastCompletedValue = '';
31
35
  /** Validity state passed from validateFormElement function after validation */
32
36
  this.validityState = '';
33
37
  /** Validity message passed from validateFormElement function after validation */
34
38
  this.validityMessage = '';
35
39
  this.inputs = [];
40
+ /**
41
+ * Checks if all segments are filled and emits rComplete event when:
42
+ * 1. Transitioning from incomplete to complete
43
+ * 2. Complete and value has changed from previous completed value
44
+ */
45
+ this.checkAndEmitCompletion = () => {
46
+ const isFullLength = this.value.length === this.length;
47
+ const isNoEmptySegments = this.values.every(val => val !== '');
48
+ const isComplete = isFullLength && isNoEmptySegments;
49
+ // Emit when transitioning to complete OR when complete with a different value
50
+ if (isComplete && (!this.wasComplete || this.value !== this.lastCompletedValue)) {
51
+ this.wasComplete = true;
52
+ this.lastCompletedValue = this.value;
53
+ this.rComplete.emit({ value: this.value, isComplete: true });
54
+ }
55
+ else if (!isComplete && this.wasComplete) {
56
+ // Reset the flag when becoming incomplete
57
+ this.wasComplete = false;
58
+ }
59
+ };
36
60
  this.handleInput = (index, event) => {
37
61
  var _a;
38
62
  if (this.readonly)
@@ -277,6 +301,7 @@ export class InputCode {
277
301
  }
278
302
  handleValuesChange() {
279
303
  this.value = this.values.join('');
304
+ this.checkAndEmitCompletion();
280
305
  }
281
306
  handleLengthChange(newLength) {
282
307
  // Adjust values array when length changes
@@ -356,9 +381,6 @@ export class InputCode {
356
381
  return `${uniqueId}-hint`;
357
382
  return null;
358
383
  }
359
- get hasTrailingSlot() {
360
- return !!this.host.querySelector('[slot="trailing"]');
361
- }
362
384
  componentWillLoad() {
363
385
  this.setValue(this.value);
364
386
  }
@@ -380,15 +402,14 @@ export class InputCode {
380
402
  id: `${uniqueId}-label`,
381
403
  fieldIndicator
382
404
  } : {};
383
- return (h(Host, { key: '671a85d08004711f7d9ce951ebb8429a8d317189', value: this.value, onClick: this.onHostClick }, h("div", { key: '14d0018cdb5b9b40e655fd009582d41530d33ef6', class: "r-input-code--label-container" }, h("label", { key: '76986e468b00209831044af52841dd71a1036c71', htmlFor: uniqueId }, label ?
405
+ return (h(Host, { key: 'c7e8e45bf54b060eaeec903857ec842f5f5909ff', value: this.value, onClick: this.onHostClick }, h("div", { key: '965e94721f83a4e0c2a21d6ead371085b5faefef', class: "r-input-code--label-container" }, h("label", { key: '4a24884c394cbdf28f98f71dd166c7f02fd6b240', htmlFor: uniqueId }, label ?
384
406
  h("r-label", Object.assign({}, labelAttr), label)
385
407
  :
386
- h("slot", { name: "label" })), h("slot", { key: 'efb5b41658481d1da3c151294ee3532eaf16895a', name: "popover" })), hint &&
387
- h("r-hint", { key: 'f2d8731eff9bbb261589aa6296116870691e2f2e', id: `${uniqueId}-hint`, role: "note" }, hint), h("div", { key: '063cf9b6609b6b89cf3820deeb32e95c1de81d13', class: "r-input-code--container", role: "group", "aria-labelledby": `${uniqueId}-label`, "aria-describedby": this.groupDescribedby }, h("slot", { key: 'ae245434620341e683a3e0ae8f8e0ec741d7bc80', name: "leading" }), Array.from({ length: this.length }).map((_, i) => (h("input", { class: "r-input-code--input", key: i, id: `${uniqueId}-input-section-${i}`, "aria-label": `${this.ariaCharacterLabel || 'Character'}: ${i + 1}`, "aria-invalid": `${this.invalid || false}`, value: this.values[i], ref: el => this.inputs[i] = el, maxlength: 1, disabled: this.disabled, required: this.required, readonly: readonly, inputmode: this.inputmode, enterkeyhint: this.enterkeyhint, autocomplete: this.autocomplete, onInput: this.createInputHandler(i), onKeyDown: this.createKeyDownHandler(i), onPaste: this.handlePaste }))), h("input", Object.assign({ key: '617e1b328bce05693055d94507ec22470a2b4980', type: "hidden" }, inputAttrs, { value: this.values.join(''), ref: el => this.nativeElement = el })), h("div", { key: '3b2f16c153cbb026b9cdb87ef58c805f893affb5', class: "r-input-code--trailing" }, this.readonly &&
388
- h("r-icon", { key: '2ad664723e287702eeb9c1a77eebc75d7440d076', class: "r-input-code--readonly-icon", name: "pen-disabled", size: "s" }), this.hasTrailingSlot &&
389
- h("slot", { key: 'f04d690b12b0436eb76bf38d7bd6541337eec39b', name: "trailing" }, valid &&
390
- h("r-icon", { key: 'c6854eeffa43d5f5bb5b3cf962f2923fd30f806a', name: "circled-check", size: "s", color: "var(--r-status-success-regular)" })))), h("slot", { key: 'd2e94df788dee345109bee395be72efa27a70452', name: "message" }, this.hasMessage &&
391
- h("r-hint", { key: 'fa142415d2b84dea239b1bc99a98a06ffe37005c', "aria-live": "polite", id: `${uniqueId}-message`, variant: "error" }, this.message))));
408
+ h("slot", { name: "label" })), h("slot", { key: '471642b0c4c01243fb26eacec958418ef09af962', name: "popover" })), hint &&
409
+ h("r-hint", { key: 'efdb3d68d72666260bce9d6e9e6ba9853225a473', id: `${uniqueId}-hint`, role: "note" }, hint), h("div", { key: '2dc16569529ac0ec9e95cfef8f353efbf2f0e929', class: "r-form-field" }, h("slot", { key: '7e3d7abc1931537ce66f6bd1c716f4046f2ca06e', name: "prefix" }), h("div", { key: '0e29ba435fe9de7b87cad793be8dc11301bf552e', class: "r-input-code--container", role: "group", "aria-labelledby": `${uniqueId}-label`, "aria-describedby": this.groupDescribedby }, h("slot", { key: 'eef6bda22af5d2e21f442bb010d79a60a05b4d69', name: "leading" }), Array.from({ length: this.length }).map((_, i) => (h("input", { class: "r-input-code--input", key: i, id: `${uniqueId}-input-section-${i}`, "aria-label": `${this.ariaCharacterLabel || 'Character'}: ${i + 1}`, "aria-invalid": `${this.invalid || false}`, value: this.values[i], ref: el => this.inputs[i] = el, maxlength: 1, disabled: this.disabled, required: this.required, readonly: readonly, inputmode: this.inputmode, enterkeyhint: this.enterkeyhint, autocomplete: this.autocomplete, onInput: this.createInputHandler(i), onKeyDown: this.createKeyDownHandler(i), onPaste: this.handlePaste }))), h("input", Object.assign({ key: 'a2185f3e1b5f83e55fa5997662b55002bb251b4c', type: "hidden" }, inputAttrs, { value: this.values.join(''), ref: el => this.nativeElement = el })), h("div", { key: '7586c976c27a2c42e9d76c1cf6724ad93beac0ae', class: "r-input-code--trailing" }, this.readonly &&
410
+ h("r-icon", { key: 'b2829cc59cd037f62e33f980fa65887e80059984', class: "r-input-code--readonly-icon", name: "pen-disabled", size: "s" }), h("slot", { key: 'e7b996a710b4f2f5f867295518b96952d6d60444', name: "trailing" }, valid &&
411
+ h("r-icon", { key: '3064219d8e6846df86dc934027a561f265fcc82f', name: "circled-check", size: "s", color: "var(--r-status-success-regular)" })))), h("slot", { key: 'de7164a83a2d8c6b8bf97583d4407cc7be7e0db4', name: "suffix" })), h("slot", { key: 'e12c343b123421fec18546f60ccdb2e4d6ceab5b', name: "message" }, this.hasMessage &&
412
+ h("r-hint", { key: '7fcfab6c47d841a0b695805b61f4a12a164fca3c', "aria-live": "polite", id: `${uniqueId}-message`, variant: "error" }, this.message))));
392
413
  }
393
414
  static get is() { return "r-input-code"; }
394
415
  static get encapsulation() { return "shadow"; }
@@ -861,6 +882,8 @@ export class InputCode {
861
882
  static get states() {
862
883
  return {
863
884
  "values": {},
885
+ "wasComplete": {},
886
+ "lastCompletedValue": {},
864
887
  "validityState": {},
865
888
  "validityMessage": {}
866
889
  };
@@ -916,6 +939,21 @@ export class InputCode {
916
939
  }
917
940
  }
918
941
  }
942
+ }, {
943
+ "method": "rComplete",
944
+ "name": "rComplete",
945
+ "bubbles": true,
946
+ "cancelable": true,
947
+ "composed": true,
948
+ "docs": {
949
+ "tags": [],
950
+ "text": "Emits when all segments are filled with values"
951
+ },
952
+ "complexType": {
953
+ "original": "{ value: string, isComplete: boolean }",
954
+ "resolved": "{ value: string; isComplete: boolean; }",
955
+ "references": {}
956
+ }
919
957
  }];
920
958
  }
921
959
  static get methods() {
@@ -451,14 +451,14 @@ export class InputDate {
451
451
  id: `${uniqueId}-label`,
452
452
  fieldIndicator
453
453
  } : {};
454
- return (h(Host, { key: '1a8a9175148f43758ec6b9d905c4bd2f619ffd7f', onClick: this.onHostClick, "data-touched": `${this.touched}`, "data-dirty": `${this.dirty}` }, h("fieldset", Object.assign({ key: 'fb004332d8578b8da74df643bd93f93d062973bb', class: "r-input-date" }, groupAttrs), h("div", { key: '128e65638dc21d95c8b4b92669b0bd6733a653f6', class: "r-input-date--legend-container" }, h("legend", { key: '63e7e858c38930fecbe71d819f1a0b49bf711911', class: "r-input-date--legend" }, h("label", { key: 'ccd6a5434f5df91bf9b2c121bb182c152302d864', htmlFor: uniqueId }, label ?
454
+ return (h(Host, { key: '1fe0cc5598857ca719ef334807da6e2540c4a399', onClick: this.onHostClick, "data-touched": `${this.touched}`, "data-dirty": `${this.dirty}` }, h("fieldset", Object.assign({ key: 'a7ad4075376fc3d08cc59be2f4340c9327e05f82', class: "r-input-date" }, groupAttrs), h("div", { key: 'ec18205fad6069d54715807529a145d03f8bdebb', class: "r-input-date--legend-container" }, h("legend", { key: '59c4384b37a3a845eb5cb0c2955b8a12777b2320', class: "r-input-date--legend" }, h("label", { key: '8b5502aeb26daa26d3f32d3669406b87e2eb29ca', htmlFor: uniqueId }, label ?
455
455
  h("r-label", Object.assign({}, labelAttr), label)
456
456
  :
457
- h("slot", { name: "label" }))), h("slot", { key: '4be5c643d1b0532d27f4b82692cb6ca937291d6b', name: "popover" })), hint &&
458
- h("r-hint", { key: '07a912c146dff97ef991a6e375f4aeb8cd0ba45e', id: `${uniqueId}-hint`, role: "note" }, hint), h("div", { key: '386dfb87cface9333c93d5fe8165cbe52a9a83c4', class: "r-input-date--container" }, h("r-icon", { key: '9ff075723ac54f6d7c2325ba59f833422404bee6', name: "calendar", size: "s", class: "r-input-date--calendar-icon" }), h("div", { key: 'ebcb76a92ab1591c3128a60d6620bea5b0c517ec', class: "r-input-date--inputs" }, this.inputOrder.map((input, i) => (h(Fragment, null, h("input", Object.assign({ class: "r-input-date--input" }, this.getInputAttrs(input), { key: input, value: this.getDateComponent(input), onInput: this.createInputHandler(input, i), onChange: this.createChangeHandler(input), onClick: this.onInputClick, onBlur: this.handleBlur, onKeyDown: this.createKeyDownHandler(i), onPaste: this.handlePaste })), i < this.inputOrder.length - 1 &&
459
- h("span", { "aria-hidden": "true", class: "r-input-date--delimiter" }, this.delimiter)))), h("input", Object.assign({ key: 'e5736ffa215662436c539332be1414cc409ce448', type: "hidden" }, dateInputAttrs, { value: this.value, ref: (el) => this.nativeElement = el }))), h("div", { key: '45ccffbb4111f2fd906d9b687f62f4adc83b62aa', class: "r-input-date--trailing" }, this.readonly &&
460
- h("r-icon", { key: '3a5433e3d601a83154687bdd55feeeef0ef04215', class: "r-input-date--readonly-icon", name: "pen-disabled", size: "s" }), valid &&
461
- h("r-icon", { key: '03de3e49b8b51690e4fb6c2edbb7a53ca1a71f76', name: "circled-check", size: "s", color: "var(--r-status-success-regular)" }), this.hasTrailingSlot && h("slot", { key: 'db4911a4421b296effdd37ca08c96d8a0096e5e6', name: "trailing" }))), h("div", { key: 'd21f19188462be93812487702eb8a07fd3a91cea', id: `${uniqueId}-message`, "aria-live": "polite", class: "r-input-date--message" }, this.hasMessage && h("r-hint", { key: '6937f2d48a634308c97d33e59daa0a7242bd39fd', variant: "error" }, this.message)))));
457
+ h("slot", { name: "label" }))), h("slot", { key: '7a5b5ad6401bb8199d94c36383e4219fd3556db5', name: "popover" })), hint &&
458
+ h("r-hint", { key: '1226c6002eb581811e419db7518e02d5fbc18b5b', id: `${uniqueId}-hint`, role: "note" }, hint), h("div", { key: '5581e3cbb731a4a23a243118f2840563352e6df1', class: "r-input-date--container" }, h("r-icon", { key: 'e8b52fc6fcb1d4f22fd24e7e26e55218a1b6ee80', name: "calendar", size: "s", class: "r-input-date--calendar-icon" }), h("div", { key: '4b97bab9a65f4a9d1958287f23940b7ee4d7143e', class: "r-input-date--inputs" }, this.inputOrder.map((input, i) => (h(Fragment, null, h("input", Object.assign({ class: "r-input-date--input" }, this.getInputAttrs(input), { key: input, value: this.getDateComponent(input), onInput: this.createInputHandler(input, i), onChange: this.createChangeHandler(input), onClick: this.onInputClick, onBlur: this.handleBlur, onKeyDown: this.createKeyDownHandler(i), onPaste: this.handlePaste })), i < this.inputOrder.length - 1 &&
459
+ h("span", { "aria-hidden": "true", class: "r-input-date--delimiter" }, this.delimiter)))), h("input", Object.assign({ key: 'fdebeb8a48fd0fc10233166db94e928fc4b424de', type: "hidden" }, dateInputAttrs, { value: this.value, ref: (el) => this.nativeElement = el }))), h("div", { key: '4324ae4593512d0bd16f843e60c2058859cc1ba1', class: "r-input-date--trailing" }, this.readonly &&
460
+ h("r-icon", { key: '673fb144899c62d9b5d9267b35ce1f197b1f6549', class: "r-input-date--readonly-icon", name: "pen-disabled", size: "s" }), valid &&
461
+ h("r-icon", { key: '26828285dad4ccae6ebc8d29a2f4e1e6a5d92a6d', name: "circled-check", size: "s", color: "var(--r-status-success-regular)" }), this.hasTrailingSlot && h("slot", { key: 'bda392fa837a8fba6917fed22ff356c4e6f15b85', name: "trailing" }))), h("div", { key: 'a6d891a2f2bf3456d5cbb3ec27c6cef0bce7d434', id: `${uniqueId}-message`, "aria-live": "polite", class: "r-input-date--message" }, this.hasMessage && h("r-hint", { key: '8a3316ce851bfa02b9ca1a1fad8fde6f48a7fab6', variant: "error" }, this.message)))));
462
462
  }
463
463
  static get is() { return "r-input-date"; }
464
464
  static get encapsulation() { return "shadow"; }
@@ -244,8 +244,8 @@ export class InputPassword {
244
244
  tooShortMessage,
245
245
  patternMismatchMessage
246
246
  };
247
- return (h(Host, { key: '15d9cac9269a816de47d1ae4d3818a99f6229979' }, h("r-input", Object.assign({ key: 'eea64612b319eae93c0fc6591c22020bf2e3d4fb' }, inputAttrs, { ref: (el) => this.nativeElement = el, type: showed ? 'text' : 'password', onRInput: this.onInput, onRChange: this.onChange, onKeyUp: this.handleKeyup, onRBlur: this.handleBlur }), h("r-icon", { key: 'd7a425d45f7897d7f6f11b7bf37595e25da3295b', name: "padlock-closed", size: "s", slot: "leading" }), h("slot", { key: '6ae8e4dc4633e692ae4280d9cd1420bf7e02d0c0', name: "popover", slot: "popover" }), h("r-icon-button", { key: 'e51d43f5966477dc1c35bf6a8114d5b206a58187', slot: "trailing", name: showed ? 'eye-crossed-out' : 'eye', size: "s", disabled: disabled, label: showed ? hidePasswordAriaLabel : showPasswordAriaLabel, onClick: this.onShowClick }), this.hasMessage &&
248
- h("r-hint", { key: 'bcee0a5b7f75a4ddd2e2fa6a2dd44cd0392170dc', slot: "message", variant: "error" }, this.hasError && this.error, this.hasValidationError && (this.customErrorMessage || this.validityMessage))), h("div", { key: '995e229dfab56b03e0a177c6952c2135777f7899', class: "visually-hidden", ref: el => this.passwordVisibilityChangeAlertContainer = el, "aria-live": "polite" })));
247
+ return (h(Host, { key: 'c4f877854375e558677df5f33682e37e048382be' }, h("r-input", Object.assign({ key: '97941b514a5f4f48b7c043ea0641cc5f26ab2ced' }, inputAttrs, { ref: (el) => this.nativeElement = el, type: showed ? 'text' : 'password', onRInput: this.onInput, onRChange: this.onChange, onKeyUp: this.handleKeyup, onRBlur: this.handleBlur }), h("r-icon", { key: '6c59c76305a41bcd4c0bfc109f7e207a871118e5', name: "padlock-closed", size: "s", slot: "leading" }), h("slot", { key: '921c7c3309a362a0e1d273e382bc43fe9a627257', name: "popover", slot: "popover" }), h("r-icon-button", { key: 'cd258b86fec5b52818fe711b078514feee825866', slot: "trailing", name: showed ? 'eye-crossed-out' : 'eye', size: "s", disabled: disabled, label: showed ? hidePasswordAriaLabel : showPasswordAriaLabel, onClick: this.onShowClick }), this.hasMessage &&
248
+ h("r-hint", { key: '667984f03375ec43be01732309020c45c81d9306', slot: "message", variant: "error" }, this.hasError && this.error, this.hasValidationError && (this.customErrorMessage || this.validityMessage))), h("div", { key: '6d950d7eb59905342e328047f45f9b5ae3f6f8cb', class: "visually-hidden", ref: el => this.passwordVisibilityChangeAlertContainer = el, "aria-live": "polite" })));
249
249
  }
250
250
  static get is() { return "r-input-password"; }
251
251
  static get encapsulation() { return "shadow"; }
@@ -284,9 +284,9 @@ export class InputPhoneNumber {
284
284
  disabled,
285
285
  'aria-describedby': this.ariaDescribedBy
286
286
  };
287
- return (h(Host, { key: '97edc0f9bbc4a3823e628bb08be3b3abbbcfe6ec' }, h("div", { key: '8a5236c58655d47368bfaa9bcea6bde3c39c6a22', class: "r-input-phone-number--label-container" }, h("label", { key: 'ae6e6e72381864d67d98f4429856cf5b1943943c', id: `${uniqueId}-label` }, label &&
288
- h("r-label", Object.assign({ key: 'd760960dbf5806084b0a10d14fef218ca5e4cd79' }, labelAttr), label)), h("slot", { key: '4f9bcaba34f2f49592a3167958bd091eeac9f6be', name: "popover" })), hint &&
289
- h("r-hint", { key: '0c3f402b7f9369dcea2c84478e12ed0ea241fd0a', id: `${uniqueId}-hint`, role: "note" }, hint), h("div", { key: '43e5dbd9ca897cfc2ca05e6ab020c321871f3961', class: "r-input-phone-number", role: "group", "aria-labelledby": `${uniqueId}-label`, "aria-describedby": this.ariaDescribedBy }, h("slot", { key: '4e3f891eb21f15927d6a33e7ba6728c09d20e981' }), h("r-input", { key: '6bd6e929e396bf515511fdd978d00df9de54cc37', label: inputLabel, value: phoneNumber, internal: true, valid: valid, invalid: invalid, required: required, readonly: this.readonly, novalidate: true, fullWidth: fullWidth, type: "tel", error: this.errorMessage || '', onRInput: this.handleOnInput, onRChange: this.handleInputOnChange, disabled: disabled })), h("input", Object.assign({ key: 'f113123ef2fa2096b686d132ce11ca11970ab1be', type: "hidden" }, inputAttrs, { readonly: this.readonly, value: fullPhoneNumber, ref: el => this.nativeElement = el })), h("r-hint", { key: 'd00477c3a27f999c4a3079710c34266ed47e0e57', "aria-live": "polite", "aria-atomic": "true", id: `${uniqueId}-message`, class: !this.hasMessage && 'visually-hidden', variant: "error" }, this.hasMessage ? (this.hasError ? this.error : this.validityMessage) : '')));
287
+ return (h(Host, { key: '609e5cd2c326c30866617a238f7c92bb8b2d5e8d' }, h("div", { key: '44eaa8f48fddbdc9dfe43700b4b68650345e1352', class: "r-input-phone-number--label-container" }, h("label", { key: 'fd55a14c4491ed6cad0885aaa5add8d827ae4215', id: `${uniqueId}-label` }, label &&
288
+ h("r-label", Object.assign({ key: 'bdeb1325cefaf4ac82628e497133c3eabfa685d3' }, labelAttr), label)), h("slot", { key: '38a4fd3c1f5ed0748ef9df0e2f6cd93ff8d1d39f', name: "popover" })), hint &&
289
+ h("r-hint", { key: '9fddd5b8053220e2339fe073cf1d897d0c34c23e', id: `${uniqueId}-hint`, role: "note" }, hint), h("div", { key: 'c493d4fe2f75cfa25fc404e985800175dfc75603', class: "r-input-phone-number", role: "group", "aria-labelledby": `${uniqueId}-label`, "aria-describedby": this.ariaDescribedBy }, h("slot", { key: 'ee98939143432df877ac2b7c2bbb7d87fd01f0a7' }), h("r-input", { key: '552c038f9225dd60b3b1957aaa1ceb3587c5f64d', label: inputLabel, value: phoneNumber, internal: true, valid: valid, invalid: invalid, required: required, readonly: this.readonly, novalidate: true, fullWidth: fullWidth, type: "tel", error: this.errorMessage || '', onRInput: this.handleOnInput, onRChange: this.handleInputOnChange, disabled: disabled })), h("input", Object.assign({ key: '11edb8cd2f8d6459ffbdef96263016ee25818fc0', type: "hidden" }, inputAttrs, { readonly: this.readonly, value: fullPhoneNumber, ref: el => this.nativeElement = el })), h("r-hint", { key: '809dbf93afc32271fd6d4930c0f547d8464b4db0', "aria-live": "polite", "aria-atomic": "true", id: `${uniqueId}-message`, class: !this.hasMessage && 'visually-hidden', variant: "error" }, this.hasMessage ? (this.hasError ? this.error : this.validityMessage) : '')));
290
290
  }
291
291
  static get is() { return "r-input-phone-number"; }
292
292
  static get encapsulation() { return "shadow"; }
@@ -6,8 +6,8 @@ import { Host, h } from "@stencil/core";
6
6
  export class RLabel {
7
7
  render() {
8
8
  const { fieldIndicator } = this;
9
- return (h(Host, { key: 'd823556813a282022aa18e138a3ac89d7f22af2a' }, h("div", { key: '1cea58412a4599e009080eb224d17324d5cad0b3', class: "r-label" }, h("span", { key: 'c0ade32425b07866b7a3096f203c7848eaa83e55', class: "r-label--slot" }, h("slot", { key: '9c782ed621889966189bba0d4c46de620315c9c4' }), fieldIndicator &&
10
- h("span", { key: 'c4a4fcbed3e744bed679d8e9c6416a51407a686a', class: "r-label--marker" }, fieldIndicator)))));
9
+ return (h(Host, { key: '4a8c827bf39bac03424a1caefeb8795871b08276' }, h("div", { key: '212ea6fc9e2476361083610c6b8801ea3a4d79e9', class: "r-label" }, h("span", { key: '0bf0a1fc635553165fe02937626cba8a44854f3d', class: "r-label--slot" }, h("slot", { key: '16165450aeffd754cbcac5640297ab4efe94bf4c' }), fieldIndicator &&
10
+ h("span", { key: '34e19397cff4fa69839475ece1077c4271d9ceb4', class: "r-label--marker" }, fieldIndicator)))));
11
11
  }
12
12
  static get is() { return "r-label"; }
13
13
  static get encapsulation() { return "shadow"; }
@@ -9,26 +9,17 @@
9
9
  --r-pagination--width: 100%;
10
10
  --r-pagination--max-width: 664px;
11
11
  --r-pagination--margin: 0 auto;
12
- --r-pagination--item--display: flex;
13
- --r-pagination--item--align-items: center;
14
- --r-pagination--item--justify-content: center;
15
- --r-pagination--item--margin-right: -1px;
16
- --r-pagination--item--color: var(--r-text-regular);
17
- --r-pagination--item--background-color: transparent;
18
- --r-pagination--item--width: 48px;
19
- --r-pagination--item--height: 48px;
20
- --r-pagination--item--border-width: 1px;
21
- --r-pagination--item--border-style: solid;
22
- --r-pagination--item--border-color: var(--r-border-softer);
23
- --r-pagination--item--z-index: 0;
24
- --r-pagination--item--font-family: inherit;
25
- --r-pagination--button--width: 100%;
26
- --r-pagination--button--height: 100%;
27
- --r-pagination--button--color: var(--r-text-regular);
28
- --r-pagination--button--background-color: transparent;
12
+ --r-pagination--items-list--display: flex;
13
+ --r-paginaition--items-list--justify-content: center;
14
+ --r-paginaition--items-list--align-items: center;
15
+ --r-paginaition--items-list--list-style-type: none;
16
+ --r-paginaition--items-list--padding: 0;
17
+ --r-paginaition--items-list--margin: 0;
18
+ --r-pagination--item--width: var(--r-spacing-300, 3rem);
19
+ --r-pagination--item--height: var(--r-spacing-300, 3rem);
20
+ --r-pagination--item--border-radius: 0;
29
21
  --r-pagination--button--border-width: 0;
30
22
  --r-pagination--button--padding: 0;
31
- --r-pagination--button--font-size: var(--r-font-size-300);
32
23
  --r-pagination--header--display: flex;
33
24
  --r-pagination--header--align-items: center;
34
25
  --r-pagination--header--justify-content: space-between;
@@ -90,68 +81,38 @@
90
81
  .r-pagination--header label {
91
82
  font-size: var(--r-pagination--font-size);
92
83
  }
93
- .r-pagination--item:hover {
94
- --r-pagination--item--background-color: var(--r-background-interactive-hovered);
95
- }
96
- .r-pagination--item:focus {
97
- --r-pagination--item--outline-color: var(--r-border-focused);
98
- --r-pagination--item--box-shadow: 0 0 0 3px var(--r-border-focused-outlined);
99
- --r-pagination--item--z-index: 1;
100
- }
101
- .r-pagination--item:active {
102
- --r-pagination--item--background-color: var(--r-background-interactive-pressed);
103
- }
104
- .r-pagination--item.stepper {
105
- --r-pagination--item--background-color: transparent;
84
+ .r-pagination--items-list {
85
+ display: var(--r-pagination--items-list--display);
86
+ justify-content: var(--r-paginaition--items-list--justify-content);
87
+ align-items: var(--r-paginaition--items-list--align-items);
88
+ list-style-type: var(--r-paginaition--items-list--list-style-type);
89
+ padding: var(--r-paginaition--items-list--padding);
90
+ margin: var(--r-paginaition--items-list--margin);
106
91
  }
107
92
  .r-pagination--item.active {
108
- --r-pagination--item--color: var(--r-text-regular);
109
- --r-pagination--item--background-color: var(--r-background-interactive-activated);
93
+ --r-button--color: var(--r-text-regular);
94
+ --r-button--background-color: var(--r-background-interactive-activated);
110
95
  font-weight: var(--r-font-weight-semibold);
111
96
  }
112
- .r-pagination--item.arrow.previous {
113
- --r-pagination--item--margin-left: 0;
114
- --r-pagination--item--margin-right: 16px;
115
- }
116
- .r-pagination--item.arrow.next {
117
- --r-pagination--item--margin-left: 16px;
118
- --r-pagination--item--margin-right: 0;
119
- }
120
- .r-pagination--item.arrow.first {
121
- --r-pagination--item--margin-left: 0;
122
- --r-pagination--item--margin-right: 8px;
123
- }
124
- .r-pagination--item.arrow.last {
125
- --r-pagination--item--margin-left: 8px;
126
- --r-pagination--item--margin-right: 0;
127
- }
128
- .r-pagination--item.disabled, .r-pagination--item.disabled:hover {
129
- --r-pagination--item--opacity: 0.4;
130
- --r-pagination--item--background-color: transparent;
131
- }
132
97
  .r-pagination--item.number {
133
98
  --r-button--font-size: 0.813rem;
134
99
  }
135
100
  .r-pagination--item {
136
- --r-button--display: flex;
137
- --r-button--width: var(--r-pagination--button--width);
138
- --r-button--height: var(--r-pagination--button--height);
139
- --r-button--color: var(--r-pagination--button--color);
140
- --r-button--background-color: var(--r-pagination--button--background-color);
101
+ --r-icon-button--height: var(--r-pagination--item--height);
102
+ --r-icon-button--width: var(--r-pagination--item--width);
103
+ --r-icon-button--border-radius: var(--r-pagination--item--border-radius);
104
+ --r-button--width: var(--r-pagination--item--width);
105
+ --r-button--height: var(--r-pagination--item--height);
141
106
  --r-button--border-width: var(--r-pagination--button--border-width);
142
107
  --r-button--padding: var(--r-pagination--button--padding);
143
- --r-button--icon--width: auto;
144
- --r-button--icon--height: auto;
145
- align-items: var(--r-pagination--item--align-items);
146
- background-color: var(--r-pagination--item--background-color);
147
- color: var(--r-pagination--item--color);
148
- display: var(--r-pagination--item--display);
149
- font-family: var(--r-pagination--item--font-family);
150
- height: var(--r-pagination--item--height);
151
- justify-content: var(--r-pagination--item--justify-content);
152
- margin-left: var(--r-pagination--item--margin-left);
153
- margin-right: var(--r-pagination--item--margin-right);
154
- opacity: var(--r-pagination--item--opacity);
155
- width: var(--r-pagination--item--width);
156
- z-index: var(--r-pagination--item--z-index);
108
+ }
109
+
110
+ .visually-hidden {
111
+ position: absolute;
112
+ width: 1px;
113
+ height: 1px;
114
+ clip: rect(0 0 0 0);
115
+ clip-path: inset(50%);
116
+ overflow: hidden;
117
+ white-space: nowrap;
157
118
  }