@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.
- package/CHANGELOG.md +23 -0
- package/custom-elements.json +160 -1
- package/dist/cjs/{index-DJ4H_bFj.js → index-BnETQtSf.js} +9 -382
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/r-accordion-panel.cjs.entry.js +1 -1
- package/dist/cjs/r-accordion-section.cjs.entry.js +1 -1
- package/dist/cjs/r-accordion-trigger.cjs.entry.js +1 -1
- package/dist/cjs/r-accordion.cjs.entry.js +1 -1
- package/dist/cjs/r-alert.cjs.entry.js +9 -6
- package/dist/cjs/r-badge.cjs.entry.js +1 -1
- package/dist/cjs/r-button.cjs.entry.js +6 -2
- package/dist/cjs/r-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/r-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/r-design-system-devtools.cjs.entry.js +1 -1
- package/dist/cjs/r-dialog.cjs.entry.js +1 -1
- package/dist/cjs/r-hint_2.cjs.entry.js +3 -3
- package/dist/cjs/r-icon-button_2.cjs.entry.js +24 -4
- package/dist/cjs/r-icon.cjs.entry.js +2 -2
- package/dist/cjs/r-illustration.cjs.entry.js +396 -0
- package/dist/cjs/r-input-code.cjs.entry.js +34 -12
- package/dist/cjs/r-input-date.cjs.entry.js +7 -7
- package/dist/cjs/r-input-password.cjs.entry.js +3 -3
- package/dist/cjs/r-input-phone-number.cjs.entry.js +4 -4
- package/dist/cjs/r-input.cjs.entry.js +5 -4
- package/dist/cjs/r-list-item.cjs.entry.js +1 -1
- package/dist/cjs/r-pagination.cjs.entry.js +56 -50
- package/dist/cjs/r-panel.cjs.entry.js +3 -3
- package/dist/cjs/r-popover-action.cjs.entry.js +2 -2
- package/dist/cjs/r-popover-content.cjs.entry.js +2 -2
- package/dist/cjs/r-popover-headline.cjs.entry.js +2 -2
- package/dist/cjs/r-popover-trigger.cjs.entry.js +2 -2
- package/dist/cjs/r-popover.cjs.entry.js +46 -5
- package/dist/cjs/r-progress-bar.cjs.entry.js +2 -2
- package/dist/cjs/r-radio-button-description.cjs.entry.js +2 -2
- package/dist/cjs/r-radio-button-leading.cjs.entry.js +2 -2
- package/dist/cjs/r-radio-button-title.cjs.entry.js +2 -2
- package/dist/cjs/r-radio-button-trailing.cjs.entry.js +2 -2
- package/dist/cjs/r-radio-button.cjs.entry.js +8 -7
- package/dist/cjs/r-radio-group.cjs.entry.js +83 -10
- package/dist/cjs/r-select-option.cjs.entry.js +2 -2
- package/dist/cjs/r-select.cjs.entry.js +6 -4
- package/dist/cjs/r-skip-link.cjs.entry.js +2 -2
- package/dist/cjs/r-stepper-item.cjs.entry.js +19 -4
- package/dist/cjs/r-stepper.cjs.entry.js +76 -3
- package/dist/cjs/r-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/r-tab.cjs.entry.js +3 -3
- package/dist/cjs/r-tabs-list.cjs.entry.js +4 -4
- package/dist/cjs/r-tabs.cjs.entry.js +2 -2
- package/dist/cjs/r-textarea.cjs.entry.js +1 -1
- package/dist/cjs/r-toast-group.cjs.entry.js +13 -4
- package/dist/cjs/r-toast.cjs.entry.js +87 -18
- package/dist/cjs/web-components.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/alert/alert.css +4 -3
- package/dist/collection/components/alert/alert.js +7 -4
- package/dist/collection/components/button/button.js +30 -1
- package/dist/collection/components/button/exports.js +1 -0
- package/dist/collection/components/checkbox/checkbox.js +3 -3
- package/dist/collection/components/icon/exports.js +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon/riverty-kit.js +1 -1
- package/dist/collection/components/illustration/data.js +112 -0
- package/dist/collection/components/illustration/exports.js +3 -0
- package/dist/collection/components/illustration/illustration.js +540 -0
- package/dist/collection/components/illustration/illustration.scss +56 -0
- package/dist/collection/components/illustration/illustrations-ui-kit.js +2 -0
- package/dist/collection/components/input/exports.js +1 -0
- package/dist/collection/components/input/input.css +3 -0
- package/dist/collection/components/input/input.js +47 -2
- package/dist/collection/components/input-code/input-code.css +6 -0
- package/dist/collection/components/input-code/input-code.js +48 -10
- package/dist/collection/components/input-date/input-date.js +6 -6
- package/dist/collection/components/input-password/input-password.js +2 -2
- package/dist/collection/components/input-phone-number/input-phone-number.js +3 -3
- package/dist/collection/components/label/label.js +2 -2
- package/dist/collection/components/pagination/pagination.css +33 -72
- package/dist/collection/components/pagination/pagination.js +194 -48
- package/dist/collection/components/panel/panel.js +2 -2
- package/dist/collection/components/popover/popover.css +0 -1
- package/dist/collection/components/popover/popover.js +44 -3
- package/dist/collection/components/popover-action/popover-action.js +1 -1
- package/dist/collection/components/popover-content/popover-content.js +1 -1
- package/dist/collection/components/popover-headline/popover-headline.js +1 -1
- package/dist/collection/components/popover-trigger/popover-trigger.js +1 -1
- package/dist/collection/components/progress-bar/progress-bar.js +1 -1
- package/dist/collection/components/radio-button/radio-button.js +7 -6
- package/dist/collection/components/radio-button-description/radio-button-description.js +1 -1
- package/dist/collection/components/radio-button-leading/radio-button-leading.js +1 -1
- package/dist/collection/components/radio-button-title/radio-button-title.js +1 -1
- package/dist/collection/components/radio-button-trailing/radio-button-trailing.js +1 -1
- package/dist/collection/components/radio-group/radio-group.css +4 -1
- package/dist/collection/components/radio-group/radio-group.js +100 -8
- package/dist/collection/components/select/select.js +5 -3
- package/dist/collection/components/select-option/select-option.js +1 -1
- package/dist/collection/components/skip-link/skip-link.js +1 -1
- package/dist/collection/components/stepper/stepper.css +4 -1
- package/dist/collection/components/stepper/stepper.js +125 -1
- package/dist/collection/components/stepper-item/stepper-item.css +22 -9
- package/dist/collection/components/stepper-item/stepper-item.js +36 -2
- package/dist/collection/components/tab/tab.js +2 -2
- package/dist/collection/components/tab-panel/tab-panel.js +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/tabs-list/tabs-list.js +3 -3
- package/dist/collection/components/toast/toast.css +9 -9
- package/dist/collection/components/toast/toast.js +109 -21
- package/dist/collection/components/toast-group/toast-group.css +5 -11
- package/dist/collection/components/toast-group/toast-group.js +12 -3
- package/dist/collection/components/tooltip/tooltip.js +23 -3
- package/dist/esm/{index-Da7qOBFr.js → index-CTxpqopm.js} +9 -382
- package/dist/esm/loader.js +3 -3
- package/dist/esm/r-accordion-panel.entry.js +1 -1
- package/dist/esm/r-accordion-section.entry.js +1 -1
- package/dist/esm/r-accordion-trigger.entry.js +1 -1
- package/dist/esm/r-accordion.entry.js +1 -1
- package/dist/esm/r-alert.entry.js +9 -6
- package/dist/esm/r-badge.entry.js +1 -1
- package/dist/esm/r-button.entry.js +6 -2
- package/dist/esm/r-checkbox-group.entry.js +1 -1
- package/dist/esm/r-checkbox.entry.js +4 -4
- package/dist/esm/r-design-system-devtools.entry.js +1 -1
- package/dist/esm/r-dialog.entry.js +1 -1
- package/dist/esm/r-hint_2.entry.js +3 -3
- package/dist/esm/r-icon-button_2.entry.js +24 -4
- package/dist/esm/r-icon.entry.js +2 -2
- package/dist/esm/r-illustration.entry.js +394 -0
- package/dist/esm/r-input-code.entry.js +34 -12
- package/dist/esm/r-input-date.entry.js +7 -7
- package/dist/esm/r-input-password.entry.js +3 -3
- package/dist/esm/r-input-phone-number.entry.js +4 -4
- package/dist/esm/r-input.entry.js +5 -4
- package/dist/esm/r-list-item.entry.js +1 -1
- package/dist/esm/r-pagination.entry.js +56 -50
- package/dist/esm/r-panel.entry.js +3 -3
- package/dist/esm/r-popover-action.entry.js +2 -2
- package/dist/esm/r-popover-content.entry.js +2 -2
- package/dist/esm/r-popover-headline.entry.js +2 -2
- package/dist/esm/r-popover-trigger.entry.js +2 -2
- package/dist/esm/r-popover.entry.js +46 -5
- package/dist/esm/r-progress-bar.entry.js +2 -2
- package/dist/esm/r-radio-button-description.entry.js +2 -2
- package/dist/esm/r-radio-button-leading.entry.js +2 -2
- package/dist/esm/r-radio-button-title.entry.js +2 -2
- package/dist/esm/r-radio-button-trailing.entry.js +2 -2
- package/dist/esm/r-radio-button.entry.js +8 -7
- package/dist/esm/r-radio-group.entry.js +83 -10
- package/dist/esm/r-select-option.entry.js +2 -2
- package/dist/esm/r-select.entry.js +6 -4
- package/dist/esm/r-skip-link.entry.js +2 -2
- package/dist/esm/r-stepper-item.entry.js +19 -4
- package/dist/esm/r-stepper.entry.js +76 -3
- package/dist/esm/r-tab-panel.entry.js +2 -2
- package/dist/esm/r-tab.entry.js +3 -3
- package/dist/esm/r-tabs-list.entry.js +4 -4
- package/dist/esm/r-tabs.entry.js +2 -2
- package/dist/esm/r-textarea.entry.js +1 -1
- package/dist/esm/r-toast-group.entry.js +13 -4
- package/dist/esm/r-toast.entry.js +87 -18
- package/dist/esm/web-components.js +3 -3
- package/dist/types/components/alert/alert.d.ts +1 -0
- package/dist/types/components/button/button.d.ts +8 -1
- package/dist/types/components/button/exports.d.ts +2 -0
- package/dist/types/components/icon/exports.d.ts +1 -1
- package/dist/types/components/icon/riverty-kit.d.ts +1 -1
- package/dist/types/components/illustration/data.d.ts +52 -0
- package/dist/types/components/illustration/exports.d.ts +23 -0
- package/dist/types/components/illustration/illustration.d.ts +51 -0
- package/dist/types/components/illustration/illustrations-ui-kit.d.ts +21 -0
- package/dist/types/components/input/exports.d.ts +2 -0
- package/dist/types/components/input/input.d.ts +15 -1
- package/dist/types/components/input-code/input-code.d.ts +15 -1
- package/dist/types/components/pagination/pagination.d.ts +19 -0
- package/dist/types/components/popover/popover.d.ts +9 -0
- package/dist/types/components/radio-group/radio-group.d.ts +16 -0
- package/dist/types/components/stepper/stepper.d.ts +11 -0
- package/dist/types/components/stepper-item/stepper-item.d.ts +7 -0
- package/dist/types/components/toast/toast.d.ts +10 -4
- package/dist/types/components/tooltip/tooltip.d.ts +5 -0
- package/dist/types/components.d.ts +273 -7
- package/dist/web-components/p-02b22f8e.entry.js +1 -0
- package/dist/web-components/{p-d054eb4d.entry.js → p-075a8dc8.entry.js} +1 -1
- package/dist/web-components/{p-8a66d20c.entry.js → p-0a34d33b.entry.js} +1 -1
- package/dist/web-components/{p-8c31cbd5.entry.js → p-10cc9983.entry.js} +1 -1
- package/dist/web-components/{p-d7726e46.entry.js → p-253068b9.entry.js} +1 -1
- package/dist/web-components/{p-3884c6e7.entry.js → p-3b8c8951.entry.js} +1 -1
- package/dist/web-components/{p-550e2237.entry.js → p-3beacdab.entry.js} +1 -1
- package/dist/web-components/p-4214867d.entry.js +1 -0
- package/dist/web-components/{p-3f60c6c0.entry.js → p-42c857e9.entry.js} +1 -1
- package/dist/web-components/{p-7fed6f4d.entry.js → p-44f87e16.entry.js} +1 -1
- package/dist/web-components/p-477614c5.entry.js +1 -0
- package/dist/web-components/{p-1da75540.entry.js → p-495ba3d2.entry.js} +1 -1
- package/dist/web-components/{p-19407a14.entry.js → p-4de76291.entry.js} +1 -1
- package/dist/web-components/{p-cd5daad2.entry.js → p-55600d47.entry.js} +1 -1
- package/dist/web-components/{p-c95b6470.entry.js → p-562051aa.entry.js} +1 -1
- package/dist/web-components/p-5b850e0f.entry.js +1 -0
- package/dist/web-components/p-6013dfc8.entry.js +1 -0
- package/dist/web-components/{p-6cc2ea2c.entry.js → p-62e7ae04.entry.js} +1 -1
- package/dist/web-components/p-71519d37.entry.js +1 -0
- package/dist/web-components/p-88f7b47f.entry.js +1 -0
- package/dist/web-components/p-8975a6a3.entry.js +1 -0
- package/dist/web-components/{p-6bb44ec6.entry.js → p-8e125826.entry.js} +1 -1
- package/dist/web-components/p-91cc0bde.entry.js +1 -0
- package/dist/web-components/{p-0347feff.entry.js → p-93435fcd.entry.js} +1 -1
- package/dist/web-components/p-947969d7.entry.js +1 -0
- package/dist/web-components/{p-cdd88c5a.entry.js → p-95396b5c.entry.js} +1 -1
- package/dist/web-components/p-9de3a1a5.entry.js +1 -0
- package/dist/web-components/p-9f583ed1.entry.js +1 -0
- package/dist/web-components/p-CTxpqopm.js +2 -0
- package/dist/web-components/{p-5eeb7002.entry.js → p-a1086abe.entry.js} +1 -1
- package/dist/web-components/{p-f9d5004c.entry.js → p-bbba6d79.entry.js} +1 -1
- package/dist/web-components/{p-c478712b.entry.js → p-bde44ec4.entry.js} +1 -1
- package/dist/web-components/p-bfc7e6c0.entry.js +1 -0
- package/dist/web-components/p-c1030394.entry.js +1 -0
- package/dist/web-components/p-c1f59ed1.entry.js +1 -0
- package/dist/web-components/{p-26ef77d6.entry.js → p-c80a5541.entry.js} +1 -1
- package/dist/web-components/{p-9ef1bbee.entry.js → p-c96ee61a.entry.js} +1 -1
- package/dist/web-components/{p-8dac326b.entry.js → p-caf8f067.entry.js} +1 -1
- package/dist/web-components/p-cc363c3d.entry.js +1 -0
- package/dist/web-components/p-cf4ff357.entry.js +1 -0
- package/dist/web-components/p-d0310ed4.entry.js +1 -0
- package/dist/web-components/p-d1412932.entry.js +1 -0
- package/dist/web-components/{p-62b788bf.entry.js → p-d2447e30.entry.js} +1 -1
- package/dist/web-components/p-dc9cca06.entry.js +1 -0
- package/dist/web-components/p-e5b943a2.entry.js +1 -0
- package/dist/web-components/{p-4cc58c6a.entry.js → p-e67b13df.entry.js} +1 -1
- package/dist/web-components/p-efec231a.entry.js +1 -0
- package/dist/web-components/{p-4595fa8e.entry.js → p-f867e4c3.entry.js} +1 -1
- package/dist/web-components/web-components.esm.js +1 -1
- package/package.json +5 -2
- package/dist/collection/components/icon/bundled-icons/all-kit.json +0 -1
- package/dist/collection/components/icon/bundled-icons/riverty-kit.json +0 -1
- package/dist/web-components/bundled-icons/all-kit.json +0 -1
- package/dist/web-components/bundled-icons/riverty-kit.json +0 -1
- package/dist/web-components/p-159822fe.entry.js +0 -1
- package/dist/web-components/p-4f261b63.entry.js +0 -1
- package/dist/web-components/p-50893211.entry.js +0 -1
- package/dist/web-components/p-589baaf9.entry.js +0 -1
- package/dist/web-components/p-60341de2.entry.js +0 -1
- package/dist/web-components/p-63fd817d.entry.js +0 -1
- package/dist/web-components/p-67fa3f84.entry.js +0 -1
- package/dist/web-components/p-70784685.entry.js +0 -1
- package/dist/web-components/p-7ce57332.entry.js +0 -1
- package/dist/web-components/p-92c7cf33.entry.js +0 -1
- package/dist/web-components/p-Da7qOBFr.js +0 -2
- package/dist/web-components/p-a7d22c76.entry.js +0 -1
- package/dist/web-components/p-b96d59ca.entry.js +0 -1
- package/dist/web-components/p-b98ab649.entry.js +0 -1
- package/dist/web-components/p-ba801820.entry.js +0 -1
- package/dist/web-components/p-bfc8c077.entry.js +0 -1
- package/dist/web-components/p-c05b05da.entry.js +0 -1
- package/dist/web-components/p-c1e748f2.entry.js +0 -1
- package/dist/web-components/p-d433a828.entry.js +0 -1
- package/dist/web-components/p-d819c8e5.entry.js +0 -1
- package/dist/web-components/p-e4dc60f0.entry.js +0 -1
- package/dist/web-components/p-f7adb875.entry.js +0 -1
- package/dist/collection/components/icon/{icon-data.js → data.js} +0 -0
- package/dist/types/components/icon/{icon-data.d.ts → data.d.ts} +1 -1
|
@@ -9,11 +9,12 @@ import { AccordionSize } from "./components/accordion/exports";
|
|
|
9
9
|
import { AlertStatus, AlertTarget } from "./components/alert/exports";
|
|
10
10
|
import { IconKit, IconName, IconPosition, IconSize, IconVariant } from "./components/icon/exports";
|
|
11
11
|
import { BadgeVariant } from "./components/badge/exports";
|
|
12
|
-
import { ButtonSize, ButtonTarget, ButtonType, ButtonVariant } from "./components/button/exports";
|
|
12
|
+
import { ButtonAriaCurrent, ButtonSize, ButtonTarget, ButtonType, ButtonVariant } from "./components/button/exports";
|
|
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 {
|
|
16
|
+
import { IllustrationName, IllustrationTheme } from "./components/illustration/exports";
|
|
17
|
+
import { AutocapitalizeType, EnterKeyHint, InputAutocomplete, InputMode, InputType } from "./components/input/exports";
|
|
17
18
|
import { InputCodeEnterKeyHint, InputCodeInputMode } from "./components/input-code/exports";
|
|
18
19
|
import { PasswordAutocomplete } from "./components/input-password/exports";
|
|
19
20
|
import { ListItemVariant, TrailingTextAlignment } from "./components/list-item/list-item/exports";
|
|
@@ -32,11 +33,12 @@ export { AccordionSize } from "./components/accordion/exports";
|
|
|
32
33
|
export { AlertStatus, AlertTarget } from "./components/alert/exports";
|
|
33
34
|
export { IconKit, IconName, IconPosition, IconSize, IconVariant } from "./components/icon/exports";
|
|
34
35
|
export { BadgeVariant } from "./components/badge/exports";
|
|
35
|
-
export { ButtonSize, ButtonTarget, ButtonType, ButtonVariant } from "./components/button/exports";
|
|
36
|
+
export { ButtonAriaCurrent, ButtonSize, ButtonTarget, ButtonType, ButtonVariant } from "./components/button/exports";
|
|
36
37
|
export { DialogSize } from "./components/dialog/exports";
|
|
37
38
|
export { HintVariant } from "./components/hint/exports";
|
|
38
39
|
export { TooltipPosition } from "./components/tooltip/exports";
|
|
39
|
-
export {
|
|
40
|
+
export { IllustrationName, IllustrationTheme } from "./components/illustration/exports";
|
|
41
|
+
export { AutocapitalizeType, EnterKeyHint, InputAutocomplete, InputMode, InputType } from "./components/input/exports";
|
|
40
42
|
export { InputCodeEnterKeyHint, InputCodeInputMode } from "./components/input-code/exports";
|
|
41
43
|
export { PasswordAutocomplete } from "./components/input-password/exports";
|
|
42
44
|
export { ListItemVariant, TrailingTextAlignment } from "./components/list-item/list-item/exports";
|
|
@@ -246,6 +248,10 @@ export namespace Components {
|
|
|
246
248
|
* @default 'start'
|
|
247
249
|
*/
|
|
248
250
|
"iconPosition": IconPosition;
|
|
251
|
+
/**
|
|
252
|
+
* Indicates the current item within a set of related elements. Corresponds to [native `aria-current` attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-current)
|
|
253
|
+
*/
|
|
254
|
+
"rAriaCurrent"?: ButtonAriaCurrent;
|
|
249
255
|
/**
|
|
250
256
|
* Sets string value for `aria-label` attribute (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label)
|
|
251
257
|
*/
|
|
@@ -647,7 +653,58 @@ export namespace Components {
|
|
|
647
653
|
*/
|
|
648
654
|
"variant": 'standard' | 'contained';
|
|
649
655
|
}
|
|
656
|
+
interface RIllustration {
|
|
657
|
+
/**
|
|
658
|
+
* Accessibility: title for the image representing "failed-to-load" state
|
|
659
|
+
* @default 'Failed to load illustration'
|
|
660
|
+
*/
|
|
661
|
+
"emptyImageTitle"?: string;
|
|
662
|
+
/**
|
|
663
|
+
* Accessibility: title for the marker representing "failed-to-load" state
|
|
664
|
+
* @default 'Failed to load illustration marker'
|
|
665
|
+
*/
|
|
666
|
+
"emptyMarkerTitle"?: string;
|
|
667
|
+
/**
|
|
668
|
+
* Error message text to display when illustration fails to load
|
|
669
|
+
* @default 'Failed to load illustration'
|
|
670
|
+
*/
|
|
671
|
+
"errorMessage"?: string;
|
|
672
|
+
/**
|
|
673
|
+
* Maximum width constraint for responsive behavior
|
|
674
|
+
*/
|
|
675
|
+
"maxWidth"?: string;
|
|
676
|
+
/**
|
|
677
|
+
* Minimum width constraint for responsive behavior
|
|
678
|
+
*/
|
|
679
|
+
"minWidth"?: string;
|
|
680
|
+
/**
|
|
681
|
+
* Name of illustration to select from the set
|
|
682
|
+
*/
|
|
683
|
+
"name"?: IllustrationName;
|
|
684
|
+
/**
|
|
685
|
+
* Optional description element to be added inside the SVG for accessibility
|
|
686
|
+
*/
|
|
687
|
+
"svgDescription"?: string;
|
|
688
|
+
/**
|
|
689
|
+
* Optional title element to be added inside the SVG for accessibility
|
|
690
|
+
*/
|
|
691
|
+
"svgTitle"?: string;
|
|
692
|
+
/**
|
|
693
|
+
* Theme mode for illustration rendering
|
|
694
|
+
* @default 'auto'
|
|
695
|
+
*/
|
|
696
|
+
"theme": IllustrationTheme;
|
|
697
|
+
/**
|
|
698
|
+
* Defines initial width of an illustration.
|
|
699
|
+
* @default '342px'
|
|
700
|
+
*/
|
|
701
|
+
"width"?: string;
|
|
702
|
+
}
|
|
650
703
|
interface RInput {
|
|
704
|
+
/**
|
|
705
|
+
* Controls automatic capitalization of text input on mobile devices. - `off` or `none`: No automatic capitalization - `on` or `sentences`: Capitalize first letter of each sentence (default for most text inputs) - `words`: Capitalize first letter of each word - `characters`: Capitalize all characters
|
|
706
|
+
*/
|
|
707
|
+
"autocapitalize"?: AutocapitalizeType;
|
|
651
708
|
/**
|
|
652
709
|
* Native `autocomplete` hint for browsers / password managers.
|
|
653
710
|
*/
|
|
@@ -816,6 +873,10 @@ export namespace Components {
|
|
|
816
873
|
* Set the current value programmatically (does not fire native input/change automatically).
|
|
817
874
|
*/
|
|
818
875
|
"setValue": (value: string) => Promise<void>;
|
|
876
|
+
/**
|
|
877
|
+
* Controls browser spell-checking for text input. When true, enables spell-checking; when false, disables it. Browser default behavior applies when not specified.
|
|
878
|
+
*/
|
|
879
|
+
"spellcheck"?: boolean;
|
|
819
880
|
/**
|
|
820
881
|
* Step interval for numeric/date input types.
|
|
821
882
|
*/
|
|
@@ -1478,21 +1539,41 @@ export namespace Components {
|
|
|
1478
1539
|
* @default true
|
|
1479
1540
|
*/
|
|
1480
1541
|
"arrows": boolean;
|
|
1542
|
+
/**
|
|
1543
|
+
* Label for Ellipsis stepper. Important to ensure accessibility for screen reader users.
|
|
1544
|
+
* @default 'Ellipsis indicating skipped pages'
|
|
1545
|
+
*/
|
|
1546
|
+
"ellipsisLabel": string;
|
|
1481
1547
|
/**
|
|
1482
1548
|
* Text to display after total results
|
|
1483
1549
|
* @default 'results'
|
|
1484
1550
|
*/
|
|
1485
1551
|
"endText": string;
|
|
1552
|
+
/**
|
|
1553
|
+
* Label for First Page button. Important to ensure accessibility for screen reader users.
|
|
1554
|
+
* @default 'Go to the first page'
|
|
1555
|
+
*/
|
|
1556
|
+
"firstPageButtonLabel": string;
|
|
1486
1557
|
/**
|
|
1487
1558
|
* Amount of items to show per page
|
|
1488
1559
|
* @default 5
|
|
1489
1560
|
*/
|
|
1490
1561
|
"itemsPerPage": number;
|
|
1562
|
+
/**
|
|
1563
|
+
* Label for Items per page select.
|
|
1564
|
+
* @default 'Items per page'
|
|
1565
|
+
*/
|
|
1566
|
+
"itemsPerPageLabel": string;
|
|
1491
1567
|
/**
|
|
1492
1568
|
* Items per page options for dropdown
|
|
1493
1569
|
* @default [5, 10, 15, 20, 25, 50, 100]
|
|
1494
1570
|
*/
|
|
1495
1571
|
"itemsPerPageOptions": PaginationItemsPerPageOptions[];
|
|
1572
|
+
/**
|
|
1573
|
+
* Label for Last Page button. Important to ensure accessibility for screen reader users.
|
|
1574
|
+
* @default 'Go to the last page'
|
|
1575
|
+
*/
|
|
1576
|
+
"lastPageButtonLabel": string;
|
|
1496
1577
|
/**
|
|
1497
1578
|
* Position of the list box
|
|
1498
1579
|
* @default 'top'
|
|
@@ -1503,11 +1584,26 @@ export namespace Components {
|
|
|
1503
1584
|
* @default 'of'
|
|
1504
1585
|
*/
|
|
1505
1586
|
"middleText": string;
|
|
1587
|
+
/**
|
|
1588
|
+
* Label for Next Page button. Important to ensure accessibility for screen reader users.
|
|
1589
|
+
* @default 'Go to the next page'
|
|
1590
|
+
*/
|
|
1591
|
+
"nextPageButtonLabel": string;
|
|
1506
1592
|
/**
|
|
1507
1593
|
* Current page number
|
|
1508
1594
|
* @default 1
|
|
1509
1595
|
*/
|
|
1510
1596
|
"pageActive": number;
|
|
1597
|
+
/**
|
|
1598
|
+
* Label for Page number buttons. Important to ensure accessibility for screen reader users.
|
|
1599
|
+
* @default 'Page'
|
|
1600
|
+
*/
|
|
1601
|
+
"pageLabel": string;
|
|
1602
|
+
/**
|
|
1603
|
+
* Label for Previous Page button. Important to ensure accessibility for screen reader users.
|
|
1604
|
+
* @default 'Go to the previous page'
|
|
1605
|
+
*/
|
|
1606
|
+
"previousPageButtonLabel": string;
|
|
1511
1607
|
/**
|
|
1512
1608
|
* UI: Result Line and select field present/absent
|
|
1513
1609
|
* @default false
|
|
@@ -1856,6 +1952,10 @@ export namespace Components {
|
|
|
1856
1952
|
* Specifies if element must be ignored during validation of the form elements
|
|
1857
1953
|
*/
|
|
1858
1954
|
"novalidate"?: boolean;
|
|
1955
|
+
/**
|
|
1956
|
+
* For nested radio groups: specifies the parent radio button value that this nested group belongs to. When the parent group's value changes to a different value, this nested group will be automatically reset. This ensures nested selections are only maintained when their parent context is active.
|
|
1957
|
+
*/
|
|
1958
|
+
"parentValue"?: string;
|
|
1859
1959
|
/**
|
|
1860
1960
|
* Validates the radio group and displays the validity state.
|
|
1861
1961
|
*/
|
|
@@ -2174,6 +2274,15 @@ export namespace Components {
|
|
|
2174
2274
|
* @default 0
|
|
2175
2275
|
*/
|
|
2176
2276
|
"completed": number;
|
|
2277
|
+
/**
|
|
2278
|
+
* Label for completed steps for screen reader users.
|
|
2279
|
+
* @default 'Completed'
|
|
2280
|
+
*/
|
|
2281
|
+
"completedStepsLabel"?: string;
|
|
2282
|
+
/**
|
|
2283
|
+
* Label for the stepper for screen reader users.
|
|
2284
|
+
*/
|
|
2285
|
+
"label"?: string;
|
|
2177
2286
|
/**
|
|
2178
2287
|
* Total number of steps. Used when no slot-based steps provided.
|
|
2179
2288
|
*/
|
|
@@ -2194,6 +2303,10 @@ export namespace Components {
|
|
|
2194
2303
|
* Defines an icon for the step. Optional.
|
|
2195
2304
|
*/
|
|
2196
2305
|
"icon"?: IconName;
|
|
2306
|
+
/**
|
|
2307
|
+
* Label for the step icon for screen reader users.
|
|
2308
|
+
*/
|
|
2309
|
+
"label"?: string;
|
|
2197
2310
|
/**
|
|
2198
2311
|
* Defines the step number. Optional.
|
|
2199
2312
|
*/
|
|
@@ -2445,7 +2558,7 @@ export namespace Components {
|
|
|
2445
2558
|
/**
|
|
2446
2559
|
* Hides toast, keeps it in dom.
|
|
2447
2560
|
*/
|
|
2448
|
-
"hide": () => Promise<
|
|
2561
|
+
"hide": () => Promise<this>;
|
|
2449
2562
|
/**
|
|
2450
2563
|
* Specifies the URL for the call-to-action link.
|
|
2451
2564
|
*/
|
|
@@ -2459,6 +2572,10 @@ export namespace Components {
|
|
|
2459
2572
|
* @default true
|
|
2460
2573
|
*/
|
|
2461
2574
|
"leadingIconVisible": boolean;
|
|
2575
|
+
/**
|
|
2576
|
+
* Measures the natural height of toast and prepares it for reveal animation. This should be called on newly added toasts before they are revealed.
|
|
2577
|
+
*/
|
|
2578
|
+
"measureAndPrepareHeight": () => Promise<void>;
|
|
2462
2579
|
/**
|
|
2463
2580
|
* Controls if toast is initially shown.
|
|
2464
2581
|
* @default true
|
|
@@ -2467,7 +2584,7 @@ export namespace Components {
|
|
|
2467
2584
|
/**
|
|
2468
2585
|
* Reveals the toast notification by setting it to a visible state. If the auto-dismiss delay is enabled, it will start the timer to automatically dismiss the toast after the specified duration.
|
|
2469
2586
|
*/
|
|
2470
|
-
"reveal": () => Promise<
|
|
2587
|
+
"reveal": () => Promise<this>;
|
|
2471
2588
|
/**
|
|
2472
2589
|
* Defines the appearance of the dialog based on the message type. Options are: "info", "success", "warning", or "error".
|
|
2473
2590
|
* @default 'info'
|
|
@@ -2481,7 +2598,7 @@ export namespace Components {
|
|
|
2481
2598
|
/**
|
|
2482
2599
|
* Toggles visibility of the toast.
|
|
2483
2600
|
*/
|
|
2484
|
-
"toggle": () => Promise<
|
|
2601
|
+
"toggle": () => Promise<this>;
|
|
2485
2602
|
/**
|
|
2486
2603
|
* Specifies an optional icon for the trailing slot of the dialog.
|
|
2487
2604
|
* @default 'cross'
|
|
@@ -2535,6 +2652,10 @@ export interface RIconButtonCustomEvent<T> extends CustomEvent<T> {
|
|
|
2535
2652
|
detail: T;
|
|
2536
2653
|
target: HTMLRIconButtonElement;
|
|
2537
2654
|
}
|
|
2655
|
+
export interface RIllustrationCustomEvent<T> extends CustomEvent<T> {
|
|
2656
|
+
detail: T;
|
|
2657
|
+
target: HTMLRIllustrationElement;
|
|
2658
|
+
}
|
|
2538
2659
|
export interface RInputCustomEvent<T> extends CustomEvent<T> {
|
|
2539
2660
|
detail: T;
|
|
2540
2661
|
target: HTMLRInputElement;
|
|
@@ -2846,6 +2967,24 @@ declare global {
|
|
|
2846
2967
|
prototype: HTMLRIconButtonElement;
|
|
2847
2968
|
new (): HTMLRIconButtonElement;
|
|
2848
2969
|
};
|
|
2970
|
+
interface HTMLRIllustrationElementEventMap {
|
|
2971
|
+
"rFailed": void;
|
|
2972
|
+
"rComplete": void;
|
|
2973
|
+
}
|
|
2974
|
+
interface HTMLRIllustrationElement extends Components.RIllustration, HTMLStencilElement {
|
|
2975
|
+
addEventListener<K extends keyof HTMLRIllustrationElementEventMap>(type: K, listener: (this: HTMLRIllustrationElement, ev: RIllustrationCustomEvent<HTMLRIllustrationElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2976
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2977
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2978
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2979
|
+
removeEventListener<K extends keyof HTMLRIllustrationElementEventMap>(type: K, listener: (this: HTMLRIllustrationElement, ev: RIllustrationCustomEvent<HTMLRIllustrationElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
2980
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2981
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2982
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2983
|
+
}
|
|
2984
|
+
var HTMLRIllustrationElement: {
|
|
2985
|
+
prototype: HTMLRIllustrationElement;
|
|
2986
|
+
new (): HTMLRIllustrationElement;
|
|
2987
|
+
};
|
|
2849
2988
|
interface HTMLRInputElementEventMap {
|
|
2850
2989
|
"rValidate": {
|
|
2851
2990
|
state: string,
|
|
@@ -2890,6 +3029,7 @@ declare global {
|
|
|
2890
3029
|
element: HTMLRInputCodeElement,
|
|
2891
3030
|
value: any
|
|
2892
3031
|
};
|
|
3032
|
+
"rComplete": { value: string, isComplete: boolean };
|
|
2893
3033
|
}
|
|
2894
3034
|
interface HTMLRInputCodeElement extends Components.RInputCode, HTMLStencilElement {
|
|
2895
3035
|
addEventListener<K extends keyof HTMLRInputCodeElementEventMap>(type: K, listener: (this: HTMLRInputCodeElement, ev: RInputCodeCustomEvent<HTMLRInputCodeElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -3468,6 +3608,7 @@ declare global {
|
|
|
3468
3608
|
"r-hint": HTMLRHintElement;
|
|
3469
3609
|
"r-icon": HTMLRIconElement;
|
|
3470
3610
|
"r-icon-button": HTMLRIconButtonElement;
|
|
3611
|
+
"r-illustration": HTMLRIllustrationElement;
|
|
3471
3612
|
"r-input": HTMLRInputElement;
|
|
3472
3613
|
"r-input-code": HTMLRInputCodeElement;
|
|
3473
3614
|
"r-input-date": HTMLRInputDateElement;
|
|
@@ -3730,6 +3871,10 @@ declare namespace LocalJSX {
|
|
|
3730
3871
|
* Emits `rClick` event on click and keyup
|
|
3731
3872
|
*/
|
|
3732
3873
|
"onRClick"?: (event: RButtonCustomEvent<any>) => void;
|
|
3874
|
+
/**
|
|
3875
|
+
* Indicates the current item within a set of related elements. Corresponds to [native `aria-current` attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-current)
|
|
3876
|
+
*/
|
|
3877
|
+
"rAriaCurrent"?: ButtonAriaCurrent;
|
|
3733
3878
|
/**
|
|
3734
3879
|
* Sets string value for `aria-label` attribute (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label)
|
|
3735
3880
|
*/
|
|
@@ -4078,7 +4223,66 @@ declare namespace LocalJSX {
|
|
|
4078
4223
|
*/
|
|
4079
4224
|
"variant"?: 'standard' | 'contained';
|
|
4080
4225
|
}
|
|
4226
|
+
interface RIllustration {
|
|
4227
|
+
/**
|
|
4228
|
+
* Accessibility: title for the image representing "failed-to-load" state
|
|
4229
|
+
* @default 'Failed to load illustration'
|
|
4230
|
+
*/
|
|
4231
|
+
"emptyImageTitle"?: string;
|
|
4232
|
+
/**
|
|
4233
|
+
* Accessibility: title for the marker representing "failed-to-load" state
|
|
4234
|
+
* @default 'Failed to load illustration marker'
|
|
4235
|
+
*/
|
|
4236
|
+
"emptyMarkerTitle"?: string;
|
|
4237
|
+
/**
|
|
4238
|
+
* Error message text to display when illustration fails to load
|
|
4239
|
+
* @default 'Failed to load illustration'
|
|
4240
|
+
*/
|
|
4241
|
+
"errorMessage"?: string;
|
|
4242
|
+
/**
|
|
4243
|
+
* Maximum width constraint for responsive behavior
|
|
4244
|
+
*/
|
|
4245
|
+
"maxWidth"?: string;
|
|
4246
|
+
/**
|
|
4247
|
+
* Minimum width constraint for responsive behavior
|
|
4248
|
+
*/
|
|
4249
|
+
"minWidth"?: string;
|
|
4250
|
+
/**
|
|
4251
|
+
* Name of illustration to select from the set
|
|
4252
|
+
*/
|
|
4253
|
+
"name"?: IllustrationName;
|
|
4254
|
+
/**
|
|
4255
|
+
* Emitted when illustration completes loading
|
|
4256
|
+
*/
|
|
4257
|
+
"onRComplete"?: (event: RIllustrationCustomEvent<void>) => void;
|
|
4258
|
+
/**
|
|
4259
|
+
* Emitted when illustration fails to load
|
|
4260
|
+
*/
|
|
4261
|
+
"onRFailed"?: (event: RIllustrationCustomEvent<void>) => void;
|
|
4262
|
+
/**
|
|
4263
|
+
* Optional description element to be added inside the SVG for accessibility
|
|
4264
|
+
*/
|
|
4265
|
+
"svgDescription"?: string;
|
|
4266
|
+
/**
|
|
4267
|
+
* Optional title element to be added inside the SVG for accessibility
|
|
4268
|
+
*/
|
|
4269
|
+
"svgTitle"?: string;
|
|
4270
|
+
/**
|
|
4271
|
+
* Theme mode for illustration rendering
|
|
4272
|
+
* @default 'auto'
|
|
4273
|
+
*/
|
|
4274
|
+
"theme"?: IllustrationTheme;
|
|
4275
|
+
/**
|
|
4276
|
+
* Defines initial width of an illustration.
|
|
4277
|
+
* @default '342px'
|
|
4278
|
+
*/
|
|
4279
|
+
"width"?: string;
|
|
4280
|
+
}
|
|
4081
4281
|
interface RInput {
|
|
4282
|
+
/**
|
|
4283
|
+
* Controls automatic capitalization of text input on mobile devices. - `off` or `none`: No automatic capitalization - `on` or `sentences`: Capitalize first letter of each sentence (default for most text inputs) - `words`: Capitalize first letter of each word - `characters`: Capitalize all characters
|
|
4284
|
+
*/
|
|
4285
|
+
"autocapitalize"?: AutocapitalizeType;
|
|
4082
4286
|
/**
|
|
4083
4287
|
* Native `autocomplete` hint for browsers / password managers.
|
|
4084
4288
|
*/
|
|
@@ -4231,6 +4435,10 @@ declare namespace LocalJSX {
|
|
|
4231
4435
|
* Marks the field as required; failing to provide a value triggers `valueMissing`.
|
|
4232
4436
|
*/
|
|
4233
4437
|
"required"?: boolean;
|
|
4438
|
+
/**
|
|
4439
|
+
* Controls browser spell-checking for text input. When true, enables spell-checking; when false, disables it. Browser default behavior applies when not specified.
|
|
4440
|
+
*/
|
|
4441
|
+
"spellcheck"?: boolean;
|
|
4234
4442
|
/**
|
|
4235
4443
|
* Step interval for numeric/date input types.
|
|
4236
4444
|
*/
|
|
@@ -4350,6 +4558,10 @@ declare namespace LocalJSX {
|
|
|
4350
4558
|
* Emits the current code value as it changes
|
|
4351
4559
|
*/
|
|
4352
4560
|
"onRChange"?: (event: RInputCodeCustomEvent<{ value: string }>) => void;
|
|
4561
|
+
/**
|
|
4562
|
+
* Emits when all segments are filled with values
|
|
4563
|
+
*/
|
|
4564
|
+
"onRComplete"?: (event: RInputCodeCustomEvent<{ value: string, isComplete: boolean }>) => void;
|
|
4353
4565
|
/**
|
|
4354
4566
|
* Emits 'rReset' event when form containing the component was reset
|
|
4355
4567
|
*/
|
|
@@ -4877,21 +5089,41 @@ declare namespace LocalJSX {
|
|
|
4877
5089
|
* @default true
|
|
4878
5090
|
*/
|
|
4879
5091
|
"arrows"?: boolean;
|
|
5092
|
+
/**
|
|
5093
|
+
* Label for Ellipsis stepper. Important to ensure accessibility for screen reader users.
|
|
5094
|
+
* @default 'Ellipsis indicating skipped pages'
|
|
5095
|
+
*/
|
|
5096
|
+
"ellipsisLabel"?: string;
|
|
4880
5097
|
/**
|
|
4881
5098
|
* Text to display after total results
|
|
4882
5099
|
* @default 'results'
|
|
4883
5100
|
*/
|
|
4884
5101
|
"endText"?: string;
|
|
5102
|
+
/**
|
|
5103
|
+
* Label for First Page button. Important to ensure accessibility for screen reader users.
|
|
5104
|
+
* @default 'Go to the first page'
|
|
5105
|
+
*/
|
|
5106
|
+
"firstPageButtonLabel"?: string;
|
|
4885
5107
|
/**
|
|
4886
5108
|
* Amount of items to show per page
|
|
4887
5109
|
* @default 5
|
|
4888
5110
|
*/
|
|
4889
5111
|
"itemsPerPage"?: number;
|
|
5112
|
+
/**
|
|
5113
|
+
* Label for Items per page select.
|
|
5114
|
+
* @default 'Items per page'
|
|
5115
|
+
*/
|
|
5116
|
+
"itemsPerPageLabel"?: string;
|
|
4890
5117
|
/**
|
|
4891
5118
|
* Items per page options for dropdown
|
|
4892
5119
|
* @default [5, 10, 15, 20, 25, 50, 100]
|
|
4893
5120
|
*/
|
|
4894
5121
|
"itemsPerPageOptions"?: PaginationItemsPerPageOptions[];
|
|
5122
|
+
/**
|
|
5123
|
+
* Label for Last Page button. Important to ensure accessibility for screen reader users.
|
|
5124
|
+
* @default 'Go to the last page'
|
|
5125
|
+
*/
|
|
5126
|
+
"lastPageButtonLabel"?: string;
|
|
4895
5127
|
/**
|
|
4896
5128
|
* Position of the list box
|
|
4897
5129
|
* @default 'top'
|
|
@@ -4902,6 +5134,11 @@ declare namespace LocalJSX {
|
|
|
4902
5134
|
* @default 'of'
|
|
4903
5135
|
*/
|
|
4904
5136
|
"middleText"?: string;
|
|
5137
|
+
/**
|
|
5138
|
+
* Label for Next Page button. Important to ensure accessibility for screen reader users.
|
|
5139
|
+
* @default 'Go to the next page'
|
|
5140
|
+
*/
|
|
5141
|
+
"nextPageButtonLabel"?: string;
|
|
4905
5142
|
/**
|
|
4906
5143
|
* Signifies that one of the pagination arrow buttons was cliked. Pagination state and `direction` are passed as part of event `detail` property.
|
|
4907
5144
|
* @example const myPaginationEl = document.querySelector('r-pagination'); myPaginationEl.addEventListener('rArrowClick', (event) => { console.log(`Page ${event.detail} was selected`) });
|
|
@@ -4943,6 +5180,16 @@ declare namespace LocalJSX {
|
|
|
4943
5180
|
* @default 1
|
|
4944
5181
|
*/
|
|
4945
5182
|
"pageActive"?: number;
|
|
5183
|
+
/**
|
|
5184
|
+
* Label for Page number buttons. Important to ensure accessibility for screen reader users.
|
|
5185
|
+
* @default 'Page'
|
|
5186
|
+
*/
|
|
5187
|
+
"pageLabel"?: string;
|
|
5188
|
+
/**
|
|
5189
|
+
* Label for Previous Page button. Important to ensure accessibility for screen reader users.
|
|
5190
|
+
* @default 'Go to the previous page'
|
|
5191
|
+
*/
|
|
5192
|
+
"previousPageButtonLabel"?: string;
|
|
4946
5193
|
/**
|
|
4947
5194
|
* UI: Result Line and select field present/absent
|
|
4948
5195
|
* @default false
|
|
@@ -5276,6 +5523,10 @@ declare namespace LocalJSX {
|
|
|
5276
5523
|
state: string,
|
|
5277
5524
|
message: string
|
|
5278
5525
|
}>) => void;
|
|
5526
|
+
/**
|
|
5527
|
+
* For nested radio groups: specifies the parent radio button value that this nested group belongs to. When the parent group's value changes to a different value, this nested group will be automatically reset. This ensures nested selections are only maintained when their parent context is active.
|
|
5528
|
+
*/
|
|
5529
|
+
"parentValue"?: string;
|
|
5279
5530
|
/**
|
|
5280
5531
|
* Specifies if radio-button within group must be checked
|
|
5281
5532
|
*/
|
|
@@ -5496,6 +5747,15 @@ declare namespace LocalJSX {
|
|
|
5496
5747
|
* @default 0
|
|
5497
5748
|
*/
|
|
5498
5749
|
"completed"?: number;
|
|
5750
|
+
/**
|
|
5751
|
+
* Label for completed steps for screen reader users.
|
|
5752
|
+
* @default 'Completed'
|
|
5753
|
+
*/
|
|
5754
|
+
"completedStepsLabel"?: string;
|
|
5755
|
+
/**
|
|
5756
|
+
* Label for the stepper for screen reader users.
|
|
5757
|
+
*/
|
|
5758
|
+
"label"?: string;
|
|
5499
5759
|
/**
|
|
5500
5760
|
* Total number of steps. Used when no slot-based steps provided.
|
|
5501
5761
|
*/
|
|
@@ -5516,6 +5776,10 @@ declare namespace LocalJSX {
|
|
|
5516
5776
|
* Defines an icon for the step. Optional.
|
|
5517
5777
|
*/
|
|
5518
5778
|
"icon"?: IconName;
|
|
5779
|
+
/**
|
|
5780
|
+
* Label for the step icon for screen reader users.
|
|
5781
|
+
*/
|
|
5782
|
+
"label"?: string;
|
|
5519
5783
|
/**
|
|
5520
5784
|
* Defines the step number. Optional.
|
|
5521
5785
|
*/
|
|
@@ -5855,6 +6119,7 @@ declare namespace LocalJSX {
|
|
|
5855
6119
|
"r-hint": RHint;
|
|
5856
6120
|
"r-icon": RIcon;
|
|
5857
6121
|
"r-icon-button": RIconButton;
|
|
6122
|
+
"r-illustration": RIllustration;
|
|
5858
6123
|
"r-input": RInput;
|
|
5859
6124
|
"r-input-code": RInputCode;
|
|
5860
6125
|
"r-input-date": RInputDate;
|
|
@@ -5947,6 +6212,7 @@ declare module "@stencil/core" {
|
|
|
5947
6212
|
* An icon button is a button that contains only an icon and is used to trigger an action.
|
|
5948
6213
|
*/
|
|
5949
6214
|
"r-icon-button": LocalJSX.RIconButton & JSXBase.HTMLAttributes<HTMLRIconButtonElement>;
|
|
6215
|
+
"r-illustration": LocalJSX.RIllustration & JSXBase.HTMLAttributes<HTMLRIllustrationElement>;
|
|
5950
6216
|
"r-input": LocalJSX.RInput & JSXBase.HTMLAttributes<HTMLRInputElement>;
|
|
5951
6217
|
"r-input-code": LocalJSX.RInputCode & JSXBase.HTMLAttributes<HTMLRInputCodeElement>;
|
|
5952
6218
|
"r-input-date": LocalJSX.RInputDate & JSXBase.HTMLAttributes<HTMLRInputDateElement>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as t,H as r,g as s}from"./p-CTxpqopm.js";const p=class{constructor(t){e(this,t),this.completed=0,this.completeSteps=0,this.completedStepsLabel="Completed",this.handleSlotChange=()=>{this.setStepStatus(),this.updateVisibilityOfStepText()}}handleCompletedStepsLabelChange(){this.setStepStatus()}onResize(){this.updateVisibilityOfStepText()}get hasSteps(){return this.host.querySelectorAll("r-stepper-item").length>0}componentDidLoad(){this.setStepStatus(),this.updateVisibilityOfStepText()}setStepStatus(){var e;const t=(null===(e=this.host.shadowRoot)||void 0===e?void 0:e.querySelectorAll("r-stepper-item"))||[],r=this.host.querySelectorAll("r-stepper-item")||[],s=[...Array.from(t),...Array.from(r)];null==s||s.forEach((e=>{const t=e.querySelector(".visually-hidden");t&&t.remove();const r=document.createElement("span");r.className="visually-hidden",r.textContent=e.complete?`${this.completedStepsLabel}.`:"",e.prepend(r)}))}getTextElementWidth(e){var t;const r=null===(t=e.shadowRoot)||void 0===t?void 0:t.querySelector(".r-stepper-item--text");if(!r)return 0;const s=r.classList.contains("visually-hidden");s&&r.classList.remove("visually-hidden");const p=r.offsetWidth;return s&&r.classList.add("visually-hidden"),p}updateVisibilityOfStepText(){const e=this.host.querySelectorAll("r-stepper-item")||[];let t=0;e.forEach((e=>{t+=this.getTextElementWidth(e)+20})),e.forEach(t>=this.host.offsetWidth?e=>{var t;null===(t=e.shadowRoot.querySelector(".r-stepper-item--text"))||void 0===t||t.classList.add("visually-hidden")}:e=>{var t;null===(t=e.shadowRoot.querySelector(".r-stepper-item--text"))||void 0===t||t.classList.remove("visually-hidden")})}render(){const e=this.completed||this.completeSteps;return t(r,{key:"9a8684fe78d610b90c824a8bd06371efc222b94a"},t("ol",{key:"89c37db27cab79946f29e5302784f3a17c853cef",class:"r-stepper","aria-label":this.label||null},!this.hasSteps&&Array.from({length:this.total},((r,s)=>t("r-stepper-item",{number:s+1,complete:e>s,active:e===s,key:s}))),t("slot",{key:"92d043648fb9c12ca5222a569ec40a917798af5a",onSlotchange:this.handleSlotChange})))}get host(){return s(this)}static get watchers(){return{completedStepsLabel:["handleCompletedStepsLabelChange"]}}};p.style='.r-stepper{display:var(--r-stepper--display, flex);align-items:var(--r-stepper--align-items, top);list-style-type:var(--r-stepper--list-style-type, none);padding:var(--r-stepper--padding, 0);margin:var(--r-stepper--margin, 0)}.r-stepper>r-stepper-item,.r-stepper ::slotted(r-stepper-item){display:var(--r-stepper--slotted--stepper-item--display, flex)}.r-stepper>r-stepper-item:not(:last-of-type),.r-stepper ::slotted(r-stepper-item:not(:last-child)){flex:var(--r-stepper--slotted--stepper-item--flex, 1)}.r-stepper>r-stepper-item:not(:last-of-type)::after,.r-stepper ::slotted(r-stepper-item:not(:last-child))::after{content:var(--r-stepper-divider--content, "");display:var(--r-stepper-divider--display, block);position:var(--r-stepper-divider--position, relative);width:var(--r-stepper-divider--width, 100%);height:var(--r-stepper-divider--height, 1px);top:var(--r-stepper-divider--top, 0.625rem);background-color:var(--r-stepper-divider--background-color, var(--r-text-regular, #282828))}';export{p as r_stepper}
|