@dubai-design-system/components-js 3.12.10 → 3.12.11
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/LICENSE +21 -21
- package/dist/cjs/{app-globals-3a1e7e63.js → app-globals-V2Kpy_OQ.js} +0 -2
- package/dist/cjs/dda-accordion.cjs.entry.js +10 -36
- package/dist/cjs/dda-alert.cjs.entry.js +9 -14
- package/dist/cjs/dda-attach-file.cjs.entry.js +18 -62
- package/dist/cjs/dda-avatar.cjs.entry.js +9 -18
- package/dist/cjs/dda-banner.cjs.entry.js +23 -0
- package/dist/cjs/dda-breadcrumb.cjs.entry.js +5 -16
- package/dist/cjs/dda-button.cjs.entry.js +15 -33
- package/dist/cjs/dda-checkbox.cjs.entry.js +6 -14
- package/dist/cjs/dda-chip.cjs.entry.js +5 -9
- package/dist/cjs/dda-credit-card.cjs.entry.js +6 -5
- package/dist/cjs/dda-creditcard-field.cjs.entry.js +7 -46
- package/dist/cjs/dda-dropdown.cjs.entry.js +20 -41
- package/dist/cjs/dda-footer.cjs.entry.js +4 -5
- package/dist/cjs/dda-header.cjs.entry.js +44 -255
- package/dist/cjs/dda-home-banner.cjs.entry.js +10 -180
- package/dist/cjs/dda-horizontal-stepper.cjs.entry.js +5 -8
- package/dist/cjs/dda-input.cjs.entry.js +34 -0
- package/dist/cjs/dda-link-button_2.cjs.entry.js +66 -0
- package/dist/cjs/dda-number-field.cjs.entry.js +7 -33
- package/dist/cjs/dda-pagination.cjs.entry.js +17 -19
- package/dist/cjs/dda-phonefield.cjs.entry.js +197 -240
- package/dist/cjs/dda-progressbar.cjs.entry.js +5 -8
- package/dist/cjs/dda-range-slider.cjs.entry.js +5 -10
- package/dist/cjs/dda-search-input.cjs.entry.js +12 -103
- package/dist/cjs/dda-segmented-tabs.cjs.entry.js +6 -9
- package/dist/cjs/dda-select.cjs.entry.js +9 -114
- package/dist/cjs/dda-sticky-footer.cjs.entry.js +4 -66
- package/dist/cjs/dda-tabs.cjs.entry.js +16 -43
- package/dist/cjs/dda-textarea.cjs.entry.js +6087 -6252
- package/dist/cjs/dda-toggle.cjs.entry.js +11 -16
- package/dist/cjs/dda-tooltip.cjs.entry.js +5 -8
- package/dist/cjs/dda-ui-card.cjs.entry.js +26 -0
- package/dist/cjs/dda-vertical-stepper.cjs.entry.js +4 -9
- package/dist/cjs/dda.cjs.js +7 -9
- package/dist/cjs/{index-39924b9e.js → index-B79qki6G.js} +790 -578
- package/dist/cjs/index.cjs.js +12 -16
- package/dist/cjs/loader.cjs.js +3 -7
- package/dist/collection/assets/countries.js +179 -179
- package/dist/collection/assets/digital-logo.svg +82 -82
- package/dist/collection/assets/fonts/dubai/DubaiBold.svg +5922 -5922
- package/dist/collection/assets/fonts/dubai/DubaiLight.svg +5935 -5935
- package/dist/collection/assets/fonts/dubai/DubaiMedium.svg +5926 -5926
- package/dist/collection/assets/fonts/dubai/DubaiRegular.svg +5925 -5925
- package/dist/collection/assets/img/dda-icon-logo.svg +4 -4
- package/dist/collection/assets/img/digital-logo-white.svg +82 -82
- package/dist/collection/assets/img/digital-logo.svg +82 -82
- package/dist/collection/assets/img/icn/DubaiAI.svg +267 -267
- package/dist/collection/assets/img/icn/icn-Excel.svg +9 -9
- package/dist/collection/assets/img/icn/icn-Image.svg +6 -6
- package/dist/collection/assets/img/icn/icn-OneNote.svg +6 -6
- package/dist/collection/assets/img/icn/icn-PDF.svg +7 -7
- package/dist/collection/assets/img/icn/icn-PowerPoint.svg +10 -10
- package/dist/collection/assets/img/icn/icn-Video.svg +5 -5
- package/dist/collection/assets/img/icn/icn-Word.svg +10 -10
- package/dist/collection/assets/img/icn/icn-accessibility-dark.svg +3 -3
- package/dist/collection/assets/img/icn/icn-apple-dark.svg +3 -3
- package/dist/collection/assets/img/icn/icn-apple.svg +3 -3
- package/dist/collection/assets/img/icn/icn-chat_bubble_outline.svg +3 -3
- package/dist/collection/assets/img/icn/icn-complaints.svg +28 -28
- package/dist/collection/assets/img/icn/icn-facebook-dark.svg +4 -4
- package/dist/collection/assets/img/icn/icn-facebook.svg +11 -11
- package/dist/collection/assets/img/icn/icn-google-dark.svg +13 -13
- package/dist/collection/assets/img/icn/icn-google.svg +13 -13
- package/dist/collection/assets/img/icn/icn-grid-view.svg +3 -3
- package/dist/collection/assets/img/icn/icn-happy.svg +3 -3
- package/dist/collection/assets/img/icn/icn-instagram-dark.svg +12 -12
- package/dist/collection/assets/img/icn/icn-instagram.svg +30 -30
- package/dist/collection/assets/img/icn/icn-search-dark.svg +3 -3
- package/dist/collection/assets/img/icn/icn-user-dark.svg +3 -3
- package/dist/collection/collection-manifest.json +5 -16
- package/dist/collection/components/dda-accordion/dda-accordion.css +72 -91
- package/dist/collection/components/dda-accordion/dda-accordion.js +16 -215
- package/dist/collection/components/dda-accordion/dda-accordion.stories.js +18 -58
- package/dist/collection/components/dda-alert/dda-alert.css +148 -133
- package/dist/collection/components/dda-alert/dda-alert.js +50 -47
- package/dist/collection/components/dda-alert/dda-alert.stories.js +58 -66
- package/dist/collection/components/dda-attach-file/dda-attach-file.js +41 -306
- package/dist/collection/components/dda-attach-file/dda-attach-file.stories.js +128 -84
- package/dist/collection/components/dda-avatar/dda-avatar.css +282 -282
- package/dist/collection/components/dda-avatar/dda-avatar.js +24 -73
- package/dist/collection/components/dda-avatar/dda-avatar.stories.js +76 -48
- package/dist/collection/components/dda-banner/dda-banner.css +3 -0
- package/dist/collection/components/dda-banner/dda-banner.js +90 -0
- package/dist/collection/components/dda-breadcrumb/dda-breadcrumb.css +58 -61
- package/dist/collection/components/dda-breadcrumb/dda-breadcrumb.js +7 -93
- package/dist/collection/components/dda-breadcrumb/dda-breadcrumb.stories.js +14 -22
- package/dist/collection/components/dda-button/dda-button.js +54 -143
- package/dist/collection/components/dda-button/dda-button.stories.js +105 -118
- package/dist/collection/components/dda-checkbox/dda-checkbox.css +119 -126
- package/dist/collection/components/dda-checkbox/dda-checkbox.js +42 -46
- package/dist/collection/components/dda-checkbox/dda-checkbox.stories.js +56 -55
- package/dist/collection/components/dda-chip/dda-chip.css +100 -109
- package/dist/collection/components/dda-chip/dda-chip.js +15 -150
- package/dist/collection/components/dda-chip/dda-chip.stories.js +34 -60
- package/dist/collection/components/dda-credit-card/dda-credit-card.css +104 -0
- package/dist/collection/components/dda-credit-card/dda-credit-card.js +24 -15
- package/dist/collection/components/dda-credit-card/dda-credit-card.stories.js +17 -19
- package/dist/collection/components/dda-creditcard-field/dda-creditcard-field.js +39 -126
- package/dist/collection/components/dda-creditcard-field/dda-creditcard-field.stories.js +30 -40
- package/dist/collection/components/dda-dropdown/dda-dropdown.js +63 -134
- package/dist/collection/components/dda-dropdown/dda-dropdown.stories.js +141 -85
- package/dist/collection/components/dda-footer/dda-footer.css +0 -0
- package/dist/collection/components/dda-footer/dda-footer.js +30 -20
- package/dist/collection/components/dda-footer/dda-footer.stories.js +29 -30
- package/dist/collection/components/dda-header/dda-header.css +0 -0
- package/dist/collection/components/dda-header/dda-header.js +179 -1169
- package/dist/collection/components/dda-header/dda-header.stories.js +118 -358
- package/dist/collection/components/dda-home-banner/dda-home-banner.js +9 -226
- package/dist/collection/components/dda-home-banner/dda-home-banner.stories.js +44 -37
- package/dist/collection/components/dda-home-banner/home-banner.css +153 -269
- package/dist/collection/components/dda-input/dda-input.js +41 -310
- package/dist/collection/components/dda-input/dda-input.stories.js +89 -127
- package/dist/collection/components/dda-link-button/dda-link-button.js +50 -192
- package/dist/collection/components/dda-link-button/dda-link-button.stories.js +40 -131
- package/dist/collection/components/dda-number-field/dda-number-field.js +44 -87
- package/dist/collection/components/dda-number-field/dda-number-field.stories.js +26 -27
- package/dist/collection/components/dda-pagination/dda-pagination.css +167 -167
- package/dist/collection/components/dda-pagination/dda-pagination.js +40 -80
- package/dist/collection/components/dda-pagination/dda-pagination.stories.js +24 -25
- package/dist/collection/components/dda-phonefield/dda-phonefield.js +54 -220
- package/dist/collection/components/dda-phonefield/dda-phonefield.stories.js +59 -74
- package/dist/collection/components/dda-progressbar/dda-progressbar.css +94 -94
- package/dist/collection/components/dda-progressbar/dda-progressbar.js +11 -12
- package/dist/collection/components/dda-progressbar/dda-progressbar.stories.js +13 -14
- package/dist/collection/components/dda-radiobutton/dda-radiobutton.css +3830 -125
- package/dist/collection/components/dda-radiobutton/dda-radiobutton.js +24 -146
- package/dist/collection/components/dda-radiobutton/dda-radiobutton.stories.js +58 -64
- package/dist/collection/components/dda-range-slider/dda-range-slider.css +136 -143
- package/dist/collection/components/dda-range-slider/dda-range-slider.js +26 -27
- package/dist/collection/components/dda-range-slider/dda-range-slider.stories.js +20 -21
- package/dist/collection/components/dda-search-input/dda-search-input.js +42 -327
- package/dist/collection/components/dda-search-input/dda-search-input.stories.js +23 -51
- package/dist/collection/components/dda-select/dda-select.js +42 -325
- package/dist/collection/components/dda-select/dda-select.stories.js +113 -80
- package/dist/collection/components/dda-sticky-footer/dda-sticky-footer.css +0 -225
- package/dist/collection/components/dda-sticky-footer/dda-sticky-footer.js +133 -230
- package/dist/collection/components/dda-sticky-footer/dda-sticky-footer.stories.js +84 -100
- package/dist/collection/components/dda-tabs/dda-tabs.css +119 -164
- package/dist/collection/components/dda-tabs/dda-tabs.js +30 -96
- package/dist/collection/components/dda-tabs/dda-tabs.stories.js +34 -41
- package/dist/collection/components/dda-textarea/dda-textarea.js +83 -260
- package/dist/collection/components/dda-textarea/dda-textarea.stories.js +37 -63
- package/dist/collection/components/dda-toggle/dda-toggle.css +119 -129
- package/dist/collection/components/dda-toggle/dda-toggle.js +22 -56
- package/dist/collection/components/dda-toggle/dda-toggle.stories.js +17 -18
- package/dist/collection/components/dda-tooltip/dda-tooltip.css +130 -138
- package/dist/collection/components/dda-tooltip/dda-tooltip.js +11 -12
- package/dist/collection/components/dda-tooltip/dda-tooltip.stories.js +16 -17
- package/dist/collection/components/dda-ui-card/dda-ui-card.css +3 -0
- package/dist/collection/components/{dda-cards/dda-banner-card/dda-banner-card.js → dda-ui-card/dda-ui-card.js} +68 -95
- package/dist/collection/components/segmented-groups/dda-segmented-tabs/dda-segmented-tabs.css +51 -51
- package/dist/collection/components/segmented-groups/dda-segmented-tabs/dda-segmented-tabs.js +14 -15
- package/dist/collection/components/segmented-groups/dda-segmented-tabs/dda-segmented-tabs.stories.js +12 -13
- package/dist/collection/components/stepper/dda-horizontal-stepper/dda-horizontal-stepper.css +108 -114
- package/dist/collection/components/stepper/dda-horizontal-stepper/dda-horizontal-stepper.js +10 -11
- package/dist/collection/components/stepper/dda-horizontal-stepper/dda-horizontal-stepper.stories.js +19 -20
- package/dist/collection/components/stepper/dda-vertical-stepper/dda-vertical-stepper.css +112 -112
- package/dist/collection/components/stepper/dda-vertical-stepper/dda-vertical-stepper.js +7 -8
- package/dist/collection/components/stepper/dda-vertical-stepper/dda-vertical-stepper.stories.js +19 -20
- package/dist/collection/global/dda-button.css +580 -0
- package/dist/collection/global/global.css +3706 -0
- package/dist/collection/global/input.css +615 -688
- package/dist/collection/index.js +0 -1
- package/dist/collection/utils/applyTheme.js +12 -12
- package/dist/collection/utils/utils.js +0 -1
- package/dist/components/dda-accordion.js +1 -91
- package/dist/components/dda-alert.js +1 -74
- package/dist/components/dda-attach-file.js +1 -159
- package/dist/components/dda-avatar.js +1 -8
- package/dist/components/{dda-slider.d.ts → dda-banner.d.ts} +4 -4
- package/dist/components/dda-banner.js +1 -0
- package/dist/components/dda-breadcrumb.js +1 -63
- package/dist/components/dda-button.js +1 -8
- package/dist/components/dda-checkbox.js +1 -61
- package/dist/components/dda-chip.js +1 -8
- package/dist/components/dda-credit-card.js +1 -47
- package/dist/components/dda-creditcard-field.js +1 -132
- package/dist/components/dda-dropdown.js +1 -107
- package/dist/components/dda-footer.js +1 -59
- package/dist/components/dda-header.js +1 -534
- package/dist/components/dda-home-banner.js +1 -243
- package/dist/components/dda-horizontal-stepper.js +1 -47
- package/dist/components/dda-input.js +1 -8
- package/dist/components/dda-link-button.js +1 -8
- package/dist/components/dda-number-field.js +1 -122
- package/dist/components/dda-pagination.js +1 -116
- package/dist/components/dda-phonefield.js +1 -325
- package/dist/components/dda-progressbar.js +1 -50
- package/dist/components/dda-radiobutton.js +1 -8
- package/dist/components/dda-range-slider.js +1 -82
- package/dist/components/dda-search-input.js +1 -165
- package/dist/components/dda-segmented-tabs.js +1 -48
- package/dist/components/dda-select.js +1 -187
- package/dist/components/dda-sticky-footer.js +1 -161
- package/dist/components/dda-tabs.js +1 -110
- package/dist/components/dda-textarea.js +1 -16525
- package/dist/components/dda-toggle.js +1 -53
- package/dist/components/dda-tooltip.js +1 -8
- package/dist/components/{dda-image-card.d.ts → dda-ui-card.d.ts} +4 -4
- package/dist/components/dda-ui-card.js +1 -0
- package/dist/components/dda-vertical-stepper.js +1 -48
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +1 -23
- package/dist/components/p-BKiP6sny.js +1 -0
- package/dist/components/p-Bm-EYFLN.js +1 -0
- package/dist/components/p-BvP8lGT3.js +1 -0
- package/dist/components/p-DRFUUPG3.js +1 -0
- package/dist/components/p-LJ4a_ueE.js +1 -0
- package/dist/dda/dda.esm.js +1 -2
- package/dist/dda/index.esm.js +1 -2
- package/dist/dda/p-040099d5.entry.js +1 -0
- package/dist/dda/p-0c6f89c6.entry.js +1 -0
- package/dist/dda/p-0db613dc.entry.js +1 -0
- package/dist/dda/p-11ce4cfd.entry.js +1 -0
- package/dist/dda/p-16ce89d0.entry.js +1 -0
- package/dist/dda/p-203ee4e1.entry.js +1 -0
- package/dist/dda/p-2a027297.entry.js +1 -0
- package/dist/dda/p-2e1d59b9.entry.js +1 -0
- package/dist/dda/p-3512c8ef.entry.js +1 -0
- package/dist/dda/p-35cdd0cf.entry.js +1 -0
- package/dist/dda/p-3a6f952a.entry.js +1 -0
- package/dist/dda/p-3af92bf3.entry.js +1 -0
- package/dist/dda/p-4805baa9.entry.js +1 -0
- package/dist/dda/p-4a846bcd.entry.js +1 -0
- package/dist/dda/p-5b978b8f.entry.js +1 -0
- package/dist/dda/p-5e0f4eaf.entry.js +1 -0
- package/dist/dda/p-6331f69d.entry.js +1 -0
- package/dist/dda/p-67284de0.entry.js +1 -0
- package/dist/dda/p-687993df.entry.js +1 -0
- package/dist/dda/p-716421b3.entry.js +1 -0
- package/dist/dda/p-975905db.entry.js +1 -0
- package/dist/dda/p-9f0045c4.entry.js +1 -0
- package/dist/dda/p-9f82d233.entry.js +1 -0
- package/dist/dda/p-CnOk80gh.js +2 -0
- package/dist/dda/p-DQuL1Twl.js +1 -0
- package/dist/dda/p-b06d31ec.entry.js +1 -0
- package/dist/dda/p-bbafe3f1.entry.js +1 -0
- package/dist/dda/p-d0afe841.entry.js +1 -0
- package/dist/dda/p-d1a52040.entry.js +1 -0
- package/dist/dda/p-dd16275a.entry.js +1 -0
- package/dist/dda/p-e4f05069.entry.js +1 -0
- package/dist/dda/p-ea3d4df8.entry.js +1 -0
- package/dist/dda/p-ebaf8588.entry.js +1 -0
- package/dist/dda/p-f135fada.entry.js +1 -0
- package/dist/dda/p-f8eeccb8.entry.js +1 -0
- package/dist/esm/{app-globals-0f993ce5.js → app-globals-DQuL1Twl.js} +0 -2
- package/dist/esm/dda-accordion.entry.js +11 -35
- package/dist/esm/dda-alert.entry.js +10 -13
- package/dist/esm/dda-attach-file.entry.js +18 -60
- package/dist/esm/dda-avatar.entry.js +10 -17
- package/dist/esm/dda-banner.entry.js +21 -0
- package/dist/esm/dda-breadcrumb.entry.js +6 -15
- package/dist/esm/dda-button.entry.js +16 -32
- package/dist/esm/dda-checkbox.entry.js +7 -13
- package/dist/esm/dda-chip.entry.js +6 -8
- package/dist/esm/dda-credit-card.entry.js +7 -4
- package/dist/esm/dda-creditcard-field.entry.js +8 -45
- package/dist/esm/dda-dropdown.entry.js +21 -40
- package/dist/esm/dda-footer.entry.js +5 -4
- package/dist/esm/dda-header.entry.js +44 -253
- package/dist/esm/dda-home-banner.entry.js +11 -179
- package/dist/esm/dda-horizontal-stepper.entry.js +6 -7
- package/dist/esm/dda-input.entry.js +32 -0
- package/dist/esm/dda-link-button_2.entry.js +63 -0
- package/dist/esm/dda-number-field.entry.js +8 -32
- package/dist/esm/dda-pagination.entry.js +18 -18
- package/dist/esm/dda-phonefield.entry.js +197 -238
- package/dist/esm/dda-progressbar.entry.js +6 -7
- package/dist/esm/dda-range-slider.entry.js +5 -8
- package/dist/esm/dda-search-input.entry.js +13 -102
- package/dist/esm/dda-segmented-tabs.entry.js +7 -8
- package/dist/esm/dda-select.entry.js +10 -113
- package/dist/esm/dda-sticky-footer.entry.js +4 -64
- package/dist/esm/dda-tabs.entry.js +17 -42
- package/dist/esm/dda-textarea.entry.js +6087 -6250
- package/dist/esm/dda-toggle.entry.js +12 -15
- package/dist/esm/dda-tooltip.entry.js +6 -7
- package/dist/esm/dda-ui-card.entry.js +24 -0
- package/dist/esm/dda-vertical-stepper.entry.js +4 -7
- package/dist/esm/dda.js +6 -7
- package/dist/esm/{index-52b38a93.js → index-CnOk80gh.js} +789 -557
- package/dist/esm/index.js +12 -14
- package/dist/esm/loader.js +4 -6
- package/dist/types/components/dda-accordion/dda-accordion.d.ts +1 -12
- package/dist/types/components/dda-accordion/dda-accordion.stories.d.ts +2 -32
- package/dist/types/components/dda-alert/dda-alert.d.ts +7 -8
- package/dist/types/components/dda-alert/dda-alert.stories.d.ts +9 -13
- package/dist/types/components/dda-attach-file/dda-attach-file.d.ts +3 -18
- package/dist/types/components/dda-attach-file/dda-attach-file.stories.d.ts +6 -32
- package/dist/types/components/dda-avatar/dda-avatar.d.ts +0 -2
- package/dist/types/components/dda-avatar/dda-avatar.stories.d.ts +0 -4
- package/dist/types/components/dda-banner/dda-banner.d.ts +13 -0
- package/dist/types/components/dda-breadcrumb/dda-breadcrumb.d.ts +0 -5
- package/dist/types/components/dda-breadcrumb/dda-breadcrumb.stories.d.ts +0 -5
- package/dist/types/components/dda-button/dda-button.d.ts +6 -13
- package/dist/types/components/dda-button/dda-button.stories.d.ts +27 -23
- package/dist/types/components/dda-checkbox/dda-checkbox.d.ts +1 -5
- package/dist/types/components/dda-checkbox/dda-checkbox.stories.d.ts +18 -4
- package/dist/types/components/dda-chip/dda-chip.d.ts +1 -8
- package/dist/types/components/dda-chip/dda-chip.stories.d.ts +5 -18
- package/dist/types/components/dda-creditcard-field/dda-creditcard-field.d.ts +0 -11
- package/dist/types/components/dda-creditcard-field/dda-creditcard-field.stories.d.ts +0 -4
- package/dist/types/components/dda-dropdown/dda-dropdown.d.ts +9 -27
- package/dist/types/components/dda-dropdown/dda-dropdown.stories.d.ts +36 -28
- package/dist/types/components/dda-header/dda-header.d.ts +9 -74
- package/dist/types/components/dda-header/dda-header.stories.d.ts +3 -108
- package/dist/types/components/dda-home-banner/dda-home-banner.d.ts +1 -18
- package/dist/types/components/dda-home-banner/dda-home-banner.stories.d.ts +3 -4
- package/dist/types/components/dda-input/dda-input.d.ts +1 -19
- package/dist/types/components/dda-input/dda-input.stories.d.ts +0 -12
- package/dist/types/components/dda-link-button/dda-link-button.d.ts +4 -9
- package/dist/types/components/dda-link-button/dda-link-button.stories.d.ts +0 -37
- package/dist/types/components/dda-number-field/dda-number-field.d.ts +0 -7
- package/dist/types/components/dda-pagination/dda-pagination.d.ts +0 -3
- package/dist/types/components/dda-phonefield/dda-phonefield.d.ts +9 -26
- package/dist/types/components/dda-phonefield/dda-phonefield.stories.d.ts +6 -8
- package/dist/types/components/dda-radiobutton/dda-radiobutton.d.ts +0 -14
- package/dist/types/components/dda-radiobutton/dda-radiobutton.stories.d.ts +18 -19
- package/dist/types/components/dda-search-input/dda-search-input.d.ts +0 -22
- package/dist/types/components/dda-search-input/dda-search-input.stories.d.ts +0 -16
- package/dist/types/components/dda-select/dda-select.d.ts +3 -35
- package/dist/types/components/dda-select/dda-select.stories.d.ts +18 -21
- package/dist/types/components/dda-sticky-footer/dda-sticky-footer.d.ts +25 -35
- package/dist/types/components/dda-sticky-footer/dda-sticky-footer.stories.d.ts +0 -6
- package/dist/types/components/dda-tabs/dda-tabs.d.ts +4 -7
- package/dist/types/components/dda-tabs/dda-tabs.stories.d.ts +2 -8
- package/dist/types/components/dda-textarea/dda-textarea.d.ts +8 -23
- package/dist/types/components/dda-textarea/dda-textarea.stories.d.ts +0 -4
- package/dist/types/components/dda-toggle/dda-toggle.d.ts +0 -3
- package/dist/types/components/dda-ui-card/dda-ui-card.d.ts +13 -0
- package/dist/types/components.d.ts +1365 -1285
- package/dist/types/stencil-public-runtime.d.ts +193 -12
- package/package.json +6 -6
- package/readme.md +78 -260
- package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
- package/dist/cjs/dda-accordion.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-alert.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-attach-file.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-avatar.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-banner-card.cjs.entry.js +0 -28
- package/dist/cjs/dda-banner-card.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-breadcrumb.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-button.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-centered-image-card.cjs.entry.js +0 -40
- package/dist/cjs/dda-centered-image-card.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-checkbox.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-chip.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-credit-card.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-creditcard-field.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-custom-card.cjs.entry.js +0 -37
- package/dist/cjs/dda-custom-card.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-dropdown.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-event-card.cjs.entry.js +0 -53
- package/dist/cjs/dda-event-card.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-footer.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-header-menu_3.cjs.entry.js +0 -271
- package/dist/cjs/dda-header-menu_3.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-header.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-home-banner.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-home-carousel.cjs.entry.js +0 -110
- package/dist/cjs/dda-home-carousel.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-horizontal-stepper.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-image-card.cjs.entry.js +0 -34
- package/dist/cjs/dda-image-card.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-information-card.cjs.entry.js +0 -32
- package/dist/cjs/dda-information-card.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-link-button.cjs.entry.js +0 -71
- package/dist/cjs/dda-link-button.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-number-field.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-pagination.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-phonefield.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-pricing-card.cjs.entry.js +0 -38
- package/dist/cjs/dda-pricing-card.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-progressbar.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-range-slider.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-scroll-icon.cjs.entry.js +0 -32
- package/dist/cjs/dda-scroll-icon.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-search-input.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-segmented-tabs.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-select.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-slider.cjs.entry.js +0 -256
- package/dist/cjs/dda-slider.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-split-button.cjs.entry.js +0 -104
- package/dist/cjs/dda-split-button.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-sticky-footer.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-tabs.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-team-member-card.cjs.entry.js +0 -29
- package/dist/cjs/dda-team-member-card.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-teamsection-card.cjs.entry.js +0 -90
- package/dist/cjs/dda-teamsection-card.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-textarea.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-toggle.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-tooltip.cjs.entry.js.map +0 -1
- package/dist/cjs/dda-vertical-stepper.cjs.entry.js.map +0 -1
- package/dist/cjs/dda.cjs.js.map +0 -1
- package/dist/cjs/index-39924b9e.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/collection/assets/img/Team-Section-Card-1.svg +0 -9
- package/dist/collection/assets/img/icn/file_icons/icn-Excel.svg +0 -9
- package/dist/collection/assets/img/icn/file_icons/icn-Image.svg +0 -6
- package/dist/collection/assets/img/icn/file_icons/icn-OneNote.svg +0 -6
- package/dist/collection/assets/img/icn/file_icons/icn-PDF.svg +0 -7
- package/dist/collection/assets/img/icn/file_icons/icn-PowerPoint.svg +0 -10
- package/dist/collection/assets/img/icn/file_icons/icn-Video.svg +0 -5
- package/dist/collection/assets/img/icn/file_icons/icn-Word.svg +0 -10
- package/dist/collection/assets/img/icn/file_icons/icn-default.svg +0 -1
- package/dist/collection/assets/img/icn/icn-Config.svg +0 -9
- package/dist/collection/assets/img/icn/icn-card-facebook.svg +0 -11
- package/dist/collection/assets/img/icn/icn-card-linkdin.svg +0 -4
- package/dist/collection/assets/img/icn/icn-card-telegram.svg +0 -11
- package/dist/collection/assets/img/icn/icn-card-twitter-x.svg +0 -10
- package/dist/collection/assets/img/icn/icn-master-card.svg +0 -1
- package/dist/collection/components/cards/dda-centered-image-card/dda-centered-image-card.js +0 -268
- package/dist/collection/components/cards/dda-centered-image-card/dda-centered-image-card.js.map +0 -1
- package/dist/collection/components/cards/dda-centered-image-card/dda-centered-image-card.stories.js +0 -103
- package/dist/collection/components/cards/dda-centered-image-card/dda-centered-image-card.stories.js.map +0 -1
- package/dist/collection/components/cards/dda-image-card/dda-image-card.js +0 -589
- package/dist/collection/components/cards/dda-image-card/dda-image-card.js.map +0 -1
- package/dist/collection/components/cards/dda-image-card/dda-image-card.stories.js +0 -185
- package/dist/collection/components/cards/dda-image-card/dda-image-card.stories.js.map +0 -1
- package/dist/collection/components/cards/dda-information-card/dda-information-card.js +0 -509
- package/dist/collection/components/cards/dda-information-card/dda-information-card.js.map +0 -1
- package/dist/collection/components/cards/dda-information-card/dda-information-card.stories.js +0 -155
- package/dist/collection/components/cards/dda-information-card/dda-information-card.stories.js.map +0 -1
- package/dist/collection/components/cards/dda-team-member-card/dda-team-member-card.css +0 -47
- package/dist/collection/components/cards/dda-team-member-card/dda-team-member-card.js +0 -165
- package/dist/collection/components/cards/dda-team-member-card/dda-team-member-card.js.map +0 -1
- package/dist/collection/components/cards/dda-team-member-card/dda-team-member-card.stories.js +0 -85
- package/dist/collection/components/cards/dda-team-member-card/dda-team-member-card.stories.js.map +0 -1
- package/dist/collection/components/dda-accordion/dda-accordion.js.map +0 -1
- package/dist/collection/components/dda-accordion/dda-accordion.stories.js.map +0 -1
- package/dist/collection/components/dda-alert/dda-alert.js.map +0 -1
- package/dist/collection/components/dda-alert/dda-alert.stories.js.map +0 -1
- package/dist/collection/components/dda-attach-file/dda-attach-file.js.map +0 -1
- package/dist/collection/components/dda-attach-file/dda-attach-file.stories.js.map +0 -1
- package/dist/collection/components/dda-avatar/dda-avatar.js.map +0 -1
- package/dist/collection/components/dda-avatar/dda-avatar.stories.js.map +0 -1
- package/dist/collection/components/dda-breadcrumb/dda-breadcrumb.js.map +0 -1
- package/dist/collection/components/dda-breadcrumb/dda-breadcrumb.stories.js.map +0 -1
- package/dist/collection/components/dda-button/dda-button.js.map +0 -1
- package/dist/collection/components/dda-button/dda-button.stories.js.map +0 -1
- package/dist/collection/components/dda-cards/dda-banner-card/dda-banner-card.js.map +0 -1
- package/dist/collection/components/dda-cards/dda-banner-card/dda-banner-card.stories.js +0 -123
- package/dist/collection/components/dda-cards/dda-banner-card/dda-banner-card.stories.js.map +0 -1
- package/dist/collection/components/dda-cards/dda-custom-card/dda-custom-card.css +0 -8
- package/dist/collection/components/dda-cards/dda-custom-card/dda-custom-card.js +0 -157
- package/dist/collection/components/dda-cards/dda-custom-card/dda-custom-card.js.map +0 -1
- package/dist/collection/components/dda-cards/dda-custom-card/dda-custom-card.stories.js +0 -53
- package/dist/collection/components/dda-cards/dda-custom-card/dda-custom-card.stories.js.map +0 -1
- package/dist/collection/components/dda-cards/dda-image-cards/dda-event-card/dda-event-card.js +0 -298
- package/dist/collection/components/dda-cards/dda-image-cards/dda-event-card/dda-event-card.js.map +0 -1
- package/dist/collection/components/dda-cards/dda-image-cards/dda-event-card/dda-event-card.stories.js +0 -87
- package/dist/collection/components/dda-cards/dda-image-cards/dda-event-card/dda-event-card.stories.js.map +0 -1
- package/dist/collection/components/dda-cards/dda-image-cards/dda-pricing-card/dda-pricing-card.js +0 -341
- package/dist/collection/components/dda-cards/dda-image-cards/dda-pricing-card/dda-pricing-card.js.map +0 -1
- package/dist/collection/components/dda-cards/dda-image-cards/dda-pricing-card/dda-pricing-card.stories.js +0 -80
- package/dist/collection/components/dda-cards/dda-image-cards/dda-pricing-card/dda-pricing-card.stories.js.map +0 -1
- package/dist/collection/components/dda-cards/dda-team-section-cards/dda-teamsection-card-variant-one/dda-teamsection-card-variant-one.js +0 -324
- package/dist/collection/components/dda-cards/dda-team-section-cards/dda-teamsection-card-variant-one/dda-teamsection-card-variant-one.js.map +0 -1
- package/dist/collection/components/dda-cards/dda-team-section-cards/dda-teamsection-card-variant-one/dda-teamsection-card-variant-one.stories.js +0 -232
- package/dist/collection/components/dda-cards/dda-team-section-cards/dda-teamsection-card-variant-one/dda-teamsection-card-variant-one.stories.js.map +0 -1
- package/dist/collection/components/dda-checkbox/dda-checkbox.js.map +0 -1
- package/dist/collection/components/dda-checkbox/dda-checkbox.stories.js.map +0 -1
- package/dist/collection/components/dda-chip/dda-chip.js.map +0 -1
- package/dist/collection/components/dda-chip/dda-chip.stories.js.map +0 -1
- package/dist/collection/components/dda-credit-card/dda-credit-card.js.map +0 -1
- package/dist/collection/components/dda-credit-card/dda-credit-card.stories.js.map +0 -1
- package/dist/collection/components/dda-creditcard-field/dda-creditcard-field.js.map +0 -1
- package/dist/collection/components/dda-creditcard-field/dda-creditcard-field.stories.js.map +0 -1
- package/dist/collection/components/dda-dropdown/dda-dropdown.js.map +0 -1
- package/dist/collection/components/dda-dropdown/dda-dropdown.stories.js.map +0 -1
- package/dist/collection/components/dda-footer/dda-footer.js.map +0 -1
- package/dist/collection/components/dda-footer/dda-footer.stories.js.map +0 -1
- package/dist/collection/components/dda-header/dda-header-main.css +0 -1007
- package/dist/collection/components/dda-header/dda-header.js.map +0 -1
- package/dist/collection/components/dda-header/dda-header.stories.js.map +0 -1
- package/dist/collection/components/dda-header-menu/dda-header-menu.css +0 -295
- package/dist/collection/components/dda-header-menu/dda-header-menu.js +0 -222
- package/dist/collection/components/dda-header-menu/dda-header-menu.js.map +0 -1
- package/dist/collection/components/dda-header-menu/dda-header-menu.stories.js +0 -125
- package/dist/collection/components/dda-header-menu/dda-header-menu.stories.js.map +0 -1
- package/dist/collection/components/dda-home-banner/dda-home-banner.js.map +0 -1
- package/dist/collection/components/dda-home-banner/dda-home-banner.stories.js.map +0 -1
- package/dist/collection/components/dda-home-carousel/dda-home-carousel.css +0 -126
- package/dist/collection/components/dda-home-carousel/dda-home-carousel.js +0 -194
- package/dist/collection/components/dda-home-carousel/dda-home-carousel.js.map +0 -1
- package/dist/collection/components/dda-home-carousel/dda-home-carousel.stories.js +0 -138
- package/dist/collection/components/dda-home-carousel/dda-home-carousel.stories.js.map +0 -1
- package/dist/collection/components/dda-input/dda-input.js.map +0 -1
- package/dist/collection/components/dda-input/dda-input.stories.js.map +0 -1
- package/dist/collection/components/dda-link-button/dda-link-button.js.map +0 -1
- package/dist/collection/components/dda-link-button/dda-link-button.stories.js.map +0 -1
- package/dist/collection/components/dda-number-field/dda-number-field.js.map +0 -1
- package/dist/collection/components/dda-number-field/dda-number-field.stories.js.map +0 -1
- package/dist/collection/components/dda-pagination/dda-pagination.js.map +0 -1
- package/dist/collection/components/dda-pagination/dda-pagination.stories.js.map +0 -1
- package/dist/collection/components/dda-phonefield/dda-phonefield.js.map +0 -1
- package/dist/collection/components/dda-phonefield/dda-phonefield.stories.js.map +0 -1
- package/dist/collection/components/dda-progressbar/dda-progressbar.js.map +0 -1
- package/dist/collection/components/dda-progressbar/dda-progressbar.stories.js.map +0 -1
- package/dist/collection/components/dda-radiobutton/dda-radiobutton.js.map +0 -1
- package/dist/collection/components/dda-radiobutton/dda-radiobutton.stories.js.map +0 -1
- package/dist/collection/components/dda-range-slider/dda-range-slider.js.map +0 -1
- package/dist/collection/components/dda-range-slider/dda-range-slider.stories.js.map +0 -1
- package/dist/collection/components/dda-scroll-icon/dda-scroll-icon.css +0 -83
- package/dist/collection/components/dda-scroll-icon/dda-scroll-icon.js +0 -115
- package/dist/collection/components/dda-scroll-icon/dda-scroll-icon.js.map +0 -1
- package/dist/collection/components/dda-scroll-icon/dda-scroll-icon.stories.js +0 -59
- package/dist/collection/components/dda-scroll-icon/dda-scroll-icon.stories.js.map +0 -1
- package/dist/collection/components/dda-search-input/dda-search-input.js.map +0 -1
- package/dist/collection/components/dda-search-input/dda-search-input.stories.js.map +0 -1
- package/dist/collection/components/dda-select/dda-select.js.map +0 -1
- package/dist/collection/components/dda-select/dda-select.stories.js.map +0 -1
- package/dist/collection/components/dda-slider/dda-slider.css +0 -156
- package/dist/collection/components/dda-slider/dda-slider.js +0 -332
- package/dist/collection/components/dda-slider/dda-slider.js.map +0 -1
- package/dist/collection/components/dda-slider/dda-slider.stories.js +0 -126
- package/dist/collection/components/dda-slider/dda-slider.stories.js.map +0 -1
- package/dist/collection/components/dda-split-button/dda-split-button.js +0 -442
- package/dist/collection/components/dda-split-button/dda-split-button.js.map +0 -1
- package/dist/collection/components/dda-split-button/dda-split-button.stories.js +0 -144
- package/dist/collection/components/dda-split-button/dda-split-button.stories.js.map +0 -1
- package/dist/collection/components/dda-sticky-footer/dda-sticky-footer.js.map +0 -1
- package/dist/collection/components/dda-sticky-footer/dda-sticky-footer.stories.js.map +0 -1
- package/dist/collection/components/dda-tabs/dda-tabs.js.map +0 -1
- package/dist/collection/components/dda-tabs/dda-tabs.stories.js.map +0 -1
- package/dist/collection/components/dda-textarea/dda-textarea.js.map +0 -1
- package/dist/collection/components/dda-textarea/dda-textarea.stories.js.map +0 -1
- package/dist/collection/components/dda-toggle/dda-toggle.js.map +0 -1
- package/dist/collection/components/dda-toggle/dda-toggle.stories.js.map +0 -1
- package/dist/collection/components/dda-tooltip/dda-tooltip.js.map +0 -1
- package/dist/collection/components/dda-tooltip/dda-tooltip.stories.js.map +0 -1
- package/dist/collection/components/segmented-groups/dda-segmented-tabs/dda-segmented-tabs.js.map +0 -1
- package/dist/collection/components/segmented-groups/dda-segmented-tabs/dda-segmented-tabs.stories.js.map +0 -1
- package/dist/collection/components/stepper/dda-horizontal-stepper/dda-horizontal-stepper.js.map +0 -1
- package/dist/collection/components/stepper/dda-horizontal-stepper/dda-horizontal-stepper.stories.js.map +0 -1
- package/dist/collection/components/stepper/dda-vertical-stepper/dda-vertical-stepper.js.map +0 -1
- package/dist/collection/components/stepper/dda-vertical-stepper/dda-vertical-stepper.stories.js.map +0 -1
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/utils/utils.js.map +0 -1
- package/dist/components/dda-accordion.js.map +0 -1
- package/dist/components/dda-alert.js.map +0 -1
- package/dist/components/dda-attach-file.js.map +0 -1
- package/dist/components/dda-avatar.js.map +0 -1
- package/dist/components/dda-banner-card.d.ts +0 -11
- package/dist/components/dda-banner-card.js +0 -8
- package/dist/components/dda-banner-card.js.map +0 -1
- package/dist/components/dda-breadcrumb.js.map +0 -1
- package/dist/components/dda-button.js.map +0 -1
- package/dist/components/dda-centered-image-card.d.ts +0 -11
- package/dist/components/dda-centered-image-card.js +0 -73
- package/dist/components/dda-centered-image-card.js.map +0 -1
- package/dist/components/dda-checkbox.js.map +0 -1
- package/dist/components/dda-chip.js.map +0 -1
- package/dist/components/dda-credit-card.js.map +0 -1
- package/dist/components/dda-creditcard-field.js.map +0 -1
- package/dist/components/dda-custom-card.d.ts +0 -11
- package/dist/components/dda-custom-card.js +0 -64
- package/dist/components/dda-custom-card.js.map +0 -1
- package/dist/components/dda-dropdown.js.map +0 -1
- package/dist/components/dda-event-card.d.ts +0 -11
- package/dist/components/dda-event-card.js +0 -99
- package/dist/components/dda-event-card.js.map +0 -1
- package/dist/components/dda-footer.js.map +0 -1
- package/dist/components/dda-header-menu.d.ts +0 -11
- package/dist/components/dda-header-menu.js +0 -8
- package/dist/components/dda-header-menu.js.map +0 -1
- package/dist/components/dda-header.js.map +0 -1
- package/dist/components/dda-home-banner.js.map +0 -1
- package/dist/components/dda-home-carousel.d.ts +0 -11
- package/dist/components/dda-home-carousel.js +0 -137
- package/dist/components/dda-home-carousel.js.map +0 -1
- package/dist/components/dda-horizontal-stepper.js.map +0 -1
- package/dist/components/dda-image-card.js +0 -83
- package/dist/components/dda-image-card.js.map +0 -1
- package/dist/components/dda-information-card.d.ts +0 -11
- package/dist/components/dda-information-card.js +0 -77
- package/dist/components/dda-information-card.js.map +0 -1
- package/dist/components/dda-input.js.map +0 -1
- package/dist/components/dda-link-button.js.map +0 -1
- package/dist/components/dda-number-field.js.map +0 -1
- package/dist/components/dda-pagination.js.map +0 -1
- package/dist/components/dda-phonefield.js.map +0 -1
- package/dist/components/dda-pricing-card.d.ts +0 -11
- package/dist/components/dda-pricing-card.js +0 -81
- package/dist/components/dda-pricing-card.js.map +0 -1
- package/dist/components/dda-progressbar.js.map +0 -1
- package/dist/components/dda-radiobutton.js.map +0 -1
- package/dist/components/dda-range-slider.js.map +0 -1
- package/dist/components/dda-scroll-icon.d.ts +0 -11
- package/dist/components/dda-scroll-icon.js +0 -8
- package/dist/components/dda-scroll-icon.js.map +0 -1
- package/dist/components/dda-search-input.js.map +0 -1
- package/dist/components/dda-segmented-tabs.js.map +0 -1
- package/dist/components/dda-select.js.map +0 -1
- package/dist/components/dda-slider.js +0 -279
- package/dist/components/dda-slider.js.map +0 -1
- package/dist/components/dda-split-button.d.ts +0 -11
- package/dist/components/dda-split-button.js +0 -136
- package/dist/components/dda-split-button.js.map +0 -1
- package/dist/components/dda-sticky-footer.js.map +0 -1
- package/dist/components/dda-tabs.js.map +0 -1
- package/dist/components/dda-team-member-card.d.ts +0 -11
- package/dist/components/dda-team-member-card.js +0 -51
- package/dist/components/dda-team-member-card.js.map +0 -1
- package/dist/components/dda-teamsection-card.d.ts +0 -11
- package/dist/components/dda-teamsection-card.js +0 -119
- package/dist/components/dda-teamsection-card.js.map +0 -1
- package/dist/components/dda-textarea.js.map +0 -1
- package/dist/components/dda-toggle.js.map +0 -1
- package/dist/components/dda-tooltip.js.map +0 -1
- package/dist/components/dda-vertical-stepper.js.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/components/p-0bbf1225.js +0 -155
- package/dist/components/p-0bbf1225.js.map +0 -1
- package/dist/components/p-42b74b87.js +0 -102
- package/dist/components/p-42b74b87.js.map +0 -1
- package/dist/components/p-5e2018f2.js +0 -94
- package/dist/components/p-5e2018f2.js.map +0 -1
- package/dist/components/p-72204b95.js +0 -53
- package/dist/components/p-72204b95.js.map +0 -1
- package/dist/components/p-857c1ac9.js +0 -141
- package/dist/components/p-857c1ac9.js.map +0 -1
- package/dist/components/p-a29298cf.js +0 -51
- package/dist/components/p-a29298cf.js.map +0 -1
- package/dist/components/p-a7f02338.js +0 -90
- package/dist/components/p-a7f02338.js.map +0 -1
- package/dist/components/p-b7f0ebbb.js +0 -49
- package/dist/components/p-b7f0ebbb.js.map +0 -1
- package/dist/components/p-ba13ee0a.js +0 -41
- package/dist/components/p-ba13ee0a.js.map +0 -1
- package/dist/components/p-c30d0ada.js +0 -70
- package/dist/components/p-c30d0ada.js.map +0 -1
- package/dist/components/p-f6588843.js +0 -1535
- package/dist/components/p-f6588843.js.map +0 -1
- package/dist/dda/dda.css +0 -4
- package/dist/dda/dda.esm.js.map +0 -1
- package/dist/dda/index.esm.js.map +0 -1
- package/dist/dda/p-0905eb60.entry.js +0 -2
- package/dist/dda/p-0905eb60.entry.js.map +0 -1
- package/dist/dda/p-0bd5576f.entry.js +0 -2
- package/dist/dda/p-0bd5576f.entry.js.map +0 -1
- package/dist/dda/p-0ebdb27f.entry.js +0 -2
- package/dist/dda/p-0ebdb27f.entry.js.map +0 -1
- package/dist/dda/p-0fa24558.entry.js +0 -2
- package/dist/dda/p-0fa24558.entry.js.map +0 -1
- package/dist/dda/p-14d622c2.entry.js +0 -2
- package/dist/dda/p-14d622c2.entry.js.map +0 -1
- package/dist/dda/p-1b339a0a.js +0 -3
- package/dist/dda/p-1b339a0a.js.map +0 -1
- package/dist/dda/p-1fa27da3.entry.js +0 -2
- package/dist/dda/p-1fa27da3.entry.js.map +0 -1
- package/dist/dda/p-207203ae.entry.js +0 -2
- package/dist/dda/p-207203ae.entry.js.map +0 -1
- package/dist/dda/p-24489bc6.entry.js +0 -2
- package/dist/dda/p-24489bc6.entry.js.map +0 -1
- package/dist/dda/p-24da4601.entry.js +0 -2
- package/dist/dda/p-24da4601.entry.js.map +0 -1
- package/dist/dda/p-26bb8828.entry.js +0 -2
- package/dist/dda/p-26bb8828.entry.js.map +0 -1
- package/dist/dda/p-2821386c.entry.js +0 -2
- package/dist/dda/p-2821386c.entry.js.map +0 -1
- package/dist/dda/p-2d505693.entry.js +0 -2
- package/dist/dda/p-2d505693.entry.js.map +0 -1
- package/dist/dda/p-37dbab49.entry.js +0 -2
- package/dist/dda/p-37dbab49.entry.js.map +0 -1
- package/dist/dda/p-3fef96a8.entry.js +0 -2
- package/dist/dda/p-3fef96a8.entry.js.map +0 -1
- package/dist/dda/p-42c30672.entry.js +0 -2
- package/dist/dda/p-42c30672.entry.js.map +0 -1
- package/dist/dda/p-462f0128.entry.js +0 -2
- package/dist/dda/p-462f0128.entry.js.map +0 -1
- package/dist/dda/p-54c8ab80.entry.js +0 -2
- package/dist/dda/p-54c8ab80.entry.js.map +0 -1
- package/dist/dda/p-5695b505.entry.js +0 -2
- package/dist/dda/p-5695b505.entry.js.map +0 -1
- package/dist/dda/p-5bf0d4fe.entry.js +0 -2
- package/dist/dda/p-5bf0d4fe.entry.js.map +0 -1
- package/dist/dda/p-5d47716e.entry.js +0 -2
- package/dist/dda/p-5d47716e.entry.js.map +0 -1
- package/dist/dda/p-5f80ef51.entry.js +0 -2
- package/dist/dda/p-5f80ef51.entry.js.map +0 -1
- package/dist/dda/p-60d855a6.entry.js +0 -2
- package/dist/dda/p-60d855a6.entry.js.map +0 -1
- package/dist/dda/p-6151a1f2.entry.js +0 -2
- package/dist/dda/p-6151a1f2.entry.js.map +0 -1
- package/dist/dda/p-6842a5e5.entry.js +0 -2
- package/dist/dda/p-6842a5e5.entry.js.map +0 -1
- package/dist/dda/p-68c80bba.entry.js +0 -2
- package/dist/dda/p-68c80bba.entry.js.map +0 -1
- package/dist/dda/p-6aa213c1.entry.js +0 -2
- package/dist/dda/p-6aa213c1.entry.js.map +0 -1
- package/dist/dda/p-6d955874.entry.js +0 -2
- package/dist/dda/p-6d955874.entry.js.map +0 -1
- package/dist/dda/p-6fd79768.entry.js +0 -2
- package/dist/dda/p-6fd79768.entry.js.map +0 -1
- package/dist/dda/p-764d2be3.entry.js +0 -2
- package/dist/dda/p-764d2be3.entry.js.map +0 -1
- package/dist/dda/p-7caaf11f.entry.js +0 -2
- package/dist/dda/p-7caaf11f.entry.js.map +0 -1
- package/dist/dda/p-8c7d0c73.entry.js +0 -2
- package/dist/dda/p-8c7d0c73.entry.js.map +0 -1
- package/dist/dda/p-9636f669.entry.js +0 -2
- package/dist/dda/p-9636f669.entry.js.map +0 -1
- package/dist/dda/p-98021655.entry.js +0 -2
- package/dist/dda/p-98021655.entry.js.map +0 -1
- package/dist/dda/p-a3f284bc.entry.js +0 -2
- package/dist/dda/p-a3f284bc.entry.js.map +0 -1
- package/dist/dda/p-aefe49c4.entry.js +0 -2
- package/dist/dda/p-aefe49c4.entry.js.map +0 -1
- package/dist/dda/p-b48e061c.entry.js +0 -2
- package/dist/dda/p-b48e061c.entry.js.map +0 -1
- package/dist/dda/p-ba90f4be.entry.js +0 -2
- package/dist/dda/p-ba90f4be.entry.js.map +0 -1
- package/dist/dda/p-bd0d09ff.entry.js +0 -2
- package/dist/dda/p-bd0d09ff.entry.js.map +0 -1
- package/dist/dda/p-c766ae47.entry.js +0 -2
- package/dist/dda/p-c766ae47.entry.js.map +0 -1
- package/dist/dda/p-d7434fd9.entry.js +0 -2
- package/dist/dda/p-d7434fd9.entry.js.map +0 -1
- package/dist/dda/p-d93f2102.entry.js +0 -2
- package/dist/dda/p-d93f2102.entry.js.map +0 -1
- package/dist/dda/p-dca57f55.entry.js +0 -2
- package/dist/dda/p-dca57f55.entry.js.map +0 -1
- package/dist/dda/p-e1255160.js +0 -2
- package/dist/dda/p-e1255160.js.map +0 -1
- package/dist/dda/p-e808d48a.entry.js +0 -2
- package/dist/dda/p-e808d48a.entry.js.map +0 -1
- package/dist/dda/p-eb472057.entry.js +0 -2
- package/dist/dda/p-eb472057.entry.js.map +0 -1
- package/dist/esm/app-globals-0f993ce5.js.map +0 -1
- package/dist/esm/dda-accordion.entry.js.map +0 -1
- package/dist/esm/dda-alert.entry.js.map +0 -1
- package/dist/esm/dda-attach-file.entry.js.map +0 -1
- package/dist/esm/dda-avatar.entry.js.map +0 -1
- package/dist/esm/dda-banner-card.entry.js +0 -24
- package/dist/esm/dda-banner-card.entry.js.map +0 -1
- package/dist/esm/dda-breadcrumb.entry.js.map +0 -1
- package/dist/esm/dda-button.entry.js.map +0 -1
- package/dist/esm/dda-centered-image-card.entry.js +0 -36
- package/dist/esm/dda-centered-image-card.entry.js.map +0 -1
- package/dist/esm/dda-checkbox.entry.js.map +0 -1
- package/dist/esm/dda-chip.entry.js.map +0 -1
- package/dist/esm/dda-credit-card.entry.js.map +0 -1
- package/dist/esm/dda-creditcard-field.entry.js.map +0 -1
- package/dist/esm/dda-custom-card.entry.js +0 -33
- package/dist/esm/dda-custom-card.entry.js.map +0 -1
- package/dist/esm/dda-dropdown.entry.js.map +0 -1
- package/dist/esm/dda-event-card.entry.js +0 -49
- package/dist/esm/dda-event-card.entry.js.map +0 -1
- package/dist/esm/dda-footer.entry.js.map +0 -1
- package/dist/esm/dda-header-menu_3.entry.js +0 -265
- package/dist/esm/dda-header-menu_3.entry.js.map +0 -1
- package/dist/esm/dda-header.entry.js.map +0 -1
- package/dist/esm/dda-home-banner.entry.js.map +0 -1
- package/dist/esm/dda-home-carousel.entry.js +0 -106
- package/dist/esm/dda-home-carousel.entry.js.map +0 -1
- package/dist/esm/dda-horizontal-stepper.entry.js.map +0 -1
- package/dist/esm/dda-image-card.entry.js +0 -30
- package/dist/esm/dda-image-card.entry.js.map +0 -1
- package/dist/esm/dda-information-card.entry.js +0 -28
- package/dist/esm/dda-information-card.entry.js.map +0 -1
- package/dist/esm/dda-link-button.entry.js +0 -67
- package/dist/esm/dda-link-button.entry.js.map +0 -1
- package/dist/esm/dda-number-field.entry.js.map +0 -1
- package/dist/esm/dda-pagination.entry.js.map +0 -1
- package/dist/esm/dda-phonefield.entry.js.map +0 -1
- package/dist/esm/dda-pricing-card.entry.js +0 -34
- package/dist/esm/dda-pricing-card.entry.js.map +0 -1
- package/dist/esm/dda-progressbar.entry.js.map +0 -1
- package/dist/esm/dda-range-slider.entry.js.map +0 -1
- package/dist/esm/dda-scroll-icon.entry.js +0 -28
- package/dist/esm/dda-scroll-icon.entry.js.map +0 -1
- package/dist/esm/dda-search-input.entry.js.map +0 -1
- package/dist/esm/dda-segmented-tabs.entry.js.map +0 -1
- package/dist/esm/dda-select.entry.js.map +0 -1
- package/dist/esm/dda-slider.entry.js +0 -252
- package/dist/esm/dda-slider.entry.js.map +0 -1
- package/dist/esm/dda-split-button.entry.js +0 -100
- package/dist/esm/dda-split-button.entry.js.map +0 -1
- package/dist/esm/dda-sticky-footer.entry.js.map +0 -1
- package/dist/esm/dda-tabs.entry.js.map +0 -1
- package/dist/esm/dda-team-member-card.entry.js +0 -25
- package/dist/esm/dda-team-member-card.entry.js.map +0 -1
- package/dist/esm/dda-teamsection-card.entry.js +0 -86
- package/dist/esm/dda-teamsection-card.entry.js.map +0 -1
- package/dist/esm/dda-textarea.entry.js.map +0 -1
- package/dist/esm/dda-toggle.entry.js.map +0 -1
- package/dist/esm/dda-tooltip.entry.js.map +0 -1
- package/dist/esm/dda-vertical-stepper.entry.js.map +0 -1
- package/dist/esm/dda.js.map +0 -1
- package/dist/esm/index-52b38a93.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/types/components/cards/dda-centered-image-card/dda-centered-image-card.d.ts +0 -22
- package/dist/types/components/cards/dda-centered-image-card/dda-centered-image-card.stories.d.ts +0 -63
- package/dist/types/components/cards/dda-image-card/dda-image-card.d.ts +0 -33
- package/dist/types/components/cards/dda-image-card/dda-image-card.stories.d.ts +0 -132
- package/dist/types/components/cards/dda-information-card/dda-information-card.d.ts +0 -29
- package/dist/types/components/cards/dda-information-card/dda-information-card.stories.d.ts +0 -107
- package/dist/types/components/cards/dda-team-member-card/dda-team-member-card.d.ts +0 -10
- package/dist/types/components/cards/dda-team-member-card/dda-team-member-card.stories.d.ts +0 -51
- package/dist/types/components/dda-cards/dda-banner-card/dda-banner-card.d.ts +0 -14
- package/dist/types/components/dda-cards/dda-banner-card/dda-banner-card.stories.d.ts +0 -63
- package/dist/types/components/dda-cards/dda-custom-card/dda-custom-card.d.ts +0 -16
- package/dist/types/components/dda-cards/dda-custom-card/dda-custom-card.stories.d.ts +0 -37
- package/dist/types/components/dda-cards/dda-image-cards/dda-event-card/dda-event-card.d.ts +0 -25
- package/dist/types/components/dda-cards/dda-image-cards/dda-event-card/dda-event-card.stories.d.ts +0 -54
- package/dist/types/components/dda-cards/dda-image-cards/dda-pricing-card/dda-pricing-card.d.ts +0 -22
- package/dist/types/components/dda-cards/dda-image-cards/dda-pricing-card/dda-pricing-card.stories.d.ts +0 -63
- package/dist/types/components/dda-cards/dda-team-section-cards/dda-teamsection-card-variant-one/dda-teamsection-card-variant-one.d.ts +0 -26
- package/dist/types/components/dda-cards/dda-team-section-cards/dda-teamsection-card-variant-one/dda-teamsection-card-variant-one.stories.d.ts +0 -64
- package/dist/types/components/dda-header-menu/dda-header-menu.d.ts +0 -27
- package/dist/types/components/dda-header-menu/dda-header-menu.stories.d.ts +0 -19
- package/dist/types/components/dda-home-carousel/dda-home-carousel.d.ts +0 -17
- package/dist/types/components/dda-home-carousel/dda-home-carousel.stories.d.ts +0 -35
- package/dist/types/components/dda-scroll-icon/dda-scroll-icon.d.ts +0 -7
- package/dist/types/components/dda-scroll-icon/dda-scroll-icon.stories.d.ts +0 -39
- package/dist/types/components/dda-slider/dda-slider.d.ts +0 -30
- package/dist/types/components/dda-slider/dda-slider.stories.d.ts +0 -30
- package/dist/types/components/dda-split-button/dda-split-button.d.ts +0 -36
- package/dist/types/components/dda-split-button/dda-split-button.stories.d.ts +0 -79
- package/loader/package.json +0 -11
- package/www/build/dda.css +0 -4
- package/www/build/dda.esm.js +0 -2
- package/www/build/dda.esm.js.map +0 -1
- package/www/build/dda.js +0 -33
- package/www/build/index.esm.js +0 -2
- package/www/build/index.esm.js.map +0 -1
- package/www/build/p-0905eb60.entry.js +0 -2
- package/www/build/p-0905eb60.entry.js.map +0 -1
- package/www/build/p-0bd5576f.entry.js +0 -2
- package/www/build/p-0bd5576f.entry.js.map +0 -1
- package/www/build/p-0ebdb27f.entry.js +0 -2
- package/www/build/p-0ebdb27f.entry.js.map +0 -1
- package/www/build/p-0fa24558.entry.js +0 -2
- package/www/build/p-0fa24558.entry.js.map +0 -1
- package/www/build/p-14d622c2.entry.js +0 -2
- package/www/build/p-14d622c2.entry.js.map +0 -1
- package/www/build/p-1b339a0a.js +0 -3
- package/www/build/p-1b339a0a.js.map +0 -1
- package/www/build/p-1fa27da3.entry.js +0 -2
- package/www/build/p-1fa27da3.entry.js.map +0 -1
- package/www/build/p-207203ae.entry.js +0 -2
- package/www/build/p-207203ae.entry.js.map +0 -1
- package/www/build/p-24489bc6.entry.js +0 -2
- package/www/build/p-24489bc6.entry.js.map +0 -1
- package/www/build/p-24da4601.entry.js +0 -2
- package/www/build/p-24da4601.entry.js.map +0 -1
- package/www/build/p-26bb8828.entry.js +0 -2
- package/www/build/p-26bb8828.entry.js.map +0 -1
- package/www/build/p-2821386c.entry.js +0 -2
- package/www/build/p-2821386c.entry.js.map +0 -1
- package/www/build/p-2d505693.entry.js +0 -2
- package/www/build/p-2d505693.entry.js.map +0 -1
- package/www/build/p-37dbab49.entry.js +0 -2
- package/www/build/p-37dbab49.entry.js.map +0 -1
- package/www/build/p-3fef96a8.entry.js +0 -2
- package/www/build/p-3fef96a8.entry.js.map +0 -1
- package/www/build/p-42c30672.entry.js +0 -2
- package/www/build/p-42c30672.entry.js.map +0 -1
- package/www/build/p-462f0128.entry.js +0 -2
- package/www/build/p-462f0128.entry.js.map +0 -1
- package/www/build/p-54c8ab80.entry.js +0 -2
- package/www/build/p-54c8ab80.entry.js.map +0 -1
- package/www/build/p-5695b505.entry.js +0 -2
- package/www/build/p-5695b505.entry.js.map +0 -1
- package/www/build/p-5bf0d4fe.entry.js +0 -2
- package/www/build/p-5bf0d4fe.entry.js.map +0 -1
- package/www/build/p-5d47716e.entry.js +0 -2
- package/www/build/p-5d47716e.entry.js.map +0 -1
- package/www/build/p-5f80ef51.entry.js +0 -2
- package/www/build/p-5f80ef51.entry.js.map +0 -1
- package/www/build/p-60d855a6.entry.js +0 -2
- package/www/build/p-60d855a6.entry.js.map +0 -1
- package/www/build/p-6151a1f2.entry.js +0 -2
- package/www/build/p-6151a1f2.entry.js.map +0 -1
- package/www/build/p-6842a5e5.entry.js +0 -2
- package/www/build/p-6842a5e5.entry.js.map +0 -1
- package/www/build/p-68c80bba.entry.js +0 -2
- package/www/build/p-68c80bba.entry.js.map +0 -1
- package/www/build/p-6aa213c1.entry.js +0 -2
- package/www/build/p-6aa213c1.entry.js.map +0 -1
- package/www/build/p-6d955874.entry.js +0 -2
- package/www/build/p-6d955874.entry.js.map +0 -1
- package/www/build/p-6fd79768.entry.js +0 -2
- package/www/build/p-6fd79768.entry.js.map +0 -1
- package/www/build/p-764d2be3.entry.js +0 -2
- package/www/build/p-764d2be3.entry.js.map +0 -1
- package/www/build/p-7caaf11f.entry.js +0 -2
- package/www/build/p-7caaf11f.entry.js.map +0 -1
- package/www/build/p-898ec4a2.css +0 -4
- package/www/build/p-8c7d0c73.entry.js +0 -2
- package/www/build/p-8c7d0c73.entry.js.map +0 -1
- package/www/build/p-9636f669.entry.js +0 -2
- package/www/build/p-9636f669.entry.js.map +0 -1
- package/www/build/p-98021655.entry.js +0 -2
- package/www/build/p-98021655.entry.js.map +0 -1
- package/www/build/p-a3f284bc.entry.js +0 -2
- package/www/build/p-a3f284bc.entry.js.map +0 -1
- package/www/build/p-aefe49c4.entry.js +0 -2
- package/www/build/p-aefe49c4.entry.js.map +0 -1
- package/www/build/p-b48e061c.entry.js +0 -2
- package/www/build/p-b48e061c.entry.js.map +0 -1
- package/www/build/p-ba90f4be.entry.js +0 -2
- package/www/build/p-ba90f4be.entry.js.map +0 -1
- package/www/build/p-bd0d09ff.entry.js +0 -2
- package/www/build/p-bd0d09ff.entry.js.map +0 -1
- package/www/build/p-c766ae47.entry.js +0 -2
- package/www/build/p-c766ae47.entry.js.map +0 -1
- package/www/build/p-d7434fd9.entry.js +0 -2
- package/www/build/p-d7434fd9.entry.js.map +0 -1
- package/www/build/p-d93f2102.entry.js +0 -2
- package/www/build/p-d93f2102.entry.js.map +0 -1
- package/www/build/p-dca57f55.entry.js +0 -2
- package/www/build/p-dca57f55.entry.js.map +0 -1
- package/www/build/p-e1255160.js +0 -2
- package/www/build/p-e1255160.js.map +0 -1
- package/www/build/p-e808d48a.entry.js +0 -2
- package/www/build/p-e808d48a.entry.js.map +0 -1
- package/www/build/p-eb472057.entry.js +0 -2
- package/www/build/p-eb472057.entry.js.map +0 -1
|
@@ -1,145 +1,21 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
export class DdaHomeBanner {
|
|
3
3
|
constructor() {
|
|
4
|
-
/** Props */
|
|
5
|
-
this.autoplay = true;
|
|
6
|
-
this.interval = 3000;
|
|
7
|
-
/** States */
|
|
8
4
|
this.currentSlide = 0;
|
|
9
5
|
this.slides = [];
|
|
10
|
-
this.autoPlayActive = true;
|
|
11
|
-
this.pausedProgressOffset = 0;
|
|
12
|
-
this.animationFrameId = null;
|
|
13
6
|
}
|
|
14
|
-
// componentDidLoad() {
|
|
15
|
-
// this.updateSlides();
|
|
16
|
-
// const slot = this.el.querySelector('slot');
|
|
17
|
-
// slot?.addEventListener('slotchange', () => this.updateSlides());
|
|
18
|
-
// this.autoPlayActive = this.autoplay && this.slides.length > 1;
|
|
19
|
-
// this.playVideoInCurrentSlide();
|
|
20
|
-
// if (this.autoPlayActive) {
|
|
21
|
-
// this.startAutoplay();
|
|
22
|
-
// this.animateProgress(); // Initial animation
|
|
23
|
-
// }
|
|
24
|
-
// }
|
|
25
7
|
componentDidLoad() {
|
|
26
8
|
this.updateSlides();
|
|
9
|
+
// Listen for slot changes
|
|
27
10
|
const slot = this.el.querySelector('slot');
|
|
28
11
|
slot === null || slot === void 0 ? void 0 : slot.addEventListener('slotchange', () => this.updateSlides());
|
|
29
|
-
this.autoPlayActive = this.autoplay && this.slides.length > 1;
|
|
30
|
-
this.playVideoInCurrentSlide();
|
|
31
|
-
// ✅ Wait for the DOM to fully render slides before animating
|
|
32
|
-
if (this.autoPlayActive) {
|
|
33
|
-
const tryStart = () => {
|
|
34
|
-
const circle = this.el.querySelector('.circle-loader');
|
|
35
|
-
if (circle) {
|
|
36
|
-
this.startAutoplay();
|
|
37
|
-
this.animateProgress();
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
requestAnimationFrame(tryStart);
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
tryStart();
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
disconnectedCallback() {
|
|
47
|
-
this.stopAutoplay();
|
|
48
|
-
if (this.animationFrameId) {
|
|
49
|
-
cancelAnimationFrame(this.animationFrameId);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
componentDidRender() {
|
|
53
|
-
this.slides.forEach((slide, index) => {
|
|
54
|
-
slide.classList.toggle('active', index === this.currentSlide);
|
|
55
|
-
});
|
|
56
12
|
}
|
|
57
13
|
updateSlides() {
|
|
58
|
-
this.slides = Array.from(this.el.querySelectorAll('
|
|
14
|
+
this.slides = Array.from(this.el.querySelectorAll('slide'));
|
|
59
15
|
if (this.slides.length > 0) {
|
|
60
|
-
this.currentSlide = 0;
|
|
61
|
-
}
|
|
62
|
-
// Disable autoplay if there's only one slide
|
|
63
|
-
if (this.slides.length <= 1) {
|
|
64
|
-
this.autoPlayActive = false;
|
|
65
|
-
this.stopAutoplay();
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
startAutoplay() {
|
|
69
|
-
this.stopAutoplay();
|
|
70
|
-
if (this.autoPlayActive && this.slides.length > 1) {
|
|
71
|
-
const slide = this.slides[this.currentSlide];
|
|
72
|
-
const video = slide === null || slide === void 0 ? void 0 : slide.querySelector('video');
|
|
73
|
-
const setupTimer = (durationMs) => {
|
|
74
|
-
this.autoPlayInterval = setInterval(() => {
|
|
75
|
-
this.nextSlide();
|
|
76
|
-
}, durationMs);
|
|
77
|
-
this.animateProgress(1); // animate full ring
|
|
78
|
-
};
|
|
79
|
-
if (video) {
|
|
80
|
-
if (video.readyState >= 1) {
|
|
81
|
-
setupTimer(video.duration * 1000);
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
video.addEventListener('loadedmetadata', () => {
|
|
85
|
-
setupTimer(video.duration * 1000);
|
|
86
|
-
}, { once: true });
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
else {
|
|
90
|
-
setupTimer(this.interval);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
stopAutoplay() {
|
|
95
|
-
if (this.autoPlayInterval) {
|
|
96
|
-
clearInterval(this.autoPlayInterval);
|
|
97
|
-
this.autoPlayInterval = null;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
toggleAutoplay() {
|
|
101
|
-
var _a;
|
|
102
|
-
const circle = this.el.querySelector('.circle-loader');
|
|
103
|
-
const video = (_a = this.slides[this.currentSlide]) === null || _a === void 0 ? void 0 : _a.querySelector('video');
|
|
104
|
-
this.autoPlayActive = !this.autoPlayActive;
|
|
105
|
-
if (this.autoPlayActive) {
|
|
106
|
-
this.startAutoplay();
|
|
107
|
-
const offset = this.pausedProgressOffset;
|
|
108
|
-
const totalLength = (circle === null || circle === void 0 ? void 0 : circle.getTotalLength()) || 1;
|
|
109
|
-
const startRatio = offset / totalLength;
|
|
110
|
-
if (video)
|
|
111
|
-
video.play();
|
|
112
|
-
this.animateProgress(startRatio);
|
|
113
|
-
}
|
|
114
|
-
else {
|
|
115
|
-
this.stopAutoplay();
|
|
116
|
-
if (this.animationFrameId) {
|
|
117
|
-
cancelAnimationFrame(this.animationFrameId);
|
|
118
|
-
this.animationFrameId = null;
|
|
119
|
-
}
|
|
120
|
-
if (circle) {
|
|
121
|
-
const style = window.getComputedStyle(circle);
|
|
122
|
-
const strokeDashoffset = parseFloat(style.strokeDashoffset || '0');
|
|
123
|
-
this.pausedProgressOffset = strokeDashoffset;
|
|
124
|
-
}
|
|
125
|
-
if (video)
|
|
126
|
-
video.pause();
|
|
16
|
+
this.currentSlide = 0; // Reset slide index if slides are updated
|
|
127
17
|
}
|
|
128
18
|
}
|
|
129
|
-
playVideoInCurrentSlide() {
|
|
130
|
-
this.slides.forEach((slide, index) => {
|
|
131
|
-
const video = slide.querySelector('video');
|
|
132
|
-
if (video) {
|
|
133
|
-
if (index === this.currentSlide) {
|
|
134
|
-
video.currentTime = 0;
|
|
135
|
-
video.play();
|
|
136
|
-
}
|
|
137
|
-
else {
|
|
138
|
-
video.pause();
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
19
|
nextSlide() {
|
|
144
20
|
this.currentSlide = (this.currentSlide + 1) % this.slides.length;
|
|
145
21
|
}
|
|
@@ -149,119 +25,26 @@ export class DdaHomeBanner {
|
|
|
149
25
|
setSlide(index) {
|
|
150
26
|
this.currentSlide = index;
|
|
151
27
|
}
|
|
152
|
-
onSlideChanged() {
|
|
153
|
-
this.animateProgress();
|
|
154
|
-
this.playVideoInCurrentSlide();
|
|
155
|
-
this.startAutoplay(); // restart with correct duration
|
|
156
|
-
}
|
|
157
|
-
animateProgress(startRatio = 1) {
|
|
158
|
-
const circle = this.el.querySelector('.circle-loader');
|
|
159
|
-
if (!circle)
|
|
160
|
-
return;
|
|
161
|
-
const length = circle.getTotalLength();
|
|
162
|
-
const slide = this.slides[this.currentSlide];
|
|
163
|
-
const video = slide === null || slide === void 0 ? void 0 : slide.querySelector('video');
|
|
164
|
-
const duration = (video && video.duration ? video.duration * 1000 : this.interval) * startRatio;
|
|
165
|
-
const start = performance.now();
|
|
166
|
-
this.pausedProgressOffset = length * startRatio;
|
|
167
|
-
circle.style.strokeDasharray = `${length}`;
|
|
168
|
-
circle.style.strokeDashoffset = `${this.pausedProgressOffset}`;
|
|
169
|
-
circle.style.transition = 'none';
|
|
170
|
-
const animate = (now) => {
|
|
171
|
-
const elapsed = now - start;
|
|
172
|
-
const progress = Math.min(elapsed / duration, 1);
|
|
173
|
-
const newOffset = length * (1 - progress) * startRatio;
|
|
174
|
-
circle.style.strokeDashoffset = `${newOffset}`;
|
|
175
|
-
if (progress < 1) {
|
|
176
|
-
this.animationFrameId = requestAnimationFrame(animate);
|
|
177
|
-
}
|
|
178
|
-
};
|
|
179
|
-
if (this.animationFrameId) {
|
|
180
|
-
cancelAnimationFrame(this.animationFrameId);
|
|
181
|
-
}
|
|
182
|
-
this.animationFrameId = requestAnimationFrame(animate);
|
|
183
|
-
}
|
|
184
|
-
resetProgress() {
|
|
185
|
-
const circle = this.el.querySelector('.circle-loader');
|
|
186
|
-
if (circle) {
|
|
187
|
-
const length = circle.getTotalLength();
|
|
188
|
-
circle.style.transition = 'none';
|
|
189
|
-
circle.style.strokeDashoffset = `${length}`;
|
|
190
|
-
this.pausedProgressOffset = length;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
28
|
render() {
|
|
194
|
-
|
|
195
|
-
|
|
29
|
+
return (h(Host, { key: '5bcab057203a18f9c5482a1fd8fdb9542a33071d' }, h("div", { key: 'c82b73421f9986d51abdb9372c8d2d36543bf700', class: "dda-slider-container" }, h("div", { key: '87ab0d38cdd6e5f6db1dfccc6045466aa83110b0', class: "dda-slides", style: { innerWidth: this.slides.length * 100 + 'vw', left: this.currentSlide * -100 + '%' } }, h("slot", { key: 'dcc24fdc28058374c6300aabb68b23722d86f3e4' })), h("div", { key: '2eb6e6b626bd2756ca37238dc808978f4103aa5b', class: 'slider-nav' }, h("button", { key: 'f05d141e12f4874f14fedf353415f6631dc7971b', class: "prev", onClick: () => this.prevSlide() }, h("i", { key: '429b7cc641f9ac836d967ce2601e4fe91f978a3d', class: "material-icons" }, "chevron_left")), h("ul", { key: '55e2e2578f66cee575b10bf045aadc912fa7f621' }, this.slides.map((_, index) => {
|
|
30
|
+
return h("div", { class: this.currentSlide == index ? 'dots active' : 'dots', onClick: () => this.setSlide(index) });
|
|
31
|
+
})), h("button", { key: 'c68a48a6b16ffd72ea4148a07e0f513bb4a93d94', class: "next", onClick: () => this.nextSlide() }, h("i", { key: 'cca2fe5cad36082c4462a020ff8f332384197bc9', class: "material-icons" }, "chevron_right"))))));
|
|
196
32
|
}
|
|
197
33
|
static get is() { return "dda-home-banner"; }
|
|
198
34
|
static get originalStyleUrls() {
|
|
199
35
|
return {
|
|
200
|
-
"$": ["home-banner.css"]
|
|
36
|
+
"$": ["home-banner.css", "../../global/global.css"]
|
|
201
37
|
};
|
|
202
38
|
}
|
|
203
39
|
static get styleUrls() {
|
|
204
40
|
return {
|
|
205
|
-
"$": ["home-banner.css"]
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
|
-
static get properties() {
|
|
209
|
-
return {
|
|
210
|
-
"autoplay": {
|
|
211
|
-
"type": "boolean",
|
|
212
|
-
"mutable": false,
|
|
213
|
-
"complexType": {
|
|
214
|
-
"original": "boolean",
|
|
215
|
-
"resolved": "boolean",
|
|
216
|
-
"references": {}
|
|
217
|
-
},
|
|
218
|
-
"required": false,
|
|
219
|
-
"optional": false,
|
|
220
|
-
"docs": {
|
|
221
|
-
"tags": [],
|
|
222
|
-
"text": "Props"
|
|
223
|
-
},
|
|
224
|
-
"getter": false,
|
|
225
|
-
"setter": false,
|
|
226
|
-
"attribute": "autoplay",
|
|
227
|
-
"reflect": false,
|
|
228
|
-
"defaultValue": "true"
|
|
229
|
-
},
|
|
230
|
-
"interval": {
|
|
231
|
-
"type": "number",
|
|
232
|
-
"mutable": false,
|
|
233
|
-
"complexType": {
|
|
234
|
-
"original": "number",
|
|
235
|
-
"resolved": "number",
|
|
236
|
-
"references": {}
|
|
237
|
-
},
|
|
238
|
-
"required": false,
|
|
239
|
-
"optional": false,
|
|
240
|
-
"docs": {
|
|
241
|
-
"tags": [],
|
|
242
|
-
"text": ""
|
|
243
|
-
},
|
|
244
|
-
"getter": false,
|
|
245
|
-
"setter": false,
|
|
246
|
-
"attribute": "interval",
|
|
247
|
-
"reflect": false,
|
|
248
|
-
"defaultValue": "3000"
|
|
249
|
-
}
|
|
41
|
+
"$": ["home-banner.css", "../../global/global.css"]
|
|
250
42
|
};
|
|
251
43
|
}
|
|
252
44
|
static get states() {
|
|
253
45
|
return {
|
|
254
|
-
"currentSlide": {}
|
|
255
|
-
"slides": {},
|
|
256
|
-
"autoPlayActive": {}
|
|
46
|
+
"currentSlide": {}
|
|
257
47
|
};
|
|
258
48
|
}
|
|
259
49
|
static get elementRef() { return "el"; }
|
|
260
|
-
static get watchers() {
|
|
261
|
-
return [{
|
|
262
|
-
"propName": "currentSlide",
|
|
263
|
-
"methodName": "onSlideChanged"
|
|
264
|
-
}];
|
|
265
|
-
}
|
|
266
50
|
}
|
|
267
|
-
//# sourceMappingURL=dda-home-banner.js.map
|
|
@@ -2,41 +2,28 @@ export default {
|
|
|
2
2
|
title: 'Components/Home Banner',
|
|
3
3
|
component: 'dda-home-banner',
|
|
4
4
|
argTypes: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
defaultValue: true,
|
|
9
|
-
},
|
|
10
|
-
interval: {
|
|
11
|
-
control: 'number',
|
|
12
|
-
description: 'Set the autoplay interval time in milliseconds.',
|
|
13
|
-
defaultValue: 3000,
|
|
14
|
-
},
|
|
5
|
+
images: { control: 'array' },
|
|
6
|
+
autoplay: { control: 'boolean' },
|
|
7
|
+
interval: { control: 'number' },
|
|
15
8
|
},
|
|
16
9
|
parameters: {
|
|
17
10
|
docs: {
|
|
18
11
|
description: {
|
|
19
|
-
component: `
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
### Props
|
|
36
|
-
|
|
37
|
-
- \`autoplay\` (boolean): Enables or disables automatic slide transitions.
|
|
38
|
-
- \`interval\` (number): Duration in milliseconds between slide transitions when autoplay is enabled.
|
|
39
|
-
`,
|
|
12
|
+
component: `
|
|
13
|
+
To use the \`dda-home-banner\` component, pass the following props:
|
|
14
|
+
|
|
15
|
+
\`\`\`html
|
|
16
|
+
<dda-home-banner
|
|
17
|
+
images='[
|
|
18
|
+
{ "src": "assets/img/home1.jpg", "title": "Welcome to Our Site", "subtitle": "Discover amazing features", "link": "#" },
|
|
19
|
+
{ "src": "assets/img/home2.jpg", "title": "Explore More", "subtitle": "Find what you need", "link": "#" },
|
|
20
|
+
{ "src": "assets/img/home3.jpg", "title": "Join Us Today", "subtitle": "Become part of our community", "link": "#" }
|
|
21
|
+
]'
|
|
22
|
+
autoplay="true"
|
|
23
|
+
interval="3000"
|
|
24
|
+
></dda-home-banner>
|
|
25
|
+
\`\`\`
|
|
26
|
+
`,
|
|
40
27
|
},
|
|
41
28
|
},
|
|
42
29
|
controls: {
|
|
@@ -44,14 +31,34 @@ The \`dda-home-banner\` component displays a carousel banner with optional autop
|
|
|
44
31
|
},
|
|
45
32
|
},
|
|
46
33
|
};
|
|
47
|
-
const Template = (args) => `<dda-home-banner autoplay='${args.autoplay}' interval='${args.interval}'
|
|
48
|
-
<div class="dda-home-banner-slide">Slide 1</div>
|
|
49
|
-
<div class="dda-home-banner-slide">Slide 2</div>
|
|
50
|
-
<div class="dda-home-banner-slide">Slide 3</div>
|
|
51
|
-
</dda-home-banner>`;
|
|
34
|
+
const Template = (args) => `<dda-home-banner images='${JSON.stringify(args.images)}' autoplay='${args.autoplay}' interval='${args.interval}'></dda-home-banner>`;
|
|
52
35
|
export const Default = Template.bind({});
|
|
53
36
|
Default.args = {
|
|
37
|
+
images: [
|
|
38
|
+
{ src: 'https://images.pexels.com/photos/3680912/pexels-photo-3680912.jpeg', title: 'Welcome to Our Site', subtitle: 'Discover amazing features', link: '#' },
|
|
39
|
+
{ src: 'https://images.pexels.com/photos/3680912/pexels-photo-3680912.jpeg', title: 'Explore More', subtitle: 'Find what you need', link: '#' },
|
|
40
|
+
{ src: 'https://images.pexels.com/photos/3680912/pexels-photo-3680912.jpeg', title: 'Join Us Today', subtitle: 'Become part of our community', link: '#' }
|
|
41
|
+
],
|
|
54
42
|
autoplay: true,
|
|
55
43
|
interval: 3000,
|
|
56
44
|
};
|
|
57
|
-
|
|
45
|
+
// export const NoAutoplay = Template.bind({});
|
|
46
|
+
// NoAutoplay.args = {
|
|
47
|
+
// images: [
|
|
48
|
+
// { src: 'assets/img/home1.jpg', title: 'Welcome to Our Site', subtitle: 'Discover amazing features', link: '#' },
|
|
49
|
+
// { src: 'assets/img/home2.jpg', title: 'Explore More', subtitle: 'Find what you need', link: '#' },
|
|
50
|
+
// { src: 'assets/img/home3.jpg', title: 'Join Us Today', subtitle: 'Become part of our community', link: '#' }
|
|
51
|
+
// ],
|
|
52
|
+
// autoplay: false,
|
|
53
|
+
// interval: 3000,
|
|
54
|
+
// };
|
|
55
|
+
// export const CustomInterval = Template.bind({});
|
|
56
|
+
// CustomInterval.args = {
|
|
57
|
+
// images: [
|
|
58
|
+
// { src: 'assets/img/home1.jpg', title: 'Welcome to Our Site', subtitle: 'Discover amazing features', link: '#' },
|
|
59
|
+
// { src: 'assets/img/home2.jpg', title: 'Explore More', subtitle: 'Find what you need', link: '#' },
|
|
60
|
+
// { src: 'assets/img/home3.jpg', title: 'Join Us Today', subtitle: 'Become part of our community', link: '#' }
|
|
61
|
+
// ],
|
|
62
|
+
// autoplay: true,
|
|
63
|
+
// interval: 5000,
|
|
64
|
+
// };
|