@dropi/ui 0.1.18 → 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 +58 -0
- package/dist/cjs/dropi-avatars.cjs.entry.js +31 -0
- 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 +38 -0
- package/dist/cjs/dropi-carousel.cjs.entry.js +83 -0
- package/dist/cjs/dropi-checkbox-selection-list.cjs.entry.js +71 -0
- package/dist/cjs/dropi-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/dropi-chips.cjs.entry.js +30 -0
- 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 +58 -0
- package/dist/cjs/dropi-empty-state.cjs.entry.js +9 -5
- package/dist/cjs/dropi-favorite-button.cjs.entry.js +27 -0
- 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 +44 -0
- package/dist/cjs/dropi-image-overlay.cjs.entry.js +62 -0
- package/dist/cjs/dropi-input.cjs.entry.js +10 -10
- package/dist/cjs/dropi-languages-selector.cjs.entry.js +57 -0
- package/dist/cjs/dropi-logo.cjs.entry.js +27 -0
- package/dist/cjs/dropi-lottie-loader.cjs.entry.js +27 -0
- 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 +92 -0
- package/dist/cjs/dropi-paginator.cjs.entry.js +7 -5
- 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 +56 -0
- package/dist/cjs/dropi-read-more.cjs.entry.js +36 -0
- package/dist/cjs/dropi-search.cjs.entry.js +110 -0
- 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 +51 -0
- package/dist/cjs/dropi-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/dropi-steps.cjs.entry.js +50 -0
- 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 +34 -0
- 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 +55 -0
- 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 +44 -1
- package/dist/collection/components/dropi-accordion/dropi-accordion.js +1 -1
- package/dist/collection/components/dropi-alert/dropi-alert.css +134 -0
- package/dist/collection/components/dropi-alert/dropi-alert.js +305 -0
- 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.css +55 -0
- package/dist/collection/components/dropi-avatars/dropi-avatars.js +126 -0
- 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.css +42 -0
- package/dist/collection/components/dropi-card-section/dropi-card-section.js +178 -0
- 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.css +44 -0
- package/dist/collection/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.js +245 -0
- package/dist/collection/components/dropi-chips/dropi-chips.css +68 -0
- package/dist/collection/components/dropi-chips/dropi-chips.js +169 -0
- 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.css +51 -0
- package/dist/collection/components/dropi-dropdown/dropi-dropdown.js +184 -0
- 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.css +24 -0
- package/dist/collection/components/dropi-favorite-button/dropi-favorite-button.js +78 -0
- 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.css +45 -0
- package/dist/collection/components/dropi-image-miniature/dropi-image-miniature.js +150 -0
- package/dist/collection/components/dropi-image-overlay/dropi-image-overlay.css +123 -0
- package/dist/collection/components/dropi-image-overlay/dropi-image-overlay.js +155 -0
- package/dist/collection/components/dropi-input/dropi-input.css +11 -0
- package/dist/collection/components/dropi-input/dropi-input.js +4 -4
- 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.css +26 -0
- package/dist/collection/components/dropi-logo/dropi-logo.js +96 -0
- package/dist/collection/components/dropi-lottie-loader/dropi-lottie-loader.css +50 -0
- package/dist/collection/components/dropi-lottie-loader/dropi-lottie-loader.js +116 -0
- 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 +67 -0
- package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.js +221 -0
- package/dist/collection/components/dropi-paginator/dropi-paginator.css +15 -12
- package/dist/collection/components/dropi-paginator/dropi-paginator.js +24 -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.css +64 -0
- package/dist/collection/components/dropi-radio-selection-list/dropi-radio-selection-list.js +209 -0
- package/dist/collection/components/dropi-read-more/dropi-read-more.css +28 -0
- package/dist/collection/components/dropi-read-more/dropi-read-more.js +110 -0
- package/dist/collection/components/dropi-search/dropi-search.css +112 -0
- package/dist/collection/components/dropi-search/dropi-search.js +392 -0
- 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.css +94 -0
- package/dist/collection/components/dropi-simple-stepper/dropi-simple-stepper.js +172 -0
- package/dist/collection/components/dropi-steps/dropi-steps.css +95 -0
- package/dist/collection/components/dropi-steps/dropi-steps.js +145 -0
- 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 -2
- package/dist/collection/components/dropi-text-area/dropi-text-area.js +2 -2
- package/dist/collection/components/dropi-time-line/dropi-time-line.css +108 -0
- package/dist/collection/components/dropi-time-line/dropi-time-line.js +69 -0
- 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.css +95 -0
- package/dist/collection/components/dropi-vertical-steps/dropi-vertical-steps.js +167 -0
- 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.d.ts +11 -0
- package/dist/components/dropi-alert.js +1 -0
- package/dist/components/dropi-avatars.d.ts +11 -0
- package/dist/components/dropi-avatars.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/dropi-card-section.js +1 -0
- package/dist/components/dropi-carousel.d.ts +11 -0
- package/dist/components/dropi-carousel.js +1 -0
- package/dist/components/dropi-checkbox-selection-list.d.ts +11 -0
- package/dist/components/dropi-checkbox-selection-list.js +1 -0
- package/dist/components/dropi-checkbox.js +1 -1
- package/dist/components/dropi-chips.d.ts +11 -0
- package/dist/components/dropi-chips.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/dropi-dropdown.js +1 -0
- package/dist/components/dropi-empty-state.js +1 -1
- package/dist/components/dropi-favorite-button.d.ts +11 -0
- package/dist/components/dropi-favorite-button.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/dropi-image-miniature.js +1 -0
- package/dist/components/dropi-image-overlay.d.ts +11 -0
- package/dist/components/dropi-image-overlay.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/dropi-logo.js +1 -0
- package/dist/components/dropi-lottie-loader.d.ts +11 -0
- package/dist/components/dropi-lottie-loader.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/dropi-otp-send-code.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/dropi-radio-selection-list.js +1 -0
- package/dist/components/dropi-read-more.d.ts +11 -0
- package/dist/components/dropi-read-more.js +1 -0
- package/dist/components/dropi-search.d.ts +11 -0
- package/dist/components/dropi-search.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/dropi-simple-stepper.js +1 -0
- package/dist/components/dropi-steps.d.ts +11 -0
- package/dist/components/dropi-steps.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/dropi-time-line.js +1 -0
- package/dist/components/dropi-toast.js +1 -1
- package/dist/components/dropi-tooltip.js +1 -1
- package/dist/components/dropi-vertical-steps.d.ts +11 -0
- package/dist/components/dropi-vertical-steps.js +1 -0
- 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-ChOXWKmI.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-0e88a543.entry.js +1 -0
- package/dist/dropi-ui/p-0f2f5f75.entry.js +1 -0
- package/dist/dropi-ui/p-131d87ac.entry.js +1 -0
- 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-42179ae4.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-68080534.entry.js +1 -0
- package/dist/dropi-ui/{p-e44242e2.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-6031ac9d.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-4d582d58.entry.js → p-c0677661.entry.js} +1 -1
- package/dist/dropi-ui/p-c2562a1c.entry.js +1 -0
- package/dist/dropi-ui/p-c2b5d0fb.entry.js +1 -0
- package/dist/dropi-ui/p-c4d4396b.entry.js +1 -0
- package/dist/dropi-ui/p-c9ebd31b.entry.js +1 -0
- 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 +56 -0
- package/dist/esm/dropi-avatars.entry.js +29 -0
- 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 +36 -0
- package/dist/esm/dropi-carousel.entry.js +81 -0
- package/dist/esm/dropi-checkbox-selection-list.entry.js +69 -0
- package/dist/esm/dropi-checkbox.entry.js +4 -4
- package/dist/esm/dropi-chips.entry.js +28 -0
- 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 +56 -0
- package/dist/esm/dropi-empty-state.entry.js +9 -5
- package/dist/esm/dropi-favorite-button.entry.js +25 -0
- 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 +42 -0
- package/dist/esm/dropi-image-overlay.entry.js +60 -0
- package/dist/esm/dropi-input.entry.js +10 -10
- package/dist/esm/dropi-languages-selector.entry.js +55 -0
- package/dist/esm/dropi-logo.entry.js +25 -0
- package/dist/esm/dropi-lottie-loader.entry.js +25 -0
- 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 +90 -0
- package/dist/esm/dropi-paginator.entry.js +7 -5
- 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 +54 -0
- package/dist/esm/dropi-read-more.entry.js +34 -0
- package/dist/esm/dropi-search.entry.js +108 -0
- 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 +49 -0
- package/dist/esm/dropi-skeleton.entry.js +1 -1
- package/dist/esm/dropi-steps.entry.js +48 -0
- 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 +32 -0
- 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 +53 -0
- 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/dropi-alert.d.ts +35 -0
- package/dist/types/components/dropi-alert-modal/dropi-alert-modal.d.ts +48 -0
- package/dist/types/components/dropi-avatars/dropi-avatars.d.ts +17 -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-card-section/dropi-card-section.d.ts +22 -0
- package/dist/types/components/dropi-carousel/dropi-carousel.d.ts +40 -0
- package/dist/types/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.d.ts +37 -0
- package/dist/types/components/dropi-chips/dropi-chips.d.ts +23 -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-dropdown/dropi-dropdown.d.ts +28 -0
- package/dist/types/components/dropi-empty-state/dropi-empty-state.d.ts +4 -0
- package/dist/types/components/dropi-favorite-button/dropi-favorite-button.d.ts +14 -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-image-miniature/dropi-image-miniature.d.ts +23 -0
- package/dist/types/components/dropi-image-overlay/dropi-image-overlay.d.ts +26 -0
- package/dist/types/components/dropi-languages-selector/dropi-languages-selector.d.ts +31 -0
- package/dist/types/components/dropi-logo/dropi-logo.d.ts +14 -0
- package/dist/types/components/dropi-lottie-loader/dropi-lottie-loader.d.ts +15 -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-otp-send-code/dropi-otp-send-code.d.ts +33 -0
- package/dist/types/components/dropi-paginator/dropi-paginator.d.ts +2 -0
- package/dist/types/components/dropi-phone-input/dropi-phone-input.d.ts +34 -0
- package/dist/types/components/dropi-radio-selection-list/dropi-radio-selection-list.d.ts +34 -0
- package/dist/types/components/dropi-read-more/dropi-read-more.d.ts +17 -0
- package/dist/types/components/dropi-search/dropi-search.d.ts +51 -0
- package/dist/types/components/dropi-sidebar/dropi-sidebar.d.ts +35 -0
- package/dist/types/components/dropi-simple-stepper/dropi-simple-stepper.d.ts +20 -0
- package/dist/types/components/dropi-steps/dropi-steps.d.ts +21 -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-time-line/dropi-time-line.d.ts +18 -0
- package/dist/types/components/dropi-vertical-steps/dropi-vertical-steps.d.ts +24 -0
- package/dist/types/components/dropi-youtube-lazy-video/dropi-youtube-lazy-video.d.ts +19 -0
- package/dist/types/components.d.ts +5705 -874
- package/package.json +1 -1
- package/scripts/setup.js +2 -0
- package/dist/components/p-NCyvfOs2.js +0 -1
- package/dist/dropi-ui/p-082b7039.entry.js +0 -1
- package/dist/dropi-ui/p-09c38a49.entry.js +0 -1
- package/dist/dropi-ui/p-1739d20c.entry.js +0 -1
- package/dist/dropi-ui/p-26dbae0d.entry.js +0 -1
- package/dist/dropi-ui/p-63e969da.entry.js +0 -1
- package/dist/dropi-ui/p-65fa8558.entry.js +0 -1
- package/dist/dropi-ui/p-6d15d32f.entry.js +0 -1
- package/dist/dropi-ui/p-79466fec.entry.js +0 -1
- package/dist/dropi-ui/p-Twbb5MNM.js +0 -2
- package/dist/dropi-ui/p-a5650d8f.entry.js +0 -1
- package/dist/dropi-ui/p-eb7f9a57.entry.js +0 -1
- package/dist/dropi-ui/p-ecda6e19.entry.js +0 -1
- package/dist/dropi-ui/p-f0e1e0f6.entry.js +0 -1
- package/dist/dropi-ui/p-f283f41d.entry.js +0 -1
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* @component dropi-media-player
|
|
4
|
+
* HTML5 audio/video player with custom controls: play/pause, seek bar,
|
|
5
|
+
* volume, mute, duration display, and fullscreen (video only).
|
|
6
|
+
*/
|
|
7
|
+
export class DropiMediaPlayer {
|
|
8
|
+
el;
|
|
9
|
+
/** Media source URL */
|
|
10
|
+
src = '';
|
|
11
|
+
/** "audio" or "video" */
|
|
12
|
+
mediaType = 'audio';
|
|
13
|
+
/** Poster image (video only) */
|
|
14
|
+
poster = '';
|
|
15
|
+
/** Autoplay */
|
|
16
|
+
autoplay = false;
|
|
17
|
+
/** Loop */
|
|
18
|
+
loop = false;
|
|
19
|
+
/** Initial volume 0–1 */
|
|
20
|
+
initialVolume = 1;
|
|
21
|
+
/** Title shown above controls */
|
|
22
|
+
mediaTitle = '';
|
|
23
|
+
playing = false;
|
|
24
|
+
currentTime = 0;
|
|
25
|
+
duration = 0;
|
|
26
|
+
volume = 1;
|
|
27
|
+
muted = false;
|
|
28
|
+
loading = true;
|
|
29
|
+
mediaEl;
|
|
30
|
+
/** Emitted when playback starts/pauses. e.detail = playing */
|
|
31
|
+
dropiPlay;
|
|
32
|
+
/** Emitted when media ends */
|
|
33
|
+
dropiEnded;
|
|
34
|
+
componentDidLoad() {
|
|
35
|
+
if (this.mediaEl) {
|
|
36
|
+
this.mediaEl.volume = this.initialVolume;
|
|
37
|
+
this.volume = this.initialVolume;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
togglePlay() {
|
|
41
|
+
if (!this.mediaEl)
|
|
42
|
+
return;
|
|
43
|
+
if (this.playing) {
|
|
44
|
+
this.mediaEl.pause();
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
this.mediaEl.play();
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
handleTimeUpdate() {
|
|
51
|
+
this.currentTime = this.mediaEl.currentTime;
|
|
52
|
+
}
|
|
53
|
+
handleLoadedMetadata() {
|
|
54
|
+
this.duration = this.mediaEl.duration;
|
|
55
|
+
this.loading = false;
|
|
56
|
+
}
|
|
57
|
+
handleSeek(e) {
|
|
58
|
+
const val = Number(e.target.value);
|
|
59
|
+
this.mediaEl.currentTime = val;
|
|
60
|
+
this.currentTime = val;
|
|
61
|
+
}
|
|
62
|
+
handleVolume(e) {
|
|
63
|
+
const val = Number(e.target.value);
|
|
64
|
+
this.mediaEl.volume = val;
|
|
65
|
+
this.volume = val;
|
|
66
|
+
this.muted = val === 0;
|
|
67
|
+
}
|
|
68
|
+
toggleMute() {
|
|
69
|
+
this.muted = !this.muted;
|
|
70
|
+
this.mediaEl.muted = this.muted;
|
|
71
|
+
}
|
|
72
|
+
handleFullscreen() {
|
|
73
|
+
if (this.mediaType !== 'video')
|
|
74
|
+
return;
|
|
75
|
+
const vid = this.mediaEl;
|
|
76
|
+
if (document.fullscreenElement)
|
|
77
|
+
document.exitFullscreen();
|
|
78
|
+
else
|
|
79
|
+
vid.requestFullscreen?.();
|
|
80
|
+
}
|
|
81
|
+
formatTime(secs) {
|
|
82
|
+
if (isNaN(secs))
|
|
83
|
+
return '0:00';
|
|
84
|
+
const m = Math.floor(secs / 60);
|
|
85
|
+
const s = Math.floor(secs % 60);
|
|
86
|
+
return `${m}:${String(s).padStart(2, '0')}`;
|
|
87
|
+
}
|
|
88
|
+
render() {
|
|
89
|
+
const pct = this.duration ? (this.currentTime / this.duration) * 100 : 0;
|
|
90
|
+
return (h("div", { key: '76ee9c93a56b78e8ebdad1a77a59b56bbd1ae8f6', class: `player player--${this.mediaType}` }, this.mediaType === 'video' ? (h("video", { class: "player__video", ref: (el) => this.mediaEl = el, src: this.src, poster: this.poster, autoplay: this.autoplay, loop: this.loop, preload: "metadata", onPlay: () => { this.playing = true; this.dropiPlay.emit(true); }, onPause: () => { this.playing = false; this.dropiPlay.emit(false); }, onTimeUpdate: () => this.handleTimeUpdate(), onLoadedMetaData: () => this.handleLoadedMetadata(), onEnded: () => { this.playing = false; this.dropiEnded.emit(); }, onWaiting: () => this.loading = true, onCanPlay: () => this.loading = false })) : (h("audio", { ref: (el) => this.mediaEl = el, src: this.src, autoplay: this.autoplay, loop: this.loop, preload: "metadata", onPlay: () => { this.playing = true; this.dropiPlay.emit(true); }, onPause: () => { this.playing = false; this.dropiPlay.emit(false); }, onTimeUpdate: () => this.handleTimeUpdate(), onLoadedMetaData: () => this.handleLoadedMetadata(), onEnded: () => { this.playing = false; this.dropiEnded.emit(); } })), h("div", { key: '444cb9c86d3a69042d827ab4785e8c0995f82e6d', class: "player__controls" }, this.mediaTitle && (h("span", { key: '39bee7040cddfae5ce17e6ee62d0713ba0062ae4', class: "player__title" }, this.mediaTitle)), h("div", { key: '05ccbde97d88387d1b167495887877f0d3443cc4', class: "player__seek-wrap" }, h("span", { key: '1e8f81054b851975a0526224f5b2455687d6d1ba', class: "player__time" }, this.formatTime(this.currentTime)), h("div", { key: 'aecd083653f3384e47938ff00bcd0f913eab4e13', class: "player__seek-track" }, h("div", { key: '2bef10203f1c0d22e371e8e7ee223ec9aaf9b496', class: "player__seek-fill", style: { width: `${pct}%` } }), h("input", { key: '7d8b658dca7b663e01d86d69480113edc8849951', class: "player__seek", type: "range", min: 0, max: this.duration || 100, step: 0.1, value: this.currentTime, onInput: (e) => this.handleSeek(e) })), h("span", { key: '0127fa197a59db81f224db1a168b52fc4be154fe', class: "player__time" }, this.formatTime(this.duration))), h("div", { key: '171eff82a5f55544cb0ad601ae4ae07954e93c43', class: "player__buttons" }, h("button", { key: '0d207dcd555e040999e6434009b7762e9caf8359', class: "player__btn player__btn--play", onClick: () => this.togglePlay(), type: "button" }, this.loading
|
|
91
|
+
? h("dropi-icon", { name: "Spinner", width: "20px", height: "20px", color: "Neutral-White" })
|
|
92
|
+
: h("dropi-icon", { name: this.playing ? 'Pause' : 'Play', width: "20px", height: "20px", color: "Neutral-White" })), h("div", { key: 'd8eeb92e14729c49e0b2ef459c44ed1f402ce9f8', class: "player__volume" }, h("button", { key: '4bdf9ca4d03e1e7a420b280f0106e67d50fe6285', class: "player__btn", onClick: () => this.toggleMute(), type: "button" }, h("dropi-icon", { key: '715e93fc8b50f42c07c545ace9dbbf757ac0742a', name: this.muted || this.volume === 0 ? 'Volume-off' : this.volume < 0.5 ? 'Volume-low' : 'Volume-high', width: "16px", height: "16px", color: "Gray-Gray-600" })), h("input", { key: 'd2a3f93696c8c1a42ce99c04c4fbf419e2f8b3e6', class: "player__volume-slider", type: "range", min: 0, max: 1, step: 0.05, value: this.muted ? 0 : this.volume, onInput: (e) => this.handleVolume(e) })), h("span", { key: '7dc77449676683256fbf746ff9e3679d0b8ed41d', class: "player__spacer" }), this.mediaType === 'video' && (h("button", { key: '442d58c35ca6e8649849e30f46d33274bbff577b', class: "player__btn", onClick: () => this.handleFullscreen(), type: "button" }, h("dropi-icon", { key: '89a88d82501bfa0af389a8bc3c17cb3eeca9af00', name: "Fullscreen", width: "16px", height: "16px", color: "Gray-Gray-600" })))))));
|
|
93
|
+
}
|
|
94
|
+
static get is() { return "dropi-media-player"; }
|
|
95
|
+
static get encapsulation() { return "shadow"; }
|
|
96
|
+
static get originalStyleUrls() {
|
|
97
|
+
return {
|
|
98
|
+
"$": ["dropi-media-player.css"]
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
static get styleUrls() {
|
|
102
|
+
return {
|
|
103
|
+
"$": ["dropi-media-player.css"]
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
static get properties() {
|
|
107
|
+
return {
|
|
108
|
+
"src": {
|
|
109
|
+
"type": "string",
|
|
110
|
+
"mutable": false,
|
|
111
|
+
"complexType": {
|
|
112
|
+
"original": "string",
|
|
113
|
+
"resolved": "string",
|
|
114
|
+
"references": {}
|
|
115
|
+
},
|
|
116
|
+
"required": false,
|
|
117
|
+
"optional": false,
|
|
118
|
+
"docs": {
|
|
119
|
+
"tags": [],
|
|
120
|
+
"text": "Media source URL"
|
|
121
|
+
},
|
|
122
|
+
"getter": false,
|
|
123
|
+
"setter": false,
|
|
124
|
+
"reflect": false,
|
|
125
|
+
"attribute": "src",
|
|
126
|
+
"defaultValue": "''"
|
|
127
|
+
},
|
|
128
|
+
"mediaType": {
|
|
129
|
+
"type": "string",
|
|
130
|
+
"mutable": false,
|
|
131
|
+
"complexType": {
|
|
132
|
+
"original": "'audio' | 'video'",
|
|
133
|
+
"resolved": "\"audio\" | \"video\"",
|
|
134
|
+
"references": {}
|
|
135
|
+
},
|
|
136
|
+
"required": false,
|
|
137
|
+
"optional": false,
|
|
138
|
+
"docs": {
|
|
139
|
+
"tags": [],
|
|
140
|
+
"text": "\"audio\" or \"video\""
|
|
141
|
+
},
|
|
142
|
+
"getter": false,
|
|
143
|
+
"setter": false,
|
|
144
|
+
"reflect": false,
|
|
145
|
+
"attribute": "media-type",
|
|
146
|
+
"defaultValue": "'audio'"
|
|
147
|
+
},
|
|
148
|
+
"poster": {
|
|
149
|
+
"type": "string",
|
|
150
|
+
"mutable": false,
|
|
151
|
+
"complexType": {
|
|
152
|
+
"original": "string",
|
|
153
|
+
"resolved": "string",
|
|
154
|
+
"references": {}
|
|
155
|
+
},
|
|
156
|
+
"required": false,
|
|
157
|
+
"optional": false,
|
|
158
|
+
"docs": {
|
|
159
|
+
"tags": [],
|
|
160
|
+
"text": "Poster image (video only)"
|
|
161
|
+
},
|
|
162
|
+
"getter": false,
|
|
163
|
+
"setter": false,
|
|
164
|
+
"reflect": false,
|
|
165
|
+
"attribute": "poster",
|
|
166
|
+
"defaultValue": "''"
|
|
167
|
+
},
|
|
168
|
+
"autoplay": {
|
|
169
|
+
"type": "boolean",
|
|
170
|
+
"mutable": false,
|
|
171
|
+
"complexType": {
|
|
172
|
+
"original": "boolean",
|
|
173
|
+
"resolved": "boolean",
|
|
174
|
+
"references": {}
|
|
175
|
+
},
|
|
176
|
+
"required": false,
|
|
177
|
+
"optional": false,
|
|
178
|
+
"docs": {
|
|
179
|
+
"tags": [],
|
|
180
|
+
"text": "Autoplay"
|
|
181
|
+
},
|
|
182
|
+
"getter": false,
|
|
183
|
+
"setter": false,
|
|
184
|
+
"reflect": false,
|
|
185
|
+
"attribute": "autoplay",
|
|
186
|
+
"defaultValue": "false"
|
|
187
|
+
},
|
|
188
|
+
"loop": {
|
|
189
|
+
"type": "boolean",
|
|
190
|
+
"mutable": false,
|
|
191
|
+
"complexType": {
|
|
192
|
+
"original": "boolean",
|
|
193
|
+
"resolved": "boolean",
|
|
194
|
+
"references": {}
|
|
195
|
+
},
|
|
196
|
+
"required": false,
|
|
197
|
+
"optional": false,
|
|
198
|
+
"docs": {
|
|
199
|
+
"tags": [],
|
|
200
|
+
"text": "Loop"
|
|
201
|
+
},
|
|
202
|
+
"getter": false,
|
|
203
|
+
"setter": false,
|
|
204
|
+
"reflect": false,
|
|
205
|
+
"attribute": "loop",
|
|
206
|
+
"defaultValue": "false"
|
|
207
|
+
},
|
|
208
|
+
"initialVolume": {
|
|
209
|
+
"type": "number",
|
|
210
|
+
"mutable": false,
|
|
211
|
+
"complexType": {
|
|
212
|
+
"original": "number",
|
|
213
|
+
"resolved": "number",
|
|
214
|
+
"references": {}
|
|
215
|
+
},
|
|
216
|
+
"required": false,
|
|
217
|
+
"optional": false,
|
|
218
|
+
"docs": {
|
|
219
|
+
"tags": [],
|
|
220
|
+
"text": "Initial volume 0\u20131"
|
|
221
|
+
},
|
|
222
|
+
"getter": false,
|
|
223
|
+
"setter": false,
|
|
224
|
+
"reflect": false,
|
|
225
|
+
"attribute": "initial-volume",
|
|
226
|
+
"defaultValue": "1"
|
|
227
|
+
},
|
|
228
|
+
"mediaTitle": {
|
|
229
|
+
"type": "string",
|
|
230
|
+
"mutable": false,
|
|
231
|
+
"complexType": {
|
|
232
|
+
"original": "string",
|
|
233
|
+
"resolved": "string",
|
|
234
|
+
"references": {}
|
|
235
|
+
},
|
|
236
|
+
"required": false,
|
|
237
|
+
"optional": false,
|
|
238
|
+
"docs": {
|
|
239
|
+
"tags": [],
|
|
240
|
+
"text": "Title shown above controls"
|
|
241
|
+
},
|
|
242
|
+
"getter": false,
|
|
243
|
+
"setter": false,
|
|
244
|
+
"reflect": false,
|
|
245
|
+
"attribute": "media-title",
|
|
246
|
+
"defaultValue": "''"
|
|
247
|
+
}
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
static get states() {
|
|
251
|
+
return {
|
|
252
|
+
"playing": {},
|
|
253
|
+
"currentTime": {},
|
|
254
|
+
"duration": {},
|
|
255
|
+
"volume": {},
|
|
256
|
+
"muted": {},
|
|
257
|
+
"loading": {}
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
static get events() {
|
|
261
|
+
return [{
|
|
262
|
+
"method": "dropiPlay",
|
|
263
|
+
"name": "dropiPlay",
|
|
264
|
+
"bubbles": true,
|
|
265
|
+
"cancelable": true,
|
|
266
|
+
"composed": true,
|
|
267
|
+
"docs": {
|
|
268
|
+
"tags": [],
|
|
269
|
+
"text": "Emitted when playback starts/pauses. e.detail = playing"
|
|
270
|
+
},
|
|
271
|
+
"complexType": {
|
|
272
|
+
"original": "boolean",
|
|
273
|
+
"resolved": "boolean",
|
|
274
|
+
"references": {}
|
|
275
|
+
}
|
|
276
|
+
}, {
|
|
277
|
+
"method": "dropiEnded",
|
|
278
|
+
"name": "dropiEnded",
|
|
279
|
+
"bubbles": true,
|
|
280
|
+
"cancelable": true,
|
|
281
|
+
"composed": true,
|
|
282
|
+
"docs": {
|
|
283
|
+
"tags": [],
|
|
284
|
+
"text": "Emitted when media ends"
|
|
285
|
+
},
|
|
286
|
+
"complexType": {
|
|
287
|
+
"original": "void",
|
|
288
|
+
"resolved": "void",
|
|
289
|
+
"references": {}
|
|
290
|
+
}
|
|
291
|
+
}];
|
|
292
|
+
}
|
|
293
|
+
static get elementRef() { return "el"; }
|
|
294
|
+
}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
background: var(--Neutral-White, #fff);
|
|
26
26
|
box-shadow: 0 0 60px rgba(0,0,0,0.06);
|
|
27
27
|
overflow: hidden;
|
|
28
|
-
padding: var(--Size-6, 32px); gap: var(--Size-
|
|
28
|
+
padding: var(--Size-6, 32px); gap: var(--Size-6, 32px);
|
|
29
29
|
max-height: calc(100vh - 60px);
|
|
30
30
|
opacity: 0; transform: translateY(16px) scale(0.92);
|
|
31
31
|
transition: opacity 0.18s ease, transform 0.18s ease;
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
|
|
36
36
|
.modal-header { display: flex; align-items: center; gap: 4px; }
|
|
37
37
|
.modal-title { color: var(--Gray-Gray-700,#32394d); font-size: var(--Size-5, 24px); font-weight: 700; flex: 1; text-align: left; }
|
|
38
|
-
.modal-close { margin-left: auto; border: 0; background: transparent; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
|
|
38
|
+
.modal-close { margin-left: auto; border: 0; background: transparent; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 24px; line-height: 1; color: var(--Gray-Gray-400); }
|
|
39
39
|
.modal-close:hover { opacity: 0.7; }
|
|
40
40
|
|
|
41
41
|
.modal-content {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
.modal-footer {
|
|
50
50
|
display: flex;
|
|
51
51
|
justify-content: flex-end;
|
|
52
|
-
align-items:
|
|
52
|
+
align-items: flex-start;
|
|
53
53
|
gap: var(--Size-1, 4px);
|
|
54
54
|
width: 100%;
|
|
55
55
|
}
|
|
@@ -63,6 +63,12 @@
|
|
|
63
63
|
min-width: 470px;
|
|
64
64
|
width: 100%;
|
|
65
65
|
}
|
|
66
|
+
::slotted(.button-container) > * {
|
|
67
|
+
width: 100%;
|
|
68
|
+
}
|
|
69
|
+
::slotted(.button-container) dropi-button {
|
|
70
|
+
width: 100%;
|
|
71
|
+
}
|
|
66
72
|
|
|
67
73
|
.modal-panel.size-m .modal-footer,
|
|
68
74
|
.modal-panel.size-s .modal-footer {
|
|
@@ -58,8 +58,9 @@ export class DropiModal {
|
|
|
58
58
|
this.dropiShow.emit();
|
|
59
59
|
}));
|
|
60
60
|
this.addKeyHandler();
|
|
61
|
-
if (this.modal)
|
|
62
|
-
document.body.style.overflow
|
|
61
|
+
if (this.modal && document.body && document.body.style) {
|
|
62
|
+
document.body.style.setProperty('overflow', 'hidden');
|
|
63
|
+
}
|
|
63
64
|
}
|
|
64
65
|
startClose() {
|
|
65
66
|
if (this.isClosing)
|
|
@@ -72,7 +73,9 @@ export class DropiModal {
|
|
|
72
73
|
this.closeTimer = setTimeout(() => {
|
|
73
74
|
this.mounted = false;
|
|
74
75
|
this.isClosing = false;
|
|
75
|
-
document.body.style
|
|
76
|
+
if (document.body && document.body.style) {
|
|
77
|
+
document.body.style.setProperty('overflow', '');
|
|
78
|
+
}
|
|
76
79
|
this.dropiHide.emit();
|
|
77
80
|
}, 200);
|
|
78
81
|
}
|
|
@@ -94,7 +97,7 @@ export class DropiModal {
|
|
|
94
97
|
render() {
|
|
95
98
|
if (!this.mounted)
|
|
96
99
|
return null;
|
|
97
|
-
return (h("div", { class:
|
|
100
|
+
return (h("div", { class: `modal-root modal-root--${this.position}${this.isOpen ? ' modal-root--open' : ''}${this.isClosing ? ' modal-root--closing' : ''}` }, this.modal && h("div", { class: "modal-mask", onClick: () => this.dismissable && this.hide() }), h("div", { class: `modal-panel size-${this.size || 'm'}`, role: "dialog", "aria-modal": "true" }, this.showHeader && (h("div", { class: "modal-header" }, this.header && h("span", { class: "modal-title" }, this.header), h("slot", { name: "header" }), this.showCloseIcon && (h("button", { class: "modal-close", onClick: () => this.hide(), "aria-label": "Cerrar" }, "\u00D7")))), h("div", { class: "modal-content" }, h("slot", null)), h("div", { class: "modal-footer" }, h("slot", { name: "footer" })))));
|
|
98
101
|
}
|
|
99
102
|
static get is() { return "dropi-modal"; }
|
|
100
103
|
static get encapsulation() { return "shadow"; }
|
|
@@ -317,7 +320,7 @@ export class DropiModal {
|
|
|
317
320
|
"name": "dropiShow",
|
|
318
321
|
"bubbles": true,
|
|
319
322
|
"cancelable": true,
|
|
320
|
-
"composed":
|
|
323
|
+
"composed": false,
|
|
321
324
|
"docs": {
|
|
322
325
|
"tags": [],
|
|
323
326
|
"text": ""
|
|
@@ -332,7 +335,7 @@ export class DropiModal {
|
|
|
332
335
|
"name": "dropiHide",
|
|
333
336
|
"bubbles": true,
|
|
334
337
|
"cancelable": true,
|
|
335
|
-
"composed":
|
|
338
|
+
"composed": false,
|
|
336
339
|
"docs": {
|
|
337
340
|
"tags": [],
|
|
338
341
|
"text": ""
|
|
@@ -347,7 +350,7 @@ export class DropiModal {
|
|
|
347
350
|
"name": "visibleChange",
|
|
348
351
|
"bubbles": true,
|
|
349
352
|
"cancelable": true,
|
|
350
|
-
"composed":
|
|
353
|
+
"composed": false,
|
|
351
354
|
"docs": {
|
|
352
355
|
"tags": [],
|
|
353
356
|
"text": ""
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
:host { display: block; width: 100%; }
|
|
2
|
+
*, *::before, *::after { box-sizing: border-box; }
|
|
3
|
+
|
|
4
|
+
.navbar {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
height: 56px;
|
|
8
|
+
padding: 0 var(--Size-4, 16px);
|
|
9
|
+
background: var(--Neutral-White, #fff);
|
|
10
|
+
border-bottom: 1px solid var(--Gray-Gray-100, #eceef4);
|
|
11
|
+
gap: var(--Size-4, 16px);
|
|
12
|
+
position: relative;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* Left */
|
|
16
|
+
.navbar__left {
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
gap: var(--Size-2, 8px);
|
|
20
|
+
flex-shrink: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.navbar__menu-btn {
|
|
24
|
+
background: none;
|
|
25
|
+
border: none;
|
|
26
|
+
padding: 6px;
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
border-radius: var(--Border-1, 4px);
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
transition: background 0.15s;
|
|
32
|
+
}
|
|
33
|
+
.navbar__menu-btn:hover { background: var(--Gray-Gray-50, #f7f8fa); }
|
|
34
|
+
|
|
35
|
+
.navbar__logo {
|
|
36
|
+
height: 28px;
|
|
37
|
+
object-fit: contain;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* Center nav items */
|
|
41
|
+
.navbar__items {
|
|
42
|
+
flex: 1;
|
|
43
|
+
list-style: none;
|
|
44
|
+
margin: 0;
|
|
45
|
+
padding: 0;
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
gap: var(--Size-1, 4px);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.navbar__item {
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
gap: var(--Size-1, 4px);
|
|
55
|
+
padding: 6px var(--Size-3, 12px);
|
|
56
|
+
background: none;
|
|
57
|
+
border: none;
|
|
58
|
+
border-radius: var(--Border-1, 4px);
|
|
59
|
+
font-size: var(--font-size-s, 12px);
|
|
60
|
+
font-family: inherit;
|
|
61
|
+
color: var(--Gray-Gray-600, #475066);
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
transition: background 0.15s, color 0.15s;
|
|
64
|
+
white-space: nowrap;
|
|
65
|
+
}
|
|
66
|
+
.navbar__item:hover { background: var(--Gray-Gray-50, #f7f8fa); }
|
|
67
|
+
.navbar__item--active {
|
|
68
|
+
background: var(--Primary-Primary-50, #fff5eb);
|
|
69
|
+
color: var(--Primary-Primary-500, #f49a3d);
|
|
70
|
+
font-weight: var(--font-weight-bold, 700);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.navbar__badge {
|
|
74
|
+
background: var(--Error-Error-500, #f46a6b);
|
|
75
|
+
color: var(--Neutral-White, #fff);
|
|
76
|
+
font-size: 10px;
|
|
77
|
+
font-weight: 700;
|
|
78
|
+
min-width: 16px;
|
|
79
|
+
height: 16px;
|
|
80
|
+
border-radius: 100px;
|
|
81
|
+
display: flex;
|
|
82
|
+
align-items: center;
|
|
83
|
+
justify-content: center;
|
|
84
|
+
padding: 0 4px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* Right */
|
|
88
|
+
.navbar__right {
|
|
89
|
+
display: flex;
|
|
90
|
+
align-items: center;
|
|
91
|
+
gap: var(--Size-2, 8px);
|
|
92
|
+
flex-shrink: 0;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.navbar__icon-btn {
|
|
96
|
+
position: relative;
|
|
97
|
+
background: none;
|
|
98
|
+
border: none;
|
|
99
|
+
padding: 6px;
|
|
100
|
+
cursor: pointer;
|
|
101
|
+
border-radius: var(--Border-1, 4px);
|
|
102
|
+
display: flex;
|
|
103
|
+
align-items: center;
|
|
104
|
+
transition: background 0.15s;
|
|
105
|
+
}
|
|
106
|
+
.navbar__icon-btn:hover { background: var(--Gray-Gray-50, #f7f8fa); }
|
|
107
|
+
|
|
108
|
+
.navbar__notif-badge {
|
|
109
|
+
position: absolute;
|
|
110
|
+
top: 2px;
|
|
111
|
+
right: 2px;
|
|
112
|
+
background: var(--Error-Error-500, #f46a6b);
|
|
113
|
+
color: var(--Neutral-White, #fff);
|
|
114
|
+
font-size: 9px;
|
|
115
|
+
font-weight: 700;
|
|
116
|
+
min-width: 14px;
|
|
117
|
+
height: 14px;
|
|
118
|
+
border-radius: 100px;
|
|
119
|
+
display: flex;
|
|
120
|
+
align-items: center;
|
|
121
|
+
justify-content: center;
|
|
122
|
+
padding: 0 3px;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.navbar__user-btn {
|
|
126
|
+
display: flex;
|
|
127
|
+
align-items: center;
|
|
128
|
+
gap: var(--Size-1, 4px);
|
|
129
|
+
background: none;
|
|
130
|
+
border: none;
|
|
131
|
+
padding: 4px 8px;
|
|
132
|
+
border-radius: var(--Border-1, 4px);
|
|
133
|
+
cursor: pointer;
|
|
134
|
+
transition: background 0.15s;
|
|
135
|
+
font-family: inherit;
|
|
136
|
+
}
|
|
137
|
+
.navbar__user-btn:hover { background: var(--Gray-Gray-50, #f7f8fa); }
|
|
138
|
+
|
|
139
|
+
.navbar__avatar {
|
|
140
|
+
width: 28px;
|
|
141
|
+
height: 28px;
|
|
142
|
+
border-radius: 50%;
|
|
143
|
+
object-fit: cover;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.navbar__avatar-placeholder {
|
|
147
|
+
width: 28px;
|
|
148
|
+
height: 28px;
|
|
149
|
+
border-radius: 50%;
|
|
150
|
+
background: var(--Primary-Primary-500, #f49a3d);
|
|
151
|
+
color: var(--Neutral-White, #fff);
|
|
152
|
+
display: flex;
|
|
153
|
+
align-items: center;
|
|
154
|
+
justify-content: center;
|
|
155
|
+
font-size: var(--font-size-xs, 10px);
|
|
156
|
+
font-weight: var(--font-weight-bold, 700);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.navbar__user-name {
|
|
160
|
+
font-size: var(--font-size-s, 12px);
|
|
161
|
+
color: var(--Gray-Gray-700, #32394d);
|
|
162
|
+
max-width: 120px;
|
|
163
|
+
overflow: hidden;
|
|
164
|
+
text-overflow: ellipsis;
|
|
165
|
+
white-space: nowrap;
|
|
166
|
+
}
|