@dropi/ui 0.1.37 → 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 +4 -4
- package/dist/cjs/dropi-breadcrumb.cjs.entry.js +4 -4
- 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 +4 -4
- 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 +4 -4
- package/dist/cjs/dropi-icon.cjs.entry.js +33 -21
- 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 +3 -3
- package/dist/cjs/dropi-input_3.cjs.entry.js +56 -26
- package/dist/cjs/dropi-languages-selector.cjs.entry.js +5 -5
- 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 +5 -5
- package/dist/cjs/dropi-modal.cjs.entry.js +38 -33
- package/dist/cjs/dropi-navbar.cjs.entry.js +7 -7
- package/dist/cjs/dropi-otp-send-code.cjs.entry.js +43 -20
- 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 +55 -27
- package/dist/cjs/dropi-sidebar.cjs.entry.js +8 -8
- 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 +2 -2
- package/dist/cjs/dropi-switch.cjs.entry.js +5 -5
- package/dist/cjs/dropi-table.cjs.entry.js +41 -33
- package/dist/cjs/dropi-tabs.cjs.entry.js +6 -6
- 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 +3 -3
- 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 +4 -4
- 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-banner-external/dropi-banner-external.js +1 -1
- package/dist/collection/components/dropi-breadcrumb/dropi-breadcrumb.js +2 -2
- 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-city-selector/dropi-city-selector.js +2 -2
- 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 +2 -2
- 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 -2
- package/dist/collection/components/dropi-icon/dropi-icon.js +59 -27
- 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-image-overlay/dropi-image-overlay.js +1 -1
- package/dist/collection/components/dropi-input/dropi-input.css +13 -5
- package/dist/collection/components/dropi-input/dropi-input.js +25 -23
- package/dist/collection/components/dropi-languages-selector/dropi-languages-selector.js +5 -5
- package/dist/collection/components/dropi-logo/dropi-logo.js +1 -1
- package/dist/collection/components/dropi-media-player/dropi-media-player.js +2 -2
- package/dist/collection/components/dropi-modal/dropi-modal.css +12 -6
- package/dist/collection/components/dropi-modal/dropi-modal.js +50 -45
- package/dist/collection/components/dropi-navbar/dropi-navbar.js +2 -2
- package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.js +77 -19
- 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 +90 -30
- package/dist/collection/components/dropi-sidebar/dropi-sidebar.js +8 -8
- package/dist/collection/components/dropi-steps/dropi-steps.js +1 -1
- package/dist/collection/components/dropi-switch/dropi-switch.js +5 -5
- package/dist/collection/components/dropi-table/dropi-table.js +40 -32
- package/dist/collection/components/dropi-tabs/dropi-tabs.js +6 -6
- 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 +2 -2
- 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 +2 -2
- 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-2YgFOle2.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-BDYn1JDe.js +1 -0
- package/dist/components/p-BGb7xtJN.js +1 -0
- package/dist/components/p-BHV6BYSS.js +1 -0
- package/dist/components/p-BKTMBQVw.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-Btsw7sPN.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-CgRY3n1J.js +1 -0
- package/dist/components/p-Cjq4FTif.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-DfdhNT9F.js +1 -0
- package/dist/components/p-Dgeh9Yg8.js +1 -0
- package/dist/components/p-DlaiuH5K.js +1 -0
- package/dist/components/p-DvLWbKsf.js +1 -0
- package/dist/components/p-DvaFep4Y.js +1 -0
- package/dist/components/p-Dz9uN5Nw.js +1 -0
- package/dist/components/p-ETg0qC-7.js +1 -0
- package/dist/components/p-FAhcOdS-.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 +58 -0
- package/dist/dropi-ui/dropi-accordion-item.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-accordion.entry.js +20 -0
- package/dist/dropi-ui/dropi-accordion.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-alert-legacy.entry.js +40 -0
- package/dist/dropi-ui/dropi-alert-legacy.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-alert-modal.entry.js +133 -0
- package/dist/dropi-ui/dropi-alert-modal.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-alert.entry.js +65 -0
- package/dist/dropi-ui/dropi-alert.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-avatars.entry.js +32 -0
- package/dist/dropi-ui/dropi-avatars.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-badge-legacy.entry.js +31 -0
- package/dist/dropi-ui/dropi-badge-legacy.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-badge.entry.js +38 -0
- package/dist/dropi-ui/dropi-badge.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-banner-external.entry.js +64 -0
- package/dist/dropi-ui/dropi-banner-external.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-breadcrumb.entry.js +49 -0
- package/dist/dropi-ui/dropi-breadcrumb.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-button.entry.js +88 -0
- package/dist/dropi-ui/dropi-button.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-card-checkbox.entry.js +49 -0
- package/dist/dropi-ui/dropi-card-checkbox.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-card-product.entry.js +79 -0
- package/dist/dropi-ui/dropi-card-product.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-card-section.entry.js +39 -0
- package/dist/dropi-ui/dropi-card-section.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-carousel.entry.js +154 -0
- package/dist/dropi-ui/dropi-carousel.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-checkbox-selection-list.entry.js +74 -0
- package/dist/dropi-ui/dropi-checkbox-selection-list.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-checkbox.entry.js +37 -0
- package/dist/dropi-ui/dropi-checkbox.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-chips.entry.js +31 -0
- package/dist/dropi-ui/dropi-chips.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-city-selector.entry.js +105 -0
- package/dist/dropi-ui/dropi-city-selector.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-color-picker.entry.js +320 -0
- package/dist/dropi-ui/dropi-color-picker.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-country-flags.entry.js +38 -0
- package/dist/dropi-ui/dropi-country-flags.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-country-selector.entry.js +198 -0
- package/dist/dropi-ui/dropi-country-selector.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-date-picker-range.entry.js +116 -0
- package/dist/dropi-ui/dropi-date-picker-range.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-date-picker.entry.js +224 -0
- package/dist/dropi-ui/dropi-date-picker.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-drawer.entry.js +80 -0
- package/dist/dropi-ui/dropi-drawer.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-dropdown.entry.js +66 -0
- package/dist/dropi-ui/dropi-dropdown.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-empty-state.entry.js +37 -0
- package/dist/dropi-ui/dropi-empty-state.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-favorite-button.entry.js +28 -0
- package/dist/dropi-ui/dropi-favorite-button.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-file-upload-progress-bar.entry.js +78 -0
- package/dist/dropi-ui/dropi-file-upload-progress-bar.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-file-upload.entry.js +238 -0
- package/dist/dropi-ui/dropi-file-upload.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-icon.entry.js +80 -0
- package/dist/dropi-ui/dropi-icon.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-ilustration-icon.entry.js +40 -0
- package/dist/dropi-ui/dropi-ilustration-icon.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-image-miniature.entry.js +45 -0
- package/dist/dropi-ui/dropi-image-miniature.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-image-overlay.entry.js +64 -0
- package/dist/dropi-ui/dropi-image-overlay.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-input.entry.js +266 -0
- package/dist/dropi-ui/dropi-input.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-languages-selector.entry.js +62 -0
- package/dist/dropi-ui/dropi-languages-selector.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-logo.entry.js +38 -0
- package/dist/dropi-ui/dropi-logo.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-lottie-loader.entry.js +28 -0
- package/dist/dropi-ui/dropi-lottie-loader.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-media-player.entry.js +193 -0
- package/dist/dropi-ui/dropi-media-player.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-modal.entry.js +148 -0
- package/dist/dropi-ui/dropi-modal.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-navbar.entry.js +55 -0
- package/dist/dropi-ui/dropi-navbar.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-otp-send-code.entry.js +116 -0
- package/dist/dropi-ui/dropi-otp-send-code.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-paginator.entry.js +70 -0
- package/dist/dropi-ui/dropi-paginator.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-phone-input.entry.js +198 -0
- package/dist/dropi-ui/dropi-phone-input.entry.js.map +1 -0
- 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 +48 -0
- package/dist/dropi-ui/dropi-radio-button.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-radio-selection-list.entry.js +61 -0
- package/dist/dropi-ui/dropi-radio-selection-list.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-read-more.entry.js +41 -0
- package/dist/dropi-ui/dropi-read-more.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-search.entry.js +125 -0
- package/dist/dropi-ui/dropi-search.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-select.entry.js +411 -0
- package/dist/dropi-ui/dropi-select.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-sidebar.entry.js +79 -0
- package/dist/dropi-ui/dropi-sidebar.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-simple-stepper.entry.js +54 -0
- package/dist/dropi-ui/dropi-simple-stepper.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-skeleton.entry.js +58 -0
- package/dist/dropi-ui/dropi-skeleton.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-steps.entry.js +53 -0
- package/dist/dropi-ui/dropi-steps.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-switch.entry.js +31 -0
- package/dist/dropi-ui/dropi-switch.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-table.entry.js +308 -0
- package/dist/dropi-ui/dropi-table.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-tabs.entry.js +52 -0
- package/dist/dropi-ui/dropi-tabs.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-tag-type-product.entry.js +20 -0
- package/dist/dropi-ui/dropi-tag-type-product.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-tag.entry.js +97 -0
- package/dist/dropi-ui/dropi-tag.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-text-area.entry.js +135 -0
- package/dist/dropi-ui/dropi-text-area.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-time-line.entry.js +35 -0
- package/dist/dropi-ui/dropi-time-line.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-toast.entry.js +57 -0
- package/dist/dropi-ui/dropi-toast.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-tooltip-v2.entry.js +132 -0
- package/dist/dropi-ui/dropi-tooltip-v2.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-tooltip.entry.js +22 -0
- package/dist/dropi-ui/dropi-tooltip.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-ui.esm.js +1 -1
- package/dist/dropi-ui/dropi-ui.esm.js.map +1 -0
- package/dist/dropi-ui/dropi-vertical-steps.entry.js +56 -0
- package/dist/dropi-ui/dropi-vertical-steps.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-youtube-lazy-video.entry.js +34 -0
- package/dist/dropi-ui/dropi-youtube-lazy-video.entry.js.map +1 -0
- package/dist/dropi-ui/index-Cvp2LQOM.js +4585 -0
- package/dist/dropi-ui/index-Cvp2LQOM.js.map +1 -0
- package/dist/dropi-ui/index.esm.js.map +1 -0
- 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-db38bf16.entry.js → p-01e4fe42.entry.js} +1 -1
- 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-099f4475.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-17b16a74.entry.js +1 -0
- package/dist/dropi-ui/p-17c53e19.entry.js +1 -0
- package/dist/dropi-ui/p-1a07b3a6.entry.js +1 -0
- package/dist/dropi-ui/p-1cd4d630.entry.js +1 -0
- package/dist/dropi-ui/p-1ce00757.entry.js +1 -0
- package/dist/dropi-ui/p-1d75dff6.entry.js +1 -0
- package/dist/dropi-ui/p-20a6a2aa.entry.js +1 -0
- package/dist/dropi-ui/p-229dddb0.entry.js +1 -0
- package/dist/dropi-ui/p-256bf069.entry.js +1 -0
- package/dist/dropi-ui/p-25f0c2c9.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-2d9978c1.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-35b37d1a.entry.js +1 -0
- package/dist/dropi-ui/p-37bdbadc.entry.js +1 -0
- package/dist/dropi-ui/p-38ea66e4.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-4e401fbc.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-53d2905c.entry.js +1 -0
- package/dist/dropi-ui/p-54bfb072.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-5915d227.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-650a7679.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-719a01cb.entry.js +1 -0
- package/dist/dropi-ui/p-72ec96d0.entry.js +1 -0
- package/dist/dropi-ui/p-7369b3b4.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-e3ad21f8.entry.js → p-77cd2fcb.entry.js} +1 -1
- 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-7a18b7a0.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-83887880.entry.js +1 -0
- package/dist/dropi-ui/p-83dbc407.entry.js +1 -0
- package/dist/dropi-ui/p-84019422.entry.js +1 -0
- package/dist/dropi-ui/p-85c637bd.entry.js +1 -0
- package/dist/dropi-ui/{p-e6e766ed.entry.js → p-87cc4dcd.entry.js} +1 -1
- package/dist/dropi-ui/p-899089f0.entry.js +1 -0
- package/dist/dropi-ui/p-8b8dc399.entry.js +1 -0
- package/dist/dropi-ui/p-8c107dbe.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-929bc2b6.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-9ac8caea.entry.js +1 -0
- package/dist/dropi-ui/p-9b24e8fd.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-9c73b4ce.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-a580e8c8.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-a9f93e82.entry.js +1 -0
- package/dist/dropi-ui/p-aa0f5964.entry.js +1 -0
- package/dist/dropi-ui/p-aadd5863.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-b25faf92.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-b605d3d9.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-bbb5e0ae.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-c4d2881d.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-d1aeb373.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-d724ced4.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-dc53a798.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-e1b3c9a3.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-e3c120ba.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-edf796ee.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-f2527a45.entry.js +1 -0
- package/dist/dropi-ui/p-f4bd8568.entry.js +1 -0
- package/dist/dropi-ui/p-f6c9057d.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-f7fd7832.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-f9888cea.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/dropi-ui/p-ffd415a2.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 +4 -4
- package/dist/esm/dropi-breadcrumb.entry.js +4 -4
- 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 +4 -4
- 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 +4 -4
- package/dist/esm/dropi-icon.entry.js +33 -21
- 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 +3 -3
- package/dist/esm/dropi-input_3.entry.js +56 -26
- package/dist/esm/dropi-languages-selector.entry.js +5 -5
- 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 +5 -5
- package/dist/esm/dropi-modal.entry.js +38 -33
- package/dist/esm/dropi-navbar.entry.js +7 -7
- package/dist/esm/dropi-otp-send-code.entry.js +43 -20
- 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 +55 -27
- package/dist/esm/dropi-sidebar.entry.js +8 -8
- 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 +2 -2
- package/dist/esm/dropi-switch.entry.js +5 -5
- package/dist/esm/dropi-table.entry.js +41 -33
- package/dist/esm/dropi-tabs.entry.js +6 -6
- 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 +3 -3
- 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 +4 -4
- 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 +8 -9
- package/dist/types/components/dropi-input/dropi-input.d.ts +5 -5
- package/dist/types/components/dropi-languages-selector/dropi-languages-selector.d.ts +1 -1
- package/dist/types/components/dropi-modal/dropi-modal.d.ts +10 -9
- package/dist/types/components/dropi-otp-send-code/dropi-otp-send-code.d.ts +8 -2
- 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 +7 -7
- 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 +336 -199
- package/hydrate/index.js +570 -401
- package/hydrate/index.mjs +570 -401
- package/package.json +1 -1
- package/scripts/setup.js +25 -4
- package/dist/components/p-B_Ace02i.js +0 -1
- package/dist/components/p-BrjO_JXp.js +0 -1
- package/dist/components/p-BwhxWL4p.js +0 -1
- package/dist/components/p-Bz2jXX3R.js +0 -1
- package/dist/components/p-D-vQQQNz.js +0 -1
- package/dist/components/p-D13d88W3.js +0 -1
- package/dist/components/p-I3w7xF7Q.js +0 -1
- package/dist/components/p-o5gyrbbD.js +0 -1
- package/dist/dropi-ui/p-00e5a2de.entry.js +0 -1
- package/dist/dropi-ui/p-0188e07a.entry.js +0 -1
- package/dist/dropi-ui/p-02710049.entry.js +0 -1
- package/dist/dropi-ui/p-18adf694.entry.js +0 -1
- package/dist/dropi-ui/p-1a3619c3.entry.js +0 -1
- package/dist/dropi-ui/p-25640777.entry.js +0 -1
- package/dist/dropi-ui/p-2674d901.entry.js +0 -1
- package/dist/dropi-ui/p-2af538b9.entry.js +0 -1
- package/dist/dropi-ui/p-3013f3b8.entry.js +0 -1
- package/dist/dropi-ui/p-3321ca70.entry.js +0 -1
- package/dist/dropi-ui/p-33d242ec.entry.js +0 -1
- package/dist/dropi-ui/p-39af6478.entry.js +0 -1
- package/dist/dropi-ui/p-446a481d.entry.js +0 -1
- package/dist/dropi-ui/p-50e0d44f.entry.js +0 -1
- package/dist/dropi-ui/p-5c0bd7c2.entry.js +0 -1
- package/dist/dropi-ui/p-5ddf6e93.entry.js +0 -1
- package/dist/dropi-ui/p-5fb33ae4.entry.js +0 -1
- package/dist/dropi-ui/p-665ef7ba.entry.js +0 -1
- package/dist/dropi-ui/p-66b80371.entry.js +0 -1
- package/dist/dropi-ui/p-7bfc1c27.entry.js +0 -1
- package/dist/dropi-ui/p-7c0d2edf.entry.js +0 -1
- package/dist/dropi-ui/p-7eb27836.entry.js +0 -1
- package/dist/dropi-ui/p-8bf5d8ee.entry.js +0 -1
- package/dist/dropi-ui/p-9212f544.entry.js +0 -1
- package/dist/dropi-ui/p-955e52f8.entry.js +0 -1
- package/dist/dropi-ui/p-976a15e3.entry.js +0 -1
- package/dist/dropi-ui/p-a1c93e55.entry.js +0 -1
- package/dist/dropi-ui/p-a232c6a7.entry.js +0 -1
- package/dist/dropi-ui/p-a822a23e.entry.js +0 -1
- package/dist/dropi-ui/p-af8e2157.entry.js +0 -1
- package/dist/dropi-ui/p-c3614c4a.entry.js +0 -1
- package/dist/dropi-ui/p-cc527d91.entry.js +0 -1
- package/dist/dropi-ui/p-cdde481b.entry.js +0 -1
- package/dist/dropi-ui/p-dd5d8b1b.entry.js +0 -1
- package/dist/dropi-ui/p-efc2fc35.entry.js +0 -1
- package/dist/dropi-ui/p-f41cd9b5.entry.js +0 -1
- package/dist/dropi-ui/p-fa3d0267.entry.js +0 -1
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-Cvp2LQOM.js';
|
|
2
|
+
|
|
3
|
+
const dropiTagCss = () => `:host{display:inline-flex}*,*::before,*::after{box-sizing:border-box}.container-chips{display:flex;align-items:center;justify-content:center}.tags{display:inline-flex;padding:4px 8px;justify-content:center;align-items:center;gap:4px;border-radius:var(--Border-5, 9999px);overflow:hidden;text-align:center;text-overflow:ellipsis;font-size:var(--font-size-xs, 12px);font-weight:var(--font-weight-medium, 500);line-height:var(--lineheight-large, 150%);animation:fade-in 200ms ease-out}.tags.dot-variant,.tags.text-variant{padding:0;gap:8px;background-color:transparent !important;line-height:normal}.dot-indicator{width:10px;height:10px;border-radius:50%;flex-shrink:0}@keyframes fade-in{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:scale(1)}}`;
|
|
4
|
+
|
|
5
|
+
const DropiTag = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
/** tag (default) | dot (status dot + text) | text (colored text only) */
|
|
10
|
+
variant = 'tag';
|
|
11
|
+
/** primary (filled) | secondary (soft) */
|
|
12
|
+
type = 'primary';
|
|
13
|
+
/** Color state of the tag */
|
|
14
|
+
state = 'default';
|
|
15
|
+
/** Whether to show the icon */
|
|
16
|
+
showIcon = false;
|
|
17
|
+
/** Icon name from the sprite */
|
|
18
|
+
icon = '';
|
|
19
|
+
/** Label text */
|
|
20
|
+
text = '';
|
|
21
|
+
colorMap = {
|
|
22
|
+
default: 'Primary-Primary',
|
|
23
|
+
success: 'Success-Success',
|
|
24
|
+
info: 'Info-Info',
|
|
25
|
+
warning: 'Warning-Warning',
|
|
26
|
+
error: 'Error-Error',
|
|
27
|
+
legacy: 'Gray-Gray',
|
|
28
|
+
};
|
|
29
|
+
propsChanged() { }
|
|
30
|
+
get bgColor() {
|
|
31
|
+
const base = this.colorMap[this.state];
|
|
32
|
+
if (this.type === 'primary')
|
|
33
|
+
return `var(--${base}-500)`;
|
|
34
|
+
const shade = this.state === 'default' || this.state === 'legacy' ? '-100' : '-50';
|
|
35
|
+
return `var(--${base}${shade})`;
|
|
36
|
+
}
|
|
37
|
+
get textColor() {
|
|
38
|
+
const base = this.colorMap[this.state];
|
|
39
|
+
if (this.variant === 'text')
|
|
40
|
+
return this.dotColor;
|
|
41
|
+
if (this.variant === 'dot' || this.showIcon) {
|
|
42
|
+
return 'var(--Gray-Gray-500)';
|
|
43
|
+
}
|
|
44
|
+
if (this.type === 'primary')
|
|
45
|
+
return `var(--Neutral-White)`;
|
|
46
|
+
const shade = this.state === 'default' ? '-500' : '-700';
|
|
47
|
+
return `var(--${base}${shade})`;
|
|
48
|
+
}
|
|
49
|
+
get dotColor() {
|
|
50
|
+
const base = this.colorMap[this.state];
|
|
51
|
+
return `var(--${base}-500)`;
|
|
52
|
+
}
|
|
53
|
+
get fontWeight() {
|
|
54
|
+
if (this.type === 'secondary' && !this.showIcon)
|
|
55
|
+
return '300';
|
|
56
|
+
return '500';
|
|
57
|
+
}
|
|
58
|
+
get iconColor() {
|
|
59
|
+
if (this.type === 'primary')
|
|
60
|
+
return 'Neutral-White';
|
|
61
|
+
const base = this.colorMap[this.state];
|
|
62
|
+
const shade = this.state === 'default' ? '-500' : '-700';
|
|
63
|
+
return `${base}${shade}`;
|
|
64
|
+
}
|
|
65
|
+
get hasContent() {
|
|
66
|
+
return typeof this.text === 'string' && this.text.trim().length > 0;
|
|
67
|
+
}
|
|
68
|
+
render() {
|
|
69
|
+
return (h("div", { key: '6a50111c0057b7ef3380dde9f639e9409b7fbea9', class: "container-chips" }, h("div", { key: 'f2f78c3682aa2e8bef5f3f1b43a1729cae8ae293', class: {
|
|
70
|
+
tags: true,
|
|
71
|
+
'icon-only': this.showIcon && !this.hasContent,
|
|
72
|
+
'dot-variant': this.variant === 'dot',
|
|
73
|
+
'text-variant': this.variant === 'text'
|
|
74
|
+
}, style: {
|
|
75
|
+
backgroundColor: (this.variant === 'dot' || this.variant === 'text') ? 'transparent' : this.bgColor,
|
|
76
|
+
color: this.textColor,
|
|
77
|
+
fontWeight: this.fontWeight
|
|
78
|
+
} }, 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))));
|
|
79
|
+
}
|
|
80
|
+
static get watchers() { return {
|
|
81
|
+
"type": [{
|
|
82
|
+
"propsChanged": 0
|
|
83
|
+
}],
|
|
84
|
+
"state": [{
|
|
85
|
+
"propsChanged": 0
|
|
86
|
+
}],
|
|
87
|
+
"variant": [{
|
|
88
|
+
"propsChanged": 0
|
|
89
|
+
}]
|
|
90
|
+
}; }
|
|
91
|
+
};
|
|
92
|
+
DropiTag.style = dropiTagCss();
|
|
93
|
+
|
|
94
|
+
export { DropiTag as dropi_tag };
|
|
95
|
+
//# sourceMappingURL=dropi-tag.entry.esm.js.map
|
|
96
|
+
|
|
97
|
+
//# sourceMappingURL=dropi-tag.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"dropi-tag.entry.js","mapp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UAAU;AAC9C,gBAAA,aAAa,EAAE,IAAI,CAAC,OAAO,KAAK,KAAK;AACrC,gBAAA,cAAc,EAAE,IAAI,CAAC,OAAO,KAAK;AAClC,aAAA,EACD,KAAK,EAAE;gBACL,eAAe,EAAE,CAAC,IAAI,CAAC,OAAO,KAAK,KAAK,IAAI,IAAI,CAAC,OAAO,KAAK,MAAM,IAAI,aAAa,GAAG,IAAI,CAAC,OAAO;gBACnG,KAAK,EAAE,IAAI,CAAC,SAAS;gBACrB,UAAU,EAAE,IAAI,CAAC;aAClB,EAAA,EAEA,IAAI,CAAC,OAAO,KAAK,KAAK,KACrB,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAC,eAAe,EAAC,KAAK,EAAE,EAAE,eAAe,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAA,CAAQ,CAC7E,EACA,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,IAAI,KACzB,CAAA,CAAA,YAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,KAAK,EAAC,WAAW,EACjB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,SAAS,EAAC,MAAM,EAChB,UAAU,EAAC,MAAM,EACjB,KAAK,EAAE,IAAI,CAAC,OAAO,KAAK,KAAK,GAAG,eAAe,GAAG,IAAI,CAAC,SAAS,EAAA,CAChE,CACH,EACA,IAAI,CAAC,UAAU,IAAI,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EAAO,IAAI,CAAC,IAAI,CAAQ,CACxC,CACF;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/dropi-tag/dropi-tag.css?tag=dropi-tag&encapsulation=shadow","src/components/dropi-tag/dropi-tag.tsx"],"sourcesContent":[":host {\n display: inline-flex;\n}\n\n*, *::before, *::after { box-sizing: border-box; }\n\n.container-chips {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.tags {\n display: inline-flex;\n padding: 4px 8px;\n justify-content: center;\n align-items: center;\n gap: 4px;\n border-radius: var(--Border-5, 9999px);\n overflow: hidden;\n text-align: center;\n text-overflow: ellipsis;\n font-size: var(--font-size-xs, 12px);\n font-weight: var(--font-weight-medium, 500);\n line-height: var(--lineheight-large, 150%);\n /* Animation */\n animation: fade-in 200ms ease-out;\n}\n\n.tags.dot-variant,\n.tags.text-variant {\n padding: 0;\n gap: 8px;\n background-color: transparent !important;\n line-height: normal;\n}\n\n.dot-indicator {\n width: 10px;\n height: 10px;\n border-radius: 50%;\n flex-shrink: 0;\n}\n\n@keyframes fade-in {\n from { opacity: 0; transform: scale(0.8); }\n to { opacity: 1; transform: scale(1); }\n}\n","import { Component, Prop, Watch, h } from '@stencil/core';\n\nexport type TagState = 'default' | 'success' | 'info' | 'warning' | 'error' | 'legacy';\nexport type TagType = 'primary' | 'secondary';\nexport type TagVariant = 'tag' | 'dot' | 'text';\n\n/**\n * @component dropi-tag\n * Colored tag/chip for statuses, categories, and labels.\n */\n@Component({\n tag: 'dropi-tag',\n styleUrl: 'dropi-tag.css',\n shadow: true,\n})\nexport class DropiTag {\n /** tag (default) | dot (status dot + text) | text (colored text only) */\n @Prop({ reflect: true }) variant: TagVariant = 'tag';\n /** primary (filled) | secondary (soft) */\n @Prop({ reflect: true }) type: TagType = 'primary';\n /** Color state of the tag */\n @Prop({ reflect: true }) state: TagState = 'default';\n /** Whether to show the icon */\n @Prop() showIcon: boolean = false;\n /** Icon name from the sprite */\n @Prop({ reflect: true }) icon: string = '';\n /** Label text */\n @Prop({ reflect: true }) text: string = '';\n\n private readonly colorMap: Record<TagState, string> = {\n default: 'Primary-Primary',\n success: 'Success-Success',\n info: 'Info-Info',\n warning: 'Warning-Warning',\n error: 'Error-Error',\n legacy: 'Gray-Gray',\n };\n\n @Watch('type') @Watch('state') @Watch('variant')\n propsChanged() {}\n\n private get bgColor(): string {\n const base = this.colorMap[this.state];\n if (this.type === 'primary') return `var(--${base}-500)`;\n const shade = this.state === 'default' || this.state === 'legacy' ? '-100' : '-50';\n return `var(--${base}${shade})`;\n }\n\n private get textColor(): string {\n const base = this.colorMap[this.state];\n \n if (this.variant === 'text') return this.dotColor;\n \n if (this.variant === 'dot' || this.showIcon) {\n return 'var(--Gray-Gray-500)';\n }\n\n if (this.type === 'primary') return `var(--Neutral-White)`;\n\n const shade = this.state === 'default' ? '-500' : '-700';\n return `var(--${base}${shade})`;\n }\n\n private get dotColor(): string {\n const base = this.colorMap[this.state];\n return `var(--${base}-500)`;\n }\n\n private get fontWeight(): string {\n if (this.type === 'secondary' && !this.showIcon) return '300';\n return '500';\n }\n\n private get iconColor(): string {\n if (this.type === 'primary') return 'Neutral-White';\n const base = this.colorMap[this.state];\n const shade = this.state === 'default' ? '-500' : '-700';\n return `${base}${shade}`;\n }\n\n private get hasContent(): boolean {\n return typeof this.text === 'string' && this.text.trim().length > 0;\n }\n\n render() {\n return (\n <div class=\"container-chips\">\n <div\n class={{ \n tags: true, \n 'icon-only': this.showIcon && !this.hasContent,\n 'dot-variant': this.variant === 'dot',\n 'text-variant': this.variant === 'text'\n }}\n style={{ \n backgroundColor: (this.variant === 'dot' || this.variant === 'text') ? 'transparent' : this.bgColor, \n color: this.textColor,\n fontWeight: this.fontWeight \n }}\n >\n {this.variant === 'dot' && (\n <div class=\"dot-indicator\" style={{ backgroundColor: this.dotColor }}></div>\n )}\n {this.showIcon && this.icon && (\n <dropi-icon\n class=\"file-icon\"\n name={this.icon}\n iconWidth=\"16px\"\n iconHeight=\"16px\"\n color={this.variant === 'dot' ? 'Gray-Gray-500' : this.iconColor}\n />\n )}\n {this.hasContent && <span>{this.text}</span>}\n </div>\n </div>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { r as registerInstance, d as createEvent, h } from './index-Cvp2LQOM.js';
|
|
2
|
+
|
|
3
|
+
const dropiTextAreaCss = () => `:host{display:flex;flex-direction:column;width:100%}*,*::before,*::after{box-sizing:border-box}.textarea-wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:4px}.textarea-wrapper label{font-size:var(--font-size-xs, 10px);font-weight:var(--font-weight-regular, 400);color:var(--Gray-Gray-600, #475066)}.asterisk{color:var(--Error-Error-500, #f46a6b)}.textarea-container{position:relative;display:flex;flex-direction:column}textarea.form-control{box-sizing:border-box;width:100%;flex:1;overflow:auto;padding:var(--Size-3, 12px);border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);font-size:var(--font-size-s, 12px);font-family:inherit;color:var(--Gray-Gray-700, #32394d);background:var(--Neutral-White, #ffffff);transition:border-color 0.3s ease-in-out;outline:none;appearance:none}textarea.form-control:focus{border-color:var(--Info-Info-500, #50a5f1)}textarea.form-control:focus::placeholder{color:var(--Gray-Gray-400, #858ea6)}textarea.form-control-valid{border-color:var(--Gray-Gray-400, #858ea6) !important;color:var(--Gray-Gray-600, #475066)}textarea.form-control-invalid{border-color:var(--Error-Error-500, #f46a6b) !important;color:var(--Gray-Gray-600, #475066)}textarea.form-control:disabled{border-color:var(--Gray-Gray-200, #c3c9d9) !important;color:var(--Gray-Gray-400, #858ea6);background-color:var(--Gray-Gray-50, #f7f8fa);cursor:not-allowed}.char-counter{position:absolute;bottom:10px;right:16px;font-size:var(--font-size-xs, 10px);color:var(--Gray-Gray-500, #69738c);pointer-events:none}.form-control-helper{display:flex;gap:4px;align-items:center}.form-control-helper span{display:block;color:var(--Gray-Gray-600, #475066);font-size:var(--font-size-xs, 10px)}.invalid-color{color:var(--Error-Error-500, #f46a6b) !important}`;
|
|
4
|
+
|
|
5
|
+
const DropiTextArea = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.dropiInput = createEvent(this, "dropiInput", 7);
|
|
9
|
+
this.dropiChange = createEvent(this, "dropiChange", 7);
|
|
10
|
+
this.dropiFocus = createEvent(this, "dropiFocus", 7);
|
|
11
|
+
this.dropiBlur = createEvent(this, "dropiBlur", 7);
|
|
12
|
+
if (hostRef.$hostElement$["s-ei"]) {
|
|
13
|
+
this.internals = hostRef.$hostElement$["s-ei"];
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
this.internals = hostRef.$hostElement$.attachInternals();
|
|
17
|
+
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
internals;
|
|
21
|
+
/** Input id. Defaults to label. */
|
|
22
|
+
id = '';
|
|
23
|
+
/** Name for native form submission */
|
|
24
|
+
name = '';
|
|
25
|
+
/** Label shown above the textarea */
|
|
26
|
+
label = '';
|
|
27
|
+
/** Placeholder text */
|
|
28
|
+
placeholder = '';
|
|
29
|
+
/** Current value (controlled) */
|
|
30
|
+
value = '';
|
|
31
|
+
/** Max character length */
|
|
32
|
+
maxLength;
|
|
33
|
+
/** Min character length */
|
|
34
|
+
minLength = 0;
|
|
35
|
+
/** Number of visible rows */
|
|
36
|
+
rows = 4;
|
|
37
|
+
/** Resize behavior */
|
|
38
|
+
resize = 'vertical';
|
|
39
|
+
/** Disable the textarea */
|
|
40
|
+
disabled = false;
|
|
41
|
+
/** Mark as required */
|
|
42
|
+
required = false;
|
|
43
|
+
/** Show the required asterisk */
|
|
44
|
+
showObligatoryAsterisk = false;
|
|
45
|
+
/** Helper / error text below the field */
|
|
46
|
+
textHelper = '';
|
|
47
|
+
/** Mark the field as invalid (consumer-controlled) */
|
|
48
|
+
hasError = false;
|
|
49
|
+
/**
|
|
50
|
+
* Convenience object prop — matches Angular `textAreaProperties: TextAreaProperties`.
|
|
51
|
+
* When provided, its non-null fields override individual props.
|
|
52
|
+
* Note: `formControl` is not supported in web components; use `value` + dropiInput instead.
|
|
53
|
+
*/
|
|
54
|
+
textAreaProperties = null;
|
|
55
|
+
textAreaPropertiesChanged(val) {
|
|
56
|
+
if (!val)
|
|
57
|
+
return;
|
|
58
|
+
if (val.id !== undefined)
|
|
59
|
+
this.id = val.id;
|
|
60
|
+
if (val.label !== undefined)
|
|
61
|
+
this.label = val.label;
|
|
62
|
+
if (val.placeholder !== undefined)
|
|
63
|
+
this.placeholder = val.placeholder;
|
|
64
|
+
if (val.maxLength !== undefined)
|
|
65
|
+
this.maxLength = val.maxLength;
|
|
66
|
+
if (val.minLength !== undefined)
|
|
67
|
+
this.minLength = val.minLength;
|
|
68
|
+
if (val.textHelper !== undefined)
|
|
69
|
+
this.textHelper = val.textHelper;
|
|
70
|
+
if (val.rows !== undefined)
|
|
71
|
+
this.rows = val.rows;
|
|
72
|
+
if (val.resize !== undefined)
|
|
73
|
+
this.resize = val.resize;
|
|
74
|
+
}
|
|
75
|
+
touched = false;
|
|
76
|
+
/** Emitted on every keystroke */
|
|
77
|
+
dropiInput;
|
|
78
|
+
/** Emitted on blur */
|
|
79
|
+
dropiChange;
|
|
80
|
+
dropiFocus;
|
|
81
|
+
dropiBlur;
|
|
82
|
+
valueChanged(val) {
|
|
83
|
+
this.internals.setFormValue(val);
|
|
84
|
+
}
|
|
85
|
+
componentWillLoad() {
|
|
86
|
+
this.internals.setFormValue(this.value ?? '');
|
|
87
|
+
if (this.textAreaProperties)
|
|
88
|
+
this.textAreaPropertiesChanged(this.textAreaProperties);
|
|
89
|
+
}
|
|
90
|
+
handleInput(e) {
|
|
91
|
+
const val = e.target.value;
|
|
92
|
+
this.value = val;
|
|
93
|
+
this.internals.setFormValue(val);
|
|
94
|
+
this.dropiInput.emit(val);
|
|
95
|
+
}
|
|
96
|
+
handleBlur() {
|
|
97
|
+
this.touched = true;
|
|
98
|
+
this.dropiChange.emit(this.value);
|
|
99
|
+
this.dropiBlur.emit();
|
|
100
|
+
}
|
|
101
|
+
get resolvedId() {
|
|
102
|
+
return this.id || this.label;
|
|
103
|
+
}
|
|
104
|
+
get isInvalid() {
|
|
105
|
+
return this.hasError && this.touched;
|
|
106
|
+
}
|
|
107
|
+
get charCount() {
|
|
108
|
+
return this.value?.length ?? 0;
|
|
109
|
+
}
|
|
110
|
+
render() {
|
|
111
|
+
const showAsterisk = this.required && this.showObligatoryAsterisk && !this.disabled;
|
|
112
|
+
const showHelper = this.textHelper || this.isInvalid;
|
|
113
|
+
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: {
|
|
114
|
+
'form-control': true,
|
|
115
|
+
'Body-M-Regular': true,
|
|
116
|
+
'form-control-valid': !this.isInvalid && this.touched && !!this.value,
|
|
117
|
+
'form-control-invalid': this.isInvalid,
|
|
118
|
+
}, 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)))));
|
|
119
|
+
}
|
|
120
|
+
static get formAssociated() { return true; }
|
|
121
|
+
static get watchers() { return {
|
|
122
|
+
"textAreaProperties": [{
|
|
123
|
+
"textAreaPropertiesChanged": 0
|
|
124
|
+
}],
|
|
125
|
+
"value": [{
|
|
126
|
+
"valueChanged": 0
|
|
127
|
+
}]
|
|
128
|
+
}; }
|
|
129
|
+
};
|
|
130
|
+
DropiTextArea.style = dropiTextAreaCss();
|
|
131
|
+
|
|
132
|
+
export { DropiTextArea as dropi_text_area };
|
|
133
|
+
//# sourceMappingURL=dropi-text-area.entry.esm.js.map
|
|
134
|
+
|
|
135
|
+
//# sourceMappingURL=dropi-text-area.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"dropi-text-area.entry.js","mappings":";;AAAA,MAAM,gBAAgB,GAAG,MAAM,CAAC,gwDAAgwD,CAAC;;MC8BpxD,aAAa,GAAA,MAAA;;;;;;;;;;;;;;;AACL,IAAA,SAAS;;IAGH,EAAE,GAAW,EAAE;;IAEhC,IAAI,GAAW,EAAE;;IAEA,KAAK,GAAW,EAAE;;IAElB,WAAW,GAAW,EAAE;;IAExB,KAAK,GAAW,EAAE;;AAElB,IAAA,SAAS;;IAET,SAAS,GAAW,CAAC;;IAErB,IAAI,GAAW,CAAC;;IAEhB,MAAM,GAAe,UAAU;;IAE/B,QAAQ,GAAY,KAAK;;IAEzB,QAAQ,GAAY,KAAK;;IAE1C,sBAAsB,GAAY,KAAK;;IAEtB,UAAU,GAAW,EAAE;;IAExC,QAAQ,GAAY,KAAK;AACjC;;;;AAIG;IACK,kBAAkB,GAA8B,IAAI;AAG5D,IAAA,yBAAyB,CAAC,GAAuB,EAAA;AAC/C,QAAA,IAAI,CAAC,GAAG;YAAE;AACV,QAAA,IAAI,GAAG,CAAC,EAAE,KAAK,SAAS;AAAE,YAAA,IAAI,CAAC,EAAE,GAAG,GAAG,CAAC,EAAE;AAC1C,QAAA,IAAI,GAAG,CAAC,KAAK,KAAK,SAAS;AAAE,YAAA,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC,KAAK;AACnD,QAAA,IAAI,GAAG,CAAC,WAAW,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AAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,KAAK,EAAE,EAAE,eAAe,EAAE,IAAI,CAAC,SAAS,EAAE,EAC1C,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,QAAQ,GAAG,sBAAsB,GAAG,SAAS,EAAE,EAAA,EAEnE,IAAI,CAAC,UAAU,CACX,CACH,CACP,CAEG;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/dropi-text-area/dropi-text-area.css?tag=dropi-text-area&encapsulation=shadow","src/components/dropi-text-area/dropi-text-area.tsx"],"sourcesContent":[":host {\n display: flex;\n flex-direction: column;\n width: 100%;\n}\n\n*, *::before, *::after { box-sizing: border-box; }\n\n.textarea-wrapper {\n position: relative;\n width: 100%;\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n\n.textarea-wrapper label {\n font-size: var(--font-size-xs, 10px);\n font-weight: var(--font-weight-regular, 400);\n color: var(--Gray-Gray-600, #475066);\n}\n\n.asterisk {\n color: var(--Error-Error-500, #f46a6b);\n}\n\n.textarea-container {\n position: relative;\n display: flex;\n flex-direction: column;\n}\n\ntextarea.form-control {\n box-sizing: border-box;\n width: 100%;\n flex: 1;\n overflow: auto;\n padding: var(--Size-3, 12px);\n border: 1px solid var(--Gray-Gray-200, #c3c9d9);\n border-radius: var(--Border-2, 8px);\n font-size: var(--font-size-s, 12px);\n font-family: inherit;\n color: var(--Gray-Gray-700, #32394d);\n background: var(--Neutral-White, #ffffff);\n transition: border-color 0.3s ease-in-out;\n outline: none;\n appearance: none;\n}\n\ntextarea.form-control:focus {\n border-color: var(--Info-Info-500, #50a5f1);\n}\n\ntextarea.form-control:focus::placeholder {\n color: var(--Gray-Gray-400, #858ea6);\n}\n\ntextarea.form-control-valid {\n border-color: var(--Gray-Gray-400, #858ea6) !important;\n color: var(--Gray-Gray-600, #475066);\n}\n\ntextarea.form-control-invalid {\n border-color: var(--Error-Error-500, #f46a6b) !important;\n color: var(--Gray-Gray-600, #475066);\n}\n\ntextarea.form-control:disabled {\n border-color: var(--Gray-Gray-200, #c3c9d9) !important;\n color: var(--Gray-Gray-400, #858ea6);\n background-color: var(--Gray-Gray-50, #f7f8fa);\n cursor: not-allowed;\n}\n\n/* ── Char counter ───────────────────────────────────────────── */\n.char-counter {\n position: absolute;\n bottom: 10px;\n right: 16px;\n font-size: var(--font-size-xs, 10px);\n color: var(--Gray-Gray-500, #69738c);\n pointer-events: none;\n}\n\n/* ── Helper ─────────────────────────────────────────────────── */\n.form-control-helper {\n display: flex;\n gap: 4px;\n align-items: center;\n}\n\n.form-control-helper span {\n display: block;\n color: var(--Gray-Gray-600, #475066);\n font-size: var(--font-size-xs, 10px);\n}\n\n.invalid-color {\n color: var(--Error-Error-500, #f46a6b) !important;\n}\n","import { Component, Prop, State, Event, EventEmitter, AttachInternals, Watch, h } from '@stencil/core';\n\n/**\n * Simplified TextAreaProperties interface (matches Angular `TextAreaProperties`).\n * `formControl` is intentionally excluded — use `value` + dropiInput event instead.\n */\nexport interface TextAreaProperties {\n id?: string;\n label?: string;\n placeholder?: string;\n maxLength?: number;\n minLength?: number;\n textHelper?: string;\n rows?: number;\n resize?: 'none' | 'both' | 'horizontal' | 'vertical';\n}\n\nexport type ResizeMode = 'none' | 'both' | 'horizontal' | 'vertical';\n\n/**\n * @component dropi-text-area\n * Multi-line text area with label, char counter, validation states,\n * helper text, and native form association.\n */\n@Component({\n tag: 'dropi-text-area',\n styleUrl: 'dropi-text-area.css',\n shadow: true,\n formAssociated: true,\n})\nexport class DropiTextArea {\n @AttachInternals() internals: ElementInternals;\n\n /** Input id. Defaults to label. */\n @Prop({ mutable: true }) id: string = '';\n /** Name for native form submission */\n @Prop() name: string = '';\n /** Label shown above the textarea */\n @Prop({ mutable: true }) label: string = '';\n /** Placeholder text */\n @Prop({ mutable: true }) placeholder: string = '';\n /** Current value (controlled) */\n @Prop({ mutable: true }) value: string = '';\n /** Max character length */\n @Prop({ mutable: true }) maxLength: number;\n /** Min character length */\n @Prop({ mutable: true }) minLength: number = 0;\n /** Number of visible rows */\n @Prop({ mutable: true }) rows: number = 4;\n /** Resize behavior */\n @Prop({ mutable: true }) resize: ResizeMode = 'vertical';\n /** Disable the textarea */\n @Prop({ reflect: true }) disabled: boolean = false;\n /** Mark as required */\n @Prop({ reflect: true }) required: boolean = false;\n /** Show the required asterisk */\n @Prop() showObligatoryAsterisk: boolean = false;\n /** Helper / error text below the field */\n @Prop({ mutable: true }) textHelper: string = '';\n /** Mark the field as invalid (consumer-controlled) */\n @Prop() hasError: boolean = false;\n /**\n * Convenience object prop — matches Angular `textAreaProperties: TextAreaProperties`.\n * When provided, its non-null fields override individual props.\n * Note: `formControl` is not supported in web components; use `value` + dropiInput instead.\n */\n @Prop() textAreaProperties: TextAreaProperties | null = null;\n\n @Watch('textAreaProperties')\n textAreaPropertiesChanged(val: TextAreaProperties) {\n if (!val) return;\n if (val.id !== undefined) this.id = val.id;\n if (val.label !== undefined) this.label = val.label;\n if (val.placeholder !== undefined) this.placeholder = val.placeholder;\n if (val.maxLength !== undefined) this.maxLength = val.maxLength;\n if (val.minLength !== undefined) this.minLength = val.minLength;\n if (val.textHelper !== undefined) this.textHelper = val.textHelper;\n if (val.rows !== undefined) this.rows = val.rows;\n if (val.resize !== undefined) this.resize = val.resize;\n }\n\n @State() private touched: boolean = false;\n\n /** Emitted on every keystroke */\n @Event() dropiInput: EventEmitter<string>;\n /** Emitted on blur */\n @Event() dropiChange: EventEmitter<string>;\n @Event() dropiFocus: EventEmitter<void>;\n @Event() dropiBlur: EventEmitter<void>;\n\n @Watch('value')\n valueChanged(val: string) {\n this.internals.setFormValue(val);\n }\n\n componentWillLoad() {\n this.internals.setFormValue(this.value ?? '');\n if (this.textAreaProperties) this.textAreaPropertiesChanged(this.textAreaProperties);\n }\n\n private handleInput(e: InputEvent) {\n const val = (e.target as HTMLTextAreaElement).value;\n this.value = val;\n this.internals.setFormValue(val);\n this.dropiInput.emit(val);\n }\n\n private handleBlur() {\n this.touched = true;\n this.dropiChange.emit(this.value);\n this.dropiBlur.emit();\n }\n\n private get resolvedId(): string {\n return this.id || this.label;\n }\n\n private get isInvalid(): boolean {\n return this.hasError && this.touched;\n }\n\n private get charCount(): number {\n return this.value?.length ?? 0;\n }\n\n render() {\n const showAsterisk = this.required && this.showObligatoryAsterisk && !this.disabled;\n const showHelper = this.textHelper || this.isInvalid;\n\n return (\n <div class=\"textarea-wrapper\">\n\n {this.label && (\n <label\n htmlFor={this.resolvedId}\n style={{ color: this.disabled ? 'var(--Gray-Gray-400)' : 'var(--Gray-Gray-600)' }}\n >\n {this.label}\n {showAsterisk && <span class=\"asterisk\"> *</span>}\n </label>\n )}\n\n <div class=\"textarea-container\">\n <textarea\n id={this.resolvedId}\n class={{\n 'form-control': true,\n 'Body-M-Regular': true,\n 'form-control-valid': !this.isInvalid && this.touched && !!this.value,\n 'form-control-invalid': this.isInvalid,\n }}\n rows={this.rows}\n placeholder={this.placeholder}\n maxLength={this.maxLength}\n minLength={this.minLength}\n disabled={this.disabled}\n required={this.required}\n style={{ resize: this.resize }}\n onInput={(e) => this.handleInput(e as InputEvent)}\n onFocus={() => this.dropiFocus.emit()}\n onBlur={() => this.handleBlur()}\n >\n {this.value}\n </textarea>\n\n {this.maxLength > 0 && (\n <div class=\"char-counter\">\n {this.charCount}/{this.maxLength}\n </div>\n )}\n </div>\n\n {showHelper && (\n <div class=\"form-control-helper\">\n {this.isInvalid && (\n <dropi-icon name=\"Warning-circle\" iconWidth=\"12px\" iconHeight=\"12px\" color=\"Error-Error-500\" />\n )}\n <span\n class={{ 'invalid-color': this.isInvalid }}\n style={{ color: this.disabled ? 'var(--Gray-Gray-400)' : undefined }}\n >\n {this.textHelper}\n </span>\n </div>\n )}\n\n </div>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-Cvp2LQOM.js';
|
|
2
|
+
|
|
3
|
+
const dropiTimeLineCss = () => `:host{display:block}*,*::before,*::after{box-sizing:border-box}.timeline{display:flex;flex-direction:column}.tl-step{display:flex;align-items:flex-start;gap:var(--Size-3, 12px)}.tl-step__marker{display:flex;flex-direction:column;align-items:center;flex-shrink:0}.tl-step__icon{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:background 0.2s, border-color 0.2s}.tl-step--pending .tl-step__icon{background:var(--Gray-Gray-100, #e6eaf2);border:2px solid var(--Gray-Gray-200, #c3c9d9)}.tl-step--active .tl-step__icon{background:var(--Neutral-White, #ffffff);border:2px solid var(--Primary-Primary-500, #f49a3d);box-shadow:0 0 0 4px var(--Primary-Primary-100, #fde9d0)}.tl-step--done .tl-step__icon{background:var(--Primary-Primary-500, #f49a3d);border:2px solid var(--Primary-Primary-500, #f49a3d)}.tl-step__dot{width:8px;height:8px;border-radius:50%;display:block}.tl-step--pending .tl-step__dot{background:var(--Gray-Gray-300, #a3abbf)}.tl-step--active .tl-step__dot{background:var(--Primary-Primary-500, #f49a3d)}.tl-step--done .tl-step__dot{background:var(--Neutral-White, #ffffff)}.tl-step__line{flex:1;width:2px;min-height:24px;margin:4px 0;background:var(--Gray-Gray-200, #c3c9d9)}.tl-step--done+.tl-step .tl-step__line,.tl-step--done .tl-step__line{background:var(--Primary-Primary-500, #f49a3d)}.tl-step__content{display:flex;flex-direction:column;gap:2px;padding-top:6px;padding-bottom:var(--Size-4, 16px)}.tl-step__label{font-size:var(--font-size-s, 12px);font-weight:var(--font-weight-bold, 700);color:var(--Gray-Gray-700, #32394d)}.tl-step--pending .tl-step__label{color:var(--Gray-Gray-400, #858ea6);font-weight:var(--font-weight-regular, 400)}.tl-step__subtitle{font-size:var(--font-size-xs, 10px);color:var(--Gray-Gray-500, #69738c)}`;
|
|
4
|
+
|
|
5
|
+
const DropiTimeLine = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
/** Array of timeline steps. Pass as JSON string or array */
|
|
10
|
+
steps = [];
|
|
11
|
+
get parsedSteps() {
|
|
12
|
+
if (typeof this.steps === 'string') {
|
|
13
|
+
try {
|
|
14
|
+
return JSON.parse(this.steps);
|
|
15
|
+
}
|
|
16
|
+
catch {
|
|
17
|
+
return [];
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return this.steps || [];
|
|
21
|
+
}
|
|
22
|
+
render() {
|
|
23
|
+
const steps = this.parsedSteps;
|
|
24
|
+
return (h("div", { key: '22a2f8ff7a33e892096c3aaf381e23b110ec6b0a', class: "timeline" }, steps.map((step, i) => {
|
|
25
|
+
const isLast = i === steps.length - 1;
|
|
26
|
+
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))));
|
|
27
|
+
})));
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
DropiTimeLine.style = dropiTimeLineCss();
|
|
31
|
+
|
|
32
|
+
export { DropiTimeLine as dropi_time_line };
|
|
33
|
+
//# sourceMappingURL=dropi-time-line.entry.esm.js.map
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=dropi-time-line.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"dropi-time-line.entry.js","mappings":";;AAAA,MAAM,gBAAgB,GAAG,MAAM,CAAC,4wDAA4wD,CAAC;;MCqBhyD,aAAa,GAAA,MAAA;;;;;IAEhB,KAAK,GAA4B,EAAE;AAE3C,IAAA,IAAY,WAAW,GAAA;AACrB,QAAA,IAAI,OAAO,IAAI,C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,EAAC,eAAe,GAAG,CACrC,EAEN,CAAA,CAAA,KAAA,EAAA,EAAK,KAAK,EAAC,kBAAkB,EAAA,EAC3B,CAAA,CAAA,MAAA,EAAA,EAAM,KAAK,EAAC,gBAAgB,IAAE,IAAI,CAAC,KAAK,CAAQ,EAC/C,IAAI,CAAC,QAAQ,IAAI,CAAA,CAAA,MAAA,EAAA,EAAM,KAAK,EAAC,mBAAmB,EAAA,EAAE,IAAI,CAAC,QAAQ,CAAQ,CACpE,CACF;SAET,CAAC,CACE;;;;;;;","names":[],"sources":["src/components/dropi-time-line/dropi-time-line.css?tag=dropi-time-line&encapsulation=shadow","src/components/dropi-time-line/dropi-time-line.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\n*, *::before, *::after { box-sizing: border-box; }\n\n.timeline {\n display: flex;\n flex-direction: column;\n}\n\n.tl-step {\n display: flex;\n align-items: flex-start;\n gap: var(--Size-3, 12px);\n}\n\n/* ── Left column: icon + line ───────────────────────────── */\n.tl-step__marker {\n display: flex;\n flex-direction: column;\n align-items: center;\n flex-shrink: 0;\n}\n\n.tl-step__icon {\n width: 32px;\n height: 32px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: background 0.2s, border-color 0.2s;\n}\n\n.tl-step--pending .tl-step__icon {\n background: var(--Gray-Gray-100, #e6eaf2);\n border: 2px solid var(--Gray-Gray-200, #c3c9d9);\n}\n\n.tl-step--active .tl-step__icon {\n background: var(--Neutral-White, #ffffff);\n border: 2px solid var(--Primary-Primary-500, #f49a3d);\n box-shadow: 0 0 0 4px var(--Primary-Primary-100, #fde9d0);\n}\n\n.tl-step--done .tl-step__icon {\n background: var(--Primary-Primary-500, #f49a3d);\n border: 2px solid var(--Primary-Primary-500, #f49a3d);\n}\n\n.tl-step__dot {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n display: block;\n}\n\n.tl-step--pending .tl-step__dot {\n background: var(--Gray-Gray-300, #a3abbf);\n}\n\n.tl-step--active .tl-step__dot {\n background: var(--Primary-Primary-500, #f49a3d);\n}\n\n.tl-step--done .tl-step__dot {\n background: var(--Neutral-White, #ffffff);\n}\n\n/* ── Vertical connector ─────────────────────────────────── */\n.tl-step__line {\n flex: 1;\n width: 2px;\n min-height: 24px;\n margin: 4px 0;\n background: var(--Gray-Gray-200, #c3c9d9);\n}\n\n.tl-step--done + .tl-step .tl-step__line,\n.tl-step--done .tl-step__line {\n background: var(--Primary-Primary-500, #f49a3d);\n}\n\n/* ── Content ────────────────────────────────────────────── */\n.tl-step__content {\n display: flex;\n flex-direction: column;\n gap: 2px;\n padding-top: 6px;\n padding-bottom: var(--Size-4, 16px);\n}\n\n.tl-step__label {\n font-size: var(--font-size-s, 12px);\n font-weight: var(--font-weight-bold, 700);\n color: var(--Gray-Gray-700, #32394d);\n}\n\n.tl-step--pending .tl-step__label {\n color: var(--Gray-Gray-400, #858ea6);\n font-weight: var(--font-weight-regular, 400);\n}\n\n.tl-step__subtitle {\n font-size: var(--font-size-xs, 10px);\n color: var(--Gray-Gray-500, #69738c);\n}\n","import { Component, Prop, h } from '@stencil/core';\n\nexport type TimelineStepStatus = 'pending' | 'active' | 'done';\n\nexport interface TimelineStep {\n status: TimelineStepStatus;\n label: string;\n icon?: string;\n id?: string;\n subtitle?: string;\n}\n\n/**\n * @component dropi-time-line\n * Vertical timeline showing ordered steps with status indicators.\n */\n@Component({\n tag: 'dropi-time-line',\n styleUrl: 'dropi-time-line.css',\n shadow: true,\n})\nexport class DropiTimeLine {\n /** Array of timeline steps. Pass as JSON string or array */\n @Prop() steps: TimelineStep[] | string = [];\n\n private get parsedSteps(): TimelineStep[] {\n if (typeof this.steps === 'string') {\n try { return JSON.parse(this.steps); } catch { return []; }\n }\n return this.steps || [];\n }\n\n render() {\n const steps = this.parsedSteps;\n\n return (\n <div class=\"timeline\">\n {steps.map((step, i) => {\n const isLast = i === steps.length - 1;\n\n return (\n <div class={{ 'tl-step': true, [`tl-step--${step.status}`]: true }} key={step.id || i}>\n <div class=\"tl-step__marker\">\n <div class=\"tl-step__icon\">\n {step.icon ? (\n <dropi-icon\n name={step.icon}\n iconWidth=\"16px\"\n iconHeight=\"16px\"\n color={step.status === 'done' ? 'Neutral-White' : step.status === 'active' ? 'Primary-Primary-500' : 'Gray-Gray-400'}\n />\n ) : (\n <span class=\"tl-step__dot\" />\n )}\n </div>\n {!isLast && <div class=\"tl-step__line\" />}\n </div>\n\n <div class=\"tl-step__content\">\n <span class=\"tl-step__label\">{step.label}</span>\n {step.subtitle && <span class=\"tl-step__subtitle\">{step.subtitle}</span>}\n </div>\n </div>\n );\n })}\n </div>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-Cvp2LQOM.js';
|
|
2
|
+
|
|
3
|
+
const dropiToastCss = () => `:host{display:contents}*,*::before,*::after{box-sizing:border-box}.toast-container{position:fixed;z-index:9999;display:flex;flex-direction:column;gap:8px;max-width:380px;width:100%;pointer-events:none}.toast-container--top-right{top:80px;right:0;padding:var(--Size-2, 8px)}.toast-container--top-left{top:80px;left:0;padding:var(--Size-2, 8px)}.toast-container--bottom-right{bottom:24px;right:0;padding:var(--Size-2, 8px);flex-direction:column-reverse}.toast-container--bottom-left{bottom:24px;left:0;padding:var(--Size-2, 8px);flex-direction:column-reverse}.toast-container--top-center{top:80px;left:50%;transform:translateX(-50%);padding:var(--Size-2, 8px)}.toast-container--bottom-center{bottom:24px;left:50%;transform:translateX(-50%);padding:var(--Size-2, 8px);flex-direction:column-reverse}.toast-wrapper{pointer-events:auto;animation:toast-in 0.28s ease;transition:opacity 0.28s ease, transform 0.28s ease, max-height 0.32s ease;overflow:hidden;max-height:200px}.toast-wrapper--leaving{opacity:0;transform:translateX(20px);max-height:0;pointer-events:none}@keyframes toast-in{from{opacity:0;transform:translateX(20px)}to{opacity:1;transform:translateX(0)}}.toast{position:relative;display:flex;align-items:flex-start;border-radius:var(--Border-2,8px);background:var(--Neutral-White, #ffffff);box-shadow:0.5px -1px 7px 0px rgba(0, 0, 0, 0.06), 0px 4px 20px 0px rgba(0, 0, 0, 0.12);border-left:var(--Size-2, 8px) solid;overflow:hidden;min-width:300px}.toast--success{border-color:var(--Success-Success-500,#34c38f)}.toast--error{border-color:var(--Error-Error-500,#f46a6b)}.toast--warn{border-color:var(--Warning-Warning-500,#f1b44c)}.toast--info{border-color:var(--Info-Info-500,#50a5f1)}.toast-content{display:flex;flex-direction:row;align-items:flex-start;padding:var(--Size-5) var(--Size-5) var(--Size-5) calc(var(--Size-5) - var(--Size-2, 8px));gap:var(--Size-4, 16px)}.lottie-img{width:50px;height:50px;flex-shrink:0;display:flex;align-items:center;justify-content:center;position:relative}.lottie-player-container{position:absolute;top:0;left:0;width:100%;height:100%;z-index:2;display:flex;align-items:center;justify-content:center}lottie-player{width:100%;height:100%;display:block}.info-container{flex:1;min-width:0;align-self:center;display:flex;flex-direction:column;gap:var(--Size-1, 4px)}.title{margin:0;font-size:var(--font-size-l,18px);font-weight:var(--font-weight-bold,700);color:var(--Gray-Gray-700,#32394d);line-height:1.1;text-align:left;max-width:250px}.description{margin:0;font-size:var(--font-size-s,14px);color:var(--Gray-Gray-500, #69738c);line-height:1.4;text-align:left;max-width:250px}.toast-close{position:absolute;top:18px;right:10px;background:none;border:none;cursor:pointer;padding:0;flex-shrink:0;display:flex;align-items:center;justify-content:center}.toast-close:hover{opacity:0.7}`;
|
|
4
|
+
|
|
5
|
+
const DropiToast = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
/** Toast position */
|
|
10
|
+
position = 'top-right';
|
|
11
|
+
/** Default auto-close ms (0 = manual) */
|
|
12
|
+
life = 3000;
|
|
13
|
+
items = [];
|
|
14
|
+
idCounter = 0;
|
|
15
|
+
/** Show a toast */
|
|
16
|
+
async show(msg) {
|
|
17
|
+
console.log('DropiToast show() called with:', msg);
|
|
18
|
+
const id = msg.id ?? `t${++this.idCounter}`;
|
|
19
|
+
const item = { msg: { ...msg, id, closable: msg.closable ?? true }, leaving: false };
|
|
20
|
+
this.items = [...(this.items || []), item];
|
|
21
|
+
const ms = msg.life !== undefined ? msg.life : this.life;
|
|
22
|
+
if (ms > 0)
|
|
23
|
+
item.timer = setTimeout(() => this.remove(id), ms);
|
|
24
|
+
}
|
|
25
|
+
/** Remove all toasts */
|
|
26
|
+
async clear() {
|
|
27
|
+
(this.items || []).forEach(i => {
|
|
28
|
+
if (i.timer)
|
|
29
|
+
clearTimeout(i.timer);
|
|
30
|
+
});
|
|
31
|
+
this.items = [];
|
|
32
|
+
}
|
|
33
|
+
remove(id) {
|
|
34
|
+
this.items = this.items.map(i => (i.msg.id === id ? { ...i, leaving: true } : i));
|
|
35
|
+
setTimeout(() => {
|
|
36
|
+
this.items = this.items.filter(i => i.msg.id !== id);
|
|
37
|
+
}, 320);
|
|
38
|
+
}
|
|
39
|
+
lottieMap = {
|
|
40
|
+
success: '/assets/lottie-files/success.json',
|
|
41
|
+
error: '/assets/lottie-files/failure.json',
|
|
42
|
+
warn: '/assets/lottie-files/warning.json',
|
|
43
|
+
info: '/assets/lottie-files/question.json',
|
|
44
|
+
};
|
|
45
|
+
getLottieHtml(severity) {
|
|
46
|
+
return `<lottie-player src="${this.lottieMap[severity]}" background="transparent" speed="1" loop autoplay></lottie-player>`;
|
|
47
|
+
}
|
|
48
|
+
render() {
|
|
49
|
+
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" })))))))));
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
DropiToast.style = dropiToastCss();
|
|
53
|
+
|
|
54
|
+
export { DropiToast as dropi_toast };
|
|
55
|
+
//# sourceMappingURL=dropi-toast.entry.esm.js.map
|
|
56
|
+
|
|
57
|
+
//# sourceMappingURL=dropi-toast.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"dropi-toast.entry.js","mappings":";;AAAA,MAAM,aAAa,GAAG,MAAM,CAAC,uwFAAuwF,CAAC;;MCqCxxF,UAAU,GAAA,MAAA;;;;;IAEb,QAAQ,GAA+F,WAAW;;IAElH,IAAI,GAAW,IAAI;IAEV,KAAK,GAAgB,EAAE;IAChC,SAAS,GAAG,CAAC;;IAIrB,MAAM,IAAI,CAAC,GAAiB,EAAA;AAC1B,QAAA,OAAO,CAAC,GAAG,CAAC,gCAAgC,EAAE,GAAG,CAAC;AAClD,QAAA,MAAM,EAAE,GAAG,GAAG,CAAC,EAAE,IAAI,CAAA,CAAA,EAAI,EAAE,IAAI,CAAC,SAAS,CAAA,CAAE;QAC3C,MAAM,IAAI,GAAc,EAAE,GAAG,EAAE,EAAE,GAAG,GAAG,EAAE,EAAE,EAAE,QAAQ,EAAE,GAAG,CAAC,QAAQ,IAAI,IAAI,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;AAC/F,QAAA,IAAI,CAAC,KAAK,GAAG,CAAC,IAAI,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC,EAAE,IAAI,CAAC;AAC1C,QAAA,MAAM,EAAE,GAAG,GAAG,CAAC,IAAI,KAAK,SAAS,GAAG,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI;QACxD,IAAI,EAAE,GAAG,CAAC;AAAE,YAAA,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,MAAM,IAAI,C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sx"],"sourcesContent":[":host { display: contents; }\n*, *::before, *::after { box-sizing: border-box; }\n\n.toast-container { position: fixed; z-index: 9999; display: flex; flex-direction: column; gap: 8px; max-width: 380px; width: 100%; pointer-events: none; }\n.toast-container--top-right { top: 80px; right: 0; padding: var(--Size-2, 8px); }\n.toast-container--top-left { top: 80px; left: 0; padding: var(--Size-2, 8px); }\n.toast-container--bottom-right { bottom: 24px; right: 0; padding: var(--Size-2, 8px); flex-direction: column-reverse; }\n.toast-container--bottom-left { bottom: 24px; left: 0; padding: var(--Size-2, 8px); flex-direction: column-reverse; }\n.toast-container--top-center { top: 80px; left: 50%; transform: translateX(-50%); padding: var(--Size-2, 8px); }\n.toast-container--bottom-center { bottom: 24px; left: 50%; transform: translateX(-50%); padding: var(--Size-2, 8px); flex-direction: column-reverse; }\n\n.toast-wrapper { pointer-events: auto; animation: toast-in 0.28s ease; transition: opacity 0.28s ease, transform 0.28s ease, max-height 0.32s ease; overflow: hidden; max-height: 200px; }\n.toast-wrapper--leaving { opacity: 0; transform: translateX(20px); max-height: 0; pointer-events: none; }\n@keyframes toast-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }\n\n.toast { position: relative; display: flex; align-items: flex-start; border-radius: var(--Border-2,8px); background: var(--Neutral-White, #ffffff); box-shadow: 0.5px -1px 7px 0px rgba(0, 0, 0, 0.06), 0px 4px 20px 0px rgba(0, 0, 0, 0.12); border-left: var(--Size-2, 8px) solid; overflow: hidden; min-width: 300px; }\n.toast--success { border-color: var(--Success-Success-500,#34c38f); }\n.toast--error { border-color: var(--Error-Error-500,#f46a6b); }\n.toast--warn { border-color: var(--Warning-Warning-500,#f1b44c); }\n.toast--info { border-color: var(--Info-Info-500,#50a5f1); }\n\n.toast-content {\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n padding: var(--Size-5) var(--Size-5) var(--Size-5) calc(var(--Size-5) - var(--Size-2, 8px));\n gap: var(--Size-4, 16px);\n}\n\n.lottie-img {\n width: 50px;\n height: 50px;\n flex-shrink: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n}\n\n.lottie-player-container {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 2;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\nlottie-player {\n width: 100%;\n height: 100%;\n display: block;\n}\n\n.info-container { flex: 1; min-width: 0; align-self: center; display: flex; flex-direction: column; gap: var(--Size-1, 4px); }\n.title { margin: 0; font-size: var(--font-size-l,18px); font-weight: var(--font-weight-bold,700); color: var(--Gray-Gray-700,#32394d); line-height: 1.1; text-align: left; max-width: 250px; }\n.description { margin: 0; font-size: var(--font-size-s,14px); color: var(--Gray-Gray-500, #69738c); line-height: 1.4; text-align: left; max-width: 250px; }\n\n.toast-close { position: absolute; top: 18px; right: 10px; background: none; border: none; cursor: pointer; padding: 0; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }\n.toast-close:hover { opacity: 0.7; }\n","import { Component, Prop, State, Method, h } from '@stencil/core';\n\nexport type ToastSeverity = 'success' | 'error' | 'warn' | 'info';\n\nexport interface ToastMessage {\n id?: string;\n /** Visual style and icon */\n severity: ToastSeverity;\n /** Bold title */\n summary: string;\n /** Optional body text */\n detail?: string;\n /** Whether to show a close button. Default: true */\n closable?: boolean;\n /** Auto-close after N ms. 0 = manual only. Default: uses component `life` prop */\n life?: number;\n}\n\ninterface ToastItem {\n msg: ToastMessage;\n leaving: boolean;\n timer?: any;\n}\n\n/**\n * @component dropi-toast\n * Global toast notification stack. Place once in the app root, call show() from JS.\n *\n * @example\n * const t = document.querySelector('dropi-toast');\n * t.show({ severity: 'success', summary: '¡Guardado!', detail: 'Cambios aplicados.' });\n */\n@Component({\n tag: 'dropi-toast',\n styleUrl: 'dropi-toast.css',\n shadow: true,\n})\nexport class DropiToast {\n /** Toast position */\n @Prop() position: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'top-center' | 'bottom-center' = 'top-right';\n /** Default auto-close ms (0 = manual) */\n @Prop() life: number = 3000;\n\n @State() private items: ToastItem[] = [];\n private idCounter = 0;\n\n /** Show a toast */\n @Method()\n async show(msg: ToastMessage) {\n console.log('DropiToast show() called with:', msg);\n const id = msg.id ?? `t${++this.idCounter}`;\n const item: ToastItem = { msg: { ...msg, id, closable: msg.closable ?? true }, leaving: false };\n this.items = [...(this.items || []), item];\n const ms = msg.life !== undefined ? msg.life : this.life;\n if (ms > 0) item.timer = setTimeout(() => this.remove(id), ms);\n }\n\n /** Remove all toasts */\n @Method()\n async clear() {\n (this.items || []).forEach(i => {\n if (i.timer) clearTimeout(i.timer);\n });\n this.items = [];\n }\n\n private remove(id: string) {\n this.items = this.items.map(i => (i.msg.id === id ? { ...i, leaving: true } : i));\n setTimeout(() => {\n this.items = this.items.filter(i => i.msg.id !== id);\n }, 320);\n }\n\n private readonly lottieMap: Record<ToastSeverity, string> = {\n success: '/assets/lottie-files/success.json',\n error: '/assets/lottie-files/failure.json',\n warn: '/assets/lottie-files/warning.json',\n info: '/assets/lottie-files/question.json',\n };\n\n private getLottieHtml(severity: ToastSeverity): string {\n return `<lottie-player src=\"${this.lottieMap[severity]}\" background=\"transparent\" speed=\"1\" loop autoplay></lottie-player>`;\n }\n\n render() {\n return (\n <div class={`toast-container toast-container--${this.position}`}>\n {(this.items ?? []).map(item => (\n <div key={item.msg.id} class={{ 'toast-wrapper': true, 'toast-wrapper--leaving': item.leaving }}>\n <div class={`toast toast--${item.msg.severity}`}>\n <div class=\"toast-content\">\n <div class=\"lottie-img\">\n <div class=\"lottie-player-container\" innerHTML={this.getLottieHtml(item.msg.severity)}></div>\n </div>\n <div class=\"info-container\">\n <p class=\"title\">{item.msg.summary}</p>\n {item.msg.detail && <p class=\"description\">{item.msg.detail}</p>}\n </div>\n </div>\n {item.msg.closable && (\n <button class=\"toast-close\" onClick={() => this.remove(item.msg.id!)}>\n <dropi-icon name=\"Close-small\" iconWidth=\"20px\" iconHeight=\"20px\" color=\"Gray-Gray-400\" />\n </button>\n )}\n </div>\n </div>\n ))}\n </div>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-Cvp2LQOM.js';
|
|
2
|
+
|
|
3
|
+
const dropiTooltipCss = () => `:host{display:inline-block}*,*::before,*::after{box-sizing:border-box}.tooltip-wrapper{position:relative;display:inline-flex;align-items:center;justify-content:center}.tooltip-bubble{position:absolute;z-index:9999;background:var(--Gray-Gray-800);color:var(--Neutral-White, #ffffff);font-size:var(--font-size-s,14px);line-height:1.5;padding:8px 12px;border-radius:8px;white-space:normal;pointer-events:none;opacity:0;transition:opacity 0.15s ease, transform 0.15s ease;word-break:break-word;box-shadow:var(--Shadow-medium);text-align:left;width:max-content}.tooltip-bubble--visible{opacity:1}.tooltip-bubble--top{bottom:calc(100% + 12px);left:50%;transform:translateX(-50%)}.tooltip-bubble--bottom{top:calc(100% + 12px);left:50%;transform:translateX(-50%)}.tooltip-bubble--left{right:calc(100% + 12px);top:50%;transform:translateY(-50%)}.tooltip-bubble--right{left:calc(100% + 12px);top:50%;transform:translateY(-50%)}.tooltip-arrow{position:absolute;width:12px;height:6px}.tooltip-arrow::before{content:'';position:absolute;width:0;height:0}.tooltip-arrow--top{top:100%;left:50%;transform:translateX(-50%)}.tooltip-arrow--top::before{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid var(--Gray-Gray-800)}.tooltip-arrow--bottom{bottom:100%;left:50%;transform:translateX(-50%)}.tooltip-arrow--bottom::before{border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid var(--Gray-Gray-800)}.tooltip-arrow--left{left:100%;top:50%;transform:translateY(-50%)}.tooltip-arrow--left::before{border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid var(--Gray-Gray-800)}.tooltip-arrow--right{right:100%;top:50%;transform:translateY(-50%)}.tooltip-arrow--right::before{border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:6px solid var(--Gray-Gray-800)}`;
|
|
4
|
+
|
|
5
|
+
const DropiTooltipV2 = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
/** Tooltip text */
|
|
10
|
+
text = '';
|
|
11
|
+
/** Tooltip title (bold, shown with label) */
|
|
12
|
+
title = '';
|
|
13
|
+
/** Tooltip label (shown below title) */
|
|
14
|
+
label = '';
|
|
15
|
+
/** Position: top | bottom | left | right */
|
|
16
|
+
position = 'bottom';
|
|
17
|
+
/** Position of the arrow: start | center | end (matches Angular `arrowPosition`) */
|
|
18
|
+
arrowPosition = 'center';
|
|
19
|
+
/** Trigger: hover | click | focus | timeout | static | hidden */
|
|
20
|
+
trigger = 'hover';
|
|
21
|
+
/** Max CSS width of the bubble */
|
|
22
|
+
maxWidth = '280px';
|
|
23
|
+
/** Min CSS width of the bubble (matches Angular `minWidth`) */
|
|
24
|
+
minWidth = '300px';
|
|
25
|
+
/** Delay in ms before showing */
|
|
26
|
+
showDelay = 0;
|
|
27
|
+
/** Disable the tooltip completely (matches Angular `disabled`) */
|
|
28
|
+
disabled = false;
|
|
29
|
+
/** Show the trigger icon (matches Angular `showIcon`) */
|
|
30
|
+
showIcon = true;
|
|
31
|
+
/** Show the close (X) button inside the bubble (matches Angular `showX`) */
|
|
32
|
+
showX = false;
|
|
33
|
+
/** Icon name from the dropi-icon sprite (matches Angular `iconName`) */
|
|
34
|
+
iconName = 'Tooltip';
|
|
35
|
+
/** Icon color token or hex (matches Angular `iconColor`) */
|
|
36
|
+
iconColor = '#7B8190';
|
|
37
|
+
/** Icon size in px without unit (matches Angular `iconSize`) */
|
|
38
|
+
iconSize = '14';
|
|
39
|
+
visible = false;
|
|
40
|
+
showTimer = null;
|
|
41
|
+
timeoutTimer = null;
|
|
42
|
+
componentDidLoad() {
|
|
43
|
+
if (this.trigger === 'static')
|
|
44
|
+
this.show();
|
|
45
|
+
if (this.trigger === 'timeout')
|
|
46
|
+
this.showWithTimeout();
|
|
47
|
+
}
|
|
48
|
+
show = () => {
|
|
49
|
+
if (this.disabled || this.trigger === 'hidden')
|
|
50
|
+
return;
|
|
51
|
+
const content = this.text || this.title || this.label;
|
|
52
|
+
if (!content.trim())
|
|
53
|
+
return;
|
|
54
|
+
if (this.showDelay > 0) {
|
|
55
|
+
this.showTimer = setTimeout(() => { this.visible = true; }, this.showDelay);
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
this.visible = true;
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
hide = () => {
|
|
62
|
+
if (this.showTimer) {
|
|
63
|
+
clearTimeout(this.showTimer);
|
|
64
|
+
this.showTimer = null;
|
|
65
|
+
}
|
|
66
|
+
if (this.timeoutTimer) {
|
|
67
|
+
clearTimeout(this.timeoutTimer);
|
|
68
|
+
this.timeoutTimer = null;
|
|
69
|
+
}
|
|
70
|
+
this.visible = false;
|
|
71
|
+
};
|
|
72
|
+
showWithTimeout() {
|
|
73
|
+
this.show();
|
|
74
|
+
this.timeoutTimer = setTimeout(() => this.hide(), 6000);
|
|
75
|
+
}
|
|
76
|
+
handleMouseEnter = () => {
|
|
77
|
+
if (this.trigger !== 'hover')
|
|
78
|
+
return;
|
|
79
|
+
this.show();
|
|
80
|
+
};
|
|
81
|
+
handleMouseLeave = () => {
|
|
82
|
+
if (this.trigger !== 'hover')
|
|
83
|
+
return;
|
|
84
|
+
setTimeout(() => this.hide(), 10);
|
|
85
|
+
};
|
|
86
|
+
handleClick = () => {
|
|
87
|
+
if (this.trigger !== 'click')
|
|
88
|
+
return;
|
|
89
|
+
this.visible ? this.hide() : this.show();
|
|
90
|
+
};
|
|
91
|
+
handleFocusin = () => {
|
|
92
|
+
if (this.trigger !== 'focus')
|
|
93
|
+
return;
|
|
94
|
+
this.show();
|
|
95
|
+
};
|
|
96
|
+
handleFocusout = () => {
|
|
97
|
+
if (this.trigger !== 'focus')
|
|
98
|
+
return;
|
|
99
|
+
this.hide();
|
|
100
|
+
};
|
|
101
|
+
handleClose = () => {
|
|
102
|
+
if (this.trigger === 'static') {
|
|
103
|
+
this.trigger = 'hover';
|
|
104
|
+
this.showX = false;
|
|
105
|
+
}
|
|
106
|
+
this.hide();
|
|
107
|
+
};
|
|
108
|
+
get displayContent() {
|
|
109
|
+
if (this.text)
|
|
110
|
+
return this.text;
|
|
111
|
+
if (this.title && this.label)
|
|
112
|
+
return `${this.title}\n${this.label}`;
|
|
113
|
+
return this.title || this.label || '';
|
|
114
|
+
}
|
|
115
|
+
render() {
|
|
116
|
+
const bubbleStyle = { maxWidth: this.maxWidth };
|
|
117
|
+
if (this.minWidth)
|
|
118
|
+
bubbleStyle.minWidth = this.minWidth;
|
|
119
|
+
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: {
|
|
120
|
+
'tooltip-bubble': true,
|
|
121
|
+
[`tooltip-bubble--${this.position}`]: true,
|
|
122
|
+
[`tooltip-bubble--arrow-${this.arrowPosition}`]: true,
|
|
123
|
+
'tooltip-bubble--visible': this.visible,
|
|
124
|
+
}, 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}` })))));
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
DropiTooltipV2.style = dropiTooltipCss();
|
|
128
|
+
|
|
129
|
+
export { DropiTooltipV2 as dropi_tooltip_v2 };
|
|
130
|
+
//# sourceMappingURL=dropi-tooltip-v2.entry.esm.js.map
|
|
131
|
+
|
|
132
|
+
//# sourceMappingURL=dropi-tooltip-v2.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"dropi-tooltip-v2.entry.js","mappings":";;AAAA,MAAM,eAAe,GAAG,MAAM,CAAC,u1DAAu1D,CAAC;;MCoB12D,cAAc,GAAA,MAAA;;;;;IAEjB,IAAI,GAAW,EAAE;;IAEjB,KAAK,GAAW,EAAE;;IAElB,KAAK,GAAW,EAAE;;IAElB,QAAQ,GAAoB,QAAQ;;IAEpC,aAAa,GAAkB,QAAQ;;IAEtB,OAAO,GAAmB,OAAO;;IAElD,QAAQ,GAAW,OAAO;;IAE1B,QAAQ,GAAW,OAAO;;IAE1B,SAAS,GAAW,CAAC;;IAErB,QAAQ,GAAY,KAAK;;IAEzB,QAAQ,GAAY,IAAI;;IAEP,KAAK,GAAY,KAAK;;IAEvC,QAAQ,GAAW,SAAS;;IAE5B,SAAS,GAAW,SAAS;;IAE7B,QAAQ,GAAW,IAAI;IAEd,OAAO,GAAY,KAAK;IACjC,SAAS,GAAQ,IAAI;IACrB,YAAY,GAAQ,IAAI;IAEhC,gBAAgB,GAAA;AACd,QAAA,IAAI,IAAI,CAAC,OAAO,KAAK,QAAQ;YAAE,IAAI,CAAC,IAAI,EAAE;AAC1C,QAAA,IAAI,IAAI,CAAC,OAA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KAAK,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAA,CAAA,QAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAQ,KAAK,EAAC,eAAe,EAAA,EAAE,IAAI,CAAC,KAAK,CAAU,EAC/E,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,KAAK,EAAC,eAAe,EAAA,EAAE,IAAI,CAAC,KAAK,CAAQ,EAC3E,IAAI,CAAC,IAAI,IAAI,+DAAO,IAAI,CAAC,IAAI,CAAQ,EACtC,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,KAAK,EAAE,CAAA,6BAAA,EAAgC,IAAI,CAAC,QAAQ,EAAE,EAAA,CAAI,CAC5D,CACP,CACG;;;;;;;","names":[],"sources":["src/components/dropi-tooltip-v2/dropi-tooltip.css?tag=dropi-tooltip-v2&encapsulation=shadow","src/components/dropi-tooltip-v2/dropi-tooltip.tsx"],"sourcesContent":[":host { display: inline-block; }\n*, *::before, *::after { box-sizing: border-box; }\n\n.tooltip-wrapper { position: relative; display: inline-flex; align-items: center; justify-content: center; }\n\n.tooltip-bubble {\n position: absolute; z-index: 9999;\n background: var(--Gray-Gray-800); color: var(--Neutral-White, #ffffff);\n font-size: var(--font-size-s,14px); line-height: 1.5;\n padding: 8px 12px; border-radius: 8px;\n white-space: normal; pointer-events: none;\n opacity: 0; transition: opacity 0.15s ease, transform 0.15s ease;\n word-break: break-word;\n box-shadow: var(--Shadow-medium);\n text-align: left;\n width: max-content;\n}\n.tooltip-bubble--visible { opacity: 1; }\n\n.tooltip-bubble--top { bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%); }\n.tooltip-bubble--bottom { top: calc(100% + 12px); left: 50%; transform: translateX(-50%); }\n.tooltip-bubble--left { right: calc(100% + 12px); top: 50%; transform: translateY(-50%); }\n.tooltip-bubble--right { left: calc(100% + 12px); top: 50%; transform: translateY(-50%); }\n\n.tooltip-arrow { position: absolute; width: 12px; height: 6px; }\n.tooltip-arrow::before {\n content: '';\n position: absolute;\n width: 0;\n height: 0;\n}\n\n.tooltip-arrow--top {\n top: 100%; left: 50%; transform: translateX(-50%);\n}\n.tooltip-arrow--top::before {\n border-left: 6px solid transparent;\n border-right: 6px solid transparent;\n border-top: 6px solid var(--Gray-Gray-800);\n}\n\n.tooltip-arrow--bottom {\n bottom: 100%; left: 50%; transform: translateX(-50%);\n}\n.tooltip-arrow--bottom::before {\n border-left: 6px solid transparent;\n border-right: 6px solid transparent;\n border-bottom: 6px solid var(--Gray-Gray-800);\n}\n\n.tooltip-arrow--left {\n left: 100%; top: 50%; transform: translateY(-50%);\n}\n.tooltip-arrow--left::before {\n border-top: 6px solid transparent;\n border-bottom: 6px solid transparent;\n border-left: 6px solid var(--Gray-Gray-800);\n}\n\n.tooltip-arrow--right {\n right: 100%; top: 50%; transform: translateY(-50%);\n}\n.tooltip-arrow--right::before {\n border-top: 6px solid transparent;\n border-bottom: 6px solid transparent;\n border-right: 6px solid var(--Gray-Gray-800);\n}\n","import { Component, Prop, State, h } from '@stencil/core';\n\nexport type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';\nexport type TooltipTrigger = 'hover' | 'click' | 'focus' | 'timeout' | 'static' | 'hidden';\nexport type ArrowPosition = 'start' | 'center' | 'end';\n\n/**\n * @component dropi-tooltip\n * Wraps content and shows a tooltip bubble on hover/focus.\n *\n * @example\n * <dropi-tooltip-v2 text=\"Más información\" position=\"top\">\n * <dropi-button text=\"Hover\" />\n * </dropi-tooltip-v2>\n */\n@Component({\n tag: 'dropi-tooltip-v2',\n styleUrl: 'dropi-tooltip.css',\n shadow: true,\n})\nexport class DropiTooltipV2 {\n /** Tooltip text */\n @Prop() text: string = '';\n /** Tooltip title (bold, shown with label) */\n @Prop() title: string = '';\n /** Tooltip label (shown below title) */\n @Prop() label: string = '';\n /** Position: top | bottom | left | right */\n @Prop() position: TooltipPosition = 'bottom';\n /** Position of the arrow: start | center | end (matches Angular `arrowPosition`) */\n @Prop() arrowPosition: ArrowPosition = 'center';\n /** Trigger: hover | click | focus | timeout | static | hidden */\n @Prop({ mutable: true }) trigger: TooltipTrigger = 'hover';\n /** Max CSS width of the bubble */\n @Prop() maxWidth: string = '280px';\n /** Min CSS width of the bubble (matches Angular `minWidth`) */\n @Prop() minWidth: string = '300px';\n /** Delay in ms before showing */\n @Prop() showDelay: number = 0;\n /** Disable the tooltip completely (matches Angular `disabled`) */\n @Prop() disabled: boolean = false;\n /** Show the trigger icon (matches Angular `showIcon`) */\n @Prop() showIcon: boolean = true;\n /** Show the close (X) button inside the bubble (matches Angular `showX`) */\n @Prop({ mutable: true }) showX: boolean = false;\n /** Icon name from the dropi-icon sprite (matches Angular `iconName`) */\n @Prop() iconName: string = 'Tooltip';\n /** Icon color token or hex (matches Angular `iconColor`) */\n @Prop() iconColor: string = '#7B8190';\n /** Icon size in px without unit (matches Angular `iconSize`) */\n @Prop() iconSize: string = '14';\n\n @State() private visible: boolean = false;\n private showTimer: any = null;\n private timeoutTimer: any = null;\n\n componentDidLoad() {\n if (this.trigger === 'static') this.show();\n if (this.trigger === 'timeout') this.showWithTimeout();\n }\n\n private show = () => {\n if (this.disabled || this.trigger === 'hidden') return;\n const content = this.text || this.title || this.label;\n if (!content.trim()) return;\n if (this.showDelay > 0) {\n this.showTimer = setTimeout(() => { this.visible = true; }, this.showDelay);\n } else {\n this.visible = true;\n }\n };\n\n private hide = () => {\n if (this.showTimer) { clearTimeout(this.showTimer); this.showTimer = null; }\n if (this.timeoutTimer) { clearTimeout(this.timeoutTimer); this.timeoutTimer = null; }\n this.visible = false;\n };\n\n private showWithTimeout() {\n this.show();\n this.timeoutTimer = setTimeout(() => this.hide(), 6000);\n }\n\n private handleMouseEnter = () => {\n if (this.trigger !== 'hover') return;\n this.show();\n };\n\n private handleMouseLeave = () => {\n if (this.trigger !== 'hover') return;\n setTimeout(() => this.hide(), 10);\n };\n\n private handleClick = () => {\n if (this.trigger !== 'click') return;\n this.visible ? this.hide() : this.show();\n };\n\n private handleFocusin = () => {\n if (this.trigger !== 'focus') return;\n this.show();\n };\n\n private handleFocusout = () => {\n if (this.trigger !== 'focus') return;\n this.hide();\n };\n\n private handleClose = () => {\n if (this.trigger === 'static') {\n this.trigger = 'hover';\n this.showX = false;\n }\n this.hide();\n };\n\n private get displayContent(): string {\n if (this.text) return this.text;\n if (this.title && this.label) return `${this.title}\\n${this.label}`;\n return this.title || this.label || '';\n }\n\n render() {\n const bubbleStyle: any = { maxWidth: this.maxWidth };\n if (this.minWidth) bubbleStyle.minWidth = this.minWidth;\n\n return (\n <div\n class=\"tooltip-wrapper\"\n onMouseEnter={this.handleMouseEnter}\n onMouseLeave={this.handleMouseLeave}\n onClick={this.handleClick}\n onFocusin={this.handleFocusin}\n onFocusout={this.handleFocusout}\n >\n {this.showIcon && (\n <dropi-icon\n name={this.iconName}\n iconWidth={`${this.iconSize}px`}\n iconHeight={`${this.iconSize}px`}\n color={this.iconColor}\n />\n )}\n <slot />\n\n {this.displayContent && (\n <div\n class={{\n 'tooltip-bubble': true,\n [`tooltip-bubble--${this.position}`]: true,\n [`tooltip-bubble--arrow-${this.arrowPosition}`]: true,\n 'tooltip-bubble--visible': this.visible,\n }}\n style={bubbleStyle}\n role=\"tooltip\"\n >\n {this.showX && (\n <button class=\"tooltip-close\" onClick={this.handleClose} aria-label=\"Cerrar\">\n <dropi-icon name=\"Close-small\" iconWidth=\"12px\" iconHeight=\"12px\" color=\"Gray-Gray-500\" />\n </button>\n )}\n {this.title && !this.text && <strong class=\"tooltip-title\">{this.title}</strong>}\n {this.label && !this.text && <span class=\"tooltip-label\">{this.label}</span>}\n {this.text && <span>{this.text}</span>}\n <span class={`tooltip-arrow tooltip-arrow--${this.position}`} />\n </div>\n )}\n </div>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { r as registerInstance, h } from './index-Cvp2LQOM.js';
|
|
2
|
+
|
|
3
|
+
const dropiTooltipCss = () => `:host{display:inline-block;position:relative}.tooltip-simple-bubble{position:absolute;background:var(--Gray-Gray-800, #1e293b);color:white;padding:4px 8px;border-radius:4px;font-size:12px;bottom:100%;left:50%;transform:translateX(-50%);margin-bottom:8px;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity 0.2s;z-index:1000}:host(:hover) .tooltip-simple-bubble{opacity:1}.tooltip-simple--outlined .tooltip-simple-bubble{border:1px solid var(--Gray-Gray-300);background:white;color:var(--Gray-Gray-800)}`;
|
|
4
|
+
|
|
5
|
+
const DropiTooltip = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
}
|
|
9
|
+
/** Tooltip text */
|
|
10
|
+
text = '';
|
|
11
|
+
/** Whether the tooltip has an outline style (matches Angular `outlined`) */
|
|
12
|
+
outlined = false;
|
|
13
|
+
render() {
|
|
14
|
+
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))));
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
DropiTooltip.style = dropiTooltipCss();
|
|
18
|
+
|
|
19
|
+
export { DropiTooltip as dropi_tooltip };
|
|
20
|
+
//# sourceMappingURL=dropi-tooltip.entry.esm.js.map
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=dropi-tooltip.entry.js.map
|