@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,314 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-BnETQtSf.js');
|
|
4
|
+
|
|
5
|
+
const toastCss = ":host([status=info]){--r-toast--border-color:var(--r-status-info-regular, #3e5c73);--r-toast--background-color:var(--r-status-info-soft, #f8fafb);--r-toast--leading-icon--color:var(--r-status-info-regular, #3e5c73)}:host([status=warning]){--r-toast--border-color:var(--r-status-warning-regular, #ff7429);--r-toast--background-color:var(--r-status-warning-soft, #fef9f5);--r-toast--leading-icon--color:var(--r-status-warning-regular, #89411A)}:host([status=error]){--r-toast--border-color:var(--r-status-error-regular, #b00c15);--r-toast--background-color:var(--r-status-error-soft, #fef6f6);--r-toast--leading-icon--color:var(--r-status-error-regular, #b00c15)}:host([status=success]){--r-toast--border-color:var(--r-status-success-regular, #298535);--r-toast--background-color:var(--r-status-success-soft, #f7fdf8);--r-toast--leading-icon--color:var(--r-status-success-regular, #298535)}:host([is-content=false]){--r-toast--content--display:none}:host([headline]){--r-toast--content--margin-top:var(--r-spacing-050, 0.5rem)}:host([data-visually-hidden=true]){--r-toast--host--animation-duration:0.2s;--r-toast--host--animation-name:fade-out}:host(:not(:last-child)){margin-bottom:var(--r-toast-group--spacing, 0)}:host{animation-duration:var(--r-toast--host--animation-duration, 0.3s);animation-fill-mode:var(--r-toast--host--animation-fill-mode, forwards);animation-name:var(--r-toast--host--animation-name, fade-in);box-sizing:var(--r-toast--host--box-sizing, border-box);display:var(--r-toast--host--display, block);height:var(--r-toast--host--height, var(--r-toast--host--height-expanded, auto));opacity:var(--r-toast--host--opacity, 1);overflow:var(--r-toast--host--overflow, hidden);position:var(--r-toast--host--position, relative);transition:var(--r-toast--host--transition, none);transition-delay:var(--r-toast--host--transition-delay, 0s)}:host ::slotted(p){margin:0}:host ::slotted(p+p),:host ::slotted(p+ul),:host ::slotted(p+ol){margin-top:1rem}:host .r-toast--trailing-button{--r-button--width:2.75rem;--r-button--height:2.75rem;--r-button--color:var(--r-text-regular, #282828);--r-button--border-color:transparent;--r-button--background-color:transparent;position:relative;margin-top:-8px;margin-right:-8px}:host .r-toast--trailing-button:hover{--r-button--color:var(--r-text-strong, #000000);--r-button--background-color:var(--r-background-interactive-hovered, #000000)}:host .r-toast--trailing-button:active{--r-button--transform:scale(0.94)}@media (prefers-reduced-motion){:host{transition:none;animation-name:none}}@keyframes fade-in{from{opacity:0;max-height:0}to{opacity:1;max-height:var(--r-toast--host--height-expanded)}}@keyframes fade-out{from{opacity:1;max-height:var(--r-toast--host--height-expanded);margin-top:var(--r-spacing-100, 1rem)}to{opacity:0;max-height:0;margin-top:0}}.r-toast{font-family:var(--r-toast--font-family, var(--r-font-family-text, system-ui));font-size:var(--r-toast--font-size, var(--r-font-size-400, 1rem));display:var(--r-toast--display, flex);flex-direction:var(--r-toast--flex-direction, row);align-items:var(--r-toast--align-items, stretch);gap:var(--r-toast--gap, var(--r-spacing-050, 0.5rem));padding:var(--r-toast--padding, 12px);border-width:var(--r-toast--border-width, 1px);border-style:var(--r-toast--border-style, solid);border-color:var(--r-toast--border-color, var(--r-status-info-regular, #3e5c73));background-color:var(--r-toast--background-color, var(--r-status-info-soft, #f8fafb));box-sizing:var(--r-toast--box-sizing, border-box);transition:var(--r-toast--transition, none)}.r-toast--main{flex:var(--r-toast--content--flex, 1);word-break:var(--r-toast--content--word-break, break-word)}.r-toast--leading-icon{color:var(--r-toast--leading-icon--color, var(--r-status-info-regular, #3e5c73));margin-top:var(--r-toast--leading-icon--margin-top, 0);margin-right:var(--r-toast--leading-icon--margin-right, var(--r-spacing-025, 0.25rem))}.r-toast--headline{color:var(--r-toast--headline--color, var(--r-text-regular, #282828));font-size:var(--r-toast--headline--font-size, var(--r-font-size-400, 1rem));font-weight:var(--r-toast--headline--font-weight, var(--r-font-weight-semibold, 600));line-height:var(--r-toast--headline--line-height, var(--r-line-height-m, 1.5));margin:var(--r-toast--headline--margin, 0)}.r-toast--content{display:var(--r-toast--content--display, block);color:var(--r-toast--content--color, var(--r-text-regular, #282828));line-height:var(--r-toast--content--line-height, var(--r-line-height-m, 1.5));font-size:var(--r-toast--content--font-size, var(--r-font-size-300, 0.875rem));font-weight:var(--r-toast--content--font-weight, var(--r-font-weight-regular, 400));margin-top:var(--r-toast--content--margin-top, 0);word-break:var(--r-toast--content--word-break, break-word)}.r-toast--action{display:var(--r-toast--action--display, flex);margin-top:var(--r-toast--action--margin-top, var(--r-spacing-050, 0.5rem));color:var(--r-toast--action--color, var(--r-text-regular, #282828));font-size:var(--r-toast--action--font-size, var(--r-font-size-300, 0.875rem));font-weight:var(--r-toast--action--font-weight, var(--r-font-weight-light, 300))}.r-toast--action-link,.r-toast--action ::slotted(r-button){--r-button--background-color:transparent;--r-button--border-width:0;--r-button--color:var(--r-text-regular);--r-button--padding:10px 2px 18px 2px;--r-button--slot--text-decoration:underline;--r-button--slot--text-underline-offset:9px}.r-toast--action-link:hover,.r-toast--action ::slotted(r-button:hover:not([disabled]):not([disabled=true])){--r-button--background-color:var(--r-background-interactive-hovered)}.r-toast--action-link:active,.r-toast--action ::slotted(r-button:active:not([disabled]):not([disabled=true])){--r-button--background-color:var(--r-background-interactive-pressed)}.r-toast--action ::slotted(*){font-size:inherit;color:inherit}.r-toast--action ::slotted(a){color:var(--r-toast--action--color, var(--r-text-regular, #282828))}";
|
|
6
|
+
|
|
7
|
+
const Toast = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
this.rClickToastTrailingIcon = index.createEvent(this, "rClickToastTrailingIcon");
|
|
11
|
+
this.toastDismiss = index.createEvent(this, "dismiss");
|
|
12
|
+
this.toastReveal = index.createEvent(this, "reveal");
|
|
13
|
+
this.toastHide = index.createEvent(this, "hide");
|
|
14
|
+
this.toastDismissed = index.createEvent(this, "dismissed");
|
|
15
|
+
/**
|
|
16
|
+
* Controls if toast is initially shown.
|
|
17
|
+
* */
|
|
18
|
+
this.open = true;
|
|
19
|
+
/** Defines the appearance of the dialog based on the message type.
|
|
20
|
+
* Options are: "info", "success", "warning", or "error".
|
|
21
|
+
* @default 'info' */
|
|
22
|
+
this.status = 'info';
|
|
23
|
+
/** Sets role="alert" and will be announced to screen reader users */
|
|
24
|
+
this.announced = true;
|
|
25
|
+
/**
|
|
26
|
+
* Defines whether the leading icon is visible.
|
|
27
|
+
* @default true
|
|
28
|
+
* */
|
|
29
|
+
this.leadingIconVisible = true;
|
|
30
|
+
/** Specifies an optional icon for the trailing slot of the dialog.
|
|
31
|
+
* @default 'cross'
|
|
32
|
+
* */
|
|
33
|
+
this.trailingIcon = 'cross';
|
|
34
|
+
/** Specifies the target for the linked URL when `href` is provided.
|
|
35
|
+
* Options are: "_blank", "_self", "_parent", or "_top".
|
|
36
|
+
* @default '_self' */
|
|
37
|
+
this.target = '_self';
|
|
38
|
+
/** Specifies the time in miliseconds before the alert automatically collapses.
|
|
39
|
+
* @default 3000
|
|
40
|
+
*/
|
|
41
|
+
this.delay = 3000;
|
|
42
|
+
/**
|
|
43
|
+
* Defines the behavior of the component's dismissing.
|
|
44
|
+
* - `auto`: The component will be dismissed automatically after number of ms set by `delay` property.
|
|
45
|
+
* - `manual`: The component requires explicit user action to close.
|
|
46
|
+
* @default "manual"
|
|
47
|
+
*/
|
|
48
|
+
this.dismissMode = 'manual';
|
|
49
|
+
/** Provides content for `aria-label` attribute of the dismiss button. */
|
|
50
|
+
this.dismissLabel = 'Dismiss the toast';
|
|
51
|
+
/** Defines amount of time im miliseconds before toast is removed from DOM.
|
|
52
|
+
* @default 300
|
|
53
|
+
* */
|
|
54
|
+
this.delayBeforeRemoval = 300;
|
|
55
|
+
this.animationCompleted = false;
|
|
56
|
+
/** Unique id for each accordion item/row */
|
|
57
|
+
this.uniqueId = `r-toast-${Date.now().toString(32)}${Math.random().toString(32)}`.replace(/\./g, '');
|
|
58
|
+
this.hasElContent = (selector) => {
|
|
59
|
+
const el = this.host.querySelector(selector);
|
|
60
|
+
return el !== null && (el === null || el === void 0 ? void 0 : el.textContent.trim().length) > 0;
|
|
61
|
+
};
|
|
62
|
+
this.getElContent = (selector) => {
|
|
63
|
+
var _a;
|
|
64
|
+
const el = this.host.querySelector(selector);
|
|
65
|
+
return (_a = el === null || el === void 0 ? void 0 : el.textContent) === null || _a === void 0 ? void 0 : _a.trim();
|
|
66
|
+
};
|
|
67
|
+
this.startDelayTimer = () => {
|
|
68
|
+
const time = this.delay;
|
|
69
|
+
this.delayTimer = setTimeout(() => {
|
|
70
|
+
this.dismiss();
|
|
71
|
+
clearTimeout(this.delayTimer);
|
|
72
|
+
}, time);
|
|
73
|
+
};
|
|
74
|
+
this.handleAnimationEnd = (event) => {
|
|
75
|
+
if (event.animationName === 'fade-out') {
|
|
76
|
+
this.animationCompleted = true;
|
|
77
|
+
// Only emit if still connected to DOM
|
|
78
|
+
if (this.host.isConnected) {
|
|
79
|
+
this.toastDismissed.emit();
|
|
80
|
+
}
|
|
81
|
+
// Clear height after fade-out completes as final cleanup
|
|
82
|
+
this.host.style.setProperty('--r-toast--host--height-expanded', null);
|
|
83
|
+
}
|
|
84
|
+
else if (event.animationName === 'fade-in') {
|
|
85
|
+
// Clear height restriction after fade-in completes to allow natural resizing
|
|
86
|
+
// The toast can now grow/shrink dynamically without animation constraints
|
|
87
|
+
this.host.style.setProperty('--r-toast--host--height-expanded', null);
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
this.handleTrailingButtonClick = () => {
|
|
91
|
+
this.rClickToastTrailingIcon.emit();
|
|
92
|
+
this.dismiss();
|
|
93
|
+
};
|
|
94
|
+
this.handleSlotChange = () => {
|
|
95
|
+
this.host.setAttribute('is-content', `${this.hasContent}`);
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Dismisses the toast notification by setting it to a hidden state and then
|
|
100
|
+
* removing it from the DOM after a short delay. This can be used to manually
|
|
101
|
+
* hide the toast before the auto-dismiss timer expires.
|
|
102
|
+
*/
|
|
103
|
+
async dismiss() {
|
|
104
|
+
// Re-measure height before fade-out to ensure smooth collapse animation
|
|
105
|
+
// This captures the current natural height for the animation
|
|
106
|
+
this.updateHeightVariable();
|
|
107
|
+
this.isOpen = false;
|
|
108
|
+
// Only emit if still connected to DOM
|
|
109
|
+
if (this.host.isConnected) {
|
|
110
|
+
this.toastDismiss.emit();
|
|
111
|
+
}
|
|
112
|
+
this.animationCompleted = false;
|
|
113
|
+
if (this.removalTimer)
|
|
114
|
+
clearTimeout(this.removalTimer);
|
|
115
|
+
this.removalTimer = setTimeout(() => {
|
|
116
|
+
if (!this.animationCompleted && this.host.isConnected) {
|
|
117
|
+
this.toastDismissed.emit();
|
|
118
|
+
}
|
|
119
|
+
// Safely remove from DOM - check parent exists and contains this element
|
|
120
|
+
if (this.host.isConnected && this.host.parentNode) {
|
|
121
|
+
try {
|
|
122
|
+
this.host.remove();
|
|
123
|
+
}
|
|
124
|
+
catch (e) {
|
|
125
|
+
// In test environments, element may have already been removed
|
|
126
|
+
// or DOM structure changed - silently ignore
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}, this.delayBeforeRemoval);
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Reveals the toast notification by setting it to a visible state.
|
|
133
|
+
* If the auto-dismiss delay is enabled, it will start the timer to
|
|
134
|
+
* automatically dismiss the toast after the specified duration.
|
|
135
|
+
*/
|
|
136
|
+
async reveal() {
|
|
137
|
+
// Measure height for smooth fade-in animation
|
|
138
|
+
await this.measureAndPrepareHeight();
|
|
139
|
+
this.isOpen = true;
|
|
140
|
+
// Only emit if still connected to DOM
|
|
141
|
+
if (this.host.isConnected) {
|
|
142
|
+
this.toastReveal.emit();
|
|
143
|
+
}
|
|
144
|
+
if (this.delayTimer)
|
|
145
|
+
clearTimeout(this.delayTimer);
|
|
146
|
+
if (this.isDismissManual)
|
|
147
|
+
return;
|
|
148
|
+
if (this.hasDelay)
|
|
149
|
+
this.startDelayTimer();
|
|
150
|
+
return this;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Hides toast, keeps it in dom.
|
|
154
|
+
* */
|
|
155
|
+
async hide() {
|
|
156
|
+
this.updateHeightVariable();
|
|
157
|
+
this.isOpen = false;
|
|
158
|
+
// Only emit if still connected to DOM
|
|
159
|
+
if (this.host.isConnected) {
|
|
160
|
+
this.toastHide.emit();
|
|
161
|
+
}
|
|
162
|
+
return this;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Toggles visibility of the toast.
|
|
166
|
+
* */
|
|
167
|
+
async toggle() {
|
|
168
|
+
this.isOpen ? this.hide() : this.reveal();
|
|
169
|
+
return this;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Measures the natural height of toast and prepares it for reveal animation.
|
|
173
|
+
* This should be called on newly added toasts before they are revealed.
|
|
174
|
+
*/
|
|
175
|
+
async measureAndPrepareHeight() {
|
|
176
|
+
return new Promise((resolve) => {
|
|
177
|
+
requestAnimationFrame(() => {
|
|
178
|
+
// Temporarily override animation to prevent visual glitches during measurement
|
|
179
|
+
const tempStyle = this.host.style.cssText;
|
|
180
|
+
this.host.style.cssText = tempStyle + '; animation: none !important; max-height: none !important; height: auto !important;';
|
|
181
|
+
const height = this.host.scrollHeight;
|
|
182
|
+
// Restore original style
|
|
183
|
+
this.host.style.cssText = tempStyle;
|
|
184
|
+
// Set the measured height for animation
|
|
185
|
+
if (height > 0) {
|
|
186
|
+
this.host.style.setProperty('--r-toast--host--height-expanded', `${height}px`);
|
|
187
|
+
}
|
|
188
|
+
resolve();
|
|
189
|
+
});
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
handleOpenChange() {
|
|
193
|
+
this.isOpen ? this.hide() : this.reveal();
|
|
194
|
+
}
|
|
195
|
+
get hasLeadingSlot() {
|
|
196
|
+
return this.hasElContent('[slot="leading"]');
|
|
197
|
+
}
|
|
198
|
+
get hasLeading() {
|
|
199
|
+
return this.leadingIconVisible || this.hasLeadingSlot;
|
|
200
|
+
}
|
|
201
|
+
get hasTrailingSlot() {
|
|
202
|
+
return this.hasElContent('[slot="trailing"]');
|
|
203
|
+
}
|
|
204
|
+
get isDismissManual() {
|
|
205
|
+
return this.dismissMode === 'manual';
|
|
206
|
+
}
|
|
207
|
+
get hasTrailing() {
|
|
208
|
+
return this.hasTrailingSlot || this.isDismissManual;
|
|
209
|
+
}
|
|
210
|
+
get hasContent() {
|
|
211
|
+
var _a;
|
|
212
|
+
return ((_a = this.host.textContent) === null || _a === void 0 ? void 0 : _a.trim().length) > 0;
|
|
213
|
+
}
|
|
214
|
+
get hasActionLink() {
|
|
215
|
+
return typeof (this.href) == 'string' && typeof (this.action) == 'string';
|
|
216
|
+
}
|
|
217
|
+
get hasActionSlot() {
|
|
218
|
+
return this.hasElContent('[slot="action"]');
|
|
219
|
+
}
|
|
220
|
+
get hasAction() {
|
|
221
|
+
return this.hasActionLink || this.hasActionSlot;
|
|
222
|
+
}
|
|
223
|
+
get hasHeadlineSlot() {
|
|
224
|
+
return this.hasElContent('[slot="headline"]');
|
|
225
|
+
}
|
|
226
|
+
get hasHeadline() {
|
|
227
|
+
return typeof (this.headline) == 'string' || this.hasHeadlineSlot;
|
|
228
|
+
}
|
|
229
|
+
get hasDelay() {
|
|
230
|
+
return this.delay && this.delay > 0;
|
|
231
|
+
}
|
|
232
|
+
get isError() {
|
|
233
|
+
return this.status === 'error';
|
|
234
|
+
}
|
|
235
|
+
get leadingIconName() {
|
|
236
|
+
if (this.leadingIcon)
|
|
237
|
+
return this.leadingIcon;
|
|
238
|
+
switch (this.status) {
|
|
239
|
+
case 'info':
|
|
240
|
+
return 'circled-information-i';
|
|
241
|
+
case 'success':
|
|
242
|
+
return 'circled-check';
|
|
243
|
+
case 'warning':
|
|
244
|
+
return 'circled-exclamation-mark';
|
|
245
|
+
case 'error':
|
|
246
|
+
return 'triangle-with-exclamation-mark';
|
|
247
|
+
default:
|
|
248
|
+
return 'circled-information-i';
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
componentWillLoad() {
|
|
252
|
+
// Set initial state but don't trigger reveal yet - let mutation observer handle it
|
|
253
|
+
this.isOpen = this.open;
|
|
254
|
+
}
|
|
255
|
+
async componentDidLoad() {
|
|
256
|
+
this.host.addEventListener('animationend', this.handleAnimationEnd);
|
|
257
|
+
// Measure and store the toast height for smooth initial fade-in animation
|
|
258
|
+
await this.measureAndPrepareHeight();
|
|
259
|
+
// Start auto-dismiss timer if configured and toast is initially open
|
|
260
|
+
if (this.isOpen && !this.isDismissManual && this.hasDelay) {
|
|
261
|
+
this.startDelayTimer();
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
updateHeightVariable() {
|
|
265
|
+
// Use requestAnimationFrame to ensure the element is fully rendered
|
|
266
|
+
requestAnimationFrame(() => {
|
|
267
|
+
if (this.host.offsetHeight > 0) {
|
|
268
|
+
this.host.style.setProperty('--r-toast--host--height-expanded', `${this.host.offsetHeight}px`);
|
|
269
|
+
}
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
disconnectedCallback() {
|
|
273
|
+
this.host.removeEventListener('animationend', this.handleAnimationEnd);
|
|
274
|
+
// Clear pending timers to prevent events from firing after component is removed
|
|
275
|
+
if (this.delayTimer)
|
|
276
|
+
clearTimeout(this.delayTimer);
|
|
277
|
+
if (this.removalTimer)
|
|
278
|
+
clearTimeout(this.removalTimer);
|
|
279
|
+
}
|
|
280
|
+
render() {
|
|
281
|
+
const { headline, href, action, target, trailingIcon } = this;
|
|
282
|
+
const hostAttrs = this.announced ? {
|
|
283
|
+
role: 'alert',
|
|
284
|
+
'aria-live': this.isError ? 'assertive' : 'polite'
|
|
285
|
+
} : {
|
|
286
|
+
role: 'region',
|
|
287
|
+
'aria-label': this.getElContent('[slot="headline"]') || this.headline || null
|
|
288
|
+
};
|
|
289
|
+
const actionAttrs = { href, target };
|
|
290
|
+
const leadingIconAttrs = {
|
|
291
|
+
name: this.leadingIconName,
|
|
292
|
+
size: 'm'
|
|
293
|
+
};
|
|
294
|
+
const trailingIconAttrs = {
|
|
295
|
+
name: trailingIcon,
|
|
296
|
+
size: 'm'
|
|
297
|
+
};
|
|
298
|
+
return (index.h(index.Host, Object.assign({ key: '011a8bc8e8a873265a9f239290f479d37c01bedf' }, hostAttrs, { id: this.uniqueId, "data-visually-hidden": `${this.isOpen ? 'false' : 'true'}`, style: { visibility: this.isOpen ? 'visible' : 'hidden' } }), index.h("div", { key: '04b15f304e0870df9d420f838463d23a5b44e0c8', class: "r-toast" }, this.hasLeading &&
|
|
299
|
+
index.h("div", { key: '1f093aa61c368f7cfaf250c1c67e9cdeeffc004f', class: "r-toast--leading" }, this.hasLeadingSlot && index.h("slot", { key: 'a60995cbcae0f7f89698696f8430e70905ffab52', name: "leading" }), this.leadingIconVisible && index.h("r-icon", Object.assign({ key: '4828bd01672cade715b713b9ae0fc711c4e3ae28', class: "r-toast--leading-icon" }, leadingIconAttrs))), index.h("div", { key: 'ff6be09bfb6c97c00fda03fe8b87cd41e7d6b5e3', class: "r-toast--main" }, this.hasHeadline &&
|
|
300
|
+
index.h("h2", { key: 'd127a98f7f215a490df84131fc213f83badce1ab', class: "r-toast--headline" }, index.h("slot", { key: 'b848f1596357d6806ca557b86bf18a7d476d7d61', name: "headline" }, headline)), this.hasContent &&
|
|
301
|
+
index.h("div", { key: 'a54472f865378dc9c0b387e3bd0b844bcef3e270', class: "r-toast--content r-typography" }, index.h("slot", { key: 'e5451f47f218f8c40c99acddbec8c36d683d00ca', onSlotchange: this.handleSlotChange })), this.hasAction &&
|
|
302
|
+
index.h("div", { key: 'da37911c654dd01adc69dbcb7e26fd06b29fef6d', class: "r-toast--action" }, index.h("slot", { key: 'b0a1aa508b2d9de350a1faa7ef7667c088f801fe', name: "action" }, this.hasActionLink &&
|
|
303
|
+
index.h("r-button", Object.assign({ key: 'b0473bb3b8d24ccd2b26a3e588ae58c21e026b59', class: "r-toast--action-link", variant: "text-inline", size: "small" }, actionAttrs), action)))), this.hasTrailing &&
|
|
304
|
+
index.h("div", { key: '69711c390acb6ca35f2ddfd350910f1e6c080f69', class: "r-toast--trailing" }, this.hasTrailingSlot && index.h("slot", { key: 'f5a1da0280b06c562c4b4c26a7d505c2cbf80903', name: "trailing" }), this.isDismissManual &&
|
|
305
|
+
index.h("r-icon-button", Object.assign({ key: '53f5d398b82066da7ebfba497efcc42845134e3c' }, trailingIconAttrs, { class: "r-toast--trailing-button", onClick: this.handleTrailingButtonClick, label: this.dismissLabel }), index.h("slot", { key: '0fa33220eff7b05ff9580bd62a658ee67b70c09e', name: "dismiss" }))))));
|
|
306
|
+
}
|
|
307
|
+
get host() { return index.getElement(this); }
|
|
308
|
+
static get watchers() { return {
|
|
309
|
+
"open": ["handleOpenChange"]
|
|
310
|
+
}; }
|
|
311
|
+
};
|
|
312
|
+
Toast.style = toastCss;
|
|
313
|
+
|
|
314
|
+
exports.r_toast = Toast;
|