@dubai-design-system/components-js 5.0.3 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +198 -1
- package/MIGRATION.md +423 -0
- package/dist/cjs/dda-accordion.cjs.entry.js +12 -7
- package/dist/cjs/dda-alert.cjs.entry.js +20 -3
- package/dist/cjs/dda-attach-file.cjs.entry.js +24 -8
- package/dist/cjs/dda-avatar.cjs.entry.js +23 -12
- package/dist/cjs/dda-banner.cjs.entry.js +14 -5
- package/dist/cjs/dda-breadcrumb.cjs.entry.js +22 -10
- package/dist/cjs/dda-button.cjs.entry.js +16 -9
- package/dist/cjs/dda-checkbox.cjs.entry.js +5 -4
- package/dist/cjs/dda-chip.cjs.entry.js +8 -3
- package/dist/cjs/dda-credit-card.cjs.entry.js +5 -3
- package/dist/cjs/dda-creditcard-field.cjs.entry.js +26 -8
- package/dist/cjs/dda-dropdown.cjs.entry.js +31 -5
- package/dist/cjs/dda-footer.cjs.entry.js +9 -3
- package/dist/cjs/dda-header.cjs.entry.js +80 -8
- package/dist/cjs/dda-home-banner.cjs.entry.js +11 -5
- package/dist/cjs/dda-horizontal-stepper.cjs.entry.js +22 -5
- package/dist/cjs/dda-input.cjs.entry.js +17 -10
- package/dist/cjs/dda-link-button_2.cjs.entry.js +21 -13
- package/dist/cjs/dda-number-field.cjs.entry.js +20 -8
- package/dist/cjs/dda-pagination.cjs.entry.js +21 -11
- package/dist/cjs/dda-phonefield.cjs.entry.js +27 -9
- package/dist/cjs/dda-progressbar.cjs.entry.js +8 -3
- package/dist/cjs/dda-range-slider.cjs.entry.js +15 -3
- package/dist/cjs/dda-search-input.cjs.entry.js +27 -12
- package/dist/cjs/dda-segmented-tabs.cjs.entry.js +54 -6
- package/dist/cjs/dda-select.cjs.entry.js +40 -8
- package/dist/cjs/dda-sticky-footer.cjs.entry.js +20 -3
- package/dist/cjs/dda-tabs.cjs.entry.js +10 -4
- package/dist/cjs/dda-textarea.cjs.entry.js +22 -12
- package/dist/cjs/dda-toggle.cjs.entry.js +5 -4
- package/dist/cjs/dda-tooltip.cjs.entry.js +6 -4
- package/dist/cjs/dda-ui-card.cjs.entry.js +19 -2
- package/dist/cjs/dda-vertical-stepper.cjs.entry.js +23 -3
- package/dist/cjs/dda.cjs.js +2 -2
- package/dist/cjs/index-Dm7JbFAh.js +2116 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/unique-id-DahNGdQy.js +14 -0
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/dda-accordion/dda-accordion.js +16 -11
- package/dist/collection/components/dda-alert/dda-alert.js +74 -17
- package/dist/collection/components/dda-alert/dda-alert.stories.js +2 -8
- package/dist/collection/components/dda-attach-file/dda-attach-file.js +35 -19
- package/dist/collection/components/dda-attach-file/dda-attach-file.stories.js +0 -9
- package/dist/collection/components/dda-avatar/dda-avatar.js +53 -25
- package/dist/collection/components/dda-avatar/dda-avatar.stories.js +1 -1
- package/dist/collection/components/dda-banner/dda-banner.css +35 -0
- package/dist/collection/components/dda-banner/dda-banner.js +34 -5
- package/dist/collection/components/dda-breadcrumb/dda-breadcrumb.js +49 -12
- package/dist/collection/components/dda-button/dda-button.js +29 -22
- package/dist/collection/components/dda-checkbox/dda-checkbox.css +13 -0
- package/dist/collection/components/dda-checkbox/dda-checkbox.js +13 -12
- package/dist/collection/components/dda-checkbox/dda-checkbox.stories.js +0 -11
- package/dist/collection/components/dda-chip/dda-chip.js +34 -9
- package/dist/collection/components/dda-chip/dda-chip.stories.js +0 -11
- package/dist/collection/components/dda-credit-card/dda-credit-card.js +10 -8
- package/dist/collection/components/dda-creditcard-field/dda-creditcard-field.js +58 -23
- package/dist/collection/components/dda-creditcard-field/dda-creditcard-field.stories.js +1 -10
- package/dist/collection/components/dda-dropdown/dda-dropdown.js +90 -18
- package/dist/collection/components/dda-dropdown/dda-dropdown.stories.js +0 -4
- package/dist/collection/components/dda-footer/dda-footer.js +57 -10
- package/dist/collection/components/dda-footer/dda-footer.stories.js +5 -4
- package/dist/collection/components/dda-header/dda-header.css +11 -0
- package/dist/collection/components/dda-header/dda-header.js +224 -37
- package/dist/collection/components/dda-header/dda-header.stories.js +12 -21
- package/dist/collection/components/dda-home-banner/dda-home-banner.js +8 -2
- package/dist/collection/components/dda-home-banner/home-banner.css +21 -1
- package/dist/collection/components/dda-input/dda-input.js +28 -21
- package/dist/collection/components/dda-input/dda-input.stories.js +0 -13
- package/dist/collection/components/dda-link-button/dda-link-button.js +30 -23
- package/dist/collection/components/dda-number-field/dda-number-field.js +54 -22
- package/dist/collection/components/dda-number-field/dda-number-field.stories.js +0 -9
- package/dist/collection/components/dda-pagination/dda-pagination.js +95 -28
- package/dist/collection/components/dda-pagination/dda-pagination.stories.js +24 -24
- package/dist/collection/components/dda-phonefield/dda-phonefield.js +62 -24
- package/dist/collection/components/dda-phonefield/dda-phonefield.stories.js +0 -13
- package/dist/collection/components/dda-progressbar/dda-progressbar.js +13 -8
- package/dist/collection/components/dda-radiobutton/dda-radiobutton.css +121 -4
- package/dist/collection/components/dda-radiobutton/dda-radiobutton.js +13 -12
- package/dist/collection/components/dda-radiobutton/dda-radiobutton.stories.js +5 -16
- package/dist/collection/components/dda-range-slider/dda-range-slider.js +29 -17
- package/dist/collection/components/dda-search-input/dda-search-input.js +61 -26
- package/dist/collection/components/dda-search-input/dda-search-input.stories.js +0 -9
- package/dist/collection/components/dda-select/dda-select.js +78 -20
- package/dist/collection/components/dda-sticky-footer/dda-sticky-footer.js +80 -43
- package/dist/collection/components/dda-sticky-footer/dda-sticky-footer.stories.js +1 -1
- package/dist/collection/components/dda-tabs/dda-tabs.js +21 -15
- package/dist/collection/components/dda-tabs/dda-tabs.stories.js +3 -10
- package/dist/collection/components/dda-textarea/dda-textarea.js +33 -23
- package/dist/collection/components/dda-textarea/dda-textarea.stories.js +0 -9
- package/dist/collection/components/dda-toggle/dda-toggle.css +9 -0
- package/dist/collection/components/dda-toggle/dda-toggle.js +47 -8
- package/dist/collection/components/dda-toggle/dda-toggle.stories.js +10 -22
- package/dist/collection/components/dda-tooltip/dda-tooltip.js +9 -7
- package/dist/collection/components/dda-ui-card/dda-ui-card.js +55 -13
- package/dist/collection/components/segmented-groups/dda-segmented-tabs/dda-segmented-tabs.js +79 -11
- package/dist/collection/components/stepper/dda-horizontal-stepper/dda-horizontal-stepper.css +4 -1
- package/dist/collection/components/stepper/dda-horizontal-stepper/dda-horizontal-stepper.js +24 -6
- package/dist/collection/components/stepper/dda-horizontal-stepper/dda-horizontal-stepper.stories.js +2 -2
- package/dist/collection/components/stepper/dda-vertical-stepper/dda-vertical-stepper.js +49 -6
- package/dist/collection/components/stepper/dda-vertical-stepper/dda-vertical-stepper.stories.js +2 -2
- package/dist/collection/global/global.css +117 -4
- package/dist/collection/global/input.css +56 -2
- package/dist/collection/storybook/component-api.js +15 -0
- package/dist/collection/utils/placeholder-color.js +89 -0
- package/dist/collection/utils/unique-id.js +10 -0
- package/dist/components/dda-accordion.js +1 -1
- package/dist/components/dda-alert.js +1 -1
- package/dist/components/dda-attach-file.js +1 -1
- package/dist/components/dda-avatar.js +1 -1
- package/dist/components/dda-banner.js +1 -1
- package/dist/components/dda-breadcrumb.js +1 -1
- package/dist/components/dda-button.js +1 -1
- package/dist/components/dda-checkbox.js +1 -1
- package/dist/components/dda-chip.js +1 -1
- package/dist/components/dda-credit-card.js +1 -1
- package/dist/components/dda-creditcard-field.js +1 -1
- package/dist/components/dda-dropdown.js +1 -1
- package/dist/components/dda-footer.js +1 -1
- package/dist/components/dda-header.js +1 -1
- package/dist/components/dda-home-banner.js +1 -1
- package/dist/components/dda-horizontal-stepper.js +1 -1
- package/dist/components/dda-input.js +1 -1
- package/dist/components/dda-link-button.js +1 -1
- package/dist/components/dda-number-field.js +1 -1
- package/dist/components/dda-pagination.js +1 -1
- package/dist/components/dda-phonefield.js +1 -1
- package/dist/components/dda-progressbar.js +1 -1
- package/dist/components/dda-radiobutton.js +1 -1
- package/dist/components/dda-range-slider.js +1 -1
- package/dist/components/dda-search-input.js +1 -1
- package/dist/components/dda-segmented-tabs.js +1 -1
- package/dist/components/dda-select.js +1 -1
- package/dist/components/dda-sticky-footer.js +1 -1
- package/dist/components/dda-tabs.js +1 -1
- package/dist/components/dda-textarea.js +1 -1
- package/dist/components/dda-toggle.js +1 -1
- package/dist/components/dda-tooltip.js +1 -1
- package/dist/components/dda-ui-card.js +1 -1
- package/dist/components/dda-vertical-stepper.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-B-I003EB.js +1 -0
- package/dist/components/p-B4nkZ15I.js +1 -0
- package/dist/components/p-Bk2uycTf.js +1 -0
- package/dist/components/p-C96R7OFb.js +1 -0
- package/dist/components/p-Ciz-pnTr.js +1 -0
- package/dist/components/p-CleacZFl.js +1 -0
- package/dist/dda/dda.css +2 -2
- package/dist/dda/dda.esm.js +1 -1
- package/dist/dda/p-0daa2a14.entry.js +1 -0
- package/dist/dda/p-1537b9dd.entry.js +1 -0
- package/dist/dda/p-175c52b8.entry.js +1 -0
- package/dist/dda/p-2b65a79a.entry.js +1 -0
- package/dist/dda/p-2d93b185.entry.js +1 -0
- package/dist/dda/p-30d3a014.entry.js +1 -0
- package/dist/dda/p-33b890a5.entry.js +1 -0
- package/dist/dda/p-64d90f29.entry.js +1 -0
- package/dist/dda/p-69bc04c1.entry.js +1 -0
- package/dist/dda/p-6daa282f.entry.js +1 -0
- package/dist/dda/p-72f22d1f.entry.js +1 -0
- package/dist/dda/p-7549868d.entry.js +1 -0
- package/dist/dda/p-7a51a946.entry.js +1 -0
- package/dist/dda/p-7b187e1f.entry.js +1 -0
- package/dist/dda/p-7b4d895e.entry.js +1 -0
- package/dist/dda/p-8f408141.entry.js +1 -0
- package/dist/dda/p-91341ca7.entry.js +1 -0
- package/dist/dda/p-9552def5.entry.js +1 -0
- package/dist/dda/p-9672af43.entry.js +1 -0
- package/dist/dda/p-98bba4dc.entry.js +1 -0
- package/dist/dda/p-B-I003EB.js +1 -0
- package/dist/dda/p-a0768b2f.entry.js +1 -0
- package/dist/dda/p-a5bd30ad.entry.js +1 -0
- package/dist/dda/p-a83f6267.entry.js +1 -0
- package/dist/dda/p-b17f79df.entry.js +1 -0
- package/dist/dda/p-b79505e1.entry.js +1 -0
- package/dist/dda/p-b8b98df2.entry.js +1 -0
- package/dist/dda/p-cc2cc09b.entry.js +1 -0
- package/dist/dda/p-ceee08fa.entry.js +1 -0
- package/dist/dda/p-d000e69d.entry.js +1 -0
- package/dist/dda/p-e3a65ceb.entry.js +1 -0
- package/dist/dda/p-e5b79469.entry.js +1 -0
- package/dist/dda/p-f2f3be5f.entry.js +1 -0
- package/dist/dda/p-f92e0a32.entry.js +1 -0
- package/dist/dda/p-o6021Dsk.js +2 -0
- package/dist/esm/dda-accordion.entry.js +12 -7
- package/dist/esm/dda-alert.entry.js +20 -3
- package/dist/esm/dda-attach-file.entry.js +24 -8
- package/dist/esm/dda-avatar.entry.js +23 -12
- package/dist/esm/dda-banner.entry.js +14 -5
- package/dist/esm/dda-breadcrumb.entry.js +22 -10
- package/dist/esm/dda-button.entry.js +16 -9
- package/dist/esm/dda-checkbox.entry.js +5 -4
- package/dist/esm/dda-chip.entry.js +8 -3
- package/dist/esm/dda-credit-card.entry.js +5 -3
- package/dist/esm/dda-creditcard-field.entry.js +26 -8
- package/dist/esm/dda-dropdown.entry.js +31 -5
- package/dist/esm/dda-footer.entry.js +9 -3
- package/dist/esm/dda-header.entry.js +80 -8
- package/dist/esm/dda-home-banner.entry.js +11 -5
- package/dist/esm/dda-horizontal-stepper.entry.js +22 -5
- package/dist/esm/dda-input.entry.js +17 -10
- package/dist/esm/dda-link-button_2.entry.js +21 -13
- package/dist/esm/dda-number-field.entry.js +20 -8
- package/dist/esm/dda-pagination.entry.js +21 -11
- package/dist/esm/dda-phonefield.entry.js +27 -9
- package/dist/esm/dda-progressbar.entry.js +8 -3
- package/dist/esm/dda-range-slider.entry.js +15 -3
- package/dist/esm/dda-search-input.entry.js +27 -12
- package/dist/esm/dda-segmented-tabs.entry.js +54 -6
- package/dist/esm/dda-select.entry.js +40 -8
- package/dist/esm/dda-sticky-footer.entry.js +20 -3
- package/dist/esm/dda-tabs.entry.js +10 -4
- package/dist/esm/dda-textarea.entry.js +22 -12
- package/dist/esm/dda-toggle.entry.js +5 -4
- package/dist/esm/dda-tooltip.entry.js +6 -4
- package/dist/esm/dda-ui-card.entry.js +19 -2
- package/dist/esm/dda-vertical-stepper.entry.js +23 -3
- package/dist/esm/dda.js +3 -3
- package/dist/esm/index-o6021Dsk.js +2106 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/unique-id-B-I003EB.js +12 -0
- package/dist/types/components/dda-accordion/dda-accordion.d.ts +6 -0
- package/dist/types/components/dda-alert/dda-alert.d.ts +21 -0
- package/dist/types/components/dda-attach-file/dda-attach-file.d.ts +17 -0
- package/dist/types/components/dda-attach-file/dda-attach-file.stories.d.ts +0 -4
- package/dist/types/components/dda-avatar/dda-avatar.d.ts +20 -0
- package/dist/types/components/dda-banner/dda-banner.d.ts +5 -0
- package/dist/types/components/dda-breadcrumb/dda-breadcrumb.d.ts +12 -6
- package/dist/types/components/dda-button/dda-button.d.ts +15 -4
- package/dist/types/components/dda-checkbox/dda-checkbox.d.ts +11 -0
- package/dist/types/components/dda-checkbox/dda-checkbox.stories.d.ts +0 -10
- package/dist/types/components/dda-chip/dda-chip.d.ts +10 -0
- package/dist/types/components/dda-chip/dda-chip.stories.d.ts +0 -6
- package/dist/types/components/dda-credit-card/dda-credit-card.d.ts +7 -0
- package/dist/types/components/dda-creditcard-field/dda-creditcard-field.d.ts +24 -0
- package/dist/types/components/dda-creditcard-field/dda-creditcard-field.stories.d.ts +0 -6
- package/dist/types/components/dda-dropdown/dda-dropdown.d.ts +25 -0
- package/dist/types/components/dda-dropdown/dda-dropdown.stories.d.ts +0 -4
- package/dist/types/components/dda-footer/dda-footer.d.ts +13 -0
- package/dist/types/components/dda-header/dda-header.d.ts +60 -0
- package/dist/types/components/dda-header/dda-header.stories.d.ts +6 -0
- package/dist/types/components/dda-home-banner/dda-home-banner.d.ts +1 -0
- package/dist/types/components/dda-input/dda-input.d.ts +16 -0
- package/dist/types/components/dda-input/dda-input.stories.d.ts +0 -6
- package/dist/types/components/dda-link-button/dda-link-button.d.ts +14 -3
- package/dist/types/components/dda-number-field/dda-number-field.d.ts +21 -0
- package/dist/types/components/dda-number-field/dda-number-field.stories.d.ts +0 -6
- package/dist/types/components/dda-pagination/dda-pagination.d.ts +26 -0
- package/dist/types/components/dda-phonefield/dda-phonefield.d.ts +21 -0
- package/dist/types/components/dda-phonefield/dda-phonefield.stories.d.ts +0 -6
- package/dist/types/components/dda-progressbar/dda-progressbar.d.ts +7 -0
- package/dist/types/components/dda-radiobutton/dda-radiobutton.d.ts +11 -0
- package/dist/types/components/dda-radiobutton/dda-radiobutton.stories.d.ts +5 -15
- package/dist/types/components/dda-range-slider/dda-range-slider.d.ts +16 -0
- package/dist/types/components/dda-search-input/dda-search-input.d.ts +21 -0
- package/dist/types/components/dda-search-input/dda-search-input.stories.d.ts +0 -6
- package/dist/types/components/dda-select/dda-select.d.ts +23 -0
- package/dist/types/components/dda-sticky-footer/dda-sticky-footer.d.ts +46 -3
- package/dist/types/components/dda-tabs/dda-tabs.d.ts +12 -1
- package/dist/types/components/dda-tabs/dda-tabs.stories.d.ts +0 -4
- package/dist/types/components/dda-textarea/dda-textarea.d.ts +16 -0
- package/dist/types/components/dda-textarea/dda-textarea.stories.d.ts +0 -6
- package/dist/types/components/dda-toggle/dda-toggle.d.ts +11 -0
- package/dist/types/components/dda-toggle/dda-toggle.stories.d.ts +2 -12
- package/dist/types/components/dda-tooltip/dda-tooltip.d.ts +5 -0
- package/dist/types/components/dda-ui-card/dda-ui-card.d.ts +13 -1
- package/dist/types/components/segmented-groups/dda-segmented-tabs/dda-segmented-tabs.d.ts +19 -2
- package/dist/types/components/stepper/dda-horizontal-stepper/dda-horizontal-stepper.d.ts +6 -0
- package/dist/types/components/stepper/dda-vertical-stepper/dda-vertical-stepper.d.ts +8 -0
- package/dist/types/components.d.ts +2373 -47
- package/dist/types/utils/placeholder-color.d.ts +10 -0
- package/dist/types/utils/unique-id.d.ts +6 -0
- package/package.json +4 -3
- package/readme.md +6 -0
- package/dist/cjs/index-CDUC0Pdj.js +0 -1986
- package/dist/components/p-9UeqjDnY.js +0 -1
- package/dist/components/p-CrTEb7xH.js +0 -1
- package/dist/components/p-DldlmGnP.js +0 -1
- package/dist/components/p-NvTw9Mx1.js +0 -1
- package/dist/components/p-i15-_er0.js +0 -1
- package/dist/dda/p-016e4090.entry.js +0 -1
- package/dist/dda/p-0229b303.entry.js +0 -1
- package/dist/dda/p-05a6f90d.entry.js +0 -1
- package/dist/dda/p-1c9a6035.entry.js +0 -1
- package/dist/dda/p-2c313105.entry.js +0 -1
- package/dist/dda/p-2cec7be6.entry.js +0 -1
- package/dist/dda/p-2f4ace4c.entry.js +0 -1
- package/dist/dda/p-360a0577.entry.js +0 -1
- package/dist/dda/p-3e49128d.entry.js +0 -1
- package/dist/dda/p-3fa27728.entry.js +0 -1
- package/dist/dda/p-43e1c12f.entry.js +0 -1
- package/dist/dda/p-4428417d.entry.js +0 -1
- package/dist/dda/p-44ce832e.entry.js +0 -1
- package/dist/dda/p-560a3f0c.entry.js +0 -1
- package/dist/dda/p-5712bbd9.entry.js +0 -1
- package/dist/dda/p-626d7e7b.entry.js +0 -1
- package/dist/dda/p-68008c64.entry.js +0 -1
- package/dist/dda/p-6f3d9f78.entry.js +0 -1
- package/dist/dda/p-79db1218.entry.js +0 -1
- package/dist/dda/p-84911fab.entry.js +0 -1
- package/dist/dda/p-90d9648b.entry.js +0 -1
- package/dist/dda/p-91040abe.entry.js +0 -1
- package/dist/dda/p-Cq6A4mXg.js +0 -2
- package/dist/dda/p-a1421a54.entry.js +0 -1
- package/dist/dda/p-a22b1c56.entry.js +0 -1
- package/dist/dda/p-aa0e9035.entry.js +0 -1
- package/dist/dda/p-b2981646.entry.js +0 -1
- package/dist/dda/p-c1f45887.entry.js +0 -1
- package/dist/dda/p-c50e1141.entry.js +0 -1
- package/dist/dda/p-d8a9cab1.entry.js +0 -1
- package/dist/dda/p-dd966009.entry.js +0 -1
- package/dist/dda/p-ed099201.entry.js +0 -1
- package/dist/dda/p-f4bd2b2e.entry.js +0 -1
- package/dist/dda/p-fc30c60e.entry.js +0 -1
- package/dist/esm/index-Cq6A4mXg.js +0 -1976
|
@@ -17,7 +17,11 @@ export default {
|
|
|
17
17
|
},
|
|
18
18
|
search_input_name: {
|
|
19
19
|
control: { type: 'text' },
|
|
20
|
-
description: '
|
|
20
|
+
description: 'Query parameter name for the search input (default q)',
|
|
21
|
+
},
|
|
22
|
+
search_action: {
|
|
23
|
+
control: { type: 'text' },
|
|
24
|
+
description: 'Results page URL. A search does a GET to it unless searchSubmit is cancelled',
|
|
21
25
|
},
|
|
22
26
|
language_button_name: {
|
|
23
27
|
control: { type: 'text' },
|
|
@@ -59,7 +63,7 @@ To use the \`dda-header\` component, pass the following props:
|
|
|
59
63
|
second-logo-white-src="digital-logo-white.svg"
|
|
60
64
|
second-logo-alt="Dubai-Digital-Authority"
|
|
61
65
|
login-link="/login"
|
|
62
|
-
|
|
66
|
+
read-speaker-link=""
|
|
63
67
|
language_text="العربية"
|
|
64
68
|
hamburger_menu_button_name="hamburger_menu_button_name"
|
|
65
69
|
accessibility_button_name="accessibility_button_name"
|
|
@@ -69,15 +73,7 @@ To use the \`dda-header\` component, pass the following props:
|
|
|
69
73
|
close_menu_button_name="close_menu_button_name"
|
|
70
74
|
close_accessibility_button_name="close_accessibility_button_name"
|
|
71
75
|
close_sidebar_button_name="close_sidebar_button_name"
|
|
72
|
-
toggle_accessibility_button_name="toggle_accessibility_button_name"
|
|
73
|
-
languageswitch="() => console.log('Language Switcher')"
|
|
74
|
-
smtextsize="() => console.log('Small Text')"
|
|
75
|
-
basetextsize="() => console.log('Base Text')"
|
|
76
|
-
lgtextsize="() => console.log('Large Text')"
|
|
77
|
-
normalcontrast="() => console.log('Normal Text')"
|
|
78
|
-
blindcontrast="() => console.log('Blind Text')"
|
|
79
|
-
redcontrast="() => console.log('Red Text')"
|
|
80
|
-
greencontrast="() => console.log('Green Text')">
|
|
76
|
+
toggle_accessibility_button_name="toggle_accessibility_button_name">
|
|
81
77
|
</dda-header>
|
|
82
78
|
\`\`\`
|
|
83
79
|
`,
|
|
@@ -99,26 +95,20 @@ const Template = args => `
|
|
|
99
95
|
accessibility_button_name="${args.accessibility_button_name}"
|
|
100
96
|
search_button_name="${args.search_button_name}"
|
|
101
97
|
search_input_name="${args.search_input_name}"
|
|
98
|
+
search_action="${args.search_action}"
|
|
102
99
|
language_button_name="${args.language_button_name}"
|
|
103
100
|
close_menu_button_name="${args.close_menu_button_name}"
|
|
104
101
|
close_accessibility_button_name="${args.close_accessibility_button_name}"
|
|
105
102
|
close_sidebar_button_name="${args.close_sidebar_button_name}"
|
|
106
103
|
toggle_accessibility_button_name="${args.toggle_accessibility_button_name}"
|
|
107
|
-
|
|
108
|
-
languageSwitch="() => console.log('Language Switcher')"
|
|
109
|
-
smTextSize="() => console.log('Small Text')"
|
|
110
|
-
baseTextSize="() => console.log('Base Text')"
|
|
111
|
-
lgTextSize="() => console.log('Large Text')"
|
|
112
|
-
normalContrast="() => console.log('Normal Text')"
|
|
113
|
-
blindContrast="() => console.log('Blind Text')"
|
|
114
|
-
redContrast="() => console.log('Red Text')"
|
|
115
|
-
greenContrast="() => console.log('Green Text')"
|
|
104
|
+
read-speaker-link="${args.readSpeakerLink}"
|
|
116
105
|
quick-links='${JSON.stringify(args.quickLinks)}'
|
|
117
106
|
side-menu-items='${JSON.stringify(args.sideMenuItems)}'
|
|
118
107
|
></dda-header>
|
|
119
108
|
<script>
|
|
120
109
|
const header = document.querySelector('dda-header');
|
|
121
110
|
header.addEventListener('languageSwitch', ${args.languageSwitch});
|
|
111
|
+
header.addEventListener('searchSubmit', (event) => console.log('Search', event.detail.query));
|
|
122
112
|
header.addEventListener('smTextSize', ${args.smTextSize});
|
|
123
113
|
header.addEventListener('baseTextSize', ${args.baseTextSize});
|
|
124
114
|
header.addEventListener('lgTextSize', ${args.lgTextSize});
|
|
@@ -141,7 +131,8 @@ Default.args = {
|
|
|
141
131
|
hamburger_menu_button_name: "hamburger_menu_button_name",
|
|
142
132
|
accessibility_button_name: "accessibility_button_name",
|
|
143
133
|
search_button_name: "search_button_name",
|
|
144
|
-
search_input_name: "
|
|
134
|
+
search_input_name: "q",
|
|
135
|
+
search_action: "",
|
|
145
136
|
language_button_name: "language_button_name",
|
|
146
137
|
close_menu_button_name: "close_menu_button_name",
|
|
147
138
|
close_accessibility_button_name: "close_accessibility_button_name",
|
|
@@ -88,6 +88,12 @@ export class DdaHomeBanner {
|
|
|
88
88
|
this.updateSlides();
|
|
89
89
|
this.startAutoplay();
|
|
90
90
|
}
|
|
91
|
+
componentDidLoad() {
|
|
92
|
+
// Non-<slide> children are ignored, which otherwise looks like a blank banner.
|
|
93
|
+
if (!this.slides.length) {
|
|
94
|
+
console.warn('dda-home-banner: no <slide> children found. Each slide must be a <slide> element; other children are not shown.');
|
|
95
|
+
}
|
|
96
|
+
}
|
|
91
97
|
disconnectedCallback() {
|
|
92
98
|
var _a, _b;
|
|
93
99
|
this.listening = false;
|
|
@@ -176,10 +182,10 @@ export class DdaHomeBanner {
|
|
|
176
182
|
render() {
|
|
177
183
|
const total = this.slides.length;
|
|
178
184
|
const showAutoplayToggle = this.autoplay && !this.reducedMotion;
|
|
179
|
-
return (h(Host, { key: '
|
|
185
|
+
return (h(Host, { key: '337ecda1c81691400d3cf4368ae74baeaf997ad1', class: "home-slider", role: "region", "aria-roledescription": "carousel", "aria-label": this.aria_label }, h("div", { key: 'c916baad761db8b607c783f2fd58dcf0eda9c2ee', class: "dda-slider-container" }, h("div", { key: '7ce645f06a4a83d78185563d0d99e472aee19dce', class: "dda-slides", style: { width: total * 100 + 'vw', left: this.currentSlide * -100 + '%' } }, h("slot", { key: 'f946bde4fcf2ae779a96dc6d2a99bc68ab358fd2' })), h("div", { key: 'eb981c8e7753780a5c1d80f9f3651a8797e480eb', class: 'slider-nav' }, showAutoplayToggle && (h("button", { key: '3bbdc0f9fd960df2037deb65e4ddace5055d28bb', class: "pause", type: "button", "aria-label": this.isPaused ? this.play_button_label : this.pause_button_label, onClick: this.togglePause }, h("i", { key: 'c9d122cd73a083a871f3ba390987cb5e7aa3a1b6', class: "material-icons", "aria-hidden": "true" }, this.isPaused ? 'play_arrow' : 'pause'))), h("button", { key: '24f4655bc2a97cbe43e5d9c666b800be75e4d18d', class: "prev", type: "button", "aria-label": this.previous_button_label, onClick: () => this.prevSlide() }, h("i", { key: '028e2fffddc89b3679051f528245a931c4e6dc4d', class: "material-icons", "aria-hidden": "true" }, "chevron_left")), h("ul", { key: 'bbda2847681926070012d86593892b4788d409f0' }, this.slides.map((_, index) => {
|
|
180
186
|
const isCurrent = this.currentSlide === index;
|
|
181
187
|
return (h("li", null, h("button", { type: "button", class: isCurrent ? 'dots active' : 'dots', "aria-label": `${this.slide_button_label} ${index + 1}`, "aria-current": isCurrent ? 'true' : null, onClick: () => this.setSlide(index) })));
|
|
182
|
-
})), h("button", { key: '
|
|
188
|
+
})), h("button", { key: '64f35b47bf5ed0fc6a2f6cec8fe709ff45e3909f', class: "next", type: "button", "aria-label": this.next_button_label, onClick: () => this.nextSlide() }, h("i", { key: 'd733c1fc3970f2d4f5319e8215636cdea0a2d9f9', class: "material-icons", "aria-hidden": "true" }, "chevron_right"))), h("div", { key: '8c66648d97b0c82868b7162486d8e91eb6e46a39', class: "visually-hidden", role: "status", "aria-live": this.isRotating ? 'off' : 'polite' }, total ? this.statusText(this.currentSlide + 1, total) : ''))));
|
|
183
189
|
}
|
|
184
190
|
static get is() { return "dda-home-banner"; }
|
|
185
191
|
static get originalStyleUrls() {
|
|
@@ -55,6 +55,19 @@
|
|
|
55
55
|
align-items: center;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
/* Built-in scrim behind the slide text. The ::before gradient only darkens the bottom and fades
|
|
59
|
+
to nothing mid-slide, so white text over a bright photo fell to 2-3:1. At 0.55+ black the
|
|
60
|
+
background under white text stays at or below sRGB 115 even on a pure white photo (4.5:1+).
|
|
61
|
+
The dark side follows the text start edge; RTL mirrors it. */
|
|
62
|
+
.home-slider .slide-wrap {
|
|
63
|
+
background-image: linear-gradient(to right, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.55) 70%, rgba(0, 0, 0, 0.2) 100%);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
[dir='rtl'] .home-slider .slide-wrap,
|
|
67
|
+
.home-slider[dir='rtl'] .slide-wrap {
|
|
68
|
+
background-image: linear-gradient(to left, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.55) 70%, rgba(0, 0, 0, 0.2) 100%);
|
|
69
|
+
}
|
|
70
|
+
|
|
58
71
|
.home-slider .dda-slider-container {
|
|
59
72
|
width: 100vw;
|
|
60
73
|
height: 100vh;
|
|
@@ -92,7 +105,8 @@
|
|
|
92
105
|
width: 100%;
|
|
93
106
|
text-align: center;
|
|
94
107
|
position: absolute;
|
|
95
|
-
|
|
108
|
+
/* The quick-link cards over the banner rise by the sticky footer height, so the controls do too. */
|
|
109
|
+
bottom: calc(250px + var(--dda-sticky-footer-height, 0px));
|
|
96
110
|
left: 0;
|
|
97
111
|
display: flex;
|
|
98
112
|
justify-content: center;
|
|
@@ -192,4 +206,10 @@
|
|
|
192
206
|
.slider-nav {
|
|
193
207
|
bottom: 100px;
|
|
194
208
|
}
|
|
209
|
+
/* Below 992px the text runs the full width, so the scrim must too. */
|
|
210
|
+
.home-slider .slide-wrap,
|
|
211
|
+
[dir='rtl'] .home-slider .slide-wrap,
|
|
212
|
+
.home-slider[dir='rtl'] .slide-wrap {
|
|
213
|
+
background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
|
|
214
|
+
}
|
|
195
215
|
}
|
|
@@ -1,20 +1,26 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { uniqueId } from "../../utils/unique-id";
|
|
2
3
|
export class DdaInput {
|
|
3
4
|
constructor() {
|
|
5
|
+
/** Native input type, e.g. `text`, `password`, `email`, `number`, `date` or `time`. The legacy values `Witherror` and `disabled` only apply the error or disabled styling. */
|
|
4
6
|
this.type = 'text';
|
|
7
|
+
// Per-instance fallback, so the label, helper and error text stay linked
|
|
8
|
+
// to the input when the consumer omits input_id.
|
|
9
|
+
this.fallbackId = uniqueId('dda-input');
|
|
5
10
|
}
|
|
6
11
|
handleInput(event) {
|
|
7
12
|
this.value = event.target.value;
|
|
8
13
|
}
|
|
9
|
-
// F-016: ids are derived from the consumer-supplied input_id,
|
|
10
|
-
//
|
|
11
|
-
|
|
12
|
-
|
|
14
|
+
// F-016: ids are derived from the input id (the consumer-supplied input_id,
|
|
15
|
+
// or the generated fallback), so they never collide across instances.
|
|
16
|
+
get inputId() {
|
|
17
|
+
return this.input_id || this.fallbackId;
|
|
18
|
+
}
|
|
13
19
|
get helperId() {
|
|
14
|
-
return
|
|
20
|
+
return `${this.inputId}-helper`;
|
|
15
21
|
}
|
|
16
22
|
get errorId() {
|
|
17
|
-
return
|
|
23
|
+
return `${this.inputId}-error`;
|
|
18
24
|
}
|
|
19
25
|
get describedBy() {
|
|
20
26
|
const ids = [
|
|
@@ -35,7 +41,8 @@ export class DdaInput {
|
|
|
35
41
|
this.component_mode,
|
|
36
42
|
this.input_name,
|
|
37
43
|
].filter(Boolean).join(' ');
|
|
38
|
-
|
|
44
|
+
const id = this.inputId;
|
|
45
|
+
return (h(Host, { key: 'fb19ff41ee2bb68694a569d5f9176e91976ff1bd' }, h("div", { key: 'a0e88b035e84a2bb843c16c133b1c42d9920cbb9', class: inputClass }, this.label && h("label", { key: '13b74df04c3afefc4467e8661a7b39531405283c', htmlFor: id, class: "dda-input-label" }, this.label), h("input", { key: 'e9b9b54145cd7ae6e0784f2fa314fcd214c5e5d4', "aria-label": this.aria_label, id: id, name: this.input_name, type: this.type, placeholder: this.placeholder, value: this.value, onInput: (event) => this.handleInput(event), class: "dda-input-field dda-input-text", "aria-describedby": this.describedBy, "aria-invalid": this.error_message ? 'true' : undefined }), this.helper_text && h("span", { key: '2c3f4562423f05642eefd37e333720f15aa920e5', id: this.helperId, class: "dda-helper-text" }, this.helper_text), this.error_message && h("span", { key: 'cc986bf0d4c49550937ff23d82ec8f4548d890a7', id: this.errorId, class: "dda-error-message" }, this.error_message))));
|
|
39
46
|
}
|
|
40
47
|
static get is() { return "dda-input"; }
|
|
41
48
|
static get originalStyleUrls() {
|
|
@@ -62,7 +69,7 @@ export class DdaInput {
|
|
|
62
69
|
"optional": false,
|
|
63
70
|
"docs": {
|
|
64
71
|
"tags": [],
|
|
65
|
-
"text": ""
|
|
72
|
+
"text": "Visible label text, linked to the input through `input_id` (or a generated id)."
|
|
66
73
|
},
|
|
67
74
|
"getter": false,
|
|
68
75
|
"setter": false,
|
|
@@ -81,7 +88,7 @@ export class DdaInput {
|
|
|
81
88
|
"optional": false,
|
|
82
89
|
"docs": {
|
|
83
90
|
"tags": [],
|
|
84
|
-
"text": ""
|
|
91
|
+
"text": "Placeholder text of the inner `<input>`."
|
|
85
92
|
},
|
|
86
93
|
"getter": false,
|
|
87
94
|
"setter": false,
|
|
@@ -100,7 +107,7 @@ export class DdaInput {
|
|
|
100
107
|
"optional": false,
|
|
101
108
|
"docs": {
|
|
102
109
|
"tags": [],
|
|
103
|
-
"text": ""
|
|
110
|
+
"text": "Value of the inner `<input>`. Updates as the user types."
|
|
104
111
|
},
|
|
105
112
|
"getter": false,
|
|
106
113
|
"setter": false,
|
|
@@ -119,7 +126,7 @@ export class DdaInput {
|
|
|
119
126
|
"optional": false,
|
|
120
127
|
"docs": {
|
|
121
128
|
"tags": [],
|
|
122
|
-
"text": ""
|
|
129
|
+
"text": "Native input type, e.g. `text`, `password`, `email`, `number`, `date` or `time`. The legacy values `Witherror` and `disabled` only apply the error or disabled styling."
|
|
123
130
|
},
|
|
124
131
|
"getter": false,
|
|
125
132
|
"setter": false,
|
|
@@ -139,7 +146,7 @@ export class DdaInput {
|
|
|
139
146
|
"optional": false,
|
|
140
147
|
"docs": {
|
|
141
148
|
"tags": [],
|
|
142
|
-
"text": ""
|
|
149
|
+
"text": "Helper text shown below the input and linked with `aria-describedby`."
|
|
143
150
|
},
|
|
144
151
|
"getter": false,
|
|
145
152
|
"setter": false,
|
|
@@ -158,7 +165,7 @@ export class DdaInput {
|
|
|
158
165
|
"optional": false,
|
|
159
166
|
"docs": {
|
|
160
167
|
"tags": [],
|
|
161
|
-
"text": ""
|
|
168
|
+
"text": "Error text shown below the input. When set, the input gets `aria-invalid=\"true\"`."
|
|
162
169
|
},
|
|
163
170
|
"getter": false,
|
|
164
171
|
"setter": false,
|
|
@@ -177,7 +184,7 @@ export class DdaInput {
|
|
|
177
184
|
"optional": true,
|
|
178
185
|
"docs": {
|
|
179
186
|
"tags": [],
|
|
180
|
-
"text": ""
|
|
187
|
+
"text": "Validation style. `error` shows the error colors."
|
|
181
188
|
},
|
|
182
189
|
"getter": false,
|
|
183
190
|
"setter": false,
|
|
@@ -196,7 +203,7 @@ export class DdaInput {
|
|
|
196
203
|
"optional": true,
|
|
197
204
|
"docs": {
|
|
198
205
|
"tags": [],
|
|
199
|
-
"text": ""
|
|
206
|
+
"text": "Size. `small` shows a smaller field; omit for the default size."
|
|
200
207
|
},
|
|
201
208
|
"getter": false,
|
|
202
209
|
"setter": false,
|
|
@@ -215,7 +222,7 @@ export class DdaInput {
|
|
|
215
222
|
"optional": true,
|
|
216
223
|
"docs": {
|
|
217
224
|
"tags": [],
|
|
218
|
-
"text": ""
|
|
225
|
+
"text": "Status style. `disabled` shows the disabled styling only; it does not set the native `disabled` attribute."
|
|
219
226
|
},
|
|
220
227
|
"getter": false,
|
|
221
228
|
"setter": false,
|
|
@@ -234,7 +241,7 @@ export class DdaInput {
|
|
|
234
241
|
"optional": true,
|
|
235
242
|
"docs": {
|
|
236
243
|
"tags": [],
|
|
237
|
-
"text": ""
|
|
244
|
+
"text": "Extra CSS classes added to the field container."
|
|
238
245
|
},
|
|
239
246
|
"getter": false,
|
|
240
247
|
"setter": false,
|
|
@@ -253,7 +260,7 @@ export class DdaInput {
|
|
|
253
260
|
"optional": true,
|
|
254
261
|
"docs": {
|
|
255
262
|
"tags": [],
|
|
256
|
-
"text": ""
|
|
263
|
+
"text": "Theme override class for the field, e.g. `light-mode`."
|
|
257
264
|
},
|
|
258
265
|
"getter": false,
|
|
259
266
|
"setter": false,
|
|
@@ -272,7 +279,7 @@ export class DdaInput {
|
|
|
272
279
|
"optional": false,
|
|
273
280
|
"docs": {
|
|
274
281
|
"tags": [],
|
|
275
|
-
"text": ""
|
|
282
|
+
"text": "`id` of the inner `<input>`. Also used for the label `for` and the helper and error text ids. Optional: an id is generated when it is not set."
|
|
276
283
|
},
|
|
277
284
|
"getter": false,
|
|
278
285
|
"setter": false,
|
|
@@ -291,7 +298,7 @@ export class DdaInput {
|
|
|
291
298
|
"optional": true,
|
|
292
299
|
"docs": {
|
|
293
300
|
"tags": [],
|
|
294
|
-
"text": ""
|
|
301
|
+
"text": "Accessible name of the inner `<input>`. Use it when there is no visible label."
|
|
295
302
|
},
|
|
296
303
|
"getter": false,
|
|
297
304
|
"setter": false,
|
|
@@ -310,7 +317,7 @@ export class DdaInput {
|
|
|
310
317
|
"optional": true,
|
|
311
318
|
"docs": {
|
|
312
319
|
"tags": [],
|
|
313
|
-
"text": ""
|
|
320
|
+
"text": "`name` of the inner `<input>`, submitted with its form."
|
|
314
321
|
},
|
|
315
322
|
"getter": false,
|
|
316
323
|
"setter": false,
|
|
@@ -59,10 +59,6 @@ export default {
|
|
|
59
59
|
control: { type: 'text' },
|
|
60
60
|
description: 'Aria label for the input field',
|
|
61
61
|
},
|
|
62
|
-
onchange: {
|
|
63
|
-
control: { type: 'text' },
|
|
64
|
-
description: 'onchange event for the input field',
|
|
65
|
-
},
|
|
66
62
|
input_name: {
|
|
67
63
|
control: { type: 'text' },
|
|
68
64
|
description: 'Name of the input field',
|
|
@@ -88,7 +84,6 @@ To use the \`dda-input\` component, pass the following props:
|
|
|
88
84
|
component_mode=""
|
|
89
85
|
input_id="input"
|
|
90
86
|
aria_label="input"
|
|
91
|
-
onchange="console.log('changed')"
|
|
92
87
|
input_name=""
|
|
93
88
|
></dda-input>
|
|
94
89
|
\`\`\`
|
|
@@ -118,7 +113,6 @@ Text.args = {
|
|
|
118
113
|
component_mode: '',
|
|
119
114
|
input_id: 'input',
|
|
120
115
|
aria_label: 'input',
|
|
121
|
-
onchange: '',
|
|
122
116
|
input_name: 'input',
|
|
123
117
|
};
|
|
124
118
|
export const Password = Template.bind({});
|
|
@@ -134,7 +128,6 @@ Password.args = {
|
|
|
134
128
|
component_mode: '',
|
|
135
129
|
input_id: 'input',
|
|
136
130
|
aria_label: 'input',
|
|
137
|
-
onchange: '',
|
|
138
131
|
input_name: 'input',
|
|
139
132
|
};
|
|
140
133
|
export const Email = Template.bind({});
|
|
@@ -150,7 +143,6 @@ Email.args = {
|
|
|
150
143
|
component_mode: '',
|
|
151
144
|
input_id: 'input',
|
|
152
145
|
aria_label: 'input',
|
|
153
|
-
onchange: '',
|
|
154
146
|
input_name: 'input',
|
|
155
147
|
};
|
|
156
148
|
export const Number = Template.bind({});
|
|
@@ -166,7 +158,6 @@ Number.args = {
|
|
|
166
158
|
component_mode: '',
|
|
167
159
|
input_id: 'input',
|
|
168
160
|
aria_label: 'input',
|
|
169
|
-
onchange: '',
|
|
170
161
|
input_name: 'input',
|
|
171
162
|
};
|
|
172
163
|
export const Date = Template.bind({});
|
|
@@ -182,7 +173,6 @@ Date.args = {
|
|
|
182
173
|
component_mode: '',
|
|
183
174
|
input_id: 'input',
|
|
184
175
|
aria_label: 'input',
|
|
185
|
-
onchange: '',
|
|
186
176
|
input_name: 'input',
|
|
187
177
|
};
|
|
188
178
|
export const Time = Template.bind({});
|
|
@@ -198,7 +188,6 @@ Time.args = {
|
|
|
198
188
|
component_mode: '',
|
|
199
189
|
input_id: 'input',
|
|
200
190
|
aria_label: 'input',
|
|
201
|
-
onchange: '',
|
|
202
191
|
input_name: 'input',
|
|
203
192
|
};
|
|
204
193
|
export const Witherror = Template.bind({});
|
|
@@ -215,7 +204,6 @@ Witherror.args = {
|
|
|
215
204
|
component_mode: '',
|
|
216
205
|
input_id: 'input',
|
|
217
206
|
aria_label: 'input',
|
|
218
|
-
onchange: '',
|
|
219
207
|
input_name: 'input',
|
|
220
208
|
};
|
|
221
209
|
export const disabled = Template.bind({});
|
|
@@ -232,6 +220,5 @@ disabled.args = {
|
|
|
232
220
|
component_mode: '',
|
|
233
221
|
input_id: 'input',
|
|
234
222
|
aria_label: 'input',
|
|
235
|
-
onchange: '',
|
|
236
223
|
input_name: 'input',
|
|
237
224
|
};
|
|
@@ -1,19 +1,26 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
export class DdaLinkButton {
|
|
3
3
|
constructor() {
|
|
4
|
-
/**
|
|
4
|
+
/** Not used: the component renders an `<a>` link, which has no `type`. */
|
|
5
5
|
this.type = 'button';
|
|
6
|
-
/**
|
|
6
|
+
/** Not used: the link stays active. For a disabled look, set `button_color` to `disabled`. */
|
|
7
7
|
this.disabled = false;
|
|
8
|
-
/**
|
|
8
|
+
/** Material Symbols icon name shown before the label, e.g. `arrow_back`. */
|
|
9
9
|
this.start_icon = '';
|
|
10
|
-
|
|
10
|
+
/** Material Symbols icon name shown after the label, e.g. `arrow_forward`. */
|
|
11
|
+
this.end_icon = '';
|
|
12
|
+
/** Accessible name of the link. Required when the link shows only an icon. */
|
|
11
13
|
this.aria_label = '';
|
|
12
|
-
|
|
14
|
+
/** Color variant, e.g. `default-primary`, `default-secondary`, `error-primary`, `onsurface-link` or `disabled`. */
|
|
15
|
+
this.button_color = 'primary';
|
|
16
|
+
/** Shape: `default` or `circle`. */
|
|
13
17
|
this.button_shape = '';
|
|
18
|
+
/** Shape of an icon-only link: `default` or `circle`. */
|
|
14
19
|
this.icon_button_shape = '';
|
|
15
|
-
|
|
16
|
-
this.
|
|
20
|
+
/** Extra CSS classes added to the inner `<a>`. */
|
|
21
|
+
this.custom_class = '';
|
|
22
|
+
/** URL the link opens. */
|
|
23
|
+
this.href = '#';
|
|
17
24
|
}
|
|
18
25
|
render() {
|
|
19
26
|
const linkbuttonClass = [
|
|
@@ -26,9 +33,9 @@ export class DdaLinkButton {
|
|
|
26
33
|
this.custom_class, // Include custom class
|
|
27
34
|
this.component_mode,
|
|
28
35
|
].filter(Boolean).join(' ');
|
|
29
|
-
return (h(Host, { key: '
|
|
36
|
+
return (h(Host, { key: '8dc6bd810c9049ea16753e583f3b2459d7be8dce' }, h("a", { key: '8f33348f1cb96c947671cd0041cdfae96f75ce8d',
|
|
30
37
|
// type={this.type}
|
|
31
|
-
id: this.button_id, href: this.href, class: linkbuttonClass, "aria-label": this.aria_label }, this.start_icon && h("i", { key: '
|
|
38
|
+
id: this.button_id, href: this.href, class: linkbuttonClass, "aria-label": this.aria_label }, this.start_icon && h("i", { key: '2f2a09f7aff30f48cc0e0bebbac6fb8747fec785', class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, this.start_icon), h("slot", { key: '7c8c764e2df42a872f8bd5123a8882f6ab30309c' }), this.end_icon && h("i", { key: 'e4892d4cd4b763d4ab306bd60f24b2f25a43ec59', class: "material-icons material-symbols-outlined", "aria-hidden": "true" }, this.end_icon))));
|
|
32
39
|
}
|
|
33
40
|
static get is() { return "dda-link-button"; }
|
|
34
41
|
static get originalStyleUrls() {
|
|
@@ -55,7 +62,7 @@ export class DdaLinkButton {
|
|
|
55
62
|
"optional": false,
|
|
56
63
|
"docs": {
|
|
57
64
|
"tags": [],
|
|
58
|
-
"text": "
|
|
65
|
+
"text": "Not used: the component renders an `<a>` link, which has no `type`."
|
|
59
66
|
},
|
|
60
67
|
"getter": false,
|
|
61
68
|
"setter": false,
|
|
@@ -75,7 +82,7 @@ export class DdaLinkButton {
|
|
|
75
82
|
"optional": false,
|
|
76
83
|
"docs": {
|
|
77
84
|
"tags": [],
|
|
78
|
-
"text": "
|
|
85
|
+
"text": "Not used: the link stays active. For a disabled look, set `button_color` to `disabled`."
|
|
79
86
|
},
|
|
80
87
|
"getter": false,
|
|
81
88
|
"setter": false,
|
|
@@ -95,7 +102,7 @@ export class DdaLinkButton {
|
|
|
95
102
|
"optional": false,
|
|
96
103
|
"docs": {
|
|
97
104
|
"tags": [],
|
|
98
|
-
"text": "
|
|
105
|
+
"text": "Material Symbols icon name shown before the label, e.g. `arrow_back`."
|
|
99
106
|
},
|
|
100
107
|
"getter": false,
|
|
101
108
|
"setter": false,
|
|
@@ -115,7 +122,7 @@ export class DdaLinkButton {
|
|
|
115
122
|
"optional": false,
|
|
116
123
|
"docs": {
|
|
117
124
|
"tags": [],
|
|
118
|
-
"text": ""
|
|
125
|
+
"text": "Material Symbols icon name shown after the label, e.g. `arrow_forward`."
|
|
119
126
|
},
|
|
120
127
|
"getter": false,
|
|
121
128
|
"setter": false,
|
|
@@ -135,7 +142,7 @@ export class DdaLinkButton {
|
|
|
135
142
|
"optional": true,
|
|
136
143
|
"docs": {
|
|
137
144
|
"tags": [],
|
|
138
|
-
"text": ""
|
|
145
|
+
"text": "Accessible name of the link. Required when the link shows only an icon."
|
|
139
146
|
},
|
|
140
147
|
"getter": false,
|
|
141
148
|
"setter": false,
|
|
@@ -155,7 +162,7 @@ export class DdaLinkButton {
|
|
|
155
162
|
"optional": false,
|
|
156
163
|
"docs": {
|
|
157
164
|
"tags": [],
|
|
158
|
-
"text": ""
|
|
165
|
+
"text": "Color variant, e.g. `default-primary`, `default-secondary`, `error-primary`, `onsurface-link` or `disabled`."
|
|
159
166
|
},
|
|
160
167
|
"getter": false,
|
|
161
168
|
"setter": false,
|
|
@@ -175,7 +182,7 @@ export class DdaLinkButton {
|
|
|
175
182
|
"optional": true,
|
|
176
183
|
"docs": {
|
|
177
184
|
"tags": [],
|
|
178
|
-
"text": ""
|
|
185
|
+
"text": "Size: `sm`, `md`, `lg` or `xl`."
|
|
179
186
|
},
|
|
180
187
|
"getter": false,
|
|
181
188
|
"setter": false,
|
|
@@ -194,7 +201,7 @@ export class DdaLinkButton {
|
|
|
194
201
|
"optional": true,
|
|
195
202
|
"docs": {
|
|
196
203
|
"tags": [],
|
|
197
|
-
"text": ""
|
|
204
|
+
"text": "Shape: `default` or `circle`."
|
|
198
205
|
},
|
|
199
206
|
"getter": false,
|
|
200
207
|
"setter": false,
|
|
@@ -214,7 +221,7 @@ export class DdaLinkButton {
|
|
|
214
221
|
"optional": true,
|
|
215
222
|
"docs": {
|
|
216
223
|
"tags": [],
|
|
217
|
-
"text": ""
|
|
224
|
+
"text": "Shape of an icon-only link: `default` or `circle`."
|
|
218
225
|
},
|
|
219
226
|
"getter": false,
|
|
220
227
|
"setter": false,
|
|
@@ -234,7 +241,7 @@ export class DdaLinkButton {
|
|
|
234
241
|
"optional": true,
|
|
235
242
|
"docs": {
|
|
236
243
|
"tags": [],
|
|
237
|
-
"text": ""
|
|
244
|
+
"text": "Gap between icon and label, as a spacing step: 1\u20136, 8, 10, 12 or 16."
|
|
238
245
|
},
|
|
239
246
|
"getter": false,
|
|
240
247
|
"setter": false,
|
|
@@ -253,7 +260,7 @@ export class DdaLinkButton {
|
|
|
253
260
|
"optional": true,
|
|
254
261
|
"docs": {
|
|
255
262
|
"tags": [],
|
|
256
|
-
"text": ""
|
|
263
|
+
"text": "Extra CSS classes added to the inner `<a>`."
|
|
257
264
|
},
|
|
258
265
|
"getter": false,
|
|
259
266
|
"setter": false,
|
|
@@ -273,7 +280,7 @@ export class DdaLinkButton {
|
|
|
273
280
|
"optional": true,
|
|
274
281
|
"docs": {
|
|
275
282
|
"tags": [],
|
|
276
|
-
"text": ""
|
|
283
|
+
"text": "URL the link opens."
|
|
277
284
|
},
|
|
278
285
|
"getter": false,
|
|
279
286
|
"setter": false,
|
|
@@ -293,7 +300,7 @@ export class DdaLinkButton {
|
|
|
293
300
|
"optional": true,
|
|
294
301
|
"docs": {
|
|
295
302
|
"tags": [],
|
|
296
|
-
"text": ""
|
|
303
|
+
"text": "Theme override class for the link, e.g. `light-mode`."
|
|
297
304
|
},
|
|
298
305
|
"getter": false,
|
|
299
306
|
"setter": false,
|
|
@@ -312,7 +319,7 @@ export class DdaLinkButton {
|
|
|
312
319
|
"optional": false,
|
|
313
320
|
"docs": {
|
|
314
321
|
"tags": [],
|
|
315
|
-
"text": ""
|
|
322
|
+
"text": "`id` of the inner `<a>`."
|
|
316
323
|
},
|
|
317
324
|
"getter": false,
|
|
318
325
|
"setter": false,
|