@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,59 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* Can be used by developers to verify functionality of the design system.
|
|
4
|
+
*
|
|
5
|
+
* Example:
|
|
6
|
+
* ```html
|
|
7
|
+
* <r-design-system-devtools design-tokens></r-design-system-devtools>
|
|
8
|
+
* ```
|
|
9
|
+
*/
|
|
10
|
+
export class DesignSystemDevtools {
|
|
11
|
+
constructor() {
|
|
12
|
+
/** Whether to display a preview of some key design tokens */
|
|
13
|
+
this.designTokens = false;
|
|
14
|
+
}
|
|
15
|
+
renderDesignTokens() {
|
|
16
|
+
const tokens = [
|
|
17
|
+
'r-color-green-vanguard',
|
|
18
|
+
'r-color-grey-charcoal',
|
|
19
|
+
'r-color-white-haze',
|
|
20
|
+
'r-color-orange-ember',
|
|
21
|
+
];
|
|
22
|
+
return (h(Host, null, tokens.map(t => {
|
|
23
|
+
return (h("div", { style: { backgroundColor: `var(--${t})` } }, "This text should have ", h("code", null, t), " background color"));
|
|
24
|
+
})));
|
|
25
|
+
}
|
|
26
|
+
render() {
|
|
27
|
+
if (this.designTokens) {
|
|
28
|
+
return this.renderDesignTokens();
|
|
29
|
+
}
|
|
30
|
+
return h(Host, null);
|
|
31
|
+
}
|
|
32
|
+
static get is() { return "r-design-system-devtools"; }
|
|
33
|
+
static get encapsulation() { return "shadow"; }
|
|
34
|
+
static get properties() {
|
|
35
|
+
return {
|
|
36
|
+
"designTokens": {
|
|
37
|
+
"type": "boolean",
|
|
38
|
+
"attribute": "design-tokens",
|
|
39
|
+
"mutable": false,
|
|
40
|
+
"complexType": {
|
|
41
|
+
"original": "boolean",
|
|
42
|
+
"resolved": "boolean",
|
|
43
|
+
"references": {}
|
|
44
|
+
},
|
|
45
|
+
"required": false,
|
|
46
|
+
"optional": false,
|
|
47
|
+
"docs": {
|
|
48
|
+
"tags": [],
|
|
49
|
+
"text": "Whether to display a preview of some key design tokens"
|
|
50
|
+
},
|
|
51
|
+
"getter": false,
|
|
52
|
+
"setter": false,
|
|
53
|
+
"reflect": false,
|
|
54
|
+
"defaultValue": "false"
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
static get elementRef() { return "el"; }
|
|
59
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
:host([size=small]) {
|
|
2
|
+
--r-dialog--width: 23.4375rem;
|
|
3
|
+
--r-dialog--max-height: 15.625rem;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
:host([size=medium]) {
|
|
7
|
+
--r-dialog--width: 37.5rem;
|
|
8
|
+
--r-dialog--max-height: 37.5rem;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:host([size=large]) {
|
|
12
|
+
--r-dialog--width: 50rem;
|
|
13
|
+
--r-dialog--max-height: 45rem;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@media (max-width: 50rem) {
|
|
17
|
+
:host([size=large]) {
|
|
18
|
+
--r-dialog--width: 100%;
|
|
19
|
+
--right: 0;
|
|
20
|
+
--left: 0;
|
|
21
|
+
--r-dialog--footer--flex-wrap: wrap;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
@media (max-height: 48.75rem) {
|
|
25
|
+
:host([size=large]) {
|
|
26
|
+
--r-dialog--margin: 18px auto;
|
|
27
|
+
--top: 0;
|
|
28
|
+
--bottom: 0;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
@media (max-width: 37.5rem) {
|
|
32
|
+
:host([size=medium]) {
|
|
33
|
+
--r-dialog--width: 100%;
|
|
34
|
+
--right: 0;
|
|
35
|
+
--left: 0;
|
|
36
|
+
--r-dialog--footer--flex-wrap: wrap;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
@media (max-height: 43.75rem) {
|
|
40
|
+
:host([size=medium]) {
|
|
41
|
+
--r-dialog--margin: 18px auto;
|
|
42
|
+
--top: 0;
|
|
43
|
+
--bottom: 0;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
:host {
|
|
47
|
+
top: var(--top, auto);
|
|
48
|
+
right: var(--right, auto);
|
|
49
|
+
bottom: var(--bottom, auto);
|
|
50
|
+
left: var(--left, auto);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.r-dialog {
|
|
54
|
+
border: var(--r-dialog--border, none);
|
|
55
|
+
padding: var(--r-dialog--padding, 24px 0);
|
|
56
|
+
box-sizing: var(--r-dialog--box-sizing, border-box);
|
|
57
|
+
overflow: var(--r-dialog--overflow, hidden);
|
|
58
|
+
width: var(--r-dialog--width, auto);
|
|
59
|
+
height: var(--r-dialog--height, auto);
|
|
60
|
+
background-color: var(--r-dialog--background-color, var(--r-background-softest));
|
|
61
|
+
margin: var(--r-dialog--margin, auto);
|
|
62
|
+
max-height: var(--r-dialog--max-height, auto);
|
|
63
|
+
}
|
|
64
|
+
.r-dialog--content {
|
|
65
|
+
display: var(--r-dialog--content--display, flex);
|
|
66
|
+
flex-direction: var(--r-dialog--content--flex-direction, column);
|
|
67
|
+
gap: var(--r-dialog--content--gap, var(--r-spacing-150, 1.5rem));
|
|
68
|
+
color: var(--r-dialog--content--color, var(--r-text-regular));
|
|
69
|
+
height: var(--r-dialog--content--height, 100%);
|
|
70
|
+
}
|
|
71
|
+
.r-dialog ::slotted([slot=header]), .r-dialog--headline {
|
|
72
|
+
font-family: var(--r-dialog--headline--font-family, var(--r-font-family-heading, sans-serif));
|
|
73
|
+
font-size: var(--r-dialog--headline--font-size, var(--r-font-size-500));
|
|
74
|
+
font-weight: var(--r-dialog--headline--font-weight, var(--r-font-weight-light));
|
|
75
|
+
margin: var(--r-dialog--headline--margin, 0);
|
|
76
|
+
flex: var(--r-dialog--headline--flex, 1);
|
|
77
|
+
}
|
|
78
|
+
.r-dialog--close {
|
|
79
|
+
--r-button--display: var(--r-dialog--close--dispaly, flex);
|
|
80
|
+
--r-button--padding: var(--r-dialog--close--padding, 0);
|
|
81
|
+
}
|
|
82
|
+
.r-dialog--header {
|
|
83
|
+
display: var(--r-dialog--header--display, flex);
|
|
84
|
+
justify-content: var(--r-dialog--header--justify-content, space-between);
|
|
85
|
+
align-items: var(--r-dialog--header--align-items, start);
|
|
86
|
+
gap: var(--r-dialog--header--gap, 32px);
|
|
87
|
+
padding: var(--r-dialog--header--padding, 0 24px);
|
|
88
|
+
}
|
|
89
|
+
.r-dialog--body {
|
|
90
|
+
font-family: var(--r-dialog--body--font-family, var(--r-font-family-text));
|
|
91
|
+
font-size: var(--r-dialog--body--font-size, var(--r-font-size-desktop-400));
|
|
92
|
+
line-height: var(--r-dialog--body--line-height, var(--r-line-height-m));
|
|
93
|
+
flex-grow: var(--r-dialog--body--flex-grow, 1);
|
|
94
|
+
overflow-y: var(--r-dialog--body--overflow, auto);
|
|
95
|
+
justify-self: var(--r-dialog--body--justify-self, stretch);
|
|
96
|
+
padding: var(--r-dialog--body--padding, 0 24px);
|
|
97
|
+
}
|
|
98
|
+
.r-dialog--body {
|
|
99
|
+
scrollbar-width: auto;
|
|
100
|
+
scrollbar-color: var(--r-border-softer) #ffffff;
|
|
101
|
+
}
|
|
102
|
+
.r-dialog--body::-webkit-scrollbar {
|
|
103
|
+
width: var(--r-spacing-100, 1rem);
|
|
104
|
+
}
|
|
105
|
+
.r-dialog--body::-webkit-scrollbar-track {
|
|
106
|
+
background: #ffffff;
|
|
107
|
+
}
|
|
108
|
+
.r-dialog--body::-webkit-scrollbar-thumb {
|
|
109
|
+
background-color: var(--r-border-softer);
|
|
110
|
+
border-radius: 10px;
|
|
111
|
+
border: 3px solid #ffffff;
|
|
112
|
+
}
|
|
113
|
+
.r-dialog ::slotted([slot=footer]) {
|
|
114
|
+
margin-top: var(--r-dialog--footer--margin-top, auto);
|
|
115
|
+
display: var(--r-dialog--footer--display, flex);
|
|
116
|
+
flex-direction: var(--r-dialog--footer--flex-direction, row);
|
|
117
|
+
flex-wrap: var(--r-dialog--footer--flex-wrap, nowrap);
|
|
118
|
+
justify-content: var(--r-dialog--footer--justify-content, flex-start);
|
|
119
|
+
gap: var(--r-dialog--footer--gap, var(--r-spacing-100, 1rem));
|
|
120
|
+
align-items: var(--r-dialog--footer--align-items, end);
|
|
121
|
+
padding: var(--r-dialog--header--padding, 0 24px);
|
|
122
|
+
}
|
|
123
|
+
.r-dialog::backdrop {
|
|
124
|
+
background: var(--backdrop--background-color, rgba(0, 0, 0, 0.25));
|
|
125
|
+
}
|
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
export class Dialog {
|
|
3
|
+
constructor() {
|
|
4
|
+
/** Define if dialog either shown or hidden. */
|
|
5
|
+
this.open = false;
|
|
6
|
+
/**
|
|
7
|
+
* Allows to set height of the dialog body container
|
|
8
|
+
* while the value is smaller then `max-height` of the
|
|
9
|
+
* dialog body pre-set according to the `size` prop.
|
|
10
|
+
*/
|
|
11
|
+
this.bodyHeight = 'auto';
|
|
12
|
+
/**
|
|
13
|
+
* Defines one of pre-defined sizes of the dialog.
|
|
14
|
+
*/
|
|
15
|
+
this.size = 'medium';
|
|
16
|
+
/**
|
|
17
|
+
* Defines if dialog is currently revealed.
|
|
18
|
+
* */
|
|
19
|
+
this.isOpen = this.open;
|
|
20
|
+
this.uniqueId = `r-dialog-${Date.now().toString(32)}${Math.random().toString(32)}`.replace(/\./g, '');
|
|
21
|
+
this.onTriggerClick = () => {
|
|
22
|
+
this.close();
|
|
23
|
+
};
|
|
24
|
+
this.isInside = event => {
|
|
25
|
+
var _a;
|
|
26
|
+
const rect = (_a = this.dialogElement) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
|
27
|
+
return rect.top <= event.clientY && event.clientY <= rect.bottom &&
|
|
28
|
+
rect.left <= event.clientX && event.clientX <= rect.right;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
handleOpenChange() {
|
|
32
|
+
if (this.open && !this.isOpen)
|
|
33
|
+
this.showModal();
|
|
34
|
+
}
|
|
35
|
+
get dialogLabel() {
|
|
36
|
+
var _a, _b;
|
|
37
|
+
return this.headline || ((_b = (_a = this.host.querySelector('[slot="header"]')) === null || _a === void 0 ? void 0 : _a.textContent) === null || _b === void 0 ? void 0 : _b.trim());
|
|
38
|
+
}
|
|
39
|
+
/** Method to display a modal dialog */
|
|
40
|
+
async showModal() {
|
|
41
|
+
var _a;
|
|
42
|
+
this.isOpen = true;
|
|
43
|
+
(_a = this.dialogElement) === null || _a === void 0 ? void 0 : _a.showModal();
|
|
44
|
+
}
|
|
45
|
+
/** Method to display a non-modal dialog */
|
|
46
|
+
async close() {
|
|
47
|
+
var _a, _b;
|
|
48
|
+
const { returnValue } = this;
|
|
49
|
+
(_a = this.dialogElement) === null || _a === void 0 ? void 0 : _a.close(returnValue);
|
|
50
|
+
(_b = this.dialogClose) === null || _b === void 0 ? void 0 : _b.emit();
|
|
51
|
+
this.isOpen = false;
|
|
52
|
+
}
|
|
53
|
+
/** Method to either show or hide dialog
|
|
54
|
+
* depending on the current state. */
|
|
55
|
+
async toggle() {
|
|
56
|
+
if (this.isOpen)
|
|
57
|
+
this.showModal();
|
|
58
|
+
else
|
|
59
|
+
this.close();
|
|
60
|
+
}
|
|
61
|
+
_renderInitialState() {
|
|
62
|
+
if (this.isOpen) {
|
|
63
|
+
this.showModal();
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
connectEventListeners() {
|
|
67
|
+
var _a;
|
|
68
|
+
(_a = this.dialogElement) === null || _a === void 0 ? void 0 : _a.addEventListener('close', this.close);
|
|
69
|
+
}
|
|
70
|
+
disconnectEventListeners() {
|
|
71
|
+
var _a;
|
|
72
|
+
(_a = this.dialogElement) === null || _a === void 0 ? void 0 : _a.removeEventListener('close', this.close);
|
|
73
|
+
}
|
|
74
|
+
componentDidLoad() {
|
|
75
|
+
this._renderInitialState();
|
|
76
|
+
this.connectEventListeners();
|
|
77
|
+
}
|
|
78
|
+
disconnectedCallback() {
|
|
79
|
+
this.disconnectEventListeners();
|
|
80
|
+
}
|
|
81
|
+
onMouseup(event) {
|
|
82
|
+
if (!this.isOpen)
|
|
83
|
+
return;
|
|
84
|
+
event.stopPropagation();
|
|
85
|
+
if (!this.isInside(event)) {
|
|
86
|
+
this.close();
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
render() {
|
|
90
|
+
return (h(Host, { key: '96033031c46b109824262a3e3f00c2a456ea5f4b', open: this.isOpen }, h("dialog", { key: '7b51f2b25bf9a7ca92e85ed6c83438e811365296', class: "r-dialog", "aria-label": this.dialogLabel, ref: el => this.dialogElement = el, style: { '--r-dialog--body--height': this.bodyHeight } }, h("div", { key: 'a0a1a2ee98bbb25230316c0caab69688b3dc568d', class: "r-dialog--content" }, h("div", { key: '4bc7bd1a95095d1d37b851cd9a21fcc7fbc9bebd', class: "r-dialog--header", id: `${this.uniqueId}-header` }, h("slot", { key: 'f62a3403ab59f43f52fa615cd943ab4b890c64a7', name: "header" }, (this.headline) &&
|
|
91
|
+
h("h2", { key: '4989da5584b245c658f9ec97a2ba9401fe8addb7', class: "r-dialog--headline" }, this.headline)), h("r-icon-button", { key: '3bcd4692d603a076965a6c3cf118cf989712a45b', class: "r-dialog--close", name: "cross", size: "s", onRClick: this.onTriggerClick, label: this.closeAriaLabel })), h("div", { key: '25b5bc324df34cd30ce2543b5cb7800ec2e188d1', class: "r-dialog--body" }, this.bodyText, h("slot", { key: '4d9693b8374b7f5cbdd641c5c17cde5b2ec12b09' }), h("slot", { key: 'a27b41566f1bce90d7a52599219017f078840451', name: "form" })), h("slot", { key: 'ca4a6bb595544fbd3cb173f63b0f385b4dcb3bd7', name: "footer" })))));
|
|
92
|
+
}
|
|
93
|
+
static get is() { return "r-dialog"; }
|
|
94
|
+
static get encapsulation() { return "shadow"; }
|
|
95
|
+
static get originalStyleUrls() {
|
|
96
|
+
return {
|
|
97
|
+
"$": ["dialog.css"]
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
static get styleUrls() {
|
|
101
|
+
return {
|
|
102
|
+
"$": ["dialog.css"]
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
static get properties() {
|
|
106
|
+
return {
|
|
107
|
+
"open": {
|
|
108
|
+
"type": "boolean",
|
|
109
|
+
"attribute": "open",
|
|
110
|
+
"mutable": false,
|
|
111
|
+
"complexType": {
|
|
112
|
+
"original": "boolean",
|
|
113
|
+
"resolved": "boolean",
|
|
114
|
+
"references": {}
|
|
115
|
+
},
|
|
116
|
+
"required": false,
|
|
117
|
+
"optional": false,
|
|
118
|
+
"docs": {
|
|
119
|
+
"tags": [],
|
|
120
|
+
"text": "Define if dialog either shown or hidden."
|
|
121
|
+
},
|
|
122
|
+
"getter": false,
|
|
123
|
+
"setter": false,
|
|
124
|
+
"reflect": false,
|
|
125
|
+
"defaultValue": "false"
|
|
126
|
+
},
|
|
127
|
+
"returnValue": {
|
|
128
|
+
"type": "string",
|
|
129
|
+
"attribute": "return-value",
|
|
130
|
+
"mutable": false,
|
|
131
|
+
"complexType": {
|
|
132
|
+
"original": "string",
|
|
133
|
+
"resolved": "string",
|
|
134
|
+
"references": {}
|
|
135
|
+
},
|
|
136
|
+
"required": false,
|
|
137
|
+
"optional": true,
|
|
138
|
+
"docs": {
|
|
139
|
+
"tags": [],
|
|
140
|
+
"text": "A value indicating the result of a user\u2019s \ninteraction with the dialog, used to determine what action \nthe user took before closing the dialog. \n\nFor example, it can differentiate between whether the user \nclicked a \u201CConfirm\u201D button or a \u201CCancel\u201D button."
|
|
141
|
+
},
|
|
142
|
+
"getter": false,
|
|
143
|
+
"setter": false,
|
|
144
|
+
"reflect": false
|
|
145
|
+
},
|
|
146
|
+
"headline": {
|
|
147
|
+
"type": "string",
|
|
148
|
+
"attribute": "headline",
|
|
149
|
+
"mutable": false,
|
|
150
|
+
"complexType": {
|
|
151
|
+
"original": "string",
|
|
152
|
+
"resolved": "string",
|
|
153
|
+
"references": {}
|
|
154
|
+
},
|
|
155
|
+
"required": false,
|
|
156
|
+
"optional": true,
|
|
157
|
+
"docs": {
|
|
158
|
+
"tags": [],
|
|
159
|
+
"text": "Allows to provide headline text to the dialog header section."
|
|
160
|
+
},
|
|
161
|
+
"getter": false,
|
|
162
|
+
"setter": false,
|
|
163
|
+
"reflect": false
|
|
164
|
+
},
|
|
165
|
+
"bodyText": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"attribute": "body-text",
|
|
168
|
+
"mutable": false,
|
|
169
|
+
"complexType": {
|
|
170
|
+
"original": "string",
|
|
171
|
+
"resolved": "string",
|
|
172
|
+
"references": {}
|
|
173
|
+
},
|
|
174
|
+
"required": false,
|
|
175
|
+
"optional": true,
|
|
176
|
+
"docs": {
|
|
177
|
+
"tags": [],
|
|
178
|
+
"text": "Allows plain text to be provided to the body of the dialog\nin cases where markup is not required. For more complex cases,\nincluding those requiring HTML markup, \nuse <div slot=\"body\">...</div>."
|
|
179
|
+
},
|
|
180
|
+
"getter": false,
|
|
181
|
+
"setter": false,
|
|
182
|
+
"reflect": false
|
|
183
|
+
},
|
|
184
|
+
"bodyHeight": {
|
|
185
|
+
"type": "string",
|
|
186
|
+
"attribute": "body-height",
|
|
187
|
+
"mutable": false,
|
|
188
|
+
"complexType": {
|
|
189
|
+
"original": "string",
|
|
190
|
+
"resolved": "string",
|
|
191
|
+
"references": {}
|
|
192
|
+
},
|
|
193
|
+
"required": false,
|
|
194
|
+
"optional": false,
|
|
195
|
+
"docs": {
|
|
196
|
+
"tags": [],
|
|
197
|
+
"text": "Allows to set height of the dialog body container \nwhile the value is smaller then `max-height` of the \ndialog body pre-set according to the `size` prop."
|
|
198
|
+
},
|
|
199
|
+
"getter": false,
|
|
200
|
+
"setter": false,
|
|
201
|
+
"reflect": false,
|
|
202
|
+
"defaultValue": "'auto'"
|
|
203
|
+
},
|
|
204
|
+
"size": {
|
|
205
|
+
"type": "string",
|
|
206
|
+
"attribute": "size",
|
|
207
|
+
"mutable": false,
|
|
208
|
+
"complexType": {
|
|
209
|
+
"original": "DialogSize",
|
|
210
|
+
"resolved": "\"large\" | \"medium\" | \"small\"",
|
|
211
|
+
"references": {
|
|
212
|
+
"DialogSize": {
|
|
213
|
+
"location": "import",
|
|
214
|
+
"path": "./exports",
|
|
215
|
+
"id": "src/components/dialog/exports.ts::DialogSize"
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"required": false,
|
|
220
|
+
"optional": false,
|
|
221
|
+
"docs": {
|
|
222
|
+
"tags": [],
|
|
223
|
+
"text": "Defines one of pre-defined sizes of the dialog."
|
|
224
|
+
},
|
|
225
|
+
"getter": false,
|
|
226
|
+
"setter": false,
|
|
227
|
+
"reflect": true,
|
|
228
|
+
"defaultValue": "'medium'"
|
|
229
|
+
},
|
|
230
|
+
"closeAriaLabel": {
|
|
231
|
+
"type": "string",
|
|
232
|
+
"attribute": "close-aria-label",
|
|
233
|
+
"mutable": false,
|
|
234
|
+
"complexType": {
|
|
235
|
+
"original": "string",
|
|
236
|
+
"resolved": "string",
|
|
237
|
+
"references": {}
|
|
238
|
+
},
|
|
239
|
+
"required": false,
|
|
240
|
+
"optional": false,
|
|
241
|
+
"docs": {
|
|
242
|
+
"tags": [],
|
|
243
|
+
"text": "Allows plain text to be provided to the close button of the dialog."
|
|
244
|
+
},
|
|
245
|
+
"getter": false,
|
|
246
|
+
"setter": false,
|
|
247
|
+
"reflect": true
|
|
248
|
+
}
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
static get states() {
|
|
252
|
+
return {
|
|
253
|
+
"isOpen": {}
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
static get events() {
|
|
257
|
+
return [{
|
|
258
|
+
"method": "dialogClose",
|
|
259
|
+
"name": "close",
|
|
260
|
+
"bubbles": true,
|
|
261
|
+
"cancelable": true,
|
|
262
|
+
"composed": true,
|
|
263
|
+
"docs": {
|
|
264
|
+
"tags": [],
|
|
265
|
+
"text": "Emitted when the dialog is closed.\nFired by close(), and by the close button."
|
|
266
|
+
},
|
|
267
|
+
"complexType": {
|
|
268
|
+
"original": "any",
|
|
269
|
+
"resolved": "any",
|
|
270
|
+
"references": {}
|
|
271
|
+
}
|
|
272
|
+
}];
|
|
273
|
+
}
|
|
274
|
+
static get methods() {
|
|
275
|
+
return {
|
|
276
|
+
"showModal": {
|
|
277
|
+
"complexType": {
|
|
278
|
+
"signature": "() => Promise<void>",
|
|
279
|
+
"parameters": [],
|
|
280
|
+
"references": {
|
|
281
|
+
"Promise": {
|
|
282
|
+
"location": "global",
|
|
283
|
+
"id": "global::Promise"
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
"return": "Promise<void>"
|
|
287
|
+
},
|
|
288
|
+
"docs": {
|
|
289
|
+
"text": "Method to display a modal dialog",
|
|
290
|
+
"tags": []
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
"close": {
|
|
294
|
+
"complexType": {
|
|
295
|
+
"signature": "() => Promise<void>",
|
|
296
|
+
"parameters": [],
|
|
297
|
+
"references": {
|
|
298
|
+
"Promise": {
|
|
299
|
+
"location": "global",
|
|
300
|
+
"id": "global::Promise"
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
"return": "Promise<void>"
|
|
304
|
+
},
|
|
305
|
+
"docs": {
|
|
306
|
+
"text": "Method to display a non-modal dialog",
|
|
307
|
+
"tags": []
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
"toggle": {
|
|
311
|
+
"complexType": {
|
|
312
|
+
"signature": "() => Promise<void>",
|
|
313
|
+
"parameters": [],
|
|
314
|
+
"references": {
|
|
315
|
+
"Promise": {
|
|
316
|
+
"location": "global",
|
|
317
|
+
"id": "global::Promise"
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
"return": "Promise<void>"
|
|
321
|
+
},
|
|
322
|
+
"docs": {
|
|
323
|
+
"text": "Method to either show or hide dialog \ndepending on the current state.",
|
|
324
|
+
"tags": []
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
static get elementRef() { return "host"; }
|
|
330
|
+
static get watchers() {
|
|
331
|
+
return [{
|
|
332
|
+
"propName": "open",
|
|
333
|
+
"methodName": "handleOpenChange"
|
|
334
|
+
}];
|
|
335
|
+
}
|
|
336
|
+
static get listeners() {
|
|
337
|
+
return [{
|
|
338
|
+
"name": "mouseup",
|
|
339
|
+
"method": "onMouseup",
|
|
340
|
+
"target": "window",
|
|
341
|
+
"capture": false,
|
|
342
|
+
"passive": true
|
|
343
|
+
}];
|
|
344
|
+
}
|
|
345
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export const dialogSizeArray = ['small', 'medium', 'large'];
|
|
2
|
+
export const formMethodArray = ['GET', 'POST'];
|
|
3
|
+
export const formEnctypeArray = [
|
|
4
|
+
'application/x-www-form-urlencoded',
|
|
5
|
+
'multipart/form-data',
|
|
6
|
+
'text/plain'
|
|
7
|
+
];
|
|
8
|
+
export const formTargetArray = ['_self', '_blank', '_parent', '_top'];
|
|
9
|
+
export const formAutocompleteArray = ['on', 'off'];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const hintVariantArray = ['information', 'success', 'warning', 'error'];
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
--r-hint--text--flex: 1;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
:host([variant=information]) {
|
|
6
|
+
--r-hint--color: var(--r-text-soft, #686868);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
:host([variant=success]),
|
|
10
|
+
:host([success]) {
|
|
11
|
+
--r-hint--color: var(--r-status-success-regular, #298535);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host([variant=warning]),
|
|
15
|
+
:host([warning]) {
|
|
16
|
+
--r-hint--color: var(--r-status-warning-strong, #89411a);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:host([variant=error]),
|
|
20
|
+
:host([invalid]) {
|
|
21
|
+
--r-hint--color: var(--r-status-error-regular, #b00c15);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
:host([icon-position=end]) {
|
|
25
|
+
--r-hint--flex-direction: row-reverse;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:host {
|
|
29
|
+
display: block;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.r-hint {
|
|
33
|
+
display: var(--r-hint--display, flex);
|
|
34
|
+
flex-direction: var(--r-hint--flex-direction, row);
|
|
35
|
+
gap: var(--r-hint--gap, var(--r-spacing-050, 0.5rem));
|
|
36
|
+
font-family: var(--r-hint--font-family, var(--r-font-family-text, system-ui));
|
|
37
|
+
font-size: var(--r-hint--font-size, var(--r-font-size-300, 0.875rem));
|
|
38
|
+
line-height: var(--r-hint--line-height, var(--r-line-height-m, 1.5));
|
|
39
|
+
color: var(--r-hint--color, var(--r-text-soft, #686868));
|
|
40
|
+
font-weight: var(--r-hint--font-weight, var(--r-font-weight-regular, 400));
|
|
41
|
+
margin-top: var(--r-hint--margin-top, 0);
|
|
42
|
+
margin-bottom: var(--r-hint--margin-bottom, 0);
|
|
43
|
+
}
|
|
44
|
+
.r-hint--icon {
|
|
45
|
+
display: var(--r-hint--icon--display, flex);
|
|
46
|
+
align-items: var(--r-hint--icon--align-items, start);
|
|
47
|
+
min-width: var(--r-hint--icon--min-width, 1rem);
|
|
48
|
+
margin-top: var(--r-hint--icon--margin-top, 0.15rem);
|
|
49
|
+
}
|
|
50
|
+
.r-hint--text {
|
|
51
|
+
flex: var(--r-hint--text--flex, 1);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.visually-hidden {
|
|
55
|
+
position: absolute;
|
|
56
|
+
width: 1px;
|
|
57
|
+
height: 1px;
|
|
58
|
+
padding: 0;
|
|
59
|
+
margin: -1px;
|
|
60
|
+
overflow: hidden;
|
|
61
|
+
clip: rect(0, 0, 0, 0);
|
|
62
|
+
border: 0;
|
|
63
|
+
}
|