@riverty/web-components 6.0.0 → 6.1.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 (107) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/custom-elements.json +99 -1
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/r-alert.cjs.entry.js +1 -1
  5. package/dist/cjs/r-icon-button_2.cjs.entry.js +4 -4
  6. package/dist/cjs/r-icon.cjs.entry.js +1 -1
  7. package/dist/cjs/r-input-code.cjs.entry.js +7 -7
  8. package/dist/cjs/r-input.cjs.entry.js +4 -2
  9. package/dist/cjs/r-list-item.cjs.entry.js +16 -15
  10. package/dist/cjs/r-panel.cjs.entry.js +5 -5
  11. package/dist/cjs/r-stepper-item.cjs.entry.js +1 -1
  12. package/dist/cjs/r-stepper.cjs.entry.js +1 -1
  13. package/dist/cjs/r-tab-panel.cjs.entry.js +1 -1
  14. package/dist/cjs/r-tab.cjs.entry.js +6 -2
  15. package/dist/cjs/r-tabs-list.cjs.entry.js +160 -2
  16. package/dist/cjs/r-tabs.cjs.entry.js +34 -6
  17. package/dist/cjs/r-textarea.cjs.entry.js +1 -1
  18. package/dist/cjs/r-toast-group.cjs.entry.js +2 -2
  19. package/dist/cjs/r-toast.cjs.entry.js +30 -10
  20. package/dist/cjs/web-components.cjs.js +1 -1
  21. package/dist/collection/components/alert/alert.css +2 -3
  22. package/dist/collection/components/icon/bundled-icons/riverty-kit.json +1 -1
  23. package/dist/collection/components/icon/riverty-kit.js +1 -1
  24. package/dist/collection/components/icon-button/icon-button.js +22 -3
  25. package/dist/collection/components/input/exports.js +2 -0
  26. package/dist/collection/components/input/input.js +54 -2
  27. package/dist/collection/components/input-code/exports.js +2 -2
  28. package/dist/collection/components/input-code/input-code.js +13 -13
  29. package/dist/collection/components/list-item/list-item/list-item.css +46 -12
  30. package/dist/collection/components/list-item/list-item/list-item.js +34 -14
  31. package/dist/collection/components/panel/panel.css +40 -17
  32. package/dist/collection/components/panel/panel.js +6 -6
  33. package/dist/collection/components/stepper/stepper.css +1 -1
  34. package/dist/collection/components/stepper-item/stepper-item.css +3 -3
  35. package/dist/collection/components/tab/tab.css +29 -29
  36. package/dist/collection/components/tab/tab.js +5 -1
  37. package/dist/collection/components/tab-panel/tab-panel.js +1 -1
  38. package/dist/collection/components/tabs/tabs.js +34 -6
  39. package/dist/collection/components/tabs-list/exports.js +2 -0
  40. package/dist/collection/components/tabs-list/tabs-list.css +43 -2
  41. package/dist/collection/components/tabs-list/tabs-list.js +277 -1
  42. package/dist/collection/components/textarea/textarea.css +1 -1
  43. package/dist/collection/components/toast/toast.css +35 -9
  44. package/dist/collection/components/toast/toast.js +43 -9
  45. package/dist/collection/components/toast-group/toast-group.css +1 -1
  46. package/dist/collection/components/toast-group/toast-group.js +1 -1
  47. package/dist/collection/components/tooltip/tooltip.js +2 -2
  48. package/dist/esm/loader.js +1 -1
  49. package/dist/esm/r-alert.entry.js +1 -1
  50. package/dist/esm/r-icon-button_2.entry.js +4 -4
  51. package/dist/esm/r-icon.entry.js +1 -1
  52. package/dist/esm/r-input-code.entry.js +7 -7
  53. package/dist/esm/r-input.entry.js +4 -2
  54. package/dist/esm/r-list-item.entry.js +16 -15
  55. package/dist/esm/r-panel.entry.js +5 -5
  56. package/dist/esm/r-stepper-item.entry.js +1 -1
  57. package/dist/esm/r-stepper.entry.js +1 -1
  58. package/dist/esm/r-tab-panel.entry.js +1 -1
  59. package/dist/esm/r-tab.entry.js +6 -2
  60. package/dist/esm/r-tabs-list.entry.js +161 -3
  61. package/dist/esm/r-tabs.entry.js +34 -6
  62. package/dist/esm/r-textarea.entry.js +1 -1
  63. package/dist/esm/r-toast-group.entry.js +2 -2
  64. package/dist/esm/r-toast.entry.js +30 -10
  65. package/dist/esm/web-components.js +1 -1
  66. package/dist/types/components/icon/exports.d.ts +1 -0
  67. package/dist/types/components/icon/icon-data.d.ts +1 -0
  68. package/dist/types/components/icon/riverty-kit.d.ts +1 -0
  69. package/dist/types/components/icon-button/icon-button.d.ts +4 -0
  70. package/dist/types/components/input/exports.d.ts +4 -0
  71. package/dist/types/components/input/input.d.ts +17 -1
  72. package/dist/types/components/input-code/exports.d.ts +4 -4
  73. package/dist/types/components/input-code/input-code.d.ts +3 -3
  74. package/dist/types/components/list-item/list-item/list-item.d.ts +5 -3
  75. package/dist/types/components/tabs/tabs.d.ts +1 -0
  76. package/dist/types/components/tabs-list/exports.d.ts +4 -0
  77. package/dist/types/components/tabs-list/tabs-list.d.ts +38 -0
  78. package/dist/types/components/toast/toast.d.ts +11 -0
  79. package/dist/types/components.d.ts +89 -12
  80. package/dist/web-components/bundled-icons/riverty-kit.json +1 -1
  81. package/dist/web-components/{p-3a5a67e7.entry.js → p-159822fe.entry.js} +1 -1
  82. package/dist/web-components/p-19407a14.entry.js +1 -0
  83. package/dist/web-components/{p-4254a383.entry.js → p-4f261b63.entry.js} +1 -1
  84. package/dist/web-components/{p-673dbfd0.entry.js → p-50893211.entry.js} +1 -1
  85. package/dist/web-components/{p-e5945c01.entry.js → p-5eeb7002.entry.js} +1 -1
  86. package/dist/web-components/p-6bb44ec6.entry.js +1 -0
  87. package/dist/web-components/p-7ce57332.entry.js +1 -0
  88. package/dist/web-components/p-92c7cf33.entry.js +1 -0
  89. package/dist/web-components/{p-ae251d2f.entry.js → p-b96d59ca.entry.js} +1 -1
  90. package/dist/web-components/p-ba801820.entry.js +1 -0
  91. package/dist/web-components/p-bfc8c077.entry.js +1 -0
  92. package/dist/web-components/p-c05b05da.entry.js +1 -0
  93. package/dist/web-components/p-c95b6470.entry.js +1 -0
  94. package/dist/web-components/{p-05738503.entry.js → p-cd5daad2.entry.js} +1 -1
  95. package/dist/web-components/p-cdd88c5a.entry.js +1 -0
  96. package/dist/web-components/{p-a71485d8.entry.js → p-e4dc60f0.entry.js} +1 -1
  97. package/dist/web-components/web-components.esm.js +1 -1
  98. package/package.json +1 -1
  99. package/dist/web-components/p-0e4c8bf1.entry.js +0 -1
  100. package/dist/web-components/p-5441b746.entry.js +0 -1
  101. package/dist/web-components/p-60ca994e.entry.js +0 -1
  102. package/dist/web-components/p-6303b9fe.entry.js +0 -1
  103. package/dist/web-components/p-6a4f3836.entry.js +0 -1
  104. package/dist/web-components/p-8b4d2448.entry.js +0 -1
  105. package/dist/web-components/p-a0dbde7c.entry.js +0 -1
  106. package/dist/web-components/p-b9e3b3d6.entry.js +0 -1
  107. package/dist/web-components/p-e2188953.entry.js +0 -1
