@dropi/ui 0.1.20 → 0.1.22
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/dist/cjs/dropi-accordion-item.cjs.entry.js +54 -0
- package/dist/cjs/dropi-accordion.cjs.entry.js +5 -39
- package/dist/cjs/dropi-alert-legacy.cjs.entry.js +39 -0
- package/dist/cjs/dropi-alert-modal.cjs.entry.js +80 -24
- package/dist/cjs/dropi-alert.cjs.entry.js +20 -14
- package/dist/cjs/dropi-avatars.cjs.entry.js +3 -3
- package/dist/cjs/dropi-badge-legacy.cjs.entry.js +30 -0
- package/dist/cjs/dropi-badge.cjs.entry.js +4 -4
- package/dist/cjs/dropi-banner-external.cjs.entry.js +25 -9
- package/dist/cjs/dropi-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/dropi-button.cjs.entry.js +11 -7
- package/dist/cjs/dropi-card-checkbox.cjs.entry.js +17 -14
- package/dist/cjs/dropi-card-product.cjs.entry.js +42 -23
- package/dist/cjs/dropi-card-section.cjs.entry.js +17 -17
- package/dist/cjs/dropi-carousel.cjs.entry.js +112 -42
- package/dist/cjs/dropi-checkbox-selection-list.cjs.entry.js +17 -15
- package/dist/cjs/dropi-checkbox.cjs.entry.js +6 -6
- package/dist/cjs/dropi-chips.cjs.entry.js +8 -8
- package/dist/cjs/dropi-city-selector.cjs.entry.js +28 -9
- package/dist/cjs/dropi-color-picker.cjs.entry.js +300 -50
- package/dist/cjs/dropi-country-flags.cjs.entry.js +4 -4
- package/dist/cjs/dropi-country-selector.cjs.entry.js +50 -17
- package/dist/cjs/dropi-date-picker-range.cjs.entry.js +8 -8
- package/dist/cjs/dropi-date-picker.cjs.entry.js +53 -35
- package/dist/cjs/dropi-drawer.cjs.entry.js +38 -9
- package/dist/cjs/dropi-dropdown.cjs.entry.js +23 -16
- package/dist/cjs/dropi-empty-state.cjs.entry.js +15 -18
- package/dist/cjs/dropi-favorite-button.cjs.entry.js +5 -5
- package/dist/cjs/dropi-file-upload-progress-bar.cjs.entry.js +57 -32
- package/dist/cjs/dropi-file-upload.cjs.entry.js +210 -57
- package/dist/cjs/dropi-icon.cjs.entry.js +21 -4
- package/dist/cjs/dropi-ilustration-icon.cjs.entry.js +3 -3
- package/dist/cjs/dropi-image-miniature.cjs.entry.js +2 -2
- package/dist/cjs/dropi-image-overlay.cjs.entry.js +4 -3
- package/dist/cjs/dropi-input_3.cjs.entry.js +392 -0
- package/dist/cjs/dropi-languages-selector.cjs.entry.js +10 -6
- package/dist/cjs/dropi-logo.cjs.entry.js +12 -2
- package/dist/cjs/dropi-lottie-loader.cjs.entry.js +5 -5
- package/dist/cjs/dropi-media-player.cjs.entry.js +131 -41
- package/dist/cjs/dropi-modal.cjs.entry.js +46 -20
- package/dist/cjs/dropi-navbar.cjs.entry.js +14 -12
- package/dist/cjs/dropi-otp-send-code.cjs.entry.js +13 -13
- package/dist/cjs/dropi-phone-input.cjs.entry.js +163 -50
- package/dist/cjs/dropi-radio-button.cjs.entry.js +7 -7
- package/dist/cjs/dropi-radio-selection-list.cjs.entry.js +17 -13
- package/dist/cjs/dropi-read-more.cjs.entry.js +8 -4
- package/dist/cjs/dropi-search.cjs.entry.js +52 -38
- package/dist/cjs/dropi-select.cjs.entry.js +102 -55
- package/dist/cjs/dropi-sidebar.cjs.entry.js +61 -50
- package/dist/cjs/dropi-simple-stepper.cjs.entry.js +8 -6
- package/dist/cjs/dropi-skeleton.cjs.entry.js +16 -6
- package/dist/cjs/dropi-steps.cjs.entry.js +6 -4
- package/dist/cjs/dropi-switch.cjs.entry.js +5 -5
- package/dist/cjs/dropi-table.cjs.entry.js +212 -37
- package/dist/cjs/dropi-tabs.cjs.entry.js +13 -11
- package/dist/cjs/dropi-tag-type-product.cjs.entry.js +3 -3
- package/dist/cjs/dropi-text-area.cjs.entry.js +45 -14
- package/dist/cjs/dropi-time-line.cjs.entry.js +3 -3
- package/dist/cjs/dropi-toast.cjs.entry.js +7 -6
- package/dist/cjs/dropi-tooltip-v2.cjs.entry.js +131 -0
- package/dist/cjs/dropi-tooltip.cjs.entry.js +5 -26
- package/dist/cjs/dropi-ui.cjs.js +2 -2
- package/dist/cjs/dropi-vertical-steps.cjs.entry.js +6 -6
- package/dist/cjs/dropi-youtube-lazy-video.cjs.entry.js +3 -3
- package/dist/cjs/{index-DcOH2ZjX.js → index-C8kwDvpf.js} +1044 -14
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +7 -3
- package/dist/collection/components/dropi-accordion/dropi-accordion-item.css +45 -0
- package/dist/collection/components/dropi-accordion/dropi-accordion-item.js +172 -0
- package/dist/collection/components/dropi-accordion/dropi-accordion.css +3 -3
- package/dist/collection/components/dropi-accordion/dropi-accordion.js +7 -129
- package/dist/collection/components/dropi-alert/dropi-alert.css +5 -11
- package/dist/collection/components/dropi-alert/dropi-alert.js +86 -20
- package/dist/collection/components/dropi-alert-legacy/dropi-alert-legacy.css +31 -0
- package/dist/collection/components/dropi-alert-legacy/dropi-alert-legacy.js +128 -0
- package/dist/collection/components/dropi-alert-modal/dropi-alert-modal.css +55 -23
- package/dist/collection/components/dropi-alert-modal/dropi-alert-modal.js +180 -50
- package/dist/collection/components/dropi-avatars/dropi-avatars.js +3 -3
- package/dist/collection/components/dropi-badge/dropi-badge.css +1 -1
- package/dist/collection/components/dropi-badge/dropi-badge.js +3 -4
- package/dist/collection/components/dropi-badge-legacy/dropi-badge-legacy.css +17 -0
- package/dist/collection/components/dropi-badge-legacy/dropi-badge-legacy.js +119 -0
- package/dist/collection/components/dropi-banner-external/dropi-banner-external.js +88 -13
- package/dist/collection/components/dropi-breadcrumb/dropi-breadcrumb.js +1 -1
- package/dist/collection/components/dropi-button/dropi-button.css +17 -17
- package/dist/collection/components/dropi-button/dropi-button.js +31 -7
- package/dist/collection/components/dropi-card-checkbox/dropi-card-checkbox.css +3 -1
- package/dist/collection/components/dropi-card-checkbox/dropi-card-checkbox.js +30 -27
- package/dist/collection/components/dropi-card-product/dropi-card-product.css +179 -102
- package/dist/collection/components/dropi-card-product/dropi-card-product.js +112 -79
- package/dist/collection/components/dropi-card-section/dropi-card-section.css +2 -2
- package/dist/collection/components/dropi-card-section/dropi-card-section.js +25 -25
- package/dist/collection/components/dropi-carousel/dropi-carousel.css +114 -69
- package/dist/collection/components/dropi-carousel/dropi-carousel.js +202 -100
- package/dist/collection/components/dropi-checkbox/dropi-checkbox.js +6 -6
- package/dist/collection/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.js +42 -20
- package/dist/collection/components/dropi-chips/dropi-chips.js +15 -15
- package/dist/collection/components/dropi-city-selector/dropi-city-selector.css +112 -50
- package/dist/collection/components/dropi-city-selector/dropi-city-selector.js +38 -9
- package/dist/collection/components/dropi-color-picker/dropi-color-picker.css +169 -142
- package/dist/collection/components/dropi-color-picker/dropi-color-picker.js +317 -159
- package/dist/collection/components/dropi-country-flags/dropi-country-flags.js +5 -5
- package/dist/collection/components/dropi-country-selector/dropi-country-selector.css +72 -25
- package/dist/collection/components/dropi-country-selector/dropi-country-selector.js +124 -22
- package/dist/collection/components/dropi-date-picker/dropi-date-picker.css +104 -39
- package/dist/collection/components/dropi-date-picker/dropi-date-picker.js +131 -49
- package/dist/collection/components/dropi-date-picker-range/dropi-date-picker-range.css +8 -8
- package/dist/collection/components/dropi-date-picker-range/dropi-date-picker-range.js +8 -8
- package/dist/collection/components/dropi-drawer/dropi-drawer.css +38 -16
- package/dist/collection/components/dropi-drawer/dropi-drawer.js +107 -18
- package/dist/collection/components/dropi-dropdown/dropi-dropdown.css +1 -1
- package/dist/collection/components/dropi-dropdown/dropi-dropdown.js +52 -27
- package/dist/collection/components/dropi-empty-state/dropi-empty-state.js +37 -54
- package/dist/collection/components/dropi-favorite-button/dropi-favorite-button.js +5 -5
- package/dist/collection/components/dropi-file-upload/dropi-file-upload.css +431 -33
- package/dist/collection/components/dropi-file-upload/dropi-file-upload.js +364 -104
- package/dist/collection/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.css +82 -78
- package/dist/collection/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.js +129 -69
- package/dist/collection/components/dropi-icon/dropi-icon.css +5 -0
- package/dist/collection/components/dropi-icon/dropi-icon.js +19 -2
- package/dist/collection/components/dropi-ilustration-icon/dropi-ilustration-icon.css +3 -3
- package/dist/collection/components/dropi-ilustration-icon/dropi-ilustration-icon.js +1 -1
- package/dist/collection/components/dropi-image-miniature/dropi-image-miniature.js +1 -1
- package/dist/collection/components/dropi-image-overlay/dropi-image-overlay.css +6 -2
- package/dist/collection/components/dropi-image-overlay/dropi-image-overlay.js +5 -4
- package/dist/collection/components/dropi-input/dropi-input.css +1 -1
- package/dist/collection/components/dropi-input/dropi-input.js +155 -82
- package/dist/collection/components/dropi-languages-selector/dropi-languages-selector.css +1 -1
- package/dist/collection/components/dropi-languages-selector/dropi-languages-selector.js +9 -5
- package/dist/collection/components/dropi-logo/dropi-logo.js +12 -1
- package/dist/collection/components/dropi-lottie-loader/dropi-lottie-loader.css +8 -2
- package/dist/collection/components/dropi-lottie-loader/dropi-lottie-loader.js +6 -6
- package/dist/collection/components/dropi-media-player/dropi-media-player.css +263 -70
- package/dist/collection/components/dropi-media-player/dropi-media-player.js +161 -61
- package/dist/collection/components/dropi-modal/dropi-modal.css +14 -4
- package/dist/collection/components/dropi-modal/dropi-modal.js +312 -26
- package/dist/collection/components/dropi-navbar/dropi-navbar.css +7 -7
- package/dist/collection/components/dropi-navbar/dropi-navbar.js +42 -26
- package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.css +2 -2
- package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.js +13 -13
- package/dist/collection/components/dropi-paginator/dropi-paginator.css +2 -2
- package/dist/collection/components/dropi-paginator/dropi-paginator.js +51 -99
- package/dist/collection/components/dropi-phone-input/dropi-phone-input.css +158 -101
- package/dist/collection/components/dropi-phone-input/dropi-phone-input.js +256 -86
- package/dist/collection/components/dropi-radio-button/dropi-radio-button.js +13 -20
- package/dist/collection/components/dropi-radio-selection-list/dropi-radio-selection-list.css +3 -3
- package/dist/collection/components/dropi-radio-selection-list/dropi-radio-selection-list.js +69 -19
- package/dist/collection/components/dropi-read-more/dropi-read-more.css +5 -8
- package/dist/collection/components/dropi-read-more/dropi-read-more.js +46 -2
- package/dist/collection/components/dropi-search/dropi-search.css +2 -2
- package/dist/collection/components/dropi-search/dropi-search.js +194 -60
- package/dist/collection/components/dropi-select/dropi-select.css +7 -7
- package/dist/collection/components/dropi-select/dropi-select.js +170 -84
- package/dist/collection/components/dropi-sidebar/dropi-sidebar.css +51 -92
- package/dist/collection/components/dropi-sidebar/dropi-sidebar.js +86 -176
- package/dist/collection/components/dropi-simple-stepper/dropi-simple-stepper.css +2 -2
- package/dist/collection/components/dropi-simple-stepper/dropi-simple-stepper.js +29 -7
- package/dist/collection/components/dropi-skeleton/dropi-skeleton.js +40 -10
- package/dist/collection/components/dropi-steps/dropi-steps.css +3 -3
- package/dist/collection/components/dropi-steps/dropi-steps.js +31 -3
- package/dist/collection/components/dropi-switch/dropi-switch.js +5 -5
- package/dist/collection/components/dropi-table/dropi-table.css +505 -45
- package/dist/collection/components/dropi-table/dropi-table.js +690 -50
- package/dist/collection/components/dropi-tabs/dropi-tabs.css +10 -5
- package/dist/collection/components/dropi-tabs/dropi-tabs.js +35 -13
- package/dist/collection/components/dropi-tag/dropi-tag.js +5 -5
- package/dist/collection/components/dropi-tag-type-product/dropi-tag-type-product.css +4 -4
- package/dist/collection/components/dropi-tag-type-product/dropi-tag-type-product.js +1 -1
- package/dist/collection/components/dropi-text-area/dropi-text-area.css +4 -1
- package/dist/collection/components/dropi-text-area/dropi-text-area.js +87 -32
- package/dist/collection/components/dropi-time-line/dropi-time-line.css +2 -2
- package/dist/collection/components/dropi-time-line/dropi-time-line.js +1 -1
- package/dist/collection/components/dropi-toast/dropi-toast.css +2 -2
- package/dist/collection/components/dropi-toast/dropi-toast.js +6 -5
- package/dist/collection/components/dropi-tooltip/dropi-tooltip.css +28 -63
- package/dist/collection/components/dropi-tooltip/dropi-tooltip.js +11 -88
- package/dist/collection/components/dropi-tooltip-v2/dropi-tooltip.css +67 -0
- package/dist/collection/components/dropi-tooltip-v2/dropi-tooltip.js +468 -0
- package/dist/collection/components/dropi-vertical-steps/dropi-vertical-steps.css +3 -3
- package/dist/collection/components/dropi-vertical-steps/dropi-vertical-steps.js +5 -5
- package/dist/collection/components/dropi-youtube-lazy-video/dropi-youtube-lazy-video.css +1 -1
- package/dist/collection/components/dropi-youtube-lazy-video/dropi-youtube-lazy-video.js +1 -1
- package/dist/components/dropi-accordion-item.d.ts +11 -0
- package/dist/components/dropi-accordion-item.js +1 -0
- package/dist/components/dropi-accordion.js +1 -1
- package/dist/components/dropi-alert-legacy.d.ts +11 -0
- package/dist/components/dropi-alert-legacy.js +1 -0
- package/dist/components/dropi-alert-modal.js +1 -1
- package/dist/components/dropi-alert.js +1 -1
- package/dist/components/dropi-avatars.js +1 -1
- package/dist/components/dropi-badge-legacy.d.ts +11 -0
- package/dist/components/dropi-badge-legacy.js +1 -0
- package/dist/components/dropi-badge.js +1 -1
- package/dist/components/dropi-banner-external.js +1 -1
- package/dist/components/dropi-breadcrumb.js +1 -1
- package/dist/components/dropi-button.js +1 -1
- package/dist/components/dropi-card-checkbox.js +1 -1
- package/dist/components/dropi-card-product.js +1 -1
- package/dist/components/dropi-card-section.js +1 -1
- package/dist/components/dropi-carousel.js +1 -1
- package/dist/components/dropi-checkbox-selection-list.js +1 -1
- package/dist/components/dropi-checkbox.js +1 -1
- package/dist/components/dropi-chips.js +1 -1
- package/dist/components/dropi-city-selector.js +1 -1
- package/dist/components/dropi-color-picker.js +1 -1
- package/dist/components/dropi-country-flags.js +1 -1
- package/dist/components/dropi-country-selector.js +1 -1
- package/dist/components/dropi-date-picker-range.js +1 -1
- package/dist/components/dropi-date-picker.js +1 -1
- package/dist/components/dropi-drawer.js +1 -1
- package/dist/components/dropi-dropdown.js +1 -1
- package/dist/components/dropi-empty-state.js +1 -1
- package/dist/components/dropi-favorite-button.js +1 -1
- package/dist/components/dropi-file-upload-progress-bar.js +1 -1
- package/dist/components/dropi-file-upload.js +1 -1
- package/dist/components/dropi-icon.js +1 -1
- package/dist/components/dropi-ilustration-icon.js +1 -1
- package/dist/components/dropi-image-miniature.js +1 -1
- package/dist/components/dropi-image-overlay.js +1 -1
- package/dist/components/dropi-input.js +1 -1
- package/dist/components/dropi-languages-selector.js +1 -1
- package/dist/components/dropi-logo.js +1 -1
- package/dist/components/dropi-lottie-loader.js +1 -1
- package/dist/components/dropi-media-player.js +1 -1
- package/dist/components/dropi-modal.js +1 -1
- package/dist/components/dropi-navbar.js +1 -1
- package/dist/components/dropi-otp-send-code.js +1 -1
- package/dist/components/dropi-paginator.js +1 -1
- package/dist/components/dropi-phone-input.js +1 -1
- package/dist/components/dropi-radio-button.js +1 -1
- package/dist/components/dropi-radio-selection-list.js +1 -1
- package/dist/components/dropi-read-more.js +1 -1
- package/dist/components/dropi-search.js +1 -1
- package/dist/components/dropi-select.js +1 -1
- package/dist/components/dropi-sidebar.js +1 -1
- package/dist/components/dropi-simple-stepper.js +1 -1
- package/dist/components/dropi-skeleton.js +1 -1
- package/dist/components/dropi-steps.js +1 -1
- package/dist/components/dropi-switch.js +1 -1
- package/dist/components/dropi-table.js +1 -1
- package/dist/components/dropi-tabs.js +1 -1
- package/dist/components/dropi-tag-type-product.js +1 -1
- package/dist/components/dropi-tag.js +1 -1
- package/dist/components/dropi-text-area.js +1 -1
- package/dist/components/dropi-time-line.js +1 -1
- package/dist/components/dropi-toast.js +1 -1
- package/dist/components/dropi-tooltip-v2.d.ts +11 -0
- package/dist/components/dropi-tooltip-v2.js +1 -0
- package/dist/components/dropi-tooltip.js +1 -1
- package/dist/components/dropi-vertical-steps.js +1 -1
- package/dist/components/dropi-youtube-lazy-video.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-B9R8Apw7.js +1 -0
- package/dist/components/p-B_Ace02i.js +1 -0
- package/dist/components/p-BrjO_JXp.js +1 -0
- package/dist/components/p-BwhxWL4p.js +1 -0
- package/dist/components/p-Bz2jXX3R.js +1 -0
- package/dist/components/p-CV4X3Gm4.js +1 -0
- package/dist/components/p-CV_oz45O.js +1 -0
- package/dist/components/p-D-vQQQNz.js +1 -0
- package/dist/components/p-D13d88W3.js +1 -0
- package/dist/components/p-DGUfr98Z.js +1 -0
- package/dist/components/p-a-hGQrJd.js +1 -0
- package/dist/components/p-o5gyrbbD.js +1 -0
- package/dist/dropi-ui/dropi-ui.css +1 -1
- package/dist/dropi-ui/dropi-ui.esm.js +1 -1
- package/dist/dropi-ui/p-00e5a2de.entry.js +1 -0
- package/dist/dropi-ui/p-0188e07a.entry.js +1 -0
- package/dist/dropi-ui/p-02710049.entry.js +1 -0
- package/dist/dropi-ui/p-17c56074.entry.js +1 -0
- package/dist/dropi-ui/p-18adf694.entry.js +1 -0
- package/dist/dropi-ui/p-1a3619c3.entry.js +1 -0
- package/dist/dropi-ui/p-1d3d6a32.entry.js +1 -0
- package/dist/dropi-ui/p-25640777.entry.js +1 -0
- package/dist/dropi-ui/p-2674d901.entry.js +1 -0
- package/dist/dropi-ui/p-2af538b9.entry.js +1 -0
- package/dist/dropi-ui/p-3013f3b8.entry.js +1 -0
- package/dist/dropi-ui/p-3321ca70.entry.js +1 -0
- package/dist/dropi-ui/p-33d242ec.entry.js +1 -0
- package/dist/dropi-ui/p-39af6478.entry.js +1 -0
- package/dist/dropi-ui/p-3e36c8b8.entry.js +1 -0
- package/dist/dropi-ui/p-3ebc9b7b.entry.js +1 -0
- package/dist/dropi-ui/p-446a481d.entry.js +1 -0
- package/dist/dropi-ui/p-50a5e548.entry.js +1 -0
- package/dist/dropi-ui/p-50e0d44f.entry.js +1 -0
- package/dist/dropi-ui/p-53a7a37d.entry.js +1 -0
- package/dist/dropi-ui/p-5c0bd7c2.entry.js +1 -0
- package/dist/dropi-ui/p-5cee6721.entry.js +1 -0
- package/dist/dropi-ui/p-5fb33ae4.entry.js +1 -0
- package/dist/dropi-ui/p-665ef7ba.entry.js +1 -0
- package/dist/dropi-ui/p-66b80371.entry.js +1 -0
- package/dist/dropi-ui/p-7bfc1c27.entry.js +1 -0
- package/dist/dropi-ui/p-7c0d2edf.entry.js +1 -0
- package/dist/dropi-ui/p-7eb27836.entry.js +1 -0
- package/dist/dropi-ui/p-85444414.entry.js +1 -0
- package/dist/dropi-ui/p-86283e99.entry.js +1 -0
- package/dist/dropi-ui/p-8bf5d8ee.entry.js +1 -0
- package/dist/dropi-ui/p-9032ba00.entry.js +1 -0
- package/dist/dropi-ui/p-9212f544.entry.js +1 -0
- package/dist/dropi-ui/p-92291873.entry.js +1 -0
- package/dist/dropi-ui/p-955e52f8.entry.js +1 -0
- package/dist/dropi-ui/p-976a15e3.entry.js +1 -0
- package/dist/dropi-ui/p-9b037086.entry.js +1 -0
- package/dist/dropi-ui/p-9e0129cc.entry.js +1 -0
- package/dist/dropi-ui/{p-c9ebd31b.entry.js → p-9ffec3f7.entry.js} +1 -1
- package/dist/dropi-ui/p-D5SAM1O2.js +2 -0
- package/dist/dropi-ui/p-a1c93e55.entry.js +1 -0
- package/dist/dropi-ui/p-a232c6a7.entry.js +1 -0
- package/dist/dropi-ui/p-a3c4d677.entry.js +1 -0
- package/dist/dropi-ui/p-a457e8ca.entry.js +1 -0
- package/dist/dropi-ui/p-a4e1df5e.entry.js +1 -0
- package/dist/dropi-ui/p-a822a23e.entry.js +1 -0
- package/dist/dropi-ui/p-a8f24270.entry.js +1 -0
- package/dist/dropi-ui/p-ae35d538.entry.js +1 -0
- package/dist/dropi-ui/p-af8e2157.entry.js +1 -0
- package/dist/dropi-ui/p-b2623a5c.entry.js +1 -0
- package/dist/dropi-ui/p-b3d3c72e.entry.js +1 -0
- package/dist/dropi-ui/p-c3614c4a.entry.js +1 -0
- package/dist/dropi-ui/p-cbf5367e.entry.js +1 -0
- package/dist/dropi-ui/p-cc527d91.entry.js +1 -0
- package/dist/dropi-ui/p-cdde481b.entry.js +1 -0
- package/dist/dropi-ui/p-d42d4ef7.entry.js +1 -0
- package/dist/dropi-ui/{p-b41c8a6c.entry.js → p-db38bf16.entry.js} +1 -1
- package/dist/dropi-ui/p-dd5d8b1b.entry.js +1 -0
- package/dist/dropi-ui/p-e3ad21f8.entry.js +1 -0
- package/dist/dropi-ui/p-e6e766ed.entry.js +1 -0
- package/dist/dropi-ui/p-ec263862.entry.js +1 -0
- package/dist/dropi-ui/p-efc2fc35.entry.js +1 -0
- package/dist/dropi-ui/p-f41cd9b5.entry.js +1 -0
- package/dist/dropi-ui/p-fa3d0267.entry.js +1 -0
- package/dist/esm/dropi-accordion-item.entry.js +52 -0
- package/dist/esm/dropi-accordion.entry.js +5 -39
- package/dist/esm/dropi-alert-legacy.entry.js +37 -0
- package/dist/esm/dropi-alert-modal.entry.js +80 -24
- package/dist/esm/dropi-alert.entry.js +20 -14
- package/dist/esm/dropi-avatars.entry.js +3 -3
- package/dist/esm/dropi-badge-legacy.entry.js +28 -0
- package/dist/esm/dropi-badge.entry.js +4 -4
- package/dist/esm/dropi-banner-external.entry.js +25 -9
- package/dist/esm/dropi-breadcrumb.entry.js +2 -2
- package/dist/esm/dropi-button.entry.js +11 -7
- package/dist/esm/dropi-card-checkbox.entry.js +17 -14
- package/dist/esm/dropi-card-product.entry.js +42 -23
- package/dist/esm/dropi-card-section.entry.js +17 -17
- package/dist/esm/dropi-carousel.entry.js +112 -42
- package/dist/esm/dropi-checkbox-selection-list.entry.js +17 -15
- package/dist/esm/dropi-checkbox.entry.js +6 -6
- package/dist/esm/dropi-chips.entry.js +8 -8
- package/dist/esm/dropi-city-selector.entry.js +28 -9
- package/dist/esm/dropi-color-picker.entry.js +300 -50
- package/dist/esm/dropi-country-flags.entry.js +4 -4
- package/dist/esm/dropi-country-selector.entry.js +50 -17
- package/dist/esm/dropi-date-picker-range.entry.js +8 -8
- package/dist/esm/dropi-date-picker.entry.js +53 -35
- package/dist/esm/dropi-drawer.entry.js +38 -9
- package/dist/esm/dropi-dropdown.entry.js +23 -16
- package/dist/esm/dropi-empty-state.entry.js +15 -18
- package/dist/esm/dropi-favorite-button.entry.js +5 -5
- package/dist/esm/dropi-file-upload-progress-bar.entry.js +57 -32
- package/dist/esm/dropi-file-upload.entry.js +210 -57
- package/dist/esm/dropi-icon.entry.js +21 -4
- package/dist/esm/dropi-ilustration-icon.entry.js +3 -3
- package/dist/esm/dropi-image-miniature.entry.js +2 -2
- package/dist/esm/dropi-image-overlay.entry.js +4 -3
- package/dist/esm/dropi-input_3.entry.js +388 -0
- package/dist/esm/dropi-languages-selector.entry.js +10 -6
- package/dist/esm/dropi-logo.entry.js +12 -2
- package/dist/esm/dropi-lottie-loader.entry.js +5 -5
- package/dist/esm/dropi-media-player.entry.js +131 -41
- package/dist/esm/dropi-modal.entry.js +46 -20
- package/dist/esm/dropi-navbar.entry.js +14 -12
- package/dist/esm/dropi-otp-send-code.entry.js +13 -13
- package/dist/esm/dropi-phone-input.entry.js +163 -50
- package/dist/esm/dropi-radio-button.entry.js +7 -7
- package/dist/esm/dropi-radio-selection-list.entry.js +17 -13
- package/dist/esm/dropi-read-more.entry.js +8 -4
- package/dist/esm/dropi-search.entry.js +52 -38
- package/dist/esm/dropi-select.entry.js +102 -55
- package/dist/esm/dropi-sidebar.entry.js +61 -50
- package/dist/esm/dropi-simple-stepper.entry.js +8 -6
- package/dist/esm/dropi-skeleton.entry.js +16 -6
- package/dist/esm/dropi-steps.entry.js +6 -4
- package/dist/esm/dropi-switch.entry.js +5 -5
- package/dist/esm/dropi-table.entry.js +212 -37
- package/dist/esm/dropi-tabs.entry.js +13 -11
- package/dist/esm/dropi-tag-type-product.entry.js +3 -3
- package/dist/esm/dropi-text-area.entry.js +45 -14
- package/dist/esm/dropi-time-line.entry.js +3 -3
- package/dist/esm/dropi-toast.entry.js +7 -6
- package/dist/esm/dropi-tooltip-v2.entry.js +129 -0
- package/dist/esm/dropi-tooltip.entry.js +5 -26
- package/dist/esm/dropi-ui.js +3 -3
- package/dist/esm/dropi-vertical-steps.entry.js +6 -6
- package/dist/esm/dropi-youtube-lazy-video.entry.js +3 -3
- package/dist/esm/{index-Tbza12Gt.js → index-D5SAM1O2.js} +1044 -15
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/dropi-accordion/dropi-accordion-item.d.ts +24 -0
- package/dist/types/components/dropi-accordion/dropi-accordion.d.ts +3 -23
- package/dist/types/components/dropi-alert/dropi-alert.d.ts +9 -3
- package/dist/types/components/dropi-alert-legacy/dropi-alert-legacy.d.ts +18 -0
- package/dist/types/components/dropi-alert-modal/dropi-alert-modal.d.ts +26 -8
- package/dist/types/components/dropi-badge-legacy/dropi-badge-legacy.d.ts +15 -0
- package/dist/types/components/dropi-banner-external/dropi-banner-external.d.ts +11 -3
- package/dist/types/components/dropi-button/dropi-button.d.ts +4 -2
- package/dist/types/components/dropi-card-checkbox/dropi-card-checkbox.d.ts +8 -7
- package/dist/types/components/dropi-card-product/dropi-card-product.d.ts +19 -15
- package/dist/types/components/dropi-card-section/dropi-card-section.d.ts +5 -5
- package/dist/types/components/dropi-carousel/dropi-carousel.d.ts +31 -27
- package/dist/types/components/dropi-checkbox/dropi-checkbox.d.ts +1 -1
- package/dist/types/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.d.ts +7 -5
- package/dist/types/components/dropi-chips/dropi-chips.d.ts +4 -4
- package/dist/types/components/dropi-city-selector/dropi-city-selector.d.ts +3 -1
- package/dist/types/components/dropi-color-picker/dropi-color-picker.d.ts +51 -26
- package/dist/types/components/dropi-country-flags/dropi-country-flags.d.ts +1 -1
- package/dist/types/components/dropi-country-selector/dropi-country-selector.d.ts +16 -5
- package/dist/types/components/dropi-date-picker/dropi-date-picker.d.ts +16 -8
- package/dist/types/components/dropi-date-picker-range/dropi-date-picker-range.d.ts +2 -2
- package/dist/types/components/dropi-drawer/dropi-drawer.d.ts +12 -6
- package/dist/types/components/dropi-dropdown/dropi-dropdown.d.ts +12 -6
- package/dist/types/components/dropi-empty-state/dropi-empty-state.d.ts +12 -14
- package/dist/types/components/dropi-favorite-button/dropi-favorite-button.d.ts +1 -1
- package/dist/types/components/dropi-file-upload/dropi-file-upload.d.ts +65 -26
- package/dist/types/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.d.ts +24 -16
- package/dist/types/components/dropi-icon/dropi-icon.d.ts +3 -1
- package/dist/types/components/dropi-image-overlay/dropi-image-overlay.d.ts +1 -1
- package/dist/types/components/dropi-input/dropi-input.d.ts +27 -17
- package/dist/types/components/dropi-languages-selector/dropi-languages-selector.d.ts +1 -1
- package/dist/types/components/dropi-logo/dropi-logo.d.ts +2 -0
- package/dist/types/components/dropi-lottie-loader/dropi-lottie-loader.d.ts +1 -1
- package/dist/types/components/dropi-media-player/dropi-media-player.d.ts +26 -19
- package/dist/types/components/dropi-modal/dropi-modal.d.ts +24 -5
- package/dist/types/components/dropi-navbar/dropi-navbar.d.ts +7 -5
- package/dist/types/components/dropi-otp-send-code/dropi-otp-send-code.d.ts +1 -1
- package/dist/types/components/dropi-paginator/dropi-paginator.d.ts +10 -20
- package/dist/types/components/dropi-phone-input/dropi-phone-input.d.ts +35 -20
- package/dist/types/components/dropi-radio-button/dropi-radio-button.d.ts +2 -2
- package/dist/types/components/dropi-radio-selection-list/dropi-radio-selection-list.d.ts +11 -4
- package/dist/types/components/dropi-read-more/dropi-read-more.d.ts +4 -0
- package/dist/types/components/dropi-search/dropi-search.d.ts +24 -12
- package/dist/types/components/dropi-select/dropi-select.d.ts +26 -15
- package/dist/types/components/dropi-sidebar/dropi-sidebar.d.ts +32 -26
- package/dist/types/components/dropi-simple-stepper/dropi-simple-stepper.d.ts +2 -0
- package/dist/types/components/dropi-skeleton/dropi-skeleton.d.ts +4 -1
- package/dist/types/components/dropi-steps/dropi-steps.d.ts +3 -0
- package/dist/types/components/dropi-switch/dropi-switch.d.ts +1 -1
- package/dist/types/components/dropi-table/dropi-table.d.ts +90 -14
- package/dist/types/components/dropi-tabs/dropi-tabs.d.ts +5 -3
- package/dist/types/components/dropi-text-area/dropi-text-area.d.ts +27 -6
- package/dist/types/components/dropi-tooltip/dropi-tooltip.d.ts +3 -17
- package/dist/types/components/dropi-tooltip-v2/dropi-tooltip.d.ts +59 -0
- package/dist/types/components/dropi-vertical-steps/dropi-vertical-steps.d.ts +1 -1
- package/dist/types/components.d.ts +2182 -1180
- package/dist/types/index.d.ts +1 -0
- package/hydrate/index.d.ts +287 -0
- package/hydrate/index.js +30455 -0
- package/hydrate/index.mjs +30445 -0
- package/hydrate/package.json +12 -0
- package/package.json +33 -5
- package/readme.md +97 -18
- package/scripts/setup.js +310 -29
- package/skills/install-dropi-ui/skill.md +15 -10
- package/dist/cjs/dropi-input.cjs.entry.js +0 -210
- package/dist/cjs/dropi-paginator.cjs.entry.js +0 -91
- package/dist/cjs/dropi-tag.cjs.entry.js +0 -68
- package/dist/components/p-BY_J-4Sm.js +0 -1
- package/dist/components/p-CYCV-5qV.js +0 -1
- package/dist/components/p-D0ZJcRZn.js +0 -1
- package/dist/components/p-DUPOnSiL.js +0 -1
- package/dist/components/p-DUX_WvqW.js +0 -1
- package/dist/components/p-wO1yy0Zr.js +0 -1
- package/dist/dropi-ui/p-053ebb91.entry.js +0 -1
- package/dist/dropi-ui/p-0acd32e6.entry.js +0 -1
- package/dist/dropi-ui/p-0e88a543.entry.js +0 -1
- package/dist/dropi-ui/p-0f2f5f75.entry.js +0 -1
- package/dist/dropi-ui/p-131d87ac.entry.js +0 -1
- package/dist/dropi-ui/p-1af4719d.entry.js +0 -1
- package/dist/dropi-ui/p-1e8f6d4a.entry.js +0 -1
- package/dist/dropi-ui/p-22132b1a.entry.js +0 -1
- package/dist/dropi-ui/p-2c1aaf6f.entry.js +0 -1
- package/dist/dropi-ui/p-2e9b87a9.entry.js +0 -1
- package/dist/dropi-ui/p-3414a414.entry.js +0 -1
- package/dist/dropi-ui/p-34ad54a1.entry.js +0 -1
- package/dist/dropi-ui/p-3531378b.entry.js +0 -1
- package/dist/dropi-ui/p-3983a7aa.entry.js +0 -1
- package/dist/dropi-ui/p-40e91337.entry.js +0 -1
- package/dist/dropi-ui/p-4a8646e5.entry.js +0 -1
- package/dist/dropi-ui/p-4be64bf0.entry.js +0 -1
- package/dist/dropi-ui/p-4ec17510.entry.js +0 -1
- package/dist/dropi-ui/p-5023eef0.entry.js +0 -1
- package/dist/dropi-ui/p-51a97b1a.entry.js +0 -1
- package/dist/dropi-ui/p-52796d84.entry.js +0 -1
- package/dist/dropi-ui/p-53a5bd7b.entry.js +0 -1
- package/dist/dropi-ui/p-5425f941.entry.js +0 -1
- package/dist/dropi-ui/p-58d0bf7a.entry.js +0 -1
- package/dist/dropi-ui/p-59d3bd9b.entry.js +0 -1
- package/dist/dropi-ui/p-5e957631.entry.js +0 -1
- package/dist/dropi-ui/p-64cbf4ea.entry.js +0 -1
- package/dist/dropi-ui/p-68080534.entry.js +0 -1
- package/dist/dropi-ui/p-6da6b97e.entry.js +0 -1
- package/dist/dropi-ui/p-6df57f25.entry.js +0 -1
- package/dist/dropi-ui/p-7c916570.entry.js +0 -1
- package/dist/dropi-ui/p-7e95462a.entry.js +0 -1
- package/dist/dropi-ui/p-80089042.entry.js +0 -1
- package/dist/dropi-ui/p-8768bb11.entry.js +0 -1
- package/dist/dropi-ui/p-896f2900.entry.js +0 -1
- package/dist/dropi-ui/p-89ac1ff2.entry.js +0 -1
- package/dist/dropi-ui/p-8ce79c69.entry.js +0 -1
- package/dist/dropi-ui/p-8e809670.entry.js +0 -1
- package/dist/dropi-ui/p-93b207b7.entry.js +0 -1
- package/dist/dropi-ui/p-983f72ad.entry.js +0 -1
- package/dist/dropi-ui/p-98babb78.entry.js +0 -1
- package/dist/dropi-ui/p-9fc53d50.entry.js +0 -1
- package/dist/dropi-ui/p-Tbza12Gt.js +0 -2
- package/dist/dropi-ui/p-a20705fe.entry.js +0 -1
- package/dist/dropi-ui/p-a72da98f.entry.js +0 -1
- package/dist/dropi-ui/p-a876d57c.entry.js +0 -1
- package/dist/dropi-ui/p-b1b0f938.entry.js +0 -1
- package/dist/dropi-ui/p-b2e176b1.entry.js +0 -1
- package/dist/dropi-ui/p-b890fd5b.entry.js +0 -1
- package/dist/dropi-ui/p-bf5a53ef.entry.js +0 -1
- package/dist/dropi-ui/p-c0677661.entry.js +0 -1
- package/dist/dropi-ui/p-c2562a1c.entry.js +0 -1
- package/dist/dropi-ui/p-c2b5d0fb.entry.js +0 -1
- package/dist/dropi-ui/p-c4d4396b.entry.js +0 -1
- package/dist/dropi-ui/p-cecfb68e.entry.js +0 -1
- package/dist/dropi-ui/p-d0b47e2e.entry.js +0 -1
- package/dist/dropi-ui/p-dcefef51.entry.js +0 -1
- package/dist/dropi-ui/p-e4b7e15f.entry.js +0 -1
- package/dist/dropi-ui/p-e7f4ed25.entry.js +0 -1
- package/dist/dropi-ui/p-f1d69b15.entry.js +0 -1
- package/dist/esm/dropi-input.entry.js +0 -208
- package/dist/esm/dropi-paginator.entry.js +0 -89
- package/dist/esm/dropi-tag.entry.js +0 -66
|
@@ -1,69 +1,133 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
/**
|
|
3
|
-
* @component dropi-carousel
|
|
4
|
-
* Image/content carousel with navigation arrows, dots pagination,
|
|
5
|
-
* autoplay, and optional thumbnails.
|
|
6
|
-
*/
|
|
7
2
|
export class DropiCarousel {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
el;
|
|
4
|
+
/** Items to display (Array of URLs or objects) */
|
|
5
|
+
value = [];
|
|
6
|
+
/** Active page index */
|
|
7
|
+
page = 0;
|
|
8
|
+
/** Number of items visible per page */
|
|
9
|
+
numVisible = 1;
|
|
10
|
+
/** Number of items to scroll per click */
|
|
11
|
+
numScroll = 1;
|
|
12
|
+
/** Orientation of the carousel */
|
|
13
|
+
orientation = 'horizontal';
|
|
12
14
|
/** Show navigation arrows */
|
|
13
|
-
|
|
15
|
+
showNavigators = true;
|
|
14
16
|
/** Show dot indicators */
|
|
15
|
-
|
|
16
|
-
/** Show thumbnail strip */
|
|
17
|
-
showThumbs = false;
|
|
17
|
+
showIndicators = true;
|
|
18
18
|
/** Autoplay interval in ms (0 = disabled) */
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
autoplayInterval = 0;
|
|
20
|
+
/** Infinite scrolling */
|
|
21
|
+
circular = false;
|
|
22
|
+
parsedValue = [];
|
|
23
|
+
internalPage = 0;
|
|
24
|
+
isAnimating = false;
|
|
25
|
+
totalPages = 0;
|
|
26
|
+
itemsContainer;
|
|
26
27
|
timer;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
this.
|
|
28
|
+
pageChange;
|
|
29
|
+
onPage;
|
|
30
|
+
handleValue(val) {
|
|
31
|
+
this.parsedValue = typeof val === 'string' ? JSON.parse(val) : (val || []);
|
|
32
|
+
this.updateTotalPages();
|
|
33
|
+
this.updateTransform();
|
|
31
34
|
}
|
|
32
|
-
|
|
33
|
-
this.
|
|
35
|
+
handlePage(val) {
|
|
36
|
+
this.internalPage = val;
|
|
37
|
+
this.updateTransform();
|
|
34
38
|
}
|
|
35
39
|
componentWillLoad() {
|
|
36
|
-
this.
|
|
37
|
-
|
|
40
|
+
if (!this.value || (Array.isArray(this.value) && this.value.length === 0)) {
|
|
41
|
+
const attrValue = this.el.getAttribute('value');
|
|
42
|
+
if (attrValue)
|
|
43
|
+
this.value = attrValue;
|
|
44
|
+
}
|
|
45
|
+
this.handleValue(this.value);
|
|
46
|
+
this.internalPage = this.page;
|
|
38
47
|
}
|
|
39
48
|
componentDidLoad() {
|
|
40
|
-
|
|
49
|
+
this.updateTransform();
|
|
50
|
+
if (this.autoplayInterval > 0) {
|
|
41
51
|
this.startAutoplay();
|
|
42
52
|
}
|
|
53
|
+
window.addEventListener('resize', this.onResize);
|
|
43
54
|
}
|
|
44
55
|
disconnectedCallback() {
|
|
45
56
|
this.stopAutoplay();
|
|
57
|
+
window.removeEventListener('resize', this.onResize);
|
|
46
58
|
}
|
|
59
|
+
onResize = () => {
|
|
60
|
+
this.updateTotalPages();
|
|
61
|
+
this.updateTransform();
|
|
62
|
+
};
|
|
47
63
|
startAutoplay() {
|
|
48
|
-
this.timer = setInterval(() => this.
|
|
64
|
+
this.timer = setInterval(() => this.navForward(), this.autoplayInterval);
|
|
49
65
|
}
|
|
50
66
|
stopAutoplay() {
|
|
51
67
|
if (this.timer)
|
|
52
68
|
clearInterval(this.timer);
|
|
53
69
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
70
|
+
updateTotalPages() {
|
|
71
|
+
if (!this.parsedValue.length || this.parsedValue.length <= this.numVisible) {
|
|
72
|
+
this.totalPages = 1;
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
const totalItems = this.parsedValue.length;
|
|
76
|
+
const remainingItems = totalItems - this.numVisible;
|
|
77
|
+
this.totalPages = Math.ceil(remainingItems / this.numScroll) + 1;
|
|
78
|
+
}
|
|
79
|
+
updateTransform() {
|
|
80
|
+
if (!this.itemsContainer)
|
|
81
|
+
return;
|
|
82
|
+
const prop = this.orientation === 'vertical' ? 'translateY' : 'translateX';
|
|
83
|
+
const firstItem = this.itemsContainer.querySelector('.dropi-carousel-item');
|
|
84
|
+
if (!firstItem)
|
|
85
|
+
return;
|
|
86
|
+
const itemSize = this.orientation === 'vertical' ? firstItem.offsetHeight : firstItem.offsetWidth;
|
|
87
|
+
const itemsScrolled = this.internalPage * this.numScroll;
|
|
88
|
+
const maxScroll = Math.max(0, this.parsedValue.length - this.numVisible);
|
|
89
|
+
const safeScroll = Math.min(itemsScrolled, maxScroll);
|
|
90
|
+
const translateValue = -(safeScroll * itemSize);
|
|
91
|
+
this.itemsContainer.style.transform = `${prop}(${translateValue}px)`;
|
|
92
|
+
}
|
|
93
|
+
navForward = (e) => {
|
|
94
|
+
if (e)
|
|
95
|
+
e.preventDefault();
|
|
96
|
+
if (this.circular || this.internalPage < this.totalPages - 1) {
|
|
97
|
+
this.isAnimating = true;
|
|
98
|
+
this.internalPage = (this.internalPage + 1) % this.totalPages;
|
|
99
|
+
this.page = this.internalPage;
|
|
100
|
+
this.updateTransform();
|
|
101
|
+
this.pageChange.emit(this.internalPage);
|
|
102
|
+
setTimeout(() => (this.isAnimating = false), 500);
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
navBackward = (e) => {
|
|
106
|
+
if (e)
|
|
107
|
+
e.preventDefault();
|
|
108
|
+
if (this.circular || this.internalPage > 0) {
|
|
109
|
+
this.isAnimating = true;
|
|
110
|
+
this.internalPage = (this.internalPage - 1 + this.totalPages) % this.totalPages;
|
|
111
|
+
this.page = this.internalPage;
|
|
112
|
+
this.updateTransform();
|
|
113
|
+
this.pageChange.emit(this.internalPage);
|
|
114
|
+
setTimeout(() => (this.isAnimating = false), 500);
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
onDotClick(index) {
|
|
118
|
+
this.isAnimating = true;
|
|
119
|
+
this.internalPage = index;
|
|
120
|
+
this.page = this.internalPage;
|
|
121
|
+
this.updateTransform();
|
|
122
|
+
this.pageChange.emit(this.internalPage);
|
|
123
|
+
setTimeout(() => (this.isAnimating = false), 500);
|
|
59
124
|
}
|
|
60
|
-
prev() { this.go(this.current - 1); }
|
|
61
|
-
next() { this.go(this.current + 1); }
|
|
62
125
|
render() {
|
|
63
|
-
const
|
|
64
|
-
if (!
|
|
126
|
+
const items = this.parsedValue;
|
|
127
|
+
if (!items.length)
|
|
65
128
|
return null;
|
|
66
|
-
|
|
129
|
+
const itemFlexBasis = `${100 / this.numVisible}%`;
|
|
130
|
+
return (h("div", { class: { 'dropi-carousel-container': true, 'vertical': this.orientation === 'vertical' } }, h("div", { class: "dropi-carousel-content" }, this.showNavigators && items.length > this.numVisible && (h("button", { class: "dropi-carousel-nav dropi-carousel-prev", disabled: !this.circular && this.internalPage === 0, onClick: (e) => this.navBackward(e), "aria-label": "Anterior" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" }, h("path", { d: "M14.659 17.5a.833.833 0 0 1-.589-.244l-4.43-4.431a.833.833 0 0 1 0-1.178l4.43-4.431a.834.834 0 0 1 1.179 1.178L11.42 12.25l3.83 3.829a.833.833 0 0 1-.59 1.421Z", fill: "#475066" })))), h("div", { class: "dropi-carousel-items-content" }, h("div", { class: "dropi-carousel-items-container", ref: (el) => (this.itemsContainer = el), style: { transition: this.isAnimating ? 'transform 0.5s ease' : 'none' } }, items.map((item, i) => (h("div", { class: "dropi-carousel-item", style: { flex: `0 0 ${itemFlexBasis}` } }, typeof item === 'string' ? (h("img", { src: item, alt: `Slide ${i + 1}` })) : (h("slot", { name: `item-${i}` }))))))), this.showNavigators && items.length > this.numVisible && (h("button", { class: "dropi-carousel-nav dropi-carousel-next", disabled: !this.circular && this.internalPage >= this.totalPages - 1, onClick: (e) => this.navForward(e), "aria-label": "Siguiente" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" }, h("path", { d: "M9.341 17.5a.833.833 0 0 0 .589-.244l4.43-4.431a.833.833 0 0 0 0-1.178l-4.43-4.431a.834.834 0 0 0-1.179 1.178l3.83 3.829-3.83 3.829a.833.833 0 0 0 .59 1.421Z", fill: "#475066" }))))), this.showIndicators && this.totalPages > 1 && (h("ul", { class: "dropi-carousel-indicators" }, Array.from({ length: this.totalPages }).map((_, i) => (h("li", { class: { active: i === this.internalPage }, onClick: () => this.onDotClick(i) }, h("button", { type: "button", "aria-label": `Página ${i + 1}` }))))))));
|
|
67
131
|
}
|
|
68
132
|
static get is() { return "dropi-carousel"; }
|
|
69
133
|
static get encapsulation() { return "shadow"; }
|
|
@@ -79,129 +143,149 @@ export class DropiCarousel {
|
|
|
79
143
|
}
|
|
80
144
|
static get properties() {
|
|
81
145
|
return {
|
|
82
|
-
"
|
|
146
|
+
"value": {
|
|
83
147
|
"type": "string",
|
|
84
148
|
"mutable": false,
|
|
85
149
|
"complexType": {
|
|
86
|
-
"original": "
|
|
87
|
-
"resolved": "
|
|
150
|
+
"original": "any[] | string",
|
|
151
|
+
"resolved": "any[] | string",
|
|
88
152
|
"references": {}
|
|
89
153
|
},
|
|
90
154
|
"required": false,
|
|
91
155
|
"optional": false,
|
|
92
156
|
"docs": {
|
|
93
157
|
"tags": [],
|
|
94
|
-
"text": "Array of
|
|
158
|
+
"text": "Items to display (Array of URLs or objects)"
|
|
95
159
|
},
|
|
96
160
|
"getter": false,
|
|
97
161
|
"setter": false,
|
|
98
162
|
"reflect": false,
|
|
99
|
-
"attribute": "
|
|
163
|
+
"attribute": "value",
|
|
100
164
|
"defaultValue": "[]"
|
|
101
165
|
},
|
|
102
|
-
"
|
|
103
|
-
"type": "
|
|
166
|
+
"page": {
|
|
167
|
+
"type": "number",
|
|
168
|
+
"mutable": true,
|
|
169
|
+
"complexType": {
|
|
170
|
+
"original": "number",
|
|
171
|
+
"resolved": "number",
|
|
172
|
+
"references": {}
|
|
173
|
+
},
|
|
174
|
+
"required": false,
|
|
175
|
+
"optional": false,
|
|
176
|
+
"docs": {
|
|
177
|
+
"tags": [],
|
|
178
|
+
"text": "Active page index"
|
|
179
|
+
},
|
|
180
|
+
"getter": false,
|
|
181
|
+
"setter": false,
|
|
182
|
+
"reflect": false,
|
|
183
|
+
"attribute": "page",
|
|
184
|
+
"defaultValue": "0"
|
|
185
|
+
},
|
|
186
|
+
"numVisible": {
|
|
187
|
+
"type": "number",
|
|
104
188
|
"mutable": false,
|
|
105
189
|
"complexType": {
|
|
106
|
-
"original": "
|
|
107
|
-
"resolved": "
|
|
190
|
+
"original": "number",
|
|
191
|
+
"resolved": "number",
|
|
108
192
|
"references": {}
|
|
109
193
|
},
|
|
110
194
|
"required": false,
|
|
111
195
|
"optional": false,
|
|
112
196
|
"docs": {
|
|
113
197
|
"tags": [],
|
|
114
|
-
"text": "
|
|
198
|
+
"text": "Number of items visible per page"
|
|
115
199
|
},
|
|
116
200
|
"getter": false,
|
|
117
201
|
"setter": false,
|
|
118
202
|
"reflect": false,
|
|
119
|
-
"attribute": "
|
|
120
|
-
"defaultValue": "
|
|
203
|
+
"attribute": "num-visible",
|
|
204
|
+
"defaultValue": "1"
|
|
121
205
|
},
|
|
122
|
-
"
|
|
123
|
-
"type": "
|
|
206
|
+
"numScroll": {
|
|
207
|
+
"type": "number",
|
|
124
208
|
"mutable": false,
|
|
125
209
|
"complexType": {
|
|
126
|
-
"original": "
|
|
127
|
-
"resolved": "
|
|
210
|
+
"original": "number",
|
|
211
|
+
"resolved": "number",
|
|
128
212
|
"references": {}
|
|
129
213
|
},
|
|
130
214
|
"required": false,
|
|
131
215
|
"optional": false,
|
|
132
216
|
"docs": {
|
|
133
217
|
"tags": [],
|
|
134
|
-
"text": "
|
|
218
|
+
"text": "Number of items to scroll per click"
|
|
135
219
|
},
|
|
136
220
|
"getter": false,
|
|
137
221
|
"setter": false,
|
|
138
222
|
"reflect": false,
|
|
139
|
-
"attribute": "
|
|
140
|
-
"defaultValue": "
|
|
223
|
+
"attribute": "num-scroll",
|
|
224
|
+
"defaultValue": "1"
|
|
141
225
|
},
|
|
142
|
-
"
|
|
143
|
-
"type": "
|
|
226
|
+
"orientation": {
|
|
227
|
+
"type": "string",
|
|
144
228
|
"mutable": false,
|
|
145
229
|
"complexType": {
|
|
146
|
-
"original": "
|
|
147
|
-
"resolved": "
|
|
230
|
+
"original": "'horizontal' | 'vertical'",
|
|
231
|
+
"resolved": "\"horizontal\" | \"vertical\"",
|
|
148
232
|
"references": {}
|
|
149
233
|
},
|
|
150
234
|
"required": false,
|
|
151
235
|
"optional": false,
|
|
152
236
|
"docs": {
|
|
153
237
|
"tags": [],
|
|
154
|
-
"text": "
|
|
238
|
+
"text": "Orientation of the carousel"
|
|
155
239
|
},
|
|
156
240
|
"getter": false,
|
|
157
241
|
"setter": false,
|
|
158
242
|
"reflect": false,
|
|
159
|
-
"attribute": "
|
|
160
|
-
"defaultValue": "
|
|
243
|
+
"attribute": "orientation",
|
|
244
|
+
"defaultValue": "'horizontal'"
|
|
161
245
|
},
|
|
162
|
-
"
|
|
163
|
-
"type": "
|
|
246
|
+
"showNavigators": {
|
|
247
|
+
"type": "any",
|
|
164
248
|
"mutable": false,
|
|
165
249
|
"complexType": {
|
|
166
|
-
"original": "
|
|
167
|
-
"resolved": "
|
|
250
|
+
"original": "any",
|
|
251
|
+
"resolved": "any",
|
|
168
252
|
"references": {}
|
|
169
253
|
},
|
|
170
254
|
"required": false,
|
|
171
255
|
"optional": false,
|
|
172
256
|
"docs": {
|
|
173
257
|
"tags": [],
|
|
174
|
-
"text": "Show
|
|
258
|
+
"text": "Show navigation arrows"
|
|
175
259
|
},
|
|
176
260
|
"getter": false,
|
|
177
261
|
"setter": false,
|
|
178
262
|
"reflect": false,
|
|
179
|
-
"attribute": "show-
|
|
180
|
-
"defaultValue": "
|
|
263
|
+
"attribute": "show-navigators",
|
|
264
|
+
"defaultValue": "true"
|
|
181
265
|
},
|
|
182
|
-
"
|
|
183
|
-
"type": "
|
|
266
|
+
"showIndicators": {
|
|
267
|
+
"type": "any",
|
|
184
268
|
"mutable": false,
|
|
185
269
|
"complexType": {
|
|
186
|
-
"original": "
|
|
187
|
-
"resolved": "
|
|
270
|
+
"original": "any",
|
|
271
|
+
"resolved": "any",
|
|
188
272
|
"references": {}
|
|
189
273
|
},
|
|
190
274
|
"required": false,
|
|
191
275
|
"optional": false,
|
|
192
276
|
"docs": {
|
|
193
277
|
"tags": [],
|
|
194
|
-
"text": "
|
|
278
|
+
"text": "Show dot indicators"
|
|
195
279
|
},
|
|
196
280
|
"getter": false,
|
|
197
281
|
"setter": false,
|
|
198
282
|
"reflect": false,
|
|
199
|
-
"attribute": "
|
|
200
|
-
"defaultValue": "
|
|
283
|
+
"attribute": "show-indicators",
|
|
284
|
+
"defaultValue": "true"
|
|
201
285
|
},
|
|
202
|
-
"
|
|
286
|
+
"autoplayInterval": {
|
|
203
287
|
"type": "number",
|
|
204
|
-
"mutable":
|
|
288
|
+
"mutable": false,
|
|
205
289
|
"complexType": {
|
|
206
290
|
"original": "number",
|
|
207
291
|
"resolved": "number",
|
|
@@ -211,67 +295,85 @@ export class DropiCarousel {
|
|
|
211
295
|
"optional": false,
|
|
212
296
|
"docs": {
|
|
213
297
|
"tags": [],
|
|
214
|
-
"text": "
|
|
298
|
+
"text": "Autoplay interval in ms (0 = disabled)"
|
|
215
299
|
},
|
|
216
300
|
"getter": false,
|
|
217
301
|
"setter": false,
|
|
218
302
|
"reflect": false,
|
|
219
|
-
"attribute": "
|
|
303
|
+
"attribute": "autoplay-interval",
|
|
220
304
|
"defaultValue": "0"
|
|
221
305
|
},
|
|
222
|
-
"
|
|
223
|
-
"type": "
|
|
306
|
+
"circular": {
|
|
307
|
+
"type": "any",
|
|
224
308
|
"mutable": false,
|
|
225
309
|
"complexType": {
|
|
226
|
-
"original": "
|
|
227
|
-
"resolved": "
|
|
310
|
+
"original": "any",
|
|
311
|
+
"resolved": "any",
|
|
228
312
|
"references": {}
|
|
229
313
|
},
|
|
230
314
|
"required": false,
|
|
231
315
|
"optional": false,
|
|
232
316
|
"docs": {
|
|
233
317
|
"tags": [],
|
|
234
|
-
"text": "
|
|
318
|
+
"text": "Infinite scrolling"
|
|
235
319
|
},
|
|
236
320
|
"getter": false,
|
|
237
321
|
"setter": false,
|
|
238
322
|
"reflect": false,
|
|
239
|
-
"attribute": "
|
|
240
|
-
"defaultValue": "
|
|
323
|
+
"attribute": "circular",
|
|
324
|
+
"defaultValue": "false"
|
|
241
325
|
}
|
|
242
326
|
};
|
|
243
327
|
}
|
|
244
328
|
static get states() {
|
|
245
329
|
return {
|
|
246
|
-
"
|
|
247
|
-
"
|
|
330
|
+
"parsedValue": {},
|
|
331
|
+
"internalPage": {},
|
|
332
|
+
"isAnimating": {},
|
|
333
|
+
"totalPages": {}
|
|
248
334
|
};
|
|
249
335
|
}
|
|
250
336
|
static get events() {
|
|
251
337
|
return [{
|
|
252
|
-
"method": "
|
|
253
|
-
"name": "
|
|
338
|
+
"method": "pageChange",
|
|
339
|
+
"name": "pageChange",
|
|
254
340
|
"bubbles": true,
|
|
255
341
|
"cancelable": true,
|
|
256
342
|
"composed": true,
|
|
257
343
|
"docs": {
|
|
258
344
|
"tags": [],
|
|
259
|
-
"text": "
|
|
345
|
+
"text": ""
|
|
260
346
|
},
|
|
261
347
|
"complexType": {
|
|
262
348
|
"original": "number",
|
|
263
349
|
"resolved": "number",
|
|
264
350
|
"references": {}
|
|
265
351
|
}
|
|
352
|
+
}, {
|
|
353
|
+
"method": "onPage",
|
|
354
|
+
"name": "onPage",
|
|
355
|
+
"bubbles": true,
|
|
356
|
+
"cancelable": true,
|
|
357
|
+
"composed": true,
|
|
358
|
+
"docs": {
|
|
359
|
+
"tags": [],
|
|
360
|
+
"text": ""
|
|
361
|
+
},
|
|
362
|
+
"complexType": {
|
|
363
|
+
"original": "any",
|
|
364
|
+
"resolved": "any",
|
|
365
|
+
"references": {}
|
|
366
|
+
}
|
|
266
367
|
}];
|
|
267
368
|
}
|
|
369
|
+
static get elementRef() { return "el"; }
|
|
268
370
|
static get watchers() {
|
|
269
371
|
return [{
|
|
270
|
-
"propName": "
|
|
271
|
-
"methodName": "
|
|
372
|
+
"propName": "value",
|
|
373
|
+
"methodName": "handleValue"
|
|
272
374
|
}, {
|
|
273
|
-
"propName": "
|
|
274
|
-
"methodName": "
|
|
375
|
+
"propName": "page",
|
|
376
|
+
"methodName": "handlePage"
|
|
275
377
|
}];
|
|
276
378
|
}
|
|
277
379
|
}
|
|
@@ -10,20 +10,20 @@ export class DropiCheckbox {
|
|
|
10
10
|
/** Whether the checkbox is disabled */
|
|
11
11
|
disabled = false;
|
|
12
12
|
/** Emitted when the checked state changes */
|
|
13
|
-
|
|
13
|
+
onChange;
|
|
14
14
|
changeState() {
|
|
15
15
|
if (this.disabled)
|
|
16
16
|
return;
|
|
17
17
|
this.checked = !this.checked;
|
|
18
|
-
this.
|
|
18
|
+
this.onChange.emit(this.checked);
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (h("div", { key: '
|
|
21
|
+
return (h("div", { key: 'fdc1c54733617c0dab1ae11050d90650dc3eba91', class: "container-dropi-checkbox", onClick: () => this.changeState() }, h("div", { key: '6329c1a53e8b9f85ea26ca01afb920583570e85f', class: {
|
|
22
22
|
check: true,
|
|
23
23
|
isCheck: this.checked,
|
|
24
24
|
noCheck: !this.checked,
|
|
25
25
|
disabled: this.disabled,
|
|
26
|
-
} }, h("svg", { key: '
|
|
26
|
+
} }, h("svg", { key: '50b1ebd160e1ee6b28ef23651f1e12afc9406f8a', xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none" }, h("path", { key: '518070eaa2902d4cdc5e905f8a80d06b3d044f3d', d: "M20.5991 5.69251L9.08325 17.2075C9.00583 17.2852 8.91382 17.3469 8.8125 17.389C8.71118 17.4311 8.60255 17.4527 8.49283 17.4527C8.38312 17.4527 8.27449 17.4311 8.17317 17.389C8.07185 17.3469 7.97984 17.2852 7.90242 17.2075L3.44908 12.75C3.37166 12.6723 3.27965 12.6106 3.17833 12.5685C3.07701 12.5264 2.96838 12.5048 2.85867 12.5048C2.74896 12.5048 2.64032 12.5264 2.53901 12.5685C2.43769 12.6106 2.34568 12.6723 2.26825 12.75C2.19052 12.8274 2.12884 12.9194 2.08676 13.0208C2.04467 13.1221 2.02301 13.2307 2.02301 13.3404C2.02301 13.4501 2.04467 13.5588 2.08676 13.6601C2.12884 13.7614 2.19052 13.8534 2.26825 13.9308L6.72325 18.385C7.19321 18.8541 7.83008 19.1175 8.49408 19.1175C9.15809 19.1175 9.79496 18.8541 10.2649 18.385L21.7799 6.87251C21.8575 6.7951 21.9191 6.70314 21.9611 6.6019C22.0031 6.50065 22.0247 6.39212 22.0247 6.28251C22.0247 6.17289 22.0031 6.06436 21.9611 5.96312C21.9191 5.86188 21.8575 5.76992 21.7799 5.69251C21.7025 5.61478 21.6105 5.5531 21.5092 5.51101C21.4078 5.46893 21.2992 5.44727 21.1895 5.44727C21.0798 5.44727 20.9712 5.46893 20.8698 5.51101C20.7685 5.5531 20.6765 5.61478 20.5991 5.69251Z", fill: "#FFFFFF" })))));
|
|
27
27
|
}
|
|
28
28
|
static get is() { return "dropi-checkbox"; }
|
|
29
29
|
static get encapsulation() { return "shadow"; }
|
|
@@ -84,8 +84,8 @@ export class DropiCheckbox {
|
|
|
84
84
|
}
|
|
85
85
|
static get events() {
|
|
86
86
|
return [{
|
|
87
|
-
"method": "
|
|
88
|
-
"name": "
|
|
87
|
+
"method": "onChange",
|
|
88
|
+
"name": "onChange",
|
|
89
89
|
"bubbles": true,
|
|
90
90
|
"cancelable": true,
|
|
91
91
|
"composed": true,
|