@dropi/ui 0.1.41 → 0.1.42
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/symbol/svg/sprite.css.svg +1 -1
- package/dist/cjs/dropi-accordion-item.cjs.entry.js +2 -2
- package/dist/cjs/dropi-accordion.cjs.entry.js +2 -2
- package/dist/cjs/dropi-alert-legacy.cjs.entry.js +1 -1
- package/dist/cjs/dropi-alert-modal.cjs.entry.js +20 -16
- package/dist/cjs/dropi-alert.cjs.entry.js +12 -12
- package/dist/cjs/dropi-avatars.cjs.entry.js +1 -1
- package/dist/cjs/dropi-badge-legacy.cjs.entry.js +2 -2
- package/dist/cjs/dropi-badge.cjs.entry.js +1 -1
- package/dist/cjs/dropi-banner-external.cjs.entry.js +3 -3
- package/dist/cjs/dropi-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/dropi-button.cjs.entry.js +7 -7
- package/dist/cjs/dropi-card-checkbox.cjs.entry.js +6 -6
- package/dist/cjs/dropi-card-product.cjs.entry.js +12 -12
- package/dist/cjs/dropi-card-section.cjs.entry.js +9 -9
- package/dist/cjs/dropi-carousel.cjs.entry.js +8 -8
- package/dist/cjs/dropi-checkbox-selection-list.cjs.entry.js +9 -9
- package/dist/cjs/dropi-checkbox.cjs.entry.js +6 -6
- package/dist/cjs/dropi-chips.cjs.entry.js +4 -4
- package/dist/cjs/dropi-city-selector.cjs.entry.js +2 -2
- package/dist/cjs/dropi-color-picker.cjs.entry.js +4 -4
- package/dist/cjs/dropi-country-flags.cjs.entry.js +2 -2
- package/dist/cjs/dropi-country-selector.cjs.entry.js +6 -6
- package/dist/cjs/dropi-date-picker-range.cjs.entry.js +4 -4
- package/dist/cjs/dropi-date-picker.cjs.entry.js +12 -12
- package/dist/cjs/dropi-drawer.cjs.entry.js +4 -4
- package/dist/cjs/dropi-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/dropi-empty-state.cjs.entry.js +3 -3
- package/dist/cjs/dropi-favorite-button.cjs.entry.js +3 -3
- package/dist/cjs/dropi-file-upload-progress-bar.cjs.entry.js +5 -5
- package/dist/cjs/dropi-file-upload.cjs.entry.js +3 -3
- package/dist/cjs/dropi-icon.cjs.entry.js +17 -3
- package/dist/cjs/dropi-ilustration-icon.cjs.entry.js +5 -5
- package/dist/cjs/dropi-image-miniature.cjs.entry.js +3 -3
- package/dist/cjs/dropi-image-overlay.cjs.entry.js +2 -2
- package/dist/cjs/dropi-input_3.cjs.entry.js +50 -22
- package/dist/cjs/dropi-languages-selector.cjs.entry.js +4 -4
- package/dist/cjs/dropi-logo.cjs.entry.js +2 -2
- package/dist/cjs/dropi-lottie-loader.cjs.entry.js +1 -1
- package/dist/cjs/dropi-media-player.cjs.entry.js +3 -3
- package/dist/cjs/dropi-modal.cjs.entry.js +37 -32
- package/dist/cjs/dropi-navbar.cjs.entry.js +7 -7
- package/dist/cjs/dropi-otp-send-code.cjs.entry.js +34 -19
- package/dist/cjs/dropi-phone-input.cjs.entry.js +14 -14
- package/dist/cjs/dropi-progress-bar.cjs.entry.js +43 -0
- package/dist/cjs/dropi-radio-button.cjs.entry.js +5 -5
- package/dist/cjs/dropi-radio-selection-list.cjs.entry.js +9 -9
- package/dist/cjs/dropi-read-more.cjs.entry.js +2 -2
- package/dist/cjs/dropi-search.cjs.entry.js +21 -21
- package/dist/cjs/dropi-select.cjs.entry.js +50 -22
- package/dist/cjs/dropi-sidebar.cjs.entry.js +6 -6
- package/dist/cjs/dropi-simple-stepper.cjs.entry.js +1 -1
- package/dist/cjs/dropi-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/dropi-steps.cjs.entry.js +1 -1
- package/dist/cjs/dropi-switch.cjs.entry.js +5 -5
- package/dist/cjs/dropi-table.cjs.entry.js +38 -30
- package/dist/cjs/dropi-tabs.cjs.entry.js +5 -5
- package/dist/cjs/dropi-tag-type-product.cjs.entry.js +2 -2
- package/dist/cjs/dropi-text-area.cjs.entry.js +7 -7
- 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-v2.cjs.entry.js +3 -3
- 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 +2 -2
- package/dist/cjs/index-CEWSDq65.js +2773 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/assets/icons/symbol/svg/sprite.css.svg +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/dropi-accordion/dropi-accordion-item.js +1 -1
- package/dist/collection/components/dropi-accordion/dropi-accordion.js +1 -1
- package/dist/collection/components/dropi-alert/dropi-alert.js +16 -16
- package/dist/collection/components/dropi-alert-modal/dropi-alert-modal.js +43 -19
- package/dist/collection/components/dropi-badge-legacy/dropi-badge-legacy.js +1 -1
- package/dist/collection/components/dropi-button/dropi-button.css +6 -3
- package/dist/collection/components/dropi-button/dropi-button.js +6 -6
- package/dist/collection/components/dropi-card-checkbox/dropi-card-checkbox.js +6 -6
- package/dist/collection/components/dropi-card-product/dropi-card-product.js +11 -11
- package/dist/collection/components/dropi-card-section/dropi-card-section.js +10 -10
- package/dist/collection/components/dropi-carousel/dropi-carousel.js +9 -9
- package/dist/collection/components/dropi-checkbox/dropi-checkbox.js +6 -6
- package/dist/collection/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.js +10 -10
- package/dist/collection/components/dropi-chips/dropi-chips.js +4 -4
- package/dist/collection/components/dropi-color-picker/dropi-color-picker.js +2 -2
- package/dist/collection/components/dropi-country-flags/dropi-country-flags.js +1 -1
- package/dist/collection/components/dropi-country-selector/dropi-country-selector.js +6 -6
- package/dist/collection/components/dropi-date-picker/dropi-date-picker.js +12 -12
- package/dist/collection/components/dropi-drawer/dropi-drawer.js +2 -2
- package/dist/collection/components/dropi-empty-state/dropi-empty-state.js +1 -1
- package/dist/collection/components/dropi-favorite-button/dropi-favorite-button.js +1 -1
- package/dist/collection/components/dropi-file-upload/dropi-file-upload.js +1 -1
- package/dist/collection/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.js +1 -1
- package/dist/collection/components/dropi-icon/dropi-icon.css +2 -0
- package/dist/collection/components/dropi-icon/dropi-icon.js +35 -1
- package/dist/collection/components/dropi-ilustration-icon/dropi-ilustration-icon.js +4 -4
- package/dist/collection/components/dropi-image-miniature/dropi-image-miniature.js +1 -1
- package/dist/collection/components/dropi-input/dropi-input.js +18 -18
- package/dist/collection/components/dropi-languages-selector/dropi-languages-selector.js +4 -4
- package/dist/collection/components/dropi-logo/dropi-logo.js +1 -1
- package/dist/collection/components/dropi-modal/dropi-modal.css +12 -6
- package/dist/collection/components/dropi-modal/dropi-modal.js +47 -42
- package/dist/collection/components/dropi-navbar/dropi-navbar.js +2 -2
- package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.js +54 -18
- package/dist/collection/components/dropi-paginator/dropi-paginator.js +6 -6
- package/dist/collection/components/dropi-phone-input/dropi-phone-input.js +17 -17
- package/dist/collection/components/dropi-progress-bar/dropi-progress-bar.css +35 -0
- package/dist/collection/components/dropi-progress-bar/dropi-progress-bar.js +168 -0
- package/dist/collection/components/dropi-radio-button/dropi-radio-button.js +5 -5
- package/dist/collection/components/dropi-radio-selection-list/dropi-radio-selection-list.js +10 -10
- package/dist/collection/components/dropi-read-more/dropi-read-more.js +1 -1
- package/dist/collection/components/dropi-search/dropi-search.js +26 -26
- package/dist/collection/components/dropi-select/dropi-select.css +4 -0
- package/dist/collection/components/dropi-select/dropi-select.js +85 -25
- package/dist/collection/components/dropi-sidebar/dropi-sidebar.js +6 -6
- package/dist/collection/components/dropi-switch/dropi-switch.js +5 -5
- package/dist/collection/components/dropi-table/dropi-table.js +35 -27
- package/dist/collection/components/dropi-tabs/dropi-tabs.js +5 -5
- package/dist/collection/components/dropi-tag/dropi-tag.css +16 -7
- package/dist/collection/components/dropi-tag/dropi-tag.js +55 -1
- package/dist/collection/components/dropi-tag-type-product/dropi-tag-type-product.js +1 -1
- package/dist/collection/components/dropi-text-area/dropi-text-area.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-tooltip-v2/dropi-tooltip.js +2 -2
- 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.js +1 -1
- package/dist/components/dropi-accordion-item.js +1 -1
- package/dist/components/dropi-accordion.js +1 -1
- package/dist/components/dropi-alert-modal.js +1 -1
- package/dist/components/dropi-alert.js +1 -1
- package/dist/components/dropi-badge-legacy.js +1 -1
- package/dist/components/dropi-banner-external.js +1 -1
- package/dist/components/dropi-breadcrumb.js +1 -1
- package/dist/components/dropi-button.js +1 -1
- package/dist/components/dropi-card-checkbox.js +1 -1
- package/dist/components/dropi-card-product.js +1 -1
- package/dist/components/dropi-card-section.js +1 -1
- package/dist/components/dropi-carousel.js +1 -1
- package/dist/components/dropi-checkbox-selection-list.js +1 -1
- package/dist/components/dropi-checkbox.js +1 -1
- package/dist/components/dropi-chips.js +1 -1
- package/dist/components/dropi-city-selector.js +1 -1
- package/dist/components/dropi-color-picker.js +1 -1
- package/dist/components/dropi-country-flags.js +1 -1
- package/dist/components/dropi-country-selector.js +1 -1
- package/dist/components/dropi-date-picker-range.js +1 -1
- package/dist/components/dropi-date-picker.js +1 -1
- package/dist/components/dropi-drawer.js +1 -1
- package/dist/components/dropi-dropdown.js +1 -1
- package/dist/components/dropi-empty-state.js +1 -1
- package/dist/components/dropi-favorite-button.js +1 -1
- package/dist/components/dropi-file-upload-progress-bar.js +1 -1
- package/dist/components/dropi-file-upload.js +1 -1
- package/dist/components/dropi-icon.js +1 -1
- package/dist/components/dropi-ilustration-icon.js +1 -1
- package/dist/components/dropi-image-miniature.js +1 -1
- package/dist/components/dropi-image-overlay.js +1 -1
- package/dist/components/dropi-input.js +1 -1
- package/dist/components/dropi-languages-selector.js +1 -1
- package/dist/components/dropi-logo.js +1 -1
- package/dist/components/dropi-media-player.js +1 -1
- package/dist/components/dropi-modal.js +1 -1
- package/dist/components/dropi-navbar.js +1 -1
- package/dist/components/dropi-otp-send-code.js +1 -1
- package/dist/components/dropi-paginator.js +1 -1
- package/dist/components/dropi-phone-input.js +1 -1
- package/dist/components/dropi-progress-bar.d.ts +11 -0
- package/dist/components/dropi-progress-bar.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.js +1 -1
- package/dist/components/dropi-steps.js +1 -1
- package/dist/components/dropi-switch.js +1 -1
- package/dist/components/dropi-table.js +1 -1
- package/dist/components/dropi-tabs.js +1 -1
- package/dist/components/dropi-tag-type-product.js +1 -1
- package/dist/components/dropi-tag.js +1 -1
- package/dist/components/dropi-text-area.js +1 -1
- package/dist/components/dropi-time-line.js +1 -1
- package/dist/components/dropi-toast.js +1 -1
- package/dist/components/dropi-tooltip-v2.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.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-1YjHPRto.js +1 -0
- package/dist/components/p-9CkX3ALN.js +1 -0
- package/dist/components/p-B9-h_ikq.js +1 -0
- package/dist/components/p-B9rJd-Rf.js +1 -0
- package/dist/components/p-BGb7xtJN.js +1 -0
- package/dist/components/p-BHV6BYSS.js +1 -0
- package/dist/components/p-BSB5Ar-y.js +1 -0
- package/dist/components/p-BSHROiHb.js +1 -0
- package/dist/components/p-BT99axEq.js +1 -0
- package/dist/components/p-BVgUVZyu.js +1 -0
- package/dist/components/p-BhRjfHZ3.js +1 -0
- package/dist/components/p-Bimspdte.js +1 -0
- package/dist/components/p-BmuWhHN-.js +1 -0
- package/dist/components/p-BqJ52YOH.js +1 -0
- package/dist/components/p-BrR1YjVi.js +1 -0
- package/dist/components/p-BrnGRyf0.js +1 -0
- package/dist/components/p-BtkDdEAq.js +1 -0
- package/dist/components/p-BvIwy9Yl.js +1 -0
- package/dist/components/p-BzCPv3ND.js +1 -0
- package/dist/components/p-C44-ijf2.js +1 -0
- package/dist/components/p-CHb992Wr.js +1 -0
- package/dist/components/p-CJ4s6SQT.js +1 -0
- package/dist/components/p-CKflT57p.js +1 -0
- package/dist/components/p-CWT7wT9m.js +1 -0
- package/dist/components/p-CWWFRdg7.js +1 -0
- package/dist/components/p-CWwDNt3V.js +1 -0
- package/dist/components/p-CXUiN3Rj.js +1 -0
- package/dist/components/p-C_zOkGR5.js +1 -0
- package/dist/components/p-Cujt3jky.js +1 -0
- package/dist/components/p-D5UeShUa.js +1 -0
- package/dist/components/p-D7GP-lmt.js +1 -0
- package/dist/components/p-DFNI0UID.js +1 -0
- package/dist/components/p-DG5fe-Ke.js +1 -0
- package/dist/components/p-DKWuIsc_.js +1 -0
- package/dist/components/p-DLyzE3Kh.js +1 -0
- package/dist/components/p-DN_IcU8H.js +1 -0
- package/dist/components/p-DON3zW51.js +1 -0
- package/dist/components/p-DQzskhll.js +1 -0
- package/dist/components/p-DYAsdhfM.js +1 -0
- package/dist/components/p-DYYToiO9.js +1 -0
- package/dist/components/p-DehWQyi5.js +1 -0
- package/dist/components/p-DfSe-tBr.js +1 -0
- package/dist/components/p-Dgeh9Yg8.js +1 -0
- package/dist/components/p-DlaiuH5K.js +1 -0
- package/dist/components/p-DvaFep4Y.js +1 -0
- package/dist/components/p-ETg0qC-7.js +1 -0
- package/dist/components/p-HCtk4_Dq.js +1 -0
- package/dist/components/p-QezfyBk4.js +1 -0
- package/dist/components/p-RD09_3LO.js +1 -0
- package/dist/components/p-RQjw5hdz.js +1 -0
- package/dist/components/p-dbZuh0Uq.js +1 -0
- package/dist/components/p-emzVHCws.js +1 -0
- package/dist/components/p-im7kgtnS.js +1 -0
- package/dist/components/p-kC6NU5nP.js +1 -0
- package/dist/components/p-lX2uCKEi.js +1 -0
- package/dist/components/p-ndQSfLKF.js +1 -0
- package/dist/components/p-plWZwD4h.js +1 -0
- package/dist/components/p-t0lkpFmw.js +1 -0
- package/dist/components/p-ujToMKti.js +1 -0
- package/dist/dropi-ui/dropi-accordion-item.entry.js +1 -1
- package/dist/dropi-ui/dropi-accordion.entry.js +1 -1
- package/dist/dropi-ui/dropi-alert-modal.entry.js +19 -15
- package/dist/dropi-ui/dropi-alert-modal.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-alert.entry.js +11 -11
- package/dist/dropi-ui/dropi-alert.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-badge-legacy.entry.js +1 -1
- package/dist/dropi-ui/dropi-button.entry.js +6 -6
- package/dist/dropi-ui/dropi-button.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-card-checkbox.entry.js +5 -5
- package/dist/dropi-ui/dropi-card-checkbox.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-card-product.entry.js +9 -9
- package/dist/dropi-ui/dropi-card-product.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-card-section.entry.js +8 -8
- package/dist/dropi-ui/dropi-card-section.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-carousel.entry.js +7 -7
- package/dist/dropi-ui/dropi-carousel.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-checkbox-selection-list.entry.js +8 -8
- package/dist/dropi-ui/dropi-checkbox-selection-list.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-checkbox.entry.js +5 -5
- package/dist/dropi-ui/dropi-checkbox.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-chips.entry.js +3 -3
- package/dist/dropi-ui/dropi-chips.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-color-picker.entry.js +2 -2
- package/dist/dropi-ui/dropi-country-flags.entry.js +1 -1
- package/dist/dropi-ui/dropi-country-selector.entry.js +5 -5
- package/dist/dropi-ui/dropi-country-selector.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-date-picker.entry.js +10 -10
- package/dist/dropi-ui/dropi-date-picker.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-drawer.entry.js +2 -2
- package/dist/dropi-ui/dropi-empty-state.entry.js +1 -1
- package/dist/dropi-ui/dropi-favorite-button.entry.js +1 -1
- package/dist/dropi-ui/dropi-file-upload-progress-bar.entry.js +1 -1
- package/dist/dropi-ui/dropi-file-upload.entry.js +1 -1
- package/dist/dropi-ui/dropi-file-upload.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-icon.entry.js +16 -2
- package/dist/dropi-ui/dropi-icon.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-ilustration-icon.entry.js +4 -4
- package/dist/dropi-ui/dropi-ilustration-icon.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-image-miniature.entry.js +1 -1
- package/dist/dropi-ui/dropi-input.entry.js +14 -14
- package/dist/dropi-ui/dropi-input.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-languages-selector.entry.js +3 -3
- package/dist/dropi-ui/dropi-languages-selector.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-logo.entry.js +1 -1
- package/dist/dropi-ui/dropi-modal.entry.js +36 -31
- package/dist/dropi-ui/dropi-modal.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-navbar.entry.js +2 -2
- package/dist/dropi-ui/dropi-otp-send-code.entry.js +30 -15
- package/dist/dropi-ui/dropi-otp-send-code.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-paginator.entry.js +5 -5
- package/dist/dropi-ui/dropi-paginator.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-phone-input.entry.js +13 -13
- package/dist/dropi-ui/dropi-phone-input.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-progress-bar.entry.js +44 -0
- package/dist/dropi-ui/dropi-progress-bar.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-radio-button.entry.js +4 -4
- package/dist/dropi-ui/dropi-radio-button.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-radio-selection-list.entry.js +8 -8
- package/dist/dropi-ui/dropi-radio-selection-list.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-read-more.entry.js +1 -1
- package/dist/dropi-ui/dropi-search.entry.js +20 -20
- package/dist/dropi-ui/dropi-search.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-select.entry.js +49 -21
- package/dist/dropi-ui/dropi-select.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-sidebar.entry.js +5 -5
- package/dist/dropi-ui/dropi-sidebar.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-switch.entry.js +4 -4
- package/dist/dropi-ui/dropi-switch.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-table.entry.js +29 -21
- package/dist/dropi-ui/dropi-table.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-tabs.entry.js +4 -4
- package/dist/dropi-ui/dropi-tabs.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-tag-type-product.entry.js +1 -1
- package/dist/dropi-ui/dropi-tag.entry.js +30 -2
- package/dist/dropi-ui/dropi-tag.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-text-area.entry.js +2 -2
- package/dist/dropi-ui/dropi-time-line.entry.js +1 -1
- package/dist/dropi-ui/dropi-toast.entry.js +1 -1
- package/dist/dropi-ui/dropi-tooltip-v2.entry.js +2 -2
- package/dist/dropi-ui/dropi-tooltip.entry.js +1 -1
- package/dist/dropi-ui/dropi-ui.css +1 -311
- package/dist/dropi-ui/dropi-ui.esm.js +1 -50
- package/dist/dropi-ui/dropi-vertical-steps.entry.js +1 -1
- package/dist/dropi-ui/dropi-youtube-lazy-video.entry.js +1 -1
- package/dist/dropi-ui/index.esm.js +0 -4
- package/dist/dropi-ui/p-019c2c37.entry.js +1 -0
- package/dist/dropi-ui/p-01c57627.entry.js +1 -0
- package/dist/dropi-ui/p-03515548.entry.js +1 -0
- package/dist/dropi-ui/p-0366349e.entry.js +1 -0
- package/dist/dropi-ui/p-06bdd006.entry.js +1 -0
- package/dist/dropi-ui/p-086a6f5f.entry.js +1 -0
- package/dist/dropi-ui/p-088616e6.entry.js +1 -0
- package/dist/dropi-ui/p-08bc8fb2.entry.js +1 -0
- package/dist/dropi-ui/p-0946a1f7.entry.js +1 -0
- package/dist/dropi-ui/p-09aa9a3c.entry.js +1 -0
- package/dist/dropi-ui/p-0a76c15c.entry.js +1 -0
- package/dist/dropi-ui/p-0d188f2c.entry.js +1 -0
- package/dist/dropi-ui/p-0e026afe.entry.js +1 -0
- package/dist/dropi-ui/p-0ef73e45.entry.js +1 -0
- package/dist/dropi-ui/p-0f1b13e5.entry.js +1 -0
- package/dist/dropi-ui/p-1107c210.entry.js +1 -0
- package/dist/dropi-ui/p-13a6dd72.entry.js +1 -0
- package/dist/dropi-ui/p-1558c22f.entry.js +1 -0
- package/dist/dropi-ui/p-16674c7c.entry.js +1 -0
- package/dist/dropi-ui/p-17c53e19.entry.js +1 -0
- package/dist/dropi-ui/p-1ce00757.entry.js +1 -0
- package/dist/dropi-ui/p-229dddb0.entry.js +1 -0
- package/dist/dropi-ui/p-278281d2.entry.js +1 -0
- package/dist/dropi-ui/p-28f960a1.entry.js +1 -0
- package/dist/dropi-ui/p-2d356767.entry.js +1 -0
- package/dist/dropi-ui/p-2f9072e7.entry.js +1 -0
- package/dist/dropi-ui/p-30377b7e.entry.js +1 -0
- package/dist/dropi-ui/p-342eaf9e.entry.js +1 -0
- package/dist/dropi-ui/p-3496cc01.entry.js +1 -0
- package/dist/dropi-ui/p-37bdbadc.entry.js +1 -0
- package/dist/dropi-ui/p-393867c2.entry.js +1 -0
- package/dist/dropi-ui/p-3a28b79c.entry.js +1 -0
- package/dist/dropi-ui/p-3aefce2b.entry.js +1 -0
- package/dist/dropi-ui/p-3f76c680.entry.js +1 -0
- package/dist/dropi-ui/p-488a3113.entry.js +1 -0
- package/dist/dropi-ui/p-497e4eff.entry.js +1 -0
- package/dist/dropi-ui/p-4a72e4c8.entry.js +1 -0
- package/dist/dropi-ui/p-4b169817.entry.js +1 -0
- package/dist/dropi-ui/p-4d31eab8.entry.js +1 -0
- package/dist/dropi-ui/p-508cfd38.entry.js +1 -0
- package/dist/dropi-ui/p-50e851b7.entry.js +1 -0
- package/dist/dropi-ui/p-5730ca4e.entry.js +1 -0
- package/dist/dropi-ui/p-575e1951.entry.js +1 -0
- package/dist/dropi-ui/p-57c3b667.entry.js +1 -0
- package/dist/dropi-ui/p-5c0cd221.entry.js +1 -0
- package/dist/dropi-ui/p-5e0da387.entry.js +1 -0
- package/dist/dropi-ui/p-5eb75ddf.entry.js +1 -0
- package/dist/dropi-ui/p-5f735166.entry.js +1 -0
- package/dist/dropi-ui/p-61f8905c.entry.js +1 -0
- package/dist/dropi-ui/p-648e5340.entry.js +1 -0
- package/dist/dropi-ui/p-66d7d67b.entry.js +1 -0
- package/dist/dropi-ui/p-673a5cfd.entry.js +1 -0
- package/dist/dropi-ui/p-67ba7d35.entry.js +1 -0
- package/dist/dropi-ui/p-692b665a.entry.js +1 -0
- package/dist/dropi-ui/p-69cf66c1.entry.js +1 -0
- package/dist/dropi-ui/p-6a148627.entry.js +1 -0
- package/dist/dropi-ui/p-6b925a36.entry.js +1 -0
- package/dist/dropi-ui/p-6cb6cfe0.entry.js +1 -0
- package/dist/dropi-ui/p-6dbce3d3.entry.js +1 -0
- package/dist/dropi-ui/p-70f75e92.entry.js +1 -0
- package/dist/dropi-ui/p-7140309a.entry.js +1 -0
- package/dist/dropi-ui/p-72ec96d0.entry.js +1 -0
- package/dist/dropi-ui/p-7450d195.entry.js +1 -0
- package/dist/dropi-ui/p-754aed1c.entry.js +1 -0
- package/dist/dropi-ui/p-76fa02a1.entry.js +1 -0
- package/dist/dropi-ui/p-770b0195.entry.js +1 -0
- package/dist/dropi-ui/p-7822b081.entry.js +1 -0
- package/dist/dropi-ui/p-78282471.entry.js +1 -0
- package/dist/dropi-ui/p-78aa7fb3.entry.js +1 -0
- package/dist/dropi-ui/p-7a25f595.entry.js +1 -0
- package/dist/dropi-ui/p-7c0f959f.entry.js +1 -0
- package/dist/dropi-ui/p-7c5ea4c5.entry.js +1 -0
- package/dist/dropi-ui/p-7f02ae47.entry.js +1 -0
- package/dist/dropi-ui/p-7f0f828d.entry.js +1 -0
- package/dist/dropi-ui/p-80f0f6e6.entry.js +1 -0
- package/dist/dropi-ui/p-813678a2.entry.js +1 -0
- package/dist/dropi-ui/p-819d810e.entry.js +1 -0
- package/dist/dropi-ui/p-84019422.entry.js +1 -0
- package/dist/dropi-ui/p-8b8dc399.entry.js +1 -0
- package/dist/dropi-ui/p-8cf27f13.entry.js +1 -0
- package/dist/dropi-ui/p-8d6313c0.entry.js +1 -0
- package/dist/dropi-ui/p-8dbc6bc8.entry.js +1 -0
- package/dist/dropi-ui/p-8fc3dbcb.entry.js +1 -0
- package/dist/dropi-ui/p-90abda79.entry.js +1 -0
- package/dist/dropi-ui/p-928b59e8.entry.js +1 -0
- package/dist/dropi-ui/p-92c9e3c5.entry.js +1 -0
- package/dist/dropi-ui/p-94144382.entry.js +1 -0
- package/dist/dropi-ui/p-94a58087.entry.js +1 -0
- package/dist/dropi-ui/p-9645d628.entry.js +1 -0
- package/dist/dropi-ui/p-96f72e50.entry.js +1 -0
- package/dist/dropi-ui/p-9b288982.entry.js +1 -0
- package/dist/dropi-ui/p-9b55c8ad.entry.js +1 -0
- package/dist/dropi-ui/p-9bcde3a5.entry.js +1 -0
- package/dist/dropi-ui/p-9e8615de.entry.js +1 -0
- package/dist/dropi-ui/p-a0ade2e7.entry.js +1 -0
- package/dist/dropi-ui/p-a2fb4CHk.js +2 -0
- package/dist/dropi-ui/p-a3b729fe.entry.js +1 -0
- package/dist/dropi-ui/p-a3d602fd.entry.js +1 -0
- package/dist/dropi-ui/p-a470a24a.entry.js +1 -0
- package/dist/dropi-ui/p-a50c8339.entry.js +1 -0
- package/dist/dropi-ui/p-a524ef3d.entry.js +1 -0
- package/dist/dropi-ui/p-a62c691f.entry.js +1 -0
- package/dist/dropi-ui/p-a745529a.entry.js +1 -0
- package/dist/dropi-ui/p-a96c54ed.entry.js +1 -0
- package/dist/dropi-ui/p-ab3c52a4.entry.js +1 -0
- package/dist/dropi-ui/p-abd327ed.entry.js +1 -0
- package/dist/dropi-ui/p-ac79e805.entry.js +1 -0
- package/dist/dropi-ui/p-ac9d2149.entry.js +1 -0
- package/dist/dropi-ui/p-ad73631e.entry.js +1 -0
- package/dist/dropi-ui/p-b20f7dde.entry.js +1 -0
- package/dist/dropi-ui/p-b2e7cf4f.entry.js +1 -0
- package/dist/dropi-ui/p-b325f7cf.entry.js +1 -0
- package/dist/dropi-ui/p-b63f5d03.entry.js +1 -0
- package/dist/dropi-ui/p-b7748488.entry.js +1 -0
- package/dist/dropi-ui/p-b8050ef5.entry.js +1 -0
- package/dist/dropi-ui/p-b99fee29.entry.js +1 -0
- package/dist/dropi-ui/p-ba3779a2.entry.js +1 -0
- package/dist/dropi-ui/p-bd0d1a29.entry.js +1 -0
- package/dist/dropi-ui/p-bef43920.entry.js +1 -0
- package/dist/dropi-ui/p-bfd43bdf.entry.js +1 -0
- package/dist/dropi-ui/p-c173db8c.entry.js +1 -0
- package/dist/dropi-ui/p-c218524f.entry.js +1 -0
- package/dist/dropi-ui/p-c4fbbb5a.entry.js +1 -0
- package/dist/dropi-ui/p-c51fcf75.entry.js +1 -0
- package/dist/dropi-ui/p-c662bce3.entry.js +1 -0
- package/dist/dropi-ui/p-c6ac1b6d.entry.js +1 -0
- package/dist/dropi-ui/p-ca2e462a.entry.js +1 -0
- package/dist/dropi-ui/p-ca90e108.entry.js +1 -0
- package/dist/dropi-ui/p-cb87d3c7.entry.js +1 -0
- package/dist/dropi-ui/p-cc954850.entry.js +1 -0
- package/dist/dropi-ui/p-cf7cd408.entry.js +1 -0
- package/dist/dropi-ui/p-d02dfc6a.entry.js +1 -0
- package/dist/dropi-ui/p-d11524ca.entry.js +1 -0
- package/dist/dropi-ui/p-d46f3328.entry.js +1 -0
- package/dist/dropi-ui/p-d693bbb8.entry.js +1 -0
- package/dist/dropi-ui/p-d813969b.entry.js +1 -0
- package/dist/dropi-ui/p-d899d4e1.entry.js +1 -0
- package/dist/dropi-ui/p-da038b5d.entry.js +1 -0
- package/dist/dropi-ui/p-db6af92e.entry.js +1 -0
- package/dist/dropi-ui/p-dc920aff.entry.js +1 -0
- package/dist/dropi-ui/p-e1126498.entry.js +1 -0
- package/dist/dropi-ui/p-e163bf7f.entry.js +1 -0
- package/dist/dropi-ui/p-e1b40bda.entry.js +1 -0
- package/dist/dropi-ui/p-e22a3b45.entry.js +1 -0
- package/dist/dropi-ui/p-e524fed1.entry.js +1 -0
- package/dist/dropi-ui/p-e53b23dd.entry.js +1 -0
- package/dist/dropi-ui/p-e629fdc7.entry.js +1 -0
- package/dist/dropi-ui/p-e97d3704.entry.js +1 -0
- package/dist/dropi-ui/p-e9a64ecc.entry.js +1 -0
- package/dist/dropi-ui/p-ea13bfee.entry.js +1 -0
- package/dist/dropi-ui/p-edcf5623.entry.js +1 -0
- package/dist/dropi-ui/p-edeacd44.entry.js +1 -0
- package/dist/dropi-ui/p-edef4506.entry.js +1 -0
- package/dist/dropi-ui/p-eec49ea3.entry.js +1 -0
- package/dist/dropi-ui/p-f057bd98.entry.js +1 -0
- package/dist/dropi-ui/p-f0893459.entry.js +1 -0
- package/dist/dropi-ui/p-f0ace417.entry.js +1 -0
- package/dist/dropi-ui/p-f23e1df7.entry.js +1 -0
- package/dist/dropi-ui/p-f4bd8568.entry.js +1 -0
- package/dist/dropi-ui/p-f7a605f8.entry.js +1 -0
- package/dist/dropi-ui/p-f7df0f43.entry.js +1 -0
- package/dist/dropi-ui/p-f80fa01d.entry.js +1 -0
- package/dist/dropi-ui/p-f9084a2c.entry.js +1 -0
- package/dist/dropi-ui/p-f9af2041.entry.js +1 -0
- package/dist/dropi-ui/p-f9d05b69.entry.js +1 -0
- package/dist/dropi-ui/p-faa59cd8.entry.js +1 -0
- package/dist/dropi-ui/p-fb39dfdc.entry.js +1 -0
- package/dist/dropi-ui/p-fcba49ca.entry.js +1 -0
- package/dist/dropi-ui/p-fdbdedd0.entry.js +1 -0
- package/dist/dropi-ui/p-fef3673d.entry.js +1 -0
- package/dist/esm/dropi-accordion-item.entry.js +2 -2
- package/dist/esm/dropi-accordion.entry.js +2 -2
- package/dist/esm/dropi-alert-legacy.entry.js +1 -1
- package/dist/esm/dropi-alert-modal.entry.js +20 -16
- package/dist/esm/dropi-alert.entry.js +12 -12
- package/dist/esm/dropi-avatars.entry.js +1 -1
- package/dist/esm/dropi-badge-legacy.entry.js +2 -2
- package/dist/esm/dropi-badge.entry.js +1 -1
- package/dist/esm/dropi-banner-external.entry.js +3 -3
- package/dist/esm/dropi-breadcrumb.entry.js +2 -2
- package/dist/esm/dropi-button.entry.js +7 -7
- package/dist/esm/dropi-card-checkbox.entry.js +6 -6
- package/dist/esm/dropi-card-product.entry.js +12 -12
- package/dist/esm/dropi-card-section.entry.js +9 -9
- package/dist/esm/dropi-carousel.entry.js +8 -8
- package/dist/esm/dropi-checkbox-selection-list.entry.js +9 -9
- package/dist/esm/dropi-checkbox.entry.js +6 -6
- package/dist/esm/dropi-chips.entry.js +4 -4
- package/dist/esm/dropi-city-selector.entry.js +2 -2
- package/dist/esm/dropi-color-picker.entry.js +4 -4
- package/dist/esm/dropi-country-flags.entry.js +2 -2
- package/dist/esm/dropi-country-selector.entry.js +6 -6
- package/dist/esm/dropi-date-picker-range.entry.js +4 -4
- package/dist/esm/dropi-date-picker.entry.js +12 -12
- package/dist/esm/dropi-drawer.entry.js +4 -4
- package/dist/esm/dropi-dropdown.entry.js +2 -2
- package/dist/esm/dropi-empty-state.entry.js +3 -3
- package/dist/esm/dropi-favorite-button.entry.js +3 -3
- package/dist/esm/dropi-file-upload-progress-bar.entry.js +5 -5
- package/dist/esm/dropi-file-upload.entry.js +3 -3
- package/dist/esm/dropi-icon.entry.js +17 -3
- package/dist/esm/dropi-ilustration-icon.entry.js +5 -5
- package/dist/esm/dropi-image-miniature.entry.js +3 -3
- package/dist/esm/dropi-image-overlay.entry.js +2 -2
- package/dist/esm/dropi-input_3.entry.js +50 -22
- package/dist/esm/dropi-languages-selector.entry.js +4 -4
- package/dist/esm/dropi-logo.entry.js +2 -2
- package/dist/esm/dropi-lottie-loader.entry.js +1 -1
- package/dist/esm/dropi-media-player.entry.js +3 -3
- package/dist/esm/dropi-modal.entry.js +37 -32
- package/dist/esm/dropi-navbar.entry.js +7 -7
- package/dist/esm/dropi-otp-send-code.entry.js +34 -19
- package/dist/esm/dropi-phone-input.entry.js +14 -14
- package/dist/esm/dropi-progress-bar.entry.js +41 -0
- package/dist/esm/dropi-radio-button.entry.js +5 -5
- package/dist/esm/dropi-radio-selection-list.entry.js +9 -9
- package/dist/esm/dropi-read-more.entry.js +2 -2
- package/dist/esm/dropi-search.entry.js +21 -21
- package/dist/esm/dropi-select.entry.js +50 -22
- package/dist/esm/dropi-sidebar.entry.js +6 -6
- package/dist/esm/dropi-simple-stepper.entry.js +1 -1
- package/dist/esm/dropi-skeleton.entry.js +1 -1
- package/dist/esm/dropi-steps.entry.js +1 -1
- package/dist/esm/dropi-switch.entry.js +5 -5
- package/dist/esm/dropi-table.entry.js +38 -30
- package/dist/esm/dropi-tabs.entry.js +5 -5
- package/dist/esm/dropi-tag-type-product.entry.js +2 -2
- package/dist/esm/dropi-text-area.entry.js +7 -7
- package/dist/esm/dropi-time-line.entry.js +2 -2
- package/dist/esm/dropi-toast.entry.js +2 -2
- package/dist/esm/dropi-tooltip-v2.entry.js +3 -3
- 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 +2 -2
- package/dist/esm/index-a2fb4CHk.js +2763 -0
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/dropi-alert/dropi-alert.d.ts +3 -3
- package/dist/types/components/dropi-alert-modal/dropi-alert-modal.d.ts +8 -4
- package/dist/types/components/dropi-button/dropi-button.d.ts +1 -1
- package/dist/types/components/dropi-card-checkbox/dropi-card-checkbox.d.ts +1 -1
- package/dist/types/components/dropi-card-product/dropi-card-product.d.ts +2 -2
- package/dist/types/components/dropi-card-section/dropi-card-section.d.ts +2 -2
- package/dist/types/components/dropi-carousel/dropi-carousel.d.ts +2 -2
- package/dist/types/components/dropi-checkbox/dropi-checkbox.d.ts +1 -1
- package/dist/types/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.d.ts +2 -2
- package/dist/types/components/dropi-chips/dropi-chips.d.ts +1 -1
- package/dist/types/components/dropi-country-selector/dropi-country-selector.d.ts +1 -1
- package/dist/types/components/dropi-date-picker/dropi-date-picker.d.ts +2 -2
- package/dist/types/components/dropi-icon/dropi-icon.d.ts +4 -0
- package/dist/types/components/dropi-input/dropi-input.d.ts +4 -4
- package/dist/types/components/dropi-languages-selector/dropi-languages-selector.d.ts +1 -1
- package/dist/types/components/dropi-modal/dropi-modal.d.ts +9 -8
- package/dist/types/components/dropi-otp-send-code/dropi-otp-send-code.d.ts +7 -3
- package/dist/types/components/dropi-paginator/dropi-paginator.d.ts +1 -1
- package/dist/types/components/dropi-phone-input/dropi-phone-input.d.ts +4 -4
- package/dist/types/components/dropi-progress-bar/dropi-progress-bar.d.ts +16 -0
- package/dist/types/components/dropi-radio-button/dropi-radio-button.d.ts +1 -1
- package/dist/types/components/dropi-radio-selection-list/dropi-radio-selection-list.d.ts +2 -2
- package/dist/types/components/dropi-search/dropi-search.d.ts +6 -6
- package/dist/types/components/dropi-select/dropi-select.d.ts +10 -5
- package/dist/types/components/dropi-sidebar/dropi-sidebar.d.ts +1 -1
- package/dist/types/components/dropi-switch/dropi-switch.d.ts +1 -1
- package/dist/types/components/dropi-table/dropi-table.d.ts +6 -6
- package/dist/types/components/dropi-tabs/dropi-tabs.d.ts +1 -1
- package/dist/types/components/dropi-tag/dropi-tag.d.ts +5 -0
- package/dist/types/components.d.ts +303 -167
- package/hydrate/index.js +509 -348
- package/hydrate/index.mjs +509 -348
- package/package.json +1 -1
|
@@ -4,6 +4,8 @@ import { h } from "@stencil/core";
|
|
|
4
4
|
* Colored tag/chip for statuses, categories, and labels.
|
|
5
5
|
*/
|
|
6
6
|
export class DropiTag {
|
|
7
|
+
/** tag (default) | dot (status dot + text) | text (colored text only) */
|
|
8
|
+
variant = 'tag';
|
|
7
9
|
/** primary (filled) | secondary (soft) */
|
|
8
10
|
type = 'primary';
|
|
9
11
|
/** Color state of the tag */
|
|
@@ -32,11 +34,25 @@ export class DropiTag {
|
|
|
32
34
|
}
|
|
33
35
|
get textColor() {
|
|
34
36
|
const base = this.colorMap[this.state];
|
|
37
|
+
if (this.variant === 'text')
|
|
38
|
+
return this.dotColor;
|
|
39
|
+
if (this.variant === 'dot' || this.showIcon) {
|
|
40
|
+
return 'var(--Gray-Gray-500)';
|
|
41
|
+
}
|
|
35
42
|
if (this.type === 'primary')
|
|
36
43
|
return `var(--Neutral-White)`;
|
|
37
44
|
const shade = this.state === 'default' ? '-500' : '-700';
|
|
38
45
|
return `var(--${base}${shade})`;
|
|
39
46
|
}
|
|
47
|
+
get dotColor() {
|
|
48
|
+
const base = this.colorMap[this.state];
|
|
49
|
+
return `var(--${base}-500)`;
|
|
50
|
+
}
|
|
51
|
+
get fontWeight() {
|
|
52
|
+
if (this.type === 'secondary' && !this.showIcon)
|
|
53
|
+
return '300';
|
|
54
|
+
return '500';
|
|
55
|
+
}
|
|
40
56
|
get iconColor() {
|
|
41
57
|
if (this.type === 'primary')
|
|
42
58
|
return 'Neutral-White';
|
|
@@ -48,7 +64,16 @@ export class DropiTag {
|
|
|
48
64
|
return typeof this.text === 'string' && this.text.trim().length > 0;
|
|
49
65
|
}
|
|
50
66
|
render() {
|
|
51
|
-
return (h("div", { key: '
|
|
67
|
+
return (h("div", { key: '6a50111c0057b7ef3380dde9f639e9409b7fbea9', class: "container-chips" }, h("div", { key: 'f2f78c3682aa2e8bef5f3f1b43a1729cae8ae293', class: {
|
|
68
|
+
tags: true,
|
|
69
|
+
'icon-only': this.showIcon && !this.hasContent,
|
|
70
|
+
'dot-variant': this.variant === 'dot',
|
|
71
|
+
'text-variant': this.variant === 'text'
|
|
72
|
+
}, style: {
|
|
73
|
+
backgroundColor: (this.variant === 'dot' || this.variant === 'text') ? 'transparent' : this.bgColor,
|
|
74
|
+
color: this.textColor,
|
|
75
|
+
fontWeight: this.fontWeight
|
|
76
|
+
} }, this.variant === 'dot' && (h("div", { key: '5364569230575b79b1160e06cc29046220bdf198', class: "dot-indicator", style: { backgroundColor: this.dotColor } })), this.showIcon && this.icon && (h("dropi-icon", { key: '8ea74f9ad58e7892405e3e748289b71456945de6', class: "file-icon", name: this.icon, iconWidth: "16px", iconHeight: "16px", color: this.variant === 'dot' ? 'Gray-Gray-500' : this.iconColor })), this.hasContent && h("span", { key: '99409549735fd48cf0a40e411f1f236716e53939' }, this.text))));
|
|
52
77
|
}
|
|
53
78
|
static get is() { return "dropi-tag"; }
|
|
54
79
|
static get encapsulation() { return "shadow"; }
|
|
@@ -64,6 +89,32 @@ export class DropiTag {
|
|
|
64
89
|
}
|
|
65
90
|
static get properties() {
|
|
66
91
|
return {
|
|
92
|
+
"variant": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"mutable": false,
|
|
95
|
+
"complexType": {
|
|
96
|
+
"original": "TagVariant",
|
|
97
|
+
"resolved": "\"dot\" | \"tag\" | \"text\"",
|
|
98
|
+
"references": {
|
|
99
|
+
"TagVariant": {
|
|
100
|
+
"location": "local",
|
|
101
|
+
"path": "/Users/mac-ti/Documents/dropi/dropi-ui/src/components/dropi-tag/dropi-tag.tsx",
|
|
102
|
+
"id": "src/components/dropi-tag/dropi-tag.tsx::TagVariant"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"required": false,
|
|
107
|
+
"optional": false,
|
|
108
|
+
"docs": {
|
|
109
|
+
"tags": [],
|
|
110
|
+
"text": "tag (default) | dot (status dot + text) | text (colored text only)"
|
|
111
|
+
},
|
|
112
|
+
"getter": false,
|
|
113
|
+
"setter": false,
|
|
114
|
+
"reflect": true,
|
|
115
|
+
"attribute": "variant",
|
|
116
|
+
"defaultValue": "'tag'"
|
|
117
|
+
},
|
|
67
118
|
"type": {
|
|
68
119
|
"type": "string",
|
|
69
120
|
"mutable": false,
|
|
@@ -185,6 +236,9 @@ export class DropiTag {
|
|
|
185
236
|
}, {
|
|
186
237
|
"propName": "state",
|
|
187
238
|
"methodName": "propsChanged"
|
|
239
|
+
}, {
|
|
240
|
+
"propName": "variant",
|
|
241
|
+
"methodName": "propsChanged"
|
|
188
242
|
}];
|
|
189
243
|
}
|
|
190
244
|
}
|
|
@@ -7,7 +7,7 @@ export class DropiTagTypeProduct {
|
|
|
7
7
|
/** Label text. Default: VARIABLE */
|
|
8
8
|
label = 'VARIABLE';
|
|
9
9
|
render() {
|
|
10
|
-
return h("div", { key: '
|
|
10
|
+
return h("div", { key: '6d27b4fc40c66e6bfd8400e4727aa9a9c2e8dc8c', class: "type-variation" }, this.label);
|
|
11
11
|
}
|
|
12
12
|
static get is() { return "dropi-tag-type-product"; }
|
|
13
13
|
static get encapsulation() { return "shadow"; }
|
|
@@ -98,12 +98,12 @@ export class DropiTextArea {
|
|
|
98
98
|
render() {
|
|
99
99
|
const showAsterisk = this.required && this.showObligatoryAsterisk && !this.disabled;
|
|
100
100
|
const showHelper = this.textHelper || this.isInvalid;
|
|
101
|
-
return (h("div", { key: '
|
|
101
|
+
return (h("div", { key: 'cd317dd0e813d6ce6ae659b56ddac00fa822e68e', class: "textarea-wrapper" }, this.label && (h("label", { key: '220344751b55843a6d1ee3a8188b53e8d0fc5d34', htmlFor: this.resolvedId, style: { color: this.disabled ? 'var(--Gray-Gray-400)' : 'var(--Gray-Gray-600)' } }, this.label, showAsterisk && h("span", { key: '3ddb9f3adac61fa8990f81e16ae6334de8552849', class: "asterisk" }, " *"))), h("div", { key: '1a6d603bd7cfe7e6b37fd20c4dad6c7bc2bf0278', class: "textarea-container" }, h("textarea", { key: '3eb838fece4e03cc68be9e01eeb1e02709a926f9', id: this.resolvedId, class: {
|
|
102
102
|
'form-control': true,
|
|
103
103
|
'Body-M-Regular': true,
|
|
104
104
|
'form-control-valid': !this.isInvalid && this.touched && !!this.value,
|
|
105
105
|
'form-control-invalid': this.isInvalid,
|
|
106
|
-
}, rows: this.rows, placeholder: this.placeholder, maxLength: this.maxLength, minLength: this.minLength, disabled: this.disabled, required: this.required, style: { resize: this.resize }, onInput: (e) => this.handleInput(e), onFocus: () => this.dropiFocus.emit(), onBlur: () => this.handleBlur() }, this.value), this.maxLength > 0 && (h("div", { key: '
|
|
106
|
+
}, rows: this.rows, placeholder: this.placeholder, maxLength: this.maxLength, minLength: this.minLength, disabled: this.disabled, required: this.required, style: { resize: this.resize }, onInput: (e) => this.handleInput(e), onFocus: () => this.dropiFocus.emit(), onBlur: () => this.handleBlur() }, this.value), this.maxLength > 0 && (h("div", { key: '49dfd2cb7fe373769a945c405e58e7716e9489f2', class: "char-counter" }, this.charCount, "/", this.maxLength))), showHelper && (h("div", { key: 'e1388e815c35baab42466029ae17914da28c9294', class: "form-control-helper" }, this.isInvalid && (h("dropi-icon", { key: '39aebce7cca327e9c535ce918d053eb5f106f734', name: "Warning-circle", iconWidth: "12px", iconHeight: "12px", color: "Error-Error-500" })), h("span", { key: 'ae255ca0db1e35e0069ef8b68fa901bced14ba8a', class: { 'invalid-color': this.isInvalid }, style: { color: this.disabled ? 'var(--Gray-Gray-400)' : undefined } }, this.textHelper)))));
|
|
107
107
|
}
|
|
108
108
|
static get is() { return "dropi-text-area"; }
|
|
109
109
|
static get encapsulation() { return "shadow"; }
|
|
@@ -19,7 +19,7 @@ export class DropiTimeLine {
|
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
21
|
const steps = this.parsedSteps;
|
|
22
|
-
return (h("div", { key: '
|
|
22
|
+
return (h("div", { key: '22a2f8ff7a33e892096c3aaf381e23b110ec6b0a', class: "timeline" }, steps.map((step, i) => {
|
|
23
23
|
const isLast = i === steps.length - 1;
|
|
24
24
|
return (h("div", { class: { 'tl-step': true, [`tl-step--${step.status}`]: true }, key: step.id || i }, h("div", { class: "tl-step__marker" }, h("div", { class: "tl-step__icon" }, step.icon ? (h("dropi-icon", { name: step.icon, iconWidth: "16px", iconHeight: "16px", color: step.status === 'done' ? 'Neutral-White' : step.status === 'active' ? 'Primary-Primary-500' : 'Gray-Gray-400' })) : (h("span", { class: "tl-step__dot" }))), !isLast && h("div", { class: "tl-step__line" })), h("div", { class: "tl-step__content" }, h("span", { class: "tl-step__label" }, step.label), step.subtitle && h("span", { class: "tl-step__subtitle" }, step.subtitle))));
|
|
25
25
|
})));
|
|
@@ -48,7 +48,7 @@ export class DropiToast {
|
|
|
48
48
|
return `<lottie-player src="${this.lottieMap[severity]}" background="transparent" speed="1" loop autoplay></lottie-player>`;
|
|
49
49
|
}
|
|
50
50
|
render() {
|
|
51
|
-
return (h("div", { key: '
|
|
51
|
+
return (h("div", { key: '962972e53e84a968b538feb28c2588f9051276ff', class: `toast-container toast-container--${this.position}` }, (this.items ?? []).map(item => (h("div", { key: item.msg.id, class: { 'toast-wrapper': true, 'toast-wrapper--leaving': item.leaving } }, h("div", { class: `toast toast--${item.msg.severity}` }, h("div", { class: "toast-content" }, h("div", { class: "lottie-img" }, h("div", { class: "lottie-player-container", innerHTML: this.getLottieHtml(item.msg.severity) })), h("div", { class: "info-container" }, h("p", { class: "title" }, item.msg.summary), item.msg.detail && h("p", { class: "description" }, item.msg.detail))), item.msg.closable && (h("button", { class: "toast-close", onClick: () => this.remove(item.msg.id) }, h("dropi-icon", { name: "Close-small", iconWidth: "20px", iconHeight: "20px", color: "Gray-Gray-400" })))))))));
|
|
52
52
|
}
|
|
53
53
|
static get is() { return "dropi-toast"; }
|
|
54
54
|
static get encapsulation() { return "shadow"; }
|
|
@@ -9,7 +9,7 @@ export class DropiTooltip {
|
|
|
9
9
|
/** Whether the tooltip has an outline style (matches Angular `outlined`) */
|
|
10
10
|
outlined = false;
|
|
11
11
|
render() {
|
|
12
|
-
return (h("div", { key: '
|
|
12
|
+
return (h("div", { key: '1c580849e5fdfc99ecfedc7c14508dfd50b789c9', class: { 'tooltip-simple': true, 'tooltip-simple--outlined': this.outlined } }, h("slot", { key: '8881e587966e67408a725e36a5a45828755e10a6' }), this.text && (h("div", { key: 'f4f1c4a1d47e3324fe4d9af25d46342c4c650a0f', class: "tooltip-simple-bubble" }, this.text))));
|
|
13
13
|
}
|
|
14
14
|
static get is() { return "dropi-tooltip"; }
|
|
15
15
|
static get encapsulation() { return "shadow"; }
|
|
@@ -119,12 +119,12 @@ export class DropiTooltipV2 {
|
|
|
119
119
|
const bubbleStyle = { maxWidth: this.maxWidth };
|
|
120
120
|
if (this.minWidth)
|
|
121
121
|
bubbleStyle.minWidth = this.minWidth;
|
|
122
|
-
return (h("div", { key: '
|
|
122
|
+
return (h("div", { key: 'e2ce31df52e00568920e754904b1f5910ff4c8ba', class: "tooltip-wrapper", onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, onClick: this.handleClick, onFocusin: this.handleFocusin, onFocusout: this.handleFocusout }, this.showIcon && (h("dropi-icon", { key: 'aa3213451bcfb60561043b0c3854bb20c3a4703a', name: this.iconName, iconWidth: `${this.iconSize}px`, iconHeight: `${this.iconSize}px`, color: this.iconColor })), h("slot", { key: '5ce4929e6f96d4c605d149a970aba1746e82078a' }), this.displayContent && (h("div", { key: '66a1193abf25ce4161ec35f1ca0c344ec418cce8', class: {
|
|
123
123
|
'tooltip-bubble': true,
|
|
124
124
|
[`tooltip-bubble--${this.position}`]: true,
|
|
125
125
|
[`tooltip-bubble--arrow-${this.arrowPosition}`]: true,
|
|
126
126
|
'tooltip-bubble--visible': this.visible,
|
|
127
|
-
}, style: bubbleStyle, role: "tooltip" }, this.showX && (h("button", { key: '
|
|
127
|
+
}, style: bubbleStyle, role: "tooltip" }, this.showX && (h("button", { key: '168741ebb1986f7235aee5be58695ae7cfacfe7b', class: "tooltip-close", onClick: this.handleClose, "aria-label": "Cerrar" }, h("dropi-icon", { key: 'c9154dada59cced1056f24689591f0fead22328f', name: "Close-small", iconWidth: "12px", iconHeight: "12px", color: "Gray-Gray-500" }))), this.title && !this.text && h("strong", { key: 'cd432eb19d7616f50d27613b55c191d59f70732e', class: "tooltip-title" }, this.title), this.label && !this.text && h("span", { key: 'c443cab1372947d0219a7384f491184fb1a7c5b3', class: "tooltip-label" }, this.label), this.text && h("span", { key: 'ea5dafb67ec9533052a66cf045b288cbefdf9d69' }, this.text), h("span", { key: '977257d29af4688c8a264685a1687c048faac9e5', class: `tooltip-arrow tooltip-arrow--${this.position}` })))));
|
|
128
128
|
}
|
|
129
129
|
static get is() { return "dropi-tooltip-v2"; }
|
|
130
130
|
static get encapsulation() { return "shadow"; }
|
|
@@ -37,7 +37,7 @@ export class DropiVerticalSteps {
|
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
39
|
const steps = this.parsedSteps;
|
|
40
|
-
return (h("div", { key: '
|
|
40
|
+
return (h("div", { key: '9b0e19a21eaa78b51d82994747604623f9431d56', class: "vertical-steps" }, steps.map((step, i) => {
|
|
41
41
|
const state = this.resolveState(i, step);
|
|
42
42
|
const isLast = i === steps.length - 1;
|
|
43
43
|
const isClickable = this.clickable && state === 'completed';
|
|
@@ -24,7 +24,7 @@ export class DropiYoutubeLazyVideo {
|
|
|
24
24
|
return `https://www.youtube.com/embed/${this.videoId}?autoplay=1&rel=0&modestbranding=1`;
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
|
-
return (h("div", { key: '
|
|
27
|
+
return (h("div", { key: 'c3fadb91dcf1c32964ed0f0cb847ab3d874f2d7a', class: `video-wrapper${this.isPlaying ? ' playing' : ''}` }, !this.isPlaying && (h("div", { key: '7bc533e24d3221d8c4dd763e629ec836642d504f', class: "thumbnail", onClick: () => { this.isPlaying = true; } }, h("img", { key: '6e47aefd8e8fab4ecf8b6a7160bc5557ecace088', src: this.thumbnail, alt: `Video thumbnail ${this.videoId}` }), h("button", { key: '1acb93790a95117c78d5855807f24dac76b98008', class: "play-button", "aria-label": "Reproducir video" }, h("dropi-icon", { key: '09974fac159a0c88b160c8044f88e1c3dfab79c0', name: "Play", iconWidth: "17px", iconHeight: "21px", color: "Neutral-White" })))), this.isPlaying && (h("iframe", { key: '7650e6f8f8591cc1b24e0958e0924e5eff118ad9', src: this.videoUrl, title: this.videoTitle, frameborder: "0", allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture", allowFullScreen: true, loading: "lazy" }))));
|
|
28
28
|
}
|
|
29
29
|
static get is() { return "dropi-youtube-lazy-video"; }
|
|
30
30
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as o,H as t,h as i}from"./index.js";import{d as c}from"./p-
|
|
1
|
+
import{t as e,p as o,H as t,h as i}from"./index.js";import{d as c}from"./p-B9rJd-Rf.js";const a=o(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}get el(){return this}sectionTitle="";index;open=!1;disabled=!1;preIcon="";contentHeight="0px";contentRef;openChanged(e){this.updateHeight(e)}componentDidLoad(){this.updateHeight(this.open)}updateHeight(e){this.contentRef&&(this.contentHeight=e?this.contentRef.scrollHeight+"px":"0px")}handleToggle(){this.disabled||(this.el.closest("dropi-accordion"),this.open=!this.open,setTimeout((()=>this.updateHeight(this.open)),0))}render(){return i("div",{key:"98de1df9b82f0e4e5e72702b7eaca12c0ed92586",class:{"accordion-item":!0,"accordion-item--open":this.open,"accordion-item--disabled":this.disabled}},i("button",{key:"bd5c3e6ea29feb33e5280908c98929369dc7377e",class:"accordion-header",onClick:()=>this.handleToggle(),"aria-expanded":this.open+"",disabled:this.disabled},i("span",{key:"ced161eb1187d50b7eb2002081cd3fc008c9a16f",class:"accordion-header-left"},this.preIcon&&i("dropi-icon",{key:"09a157623f0978153b57e85a79d7beeca3faf9ab",name:this.preIcon,iconWidth:"20px",iconHeight:"20px",color:"Gray-Gray-600"}),i("span",{key:"649617f263370d1314e3145c07a3a29ce5c807b5",class:"accordion-title"},this.sectionTitle)),i("span",{key:"d99e3933a40ffa4b1da8091a8b6d767011f1bf6f",class:{"accordion-chevron":!0,"accordion-chevron--open":this.open}},i("dropi-icon",{key:"3d12ae988429fea2612c0c32c12cd81a486ad255",name:"Dropdown-down",iconWidth:"20px",iconHeight:"20px",color:"Gray-Gray-500"}))),i("div",{key:"cedff4803c6fa83ae9dc5cb3ce68f48150cdef67",class:"accordion-body",style:{maxHeight:this.contentHeight},ref:e=>this.contentRef=e},i("div",{key:"a37dd42bf39cf08479d847286860e78a1d80a233",class:"accordion-content"},i("slot",{key:"d797eac747716be1af2a6addbefe583be4a816b1"}))))}static get watchers(){return{open:[{openChanged:0}]}}static get style(){return":host{display:block;border-bottom:1px solid var(--Gray-Gray-100)}.accordion-header{width:100%;display:flex;justify-content:space-between;align-items:center;padding:16px;background:white;border:none;cursor:pointer;text-align:left}.accordion-header-left{display:flex;align-items:center;gap:8px}.accordion-title{font-size:var(--font-size-m);font-weight:var(--font-weight-semibold);color:var(--Gray-Gray-700)}.accordion-chevron{transition:transform 0.3s ease}.accordion-chevron--open{transform:rotate(180deg)}.accordion-body{overflow:hidden;transition:max-height 0.3s ease-out}.accordion-content{padding:0 16px 16px 16px}"}},[769,"dropi-accordion-item",{sectionTitle:[1,"section-title"],index:[2],open:[1540],disabled:[4],preIcon:[1,"pre-icon"],contentHeight:[32]},void 0,{open:[{openChanged:0}]}]);function n(){"undefined"!=typeof customElements&&["dropi-accordion-item","dropi-icon"].forEach((o=>{switch(o){case"dropi-accordion-item":customElements.get(e(o))||customElements.define(e(o),a);break;case"dropi-icon":customElements.get(e(o))||c()}}))}n();const d=a,s=n;export{d as DropiAccordionItem,s as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as o,H as r,h as a}from"./index.js";const t=o(class extends r{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}multiple=!1;render(){return a("div",{key:"
|
|
1
|
+
import{t as e,p as o,H as r,h as a}from"./index.js";const t=o(class extends r{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow()}multiple=!1;render(){return a("div",{key:"c8c70f9c2210e1bc6de7d0933f082a0d1c008837",class:"accordion-container"},a("slot",{key:"9fe1055ed6f5a2fc5c3e8dde47b694ea0acdbcb9"}))}static get style(){return":host{display:block;width:100%;margin-bottom:-1px}*,*::before,*::after{box-sizing:border-box}.accordion{border-top:1px solid var(--Gray-Gray-100,#e6eaf2);border-bottom:1px solid var(--Gray-Gray-100,#e6eaf2);overflow:hidden}.accordion-header{width:100%;display:flex;align-items:center;justify-content:space-between;padding:var(--Size-4,16px) var(--Size-5,20px);background:transparent;border:none;cursor:pointer;gap:12px;text-align:left}.accordion-header:disabled{cursor:not-allowed;opacity:0.5}.accordion--open .accordion-header{border-bottom:1px solid var(--Gray-Gray-100,#e6eaf2)}.accordion-header-left{display:flex;align-items:center;gap:8px;flex:1;min-width:0}.accordion-title{font-size:var(--font-size-m, 16px);font-weight:var(--font-weight-bold,700);color:var(--Gray-Gray-600, #475066);line-height:1.4}.accordion-chevron{display:flex;align-items:center;flex-shrink:0;transition:transform 0.22s ease}.accordion-chevron--open{transform:rotate(180deg)}.accordion-body{max-height:0;overflow:hidden;transition:max-height 0.28s ease}.accordion-content{padding:0 var(--Size-5,20px) var(--Size-4,16px);color:var(--Gray-Gray-600,#475066);font-size:var(--font-size-s,12px);line-height:1.6}"}},[769,"dropi-accordion",{multiple:[4]}]);function i(){"undefined"!=typeof customElements&&["dropi-accordion"].forEach((o=>{"dropi-accordion"===o&&(customElements.get(e(o))||customElements.define(e(o),t))}))}i();const n=t,c=i;export{n as DropiAccordion,c as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as
|
|
1
|
+
import{t,p as i,H as e,c as s,h as a}from"./index.js";import{d as o}from"./p-BSHROiHb.js";import{d}from"./p-B9rJd-Rf.js";import{d as n}from"./p-BmuWhHN-.js";const l=i(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.dropiPrimaryClick=s(this,"dropiPrimaryClick"),this.dropiSecondaryClick=s(this,"dropiSecondaryClick"),this.dropiVisibleChange=s(this,"dropiVisibleChange"),this.dropiHide=s(this,"dropiHide")}visible=!1;type="question";tittle="";message="";primaryButton="Accept";secondaryButton="";loading=!1;closable=!1;displayButtons=!0;loadingTitle="Loading";loadingMessage="Please wait a moment";isStep=!1;baseZIndex=0;isWhiteLabel=!1;params=null;paramsChanged(t){t&&(void 0!==t.tittle&&(this.tittle=t.tittle),void 0!==t.type&&(this.type=t.type),void 0!==t.message&&(this.message=t.message),void 0!==t.primaryButton&&(this.primaryButton=t.primaryButton),void 0!==t.secondaryButton&&(this.secondaryButton=t.secondaryButton),void 0!==t.loadingTitle&&(this.loadingTitle=t.loadingTitle),void 0!==t.loadingMessage&&(this.loadingMessage=t.loadingMessage),void 0!==t.closable&&(this.closable=t.closable),void 0!==t.displayButtons&&(this.displayButtons=t.displayButtons))}dropiPrimaryClick;dropiSecondaryClick;dropiVisibleChange;dropiHide;lottieMap={question:"/assets/lottie-files/question.json",warning:"/assets/lottie-files/warning.json",success:"/assets/lottie-files/success.json",error:"/assets/lottie-files/failure.json",loading:"/assets/lottie-files/loading.json"};componentWillLoad(){this.params&&this.paramsChanged(this.params)}async show(){this.visible=!0}async hide(){this.visible=!1}handlePrimary(){this.dropiPrimaryClick.emit(!0),this.isStep||(this.visible=!1,this.dropiVisibleChange.emit(!1))}handleSecondary(){this.dropiSecondaryClick.emit(!0),this.visible=!1,this.dropiVisibleChange.emit(!1)}onModalHide(){this.visible=!1,this.dropiVisibleChange.emit(!1),this.dropiHide.emit()}render(){const t=this.loading?"loading":this.type;return a("dropi-modal",{key:"322c59ea0a067a4c0cb28a5ffbe9cbc0c642eee6",visible:this.visible,showHeader:this.closable,showCloseIcon:this.closable,dismissable:!1,closeOnEscape:!1,showFooter:!1,size:"s",onDropiHide:()=>this.onModalHide()},a("div",{key:"06530f3da45738d1ed75a4e8b5b8b0b80dfd2647",class:"body-alert"},this.lottieMap[t]&&a("div",{key:"7a4ab4fbbdf3cbbacfa22f918d212b788f4392a4",class:"lottie-img"+("loading"===t?" lottie-img--loading":"")},a("lottie-player",{key:t,src:this.lottieMap[t],background:"transparent",speed:"1",loop:!0,autoplay:!0})),a("div",{key:"0e72f42d10c59047e82df8b2842affd38ab60fc7",class:"content-alert"},a("h2",{key:"8262de8fbcf5b87fbac34740d34d99d0b6ff921d"},this.loading?this.loadingTitle:this.tittle),a("p",{key:"ca9c734e0b9686bff7e2616ae98224446ac0ca33"},this.loading?this.loadingMessage:this.message)),a("div",{key:"1b5edb3af1044cb0dd0b57a425517b1d824672be",class:"custom-content"},a("slot",{key:"57f4a8acdbcf8a11445f7c8233355bb4ac46c9ab"})),!this.loading&&this.displayButtons&&a("div",{key:"32580f42d98f628b4c1d1f300b5a3aaaa1be2486",class:"actions"},this.secondaryButton&&a("dropi-button",{key:"dcf8707a7f4d8b80126a10022dd6de1c0ea44dc7",text:this.secondaryButton,severity:"secondary",onDropiClick:()=>this.handleSecondary(),fullWidth:!0}),a("dropi-button",{key:"3ed494fc7a83021174c4d006ae4327348d400e93",text:this.primaryButton,severity:"primary",onDropiClick:()=>this.handlePrimary(),fullWidth:!0}))))}static get watchers(){return{params:[{paramsChanged:0}]}}static get style(){return":host{display:contents}.body-alert{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:var(--Size-3);width:100%;flex:1;overflow:visible;padding-bottom:var(--Size-2)}.lottie-img{width:120px;height:120px;overflow:hidden;flex-shrink:0;align-self:center;margin-top:-8px;margin-bottom:var(--Size-2)}.lottie-img lottie-player{display:block;width:120px;height:120px}.lottie-img--loading{width:100%;height:120px;overflow:hidden;display:flex;align-items:center;justify-content:center}.lottie-img--loading lottie-player{width:300px;height:auto;flex-shrink:0}.content-alert{text-align:center;width:100%;display:flex;flex-direction:column;align-items:center}.content-alert h2{color:var(--Gray-Gray-800);font-size:19px;font-weight:var(--font-weight-semibold);margin:0}.content-alert p{color:var(--Gray-Gray-500);font-size:var(--font-size-s);margin-bottom:var(--Size-2);overflow-wrap:anywhere;max-height:100px;overflow:auto}.custom-content{width:100%;text-align:left;margin-top:var(--Size-2);display:flex;flex-direction:column;gap:var(--Size-3)}.actions{display:flex;gap:var(--Size-3);width:100%}.actions dropi-button{flex:1;display:flex;justify-content:center}@media (max-width: 768px){.actions{flex-direction:column}.actions dropi-button{width:100%}}"}},[772,"dropi-alert-modal",{visible:[1544],type:[1025],tittle:[1025],message:[1025],primaryButton:[1025,"primary-button"],secondaryButton:[1025,"secondary-button"],loading:[4],closable:[1028],displayButtons:[1028,"display-buttons"],loadingTitle:[1025,"loading-title"],loadingMessage:[1025,"loading-message"],isStep:[4,"is-step"],baseZIndex:[2,"base-z-index"],isWhiteLabel:[4,"is-white-label"],params:[8],show:[64],hide:[64]},void 0,{params:[{paramsChanged:0}]}]);function r(){"undefined"!=typeof customElements&&["dropi-alert-modal","dropi-button","dropi-icon","dropi-modal"].forEach((i=>{switch(i){case"dropi-alert-modal":customElements.get(t(i))||customElements.define(t(i),l);break;case"dropi-button":customElements.get(t(i))||o();break;case"dropi-icon":customElements.get(t(i))||d();break;case"dropi-modal":customElements.get(t(i))||n()}}))}r();const c=l,h=r;export{c as DropiAlertModal,h as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as
|
|
1
|
+
import{D as s,d as o}from"./p-DYAsdhfM.js";const p=s,r=o;export{p as DropiAlert,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as
|
|
1
|
+
import{t as a,p as e,H as t,h as c}from"./index.js";const s=e(class extends t{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow()}type="state";state="check";variant="primary";count=0;render(){const a="counter"===this.type;return c("div",{key:"58bb5c6625539109f010cccdcaafc37ab6da38ba",class:{"badge-legacy":!0,["badge-legacy--"+this.variant]:!0,["badge-legacy--"+this.type]:!0}},a?c("span",{class:"badge-count"},this.count):c("span",{class:{"badge-state-icon":!0,["badge-state--"+this.state]:!0}},"check"===this.state?"✓":"..."))}static get style(){return":host{display:inline-block}.badge-legacy{display:flex;align-items:center;justify-content:center;padding:2px 6px;border-radius:10px;font-size:11px;font-weight:600}.badge-legacy--primary{background:var(--Primary-Primary-50);color:var(--Primary-Primary-500)}.badge-legacy--secondary{background:var(--Gray-Gray-100);color:var(--Gray-Gray-600)}.badge-legacy--tertiary{background:var(--Success-Success-50);color:var(--Success-Success-500)}"}},[513,"dropi-badge-legacy",{type:[1],state:[1],variant:[1],count:[2]}]);function r(){"undefined"!=typeof customElements&&["dropi-badge-legacy"].forEach((e=>{"dropi-badge-legacy"===e&&(customElements.get(a(e))||customElements.define(a(e),s))}))}r();const n=s,i=r;export{n as DropiBadgeLegacy,i as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as i,H as r,c as t,h as n}from"./index.js";import{d as s}from"./p-
|
|
1
|
+
import{t as e,p as i,H as r,c as t,h as n}from"./index.js";import{d as s}from"./p-B9rJd-Rf.js";const o=i(class extends r{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.bannerClick=t(this,"bannerClick"),this.isVisible=t(this,"isVisible")}imageUrl="";link="";alt="";backgroundColor="transparent";slugName="";viewOnWhiteBrand=!1;viewOnlyCountries=[];closed=!1;get el(){return this}componentWillLoad(){this.imageUrl||(this.imageUrl=this.el.getAttribute("imageUrl")||this.el.getAttribute("image-url")||this.el.getAttribute("imageurl")||"")}bannerClick;isVisible;handleClick(e){this.link||(e.preventDefault(),this.bannerClick.emit())}closeBanner(e){e.preventDefault(),e.stopPropagation(),this.closed=!0,this.isVisible.emit(!1)}render(){if(this.closed||!this.imageUrl)return null;const e=n("div",{class:"inner"},n("img",{src:this.imageUrl,alt:this.alt}),n("button",{class:"close-btn","aria-label":"Cerrar banner",onClick:e=>this.closeBanner(e)},n("dropi-icon",{name:"Close-small",iconWidth:"20px",iconHeight:"20px",color:"Gray-Gray-600"})));return n("div",{class:"dropi-banner-external",style:{background:this.backgroundColor}},this.link?n("a",{href:this.link,target:"_blank",rel:"noopener noreferrer",onClick:e=>this.handleClick(e)},e):n("div",{class:"click-wrapper",onClick:e=>this.handleClick(e)},e))}static get style(){return":host{display:block;width:100%}.dropi-banner-external{display:block;width:100%;position:relative;margin-bottom:16px;border-radius:var(--Border-2, 8px)}.dropi-banner-external a{display:block;text-decoration:none}.click-wrapper{cursor:pointer}.inner{position:relative;display:block}.inner img{display:block;width:100%;height:auto;border-radius:var(--Border-2, 8px);max-width:1220px;margin:auto}.close-btn{position:absolute;top:4px;right:4px;background:rgba(255, 255, 255, 0.8);border:none;border-radius:50%;width:28px;height:28px;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;transition:background 0.15s ease}.close-btn:hover{background:rgba(255, 255, 255, 1)}"}},[513,"dropi-banner-external",{imageUrl:[1,"image-url"],link:[1],alt:[1],backgroundColor:[1,"background-color"],slugName:[1,"slug-name"],viewOnWhiteBrand:[4,"view-on-white-brand"],viewOnlyCountries:[16],closed:[32]}]);function a(){"undefined"!=typeof customElements&&["dropi-banner-external","dropi-icon"].forEach((i=>{switch(i){case"dropi-banner-external":customElements.get(e(i))||customElements.define(e(i),o);break;case"dropi-icon":customElements.get(e(i))||s()}}))}a();const l=o,c=a;export{l as DropiBannerExternal,c as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as r,H as a,c as o,h as i}from"./index.js";import{d as t}from"./p-
|
|
1
|
+
import{t as e,p as r,H as a,c as o,h as i}from"./index.js";import{d as t}from"./p-B9rJd-Rf.js";const c=r(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.dropiNavigate=o(this,"dropiNavigate")}items=[];homeRoute="/";homeIconName="Home";lastItemClickable=!1;dropiNavigate;get parsedItems(){if("string"==typeof this.items)try{return JSON.parse(this.items)}catch{return[]}return this.items}render(){const e=this.parsedItems;return i("nav",{key:"c4546d7a0c7852e01f685176b5365f1e0082ad24",class:"breadcrumb","aria-label":"Breadcrumb"},i("div",{key:"924ab634ae4e71f6bd39a67b4b3889cdca20234d",class:"crumb-list"},i("div",{key:"e7b1b285bdd497a028a041ada1eb8b34f77384b0",class:"crumb-home"},i("a",{key:"9e288d5f5761daed20b35dbf056c7de9c2e7b8e3",href:this.homeRoute,class:"home-link","aria-label":"Inicio",onClick:e=>{e.preventDefault(),this.dropiNavigate.emit(this.homeRoute)}},i("dropi-icon",{key:"803ab6d710976b341f19ad7d49fde670acc2c466",name:this.homeIconName,iconWidth:"16px",color:"Gray-Gray-500"})),e.length>0&&i("dropi-icon",{key:"44d1cad9efa9cbc6a52bc26a2229af6680cd8733",name:"Dropdown-Right",iconWidth:"16px",color:"Gray-Gray-500"})),e.map(((r,a)=>{const o=a===e.length-1;return i("div",{class:"crumb",key:a},!o||this.lastItemClickable?i("a",{class:"crumb-link Body-S-Regular"+(r.disabled?" disabled":""),href:r.url||r.routerLink||"#",onClick:e=>{e.preventDefault(),r.disabled||this.dropiNavigate.emit(r)}},r.label):i("span",{class:"current Body-S-Regular","aria-current":"page"},r.label),!o&&i("dropi-icon",{name:"Dropdown-Right",iconWidth:"16px",iconHeight:"16px",color:"Gray-Gray-500"}))}))))}static get style(){return":host{display:block}*,*::before,*::after{box-sizing:border-box}.breadcrumb{margin:0}.crumb-list{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.crumb-home{display:flex;padding-right:4px;align-items:center;gap:4px}.home-link{display:inline-flex;align-items:center;color:var(--Gray-Gray-500, #69738c);text-decoration:none;transition:color 0.2s ease}.home-link:hover{color:var(--Gray-Gray-700, #32394d)}.crumb{display:flex;padding:0 4px;align-items:center;gap:8px}.crumb-link{color:var(--Gray-Gray-500, #69738c);text-align:center;cursor:pointer;text-decoration:none;transition:color 0.2s ease;font-size:var(--font-size-s, 12px)}.crumb-link:hover{color:var(--Gray-Gray-700, #32394d);text-decoration:underline}.crumb-link.disabled{pointer-events:none;color:var(--Gray-Gray-300, #a1a8b8);cursor:not-allowed;text-decoration:none}.current{color:var(--Gray-Gray-700, #32394d);cursor:default;font-size:var(--font-size-s, 12px)}"}},[513,"dropi-breadcrumb",{items:[1],homeRoute:[1,"home-route"],homeIconName:[1,"home-icon-name"],lastItemClickable:[4,"last-item-clickable"]}]);function n(){"undefined"!=typeof customElements&&["dropi-breadcrumb","dropi-icon"].forEach((r=>{switch(r){case"dropi-breadcrumb":customElements.get(e(r))||customElements.define(e(r),c);break;case"dropi-icon":customElements.get(e(r))||t()}}))}n();const s=c,d=n;export{s as DropiBreadcrumb,d as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as o,d as s}from"./p-
|
|
1
|
+
import{D as o,d as s}from"./p-BSHROiHb.js";const p=o,r=s;export{p as DropiButton,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as i,H as t,c as r,h as a}from"./index.js";import{d as c}from"./p-
|
|
1
|
+
import{t as e,p as i,H as t,c as r,h as a}from"./index.js";import{d as c}from"./p-CWT7wT9m.js";const o=i(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.dropiChange=r(this,"dropiChange")}type="default";state="checked";title="Tittle";description="";extraInfo="";extraInfoDescription="";disabled=!1;dropiChange;get isChecked(){return"checked"===this.state}handleClick(){this.disabled||(this.state=this.isChecked?"default":"checked",this.dropiChange.emit(this.isChecked))}render(){return a("div",{key:"b9004c813a03956904cfed8484cac2d8290be86f",class:{"container-card-check":!0,"default-card":"default"===this.type,"is-checked":this.isChecked&&"with card"===this.type,disabled:this.disabled},onClick:()=>this.handleClick()},a("dropi-checkbox",{key:"0c5c50811559c6472173fced2f04eee4626f118f",checked:this.isChecked,disabled:this.disabled}),a("div",{key:"1cb17bf8aea55a498d451922942b4fba6d99492c",class:"container-text"},a("div",{key:"6e2eab2ae82c13cb4e7a654cc989530cee1122c6",class:"title-check"},this.title),this.description&&a("div",{key:"040e5d8f633975bf3eb806835aae8aa308b1d4f8",class:"description-text"},this.description)),(this.extraInfo||this.extraInfoDescription)&&a("div",{key:"a5c794b5f2fa249b309b2fb00a759aea5b9e0d6c",class:"extra-info"},this.extraInfo&&a("div",{key:"1587e1a0801312fa8e759af2a367b36f842e1354"},this.extraInfo),this.extraInfoDescription&&a("h4",{key:"930811071657dfbbeff7c2bdc4cd2c2776d38177"},this.extraInfoDescription)))}static get style(){return":host{display:block;width:100%}*,*::before,*::after{box-sizing:border-box}.container-card-check{padding:var(--Size-4, 16px);border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Size-2, 8px);width:100%;display:flex;align-items:center;gap:var(--Size-3, 12px);cursor:pointer;height:66px;overflow:hidden;transition:background 0.15s ease, border-color 0.15s ease}.container-card-check.disabled{border-radius:var(--Border-2, 8px);border:1px solid var(--Gray-Gray-100, #e6eaf2);background-color:var(--Gray-Gray-50, #f7f8fa);cursor:default}.container-card-check.disabled .title-check,.container-card-check.disabled .description-text,.container-card-check.disabled .extra-info{color:var(--Gray-Gray-400, #858ea6)}.container-text{width:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;text-align:start;overflow:hidden}.title-check{color:var(--Gray-Gray-700, #32394d);font-size:var(--font-size-m, 14px);font-weight:var(--font-weight-regular, 400);display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.description-text{color:var(--Gray-Gray-500, #69738c);font-size:var(--font-size-s, 12px);margin-top:var(--Size-1, 4px);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}.extra-info{display:flex;justify-content:space-between;align-items:center;flex-direction:column;gap:4px;flex-shrink:0;font-size:var(--font-size-s, 12px);color:var(--Gray-Gray-600, #475066)}.extra-info h4{margin:0;font-weight:var(--font-weight-semibold);color:inherit;line-height:inherit}.default-card{border:none}.is-checked{background:var(--Primary-Primary-50, #fff8f0);border:1px solid var(--Primary-Primary-500, #f49a3d)}"}},[513,"dropi-card-checkbox",{type:[1],state:[1025],title:[1],description:[1],extraInfo:[1,"extra-info"],extraInfoDescription:[1,"extra-info-description"],disabled:[4]}]);function s(){"undefined"!=typeof customElements&&["dropi-card-checkbox","dropi-checkbox"].forEach((i=>{switch(i){case"dropi-card-checkbox":customElements.get(e(i))||customElements.define(e(i),o);break;case"dropi-checkbox":customElements.get(e(i))||c()}}))}s();const d=o,n=s;export{d as DropiCardCheckbox,n as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as i,H as t,c as a,h as o}from"./index.js";import{d as r}from"./p-
|
|
1
|
+
import{t as e,p as i,H as t,c as a,h as o}from"./index.js";import{d as r}from"./p-B9rJd-Rf.js";import{d as s}from"./p-D7GP-lmt.js";const c=i(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.dropiProductClick=a(this,"dropiProductClick"),this.dropiFavoriteChange=a(this,"dropiFavoriteChange"),this.dropiAddProduct=a(this,"dropiAddProduct"),this.dropiSupplierClick=a(this,"dropiSupplierClick")}image="";productName="";salePrice=0;suggestedPrice=0;currency="$";supplier="";category="";stock=0;supplierCategory="";showFavorite=!0;isFavorite=!1;showAddButton=!0;dropiProductClick;dropiFavoriteChange;dropiAddProduct;dropiSupplierClick;formatPrice(e){return null==e?"0":e.toLocaleString("es-CO")}get inStock(){return this.stock>0}getStockColor(){return 0===this.stock?"var(--Error-Error-500, #f46a6b)":this.stock<=10?"var(--Warning-Warning-500, #f59e0b)":"var(--Success-Success-500, #0abb87)"}render(){return o("div",{key:"2fe4ce42e1c331a99fd1171c82e6e48bfb5dbff0",class:"dropi-card-product",onClick:()=>this.dropiProductClick.emit()},o("div",{key:"3f94077ee059e347f3ff4fff808a3a3f3a0ac827",class:"product-image-container"},o("div",{key:"1d6e8181cc630ab03efc90e316c349dfe9765b46",class:"product-image"},o("img",{key:"f6647c21ac24d378482c6e6fe5220d6d18ff694b",src:this.image||"",alt:this.productName,onError:e=>{e.target.src="./assets/utils/no-image.jpg"},class:this.image?"":"error-img"}),this.showFavorite&&o("button",{key:"37c23af5e1345e2f2b2ac42dd38f88eb17254889",class:{"favorite-button":!0,"favorite-active":this.isFavorite},onClick:e=>{e.stopPropagation(),this.isFavorite=!this.isFavorite,this.dropiFavoriteChange.emit(this.isFavorite)},"aria-label":"Favorito"},o("dropi-icon",{key:"c6d6c87dcb5ae0f9a0d416667a3d39c7e153b7a6",name:this.isFavorite?"Heart-solid":"Heart",iconWidth:"18px",iconHeight:"18px",color:this.isFavorite?"#fff":"#858ea6"})))),o("div",{key:"66dbcb028acb35e9a43502e9ff9a00fd2ebf8bf2",class:"product-info"},this.supplierCategory&&o("dropi-ilustration-icon",{key:"fd3d94e953a6b91418decc09ed426755a85bac1b",class:"supplier-insignia",type:"insignia",stateInsignia:this.supplierCategory,tagProduct:!0}),o("div",{key:"45817e3bb0bfdaa0ec8cb4a23fdac1bb943e93dc",class:"product-header"},this.category&&o("span",{key:"c721519a5339a2ac40d20c283bbe8797b78e4b27",class:"category"},this.category),o("div",{key:"49f5013738dfffcdb83dfde628f5d1d21164c3d2",class:"stock-info"},o("span",{key:"bd49d5069d07b3ae10ac9c85a4b84bbb573f926e",class:"stock-label"},"Stock:"),o("span",{key:"d0eefb88240c13c9c56e7470e79cbacc9d86caf4",class:"stock-value",style:{color:this.getStockColor()}},0===this.stock?"Agotado":this.stock))),o("h3",{key:"a880d0df13af0b75d553daf18e876905b93e6ef1",class:"product-name"},this.productName),this.supplier&&o("div",{key:"faa82e269979084e7510b6a17fb1f3caee8ad181",class:"supplier-info"},o("span",{key:"b4b223620c58cb30945b1c6be50559614937eb5f",class:"supplier-label"},"Proveedor:"),o("span",{key:"989580f42383c3b6adb6484a493d1293a2a11904",class:"supplier-name",onClick:e=>{e.stopPropagation(),this.dropiSupplierClick.emit()}},this.supplier)),o("div",{key:"451c1ab830c7ab38c4e414e94f11f63ffcf86162",class:"price-container"},o("div",{key:"755f3f8aac6f7b1d458d28b74dec2734b42794a6",class:"price-item"},o("span",{key:"fff0a718b4f22641adcd28bbcb7e81a0f21755e9",class:"price-label"},"Precio proveedor"),o("span",{key:"5bb6843a4a293195f0dbda5c3eccfc4f38c719b1",class:"price-value"},this.currency," ",this.formatPrice(this.salePrice))),o("div",{key:"468b1d7596ec5d727846a087b5d89461c5fef858",class:"price-item"},o("span",{key:"91b15e4d58d27997b2dfdb9c73fd417a8f8ba5fb",class:"price-label"},"Precio sugerido"),o("span",{key:"378483760ffac07491f5b65b37d5e27d41423ec5",class:"price-value"},this.currency," ",this.formatPrice(this.suggestedPrice))))),o("div",{key:"71467832049894083ea3454618a12d082cb15844",class:"separator"}),this.showAddButton&&o("div",{key:"f9f0450e3dfa2b91ae7caa468811cc739d7a280e",class:{"action-button":!0,"action-button--disabled":!this.inStock},onClick:e=>{e.stopPropagation(),this.inStock&&this.dropiAddProduct.emit()}},o("dropi-icon",{key:"50a9fad974460c2728fb1fca74628d093cbb1875",name:"Shopping-cart-arrow-rigth",iconWidth:"20px",iconHeight:"20px",color:"#f49a3d"}),o("span",{key:"f5ac44dd20e01bc644e863c3cbf51e3493821e70",class:"button-text"},"Enviar a cliente")))}static get style(){return":host{display:block;font-family:'Inter', sans-serif}*,*::before,*::after{box-sizing:border-box}.dropi-card-product{position:relative;background:#ffffff;border-radius:8px;overflow:hidden;transition:all 0.2s ease-in-out;cursor:pointer;display:flex;flex-direction:column;height:100%;box-sizing:border-box;width:100%;max-width:450px;box-shadow:none}.product-image-container{padding:4px;flex-shrink:0}.product-image{position:relative;width:100%;aspect-ratio:1;border-radius:8px;border:1px solid #c3c9d9;overflow:hidden;display:flex;align-items:center;justify-content:center;background-color:#f8f9fa}.product-image img{width:100%;height:100%;object-fit:cover;border-radius:8px}.product-image img.error-img{object-fit:contain}.favorite-button{position:absolute;bottom:5px;right:6px;border-radius:8px;padding:12px;cursor:pointer;transition:all 0.2s ease-in-out;z-index:2;display:flex;align-items:center;justify-content:center;width:42px;height:40px;background:#ffffff;border:1px solid #858ea6}.favorite-button.favorite-active{background:var(--Primary-Primary-500, #f49a3d);border:1px solid var(--Primary-Primary-500, #f49a3d)}.product-info{position:relative;padding:8px;display:flex;flex-direction:column;gap:4px;flex:1;justify-content:space-between}.supplier-insignia{position:absolute;top:-24px;left:0px}.product-header{display:flex;justify-content:space-between;align-items:center;width:100%;height:26px}.category{color:#69738c;font-family:'Inter', sans-serif;font-size:12px;font-weight:400;line-height:1.5;flex:1}.stock-info{display:flex;align-items:center;gap:2px;font-family:'Inter', sans-serif;font-size:12px;font-weight:400;line-height:1.5}.stock-label{color:#69738c}.stock-value{font-weight:500}.product-name{color:#32394d;font-family:'Inter', sans-serif;font-size:16px;font-weight:500;line-height:1.5;margin:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.supplier-info{font-family:'Inter', sans-serif;font-size:12px;line-height:1.2}.supplier-label{color:#69738c;font-weight:400}.supplier-name{color:#50a5f1;font-weight:400;margin-left:4px;cursor:pointer}.price-container{display:flex;gap:8px;margin-top:4px}.price-item{flex:1;display:flex;flex-direction:column}.price-label{color:#69738c;font-family:'Inter', sans-serif;font-size:12px;font-weight:400;line-height:1.5;height:18px;min-width:max-content}.price-value{color:#32394d;font-family:'Inter', sans-serif;font-size:14px;font-weight:700;line-height:1.1;margin-top:2px}.separator{height:1px;background:#e6eaf2;margin:0;flex-shrink:0}.action-button{background:#ffffff;border:none;border-top:1px solid #e6eaf2;padding:12px;cursor:pointer;transition:all 0.2s ease-in-out;display:flex;align-items:center;justify-content:center;gap:8px;height:40px;flex-shrink:0}.action-button--disabled{opacity:0.3;cursor:not-allowed}.button-text{font-family:'Inter', sans-serif;font-size:14px;font-weight:700;line-height:1.1;color:#f49a3d;text-align:center;white-space:nowrap}"}},[513,"dropi-card-product",{image:[1],productName:[1,"product-name"],salePrice:[2,"sale-price"],suggestedPrice:[2,"suggested-price"],currency:[1],supplier:[1],category:[1],stock:[2],supplierCategory:[1,"supplier-category"],showFavorite:[4,"show-favorite"],isFavorite:[1028,"is-favorite"],showAddButton:[4,"show-add-button"]}]);function n(){"undefined"!=typeof customElements&&["dropi-card-product","dropi-icon","dropi-ilustration-icon"].forEach((i=>{switch(i){case"dropi-card-product":customElements.get(e(i))||customElements.define(e(i),c);break;case"dropi-icon":customElements.get(e(i))||r();break;case"dropi-ilustration-icon":customElements.get(e(i))||s()}}))}n();const d=c,f=n;export{d as DropiCardProduct,f as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as t,H as i,c as
|
|
1
|
+
import{t as e,p as t,H as i,c as r,h as s}from"./index.js";import{d as o}from"./p-B9rJd-Rf.js";import{d as c}from"./p-BzCPv3ND.js";const n=t(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.dropiChange=r(this,"dropiChange"),this.dropiClick=r(this,"dropiClick")}title="title";description="Description";typeElement="dropdown";type="important";isChecked=!1;dropiChange;dropiClick;render(){return s("div",{key:"06fe2a580fb23484419ea4b1c41a265facb722de",class:"card-section"},s("div",{key:"1020ea256b0311a200a721387b3ecb8d0f3809ab",class:"card-section__text"},"important"===this.type?s("h5",{class:"card-section__title card-section__title--important"},this.title):s("h6",{class:"card-section__title"},this.title),this.description&&s("p",{key:"52ea93b6b2736c4c6e3ebb953c2878db90d34b4c",class:"card-section__desc"},this.description)),s("div",{key:"7ec0ed96e43b45256fd5dec5ee24b0dfd6488403",class:"card-section__control"},"switch"===this.typeElement?s("dropi-switch",{isChecked:this.isChecked,onDropiChange:e=>{this.isChecked=e.detail,this.dropiChange.emit(e.detail)}}):s("button",{class:"card-section__dropdown-btn",onClick:()=>this.dropiClick.emit(),"aria-label":"Expandir"},s("dropi-icon",{name:"Dropdown-down",iconWidth:"20px",iconHeight:"20px",color:"Gray-Gray-500"}))))}static get style(){return":host{display:block;width:100%}*,*::before,*::after{box-sizing:border-box}.card-section{display:flex;align-items:center;justify-content:space-between;gap:var(--Size-4, 16px);padding:var(--Size-3, 12px) var(--Size-4, 16px);background:var(--Neutral-White, #ffffff);border:1px solid var(--Gray-Gray-100, #e6eaf2);border-radius:var(--Border-2, 8px)}.card-section__text{flex:1}.card-section__title{margin:0 0 4px;font-family:inherit;font-weight:var(--font-weight-bold, 700);color:var(--Gray-Gray-800, #1f2433)}h5.card-section__title{font-size:var(--font-size-m, 14px)}h6.card-section__title{font-size:var(--font-size-s, 12px)}.card-section__desc{margin:0;font-size:var(--font-size-xs, 10px);color:var(--Gray-Gray-500, #69738c)}.card-section__control{flex-shrink:0}.card-section__dropdown-btn{display:flex;align-items:center;background:none;border:none;padding:0;cursor:pointer}"}},[513,"dropi-card-section",{title:[1],description:[1],typeElement:[1,"type-element"],type:[1],isChecked:[1028,"is-checked"]}]);function a(){"undefined"!=typeof customElements&&["dropi-card-section","dropi-icon","dropi-switch"].forEach((t=>{switch(t){case"dropi-card-section":customElements.get(e(t))||customElements.define(e(t),n);break;case"dropi-icon":customElements.get(e(t))||o();break;case"dropi-switch":customElements.get(e(t))||c()}}))}a();const d=n,p=a;export{d as DropiCardSection,p as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as i,p as t,H as e,c as s,h as
|
|
1
|
+
import{t as i,p as t,H as e,c as s,h as r}from"./index.js";const a=t(class extends e{constructor(i){super(),!1!==i&&this.__registerHost(),this.__attachShadow(),this.dropiPageChange=s(this,"dropiPageChange"),this.dropiPage=s(this,"dropiPage")}get el(){return this}value=[];page=0;numVisible=1;numScroll=1;orientation="horizontal";showNavigators=!0;showIndicators=!0;autoplayInterval=0;circular=!1;parsedValue=[];internalPage=0;isAnimating=!1;totalPages=0;itemsContainer;timer;dropiPageChange;dropiPage;handleValue(i){this.parsedValue="string"==typeof i?JSON.parse(i):i||[],this.updateTotalPages(),this.updateTransform()}handlePage(i){this.internalPage=i,this.updateTransform()}componentWillLoad(){if(!this.value||Array.isArray(this.value)&&0===this.value.length){const i=this.el.getAttribute("value");i&&(this.value=i)}this.handleValue(this.value),this.internalPage=this.page}componentDidLoad(){this.updateTransform(),this.autoplayInterval>0&&this.startAutoplay(),window.addEventListener("resize",this.onResize)}disconnectedCallback(){this.stopAutoplay(),window.removeEventListener("resize",this.onResize)}onResize=()=>{this.updateTotalPages(),this.updateTransform()};startAutoplay(){this.timer=setInterval((()=>this.navForward()),this.autoplayInterval)}stopAutoplay(){this.timer&&clearInterval(this.timer)}updateTotalPages(){this.totalPages=!this.parsedValue.length||this.parsedValue.length<=this.numVisible?1:Math.ceil((this.parsedValue.length-this.numVisible)/this.numScroll)+1}updateTransform(){if(!this.itemsContainer)return;const i="vertical"===this.orientation?"translateY":"translateX",t=this.itemsContainer.querySelector(".dropi-carousel-item");if(!t)return;const e="vertical"===this.orientation?t.offsetHeight:t.offsetWidth;this.itemsContainer.style.transform=`${i}(${-Math.min(this.internalPage*this.numScroll,Math.max(0,this.parsedValue.length-this.numVisible))*e}px)`}navForward=i=>{i&&i.preventDefault(),(this.circular||this.internalPage<this.totalPages-1)&&(this.isAnimating=!0,this.internalPage=(this.internalPage+1)%this.totalPages,this.page=this.internalPage,this.updateTransform(),this.dropiPageChange.emit(this.internalPage),setTimeout((()=>this.isAnimating=!1),500))};navBackward=i=>{i&&i.preventDefault(),(this.circular||this.internalPage>0)&&(this.isAnimating=!0,this.internalPage=(this.internalPage-1+this.totalPages)%this.totalPages,this.page=this.internalPage,this.updateTransform(),this.dropiPageChange.emit(this.internalPage),setTimeout((()=>this.isAnimating=!1),500))};onDotClick(i){this.isAnimating=!0,this.internalPage=i,this.page=this.internalPage,this.updateTransform(),this.dropiPageChange.emit(this.internalPage),setTimeout((()=>this.isAnimating=!1),500)}render(){const i=this.parsedValue;if(!i.length)return null;const t=100/this.numVisible+"%";return r("div",{class:{"dropi-carousel-container":!0,vertical:"vertical"===this.orientation}},r("div",{class:"dropi-carousel-content"},this.showNavigators&&i.length>this.numVisible&&r("button",{class:"dropi-carousel-nav dropi-carousel-prev",disabled:!this.circular&&0===this.internalPage,onClick:i=>this.navBackward(i),"aria-label":"Anterior"},r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},r("path",{d:"M14.659 17.5a.833.833 0 0 1-.589-.244l-4.43-4.431a.833.833 0 0 1 0-1.178l4.43-4.431a.834.834 0 0 1 1.179 1.178L11.42 12.25l3.83 3.829a.833.833 0 0 1-.59 1.421Z",fill:"#475066"}))),r("div",{class:"dropi-carousel-items-content"},r("div",{class:"dropi-carousel-items-container",ref:i=>this.itemsContainer=i,style:{transition:this.isAnimating?"transform 0.5s ease":"none"}},i.map(((i,e)=>r("div",{class:"dropi-carousel-item",style:{flex:"0 0 "+t}},"string"==typeof i?r("img",{src:i,alt:"Slide "+(e+1)}):r("slot",{name:"item-"+e})))))),this.showNavigators&&i.length>this.numVisible&&r("button",{class:"dropi-carousel-nav dropi-carousel-next",disabled:!this.circular&&this.internalPage>=this.totalPages-1,onClick:i=>this.navForward(i),"aria-label":"Siguiente"},r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},r("path",{d:"M9.341 17.5a.833.833 0 0 0 .589-.244l4.43-4.431a.833.833 0 0 0 0-1.178l-4.43-4.431a.834.834 0 0 0-1.179 1.178l3.83 3.829-3.83 3.829a.833.833 0 0 0 .59 1.421Z",fill:"#475066"})))),this.showIndicators&&this.totalPages>1&&r("ul",{class:"dropi-carousel-indicators"},Array.from({length:this.totalPages}).map(((i,t)=>r("li",{class:{active:t===this.internalPage},onClick:()=>this.onDotClick(t)},r("button",{type:"button","aria-label":"Página "+(t+1)}))))))}static get watchers(){return{value:[{handleValue:0}],page:[{handlePage:0}]}}static get style(){return":host{display:block;width:100%}*,*::before,*::after{box-sizing:border-box}.dropi-carousel-container{display:flex;flex-direction:column;position:relative;width:100%;max-width:100%;overflow:hidden;padding:0 var(--Size-4)}.dropi-carousel-content{display:flex;align-items:center;position:relative;padding:1rem 0;width:100%}.dropi-carousel-items-content{overflow:hidden;flex:1;padding:0;width:100%;max-width:100%}.dropi-carousel-items-container{display:flex;padding-bottom:var(--Size-3);will-change:transform}.dropi-carousel-item{flex:0 0 auto;padding:0 0.5rem;box-sizing:border-box}.dropi-carousel-item>*{width:100%;box-sizing:border-box;display:block}.dropi-carousel-nav{display:flex;width:40px;height:40px;justify-content:center;align-items:center;cursor:pointer;transition:all 0.2s;flex-shrink:0;z-index:1;border-radius:var(--Border-5);background:var(--Neutral-White, #fff);box-shadow:var(--Shadow-medium);border:none;appearance:none;padding:0}.dropi-carousel-nav:hover{background:var(--Gray-Gray-50)}.dropi-carousel-nav:disabled{opacity:0.4;cursor:not-allowed;box-shadow:none}.dropi-carousel-prev{margin-right:1rem}.dropi-carousel-next{margin-left:1rem}.dropi-carousel-indicators{display:flex;justify-content:center;gap:0.5rem;list-style:none;padding:1rem 0 0 0;margin:0}.dropi-carousel-indicators li{cursor:pointer}.dropi-carousel-indicators li button{width:1rem;height:1rem;border-radius:50%;border:1px solid var(--Gray-Gray-100, #eceef4);background:var(--Neutral-White, #fff);cursor:pointer;transition:all 0.2s;padding:0}.dropi-carousel-indicators li.active button{background:var(--Primary-Primary-500);border-color:var(--Primary-Primary-500)}.dropi-carousel-indicators li:hover button{background:var(--Gray-Gray-200)}.vertical .dropi-carousel-content{flex-direction:column}.vertical .dropi-carousel-items-container{flex-direction:column}.vertical .dropi-carousel-prev{margin:0 0 1rem 0}.vertical .dropi-carousel-next{margin:1rem 0 0 0}@media (max-width: 768px){.dropi-carousel-container{padding:0}.dropi-carousel-item{padding:0 0.25rem}}"}},[769,"dropi-carousel",{value:[1],page:[1026],numVisible:[2,"num-visible"],numScroll:[2,"num-scroll"],orientation:[1],showNavigators:[8,"show-navigators"],showIndicators:[8,"show-indicators"],autoplayInterval:[2,"autoplay-interval"],circular:[8],parsedValue:[32],internalPage:[32],isAnimating:[32],totalPages:[32]},void 0,{value:[{handleValue:0}],page:[{handlePage:0}]}]);function o(){"undefined"!=typeof customElements&&["dropi-carousel"].forEach((t=>{"dropi-carousel"===t&&(customElements.get(i(t))||customElements.define(i(t),a))}))}o();const n=a,l=o;export{n as DropiCarousel,l as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as s,H as t,c as i,h as o}from"./index.js";import{d as r}from"./p-
|
|
1
|
+
import{t as e,p as s,H as t,c as i,h as o}from"./index.js";import{d as r}from"./p-CWT7wT9m.js";import{d as c}from"./p-B9rJd-Rf.js";const a=s(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.dropiCheckedValues=i(this,"dropiCheckedValues"),this.dropiSearch=i(this,"dropiSearch")}options=[];showFilter=!0;filterPlaceholder="Search";showNotFound=!0;notFoundMessage="No related results found";multiSelect=!0;searchDelay=100;filterText="";selected=[];parsedOptions=[];dropiCheckedValues;dropiSearch;optionsChanged(e){this.parsedOptions="string"==typeof e?JSON.parse(e):e||[]}componentWillLoad(){this.optionsChanged(this.options)}get filtered(){if(!this.filterText)return this.parsedOptions;const e=this.filterText.toLowerCase();return this.parsedOptions.filter((s=>s.label?.toLowerCase().includes(e)))}toggle(e){this.selected=this.multiSelect?this.selected.includes(e)?this.selected.filter((s=>s!==e)):[...this.selected,e]:this.selected.includes(e)?[]:[e],this.dropiCheckedValues.emit(this.selected)}render(){const e=this.filtered;return o("div",{key:"95774833547807d6001525158bf199883661b649",class:"csl"},this.showFilter&&o("div",{key:"13f6bfd33150cdf138e90b93fc8121dfcc311050",class:"csl__search"},o("dropi-icon",{key:"4edf5c21eeac0aa442e58845621b7715d8484c1b",name:"Search",iconWidth:"16px",iconHeight:"16px",color:"Gray-Gray-400"}),o("input",{key:"40071d0c189c7fd1f1bf8090ebe1d64ce9605602",class:"csl__search-input",type:"text",placeholder:this.filterPlaceholder,value:this.filterText,onInput:e=>{this.filterText=e.target.value,this.dropiSearch.emit(this.filterText)}}),this.filterText&&o("button",{key:"a560cab7ce53e57e036696194054286aa1dd6fd9",class:"csl__clear",onClick:()=>{this.filterText="",this.dropiSearch.emit("")}},o("dropi-icon",{key:"f1ae7e38fcb954761edb02bb32af139fb5eea610",name:"Close-small",iconWidth:"14px",iconHeight:"14px",color:"Gray-Gray-400"}))),o("div",{key:"e93dfccc8215e96640ebe8c69f33f0bff5f655f2",class:"csl__list"},0===e.length&&this.showNotFound?o("div",{class:"csl__empty"},this.notFoundMessage):e.map((e=>{const s=this.selected.includes(e.id);return o("div",{class:"csl__item",key:e.id,onClick:()=>this.toggle(e.id)},o("dropi-checkbox",{checked:s}),e.icon&&o("img",{class:"csl__icon",src:e.icon,alt:e.label}),o("span",{class:"csl__label"},e.label))}))))}static get watchers(){return{options:[{optionsChanged:0}]}}static get style(){return":host{display:block;width:100%}*,*::before,*::after{box-sizing:border-box}.csl__search{display:flex;align-items:center;gap:var(--Size-2, 8px);padding:var(--Size-2, 8px) var(--Size-3, 12px);border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);margin-bottom:var(--Size-2, 8px)}.csl__search-input{flex:1;border:none;outline:none;font-size:var(--font-size-s, 12px);font-family:inherit;color:var(--Gray-Gray-700, #32394d);background:transparent}.csl__clear{display:flex;background:none;border:none;padding:0;cursor:pointer}.csl__list{display:flex;flex-direction:column}.csl__item{display:flex;align-items:center;gap:var(--Size-2, 8px);padding:var(--Size-2, 8px) var(--Size-3, 12px);cursor:pointer;border-radius:var(--Border-1, 4px);transition:background 0.15s}.csl__item:hover{background:var(--Gray-Gray-50, #f7f8fa)}.csl__icon{width:24px;height:24px;border-radius:50%;object-fit:cover;flex-shrink:0}.csl__label{font-size:var(--font-size-s, 12px);color:var(--Gray-Gray-700, #32394d);flex:1}.csl__empty{padding:var(--Size-4, 16px);text-align:center;font-size:var(--font-size-s, 12px);color:var(--Gray-Gray-400, #858ea6)}"}},[513,"dropi-checkbox-selection-list",{options:[1],showFilter:[4,"show-filter"],filterPlaceholder:[1,"filter-placeholder"],showNotFound:[4,"show-not-found"],notFoundMessage:[1,"not-found-message"],multiSelect:[4,"multi-select"],searchDelay:[2,"search-delay"],filterText:[32],selected:[32],parsedOptions:[32]},void 0,{options:[{optionsChanged:0}]}]);function l(){"undefined"!=typeof customElements&&["dropi-checkbox-selection-list","dropi-checkbox","dropi-icon"].forEach((s=>{switch(s){case"dropi-checkbox-selection-list":customElements.get(e(s))||customElements.define(e(s),a);break;case"dropi-checkbox":customElements.get(e(s))||r();break;case"dropi-icon":customElements.get(e(s))||c()}}))}l();const n=a,d=l;export{n as DropiCheckboxSelectionList,d as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as o,d as
|
|
1
|
+
import{D as o,d as s}from"./p-CWT7wT9m.js";const m=o,p=s;export{m as DropiCheckbox,p as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as i,H as r,c as o,h as t}from"./index.js";import{d as c}from"./p-
|
|
1
|
+
import{t as e,p as i,H as r,c as o,h as t}from"./index.js";import{d as c}from"./p-B9rJd-Rf.js";const s=i(class extends r{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.dropiClose=o(this,"dropiClose")}customStyle="fill";type="icon";urlImg="";showIcon=!1;icon="";dropiClose;render(){return t("div",{key:"394a3ff5219535e9f4e1d6c9fbb320c32f1ce2e7",class:{chip:!0,["chip--"+this.customStyle]:!0}},"avatar"===this.type&&this.urlImg&&t("img",{key:"c7ea7ce319e2ab0a179f7b0b61ad9fe39be7c1ec",class:"chip__avatar",src:this.urlImg,alt:""}),"icon"===this.type&&this.icon&&t("dropi-icon",{key:"67e2edfbe37af83868a665cf65a85ecc27b7cfb5",class:"chip__pre-icon",name:this.icon,iconWidth:"14px",iconHeight:"14px",color:"currentColor"}),t("span",{key:"1916b1796d69cf6742177b8f4013315323bdf16f",class:"chip__text"},t("slot",{key:"167e1b230b1c4406ba3f40ba7783966c6b523c96"})),this.showIcon&&t("button",{key:"118d46db1615e9ed14485500b5a754407c361139",class:"chip__close",onClick:()=>this.dropiClose.emit(),"aria-label":"Eliminar"},t("dropi-icon",{key:"1639e4ae068d0361512469d2915b392101b2b923",name:"Cross-circle",iconWidth:"14px",iconHeight:"14px",color:"currentColor"})))}static get style(){return":host{display:inline-flex}*,*::before,*::after{box-sizing:border-box}.chip{display:inline-flex;align-items:center;justify-content:center;gap:var(--Size-1, 4px);height:24px;padding:0 var(--Size-2, 8px);border-radius:var(--Border-2, 8px);font-size:var(--font-size-xs, 10px);font-family:inherit;width:fit-content;max-width:200px}.chip--filters{background:var(--Primary-Primary-50, #fff5eb);border:1px solid var(--Primary-Primary-200, #fbd4a3);color:var(--Primary-Primary-600, #d4872e)}.chip--fill{background:var(--Gray-Gray-100, #e6eaf2);border:1px solid transparent;color:var(--Gray-Gray-700, #32394d)}.chip__avatar{width:16px;height:16px;border-radius:50%;object-fit:cover;flex-shrink:0}.chip__text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.chip__close{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;background:none;border:none;padding:0;cursor:pointer;color:inherit;opacity:0.7;transition:opacity 0.15s}.chip__close:hover{opacity:1}"}},[769,"dropi-chips",{customStyle:[1,"custom-style"],type:[1],urlImg:[1,"url-img"],showIcon:[4,"show-icon"],icon:[1]}]);function a(){"undefined"!=typeof customElements&&["dropi-chips","dropi-icon"].forEach((i=>{switch(i){case"dropi-chips":customElements.get(e(i))||customElements.define(e(i),s);break;case"dropi-icon":customElements.get(e(i))||c()}}))}a();const n=s,p=a;export{n as DropiChips,p as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as r,H as i,c as t,h as a}from"./index.js";import{d as o}from"./p-
|
|
1
|
+
import{t as e,p as r,H as i,c as t,h as a}from"./index.js";import{d as o}from"./p-B9rJd-Rf.js";const s=r(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.selectedCitiesChange=t(this,"selectedCitiesChange")}options=[];selectedCities=[];placeholder="Seleccione una ciudad";disabled=!1;selectedCitiesChange;isOpen=!1;selected=[];parsedOptions=[];searchTerm="";get el(){return this}handleDocClick(e){this.isOpen&&!e.composedPath().includes(this.el)&&(this.isOpen=!1)}optionsChanged(e){this.parsedOptions=null!=e?"string"==typeof e?JSON.parse(e):e:[]}selectedChanged(e){this.selected=null!=e?"string"==typeof e?JSON.parse(e):[...e]:[]}componentWillLoad(){this.optionsChanged(this.options),this.selectedChanged(this.selectedCities)}get filtered(){if(!this.searchTerm)return this.parsedOptions;const e=this.searchTerm.toLowerCase();return this.parsedOptions.map((r=>({...r,items:r.items.filter((r=>r.label.toLowerCase().includes(e)))}))).filter((e=>e.items.length>0))}toggle(){this.disabled||(this.isOpen=!this.isOpen)}toggleCity(e,r){r.stopPropagation(),this.selected=this.selected.includes(e)?this.selected.filter((r=>r!==e)):[...this.selected,e],this.selectedCitiesChange.emit([...this.selected])}removeCity(e,r){r.stopPropagation(),this.selected=this.selected.filter((r=>r!==e)),this.selectedCitiesChange.emit([...this.selected])}getLabel(e){for(const r of this.parsedOptions){const i=r.items.find((r=>r.value==e));if(i)return i.label}return e+""}render(){const e=this.filtered;return a("div",{key:"5b1e27677c34d0dc85dc9c8544e4b0ba9a66216b",class:{"city-selector":!0,"city-selector--disabled":this.disabled}},a("button",{key:"e359c1baff0a255cd396ee35836430486bc67cd3",type:"button",class:"selector-trigger",disabled:this.disabled,onClick:()=>this.toggle(),"aria-haspopup":"listbox","aria-expanded":this.isOpen},a("div",{key:"082246999f826e8cfe1b2d09fd801a5d7db7e1b2",class:"chips-area"},0===this.selected.length&&a("span",{key:"90453c84cae3561412f795ec1ffc01923cd87040",class:"placeholder"},this.placeholder),this.selected.map((e=>a("span",{class:"chip",key:e+""},this.getLabel(e),a("button",{type:"button",class:"chip-remove","aria-label":"Quitar",onClick:r=>this.removeCity(e,r)},a("dropi-icon",{name:"Close-small",iconWidth:"10px",iconHeight:"10px",color:"Primary-Primary-500"})))))),a("dropi-icon",{key:"f99675449127fb19fdea950db057d8c14ca62644",name:this.isOpen?"Arrow-Up-2":"Arrow-Down-2",iconWidth:"16px",iconHeight:"16px",color:"Gray-Gray-500"})),this.isOpen&&a("div",{key:"2a14a55016c19128fde45359f4b29b6f04f9b035",class:"dropdown",role:"listbox"},a("div",{key:"1321152ed7b0d3f50b04c7f28b05f1523c41cce4",class:"search-wrap"},a("div",{key:"7c94a7506d44cd89b83e5782cce16319f266f82c",class:"search-field"},a("input",{key:"5f40db9a8df0adc09776b4adcfe03a4a6d1d1467",class:"search-input",type:"text",placeholder:"Buscar...",value:this.searchTerm,onInput:e=>{this.searchTerm=e.target.value},autoComplete:"off"}),a("span",{key:"3140903ef4355b970c8f348e4f55d43f852e247d",class:"search-icon"},a("dropi-icon",{key:"b59235b0d7a685000033d2a294fbce246d0ba4c2",name:"Search",iconWidth:"16px",iconHeight:"16px",color:"Gray-Gray-400"})))),a("div",{key:"bfd40e336b402bd92ec212466cf89e1cffb0d4be",class:"options-list"},0===e.length&&a("div",{key:"9fce9b4df1ffb122278480f0ab60255ea0c795ec",class:"no-results"},"Sin resultados"),e.map((e=>a("div",{key:e.value,class:"group"},a("div",{class:"group-label"},e.label),e.items.map((e=>{const r=this.selected.includes(e.value);return a("div",{key:e.value+"",class:{"city-option":!0,"city-option--selected":r},onClick:r=>this.toggleCity(e.value,r),role:"option","aria-selected":r},a("span",{class:{checkbox:!0,"checkbox--checked":r}},r&&a("dropi-icon",{name:"Check",iconWidth:"10px",iconHeight:"10px",color:"Neutral-White"})),a("span",{class:"city-label"},e.label))}))))))))}static get watchers(){return{options:[{optionsChanged:0}],selectedCities:[{selectedChanged:0}]}}static get style(){return":host{display:block;width:100%;position:relative}*,*::before,*::after{box-sizing:border-box}.city-selector{position:relative;width:100%}.selector-trigger{width:100%;min-height:44px;padding:6px 12px;border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);background:var(--Neutral-White, #ffffff);display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;text-align:left;font-family:inherit;transition:border-color 0.15s}.selector-trigger:hover:not(:disabled){border-color:var(--Gray-Gray-300, #a3abbf)}.selector-trigger:focus{outline:none;border-color:var(--Info-Info-500, #50a5f1)}.city-selector--disabled .selector-trigger{background:var(--Gray-Gray-50, #f7f8fa);border-color:var(--Gray-Gray-100, #e6eaf2);cursor:not-allowed;opacity:0.6}.chips-area{display:flex;flex-wrap:wrap;gap:4px;flex:1;min-height:26px;align-items:center}.placeholder{color:var(--Gray-Gray-400, #858ea6);font-size:var(--font-size-s, 14px)}.chip{display:inline-flex;align-items:center;gap:4px;background:var(--Primary-Primary-50, #fff8f0);border:1px solid var(--Primary-Primary-200, #fcd5a8);border-radius:var(--Border-1, 4px);padding:2px 6px;font-size:var(--font-size-xs, 12px);color:var(--Primary-Primary-700, #b85c00)}.chip-remove{background:none;border:none;cursor:pointer;padding:0;display:flex;align-items:center}.dropdown{position:absolute;top:calc(100% + 4px);left:0;right:0;background:var(--Neutral-White, #ffffff);border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);box-shadow:0 8px 24px rgba(0, 0, 0, 0.10);z-index:200;overflow:hidden}.search-wrap{padding:10px 12px;border-bottom:1px solid var(--Gray-Gray-100, #e6eaf2)}.search-field{position:relative;display:flex;align-items:center}.search-input{width:100%;height:36px;padding:0 36px 0 12px;border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);font-size:var(--font-size-s, 14px);font-family:inherit;color:var(--Gray-Gray-700, #32394d);background:var(--Gray-Gray-50, #f7f8fa);outline:none;transition:border-color 0.15s}.search-input:focus{border-color:var(--Info-Info-500, #50a5f1);background:var(--Neutral-White, #ffffff)}.search-input::placeholder{color:var(--Gray-Gray-400, #858ea6)}.search-icon{position:absolute;right:10px;display:flex;align-items:center;pointer-events:none}.options-list{max-height:280px;overflow-y:auto;background:var(--Neutral-White, #ffffff)}.options-list::-webkit-scrollbar{width:6px}.options-list::-webkit-scrollbar-track{background:transparent}.options-list::-webkit-scrollbar-thumb{background:var(--Gray-Gray-200, #c3c9d9);border-radius:4px}.group-label{padding:14px 16px 8px;font-size:var(--font-size-m, 16px);font-weight:var(--font-weight-bold, 700);color:var(--Gray-Gray-800, #1f2433);background:var(--Neutral-White, #ffffff)}.city-option{padding:10px 16px;display:flex;align-items:center;gap:12px;cursor:pointer;font-size:var(--font-size-s, 14px);color:var(--Gray-Gray-700, #32394d);background:var(--Neutral-White, #ffffff);transition:background 0.1s;user-select:none}.city-option:hover{background:var(--Gray-Gray-50, #f7f8fa)}.city-option--selected .city-label{color:var(--Gray-Gray-800, #1f2433);font-weight:var(--font-weight-medium, 500)}.checkbox{width:22px;height:22px;border:1.5px solid var(--Gray-Gray-300, #c3c9d9);border-radius:var(--Border-1, 6px);background:var(--Neutral-White, #ffffff);display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:border-color 0.15s, background 0.15s}.checkbox--checked{border-color:var(--Primary-Primary-500, #f49a3d);background:var(--Primary-Primary-500, #f49a3d)}.city-label{flex:1}.no-results{padding:20px 16px;text-align:center;color:var(--Gray-Gray-400, #858ea6);font-size:var(--font-size-s, 14px)}"}},[513,"dropi-city-selector",{options:[1],selectedCities:[1025,"selected-cities"],placeholder:[1],disabled:[4],isOpen:[32],selected:[32],parsedOptions:[32],searchTerm:[32]},[[4,"click","handleDocClick"]],{options:[{optionsChanged:0}],selectedCities:[{selectedChanged:0}]}]);function c(){"undefined"!=typeof customElements&&["dropi-city-selector","dropi-icon"].forEach((r=>{switch(r){case"dropi-city-selector":customElements.get(e(r))||customElements.define(e(r),s);break;case"dropi-icon":customElements.get(e(r))||o()}}))}c();const n=s,d=c;export{n as DropiCitySelector,d as defineCustomElement}
|