@riverty/web-components 6.3.0 → 6.3.1
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 +6 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
- package/dist/cjs/focusable-Oll_rmtP.js +28 -0
- package/dist/cjs/formData-B2DZyLxP.js +44 -0
- package/dist/cjs/index-BnETQtSf.js +1834 -0
- package/dist/cjs/index.cjs.js +37 -0
- package/dist/cjs/loader.cjs.js +13 -0
- package/dist/cjs/r-accordion-panel.cjs.entry.js +24 -0
- package/dist/cjs/r-accordion-section.cjs.entry.js +125 -0
- package/dist/cjs/r-accordion-trigger.cjs.entry.js +93 -0
- package/dist/cjs/r-accordion.cjs.entry.js +20 -0
- package/dist/cjs/r-alert.cjs.entry.js +146 -0
- package/dist/cjs/r-badge.cjs.entry.js +41 -0
- package/dist/cjs/r-button.cjs.entry.js +149 -0
- package/dist/cjs/r-checkbox-group.cjs.entry.js +237 -0
- package/dist/cjs/r-checkbox.cjs.entry.js +274 -0
- package/dist/cjs/r-design-system-devtools.cjs.entry.js +31 -0
- package/dist/cjs/r-dialog.cjs.entry.js +107 -0
- package/dist/cjs/r-hint_2.cjs.entry.js +50 -0
- package/dist/cjs/r-icon-button_2.cjs.entry.js +492 -0
- package/dist/cjs/r-icon.cjs.entry.js +284 -0
- package/dist/cjs/r-illustration.cjs.entry.js +396 -0
- package/dist/cjs/r-input-code.cjs.entry.js +437 -0
- package/dist/cjs/r-input-date.cjs.entry.js +524 -0
- package/dist/cjs/r-input-password.cjs.entry.js +270 -0
- package/dist/cjs/r-input-phone-number.cjs.entry.js +2525 -0
- package/dist/cjs/r-input.cjs.entry.js +618 -0
- package/dist/cjs/r-list-item.cjs.entry.js +109 -0
- package/dist/cjs/r-pagination.cjs.entry.js +320 -0
- package/dist/cjs/r-panel.cjs.entry.js +184 -0
- package/dist/cjs/r-popover-action.cjs.entry.js +80 -0
- package/dist/cjs/r-popover-content.cjs.entry.js +62 -0
- package/dist/cjs/r-popover-headline.cjs.entry.js +28 -0
- package/dist/cjs/r-popover-trigger.cjs.entry.js +70 -0
- package/dist/cjs/r-popover.cjs.entry.js +347 -0
- package/dist/cjs/r-progress-bar.cjs.entry.js +25 -0
- package/dist/cjs/r-radio-button-description.cjs.entry.js +18 -0
- package/dist/cjs/r-radio-button-leading.cjs.entry.js +18 -0
- package/dist/cjs/r-radio-button-title.cjs.entry.js +18 -0
- package/dist/cjs/r-radio-button-trailing.cjs.entry.js +18 -0
- package/dist/cjs/r-radio-button.cjs.entry.js +139 -0
- package/dist/cjs/r-radio-group.cjs.entry.js +428 -0
- package/dist/cjs/r-select-option.cjs.entry.js +130 -0
- package/dist/cjs/r-select.cjs.entry.js +1107 -0
- package/dist/cjs/r-skip-link.cjs.entry.js +19 -0
- package/dist/cjs/r-stepper-item.cjs.entry.js +42 -0
- package/dist/cjs/r-stepper.cjs.entry.js +99 -0
- package/dist/cjs/r-tab-panel.cjs.entry.js +26 -0
- package/dist/cjs/r-tab.cjs.entry.js +62 -0
- package/dist/cjs/r-tabs-list.cjs.entry.js +175 -0
- package/dist/cjs/r-tabs.cjs.entry.js +277 -0
- package/dist/cjs/r-textarea.cjs.entry.js +270 -0
- package/dist/cjs/r-toast-group.cjs.entry.js +46 -0
- package/dist/cjs/r-toast.cjs.entry.js +314 -0
- package/dist/cjs/style-observer-D9zSP9wP.js +1118 -0
- package/dist/cjs/theming-NqxjhVJS.js +109 -0
- package/dist/cjs/web-components.cjs.js +25 -0
- package/dist/collection/collection-manifest.json +60 -0
- package/dist/collection/components/accordion/accordion.css +24 -0
- package/dist/collection/components/accordion/accordion.js +90 -0
- package/dist/collection/components/accordion/exports.js +1 -0
- package/dist/collection/components/accordion-panel/accordion-panel.css +50 -0
- package/dist/collection/components/accordion-panel/accordion-panel.js +86 -0
- package/dist/collection/components/accordion-section/accordion-section.css +27 -0
- package/dist/collection/components/accordion-section/accordion-section.js +235 -0
- package/dist/collection/components/accordion-trigger/accordion-trigger.css +93 -0
- package/dist/collection/components/accordion-trigger/accordion-trigger.js +220 -0
- package/dist/collection/components/alert/alert.css +120 -0
- package/dist/collection/components/alert/alert.js +526 -0
- package/dist/collection/components/alert/exports.js +2 -0
- package/dist/collection/components/badge/badge.css +62 -0
- package/dist/collection/components/badge/badge.js +124 -0
- package/dist/collection/components/badge/exports.js +1 -0
- package/dist/collection/components/button/button.css +180 -0
- package/dist/collection/components/button/button.js +510 -0
- package/dist/collection/components/button/exports.js +5 -0
- package/dist/collection/components/checkbox/checkbox.css +116 -0
- package/dist/collection/components/checkbox/checkbox.js +803 -0
- package/dist/collection/components/checkbox-group/checkbox-group.css +48 -0
- package/dist/collection/components/checkbox-group/checkbox-group.js +744 -0
- package/dist/collection/components/design-system-devtools/design-system-devtools.js +59 -0
- package/dist/collection/components/dialog/dialog.css +125 -0
- package/dist/collection/components/dialog/dialog.js +345 -0
- package/dist/collection/components/dialog/exports.js +9 -0
- package/dist/collection/components/hint/exports.js +1 -0
- package/dist/collection/components/hint/hint.css +63 -0
- package/dist/collection/components/hint/hint.js +114 -0
- package/dist/collection/components/icon/all-kit.js +2 -0
- package/dist/collection/components/icon/data.js +90 -0
- package/dist/collection/components/icon/exports.js +7 -0
- package/dist/collection/components/icon/icon.css +105 -0
- package/dist/collection/components/icon/icon.js +379 -0
- package/dist/collection/components/icon/riverty-kit.js +2 -0
- package/dist/collection/components/icon-button/icon-button.css +105 -0
- package/dist/collection/components/icon-button/icon-button.js +343 -0
- package/dist/collection/components/illustration/data.js +112 -0
- package/dist/collection/components/illustration/exports.js +3 -0
- package/dist/collection/components/illustration/illustration.css +52 -0
- package/dist/collection/components/illustration/illustration.js +540 -0
- package/dist/collection/components/illustration/illustrations-ui-kit.js +2 -0
- package/dist/collection/components/input/exports.js +62 -0
- package/dist/collection/components/input/input.css +186 -0
- package/dist/collection/components/input/input.js +1861 -0
- package/dist/collection/components/input-code/exports.js +2 -0
- package/dist/collection/components/input-code/input-code.css +127 -0
- package/dist/collection/components/input-code/input-code.js +1165 -0
- package/dist/collection/components/input-date/exports.js +1 -0
- package/dist/collection/components/input-date/input-date.css +148 -0
- package/dist/collection/components/input-date/input-date.js +1254 -0
- package/dist/collection/components/input-password/exports.js +1 -0
- package/dist/collection/components/input-password/input-password.css +25 -0
- package/dist/collection/components/input-password/input-password.js +1077 -0
- package/dist/collection/components/input-phone-number/input-phone-number.css +61 -0
- package/dist/collection/components/input-phone-number/input-phone-number.js +893 -0
- package/dist/collection/components/label/label.css +38 -0
- package/dist/collection/components/label/label.js +47 -0
- package/dist/collection/components/list-item/list-item/exports.js +2 -0
- package/dist/collection/components/list-item/list-item/list-item.css +199 -0
- package/dist/collection/components/list-item/list-item/list-item.js +467 -0
- package/dist/collection/components/pagination/exports.js +3 -0
- package/dist/collection/components/pagination/pagination.css +118 -0
- package/dist/collection/components/pagination/pagination.js +814 -0
- package/dist/collection/components/panel/exports.js +1 -0
- package/dist/collection/components/panel/panel.css +192 -0
- package/dist/collection/components/panel/panel.js +473 -0
- package/dist/collection/components/popover/exports.js +3 -0
- package/dist/collection/components/popover/popover.css +251 -0
- package/dist/collection/components/popover/popover.js +741 -0
- package/dist/collection/components/popover-action/popover-action.css +21 -0
- package/dist/collection/components/popover-action/popover-action.js +150 -0
- package/dist/collection/components/popover-content/popover-content.css +9 -0
- package/dist/collection/components/popover-content/popover-content.js +130 -0
- package/dist/collection/components/popover-headline/popover-headline.css +7 -0
- package/dist/collection/components/popover-headline/popover-headline.js +28 -0
- package/dist/collection/components/popover-trigger/exports.js +1 -0
- package/dist/collection/components/popover-trigger/popover-trigger.css +4 -0
- package/dist/collection/components/popover-trigger/popover-trigger.js +163 -0
- package/dist/collection/components/progress-bar/progress-bar.css +41 -0
- package/dist/collection/components/progress-bar/progress-bar.js +71 -0
- package/dist/collection/components/radio-button/radio-button.css +126 -0
- package/dist/collection/components/radio-button/radio-button.js +559 -0
- package/dist/collection/components/radio-button-description/radio-button-description.css +5 -0
- package/dist/collection/components/radio-button-description/radio-button-description.js +22 -0
- package/dist/collection/components/radio-button-leading/radio-button-leading.css +3 -0
- package/dist/collection/components/radio-button-leading/radio-button-leading.js +22 -0
- package/dist/collection/components/radio-button-title/radio-button-title.css +8 -0
- package/dist/collection/components/radio-button-title/radio-button-title.js +22 -0
- package/dist/collection/components/radio-button-trailing/radio-button-trailing.css +6 -0
- package/dist/collection/components/radio-button-trailing/radio-button-trailing.js +22 -0
- package/dist/collection/components/radio-group/exports.js +1 -0
- package/dist/collection/components/radio-group/radio-group.css +65 -0
- package/dist/collection/components/radio-group/radio-group.js +1023 -0
- package/dist/collection/components/select/exports.js +1 -0
- package/dist/collection/components/select/select.css +247 -0
- package/dist/collection/components/select/select.js +2038 -0
- package/dist/collection/components/select-option/select-option.css +93 -0
- package/dist/collection/components/select-option/select-option.js +459 -0
- package/dist/collection/components/skip-link/exports.js +1 -0
- package/dist/collection/components/skip-link/skip-link.css +37 -0
- package/dist/collection/components/skip-link/skip-link.js +52 -0
- package/dist/collection/components/stepper/stepper.css +25 -0
- package/dist/collection/components/stepper/stepper.js +216 -0
- package/dist/collection/components/stepper-item/stepper-item.css +62 -0
- package/dist/collection/components/stepper-item/stepper-item.js +171 -0
- package/dist/collection/components/tab/tab.css +81 -0
- package/dist/collection/components/tab/tab.js +169 -0
- package/dist/collection/components/tab-panel/tab-panel.css +19 -0
- package/dist/collection/components/tab-panel/tab-panel.js +72 -0
- package/dist/collection/components/tabs/tabs.css +4 -0
- package/dist/collection/components/tabs/tabs.js +345 -0
- package/dist/collection/components/tabs-list/exports.js +2 -0
- package/dist/collection/components/tabs-list/tabs-list.css +58 -0
- package/dist/collection/components/tabs-list/tabs-list.js +294 -0
- package/dist/collection/components/textarea/exports.js +8 -0
- package/dist/collection/components/textarea/textarea.css +148 -0
- package/dist/collection/components/textarea/textarea.js +1055 -0
- package/dist/collection/components/toast/exports.js +3 -0
- package/dist/collection/components/toast/toast.css +179 -0
- package/dist/collection/components/toast/toast.js +820 -0
- package/dist/collection/components/toast-group/exports.js +1 -0
- package/dist/collection/components/toast-group/toast-group.css +37 -0
- package/dist/collection/components/toast-group/toast-group.js +49 -0
- package/dist/collection/components/tooltip/exports.js +3 -0
- package/dist/collection/components/tooltip/tooltip.css +77 -0
- package/dist/collection/components/tooltip/tooltip.js +525 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/utils/focusable.js +24 -0
- package/dist/collection/utils/formData.js +40 -0
- package/dist/collection/utils/theming.js +103 -0
- package/dist/collection/utils/version-checker.js +33 -0
- package/dist/esm/app-globals-DQuL1Twl.js +3 -0
- package/dist/esm/focusable-ky1yonnS.js +26 -0
- package/dist/esm/formData-DvLT8-y3.js +42 -0
- package/dist/esm/index-CTxpqopm.js +1806 -0
- package/dist/esm/index.js +35 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/r-accordion-panel.entry.js +22 -0
- package/dist/esm/r-accordion-section.entry.js +123 -0
- package/dist/esm/r-accordion-trigger.entry.js +91 -0
- package/dist/esm/r-accordion.entry.js +18 -0
- package/dist/esm/r-alert.entry.js +144 -0
- package/dist/esm/r-badge.entry.js +39 -0
- package/dist/esm/r-button.entry.js +147 -0
- package/dist/esm/r-checkbox-group.entry.js +235 -0
- package/dist/esm/r-checkbox.entry.js +272 -0
- package/dist/esm/r-design-system-devtools.entry.js +29 -0
- package/dist/esm/r-dialog.entry.js +105 -0
- package/dist/esm/r-hint_2.entry.js +47 -0
- package/dist/esm/r-icon-button_2.entry.js +489 -0
- package/dist/esm/r-icon.entry.js +282 -0
- package/dist/esm/r-illustration.entry.js +394 -0
- package/dist/esm/r-input-code.entry.js +435 -0
- package/dist/esm/r-input-date.entry.js +522 -0
- package/dist/esm/r-input-password.entry.js +268 -0
- package/dist/esm/r-input-phone-number.entry.js +2523 -0
- package/dist/esm/r-input.entry.js +616 -0
- package/dist/esm/r-list-item.entry.js +107 -0
- package/dist/esm/r-pagination.entry.js +318 -0
- package/dist/esm/r-panel.entry.js +182 -0
- package/dist/esm/r-popover-action.entry.js +78 -0
- package/dist/esm/r-popover-content.entry.js +60 -0
- package/dist/esm/r-popover-headline.entry.js +26 -0
- package/dist/esm/r-popover-trigger.entry.js +68 -0
- package/dist/esm/r-popover.entry.js +345 -0
- package/dist/esm/r-progress-bar.entry.js +23 -0
- package/dist/esm/r-radio-button-description.entry.js +16 -0
- package/dist/esm/r-radio-button-leading.entry.js +16 -0
- package/dist/esm/r-radio-button-title.entry.js +16 -0
- package/dist/esm/r-radio-button-trailing.entry.js +16 -0
- package/dist/esm/r-radio-button.entry.js +137 -0
- package/dist/esm/r-radio-group.entry.js +426 -0
- package/dist/esm/r-select-option.entry.js +128 -0
- package/dist/esm/r-select.entry.js +1105 -0
- package/dist/esm/r-skip-link.entry.js +17 -0
- package/dist/esm/r-stepper-item.entry.js +40 -0
- package/dist/esm/r-stepper.entry.js +97 -0
- package/dist/esm/r-tab-panel.entry.js +24 -0
- package/dist/esm/r-tab.entry.js +60 -0
- package/dist/esm/r-tabs-list.entry.js +173 -0
- package/dist/esm/r-tabs.entry.js +275 -0
- package/dist/esm/r-textarea.entry.js +268 -0
- package/dist/esm/r-toast-group.entry.js +44 -0
- package/dist/esm/r-toast.entry.js +312 -0
- package/dist/esm/style-observer-4Uv3PpKT.js +1116 -0
- package/dist/esm/theming-DD2IrjpG.js +106 -0
- package/dist/esm/web-components.js +21 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/accordion/accordion.d.ts +27 -0
- package/dist/types/components/accordion/exports.d.ts +2 -0
- package/dist/types/components/accordion-panel/accordion-panel.d.ts +10 -0
- package/dist/types/components/accordion-section/accordion-section.d.ts +36 -0
- package/dist/types/components/accordion-trigger/accordion-trigger.d.ts +33 -0
- package/dist/types/components/alert/alert.d.ts +67 -0
- package/dist/types/components/alert/exports.d.ts +4 -0
- package/dist/types/components/badge/badge.d.ts +26 -0
- package/dist/types/components/badge/exports.d.ts +2 -0
- package/dist/types/components/button/button.d.ts +89 -0
- package/dist/types/components/button/exports.d.ts +10 -0
- package/dist/types/components/checkbox/checkbox.d.ts +138 -0
- package/dist/types/components/checkbox-group/checkbox-group.d.ts +124 -0
- package/dist/types/components/design-system-devtools/design-system-devtools.d.ts +15 -0
- package/dist/types/components/dialog/dialog.d.ts +69 -0
- package/dist/types/components/dialog/exports.d.ts +10 -0
- package/dist/types/components/hint/exports.d.ts +2 -0
- package/dist/types/components/hint/hint.d.ts +20 -0
- package/dist/types/components/icon/all-kit.d.ts +2890 -0
- package/dist/types/components/icon/data.d.ts +145 -0
- package/dist/types/components/icon/exports.d.ts +152 -0
- package/dist/types/components/icon/icon.d.ts +37 -0
- package/dist/types/components/icon/riverty-kit.d.ts +139 -0
- package/dist/types/components/icon-button/icon-button.d.ts +69 -0
- 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 +55 -0
- package/dist/types/components/input/input.d.ts +365 -0
- package/dist/types/components/input-code/exports.d.ts +4 -0
- package/dist/types/components/input-code/input-code.d.ts +177 -0
- package/dist/types/components/input-date/exports.d.ts +5 -0
- package/dist/types/components/input-date/input-date.d.ts +174 -0
- package/dist/types/components/input-password/exports.d.ts +1 -0
- package/dist/types/components/input-password/input-password.d.ts +186 -0
- package/dist/types/components/input-phone-number/input-phone-number.d.ts +130 -0
- package/dist/types/components/label/label.d.ts +9 -0
- package/dist/types/components/list-item/list-item/exports.d.ts +4 -0
- package/dist/types/components/list-item/list-item/list-item.d.ts +61 -0
- package/dist/types/components/pagination/exports.d.ts +6 -0
- package/dist/types/components/pagination/pagination.d.ts +140 -0
- package/dist/types/components/panel/exports.d.ts +2 -0
- package/dist/types/components/panel/panel.d.ts +56 -0
- package/dist/types/components/popover/exports.d.ts +6 -0
- package/dist/types/components/popover/popover.d.ts +131 -0
- package/dist/types/components/popover-action/popover-action.d.ts +24 -0
- package/dist/types/components/popover-content/popover-content.d.ts +22 -0
- package/dist/types/components/popover-headline/popover-headline.d.ts +6 -0
- package/dist/types/components/popover-trigger/exports.d.ts +2 -0
- package/dist/types/components/popover-trigger/popover-trigger.d.ts +31 -0
- package/dist/types/components/progress-bar/progress-bar.d.ts +10 -0
- package/dist/types/components/radio-button/radio-button.d.ts +92 -0
- package/dist/types/components/radio-button-description/radio-button-description.d.ts +8 -0
- package/dist/types/components/radio-button-leading/radio-button-leading.d.ts +8 -0
- package/dist/types/components/radio-button-title/radio-button-title.d.ts +8 -0
- package/dist/types/components/radio-button-trailing/radio-button-trailing.d.ts +8 -0
- package/dist/types/components/radio-group/exports.d.ts +2 -0
- package/dist/types/components/radio-group/radio-group.d.ts +179 -0
- package/dist/types/components/select/exports.d.ts +2 -0
- package/dist/types/components/select/select.d.ts +319 -0
- package/dist/types/components/select-option/select-option.d.ts +113 -0
- package/dist/types/components/skip-link/exports.d.ts +2 -0
- package/dist/types/components/skip-link/skip-link.d.ts +6 -0
- package/dist/types/components/stepper/stepper.d.ts +22 -0
- package/dist/types/components/stepper-item/stepper-item.d.ts +23 -0
- package/dist/types/components/tab/tab.d.ts +23 -0
- package/dist/types/components/tab-panel/tab-panel.d.ts +7 -0
- package/dist/types/components/tabs/tabs.d.ts +49 -0
- package/dist/types/components/tabs-list/exports.d.ts +4 -0
- package/dist/types/components/tabs-list/tabs-list.d.ts +41 -0
- package/dist/types/components/textarea/exports.d.ts +2 -0
- package/dist/types/components/textarea/textarea.d.ts +158 -0
- package/dist/types/components/toast/exports.d.ts +6 -0
- package/dist/types/components/toast/toast.d.ts +146 -0
- package/dist/types/components/toast-group/exports.d.ts +2 -0
- package/dist/types/components/toast-group/toast-group.d.ts +9 -0
- package/dist/types/components/tooltip/exports.d.ts +6 -0
- package/dist/types/components/tooltip/tooltip.d.ts +132 -0
- package/dist/types/components.d.ts +6347 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1732 -0
- package/dist/types/types/jsx-shim.d.ts +13 -0
- package/dist/types/types/style-observer.d.ts +20 -0
- package/dist/types/utils/focusable.d.ts +1 -0
- package/dist/types/utils/formData.d.ts +1 -0
- package/dist/types/utils/theming.d.ts +15 -0
- package/dist/types/utils/version-checker.d.ts +1 -0
- package/dist/web-components/index.esm.js +1 -0
- package/dist/web-components/p-01aefcf0.entry.js +1 -0
- package/dist/web-components/p-05cb55db.entry.js +1 -0
- package/dist/web-components/p-0a34d33b.entry.js +1 -0
- package/dist/web-components/p-11b22309.entry.js +1 -0
- package/dist/web-components/p-2d878934.entry.js +1 -0
- package/dist/web-components/p-325dbedf.entry.js +1 -0
- package/dist/web-components/p-34b9457b.entry.js +1 -0
- package/dist/web-components/p-36abd05a.entry.js +1 -0
- package/dist/web-components/p-386d1ef9.entry.js +1 -0
- package/dist/web-components/p-3d67b77b.entry.js +1 -0
- package/dist/web-components/p-4Uv3PpKT.js +1 -0
- package/dist/web-components/p-4b12fbc0.entry.js +1 -0
- package/dist/web-components/p-52f7b505.entry.js +1 -0
- package/dist/web-components/p-55600d47.entry.js +1 -0
- package/dist/web-components/p-57ebc474.entry.js +1 -0
- package/dist/web-components/p-57edf7f4.entry.js +1 -0
- package/dist/web-components/p-69a24fe2.entry.js +1 -0
- package/dist/web-components/p-6d92648c.entry.js +1 -0
- package/dist/web-components/p-75052597.entry.js +1 -0
- package/dist/web-components/p-7b2c5b63.entry.js +1 -0
- package/dist/web-components/p-7bf463ff.entry.js +1 -0
- package/dist/web-components/p-838e43d4.entry.js +1 -0
- package/dist/web-components/p-8c16d038.entry.js +1 -0
- package/dist/web-components/p-8f8313de.entry.js +1 -0
- package/dist/web-components/p-9026d5a2.entry.js +1 -0
- package/dist/web-components/p-95396b5c.entry.js +1 -0
- package/dist/web-components/p-9c31c7c4.entry.js +1 -0
- package/dist/web-components/p-9c415b9c.entry.js +1 -0
- package/dist/web-components/p-9f583ed1.entry.js +1 -0
- package/dist/web-components/p-B9rsR6cQ.js +1 -0
- package/dist/web-components/p-CTxpqopm.js +2 -0
- package/dist/web-components/p-DQuL1Twl.js +1 -0
- package/dist/web-components/p-DvLT8-y3.js +1 -0
- package/dist/web-components/p-b303b2cc.entry.js +1 -0
- package/dist/web-components/p-b8df041d.entry.js +1 -0
- package/dist/web-components/p-bc30844f.entry.js +1 -0
- package/dist/web-components/p-c4a77a65.entry.js +1 -0
- package/dist/web-components/p-c549addf.entry.js +1 -0
- package/dist/web-components/p-c65df19f.entry.js +1 -0
- package/dist/web-components/p-c80a5541.entry.js +1 -0
- package/dist/web-components/p-c96ee61a.entry.js +1 -0
- package/dist/web-components/p-cf3f044d.entry.js +1 -0
- package/dist/web-components/p-d1412932.entry.js +1 -0
- package/dist/web-components/p-d9778cfa.entry.js +1 -0
- package/dist/web-components/p-dbe4ccb8.entry.js +1 -0
- package/dist/web-components/p-ded50850.entry.js +1 -0
- package/dist/web-components/p-e5be895b.entry.js +1 -0
- package/dist/web-components/p-e6b34c1e.entry.js +1 -0
- package/dist/web-components/p-ec3c4800.entry.js +1 -0
- package/dist/web-components/p-f670fd87.entry.js +1 -0
- package/dist/web-components/p-f867e4c3.entry.js +1 -0
- package/dist/web-components/p-ff6b1b8f.entry.js +1 -0
- package/dist/web-components/p-ky1yonnS.js +1 -0
- package/dist/web-components/web-components.esm.js +1 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
const OFFSET = 20;
|
|
3
|
+
export class Stepper {
|
|
4
|
+
constructor() {
|
|
5
|
+
/** Complete steps. Default value 0 */
|
|
6
|
+
this.completed = 0;
|
|
7
|
+
/** _DEPRECATED_ (use `completed` instead) Completed steps. Default value 0 */
|
|
8
|
+
this.completeSteps = 0;
|
|
9
|
+
/** Label for completed steps for screen reader users. */
|
|
10
|
+
this.completedStepsLabel = 'Completed';
|
|
11
|
+
this.handleSlotChange = () => {
|
|
12
|
+
this.setStepStatus();
|
|
13
|
+
this.updateVisibilityOfStepText();
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
handleCompletedStepsLabelChange() {
|
|
17
|
+
this.setStepStatus();
|
|
18
|
+
}
|
|
19
|
+
onResize() {
|
|
20
|
+
this.updateVisibilityOfStepText();
|
|
21
|
+
}
|
|
22
|
+
get hasSteps() {
|
|
23
|
+
return this.host.querySelectorAll('r-stepper-item').length > 0;
|
|
24
|
+
}
|
|
25
|
+
componentDidLoad() {
|
|
26
|
+
this.setStepStatus();
|
|
27
|
+
this.updateVisibilityOfStepText();
|
|
28
|
+
}
|
|
29
|
+
setStepStatus() {
|
|
30
|
+
var _a;
|
|
31
|
+
const innerSteps = ((_a = this.host.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('r-stepper-item')) || [];
|
|
32
|
+
const slotSteps = this.host.querySelectorAll('r-stepper-item') || [];
|
|
33
|
+
const allSteps = [...Array.from(innerSteps), ...Array.from(slotSteps)];
|
|
34
|
+
allSteps === null || allSteps === void 0 ? void 0 : allSteps.forEach((step) => {
|
|
35
|
+
const existingSpan = step.querySelector('.visually-hidden');
|
|
36
|
+
if (existingSpan) {
|
|
37
|
+
existingSpan.remove();
|
|
38
|
+
}
|
|
39
|
+
const span = document.createElement('span');
|
|
40
|
+
span.className = 'visually-hidden';
|
|
41
|
+
span.textContent = `${step.complete ? `${this.completedStepsLabel}.` : ''}`;
|
|
42
|
+
step.prepend(span);
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
getTextElementWidth(stepElement) {
|
|
46
|
+
var _a;
|
|
47
|
+
const textElement = (_a = stepElement.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.r-stepper-item--text');
|
|
48
|
+
if (!textElement)
|
|
49
|
+
return 0;
|
|
50
|
+
// Temporarily remove visually-hidden to get the natural width
|
|
51
|
+
const wasHidden = textElement.classList.contains('visually-hidden');
|
|
52
|
+
if (wasHidden) {
|
|
53
|
+
textElement.classList.remove('visually-hidden');
|
|
54
|
+
}
|
|
55
|
+
const width = textElement.offsetWidth;
|
|
56
|
+
// Restore the previous state
|
|
57
|
+
if (wasHidden) {
|
|
58
|
+
textElement.classList.add('visually-hidden');
|
|
59
|
+
}
|
|
60
|
+
return width;
|
|
61
|
+
}
|
|
62
|
+
updateVisibilityOfStepText() {
|
|
63
|
+
const slotSteps = this.host.querySelectorAll('r-stepper-item') || [];
|
|
64
|
+
let totalWidth = 0;
|
|
65
|
+
slotSteps.forEach((step) => {
|
|
66
|
+
totalWidth += this.getTextElementWidth(step) + OFFSET;
|
|
67
|
+
});
|
|
68
|
+
const isOverflowing = totalWidth >= this.host.offsetWidth;
|
|
69
|
+
if (isOverflowing) {
|
|
70
|
+
slotSteps.forEach((step) => {
|
|
71
|
+
var _a;
|
|
72
|
+
(_a = step.shadowRoot.querySelector('.r-stepper-item--text')) === null || _a === void 0 ? void 0 : _a.classList.add('visually-hidden');
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
slotSteps.forEach((step) => {
|
|
77
|
+
var _a;
|
|
78
|
+
(_a = step.shadowRoot.querySelector('.r-stepper-item--text')) === null || _a === void 0 ? void 0 : _a.classList.remove('visually-hidden');
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
render() {
|
|
83
|
+
const completed = this.completed || this.completeSteps;
|
|
84
|
+
return (h(Host, { key: 'd4e3e3aca9a2c52e3549c686679ca6d110b715c0' }, h("ol", { key: '7cad36ede8507e3583f877ce3856df903f5ddd80', class: "r-stepper", "aria-label": this.label || null }, !this.hasSteps && Array.from({ length: this.total }, (_, index) => (h("r-stepper-item", { number: index + 1, complete: completed > index, active: completed === index, key: index }))), h("slot", { key: '4942b4293e607acc74afa59a49dd4b4ce0348f5e', onSlotchange: this.handleSlotChange }))));
|
|
85
|
+
}
|
|
86
|
+
static get is() { return "r-stepper"; }
|
|
87
|
+
static get encapsulation() { return "shadow"; }
|
|
88
|
+
static get originalStyleUrls() {
|
|
89
|
+
return {
|
|
90
|
+
"$": ["stepper.css"]
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
static get styleUrls() {
|
|
94
|
+
return {
|
|
95
|
+
"$": ["stepper.css"]
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
static get properties() {
|
|
99
|
+
return {
|
|
100
|
+
"completed": {
|
|
101
|
+
"type": "number",
|
|
102
|
+
"attribute": "completed",
|
|
103
|
+
"mutable": false,
|
|
104
|
+
"complexType": {
|
|
105
|
+
"original": "number",
|
|
106
|
+
"resolved": "number",
|
|
107
|
+
"references": {}
|
|
108
|
+
},
|
|
109
|
+
"required": false,
|
|
110
|
+
"optional": false,
|
|
111
|
+
"docs": {
|
|
112
|
+
"tags": [],
|
|
113
|
+
"text": "Complete steps. Default value 0"
|
|
114
|
+
},
|
|
115
|
+
"getter": false,
|
|
116
|
+
"setter": false,
|
|
117
|
+
"reflect": true,
|
|
118
|
+
"defaultValue": "0"
|
|
119
|
+
},
|
|
120
|
+
"completeSteps": {
|
|
121
|
+
"type": "number",
|
|
122
|
+
"attribute": "complete-steps",
|
|
123
|
+
"mutable": false,
|
|
124
|
+
"complexType": {
|
|
125
|
+
"original": "number",
|
|
126
|
+
"resolved": "number",
|
|
127
|
+
"references": {}
|
|
128
|
+
},
|
|
129
|
+
"required": false,
|
|
130
|
+
"optional": false,
|
|
131
|
+
"docs": {
|
|
132
|
+
"tags": [],
|
|
133
|
+
"text": "_DEPRECATED_ (use `completed` instead) Completed steps. Default value 0"
|
|
134
|
+
},
|
|
135
|
+
"getter": false,
|
|
136
|
+
"setter": false,
|
|
137
|
+
"reflect": true,
|
|
138
|
+
"defaultValue": "0"
|
|
139
|
+
},
|
|
140
|
+
"total": {
|
|
141
|
+
"type": "number",
|
|
142
|
+
"attribute": "total",
|
|
143
|
+
"mutable": false,
|
|
144
|
+
"complexType": {
|
|
145
|
+
"original": "number",
|
|
146
|
+
"resolved": "number",
|
|
147
|
+
"references": {}
|
|
148
|
+
},
|
|
149
|
+
"required": false,
|
|
150
|
+
"optional": true,
|
|
151
|
+
"docs": {
|
|
152
|
+
"tags": [],
|
|
153
|
+
"text": "Total number of steps. Used when no slot-based steps provided."
|
|
154
|
+
},
|
|
155
|
+
"getter": false,
|
|
156
|
+
"setter": false,
|
|
157
|
+
"reflect": false
|
|
158
|
+
},
|
|
159
|
+
"label": {
|
|
160
|
+
"type": "string",
|
|
161
|
+
"attribute": "label",
|
|
162
|
+
"mutable": false,
|
|
163
|
+
"complexType": {
|
|
164
|
+
"original": "string",
|
|
165
|
+
"resolved": "string",
|
|
166
|
+
"references": {}
|
|
167
|
+
},
|
|
168
|
+
"required": false,
|
|
169
|
+
"optional": true,
|
|
170
|
+
"docs": {
|
|
171
|
+
"tags": [],
|
|
172
|
+
"text": "Label for the stepper for screen reader users."
|
|
173
|
+
},
|
|
174
|
+
"getter": false,
|
|
175
|
+
"setter": false,
|
|
176
|
+
"reflect": true
|
|
177
|
+
},
|
|
178
|
+
"completedStepsLabel": {
|
|
179
|
+
"type": "string",
|
|
180
|
+
"attribute": "completed-steps-label",
|
|
181
|
+
"mutable": false,
|
|
182
|
+
"complexType": {
|
|
183
|
+
"original": "string",
|
|
184
|
+
"resolved": "string",
|
|
185
|
+
"references": {}
|
|
186
|
+
},
|
|
187
|
+
"required": false,
|
|
188
|
+
"optional": true,
|
|
189
|
+
"docs": {
|
|
190
|
+
"tags": [],
|
|
191
|
+
"text": "Label for completed steps for screen reader users."
|
|
192
|
+
},
|
|
193
|
+
"getter": false,
|
|
194
|
+
"setter": false,
|
|
195
|
+
"reflect": true,
|
|
196
|
+
"defaultValue": "'Completed'"
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
static get elementRef() { return "host"; }
|
|
201
|
+
static get watchers() {
|
|
202
|
+
return [{
|
|
203
|
+
"propName": "completedStepsLabel",
|
|
204
|
+
"methodName": "handleCompletedStepsLabelChange"
|
|
205
|
+
}];
|
|
206
|
+
}
|
|
207
|
+
static get listeners() {
|
|
208
|
+
return [{
|
|
209
|
+
"name": "resize",
|
|
210
|
+
"method": "onResize",
|
|
211
|
+
"target": "window",
|
|
212
|
+
"capture": false,
|
|
213
|
+
"passive": true
|
|
214
|
+
}];
|
|
215
|
+
}
|
|
216
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
:host([active]) {
|
|
2
|
+
--r-stepper-item--indicator--background-color: var(--r-background-inverse, #282828);
|
|
3
|
+
--r-stepper-item--color: var(--r-text-inverse, #FFF);
|
|
4
|
+
--r-stepper-item--text--color: var(--r-text-regular, #282828);
|
|
5
|
+
--r-stepper-item--indicator--border-color: transparent;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
:host([complete]) {
|
|
9
|
+
--r-stepper-item--indicator--background-color: var(--r-status-success-regular, #298535);
|
|
10
|
+
--r-stepper-item--color: var(--r-text-inverse, #FFF);
|
|
11
|
+
--r-stepper-item--text--color: var(--r-text-regular, #282828);
|
|
12
|
+
--r-stepper-item--indicator--border-color: transparent;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
::slotted(.visually-hidden),
|
|
16
|
+
[data-visually-hidden-only=true],
|
|
17
|
+
.visually-hidden {
|
|
18
|
+
position: absolute;
|
|
19
|
+
width: 1px;
|
|
20
|
+
height: 1px;
|
|
21
|
+
padding: 0;
|
|
22
|
+
margin: -1px;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
clip: rect(0, 0, 0, 0);
|
|
25
|
+
border: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.r-stepper-item {
|
|
29
|
+
display: var(--r-stepper-item--display, flex);
|
|
30
|
+
flex-direction: var(--r-stepper-item--flex-direction, column);
|
|
31
|
+
align-items: var(--r-stepper-item--align-items, center);
|
|
32
|
+
justify-content: var(--r-stepper-item--justify-content, center);
|
|
33
|
+
font-size: var(--r-stepper-item--font-size, var(--r-font-size-200, 0.8125rem));
|
|
34
|
+
color: var(--r-stepper-item--color, var(--r-text-regular, #282828));
|
|
35
|
+
font-family: var(--r-stepper-item--font-family, var(--r-font-family-text, system-ui));
|
|
36
|
+
width: var(--r-stepper-item--width, var(--r-spacing-225, 2.25rem));
|
|
37
|
+
white-space: var(--r-stepper-item--white-space, nowrap);
|
|
38
|
+
gap: var(--r-stepper-item--gap, var(--r-spacing-100, 0.5rem));
|
|
39
|
+
}
|
|
40
|
+
.r-stepper-item--indicator {
|
|
41
|
+
width: var(--r-stepper-item--indicator--width, var(--r-spacing-125, 1.25rem));
|
|
42
|
+
height: var(--r-stepper-item--indicator--height, var(--r-spacing-125, 1.25rem));
|
|
43
|
+
line-height: var(--r-stepper-item--indicator--line-height, var(--r-spacing-125, 1.25rem));
|
|
44
|
+
border-radius: var(--r-stepper-item--indicator--border-radius, 50%);
|
|
45
|
+
background-color: var(--r-stepper-item--indicator--background-color, transparent);
|
|
46
|
+
display: var(--r-stepper-item--indicator--display, flex);
|
|
47
|
+
justify-content: var(--r-stepper-item--indicator--justify-content, center);
|
|
48
|
+
align-items: var(--r-stepper-item--indicator--align-items, center);
|
|
49
|
+
border-width: var(--r-stepper-item--indicator--border-width, 1px);
|
|
50
|
+
border-style: var(--r-stepper-item--indicator--border-style, solid);
|
|
51
|
+
border-color: var(--r-stepper-item--indicator--border-color, var(--r-text-regular, #282828));
|
|
52
|
+
margin-left: var(--r-stepper-item--indicator--margin-left, var(--r-spacing-100, 0.5rem));
|
|
53
|
+
margin-right: var(--r-stepper-item--indicator--margin-right, var(--r-spacing-100, 0.5rem));
|
|
54
|
+
}
|
|
55
|
+
.r-stepper-item--indicator--step-number {
|
|
56
|
+
vertical-align: var(--r-stepper-item--step-number--vertical-align, middle);
|
|
57
|
+
}
|
|
58
|
+
.r-stepper-item--text {
|
|
59
|
+
font-size: var(--r-stepper-item--text--font-size, var(--r-font-size-200, 0.8125rem));
|
|
60
|
+
color: var(--r-stepper-item--text--color, var(--r-text-regular, #282828));
|
|
61
|
+
text-align: var(--r-stepper-item--text--text-align, center);
|
|
62
|
+
}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
export class StepperItem {
|
|
3
|
+
constructor() {
|
|
4
|
+
/** Defines a property complete that determines whether the step is complete */
|
|
5
|
+
this.complete = false;
|
|
6
|
+
/** Defines a property active that determines whether the step is active */
|
|
7
|
+
this.active = false;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Checks if the slot contains only visually-hidden elements (no visible text).
|
|
11
|
+
* Returns true if only visually-hidden elements are present.
|
|
12
|
+
*/
|
|
13
|
+
get hasOnlyVisuallyHiddenContent() {
|
|
14
|
+
var _a;
|
|
15
|
+
const textContent = ((_a = this.host.textContent) === null || _a === void 0 ? void 0 : _a.trim()) || '';
|
|
16
|
+
const visuallyHiddenElement = this.host.querySelector('.visually-hidden');
|
|
17
|
+
if (!visuallyHiddenElement) {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
const visuallyHiddenText = visuallyHiddenElement.textContent || '';
|
|
21
|
+
const remainingText = textContent.replace(visuallyHiddenText.trim(), '').trim();
|
|
22
|
+
return !remainingText.length;
|
|
23
|
+
}
|
|
24
|
+
get hasText() {
|
|
25
|
+
return this.host.textContent.trim().length > 0;
|
|
26
|
+
}
|
|
27
|
+
render() {
|
|
28
|
+
const number = this.number || this.stepNumber;
|
|
29
|
+
return (h(Host, { key: '2a3f15db4e1214ddb2b9b9ca61f7be4f7cc93cdf', role: "listitem", "aria-current": this.active ? 'step' : null }, h("div", { key: '98026269db0de698e020ac591d99cb4ac8ff296b', class: "r-stepper-item" }, h("div", { key: '87227beabbe2200e0ac4e99fa4246a72eaaebf55', class: "r-stepper-item--indicator" }, this.complete ? (h("r-icon", { name: "check", size: "s" })) : this.icon ? (h("r-icon", { name: this.icon, iconAriaLabel: this.label, size: "s" })) : number !== undefined ? (h("span", { "aria-hidden": `${!this.hasOnlyVisuallyHiddenContent}`, class: "r-stepper-item--indicator--step-number" }, number)) : null), this.hasText &&
|
|
30
|
+
h("div", { key: '447f86dfda0e76666e5d313f088e45e7a0a86787', "data-visually-hidden-only": `${this.hasOnlyVisuallyHiddenContent}`, class: "r-stepper-item--text" }, h("slot", { key: '039013569ab20d64f2e067325f341b2d720acc19' })))));
|
|
31
|
+
}
|
|
32
|
+
static get is() { return "r-stepper-item"; }
|
|
33
|
+
static get encapsulation() { return "shadow"; }
|
|
34
|
+
static get originalStyleUrls() {
|
|
35
|
+
return {
|
|
36
|
+
"$": ["stepper-item.css"]
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
static get styleUrls() {
|
|
40
|
+
return {
|
|
41
|
+
"$": ["stepper-item.css"]
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
static get properties() {
|
|
45
|
+
return {
|
|
46
|
+
"complete": {
|
|
47
|
+
"type": "boolean",
|
|
48
|
+
"attribute": "complete",
|
|
49
|
+
"mutable": false,
|
|
50
|
+
"complexType": {
|
|
51
|
+
"original": "boolean",
|
|
52
|
+
"resolved": "boolean",
|
|
53
|
+
"references": {}
|
|
54
|
+
},
|
|
55
|
+
"required": false,
|
|
56
|
+
"optional": false,
|
|
57
|
+
"docs": {
|
|
58
|
+
"tags": [],
|
|
59
|
+
"text": "Defines a property complete that determines whether the step is complete"
|
|
60
|
+
},
|
|
61
|
+
"getter": false,
|
|
62
|
+
"setter": false,
|
|
63
|
+
"reflect": true,
|
|
64
|
+
"defaultValue": "false"
|
|
65
|
+
},
|
|
66
|
+
"active": {
|
|
67
|
+
"type": "boolean",
|
|
68
|
+
"attribute": "active",
|
|
69
|
+
"mutable": false,
|
|
70
|
+
"complexType": {
|
|
71
|
+
"original": "boolean",
|
|
72
|
+
"resolved": "boolean",
|
|
73
|
+
"references": {}
|
|
74
|
+
},
|
|
75
|
+
"required": false,
|
|
76
|
+
"optional": false,
|
|
77
|
+
"docs": {
|
|
78
|
+
"tags": [],
|
|
79
|
+
"text": "Defines a property active that determines whether the step is active"
|
|
80
|
+
},
|
|
81
|
+
"getter": false,
|
|
82
|
+
"setter": false,
|
|
83
|
+
"reflect": true,
|
|
84
|
+
"defaultValue": "false"
|
|
85
|
+
},
|
|
86
|
+
"icon": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"attribute": "icon",
|
|
89
|
+
"mutable": false,
|
|
90
|
+
"complexType": {
|
|
91
|
+
"original": "IconName",
|
|
92
|
+
"resolved": "string",
|
|
93
|
+
"references": {
|
|
94
|
+
"IconName": {
|
|
95
|
+
"location": "import",
|
|
96
|
+
"path": "../icon/exports",
|
|
97
|
+
"id": "src/components/icon/exports.ts::IconName"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"required": false,
|
|
102
|
+
"optional": true,
|
|
103
|
+
"docs": {
|
|
104
|
+
"tags": [],
|
|
105
|
+
"text": "Defines an icon for the step. Optional."
|
|
106
|
+
},
|
|
107
|
+
"getter": false,
|
|
108
|
+
"setter": false,
|
|
109
|
+
"reflect": true
|
|
110
|
+
},
|
|
111
|
+
"number": {
|
|
112
|
+
"type": "number",
|
|
113
|
+
"attribute": "number",
|
|
114
|
+
"mutable": false,
|
|
115
|
+
"complexType": {
|
|
116
|
+
"original": "number",
|
|
117
|
+
"resolved": "number",
|
|
118
|
+
"references": {}
|
|
119
|
+
},
|
|
120
|
+
"required": false,
|
|
121
|
+
"optional": true,
|
|
122
|
+
"docs": {
|
|
123
|
+
"tags": [],
|
|
124
|
+
"text": "Defines the step number. Optional."
|
|
125
|
+
},
|
|
126
|
+
"getter": false,
|
|
127
|
+
"setter": false,
|
|
128
|
+
"reflect": true
|
|
129
|
+
},
|
|
130
|
+
"stepNumber": {
|
|
131
|
+
"type": "number",
|
|
132
|
+
"attribute": "step-number",
|
|
133
|
+
"mutable": false,
|
|
134
|
+
"complexType": {
|
|
135
|
+
"original": "number",
|
|
136
|
+
"resolved": "number",
|
|
137
|
+
"references": {}
|
|
138
|
+
},
|
|
139
|
+
"required": false,
|
|
140
|
+
"optional": true,
|
|
141
|
+
"docs": {
|
|
142
|
+
"tags": [],
|
|
143
|
+
"text": "_DEPRECATED_ (use `number` instead) Index of the progress step"
|
|
144
|
+
},
|
|
145
|
+
"getter": false,
|
|
146
|
+
"setter": false,
|
|
147
|
+
"reflect": true
|
|
148
|
+
},
|
|
149
|
+
"label": {
|
|
150
|
+
"type": "string",
|
|
151
|
+
"attribute": "label",
|
|
152
|
+
"mutable": false,
|
|
153
|
+
"complexType": {
|
|
154
|
+
"original": "string",
|
|
155
|
+
"resolved": "string",
|
|
156
|
+
"references": {}
|
|
157
|
+
},
|
|
158
|
+
"required": false,
|
|
159
|
+
"optional": true,
|
|
160
|
+
"docs": {
|
|
161
|
+
"tags": [],
|
|
162
|
+
"text": "Label for the step icon for screen reader users."
|
|
163
|
+
},
|
|
164
|
+
"getter": false,
|
|
165
|
+
"setter": false,
|
|
166
|
+
"reflect": true
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
static get elementRef() { return "host"; }
|
|
171
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: flex;
|
|
3
|
+
outline: none;
|
|
4
|
+
opacity: 1;
|
|
5
|
+
cursor: pointer;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
:host(:hover:not([disabled]:not([disabled=false]))) {
|
|
9
|
+
--r-tab--background: var(--r-background-interactive-hovered, rgba(40, 40, 40, 0.04));
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:host(:active:not([disabled]:not([disabled=false]))) {
|
|
13
|
+
--r-tab--background: var(--r-background-interactive-pressed, rgba(40,40,40,0.12));
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:host(:focus-visible) {
|
|
17
|
+
--r-tab--box-shadow: 0 0 0 6px var(--r-border-focused-outlined, #fff);
|
|
18
|
+
--r-tab--outline: 2px solid var(--r-border-focused, #0071e3);
|
|
19
|
+
--r-tab--outline-offset: 2px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
:host([active]:not([active=false])) {
|
|
23
|
+
cursor: default;
|
|
24
|
+
--r-tab--font-weight: var(--r-font-weight-semibold, 600);
|
|
25
|
+
--r-tab--marker--visibility: visible;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:host([disabled]:not([disabled=false])) {
|
|
29
|
+
cursor: not-allowed;
|
|
30
|
+
--r-tab--pointer-events: none;
|
|
31
|
+
--r-tab--color: var(--r-text-soft, #686868);
|
|
32
|
+
--r-tab--marker--background-color: var(--r-border-soft, #686868) ;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.r-tab {
|
|
36
|
+
position: var(--r-tab--position, relative);
|
|
37
|
+
font-family: var(--r-tab--font-family, var(--r-font-family-text, system-ui));
|
|
38
|
+
font-weight: var(--r-tab--font-weight, var(--r-font-weight-regular, 400));
|
|
39
|
+
font-size: var(--r-tab--font-size, var(--r-font-size-400, 1rem));
|
|
40
|
+
line-height: var(--r-tab--line-height, var(--r-line-height-m, 1.5));
|
|
41
|
+
cursor: var(--r-tab--cursor, inherit);
|
|
42
|
+
pointer-events: var(--r-tab--pointer-events, initial);
|
|
43
|
+
display: var(--r-tab--display, flex);
|
|
44
|
+
align-items: var(--r-tab--align-items, center);
|
|
45
|
+
justify-content: var(--r-tab--justify-content, center);
|
|
46
|
+
gap: var(--r-tab--gap, var(--r-spacing-050, 0.5rem));
|
|
47
|
+
width: var(--r-tab--width, auto);
|
|
48
|
+
padding-top: var(--r-tab--padding-top, var(--r-spacing-025, 0.25rem));
|
|
49
|
+
padding-right: var(--r-tab--padding-right, var(--r-spacing-050, 0.5rem));
|
|
50
|
+
padding-bottom: var(--r-tab--padding-bottom, var(--r-spacing-100, 1rem));
|
|
51
|
+
padding-left: var(--r-tab--padding-left, var(--r-spacing-050, 0.5rem));
|
|
52
|
+
margin-bottom: var(--r-tab--margin-bottom, -1px);
|
|
53
|
+
opacity: var(--r-tab--opacity, 1);
|
|
54
|
+
background: var(--r-tab--background, none);
|
|
55
|
+
color: var(--r-tab--color, var(--r-text-regular, #282828));
|
|
56
|
+
border: var(--r-tab--border, none);
|
|
57
|
+
box-shadow: var(--r-tab--box-shadow, none);
|
|
58
|
+
outline: var(--r-tab--outline, none);
|
|
59
|
+
outline-offset: var(--r-tab--outline-offset, 0);
|
|
60
|
+
}
|
|
61
|
+
.r-tab::after {
|
|
62
|
+
content: var(--r-tab--marker--content, "");
|
|
63
|
+
width: var(--r-tab--marker--width, 100%);
|
|
64
|
+
height: var(--r-tab--marker--height, 3px);
|
|
65
|
+
position: var(--r-tab--marker--position, absolute);
|
|
66
|
+
bottom: var(--r-tab--marker--bottom, 0);
|
|
67
|
+
left: var(--r-tab--marker--left, 0);
|
|
68
|
+
visibility: var(--r-tab--marker--visibility, hidden);
|
|
69
|
+
background-color: var(--r-tab--marker--background-color, var(--r-border-regular, #282828));
|
|
70
|
+
transition: var(--r-tab--marker--transition, all 0.1s ease-in);
|
|
71
|
+
}
|
|
72
|
+
.r-tab--disabled-icon,
|
|
73
|
+
.r-tab ::slotted([slot=icon]) {
|
|
74
|
+
color: var(--r-tab--icon--color, var(--r-icon-soft, #686868));
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@media (prefers-reduced-motion) {
|
|
78
|
+
.r-tab::after {
|
|
79
|
+
transition: none;
|
|
80
|
+
}
|
|
81
|
+
}
|