@@ -13,8 +13,8 @@ import { ButtonSize, ButtonTarget, ButtonType, ButtonVariant } from "./component
13
13
  import { DialogSize } from "./components/dialog/exports";
14
14
  import { HintVariant } from "./components/hint/exports";
15
15
  import { TooltipPosition } from "./components/tooltip/exports";
16
- import { InputAutocomplete, InputType } from "./components/input/exports";
17
- import { EnterKeyHint, InputMode } from "./components/input-code/exports";
16
+ import { EnterKeyHint, InputAutocomplete, InputMode, InputType } from "./components/input/exports";
17
+ import { InputCodeEnterKeyHint, InputCodeInputMode } from "./components/input-code/exports";
18
18
  import { PasswordAutocomplete } from "./components/input-password/exports";
19
19
  import { ListItemVariant, TrailingTextAlignment } from "./components/list-item/list-item/exports";
20
20
  import { PaginationItemsPerPageOptions, PaginationListBoxPosition, PaginationVariant } from "./components/pagination/exports";
@@ -25,6 +25,7 @@ import { Event } from "./stencil-public-runtime";
25
25
  import { RadioGroupVariant } from "./components/radio-group/exports";
26
26
  import { ListboxPosition } from "./components/select/exports";
27
27
  import { SkipLinkPosition } from "./components/skip-link/exports";
