@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
|
@@ -5,78 +5,119 @@
|
|
|
5
5
|
inset: 0;
|
|
6
6
|
background: rgba(0,0,0,0.92);
|
|
7
7
|
display: flex;
|
|
8
|
-
flex-direction: column;
|
|
9
|
-
align-items: center;
|
|
10
8
|
justify-content: center;
|
|
9
|
+
align-items: center;
|
|
11
10
|
z-index: 9999;
|
|
12
|
-
|
|
11
|
+
animation: fade-in 0.3s ease-out;
|
|
13
12
|
}
|
|
14
13
|
|
|
15
14
|
.overlay__close {
|
|
16
15
|
position: absolute;
|
|
17
|
-
top:
|
|
18
|
-
right:
|
|
19
|
-
background: rgba(255,255,255,0.1);
|
|
16
|
+
top: 24px;
|
|
17
|
+
right: 24px;
|
|
18
|
+
background: rgba(255, 255, 255, 0.1);
|
|
20
19
|
border: none;
|
|
21
20
|
border-radius: 50%;
|
|
22
|
-
width:
|
|
23
|
-
height:
|
|
21
|
+
width: 48px;
|
|
22
|
+
height: 48px;
|
|
24
23
|
display: flex;
|
|
25
24
|
align-items: center;
|
|
26
25
|
justify-content: center;
|
|
27
26
|
cursor: pointer;
|
|
27
|
+
z-index: 10010;
|
|
28
28
|
transition: background 0.15s;
|
|
29
29
|
}
|
|
30
|
-
.overlay__close:hover { background: rgba(255,255,255,0.2); }
|
|
30
|
+
.overlay__close:hover { background: rgba(255, 255, 255, 0.2); }
|
|
31
|
+
|
|
32
|
+
.overlay__body {
|
|
33
|
+
display: flex;
|
|
34
|
+
width: 90%;
|
|
35
|
+
height: 80%;
|
|
36
|
+
max-width: 1200px;
|
|
37
|
+
gap: 32px;
|
|
38
|
+
align-items: center;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.overlay__body--single {
|
|
42
|
+
justify-content: center;
|
|
43
|
+
}
|
|
31
44
|
|
|
32
|
-
|
|
45
|
+
/* ── Thumbnails (Left Column) ─────────────────────────── */
|
|
46
|
+
.overlay__thumbs {
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
gap: 12px;
|
|
50
|
+
height: 100%;
|
|
51
|
+
overflow-y: auto;
|
|
52
|
+
padding-right: 8px;
|
|
53
|
+
width: 100px;
|
|
54
|
+
flex-shrink: 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* Hide scrollbar but keep functionality */
|
|
58
|
+
.overlay__thumbs::-webkit-scrollbar { width: 4px; }
|
|
59
|
+
.overlay__thumbs::-webkit-scrollbar-thumb { background: #475066; border-radius: 4px; }
|
|
60
|
+
|
|
61
|
+
.overlay__thumb-box {
|
|
62
|
+
width: 80px;
|
|
63
|
+
height: 80px;
|
|
64
|
+
border: 2px solid transparent;
|
|
65
|
+
border-radius: 8px;
|
|
66
|
+
overflow: hidden;
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
flex-shrink: 0;
|
|
69
|
+
transition: border-color 0.2s;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.overlay__thumb-box--active {
|
|
73
|
+
border-color: var(--Primary-Primary-500, #f49a3d);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.overlay__thumb-img {
|
|
77
|
+
width: 100%;
|
|
78
|
+
height: 100%;
|
|
79
|
+
object-fit: cover;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* ── Main Content (Right Area) ─────────────────────────── */
|
|
83
|
+
.overlay__content {
|
|
84
|
+
flex: 1;
|
|
85
|
+
height: 100%;
|
|
33
86
|
position: relative;
|
|
34
87
|
display: flex;
|
|
88
|
+
justify-content: center;
|
|
35
89
|
align-items: center;
|
|
36
|
-
gap: var(--Size-3, 12px);
|
|
37
|
-
max-width: 90vw;
|
|
38
|
-
max-height: 75vh;
|
|
39
90
|
}
|
|
40
91
|
|
|
41
|
-
.
|
|
42
|
-
max-width:
|
|
43
|
-
max-height:
|
|
92
|
+
.overlay__main-image {
|
|
93
|
+
max-width: 100%;
|
|
94
|
+
max-height: 100%;
|
|
44
95
|
object-fit: contain;
|
|
45
|
-
border-radius:
|
|
96
|
+
border-radius: 12px;
|
|
97
|
+
box-shadow: 0 10px 30px rgba(0,0,0,0.5);
|
|
98
|
+
animation: scale-up 0.3s ease-out;
|
|
46
99
|
}
|
|
47
100
|
|
|
48
101
|
.overlay__nav {
|
|
49
|
-
|
|
102
|
+
position: absolute;
|
|
103
|
+
top: 50%;
|
|
104
|
+
transform: translateY(-50%);
|
|
105
|
+
background: rgba(255, 255, 255, 0.1);
|
|
50
106
|
border: none;
|
|
51
107
|
border-radius: 50%;
|
|
52
|
-
width:
|
|
53
|
-
height:
|
|
108
|
+
width: 48px;
|
|
109
|
+
height: 48px;
|
|
54
110
|
display: flex;
|
|
55
111
|
align-items: center;
|
|
56
112
|
justify-content: center;
|
|
57
113
|
cursor: pointer;
|
|
58
|
-
|
|
59
|
-
|
|
114
|
+
transition: background 0.2s;
|
|
115
|
+
z-index: 5;
|
|
60
116
|
}
|
|
61
|
-
.overlay__nav:hover { background: rgba(255,255,255,0.2); }
|
|
62
117
|
|
|
63
|
-
.
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
flex-wrap: wrap;
|
|
67
|
-
justify-content: center;
|
|
68
|
-
max-width: 90vw;
|
|
69
|
-
}
|
|
118
|
+
.overlay__nav:hover { background: rgba(255, 255, 255, 0.2); }
|
|
119
|
+
.overlay__nav--prev { left: -24px; }
|
|
120
|
+
.overlay__nav--next { right: -24px; }
|
|
70
121
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
height: 56px;
|
|
74
|
-
object-fit: cover;
|
|
75
|
-
border-radius: var(--Border-1, 4px);
|
|
76
|
-
cursor: pointer;
|
|
77
|
-
opacity: 0.5;
|
|
78
|
-
border: 2px solid transparent;
|
|
79
|
-
transition: opacity 0.15s, border-color 0.15s;
|
|
80
|
-
}
|
|
81
|
-
.overlay__thumb:hover { opacity: 0.8; }
|
|
82
|
-
.overlay__thumb--active { opacity: 1; border-color: var(--Primary-Primary-500, #f49a3d); }
|
|
122
|
+
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
|
|
123
|
+
@keyframes scale-up { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
|
|
@@ -38,7 +38,7 @@ export class DropiImageOverlay {
|
|
|
38
38
|
return null;
|
|
39
39
|
const imgs = this.parsedImages;
|
|
40
40
|
const multi = imgs.length > 1;
|
|
41
|
-
return (h("div", { class: "overlay", onClick: () => this.close() }, h("button", { class: "overlay__close", onClick: (e) => { e.stopPropagation(); this.close(); }, "aria-label": "Cerrar" }, h("dropi-icon", { name: "Close-
|
|
41
|
+
return (h("div", { class: "overlay", onClick: () => this.close() }, h("button", { class: "overlay__close", onClick: (e) => { e.stopPropagation(); this.close(); }, "aria-label": "Cerrar" }, h("dropi-icon", { name: "Close-large", width: "24px", height: "24px", color: "Neutral-White" })), h("div", { class: { 'overlay__body': true, 'overlay__body--single': !multi }, onClick: (e) => e.stopPropagation() }, multi && (h("div", { class: "overlay__thumbs" }, imgs.map((src, i) => (h("div", { key: i, class: { 'overlay__thumb-box': true, 'overlay__thumb-box--active': i === this.current }, onClick: () => this.current = i }, h("img", { src: src, alt: `miniatura ${i + 1}`, class: "overlay__thumb-img", onError: (e) => this.handleError(e) })))))), h("div", { class: "overlay__content" }, multi && (h("button", { class: "overlay__nav overlay__nav--prev", onClick: () => this.prev(), "aria-label": "Anterior" }, h("dropi-icon", { name: "Dropdown-left", width: "18px", height: "18px", color: "Gray-Gray-500" }))), h("img", { class: "overlay__main-image", src: imgs[this.current], alt: `imagen ${this.current + 1}`, onError: (e) => this.handleError(e) }), multi && (h("button", { class: "overlay__nav overlay__nav--next", onClick: () => this.next(), "aria-label": "Siguiente" }, h("dropi-icon", { name: "Dropdown-Right", width: "18px", height: "18px", color: "Gray-Gray-500" })))))));
|
|
42
42
|
}
|
|
43
43
|
static get is() { return "dropi-image-overlay"; }
|
|
44
44
|
static get encapsulation() { return "shadow"; }
|
|
@@ -179,14 +179,14 @@ export class DropiInput {
|
|
|
179
179
|
render() {
|
|
180
180
|
const showAsterisk = this.required && this.showAsterisk && !this.disabled;
|
|
181
181
|
const showIconInline = !!this.icon;
|
|
182
|
-
return (h("div", { key: '
|
|
182
|
+
return (h("div", { key: '49a1b6d02f59e1c67a70a219a7f7d0fbbd2a460d', class: { 'fixed-label-container': this.fixedLabel } }, this.fixedLabel && (h("div", { key: '326d90a0361fe5ab90adee1479439aab34c99951', class: "input-label Body-S-Regular" }, this.label, showAsterisk && h("span", { key: 'cf5677966af627addc69a2735803845b54f41a9f', class: "asterisk" }, " *"))), h("div", { key: '1f7b7c614dc424ad4b1aa1819d05573fd08b30a1', class: "form-group" }, h("div", { key: 'c2f88e7f7f2f0da585e8ac20c6373b451290dfdd', class: { 'input-container': true, 'input-container--has-icon': showIconInline } }, showIconInline && (h("dropi-icon", { key: 'c6f7cc14c56452768e4e49092a2be7968951255b', class: "icon-input", name: this.icon, color: this.iconColor, width: "20px", height: "20px" })), this.passwordInput && (h("dropi-icon", { key: '5ddbd5e176b61dc46d817fa6a32d3d3c0e2cc589', class: "icon-input-password", name: this.showPassword ? 'Eye' : 'Eye-crossed', width: "20px", height: "20px", color: "Gray-Gray-500", onClick: () => this.togglePassword() })), h("input", { key: '51a17c36e9ed49fef0d2f0ea97d4aca10e4722d6', id: this.resolvedId, class: {
|
|
183
183
|
'form-control': true,
|
|
184
184
|
'form-control-valid': !this.isInvalid && this.touched && !!this.value,
|
|
185
185
|
'form-control-invalid': this.isInvalid,
|
|
186
186
|
'padding-icon': showIconInline,
|
|
187
187
|
'text-password': this.passwordInput && !this.showPassword,
|
|
188
188
|
'fixed-label-input': this.fixedLabel,
|
|
189
|
-
}, type: this.inputType, value: this.value, placeholder: this.fixedLabel ? this.placeholder : ' ', disabled: this.disabled, required: this.required, maxLength: this.maxlength, inputMode: this.inputMode, "data-cy": undefined, onInput: (e) => this.handleInput(e), onKeyDown: (e) => this.handleKeyDown(e), onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur() }), !this.fixedLabel && (h("label", { key: '
|
|
189
|
+
}, type: this.inputType, value: this.value, placeholder: this.fixedLabel ? this.placeholder : ' ', disabled: this.disabled, required: this.required, maxLength: this.maxlength, inputMode: this.inputMode, "data-cy": undefined, onInput: (e) => this.handleInput(e), onKeyDown: (e) => this.handleKeyDown(e), onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur() }), !this.fixedLabel && (h("label", { key: '9fa96019e84dd543e3e74a15e8f0681ea7bb7823', class: "Body-S-Regular label-bottom", htmlFor: this.resolvedId }, this.label, showAsterisk && h("span", { key: '740936c43be963fc7383e3ae6eb21c9d02ffde03', class: "asterisk" }, " *"))), this.showHelper && (h("div", { key: '9381fc81799162f20df8d2df914adc4ebee5e8ed', class: "form-control-helper" }, this.isInvalid && (h("dropi-icon", { key: 'fea3d178b9b00f87d2a266cb665fca2774ec963a', name: "Warning-circle", width: "12px", height: "12px", color: "Error-Error-500" })), h("span", { key: '390caaa2dfdfb673b8d1fdd8fada2d7c2f6ba764', class: {
|
|
190
190
|
'disabled-helper': this.disabled,
|
|
191
191
|
'invalid-color': this.isInvalid,
|
|
192
192
|
} }, this.helperText)))))));
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
position: relative;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
*, *::before, *::after { box-sizing: border-box; }
|
|
7
|
+
|
|
8
|
+
.custom-dropdown {
|
|
9
|
+
position: relative;
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
user-select: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.custom-dropdown.open dropi-icon {
|
|
15
|
+
transform: rotate(180deg);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.selected-option {
|
|
19
|
+
display: flex;
|
|
20
|
+
height: 38px;
|
|
21
|
+
padding: var(--Size-2, 8px) var(--Size-3, 12px);
|
|
22
|
+
align-items: center;
|
|
23
|
+
gap: var(--Size-2, 8px);
|
|
24
|
+
border-radius: 4px;
|
|
25
|
+
border: 1px solid var(--Gray-Gray-200, #c3c9d9);
|
|
26
|
+
background: var(--Neutral-White, #fff);
|
|
27
|
+
font-size: var(--font-size-s, 12px);
|
|
28
|
+
color: var(--Gray-Gray-600, #475066);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.dropdown-options {
|
|
32
|
+
position: absolute;
|
|
33
|
+
top: 100%;
|
|
34
|
+
left: 0;
|
|
35
|
+
right: 0;
|
|
36
|
+
background: white;
|
|
37
|
+
border: 1px solid var(--Gray-Gray-200, #c3c9d9);
|
|
38
|
+
border-radius: 6px;
|
|
39
|
+
margin-top: 4px;
|
|
40
|
+
z-index: 1000;
|
|
41
|
+
overflow-y: auto;
|
|
42
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
43
|
+
padding: 0;
|
|
44
|
+
list-style: none;
|
|
45
|
+
height: 0;
|
|
46
|
+
opacity: 0;
|
|
47
|
+
visibility: hidden;
|
|
48
|
+
transition: height 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
|
|
49
|
+
max-height: 0;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.dropdown-options.dropdown-open {
|
|
53
|
+
max-height: 300px;
|
|
54
|
+
height: auto;
|
|
55
|
+
opacity: 1;
|
|
56
|
+
visibility: visible;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.dropdown-options li {
|
|
60
|
+
padding: 8px 12px;
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
gap: 8px;
|
|
64
|
+
cursor: pointer;
|
|
65
|
+
font-size: var(--font-size-s, 12px);
|
|
66
|
+
color: var(--Gray-Gray-600, #475066);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.dropdown-options li:hover,
|
|
70
|
+
.dropdown-options li.active {
|
|
71
|
+
background: var(--Gray-Gray-50, #f7f8fa);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@media screen and (max-width: 720px) {
|
|
75
|
+
.selected-option span,
|
|
76
|
+
.dropdown-options li span {
|
|
77
|
+
display: none;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* @component dropi-languages-selector
|
|
4
|
+
* Dropdown to switch between languages, showing country flag + label.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* <dropi-languages-selector
|
|
8
|
+
* languages='[{"code":"es","label":"Español","flag":"CO"},{"code":"en","label":"English","flag":"US"}]'
|
|
9
|
+
* ></dropi-languages-selector>
|
|
10
|
+
*/
|
|
11
|
+
export class DropiLanguagesSelector {
|
|
12
|
+
/** Language options (array or JSON string) */
|
|
13
|
+
languages = [];
|
|
14
|
+
/** Currently selected language (LanguageOption or JSON string) */
|
|
15
|
+
selectedLang = null;
|
|
16
|
+
dropiLanguageChange;
|
|
17
|
+
isOpen = false;
|
|
18
|
+
parsedLanguages = [];
|
|
19
|
+
currentLang = null;
|
|
20
|
+
languagesChanged(val) {
|
|
21
|
+
this.parsedLanguages = typeof val === 'string' ? JSON.parse(val) : val;
|
|
22
|
+
if (!this.currentLang && this.parsedLanguages.length > 0) {
|
|
23
|
+
this.currentLang = this.parsedLanguages[0];
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
selectedLangChanged(val) {
|
|
27
|
+
if (!val)
|
|
28
|
+
return;
|
|
29
|
+
this.currentLang = typeof val === 'string' ? JSON.parse(val) : val;
|
|
30
|
+
}
|
|
31
|
+
componentWillLoad() {
|
|
32
|
+
this.languagesChanged(this.languages);
|
|
33
|
+
if (this.selectedLang)
|
|
34
|
+
this.selectedLangChanged(this.selectedLang);
|
|
35
|
+
}
|
|
36
|
+
select(lang) {
|
|
37
|
+
this.currentLang = lang;
|
|
38
|
+
this.isOpen = false;
|
|
39
|
+
this.dropiLanguageChange.emit(lang);
|
|
40
|
+
}
|
|
41
|
+
render() {
|
|
42
|
+
if (!this.currentLang)
|
|
43
|
+
return null;
|
|
44
|
+
return (h("div", { class: `custom-dropdown${this.isOpen ? ' open' : ''}` }, h("div", { class: "selected-option", onClick: () => { this.isOpen = !this.isOpen; } }, h("dropi-country-flags", { country: this.currentLang.flag, "flag-style": "rectangle", width: "20", height: "15" }), h("span", { class: "Body-S-Regular" }, this.currentLang.label), h("dropi-icon", { name: "Caret-down", width: "16px", height: "16px", color: "Gray-Gray-500" })), h("ul", { class: `dropdown-options${this.isOpen ? ' dropdown-open' : ''}` }, this.parsedLanguages.map(lang => (h("li", { key: lang.code, class: lang.code === this.currentLang?.code ? 'active' : '', onClick: () => this.select(lang) }, h("dropi-country-flags", { country: lang.flag, "flag-style": "rectangle", width: "20", height: "15" }), h("span", { class: "Body-S-Regular" }, lang.label)))))));
|
|
45
|
+
}
|
|
46
|
+
static get is() { return "dropi-languages-selector"; }
|
|
47
|
+
static get encapsulation() { return "shadow"; }
|
|
48
|
+
static get originalStyleUrls() {
|
|
49
|
+
return {
|
|
50
|
+
"$": ["dropi-languages-selector.css"]
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
static get styleUrls() {
|
|
54
|
+
return {
|
|
55
|
+
"$": ["dropi-languages-selector.css"]
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
static get properties() {
|
|
59
|
+
return {
|
|
60
|
+
"languages": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"mutable": false,
|
|
63
|
+
"complexType": {
|
|
64
|
+
"original": "LanguageOption[] | string",
|
|
65
|
+
"resolved": "LanguageOption[] | string",
|
|
66
|
+
"references": {
|
|
67
|
+
"LanguageOption": {
|
|
68
|
+
"location": "local",
|
|
69
|
+
"path": "/Users/mac-ti/Documents/dropi/dropi-ui/src/components/dropi-languages-selector/dropi-languages-selector.tsx",
|
|
70
|
+
"id": "src/components/dropi-languages-selector/dropi-languages-selector.tsx::LanguageOption"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"required": false,
|
|
75
|
+
"optional": false,
|
|
76
|
+
"docs": {
|
|
77
|
+
"tags": [],
|
|
78
|
+
"text": "Language options (array or JSON string)"
|
|
79
|
+
},
|
|
80
|
+
"getter": false,
|
|
81
|
+
"setter": false,
|
|
82
|
+
"reflect": false,
|
|
83
|
+
"attribute": "languages",
|
|
84
|
+
"defaultValue": "[]"
|
|
85
|
+
},
|
|
86
|
+
"selectedLang": {
|
|
87
|
+
"type": "string",
|
|
88
|
+
"mutable": true,
|
|
89
|
+
"complexType": {
|
|
90
|
+
"original": "LanguageOption | string | null",
|
|
91
|
+
"resolved": "LanguageOption | string",
|
|
92
|
+
"references": {
|
|
93
|
+
"LanguageOption": {
|
|
94
|
+
"location": "local",
|
|
95
|
+
"path": "/Users/mac-ti/Documents/dropi/dropi-ui/src/components/dropi-languages-selector/dropi-languages-selector.tsx",
|
|
96
|
+
"id": "src/components/dropi-languages-selector/dropi-languages-selector.tsx::LanguageOption"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"required": false,
|
|
101
|
+
"optional": false,
|
|
102
|
+
"docs": {
|
|
103
|
+
"tags": [],
|
|
104
|
+
"text": "Currently selected language (LanguageOption or JSON string)"
|
|
105
|
+
},
|
|
106
|
+
"getter": false,
|
|
107
|
+
"setter": false,
|
|
108
|
+
"reflect": false,
|
|
109
|
+
"attribute": "selected-lang",
|
|
110
|
+
"defaultValue": "null"
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
static get states() {
|
|
115
|
+
return {
|
|
116
|
+
"isOpen": {},
|
|
117
|
+
"parsedLanguages": {},
|
|
118
|
+
"currentLang": {}
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
static get events() {
|
|
122
|
+
return [{
|
|
123
|
+
"method": "dropiLanguageChange",
|
|
124
|
+
"name": "dropiLanguageChange",
|
|
125
|
+
"bubbles": true,
|
|
126
|
+
"cancelable": true,
|
|
127
|
+
"composed": true,
|
|
128
|
+
"docs": {
|
|
129
|
+
"tags": [],
|
|
130
|
+
"text": ""
|
|
131
|
+
},
|
|
132
|
+
"complexType": {
|
|
133
|
+
"original": "LanguageOption",
|
|
134
|
+
"resolved": "LanguageOption",
|
|
135
|
+
"references": {
|
|
136
|
+
"LanguageOption": {
|
|
137
|
+
"location": "local",
|
|
138
|
+
"path": "/Users/mac-ti/Documents/dropi/dropi-ui/src/components/dropi-languages-selector/dropi-languages-selector.tsx",
|
|
139
|
+
"id": "src/components/dropi-languages-selector/dropi-languages-selector.tsx::LanguageOption"
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}];
|
|
144
|
+
}
|
|
145
|
+
static get watchers() {
|
|
146
|
+
return [{
|
|
147
|
+
"propName": "languages",
|
|
148
|
+
"methodName": "languagesChanged"
|
|
149
|
+
}, {
|
|
150
|
+
"propName": "selectedLang",
|
|
151
|
+
"methodName": "selectedLangChanged"
|
|
152
|
+
}];
|
|
153
|
+
}
|
|
154
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
const FALLBACK_SVG = `data:image/svg+xml;base64,
|
|
2
|
+
const FALLBACK_SVG = `data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgNDAiPjx0ZXh0IHk9IjMwIiBmb250LXNpemU9IjI0IiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiIgZmlsbD0iIzg1OGVhNiI+ZHJvcGk8L3RleHQ+PC9zdmc+`;
|
|
3
3
|
/**
|
|
4
4
|
* @component dropi-logo
|
|
5
5
|
* Displays the Dropi brand logo with size variants.
|
|
@@ -15,7 +15,7 @@ export class DropiLogo {
|
|
|
15
15
|
e.target.src = FALLBACK_SVG;
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return (h("figure", { key: '
|
|
18
|
+
return (h("figure", { key: '416498bbb93314e2a69a3fdba9def0f8fb4d940a', class: { 'dropi-logo': true, [`dropi-logo--${this.size}`]: true } }, h("img", { key: '137ae999c9db95e87d8ee76a46b328c34f97f58e', src: this.urlLogo || FALLBACK_SVG, alt: "Dropi logo", loading: "lazy", onError: (e) => this.handleError(e) })));
|
|
19
19
|
}
|
|
20
20
|
static get is() { return "dropi-logo"; }
|
|
21
21
|
static get encapsulation() { return "shadow"; }
|
|
@@ -7,15 +7,15 @@ export class DropiLottieLoader {
|
|
|
7
7
|
/** Show or hide the loader */
|
|
8
8
|
visible = false;
|
|
9
9
|
/** Path to the Lottie JSON animation file */
|
|
10
|
-
loadingAnimation = '';
|
|
10
|
+
loadingAnimation = '/assets/lottie-files/loading.json';
|
|
11
11
|
/** Title shown below the animation */
|
|
12
|
-
loaderTitle = '';
|
|
12
|
+
loaderTitle = 'Cargando...';
|
|
13
13
|
/** Descriptive message below the title */
|
|
14
|
-
message = '';
|
|
14
|
+
message = 'Por favor, espere un momento';
|
|
15
15
|
render() {
|
|
16
16
|
if (!this.visible)
|
|
17
17
|
return null;
|
|
18
|
-
return (h("div", { class: "loader-overlay" }, h("div", { class: "loader-container" },
|
|
18
|
+
return (h("div", { class: "loader-overlay" }, h("div", { class: "loader-container" }, h("div", { class: "lottie-animation" }, h("lottie-player", { src: this.loadingAnimation, background: "transparent", speed: "1", style: { width: '200px', height: '200px' }, loop: true, autoplay: true })), (this.loaderTitle || this.message) && (h("div", { class: "loader-text" }, this.loaderTitle && h("h3", { class: "loader-title" }, this.loaderTitle), this.message && h("p", { class: "loader-message" }, this.message))))));
|
|
19
19
|
}
|
|
20
20
|
static get is() { return "dropi-lottie-loader"; }
|
|
21
21
|
static get encapsulation() { return "shadow"; }
|
|
@@ -69,7 +69,7 @@ export class DropiLottieLoader {
|
|
|
69
69
|
"setter": false,
|
|
70
70
|
"reflect": false,
|
|
71
71
|
"attribute": "loading-animation",
|
|
72
|
-
"defaultValue": "''"
|
|
72
|
+
"defaultValue": "'/assets/lottie-files/loading.json'"
|
|
73
73
|
},
|
|
74
74
|
"loaderTitle": {
|
|
75
75
|
"type": "string",
|
|
@@ -89,7 +89,7 @@ export class DropiLottieLoader {
|
|
|
89
89
|
"setter": false,
|
|
90
90
|
"reflect": false,
|
|
91
91
|
"attribute": "loader-title",
|
|
92
|
-
"defaultValue": "''"
|
|
92
|
+
"defaultValue": "'Cargando...'"
|
|
93
93
|
},
|
|
94
94
|
"message": {
|
|
95
95
|
"type": "string",
|
|
@@ -109,7 +109,7 @@ export class DropiLottieLoader {
|
|
|
109
109
|
"setter": false,
|
|
110
110
|
"reflect": false,
|
|
111
111
|
"attribute": "message",
|
|
112
|
-
"defaultValue": "''"
|
|
112
|
+
"defaultValue": "'Por favor, espere un momento'"
|
|
113
113
|
}
|
|
114
114
|
};
|
|
115
115
|
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
:host { display: block; width: 100%; }
|
|
2
|
+
*, *::before, *::after { box-sizing: border-box; }
|
|
3
|
+
|
|
4
|
+
.player {
|
|
5
|
+
background: var(--Gray-Gray-800, #1a2033);
|
|
6
|
+
border-radius: var(--Border-2, 8px);
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/* Video */
|
|
13
|
+
.player__video {
|
|
14
|
+
width: 100%;
|
|
15
|
+
display: block;
|
|
16
|
+
max-height: 400px;
|
|
17
|
+
object-fit: contain;
|
|
18
|
+
background: #000;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* Controls */
|
|
22
|
+
.player__controls {
|
|
23
|
+
padding: var(--Size-3, 12px);
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
gap: var(--Size-2, 8px);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.player__title {
|
|
30
|
+
font-size: var(--font-size-s, 12px);
|
|
31
|
+
color: var(--Gray-Gray-300, #a0a9c0);
|
|
32
|
+
white-space: nowrap;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
text-overflow: ellipsis;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* Seek */
|
|
38
|
+
.player__seek-wrap {
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
gap: var(--Size-2, 8px);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.player__time {
|
|
45
|
+
font-size: var(--font-size-xs, 10px);
|
|
46
|
+
color: var(--Gray-Gray-400, #858ea6);
|
|
47
|
+
white-space: nowrap;
|
|
48
|
+
flex-shrink: 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.player__seek-track {
|
|
52
|
+
flex: 1;
|
|
53
|
+
position: relative;
|
|
54
|
+
height: 4px;
|
|
55
|
+
background: var(--Gray-Gray-600, #475066);
|
|
56
|
+
border-radius: 100px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.player__seek-fill {
|
|
60
|
+
position: absolute;
|
|
61
|
+
left: 0; top: 0; bottom: 0;
|
|
62
|
+
background: var(--Primary-Primary-500, #f49a3d);
|
|
63
|
+
border-radius: 100px;
|
|
64
|
+
pointer-events: none;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.player__seek {
|
|
68
|
+
position: absolute;
|
|
69
|
+
inset: 0;
|
|
70
|
+
width: 100%;
|
|
71
|
+
height: 100%;
|
|
72
|
+
opacity: 0;
|
|
73
|
+
cursor: pointer;
|
|
74
|
+
margin: 0;
|
|
75
|
+
accent-color: var(--Primary-Primary-500, #f49a3d);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/* Buttons row */
|
|
79
|
+
.player__buttons {
|
|
80
|
+
display: flex;
|
|
81
|
+
align-items: center;
|
|
82
|
+
gap: var(--Size-2, 8px);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.player__btn {
|
|
86
|
+
background: none;
|
|
87
|
+
border: none;
|
|
88
|
+
padding: 4px;
|
|
89
|
+
cursor: pointer;
|
|
90
|
+
display: flex;
|
|
91
|
+
align-items: center;
|
|
92
|
+
border-radius: var(--Border-1, 4px);
|
|
93
|
+
transition: background 0.15s;
|
|
94
|
+
}
|
|
95
|
+
.player__btn:hover { background: rgba(255,255,255,0.08); }
|
|
96
|
+
|
|
97
|
+
.player__btn--play {
|
|
98
|
+
width: 36px;
|
|
99
|
+
height: 36px;
|
|
100
|
+
background: var(--Primary-Primary-500, #f49a3d);
|
|
101
|
+
border-radius: 50%;
|
|
102
|
+
display: flex;
|
|
103
|
+
align-items: center;
|
|
104
|
+
justify-content: center;
|
|
105
|
+
flex-shrink: 0;
|
|
106
|
+
}
|
|
107
|
+
.player__btn--play:hover { background: var(--Primary-Primary-600, #e08526); }
|
|
108
|
+
|
|
109
|
+
/* Volume */
|
|
110
|
+
.player__volume {
|
|
111
|
+
display: flex;
|
|
112
|
+
align-items: center;
|
|
113
|
+
gap: 4px;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.player__volume-slider {
|
|
117
|
+
width: 60px;
|
|
118
|
+
accent-color: var(--Primary-Primary-500, #f49a3d);
|
|
119
|
+
cursor: pointer;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.player__spacer { flex: 1; }
|
|
123
|
+
|
|
124
|
+
/* Audio-only: slightly smaller */
|
|
125
|
+
.player--audio .player__controls {
|
|
126
|
+
padding: var(--Size-4, 16px);
|
|
127
|
+
}
|