@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,93 @@
|
|
|
1
|
+
:host(:hover) {
|
|
2
|
+
--r-select-option--background-color: var(--r-background-interactive-hovered);
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
:host(:not([aria-disabled=true]):focus) {
|
|
6
|
+
outline: var(--outline, none);
|
|
7
|
+
--r-select-option--background-color: var(--r-background-interactive-hovered);
|
|
8
|
+
--r-select-option--border-color: var(--r-background-interactive-softest);
|
|
9
|
+
--r-select-option--box-shadow: inset 0px 0px 0px 1px var(--r-border-focused-outlined, #fff), inset 0 0 0 3px var(--r-border-focused, #0071e3), inset 0 0 0 4px var(--r-border-focused-outlined, #fff);
|
|
10
|
+
--r-select-option--outline: 2px solid var(--r-border-focused, #0071e3);
|
|
11
|
+
--r-select-option--outline-offset: -4px;
|
|
12
|
+
--r-select-option--z-index: 1;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:host([data-focused=true]) {
|
|
16
|
+
outline: var(--outline, none);
|
|
17
|
+
--r-select-option--background-color: var(--r-background-interactive-hovered);
|
|
18
|
+
--r-select-option--border-color: var(--r-background-interactive-softest);
|
|
19
|
+
--r-select-option--box-shadow: inset 0px 0px 0px 1px var(--r-border-focused-outlined, #fff), inset 0 0 0 3px var(--r-border-focused, #0071e3), inset 0 0 0 4px var(--r-border-focused-outlined, #fff);
|
|
20
|
+
--r-select-option--outline: 2px solid var(--r-border-focused, #0071e3);
|
|
21
|
+
--r-select-option--outline-offset: -4px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:host(:not([aria-disabled=true]):active) {
|
|
25
|
+
--r-select-option--background-color: var(--r-background-interactive-pressed);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:host([aria-disabled=true]),
|
|
29
|
+
:host([aria-disabled=true]:hover),
|
|
30
|
+
:host([aria-disabled=true]:focus) {
|
|
31
|
+
--r-select-option--opacity: 0.4;
|
|
32
|
+
--r-select-option--background-color: transparent;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:host([aria-selected=true]) {
|
|
36
|
+
--r-select-option--font-weight: 600;
|
|
37
|
+
--r-select-option--background-color: var(--r-background-interactive-hovered);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:host([aria-hidden=true]) {
|
|
41
|
+
--r-select-option--display: none;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:host([icon-position=end]) {
|
|
45
|
+
--r-select-option--flex-direction: row-reverse;
|
|
46
|
+
--r-select-option--icon--margin-left: 0.75em;
|
|
47
|
+
--r-select-option--icon--margin-right: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.r-select-option {
|
|
51
|
+
box-sizing: var(--r-select-option--box-sizing);
|
|
52
|
+
position: var(--r-select-option--position);
|
|
53
|
+
display: var(--r-select-option--display, flex);
|
|
54
|
+
flex-direction: var(--r-select-option--flex-direction, row);
|
|
55
|
+
min-height: var(--r-select-option--min-height, 1.125em);
|
|
56
|
+
width: var(--r-select-option--width, auto);
|
|
57
|
+
font-size: var(--r-select-option--font-size, 1rem);
|
|
58
|
+
line-height: var(--r-select-option--line-height, 1.2);
|
|
59
|
+
font-weight: var(--r-select-option--font-weight, normal);
|
|
60
|
+
padding-top: var(--r-select-option--padding-top, 0.75em);
|
|
61
|
+
padding-right: var(--r-select-option--padding-right, 0.75em);
|
|
62
|
+
padding-bottom: var(--r-select-option--padding-bottom, 0.75em);
|
|
63
|
+
padding-left: var(--r-select-option--padding-left, 0.75em);
|
|
64
|
+
align-items: var(--r-select-option--align-items, center);
|
|
65
|
+
color: var(--r-select-option--color, inherit);
|
|
66
|
+
background-color: var(--r-select-option--background-color, rgba(0, 0, 0, 0));
|
|
67
|
+
border-color: var(--r-select-option--border-color, rgba(0, 0, 0, 0));
|
|
68
|
+
border-radius: var(--r-select-option--border-radius, 0);
|
|
69
|
+
border-width: var(--r-select-option--border-width, 1px);
|
|
70
|
+
border-style: var(--r-select-option--border-style, solid);
|
|
71
|
+
box-shadow: var(--r-select-option--box-shadow, none);
|
|
72
|
+
outline: var(--r-select-option--outline, none);
|
|
73
|
+
outline-offset: var(--r-select-option--outline-offset, 0);
|
|
74
|
+
transform: var(--r-select-option--transform, none);
|
|
75
|
+
z-index: var(--r-select-option--z-index, 0);
|
|
76
|
+
opacity: var(--r-select-option--opacity, 1);
|
|
77
|
+
}
|
|
78
|
+
.r-select-option--icon {
|
|
79
|
+
display: var(--r-select-option--icon--display, inline-flex);
|
|
80
|
+
align-items: var(--r-select-option--icon--align-items, center);
|
|
81
|
+
justify-content: var(--r-select-option--icon--justify-content, center);
|
|
82
|
+
margin-top: var(--r-select-option--icon--margin-top, 0.05em);
|
|
83
|
+
margin-left: var(--r-select-option--icon--margin-left, 0);
|
|
84
|
+
margin-right: var(--r-select-option--icon--margin-right, 0.75em);
|
|
85
|
+
}
|
|
86
|
+
.r-select-option--icon svg {
|
|
87
|
+
display: var(--r-select-option--icon--svg--display, inline-flex);
|
|
88
|
+
}
|
|
89
|
+
.r-select-option--label {
|
|
90
|
+
max-width: var(--r-select-option--label--max-width, 100%);
|
|
91
|
+
text-overflow: var(--r-select-option--label--text-overflow, ellipsis);
|
|
92
|
+
white-space: var(--r-select-option--label--white-space, normal);
|
|
93
|
+
}
|
|
@@ -0,0 +1,459 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* `<r-select-option>` represents a single choice inside `<r-select>`.
|
|
4
|
+
*
|
|
5
|
+
* Accessibility:
|
|
6
|
+
* - Hosts `role="option"` and `aria-selected` / `aria-disabled`.
|
|
7
|
+
* - Emits granular events consumed by the parent select for state + keyboard logic.
|
|
8
|
+
*
|
|
9
|
+
* Keyboard (handled by parent `<r-select>`):
|
|
10
|
+
* - Arrow keys move focus between options.
|
|
11
|
+
* - Enter/Space commit the focused option.
|
|
12
|
+
* - Typeahead supported via characters typed while the listbox is open.
|
|
13
|
+
*
|
|
14
|
+
* Do not use directly outside `<r-select>`.
|
|
15
|
+
*/
|
|
16
|
+
export class SelectOption {
|
|
17
|
+
constructor() {
|
|
18
|
+
/**
|
|
19
|
+
* When true, the option is not focusable or selectable.
|
|
20
|
+
* @default false
|
|
21
|
+
*/
|
|
22
|
+
this.disabled = false;
|
|
23
|
+
/**
|
|
24
|
+
* Marks the option as selected. Controlled by `<r-select>`; not user‑set in isolation.
|
|
25
|
+
* @default false
|
|
26
|
+
*/
|
|
27
|
+
this.selected = false;
|
|
28
|
+
/**
|
|
29
|
+
* Icon size (applied when `icon` provided).
|
|
30
|
+
* @default "m"
|
|
31
|
+
*/
|
|
32
|
+
this.iconSize = 'm';
|
|
33
|
+
/**
|
|
34
|
+
* Icon color token / CSS color value (when `icon` provided).
|
|
35
|
+
* @default "var(--r-select-option--color)"
|
|
36
|
+
*/
|
|
37
|
+
this.iconColor = 'var(--r-select-option--color)';
|
|
38
|
+
/**
|
|
39
|
+
* Icon position relative to label content.
|
|
40
|
+
* @default "start"
|
|
41
|
+
*/
|
|
42
|
+
this.iconPosition = 'start';
|
|
43
|
+
/** Internal unique id assigned for accessibility / focus tracking. */
|
|
44
|
+
this.uniqueId = `r-select-option-${Date.now().toString(32)}${Math.random().toString(32)}`.replace(/\./g, '');
|
|
45
|
+
this.isFocused = false;
|
|
46
|
+
this.isSelected = false;
|
|
47
|
+
this.handleClick = event => {
|
|
48
|
+
event.preventDefault();
|
|
49
|
+
if (this.disabled)
|
|
50
|
+
return;
|
|
51
|
+
const { host, value } = this;
|
|
52
|
+
this.optionClick.emit({
|
|
53
|
+
element: host,
|
|
54
|
+
value
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
this.handleKeydown = event => {
|
|
58
|
+
event.preventDefault();
|
|
59
|
+
if (this.disabled)
|
|
60
|
+
return;
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Sets the component's focus state programmatically.
|
|
65
|
+
* @method
|
|
66
|
+
* @returns Promise that resolves once the focus state has been applied.
|
|
67
|
+
*/
|
|
68
|
+
async setFocus() {
|
|
69
|
+
this.isFocused = true;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Removes the component's focus state programmatically.
|
|
73
|
+
* @method
|
|
74
|
+
* @returns Promise that resolves once the focus state has been removed.
|
|
75
|
+
*/
|
|
76
|
+
async setBlur() {
|
|
77
|
+
this.isFocused = false;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Marks this option as selected.
|
|
81
|
+
*
|
|
82
|
+
* Sets the internal `isSelected` flag to `true`. Declared as `async` to allow for
|
|
83
|
+
* future asynchronous side effects or integration with async selection workflows,
|
|
84
|
+
* and may be safely awaited by callers.
|
|
85
|
+
*
|
|
86
|
+
* Idempotent: calling it multiple times will keep the option selected.
|
|
87
|
+
*
|
|
88
|
+
* @returns Promise that resolves once the selection state has been updated.
|
|
89
|
+
*/
|
|
90
|
+
async setSelected() {
|
|
91
|
+
this.isSelected = true;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Clears the current selection state for this option by setting `isSelected` to `false`.
|
|
95
|
+
*
|
|
96
|
+
* Intended for use when programmatically resetting or updating the selection (e.g., on form reset
|
|
97
|
+
* or when enforcing single-selection logic in a parent component).
|
|
98
|
+
*
|
|
99
|
+
* Side effects:
|
|
100
|
+
* - Triggers any reactive updates or re-renders that depend on `isSelected`.
|
|
101
|
+
*
|
|
102
|
+
* @returns A promise that resolves after the selection state has been cleared.
|
|
103
|
+
*/
|
|
104
|
+
async clearSelected() {
|
|
105
|
+
this.isSelected = false;
|
|
106
|
+
}
|
|
107
|
+
get hasIconSlot() {
|
|
108
|
+
return !!this.host.querySelector('[slot="icon"]');
|
|
109
|
+
}
|
|
110
|
+
get definedValue() {
|
|
111
|
+
var _a, _b;
|
|
112
|
+
const text = (_a = this.host.textContent) === null || _a === void 0 ? void 0 : _a.trim();
|
|
113
|
+
const label = (_b = this.host.getAttribute('label')) === null || _b === void 0 ? void 0 : _b.trim();
|
|
114
|
+
return label || text || '';
|
|
115
|
+
}
|
|
116
|
+
componentWillLoad() {
|
|
117
|
+
var _a;
|
|
118
|
+
const isValue = ((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
119
|
+
if (!isValue) {
|
|
120
|
+
this.host.setAttribute('value', this.definedValue);
|
|
121
|
+
}
|
|
122
|
+
this.isSelected = this.selected;
|
|
123
|
+
}
|
|
124
|
+
render() {
|
|
125
|
+
const { disabled, uniqueId, icon, iconSize, iconColor, hasIconSlot } = this;
|
|
126
|
+
const iconAttributes = {
|
|
127
|
+
name: icon,
|
|
128
|
+
size: iconSize,
|
|
129
|
+
color: iconColor
|
|
130
|
+
};
|
|
131
|
+
return (h(Host, { key: 'f55e1ac28062ff9c02ab76c3e1b9aede186743a2', id: uniqueId, role: "option", onClick: this.handleClick, onKeydown: this.handleKeydown, "aria-disabled": `${disabled}`, "aria-selected": `${this.isSelected}`, "data-value": this.definedValue, "data-focused": `${this.isFocused}` }, h("div", { key: '89a1ac5a1cf7e842eb2083469c802b41de0d24a2', class: "r-select-option" }, icon && h("span", { key: '97dfa1b0384b43175e42aab83d27afbca3ba954d', class: "r-select-option--icon" }, h("r-icon", Object.assign({ key: 'd22429de6f0f5e44e265a71626eb839129ab0792' }, iconAttributes))), !icon && hasIconSlot && h("span", { key: 'b660efa16353c5f0ad5953e576eb1dab6779da02', class: "r-select-option--icon" }, h("slot", { key: '99495694c323df2122e039414c1fdb1588b3e59f', name: "icon" })), h("span", { key: '0630026934eab56f02a309ae668667fbaf9ec1c9', class: "r-select-option--label" }, h("slot", { key: '2d4fb9319fc58ac4a838f1799046e4822f2bccf3' })))));
|
|
132
|
+
}
|
|
133
|
+
static get is() { return "r-select-option"; }
|
|
134
|
+
static get encapsulation() { return "shadow"; }
|
|
135
|
+
static get originalStyleUrls() {
|
|
136
|
+
return {
|
|
137
|
+
"$": ["select-option.css"]
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
static get styleUrls() {
|
|
141
|
+
return {
|
|
142
|
+
"$": ["select-option.css"]
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
static get properties() {
|
|
146
|
+
return {
|
|
147
|
+
"disabled": {
|
|
148
|
+
"type": "boolean",
|
|
149
|
+
"attribute": "disabled",
|
|
150
|
+
"mutable": false,
|
|
151
|
+
"complexType": {
|
|
152
|
+
"original": "boolean",
|
|
153
|
+
"resolved": "boolean",
|
|
154
|
+
"references": {}
|
|
155
|
+
},
|
|
156
|
+
"required": false,
|
|
157
|
+
"optional": false,
|
|
158
|
+
"docs": {
|
|
159
|
+
"tags": [{
|
|
160
|
+
"name": "default",
|
|
161
|
+
"text": "false"
|
|
162
|
+
}],
|
|
163
|
+
"text": "When true, the option is not focusable or selectable."
|
|
164
|
+
},
|
|
165
|
+
"getter": false,
|
|
166
|
+
"setter": false,
|
|
167
|
+
"reflect": true,
|
|
168
|
+
"defaultValue": "false"
|
|
169
|
+
},
|
|
170
|
+
"selected": {
|
|
171
|
+
"type": "boolean",
|
|
172
|
+
"attribute": "selected",
|
|
173
|
+
"mutable": false,
|
|
174
|
+
"complexType": {
|
|
175
|
+
"original": "boolean",
|
|
176
|
+
"resolved": "boolean",
|
|
177
|
+
"references": {}
|
|
178
|
+
},
|
|
179
|
+
"required": false,
|
|
180
|
+
"optional": false,
|
|
181
|
+
"docs": {
|
|
182
|
+
"tags": [{
|
|
183
|
+
"name": "default",
|
|
184
|
+
"text": "false"
|
|
185
|
+
}],
|
|
186
|
+
"text": "Marks the option as selected. Controlled by `<r-select>`; not user\u2011set in isolation."
|
|
187
|
+
},
|
|
188
|
+
"getter": false,
|
|
189
|
+
"setter": false,
|
|
190
|
+
"reflect": true,
|
|
191
|
+
"defaultValue": "false"
|
|
192
|
+
},
|
|
193
|
+
"value": {
|
|
194
|
+
"type": "string",
|
|
195
|
+
"attribute": "value",
|
|
196
|
+
"mutable": false,
|
|
197
|
+
"complexType": {
|
|
198
|
+
"original": "string",
|
|
199
|
+
"resolved": "string",
|
|
200
|
+
"references": {}
|
|
201
|
+
},
|
|
202
|
+
"required": false,
|
|
203
|
+
"optional": true,
|
|
204
|
+
"docs": {
|
|
205
|
+
"tags": [],
|
|
206
|
+
"text": "Value submitted with a form when this option is selected.\nIf omitted or empty, it's auto-filled from text content / `label`."
|
|
207
|
+
},
|
|
208
|
+
"getter": false,
|
|
209
|
+
"setter": false,
|
|
210
|
+
"reflect": true
|
|
211
|
+
},
|
|
212
|
+
"label": {
|
|
213
|
+
"type": "string",
|
|
214
|
+
"attribute": "label",
|
|
215
|
+
"mutable": false,
|
|
216
|
+
"complexType": {
|
|
217
|
+
"original": "string",
|
|
218
|
+
"resolved": "string",
|
|
219
|
+
"references": {}
|
|
220
|
+
},
|
|
221
|
+
"required": false,
|
|
222
|
+
"optional": true,
|
|
223
|
+
"docs": {
|
|
224
|
+
"tags": [],
|
|
225
|
+
"text": "Presentational label. Falls back to slotted text; finally to `value`.\nUse `label` if the rendered text differs from the submitted `value`."
|
|
226
|
+
},
|
|
227
|
+
"getter": false,
|
|
228
|
+
"setter": false,
|
|
229
|
+
"reflect": true
|
|
230
|
+
},
|
|
231
|
+
"icon": {
|
|
232
|
+
"type": "string",
|
|
233
|
+
"attribute": "icon",
|
|
234
|
+
"mutable": false,
|
|
235
|
+
"complexType": {
|
|
236
|
+
"original": "IconName",
|
|
237
|
+
"resolved": "string",
|
|
238
|
+
"references": {
|
|
239
|
+
"IconName": {
|
|
240
|
+
"location": "import",
|
|
241
|
+
"path": "../icon/exports",
|
|
242
|
+
"id": "src/components/icon/exports.ts::IconName"
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"required": false,
|
|
247
|
+
"optional": true,
|
|
248
|
+
"docs": {
|
|
249
|
+
"tags": [],
|
|
250
|
+
"text": "Name of an icon from the design system icon set to render with the option.\nMutually exclusive with a provided `<slot name=\"icon\">`."
|
|
251
|
+
},
|
|
252
|
+
"getter": false,
|
|
253
|
+
"setter": false,
|
|
254
|
+
"reflect": false
|
|
255
|
+
},
|
|
256
|
+
"iconSize": {
|
|
257
|
+
"type": "string",
|
|
258
|
+
"attribute": "icon-size",
|
|
259
|
+
"mutable": false,
|
|
260
|
+
"complexType": {
|
|
261
|
+
"original": "IconSize",
|
|
262
|
+
"resolved": "\"l\" | \"m\" | \"s\"",
|
|
263
|
+
"references": {
|
|
264
|
+
"IconSize": {
|
|
265
|
+
"location": "import",
|
|
266
|
+
"path": "../icon/exports",
|
|
267
|
+
"id": "src/components/icon/exports.ts::IconSize"
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
"required": false,
|
|
272
|
+
"optional": true,
|
|
273
|
+
"docs": {
|
|
274
|
+
"tags": [{
|
|
275
|
+
"name": "default",
|
|
276
|
+
"text": "\"m\""
|
|
277
|
+
}],
|
|
278
|
+
"text": "Icon size (applied when `icon` provided)."
|
|
279
|
+
},
|
|
280
|
+
"getter": false,
|
|
281
|
+
"setter": false,
|
|
282
|
+
"reflect": false,
|
|
283
|
+
"defaultValue": "'m'"
|
|
284
|
+
},
|
|
285
|
+
"iconColor": {
|
|
286
|
+
"type": "string",
|
|
287
|
+
"attribute": "icon-color",
|
|
288
|
+
"mutable": false,
|
|
289
|
+
"complexType": {
|
|
290
|
+
"original": "string",
|
|
291
|
+
"resolved": "string",
|
|
292
|
+
"references": {}
|
|
293
|
+
},
|
|
294
|
+
"required": false,
|
|
295
|
+
"optional": true,
|
|
296
|
+
"docs": {
|
|
297
|
+
"tags": [{
|
|
298
|
+
"name": "default",
|
|
299
|
+
"text": "\"var(--r-select-option--color)\""
|
|
300
|
+
}],
|
|
301
|
+
"text": "Icon color token / CSS color value (when `icon` provided)."
|
|
302
|
+
},
|
|
303
|
+
"getter": false,
|
|
304
|
+
"setter": false,
|
|
305
|
+
"reflect": false,
|
|
306
|
+
"defaultValue": "'var(--r-select-option--color)'"
|
|
307
|
+
},
|
|
308
|
+
"iconPosition": {
|
|
309
|
+
"type": "string",
|
|
310
|
+
"attribute": "icon-position",
|
|
311
|
+
"mutable": false,
|
|
312
|
+
"complexType": {
|
|
313
|
+
"original": "IconPosition",
|
|
314
|
+
"resolved": "\"end\" | \"start\"",
|
|
315
|
+
"references": {
|
|
316
|
+
"IconPosition": {
|
|
317
|
+
"location": "import",
|
|
318
|
+
"path": "../icon/exports",
|
|
319
|
+
"id": "src/components/icon/exports.ts::IconPosition"
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
"required": false,
|
|
324
|
+
"optional": true,
|
|
325
|
+
"docs": {
|
|
326
|
+
"tags": [{
|
|
327
|
+
"name": "default",
|
|
328
|
+
"text": "\"start\""
|
|
329
|
+
}],
|
|
330
|
+
"text": "Icon position relative to label content."
|
|
331
|
+
},
|
|
332
|
+
"getter": false,
|
|
333
|
+
"setter": false,
|
|
334
|
+
"reflect": true,
|
|
335
|
+
"defaultValue": "'start'"
|
|
336
|
+
}
|
|
337
|
+
};
|
|
338
|
+
}
|
|
339
|
+
static get states() {
|
|
340
|
+
return {
|
|
341
|
+
"isFocused": {},
|
|
342
|
+
"isSelected": {}
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
static get events() {
|
|
346
|
+
return [{
|
|
347
|
+
"method": "optionClick",
|
|
348
|
+
"name": "optionClick",
|
|
349
|
+
"bubbles": true,
|
|
350
|
+
"cancelable": true,
|
|
351
|
+
"composed": true,
|
|
352
|
+
"docs": {
|
|
353
|
+
"tags": [],
|
|
354
|
+
"text": "Fires when the option is activated via pointer (not disabled).\nPayload includes the element + its value (resolved)."
|
|
355
|
+
},
|
|
356
|
+
"complexType": {
|
|
357
|
+
"original": "{\n element: HTMLRSelectOptionElement,\n value: any\n }",
|
|
358
|
+
"resolved": "{ element: HTMLRSelectOptionElement; value: any; }",
|
|
359
|
+
"references": {
|
|
360
|
+
"HTMLRSelectOptionElement": {
|
|
361
|
+
"location": "global",
|
|
362
|
+
"id": "global::HTMLRSelectOptionElement"
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}];
|
|
367
|
+
}
|
|
368
|
+
static get methods() {
|
|
369
|
+
return {
|
|
370
|
+
"setFocus": {
|
|
371
|
+
"complexType": {
|
|
372
|
+
"signature": "() => Promise<void>",
|
|
373
|
+
"parameters": [],
|
|
374
|
+
"references": {
|
|
375
|
+
"Promise": {
|
|
376
|
+
"location": "global",
|
|
377
|
+
"id": "global::Promise"
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
"return": "Promise<void>"
|
|
381
|
+
},
|
|
382
|
+
"docs": {
|
|
383
|
+
"text": "Sets the component's focus state programmatically.",
|
|
384
|
+
"tags": [{
|
|
385
|
+
"name": "method",
|
|
386
|
+
"text": undefined
|
|
387
|
+
}, {
|
|
388
|
+
"name": "returns",
|
|
389
|
+
"text": "Promise that resolves once the focus state has been applied."
|
|
390
|
+
}]
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
"setBlur": {
|
|
394
|
+
"complexType": {
|
|
395
|
+
"signature": "() => Promise<void>",
|
|
396
|
+
"parameters": [],
|
|
397
|
+
"references": {
|
|
398
|
+
"Promise": {
|
|
399
|
+
"location": "global",
|
|
400
|
+
"id": "global::Promise"
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
"return": "Promise<void>"
|
|
404
|
+
},
|
|
405
|
+
"docs": {
|
|
406
|
+
"text": "Removes the component's focus state programmatically.",
|
|
407
|
+
"tags": [{
|
|
408
|
+
"name": "method",
|
|
409
|
+
"text": undefined
|
|
410
|
+
}, {
|
|
411
|
+
"name": "returns",
|
|
412
|
+
"text": "Promise that resolves once the focus state has been removed."
|
|
413
|
+
}]
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
"setSelected": {
|
|
417
|
+
"complexType": {
|
|
418
|
+
"signature": "() => Promise<void>",
|
|
419
|
+
"parameters": [],
|
|
420
|
+
"references": {
|
|
421
|
+
"Promise": {
|
|
422
|
+
"location": "global",
|
|
423
|
+
"id": "global::Promise"
|
|
424
|
+
}
|
|
425
|
+
},
|
|
426
|
+
"return": "Promise<void>"
|
|
427
|
+
},
|
|
428
|
+
"docs": {
|
|
429
|
+
"text": "Marks this option as selected.\n\nSets the internal `isSelected` flag to `true`. Declared as `async` to allow for\nfuture asynchronous side effects or integration with async selection workflows,\nand may be safely awaited by callers.\n\nIdempotent: calling it multiple times will keep the option selected.",
|
|
430
|
+
"tags": [{
|
|
431
|
+
"name": "returns",
|
|
432
|
+
"text": "Promise that resolves once the selection state has been updated."
|
|
433
|
+
}]
|
|
434
|
+
}
|
|
435
|
+
},
|
|
436
|
+
"clearSelected": {
|
|
437
|
+
"complexType": {
|
|
438
|
+
"signature": "() => Promise<void>",
|
|
439
|
+
"parameters": [],
|
|
440
|
+
"references": {
|
|
441
|
+
"Promise": {
|
|
442
|
+
"location": "global",
|
|
443
|
+
"id": "global::Promise"
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
"return": "Promise<void>"
|
|
447
|
+
},
|
|
448
|
+
"docs": {
|
|
449
|
+
"text": "Clears the current selection state for this option by setting `isSelected` to `false`.\n\nIntended for use when programmatically resetting or updating the selection (e.g., on form reset\nor when enforcing single-selection logic in a parent component).\n\nSide effects:\n- Triggers any reactive updates or re-renders that depend on `isSelected`.",
|
|
450
|
+
"tags": [{
|
|
451
|
+
"name": "returns",
|
|
452
|
+
"text": "A promise that resolves after the selection state has been cleared."
|
|
453
|
+
}]
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
};
|
|
457
|
+
}
|
|
458
|
+
static get elementRef() { return "host"; }
|
|
459
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const skipLinkPositionArray = ['left', 'center'];
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
position: absolute;
|
|
4
|
+
z-index: 99999;
|
|
5
|
+
}
|
|
6
|
+
:host:has(:not(:focus-within)) {
|
|
7
|
+
clip: rect(0 0 0 0);
|
|
8
|
+
clip-path: inset(50%);
|
|
9
|
+
height: 1px;
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
position: absolute;
|
|
12
|
+
white-space: nowrap;
|
|
13
|
+
width: 1px;
|
|
14
|
+
}
|
|
15
|
+
:host:has(:focus-within) {
|
|
16
|
+
top: var(--r-spacing-100);
|
|
17
|
+
padding: var(--r-spacing-100);
|
|
18
|
+
border: 1px solid var(--r-border-regular);
|
|
19
|
+
background: var(--r-background-softest);
|
|
20
|
+
left: var(--r-skip-link--left, 50%);
|
|
21
|
+
transform: var(--r-skip-link--transform, translateX(-50%));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:host([position=left]) {
|
|
25
|
+
--r-skip-link--left: var(--r-spacing-100);
|
|
26
|
+
--r-skip-link--transform: none;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
::slotted(*:not(:focus-within)) {
|
|
30
|
+
clip: rect(0 0 0 0);
|
|
31
|
+
clip-path: inset(50%);
|
|
32
|
+
height: 1px;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
position: absolute;
|
|
35
|
+
white-space: nowrap;
|
|
36
|
+
width: 1px;
|
|
37
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
export class SkipLink {
|
|
3
|
+
constructor() {
|
|
4
|
+
/** Defines skip link position */
|
|
5
|
+
this.position = 'center';
|
|
6
|
+
}
|
|
7
|
+
render() {
|
|
8
|
+
return (h(Host, { key: '0a243668431f65138c3bf66e40013eb4be72a2be' }, h("slot", { key: '65749c9f436173b7497d11a8f71e5237317e4d3e' })));
|
|
9
|
+
}
|
|
10
|
+
static get is() { return "r-skip-link"; }
|
|
11
|
+
static get encapsulation() { return "shadow"; }
|
|
12
|
+
static get originalStyleUrls() {
|
|
13
|
+
return {
|
|
14
|
+
"$": ["skip-link.css"]
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
static get styleUrls() {
|
|
18
|
+
return {
|
|
19
|
+
"$": ["skip-link.css"]
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
static get properties() {
|
|
23
|
+
return {
|
|
24
|
+
"position": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"attribute": "position",
|
|
27
|
+
"mutable": false,
|
|
28
|
+
"complexType": {
|
|
29
|
+
"original": "SkipLinkPosition",
|
|
30
|
+
"resolved": "\"center\" | \"left\"",
|
|
31
|
+
"references": {
|
|
32
|
+
"SkipLinkPosition": {
|
|
33
|
+
"location": "import",
|
|
34
|
+
"path": "./exports",
|
|
35
|
+
"id": "src/components/skip-link/exports.ts::SkipLinkPosition"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"required": false,
|
|
40
|
+
"optional": false,
|
|
41
|
+
"docs": {
|
|
42
|
+
"tags": [],
|
|
43
|
+
"text": "Defines skip link position"
|
|
44
|
+
},
|
|
45
|
+
"getter": false,
|
|
46
|
+
"setter": false,
|
|
47
|
+
"reflect": true,
|
|
48
|
+
"defaultValue": "'center'"
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.r-stepper {
|
|
2
|
+
display: var(--r-stepper--display, flex);
|
|
3
|
+
align-items: var(--r-stepper--align-items, top);
|
|
4
|
+
list-style-type: var(--r-stepper--list-style-type, none);
|
|
5
|
+
padding: var(--r-stepper--padding, 0);
|
|
6
|
+
margin: var(--r-stepper--margin, 0);
|
|
7
|
+
}
|
|
8
|
+
.r-stepper > r-stepper-item,
|
|
9
|
+
.r-stepper ::slotted(r-stepper-item) {
|
|
10
|
+
display: var(--r-stepper--slotted--stepper-item--display, flex);
|
|
11
|
+
}
|
|
12
|
+
.r-stepper > r-stepper-item:not(:last-of-type),
|
|
13
|
+
.r-stepper ::slotted(r-stepper-item:not(:last-child)) {
|
|
14
|
+
flex: var(--r-stepper--slotted--stepper-item--flex, 1);
|
|
15
|
+
}
|
|
16
|
+
.r-stepper > r-stepper-item:not(:last-of-type)::after,
|
|
17
|
+
.r-stepper ::slotted(r-stepper-item:not(:last-child))::after {
|
|
18
|
+
content: var(--r-stepper-divider--content, "");
|
|
19
|
+
display: var(--r-stepper-divider--display, block);
|
|
20
|
+
position: var(--r-stepper-divider--position, relative);
|
|
21
|
+
width: var(--r-stepper-divider--width, 100%);
|
|
22
|
+
height: var(--r-stepper-divider--height, 1px);
|
|
23
|
+
top: var(--r-stepper-divider--top, 0.625rem);
|
|
24
|
+
background-color: var(--r-stepper-divider--background-color, var(--r-text-regular, #282828));
|
|
25
|
+
}
|