28
+ import { ActiveTabBorder, TabListVariant } from "./components/tabs-list/exports";
28
29
  import { TextareaResize } from "./components/textarea/exports";
29
30
  import { ToastActionTarget, ToastDismissMode, ToastStatus } from "./components/toast/exports";
30
31
  export { AccordionSize } from "./components/accordion/exports";
@@ -35,8 +36,8 @@ export { ButtonSize, ButtonTarget, ButtonType, ButtonVariant } from "./component
35
36
  export { DialogSize } from "./components/dialog/exports";
36
37
  export { HintVariant } from "./components/hint/exports";
37
38
  export { TooltipPosition } from "./components/tooltip/exports";
38
- export { InputAutocomplete, InputType } from "./components/input/exports";
39
- export { EnterKeyHint, InputMode } from "./components/input-code/exports";
39
+ export { EnterKeyHint, InputAutocomplete, InputMode, InputType } from "./components/input/exports";
40
+ export { InputCodeEnterKeyHint, InputCodeInputMode } from "./components/input-code/exports";
40
41
  export { PasswordAutocomplete } from "./components/input-password/exports";
41
42
  export { ListItemVariant, TrailingTextAlignment } from "./components/list-item/list-item/exports";
42
43
  export { PaginationItemsPerPageOptions, PaginationListBoxPosition, PaginationVariant } from "./components/pagination/exports";
@@ -47,6 +48,7 @@ export { Event } from "./stencil-public-runtime";
47
48
  export { RadioGroupVariant } from "./components/radio-group/exports";
48
49
  export { ListboxPosition } from "./components/select/exports";
49
50
  export { SkipLinkPosition } from "./components/skip-link/exports";
51
+ export { ActiveTabBorder, TabListVariant } from "./components/tabs-list/exports";
50
52
  export { TextareaResize } from "./components/textarea/exports";
51
53
  export { ToastActionTarget, ToastDismissMode, ToastStatus } from "./components/toast/exports";
