@dropi/ui 0.1.19 → 0.1.20
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/assets/icons/ilustration/bg-warning.svg +3 -0
- package/assets/icons/ilustration/default.svg +4 -0
- package/assets/icons/ilustration/error.svg +10 -0
- package/assets/icons/ilustration/exclusive.svg +9 -0
- package/assets/icons/ilustration/info.svg +10 -0
- package/assets/icons/ilustration/loading.svg +4 -0
- package/assets/icons/ilustration/love.svg +9 -0
- package/assets/icons/ilustration/premium-new.svg +14 -0
- package/assets/icons/ilustration/premium.svg +5 -0
- package/assets/icons/ilustration/sorry.svg +4 -0
- package/assets/icons/ilustration/success.svg +11 -0
- package/assets/icons/ilustration/verified-new.svg +9 -0
- package/assets/icons/ilustration/verified.svg +4 -0
- package/assets/icons/ilustration/warning.svg +9 -0
- package/assets/lottie-files/loading.json +1 -0
- package/dist/cjs/dropi-accordion.cjs.entry.js +3 -3
- package/dist/cjs/dropi-alert-modal.cjs.entry.js +72 -0
- package/dist/cjs/dropi-alert.cjs.entry.js +7 -7
- package/dist/cjs/dropi-avatars.cjs.entry.js +2 -2
- package/dist/cjs/dropi-badge.cjs.entry.js +2 -2
- package/dist/cjs/dropi-banner-external.cjs.entry.js +47 -0
- package/dist/cjs/dropi-breadcrumb.cjs.entry.js +48 -0
- package/dist/cjs/dropi-button.cjs.entry.js +7 -5
- package/dist/cjs/dropi-card-checkbox.cjs.entry.js +45 -0
- package/dist/cjs/dropi-card-product.cjs.entry.js +59 -0
- package/dist/cjs/dropi-card-section.cjs.entry.js +5 -5
- package/dist/cjs/dropi-carousel.cjs.entry.js +83 -0
- package/dist/cjs/dropi-checkbox-selection-list.cjs.entry.js +5 -5
- package/dist/cjs/dropi-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/dropi-chips.cjs.entry.js +4 -4
- package/dist/cjs/dropi-city-selector.cjs.entry.js +85 -0
- package/dist/cjs/dropi-color-picker.cjs.entry.js +69 -0
- package/dist/cjs/dropi-country-flags.cjs.entry.js +37 -0
- package/dist/cjs/dropi-country-selector.cjs.entry.js +164 -0
- package/dist/cjs/dropi-date-picker-range.cjs.entry.js +115 -0
- package/dist/cjs/dropi-date-picker.cjs.entry.js +205 -0
- package/dist/cjs/dropi-drawer.cjs.entry.js +50 -0
- package/dist/cjs/dropi-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/dropi-empty-state.cjs.entry.js +9 -5
- package/dist/cjs/dropi-favorite-button.cjs.entry.js +3 -3
- package/dist/cjs/dropi-file-upload-progress-bar.cjs.entry.js +52 -0
- package/dist/cjs/dropi-file-upload.cjs.entry.js +84 -0
- package/dist/cjs/dropi-icon.cjs.entry.js +2 -2
- package/dist/cjs/dropi-ilustration-icon.cjs.entry.js +39 -0
- package/dist/cjs/dropi-image-miniature.cjs.entry.js +3 -3
- package/dist/cjs/dropi-image-overlay.cjs.entry.js +4 -4
- package/dist/cjs/dropi-input.cjs.entry.js +7 -7
- package/dist/cjs/dropi-languages-selector.cjs.entry.js +57 -0
- package/dist/cjs/dropi-logo.cjs.entry.js +3 -3
- package/dist/cjs/dropi-lottie-loader.cjs.entry.js +5 -5
- package/dist/cjs/dropi-media-player.cjs.entry.js +102 -0
- package/dist/cjs/dropi-modal.cjs.entry.js +12 -9
- package/dist/cjs/dropi-navbar.cjs.entry.js +52 -0
- package/dist/cjs/dropi-otp-send-code.cjs.entry.js +6 -6
- package/dist/cjs/dropi-paginator.cjs.entry.js +4 -4
- package/dist/cjs/dropi-phone-input.cjs.entry.js +84 -0
- package/dist/cjs/dropi-radio-button.cjs.entry.js +3 -3
- package/dist/cjs/dropi-radio-selection-list.cjs.entry.js +5 -5
- package/dist/cjs/dropi-read-more.cjs.entry.js +2 -2
- package/dist/cjs/dropi-search.cjs.entry.js +8 -8
- package/dist/cjs/dropi-select.cjs.entry.js +7 -7
- package/dist/cjs/dropi-sidebar.cjs.entry.js +67 -0
- package/dist/cjs/dropi-simple-stepper.cjs.entry.js +2 -2
- package/dist/cjs/dropi-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/dropi-steps.cjs.entry.js +2 -2
- package/dist/cjs/dropi-switch.cjs.entry.js +3 -3
- package/dist/cjs/dropi-table.cjs.entry.js +124 -0
- package/dist/cjs/dropi-tabs.cjs.entry.js +3 -3
- package/dist/cjs/dropi-tag-type-product.cjs.entry.js +19 -0
- package/dist/cjs/dropi-tag.cjs.entry.js +3 -3
- package/dist/cjs/dropi-text-area.cjs.entry.js +8 -8
- package/dist/cjs/dropi-time-line.cjs.entry.js +2 -2
- package/dist/cjs/dropi-toast.cjs.entry.js +2 -2
- package/dist/cjs/dropi-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/dropi-ui.cjs.js +2 -2
- package/dist/cjs/dropi-vertical-steps.cjs.entry.js +3 -3
- package/dist/cjs/dropi-youtube-lazy-video.cjs.entry.js +33 -0
- package/dist/cjs/{index-B6R6Ojma.js → index-DcOH2ZjX.js} +3 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +25 -1
- package/dist/collection/components/dropi-accordion/dropi-accordion.js +1 -1
- package/dist/collection/components/dropi-alert/dropi-alert.css +25 -14
- package/dist/collection/components/dropi-alert/dropi-alert.js +2 -2
- package/dist/collection/components/dropi-alert-modal/dropi-alert-modal.css +73 -0
- package/dist/collection/components/dropi-alert-modal/dropi-alert-modal.js +395 -0
- package/dist/collection/components/dropi-avatars/dropi-avatars.js +1 -1
- package/dist/collection/components/dropi-badge/dropi-badge.js +1 -1
- package/dist/collection/components/dropi-banner-external/dropi-banner-external.css +56 -0
- package/dist/collection/components/dropi-banner-external/dropi-banner-external.js +179 -0
- package/dist/collection/components/dropi-breadcrumb/dropi-breadcrumb.css +69 -0
- package/dist/collection/components/dropi-breadcrumb/dropi-breadcrumb.js +171 -0
- package/dist/collection/components/dropi-button/dropi-button.css +4 -2
- package/dist/collection/components/dropi-button/dropi-button.js +24 -2
- package/dist/collection/components/dropi-card-checkbox/dropi-card-checkbox.css +90 -0
- package/dist/collection/components/dropi-card-checkbox/dropi-card-checkbox.js +219 -0
- package/dist/collection/components/dropi-card-product/dropi-card-product.css +158 -0
- package/dist/collection/components/dropi-card-product/dropi-card-product.js +353 -0
- package/dist/collection/components/dropi-card-section/dropi-card-section.js +2 -2
- package/dist/collection/components/dropi-carousel/dropi-carousel.css +103 -0
- package/dist/collection/components/dropi-carousel/dropi-carousel.js +277 -0
- package/dist/collection/components/dropi-checkbox/dropi-checkbox.js +2 -2
- package/dist/collection/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.js +2 -2
- package/dist/collection/components/dropi-chips/dropi-chips.css +2 -0
- package/dist/collection/components/dropi-chips/dropi-chips.js +1 -1
- package/dist/collection/components/dropi-city-selector/dropi-city-selector.css +156 -0
- package/dist/collection/components/dropi-city-selector/dropi-city-selector.js +213 -0
- package/dist/collection/components/dropi-color-picker/dropi-color-picker.css +183 -0
- package/dist/collection/components/dropi-color-picker/dropi-color-picker.js +235 -0
- package/dist/collection/components/dropi-country-flags/dropi-country-flags.css +30 -0
- package/dist/collection/components/dropi-country-flags/dropi-country-flags.js +129 -0
- package/dist/collection/components/dropi-country-selector/dropi-country-selector.css +164 -0
- package/dist/collection/components/dropi-country-selector/dropi-country-selector.js +327 -0
- package/dist/collection/components/dropi-date-picker/dropi-date-picker.css +150 -0
- package/dist/collection/components/dropi-date-picker/dropi-date-picker.js +434 -0
- package/dist/collection/components/dropi-date-picker-range/dropi-date-picker-range.css +143 -0
- package/dist/collection/components/dropi-date-picker-range/dropi-date-picker-range.js +327 -0
- package/dist/collection/components/dropi-drawer/dropi-drawer.css +107 -0
- package/dist/collection/components/dropi-drawer/dropi-drawer.js +198 -0
- package/dist/collection/components/dropi-dropdown/dropi-dropdown.js +1 -1
- package/dist/collection/components/dropi-empty-state/dropi-empty-state.css +1 -0
- package/dist/collection/components/dropi-empty-state/dropi-empty-state.js +45 -1
- package/dist/collection/components/dropi-favorite-button/dropi-favorite-button.js +1 -1
- package/dist/collection/components/dropi-file-upload/dropi-file-upload.css +66 -0
- package/dist/collection/components/dropi-file-upload/dropi-file-upload.js +257 -0
- package/dist/collection/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.css +111 -0
- package/dist/collection/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.js +198 -0
- package/dist/collection/components/dropi-icon/dropi-icon.js +1 -1
- package/dist/collection/components/dropi-ilustration-icon/dropi-ilustration-icon.css +91 -0
- package/dist/collection/components/dropi-ilustration-icon/dropi-ilustration-icon.js +150 -0
- package/dist/collection/components/dropi-image-miniature/dropi-image-miniature.js +1 -1
- package/dist/collection/components/dropi-image-overlay/dropi-image-overlay.css +83 -42
- package/dist/collection/components/dropi-image-overlay/dropi-image-overlay.js +1 -1
- package/dist/collection/components/dropi-input/dropi-input.js +2 -2
- package/dist/collection/components/dropi-languages-selector/dropi-languages-selector.css +79 -0
- package/dist/collection/components/dropi-languages-selector/dropi-languages-selector.js +154 -0
- package/dist/collection/components/dropi-logo/dropi-logo.js +2 -2
- package/dist/collection/components/dropi-lottie-loader/dropi-lottie-loader.js +7 -7
- package/dist/collection/components/dropi-media-player/dropi-media-player.css +127 -0
- package/dist/collection/components/dropi-media-player/dropi-media-player.js +294 -0
- package/dist/collection/components/dropi-modal/dropi-modal.css +9 -3
- package/dist/collection/components/dropi-modal/dropi-modal.js +10 -7
- package/dist/collection/components/dropi-navbar/dropi-navbar.css +166 -0
- package/dist/collection/components/dropi-navbar/dropi-navbar.js +286 -0
- package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.css +16 -9
- package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.js +2 -2
- package/dist/collection/components/dropi-paginator/dropi-paginator.js +2 -2
- package/dist/collection/components/dropi-phone-input/dropi-phone-input.css +152 -0
- package/dist/collection/components/dropi-phone-input/dropi-phone-input.js +272 -0
- package/dist/collection/components/dropi-radio-button/dropi-radio-button.js +1 -1
- package/dist/collection/components/dropi-radio-selection-list/dropi-radio-selection-list.js +2 -2
- package/dist/collection/components/dropi-read-more/dropi-read-more.js +1 -1
- package/dist/collection/components/dropi-search/dropi-search.js +2 -2
- package/dist/collection/components/dropi-select/dropi-select.js +1 -1
- package/dist/collection/components/dropi-sidebar/dropi-sidebar.css +117 -0
- package/dist/collection/components/dropi-sidebar/dropi-sidebar.js +233 -0
- package/dist/collection/components/dropi-simple-stepper/dropi-simple-stepper.js +1 -1
- package/dist/collection/components/dropi-steps/dropi-steps.js +1 -1
- package/dist/collection/components/dropi-switch/dropi-switch.js +1 -1
- package/dist/collection/components/dropi-table/dropi-table.css +80 -0
- package/dist/collection/components/dropi-table/dropi-table.js +333 -0
- package/dist/collection/components/dropi-tabs/dropi-tabs.js +1 -1
- package/dist/collection/components/dropi-tag/dropi-tag.css +1 -2
- package/dist/collection/components/dropi-tag/dropi-tag.js +1 -1
- package/dist/collection/components/dropi-tag-type-product/dropi-tag-type-product.css +14 -0
- package/dist/collection/components/dropi-tag-type-product/dropi-tag-type-product.js +48 -0
- package/dist/collection/components/dropi-text-area/dropi-text-area.css +2 -1
- package/dist/collection/components/dropi-text-area/dropi-text-area.js +2 -2
- package/dist/collection/components/dropi-time-line/dropi-time-line.js +1 -1
- package/dist/collection/components/dropi-toast/dropi-toast.js +1 -1
- package/dist/collection/components/dropi-tooltip/dropi-tooltip.js +1 -1
- package/dist/collection/components/dropi-vertical-steps/dropi-vertical-steps.js +1 -1
- package/dist/collection/components/dropi-youtube-lazy-video/dropi-youtube-lazy-video.css +73 -0
- package/dist/collection/components/dropi-youtube-lazy-video/dropi-youtube-lazy-video.js +110 -0
- package/dist/components/dropi-accordion.js +1 -1
- package/dist/components/dropi-alert-modal.d.ts +11 -0
- package/dist/components/dropi-alert-modal.js +1 -0
- package/dist/components/dropi-alert.js +1 -1
- package/dist/components/dropi-avatars.js +1 -1
- package/dist/components/dropi-badge.js +1 -1
- package/dist/components/dropi-banner-external.d.ts +11 -0
- package/dist/components/dropi-banner-external.js +1 -0
- package/dist/components/dropi-breadcrumb.d.ts +11 -0
- package/dist/components/dropi-breadcrumb.js +1 -0
- package/dist/components/dropi-button.js +1 -1
- package/dist/components/dropi-card-checkbox.d.ts +11 -0
- package/dist/components/dropi-card-checkbox.js +1 -0
- package/dist/components/dropi-card-product.d.ts +11 -0
- package/dist/components/dropi-card-product.js +1 -0
- package/dist/components/dropi-card-section.js +1 -1
- package/dist/components/dropi-carousel.d.ts +11 -0
- package/dist/components/dropi-carousel.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/dropi-city-selector.js +1 -0
- package/dist/components/dropi-color-picker.d.ts +11 -0
- package/dist/components/dropi-color-picker.js +1 -0
- package/dist/components/dropi-country-flags.d.ts +11 -0
- package/dist/components/dropi-country-flags.js +1 -0
- package/dist/components/dropi-country-selector.d.ts +11 -0
- package/dist/components/dropi-country-selector.js +1 -0
- package/dist/components/dropi-date-picker-range.d.ts +11 -0
- package/dist/components/dropi-date-picker-range.js +1 -0
- package/dist/components/dropi-date-picker.d.ts +11 -0
- package/dist/components/dropi-date-picker.js +1 -0
- package/dist/components/dropi-drawer.d.ts +11 -0
- package/dist/components/dropi-drawer.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/dropi-file-upload-progress-bar.js +1 -0
- package/dist/components/dropi-file-upload.d.ts +11 -0
- package/dist/components/dropi-file-upload.js +1 -0
- package/dist/components/dropi-icon.js +1 -1
- package/dist/components/dropi-ilustration-icon.d.ts +11 -0
- package/dist/components/dropi-ilustration-icon.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/dropi-languages-selector.js +1 -0
- package/dist/components/dropi-logo.js +1 -1
- package/dist/components/dropi-lottie-loader.js +1 -1
- package/dist/components/dropi-media-player.d.ts +11 -0
- package/dist/components/dropi-media-player.js +1 -0
- package/dist/components/dropi-modal.js +1 -1
- package/dist/components/dropi-navbar.d.ts +11 -0
- package/dist/components/dropi-navbar.js +1 -0
- package/dist/components/dropi-otp-send-code.js +1 -1
- package/dist/components/dropi-paginator.js +1 -1
- package/dist/components/dropi-phone-input.d.ts +11 -0
- package/dist/components/dropi-phone-input.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/dropi-sidebar.js +1 -0
- package/dist/components/dropi-simple-stepper.js +1 -1
- package/dist/components/dropi-steps.js +1 -1
- package/dist/components/dropi-switch.js +1 -1
- package/dist/components/dropi-table.d.ts +11 -0
- package/dist/components/dropi-table.js +1 -0
- package/dist/components/dropi-tabs.js +1 -1
- package/dist/components/dropi-tag-type-product.d.ts +11 -0
- package/dist/components/dropi-tag-type-product.js +1 -0
- 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.js +1 -1
- package/dist/components/dropi-vertical-steps.js +1 -1
- package/dist/components/dropi-youtube-lazy-video.d.ts +11 -0
- package/dist/components/dropi-youtube-lazy-video.js +1 -0
- package/dist/components/index.js +1 -1
- package/dist/components/p-BY_J-4Sm.js +1 -0
- package/dist/components/p-CYCV-5qV.js +1 -0
- package/dist/components/p-D0ZJcRZn.js +1 -0
- package/dist/components/p-DUPOnSiL.js +1 -0
- package/dist/components/p-DUX_WvqW.js +1 -0
- package/dist/components/{p-CPs3fHRc.js → p-wO1yy0Zr.js} +1 -1
- package/dist/dropi-ui/dropi-ui.esm.js +1 -1
- package/dist/dropi-ui/p-053ebb91.entry.js +1 -0
- package/dist/dropi-ui/p-0acd32e6.entry.js +1 -0
- package/dist/dropi-ui/{p-ebfd4665.entry.js → p-0e88a543.entry.js} +1 -1
- package/dist/dropi-ui/p-0f2f5f75.entry.js +1 -0
- package/dist/dropi-ui/{p-2cee44f9.entry.js → p-131d87ac.entry.js} +1 -1
- package/dist/dropi-ui/p-1af4719d.entry.js +1 -0
- package/dist/dropi-ui/p-1e8f6d4a.entry.js +1 -0
- package/dist/dropi-ui/p-22132b1a.entry.js +1 -0
- package/dist/dropi-ui/p-2c1aaf6f.entry.js +1 -0
- package/dist/dropi-ui/p-2e9b87a9.entry.js +1 -0
- package/dist/dropi-ui/p-3414a414.entry.js +1 -0
- package/dist/dropi-ui/p-34ad54a1.entry.js +1 -0
- package/dist/dropi-ui/p-3531378b.entry.js +1 -0
- package/dist/dropi-ui/p-3983a7aa.entry.js +1 -0
- package/dist/dropi-ui/p-40e91337.entry.js +1 -0
- package/dist/dropi-ui/{p-c2316d4d.entry.js → p-4a8646e5.entry.js} +1 -1
- package/dist/dropi-ui/p-4be64bf0.entry.js +1 -0
- package/dist/dropi-ui/p-4ec17510.entry.js +1 -0
- package/dist/dropi-ui/p-5023eef0.entry.js +1 -0
- package/dist/dropi-ui/p-51a97b1a.entry.js +1 -0
- package/dist/dropi-ui/p-52796d84.entry.js +1 -0
- package/dist/dropi-ui/p-53a5bd7b.entry.js +1 -0
- package/dist/dropi-ui/p-5425f941.entry.js +1 -0
- package/dist/dropi-ui/p-58d0bf7a.entry.js +1 -0
- package/dist/dropi-ui/p-59d3bd9b.entry.js +1 -0
- package/dist/dropi-ui/p-5e957631.entry.js +1 -0
- package/dist/dropi-ui/p-64cbf4ea.entry.js +1 -0
- package/dist/dropi-ui/{p-c10cbb8d.entry.js → p-68080534.entry.js} +1 -1
- package/dist/dropi-ui/{p-cb5fd7a9.entry.js → p-6da6b97e.entry.js} +1 -1
- package/dist/dropi-ui/p-6df57f25.entry.js +1 -0
- package/dist/dropi-ui/p-7c916570.entry.js +1 -0
- package/dist/dropi-ui/p-7e95462a.entry.js +1 -0
- package/dist/dropi-ui/{p-30fdd316.entry.js → p-80089042.entry.js} +1 -1
- package/dist/dropi-ui/p-8768bb11.entry.js +1 -0
- package/dist/dropi-ui/p-896f2900.entry.js +1 -0
- package/dist/dropi-ui/p-89ac1ff2.entry.js +1 -0
- package/dist/dropi-ui/p-8ce79c69.entry.js +1 -0
- package/dist/dropi-ui/p-8e809670.entry.js +1 -0
- package/dist/dropi-ui/p-93b207b7.entry.js +1 -0
- package/dist/dropi-ui/p-983f72ad.entry.js +1 -0
- package/dist/dropi-ui/p-98babb78.entry.js +1 -0
- package/dist/dropi-ui/p-9fc53d50.entry.js +1 -0
- package/dist/dropi-ui/p-Tbza12Gt.js +2 -0
- package/dist/dropi-ui/p-a20705fe.entry.js +1 -0
- package/dist/dropi-ui/p-a72da98f.entry.js +1 -0
- package/dist/dropi-ui/p-a876d57c.entry.js +1 -0
- package/dist/dropi-ui/p-b1b0f938.entry.js +1 -0
- package/dist/dropi-ui/p-b2e176b1.entry.js +1 -0
- package/dist/dropi-ui/p-b41c8a6c.entry.js +1 -0
- package/dist/dropi-ui/p-b890fd5b.entry.js +1 -0
- package/dist/dropi-ui/p-bf5a53ef.entry.js +1 -0
- package/dist/dropi-ui/{p-e721127d.entry.js → p-c0677661.entry.js} +1 -1
- package/dist/dropi-ui/{p-a9116dbe.entry.js → p-c2562a1c.entry.js} +1 -1
- package/dist/dropi-ui/p-c2b5d0fb.entry.js +1 -0
- package/dist/dropi-ui/{p-061e1ad4.entry.js → p-c4d4396b.entry.js} +1 -1
- package/dist/dropi-ui/{p-724a2aea.entry.js → p-c9ebd31b.entry.js} +1 -1
- package/dist/dropi-ui/p-cecfb68e.entry.js +1 -0
- package/dist/dropi-ui/p-d0b47e2e.entry.js +1 -0
- package/dist/dropi-ui/p-dcefef51.entry.js +1 -0
- package/dist/dropi-ui/p-e4b7e15f.entry.js +1 -0
- package/dist/dropi-ui/{p-b0d3442e.entry.js → p-e7f4ed25.entry.js} +1 -1
- package/dist/dropi-ui/p-f1d69b15.entry.js +1 -0
- package/dist/esm/dropi-accordion.entry.js +3 -3
- package/dist/esm/dropi-alert-modal.entry.js +70 -0
- package/dist/esm/dropi-alert.entry.js +7 -7
- package/dist/esm/dropi-avatars.entry.js +2 -2
- package/dist/esm/dropi-badge.entry.js +2 -2
- package/dist/esm/dropi-banner-external.entry.js +45 -0
- package/dist/esm/dropi-breadcrumb.entry.js +46 -0
- package/dist/esm/dropi-button.entry.js +7 -5
- package/dist/esm/dropi-card-checkbox.entry.js +43 -0
- package/dist/esm/dropi-card-product.entry.js +57 -0
- package/dist/esm/dropi-card-section.entry.js +5 -5
- package/dist/esm/dropi-carousel.entry.js +81 -0
- package/dist/esm/dropi-checkbox-selection-list.entry.js +5 -5
- package/dist/esm/dropi-checkbox.entry.js +4 -4
- package/dist/esm/dropi-chips.entry.js +4 -4
- package/dist/esm/dropi-city-selector.entry.js +83 -0
- package/dist/esm/dropi-color-picker.entry.js +67 -0
- package/dist/esm/dropi-country-flags.entry.js +35 -0
- package/dist/esm/dropi-country-selector.entry.js +162 -0
- package/dist/esm/dropi-date-picker-range.entry.js +113 -0
- package/dist/esm/dropi-date-picker.entry.js +203 -0
- package/dist/esm/dropi-drawer.entry.js +48 -0
- package/dist/esm/dropi-dropdown.entry.js +3 -3
- package/dist/esm/dropi-empty-state.entry.js +9 -5
- package/dist/esm/dropi-favorite-button.entry.js +3 -3
- package/dist/esm/dropi-file-upload-progress-bar.entry.js +50 -0
- package/dist/esm/dropi-file-upload.entry.js +82 -0
- package/dist/esm/dropi-icon.entry.js +2 -2
- package/dist/esm/dropi-ilustration-icon.entry.js +37 -0
- package/dist/esm/dropi-image-miniature.entry.js +3 -3
- package/dist/esm/dropi-image-overlay.entry.js +4 -4
- package/dist/esm/dropi-input.entry.js +7 -7
- package/dist/esm/dropi-languages-selector.entry.js +55 -0
- package/dist/esm/dropi-logo.entry.js +3 -3
- package/dist/esm/dropi-lottie-loader.entry.js +5 -5
- package/dist/esm/dropi-media-player.entry.js +100 -0
- package/dist/esm/dropi-modal.entry.js +12 -9
- package/dist/esm/dropi-navbar.entry.js +50 -0
- package/dist/esm/dropi-otp-send-code.entry.js +6 -6
- package/dist/esm/dropi-paginator.entry.js +4 -4
- package/dist/esm/dropi-phone-input.entry.js +82 -0
- package/dist/esm/dropi-radio-button.entry.js +3 -3
- package/dist/esm/dropi-radio-selection-list.entry.js +5 -5
- package/dist/esm/dropi-read-more.entry.js +2 -2
- package/dist/esm/dropi-search.entry.js +8 -8
- package/dist/esm/dropi-select.entry.js +7 -7
- package/dist/esm/dropi-sidebar.entry.js +65 -0
- package/dist/esm/dropi-simple-stepper.entry.js +2 -2
- package/dist/esm/dropi-skeleton.entry.js +1 -1
- package/dist/esm/dropi-steps.entry.js +2 -2
- package/dist/esm/dropi-switch.entry.js +3 -3
- package/dist/esm/dropi-table.entry.js +122 -0
- package/dist/esm/dropi-tabs.entry.js +3 -3
- package/dist/esm/dropi-tag-type-product.entry.js +17 -0
- package/dist/esm/dropi-tag.entry.js +3 -3
- package/dist/esm/dropi-text-area.entry.js +8 -8
- package/dist/esm/dropi-time-line.entry.js +2 -2
- package/dist/esm/dropi-toast.entry.js +2 -2
- package/dist/esm/dropi-tooltip.entry.js +2 -2
- package/dist/esm/dropi-ui.js +3 -3
- package/dist/esm/dropi-vertical-steps.entry.js +3 -3
- package/dist/esm/dropi-youtube-lazy-video.entry.js +31 -0
- package/dist/esm/{index-Twbb5MNM.js → index-Tbza12Gt.js} +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/dropi-alert-modal/dropi-alert-modal.d.ts +48 -0
- package/dist/types/components/dropi-banner-external/dropi-banner-external.d.ts +30 -0
- package/dist/types/components/dropi-breadcrumb/dropi-breadcrumb.d.ts +31 -0
- package/dist/types/components/dropi-button/dropi-button.d.ts +2 -0
- package/dist/types/components/dropi-card-checkbox/dropi-card-checkbox.d.ts +33 -0
- package/dist/types/components/dropi-card-product/dropi-card-product.d.ts +39 -0
- package/dist/types/components/dropi-carousel/dropi-carousel.d.ts +40 -0
- package/dist/types/components/dropi-city-selector/dropi-city-selector.d.ts +46 -0
- package/dist/types/components/dropi-color-picker/dropi-color-picker.d.ts +31 -0
- package/dist/types/components/dropi-country-flags/dropi-country-flags.d.ts +19 -0
- package/dist/types/components/dropi-country-selector/dropi-country-selector.d.ts +39 -0
- package/dist/types/components/dropi-date-picker/dropi-date-picker.d.ts +47 -0
- package/dist/types/components/dropi-date-picker-range/dropi-date-picker-range.d.ts +50 -0
- package/dist/types/components/dropi-drawer/dropi-drawer.d.ts +25 -0
- package/dist/types/components/dropi-empty-state/dropi-empty-state.d.ts +4 -0
- package/dist/types/components/dropi-file-upload/dropi-file-upload.d.ts +37 -0
- package/dist/types/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.d.ts +25 -0
- package/dist/types/components/dropi-ilustration-icon/dropi-ilustration-icon.d.ts +24 -0
- package/dist/types/components/dropi-languages-selector/dropi-languages-selector.d.ts +31 -0
- package/dist/types/components/dropi-media-player/dropi-media-player.d.ts +44 -0
- package/dist/types/components/dropi-navbar/dropi-navbar.d.ts +40 -0
- package/dist/types/components/dropi-phone-input/dropi-phone-input.d.ts +34 -0
- package/dist/types/components/dropi-sidebar/dropi-sidebar.d.ts +35 -0
- package/dist/types/components/dropi-table/dropi-table.d.ts +57 -0
- package/dist/types/components/dropi-tag-type-product/dropi-tag-type-product.d.ts +9 -0
- package/dist/types/components/dropi-youtube-lazy-video/dropi-youtube-lazy-video.d.ts +19 -0
- package/dist/types/components.d.ts +4047 -1043
- package/package.json +1 -1
- package/scripts/setup.js +2 -0
- package/dist/components/p-DKXrREI4.js +0 -1
- package/dist/components/p-Ds74ZOlC.js +0 -1
- package/dist/components/p-WZTFyFH2.js +0 -1
- package/dist/dropi-ui/p-0c13dded.entry.js +0 -1
- package/dist/dropi-ui/p-121c8a09.entry.js +0 -1
- package/dist/dropi-ui/p-291a1416.entry.js +0 -1
- package/dist/dropi-ui/p-3537ee5a.entry.js +0 -1
- package/dist/dropi-ui/p-3d859657.entry.js +0 -1
- package/dist/dropi-ui/p-433d161d.entry.js +0 -1
- package/dist/dropi-ui/p-4bdfad16.entry.js +0 -1
- package/dist/dropi-ui/p-4ea7d3a7.entry.js +0 -1
- package/dist/dropi-ui/p-51c8ef68.entry.js +0 -1
- package/dist/dropi-ui/p-54780c90.entry.js +0 -1
- package/dist/dropi-ui/p-66deb85e.entry.js +0 -1
- package/dist/dropi-ui/p-68f81080.entry.js +0 -1
- package/dist/dropi-ui/p-74c37688.entry.js +0 -1
- package/dist/dropi-ui/p-7cec1cea.entry.js +0 -1
- package/dist/dropi-ui/p-7daa2677.entry.js +0 -1
- package/dist/dropi-ui/p-8906a68d.entry.js +0 -1
- package/dist/dropi-ui/p-Twbb5MNM.js +0 -2
- package/dist/dropi-ui/p-a4204ece.entry.js +0 -1
- package/dist/dropi-ui/p-a5650d8f.entry.js +0 -1
- package/dist/dropi-ui/p-b36b819f.entry.js +0 -1
- package/dist/dropi-ui/p-d1e1b716.entry.js +0 -1
- package/dist/dropi-ui/p-d5ecc394.entry.js +0 -1
- package/dist/dropi-ui/p-db6c9828.entry.js +0 -1
- package/dist/dropi-ui/p-e8557da0.entry.js +0 -1
- package/dist/dropi-ui/p-f3cef35a.entry.js +0 -1
- package/dist/dropi-ui/p-f6a69c4e.entry.js +0 -1
- package/dist/dropi-ui/p-ff45e7c8.entry.js +0 -1
|
@@ -0,0 +1,277 @@
|
|
|
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
|
+
export class DropiCarousel {
|
|
8
|
+
/** Array of image URLs or JSON string */
|
|
9
|
+
images = [];
|
|
10
|
+
/** Alt text prefix for images */
|
|
11
|
+
altPrefix = 'Imagen';
|
|
12
|
+
/** Show navigation arrows */
|
|
13
|
+
showArrows = true;
|
|
14
|
+
/** Show dot indicators */
|
|
15
|
+
showDots = true;
|
|
16
|
+
/** Show thumbnail strip */
|
|
17
|
+
showThumbs = false;
|
|
18
|
+
/** Autoplay interval in ms (0 = disabled) */
|
|
19
|
+
autoplay = 0;
|
|
20
|
+
/** Active index (controlled) */
|
|
21
|
+
activeIndex = 0;
|
|
22
|
+
/** Object-fit for images */
|
|
23
|
+
objectFit = 'cover';
|
|
24
|
+
parsedImages = [];
|
|
25
|
+
current = 0;
|
|
26
|
+
timer;
|
|
27
|
+
/** Emitted when slide changes. e.detail = new index */
|
|
28
|
+
dropiSlideChange;
|
|
29
|
+
imagesChanged(val) {
|
|
30
|
+
this.parsedImages = typeof val === 'string' ? JSON.parse(val) : (val || []);
|
|
31
|
+
}
|
|
32
|
+
activeIndexChanged(val) {
|
|
33
|
+
this.current = val;
|
|
34
|
+
}
|
|
35
|
+
componentWillLoad() {
|
|
36
|
+
this.imagesChanged(this.images);
|
|
37
|
+
this.current = this.activeIndex;
|
|
38
|
+
}
|
|
39
|
+
componentDidLoad() {
|
|
40
|
+
if (this.autoplay > 0) {
|
|
41
|
+
this.startAutoplay();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
disconnectedCallback() {
|
|
45
|
+
this.stopAutoplay();
|
|
46
|
+
}
|
|
47
|
+
startAutoplay() {
|
|
48
|
+
this.timer = setInterval(() => this.next(), this.autoplay);
|
|
49
|
+
}
|
|
50
|
+
stopAutoplay() {
|
|
51
|
+
if (this.timer)
|
|
52
|
+
clearInterval(this.timer);
|
|
53
|
+
}
|
|
54
|
+
go(index) {
|
|
55
|
+
const len = this.parsedImages.length;
|
|
56
|
+
this.current = ((index % len) + len) % len;
|
|
57
|
+
this.activeIndex = this.current;
|
|
58
|
+
this.dropiSlideChange.emit(this.current);
|
|
59
|
+
}
|
|
60
|
+
prev() { this.go(this.current - 1); }
|
|
61
|
+
next() { this.go(this.current + 1); }
|
|
62
|
+
render() {
|
|
63
|
+
const imgs = this.parsedImages;
|
|
64
|
+
if (!imgs.length)
|
|
65
|
+
return null;
|
|
66
|
+
return (h("div", { class: "carousel" }, h("div", { class: "carousel__stage" }, imgs.map((src, i) => (h("div", { class: { 'carousel__slide': true, 'carousel__slide--active': i === this.current }, "aria-hidden": i !== this.current }, h("img", { class: "carousel__img", src: src, alt: `${this.altPrefix} ${i + 1}`, style: { objectFit: this.objectFit }, loading: "lazy" })))), this.showArrows && imgs.length > 1 && (h("button", { class: "carousel__nav carousel__nav--prev", onClick: () => this.prev(), "aria-label": "Anterior" }, h("dropi-icon", { name: "Arrow-Left-2", width: "20px", height: "20px", color: "Neutral-White" }))), this.showArrows && imgs.length > 1 && (h("button", { class: "carousel__nav carousel__nav--next", onClick: () => this.next(), "aria-label": "Siguiente" }, h("dropi-icon", { name: "Arrow-Right-2", width: "20px", height: "20px", color: "Neutral-White" })))), this.showDots && imgs.length > 1 && (h("div", { class: "carousel__dots" }, imgs.map((_, i) => (h("button", { class: { 'carousel__dot': true, 'carousel__dot--active': i === this.current }, onClick: () => this.go(i), "aria-label": `Ir a diapositiva ${i + 1}` }))))), this.showThumbs && imgs.length > 1 && (h("div", { class: "carousel__thumbs" }, imgs.map((src, i) => (h("img", { class: { 'carousel__thumb': true, 'carousel__thumb--active': i === this.current }, src: src, alt: `${this.altPrefix} ${i + 1}`, onClick: () => this.go(i), loading: "lazy" })))))));
|
|
67
|
+
}
|
|
68
|
+
static get is() { return "dropi-carousel"; }
|
|
69
|
+
static get encapsulation() { return "shadow"; }
|
|
70
|
+
static get originalStyleUrls() {
|
|
71
|
+
return {
|
|
72
|
+
"$": ["dropi-carousel.css"]
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
static get styleUrls() {
|
|
76
|
+
return {
|
|
77
|
+
"$": ["dropi-carousel.css"]
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
static get properties() {
|
|
81
|
+
return {
|
|
82
|
+
"images": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"mutable": false,
|
|
85
|
+
"complexType": {
|
|
86
|
+
"original": "string[] | string",
|
|
87
|
+
"resolved": "string | string[]",
|
|
88
|
+
"references": {}
|
|
89
|
+
},
|
|
90
|
+
"required": false,
|
|
91
|
+
"optional": false,
|
|
92
|
+
"docs": {
|
|
93
|
+
"tags": [],
|
|
94
|
+
"text": "Array of image URLs or JSON string"
|
|
95
|
+
},
|
|
96
|
+
"getter": false,
|
|
97
|
+
"setter": false,
|
|
98
|
+
"reflect": false,
|
|
99
|
+
"attribute": "images",
|
|
100
|
+
"defaultValue": "[]"
|
|
101
|
+
},
|
|
102
|
+
"altPrefix": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"mutable": false,
|
|
105
|
+
"complexType": {
|
|
106
|
+
"original": "string",
|
|
107
|
+
"resolved": "string",
|
|
108
|
+
"references": {}
|
|
109
|
+
},
|
|
110
|
+
"required": false,
|
|
111
|
+
"optional": false,
|
|
112
|
+
"docs": {
|
|
113
|
+
"tags": [],
|
|
114
|
+
"text": "Alt text prefix for images"
|
|
115
|
+
},
|
|
116
|
+
"getter": false,
|
|
117
|
+
"setter": false,
|
|
118
|
+
"reflect": false,
|
|
119
|
+
"attribute": "alt-prefix",
|
|
120
|
+
"defaultValue": "'Imagen'"
|
|
121
|
+
},
|
|
122
|
+
"showArrows": {
|
|
123
|
+
"type": "boolean",
|
|
124
|
+
"mutable": false,
|
|
125
|
+
"complexType": {
|
|
126
|
+
"original": "boolean",
|
|
127
|
+
"resolved": "boolean",
|
|
128
|
+
"references": {}
|
|
129
|
+
},
|
|
130
|
+
"required": false,
|
|
131
|
+
"optional": false,
|
|
132
|
+
"docs": {
|
|
133
|
+
"tags": [],
|
|
134
|
+
"text": "Show navigation arrows"
|
|
135
|
+
},
|
|
136
|
+
"getter": false,
|
|
137
|
+
"setter": false,
|
|
138
|
+
"reflect": false,
|
|
139
|
+
"attribute": "show-arrows",
|
|
140
|
+
"defaultValue": "true"
|
|
141
|
+
},
|
|
142
|
+
"showDots": {
|
|
143
|
+
"type": "boolean",
|
|
144
|
+
"mutable": false,
|
|
145
|
+
"complexType": {
|
|
146
|
+
"original": "boolean",
|
|
147
|
+
"resolved": "boolean",
|
|
148
|
+
"references": {}
|
|
149
|
+
},
|
|
150
|
+
"required": false,
|
|
151
|
+
"optional": false,
|
|
152
|
+
"docs": {
|
|
153
|
+
"tags": [],
|
|
154
|
+
"text": "Show dot indicators"
|
|
155
|
+
},
|
|
156
|
+
"getter": false,
|
|
157
|
+
"setter": false,
|
|
158
|
+
"reflect": false,
|
|
159
|
+
"attribute": "show-dots",
|
|
160
|
+
"defaultValue": "true"
|
|
161
|
+
},
|
|
162
|
+
"showThumbs": {
|
|
163
|
+
"type": "boolean",
|
|
164
|
+
"mutable": false,
|
|
165
|
+
"complexType": {
|
|
166
|
+
"original": "boolean",
|
|
167
|
+
"resolved": "boolean",
|
|
168
|
+
"references": {}
|
|
169
|
+
},
|
|
170
|
+
"required": false,
|
|
171
|
+
"optional": false,
|
|
172
|
+
"docs": {
|
|
173
|
+
"tags": [],
|
|
174
|
+
"text": "Show thumbnail strip"
|
|
175
|
+
},
|
|
176
|
+
"getter": false,
|
|
177
|
+
"setter": false,
|
|
178
|
+
"reflect": false,
|
|
179
|
+
"attribute": "show-thumbs",
|
|
180
|
+
"defaultValue": "false"
|
|
181
|
+
},
|
|
182
|
+
"autoplay": {
|
|
183
|
+
"type": "number",
|
|
184
|
+
"mutable": false,
|
|
185
|
+
"complexType": {
|
|
186
|
+
"original": "number",
|
|
187
|
+
"resolved": "number",
|
|
188
|
+
"references": {}
|
|
189
|
+
},
|
|
190
|
+
"required": false,
|
|
191
|
+
"optional": false,
|
|
192
|
+
"docs": {
|
|
193
|
+
"tags": [],
|
|
194
|
+
"text": "Autoplay interval in ms (0 = disabled)"
|
|
195
|
+
},
|
|
196
|
+
"getter": false,
|
|
197
|
+
"setter": false,
|
|
198
|
+
"reflect": false,
|
|
199
|
+
"attribute": "autoplay",
|
|
200
|
+
"defaultValue": "0"
|
|
201
|
+
},
|
|
202
|
+
"activeIndex": {
|
|
203
|
+
"type": "number",
|
|
204
|
+
"mutable": true,
|
|
205
|
+
"complexType": {
|
|
206
|
+
"original": "number",
|
|
207
|
+
"resolved": "number",
|
|
208
|
+
"references": {}
|
|
209
|
+
},
|
|
210
|
+
"required": false,
|
|
211
|
+
"optional": false,
|
|
212
|
+
"docs": {
|
|
213
|
+
"tags": [],
|
|
214
|
+
"text": "Active index (controlled)"
|
|
215
|
+
},
|
|
216
|
+
"getter": false,
|
|
217
|
+
"setter": false,
|
|
218
|
+
"reflect": false,
|
|
219
|
+
"attribute": "active-index",
|
|
220
|
+
"defaultValue": "0"
|
|
221
|
+
},
|
|
222
|
+
"objectFit": {
|
|
223
|
+
"type": "string",
|
|
224
|
+
"mutable": false,
|
|
225
|
+
"complexType": {
|
|
226
|
+
"original": "'cover' | 'contain'",
|
|
227
|
+
"resolved": "\"contain\" | \"cover\"",
|
|
228
|
+
"references": {}
|
|
229
|
+
},
|
|
230
|
+
"required": false,
|
|
231
|
+
"optional": false,
|
|
232
|
+
"docs": {
|
|
233
|
+
"tags": [],
|
|
234
|
+
"text": "Object-fit for images"
|
|
235
|
+
},
|
|
236
|
+
"getter": false,
|
|
237
|
+
"setter": false,
|
|
238
|
+
"reflect": false,
|
|
239
|
+
"attribute": "object-fit",
|
|
240
|
+
"defaultValue": "'cover'"
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
static get states() {
|
|
245
|
+
return {
|
|
246
|
+
"parsedImages": {},
|
|
247
|
+
"current": {}
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
static get events() {
|
|
251
|
+
return [{
|
|
252
|
+
"method": "dropiSlideChange",
|
|
253
|
+
"name": "dropiSlideChange",
|
|
254
|
+
"bubbles": true,
|
|
255
|
+
"cancelable": true,
|
|
256
|
+
"composed": true,
|
|
257
|
+
"docs": {
|
|
258
|
+
"tags": [],
|
|
259
|
+
"text": "Emitted when slide changes. e.detail = new index"
|
|
260
|
+
},
|
|
261
|
+
"complexType": {
|
|
262
|
+
"original": "number",
|
|
263
|
+
"resolved": "number",
|
|
264
|
+
"references": {}
|
|
265
|
+
}
|
|
266
|
+
}];
|
|
267
|
+
}
|
|
268
|
+
static get watchers() {
|
|
269
|
+
return [{
|
|
270
|
+
"propName": "images",
|
|
271
|
+
"methodName": "imagesChanged"
|
|
272
|
+
}, {
|
|
273
|
+
"propName": "activeIndex",
|
|
274
|
+
"methodName": "activeIndexChanged"
|
|
275
|
+
}];
|
|
276
|
+
}
|
|
277
|
+
}
|
|
@@ -18,12 +18,12 @@ export class DropiCheckbox {
|
|
|
18
18
|
this.dropiChange.emit(this.checked);
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (h("div", { key: '
|
|
21
|
+
return (h("div", { key: 'a1ca730e992d31e5d15800bf418fb58fcd3bb7d6', class: "container-dropi-checkbox", onClick: () => this.changeState() }, h("div", { key: '530d34c26d101d673b3b90c960859593d8276b79', 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: '0b77d8edd8adccf87536edd1f2175513b45c0e21', xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none" }, h("path", { key: '013f792f93249617d8910be72a4e77e4fc4f7ea9', 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"; }
|
package/dist/collection/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.js
CHANGED
|
@@ -46,10 +46,10 @@ export class DropiCheckboxSelectionList {
|
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
48
|
const items = this.filtered;
|
|
49
|
-
return (h("div", { key: '
|
|
49
|
+
return (h("div", { key: '9d51ab3a5e9dc547cd98d851c99ef579b229e12c', class: "csl" }, this.showFilter && (h("div", { key: '2fb9b167722dd7c18b879954a434b5645b9f0d94', class: "csl__search" }, h("dropi-icon", { key: 'ec92ffaa3fef65af3b41f0da876ecffd2ef8797b', name: "Search", width: "16px", height: "16px", color: "Gray-Gray-400" }), h("input", { key: '9b04983e29d09213416084c41ab097c7eb214e7d', class: "csl__search-input", type: "text", placeholder: this.filterPlaceholder, value: this.filterText, onInput: (e) => {
|
|
50
50
|
this.filterText = e.target.value;
|
|
51
51
|
this.dropiSearch.emit(this.filterText);
|
|
52
|
-
} }), this.filterText && (h("button", { key: '
|
|
52
|
+
} }), this.filterText && (h("button", { key: 'eeb575b800bc047f9c1a4a16a2adab5b1cf7963f', class: "csl__clear", onClick: () => { this.filterText = ''; this.dropiSearch.emit(''); } }, h("dropi-icon", { key: '7e0bf6b94a0d8251f7ab7faa7155bbe16eb5380e', name: "Close-small", width: "14px", height: "14px", color: "Gray-Gray-400" }))))), h("div", { key: '7be1584cc51b50430f1d86096aa024aa2bcc2dc8', class: "csl__list" }, items.length === 0 && this.showNotFound ? (h("div", { class: "csl__empty" }, this.notFoundMessage)) : (items.map(opt => {
|
|
53
53
|
const checked = this.selected.includes(opt.id);
|
|
54
54
|
return (h("div", { class: "csl__item", key: opt.id, onClick: () => this.toggle(opt.id) }, h("dropi-checkbox", { checked: checked }), opt.icon && h("img", { class: "csl__icon", src: opt.icon, alt: opt.name }), h("span", { class: "csl__label" }, opt.name)));
|
|
55
55
|
})))));
|
|
@@ -7,12 +7,14 @@
|
|
|
7
7
|
.chip {
|
|
8
8
|
display: inline-flex;
|
|
9
9
|
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
10
11
|
gap: var(--Size-1, 4px);
|
|
11
12
|
height: 24px;
|
|
12
13
|
padding: 0 var(--Size-2, 8px);
|
|
13
14
|
border-radius: var(--Border-2, 8px);
|
|
14
15
|
font-size: var(--font-size-xs, 10px);
|
|
15
16
|
font-family: inherit;
|
|
17
|
+
width: fit-content;
|
|
16
18
|
max-width: 200px;
|
|
17
19
|
}
|
|
18
20
|
|
|
@@ -18,7 +18,7 @@ export class DropiChips {
|
|
|
18
18
|
/** Emitted when the close icon is clicked */
|
|
19
19
|
dropiClose;
|
|
20
20
|
render() {
|
|
21
|
-
return (h("div", { key: '
|
|
21
|
+
return (h("div", { key: '44be034581ddeffb27fb90fec61dd6275dc5998a', class: { 'chip': true, [`chip--${this.chipStyle}`]: true } }, this.type === 'avatar' && this.urlImg && (h("img", { key: '3312f3d54aab3d6546ddde9820569251eb1faaa3', class: "chip__avatar", src: this.urlImg, alt: "" })), this.type === 'icon' && this.icon && (h("dropi-icon", { key: 'bf035db87cbe2b8ba9639d3c72b6b9dd706138e9', class: "chip__pre-icon", name: this.icon, width: "14px", height: "14px", color: "currentColor" })), h("span", { key: 'cf634d59c25b1ad5590bf2bc19f55cdc50b67a66', class: "chip__text" }, h("slot", { key: '5534b85253e0f2d91c2b901b97c1e90b5c5c4b32' })), this.showIcon && (h("button", { key: '70723641a9ef1c8b9e412fc7442156d604fcc6d0', class: "chip__close", onClick: () => this.dropiClose.emit(), "aria-label": "Eliminar" }, h("dropi-icon", { key: 'beeefbb7aaec6af0762c1f4611d3fb88e6ef8bd1', name: "Close-small", width: "14px", height: "14px", color: "currentColor" })))));
|
|
22
22
|
}
|
|
23
23
|
static get is() { return "dropi-chips"; }
|
|
24
24
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
width: 100%;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
*, *::before, *::after { box-sizing: border-box; }
|
|
7
|
+
|
|
8
|
+
.city-selector {
|
|
9
|
+
position: relative;
|
|
10
|
+
width: 100%;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.city-selector.disabled .selector-trigger {
|
|
14
|
+
background: var(--Gray-Gray-50, #f7f8fa);
|
|
15
|
+
border-color: var(--Gray-Gray-100, #e6eaf2);
|
|
16
|
+
cursor: not-allowed;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.selector-trigger {
|
|
20
|
+
min-height: 40px;
|
|
21
|
+
padding: 6px 10px;
|
|
22
|
+
border: 1px solid var(--Gray-Gray-200, #c3c9d9);
|
|
23
|
+
border-radius: var(--Border-2, 8px);
|
|
24
|
+
background: var(--Neutral-White, #fff);
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: space-between;
|
|
28
|
+
gap: 8px;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
transition: border-color 0.15s ease;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.selector-trigger:hover:not(.disabled *) {
|
|
34
|
+
border-color: var(--Gray-Gray-300, #a3abbf);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.chips-area {
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-wrap: wrap;
|
|
40
|
+
gap: 4px;
|
|
41
|
+
flex: 1;
|
|
42
|
+
min-height: 24px;
|
|
43
|
+
align-items: center;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.placeholder {
|
|
47
|
+
color: var(--Gray-Gray-400, #858ea6);
|
|
48
|
+
font-size: var(--font-size-s, 12px);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.chip {
|
|
52
|
+
display: inline-flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
gap: 4px;
|
|
55
|
+
background: var(--Primary-Primary-50, #fff8f0);
|
|
56
|
+
border: 1px solid var(--Primary-Primary-200, #fcd5a8);
|
|
57
|
+
border-radius: 4px;
|
|
58
|
+
padding: 2px 6px;
|
|
59
|
+
font-size: var(--font-size-xs, 11px);
|
|
60
|
+
color: var(--Primary-Primary-700, #b85c00);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.chip-remove {
|
|
64
|
+
background: none;
|
|
65
|
+
border: none;
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
font-size: 14px;
|
|
68
|
+
line-height: 1;
|
|
69
|
+
padding: 0;
|
|
70
|
+
color: var(--Primary-Primary-500, #f49a3d);
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.dropdown {
|
|
76
|
+
position: absolute;
|
|
77
|
+
top: calc(100% + 4px);
|
|
78
|
+
left: 0;
|
|
79
|
+
right: 0;
|
|
80
|
+
background: var(--Neutral-White, #fff);
|
|
81
|
+
border: 1px solid var(--Gray-Gray-200, #c3c9d9);
|
|
82
|
+
border-radius: var(--Border-2, 8px);
|
|
83
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
84
|
+
z-index: 200;
|
|
85
|
+
overflow: hidden;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.search-wrap {
|
|
89
|
+
padding: 8px;
|
|
90
|
+
border-bottom: 1px solid var(--Gray-Gray-100, #e6eaf2);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.search-input {
|
|
94
|
+
width: 100%;
|
|
95
|
+
padding: 6px 10px;
|
|
96
|
+
border: 1px solid var(--Gray-Gray-200, #c3c9d9);
|
|
97
|
+
border-radius: var(--Border-1, 4px);
|
|
98
|
+
font-size: var(--font-size-s, 12px);
|
|
99
|
+
font-family: inherit;
|
|
100
|
+
color: var(--Gray-Gray-600, #475066);
|
|
101
|
+
outline: none;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.search-input:focus {
|
|
105
|
+
border-color: var(--Primary-Primary-500, #f49a3d);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.options-list {
|
|
109
|
+
max-height: 240px;
|
|
110
|
+
overflow-y: auto;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.group-label {
|
|
114
|
+
padding: 6px 12px 2px;
|
|
115
|
+
font-size: var(--font-size-xs, 11px);
|
|
116
|
+
font-weight: var(--font-weight-semibold, 600);
|
|
117
|
+
color: var(--Gray-Gray-400, #858ea6);
|
|
118
|
+
text-transform: uppercase;
|
|
119
|
+
letter-spacing: 0.5px;
|
|
120
|
+
background: var(--Gray-Gray-50, #f7f8fa);
|
|
121
|
+
border-top: 1px solid var(--Gray-Gray-100, #e6eaf2);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.city-option {
|
|
125
|
+
padding: 8px 12px;
|
|
126
|
+
display: flex;
|
|
127
|
+
align-items: center;
|
|
128
|
+
gap: 8px;
|
|
129
|
+
cursor: pointer;
|
|
130
|
+
font-size: var(--font-size-s, 12px);
|
|
131
|
+
color: var(--Gray-Gray-600, #475066);
|
|
132
|
+
transition: background 0.1s ease;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.city-option:hover {
|
|
136
|
+
background: var(--Gray-Gray-50, #f7f8fa);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.city-option.selected {
|
|
140
|
+
color: var(--Primary-Primary-600, #d97c1a);
|
|
141
|
+
background: var(--Primary-Primary-50, #fff8f0);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.check-mark {
|
|
145
|
+
width: 16px;
|
|
146
|
+
font-size: 12px;
|
|
147
|
+
color: var(--Primary-Primary-500, #f49a3d);
|
|
148
|
+
font-weight: bold;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.no-results {
|
|
152
|
+
padding: 16px;
|
|
153
|
+
text-align: center;
|
|
154
|
+
color: var(--Gray-Gray-400, #858ea6);
|
|
155
|
+
font-size: var(--font-size-s, 12px);
|
|
156
|
+
}
|