52
54
  export namespace Components {
@@ -609,6 +611,10 @@ export namespace Components {
609
611
  * Name of the icon to display within the button.
610
612
  */
611
613
  "name": IconName;
614
+ /**
615
+ * Defines the tabindex of the button for keyboard navigation.
616
+ */
617
+ "rTabindex"?: number;
612
618
  /**
613
619
  * Remove focus from the button
614
620
  */
@@ -667,6 +673,10 @@ export namespace Components {
667
673
  * Disables the field (non-interactive, excluded from form submission).
668
674
  */
669
675
  "disabled"?: boolean;
676
+ /**
677
+ * Hint for the action label/icon on the virtual keyboard's enter key. Use cases: - `enter`: Default, generic newline/submit action - `done`: Finishes current input session (e.g., last field in a form) - `go`: Navigates to URL input target (e.g., URL bar) - `next`: Advances to next input field in a sequence - `previous`: Goes back to previous input field - `search`: Submits a search query - `send`: Sends a message (e.g., chat, email)
678
+ */
679
+ "enterkeyhint"?: EnterKeyHint;
670
680
  /**
671
681
  * Manual error message independent of native validation messages. When set, native validation messages are suppressed.
672
682
  */
@@ -699,6 +709,10 @@ export namespace Components {
699
709
  * Optional contextual help text displayed beneath the field.
700
710
  */
701
711
  "hint"?: string;
712
+ /**
713
+ * Hint to the browser about which keyboard to display on mobile devices.
714
+ */
715
+ "inputmode"?: InputMode;
702
716
  /**
703
717
  * When true, hides visual label & messages (for internal layout use; accessibility still preserved).
704
718
  */
@@ -873,7 +887,7 @@ export namespace Components {
873
887
  * Specifies the enter key hint for the virtual keyboard. Default is 'done' for OTP completion.
874
888
  * @default : 'done'
875
889
  */
876
- "enterkeyhint"?: EnterKeyHint;
890
+ "enterkeyhint"?: InputCodeEnterKeyHint;
877
891
  /**
878
892
  * The way to provide error message separately from Constraint Validation API.
879
893
  */
@@ -915,7 +929,7 @@ export namespace Components {
915
929
  * Specifies the input mode for the virtual keyboard on mobile devices. Default is 'numeric' for OTP codes.
916
930
  * @default : 'numeric'
917
931
  */
918
- "inputmode"?: InputMode;
932
+ "inputmode"?: InputCodeInputMode;
919
933
  /**
920
934
  * Validity indicator, serving to change UI of the component
921
935
  */
@@ -1387,6 +1401,10 @@ export namespace Components {
1387
1401
  "fieldIndicator"?: string;
1388
1402
  }
1389
1403
  interface RListItem {
1404
+ /**
1405
+ * Indicates whether the list item is currently active (e.g., represents the current page).
1406
+ */
1407
+ "active"?: boolean;
1390
1408
  /**
1391
1409
  * Defines the alignment style for the trailing text.
1392
1410
  */
@@ -1551,12 +1569,12 @@ export namespace Components {
1551
1569
  "header"?: string;
1552
1570
  /**
1553
1571
  * Aria-label text for collapse
1554
- * @default 'collapse-panel'
1572
+ * @default 'Collapse panel'
1555
1573
  */
1556
1574
  "labelCollapse": string;
1557
1575
  /**
1558
1576
  * Aria-label text for expand
1559
- * @default 'expand-panel'
1577
+ * @default 'Expand panel'
1560
1578
  */
1561
1579
  "labelExpand": string;
1562
1580
  /**
@@ -2219,6 +2237,25 @@ export namespace Components {
2219
2237
  "navigation"?: boolean;
2220
2238
  }
2221
2239
  interface RTabsList {
2240
+ /**
2241
+ * Border style of the active tab
2242
+ * @default 'standard'
2243
+ */
2244
+ "border": ActiveTabBorder;
2245
+ /**
2246
+ * Tooltip visibility for left scroll button
2247
+ */
2248
+ "scrollLeftTooltip": string;
2249
+ /**
2250
+ * Tooltip visibility for left right button
2251
+ */
2252
+ "scrollRightTooltip": string;
2253
+ /**
2254
+ * Visual variant of the tab list
2255
+ * @defaulr 'expanded'
2256
+ * @default 'expanded'
2257
+ */
2258
+ "variant": TabListVariant;
2222
2259
  }
2223
2260
  interface RTextarea {
2224
2261
  /**
@@ -3375,6 +3412,7 @@ declare global {
3375
3412
  "dismiss": any;
3376
3413
  "reveal": any;
3377
3414
  "hide": any;
3415
+ "dismissed": any;
3378
3416
  }
3379
3417
  interface HTMLRToastElement extends Components.RToast, HTMLStencilElement {
3380
3418
  addEventListener<K extends keyof HTMLRToastElementEventMap>(type: K, listener: (this: HTMLRToastElement, ev: RToastCustomEvent<HTMLRToastElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
@@ -4016,6 +4054,10 @@ declare namespace LocalJSX {
4016
4054
  * Emits `rClick` event on click.
4017
4055
  */
4018
4056
  "onRClick"?: (event: RIconButtonCustomEvent<any>) => void;
4057
+ /**
4058
+ * Defines the tabindex of the button for keyboard navigation.
4059
+ */
4060
+ "rTabindex"?: number;
4019
4061
  /**
4020
4062
  * Defines the size of the icon used within the button.
4021
4063
  * @default 'm'
@@ -4057,6 +4099,10 @@ declare namespace LocalJSX {
4057
4099
  * Disables the field (non-interactive, excluded from form submission).
4058
4100
  */
4059
4101
  "disabled"?: boolean;
4102
+ /**
4103
+ * Hint for the action label/icon on the virtual keyboard's enter key. Use cases: - `enter`: Default, generic newline/submit action - `done`: Finishes current input session (e.g., last field in a form) - `go`: Navigates to URL input target (e.g., URL bar) - `next`: Advances to next input field in a sequence - `previous`: Goes back to previous input field - `search`: Submits a search query - `send`: Sends a message (e.g., chat, email)
4104
+ */
4105
+ "enterkeyhint"?: EnterKeyHint;
4060
4106
  /**
4061
4107
  * Manual error message independent of native validation messages. When set, native validation messages are suppressed.
4062
4108
  */
@@ -4077,6 +4123,10 @@ declare namespace LocalJSX {
4077
4123
  * Optional contextual help text displayed beneath the field.
4078
4124
  */
4079
4125
  "hint"?: string;
4126
+ /**
4127
+ * Hint to the browser about which keyboard to display on mobile devices.
4128
+ */
4129
+ "inputmode"?: InputMode;
4080
4130
  /**
4081
4131
  * When true, hides visual label & messages (for internal layout use; accessibility still preserved).
4082
4132
  */
@@ -4247,7 +4297,7 @@ declare namespace LocalJSX {
4247
4297
  * Specifies the enter key hint for the virtual keyboard. Default is 'done' for OTP completion.
4248
4298
  * @default : 'done'
4249
4299
  */
4250
- "enterkeyhint"?: EnterKeyHint;
4300
+ "enterkeyhint"?: InputCodeEnterKeyHint;
4251
4301
  /**
4252
4302
  * The way to provide error message separately from Constraint Validation API.
4253
4303
  */
@@ -4272,7 +4322,7 @@ declare namespace LocalJSX {
4272
4322
  * Specifies the input mode for the virtual keyboard on mobile devices. Default is 'numeric' for OTP codes.
4273
4323
  * @default : 'numeric'
4274
4324
  */
4275
- "inputmode"?: InputMode;
4325
+ "inputmode"?: InputCodeInputMode;
4276
4326
  /**
4277
4327
  * Validity indicator, serving to change UI of the component
4278
4328
  */
@@ -4754,6 +4804,10 @@ declare namespace LocalJSX {
4754
4804
  "fieldIndicator"?: string;
4755
4805
  }
4756
4806
  interface RListItem {
4807
+ /**
4808
+ * Indicates whether the list item is currently active (e.g., represents the current page).
4809
+ */
4810
+ "active"?: boolean;
4757
4811
  /**
4758
4812
  * Defines the alignment style for the trailing text.
4759
4813
  */
@@ -4942,12 +4996,12 @@ declare namespace LocalJSX {
4942
4996
  "header"?: string;
4943
4997
  /**
4944
4998
  * Aria-label text for collapse
4945
- * @default 'collapse-panel'
4999
+ * @default 'Collapse panel'
4946
5000
  */
4947
5001
  "labelCollapse"?: string;
4948
5002
  /**
4949
5003
  * Aria-label text for expand
4950
- * @default 'expand-panel'
5004
+ * @default 'Expand panel'
4951
5005
  */
4952
5006
  "labelExpand"?: string;
4953
5007
  /**
@@ -5524,6 +5578,25 @@ declare namespace LocalJSX {
5524
5578
  }>) => void;
5525
5579
  }
5526
5580
  interface RTabsList {
5581
+ /**
5582
+ * Border style of the active tab
5583
+ * @default 'standard'
5584
+ */
5585
+ "border"?: ActiveTabBorder;
5586
+ /**
5587
+ * Tooltip visibility for left scroll button
5588
+ */
5589
+ "scrollLeftTooltip"?: string;
5590
+ /**
5591
+ * Tooltip visibility for left right button
5592
+ */
5593
+ "scrollRightTooltip"?: string;
5594
+ /**
5595
+ * Visual variant of the tab list
5596
+ * @defaulr 'expanded'
5597
+ * @default 'expanded'
5598
+ */
5599
+ "variant"?: TabListVariant;
5527
5600
  }
5528
5601
  interface RTextarea {
5529
5602
  /**
@@ -5710,6 +5783,10 @@ declare namespace LocalJSX {
5710
5783
  * Emitted when the toast is dismissed and scheduled for removal from the DOM. Fired by dismiss(), by the auto-dismiss timer (delay), and by the trailing dismiss button. Use this to react to permanent removal (contrast with toastHide which only hides without removal).
5711
5784
  */
5712
5785
  "onDismiss"?: (event: RToastCustomEvent<any>) => void;
5786
+ /**
5787
+ * Emitted when the dismiss toast animation is complete and the element has fully disappeared from the view. Fired by dismiss(), by the auto-dismiss timer (delay), by changing open property, and by the trailing dismiss button.
5788
+ */
5789
+ "onDismissed"?: (event: RToastCustomEvent<any>) => void;
5713
5790
  /**
5714
5791
  * Emitted when the toast transitions to a hidden state but remains in the DOM. Fired by hide(), by toggle() when resulting state is hidden, and when the 'open' prop changes causing the toast to hide. Not emitted on dismiss() (which removes the element) — use 'toastDismiss' for that case.
5715
5792
  */