@dropi/ui 0.1.42 → 0.1.44
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/dist/cjs/dropi-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/dropi-accordion.cjs.entry.js +1 -1
- package/dist/cjs/dropi-alert-legacy.cjs.entry.js +1 -1
- package/dist/cjs/dropi-alert-modal.cjs.entry.js +1 -1
- package/dist/cjs/dropi-alert.cjs.entry.js +1 -1
- package/dist/cjs/dropi-avatars.cjs.entry.js +1 -1
- package/dist/cjs/dropi-badge-legacy.cjs.entry.js +1 -1
- package/dist/cjs/dropi-badge.cjs.entry.js +1 -1
- package/dist/cjs/dropi-banner-external.cjs.entry.js +1 -1
- package/dist/cjs/dropi-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/dropi-button.cjs.entry.js +20 -3
- package/dist/cjs/dropi-card-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/dropi-card-product.cjs.entry.js +1 -1
- package/dist/cjs/dropi-card-section.cjs.entry.js +1 -1
- package/dist/cjs/dropi-carousel.cjs.entry.js +1 -1
- package/dist/cjs/dropi-checkbox-selection-list.cjs.entry.js +1 -1
- package/dist/cjs/dropi-checkbox.cjs.entry.js +24 -3
- package/dist/cjs/dropi-chips.cjs.entry.js +1 -1
- package/dist/cjs/dropi-city-selector.cjs.entry.js +2 -2
- package/dist/cjs/dropi-color-picker.cjs.entry.js +1 -1
- package/dist/cjs/dropi-country-flags.cjs.entry.js +1 -1
- package/dist/cjs/dropi-country-selector.cjs.entry.js +108 -7
- package/dist/cjs/dropi-date-picker-range.cjs.entry.js +1 -1
- package/dist/cjs/dropi-date-picker.cjs.entry.js +41 -5
- package/dist/cjs/dropi-drawer.cjs.entry.js +2 -2
- package/dist/cjs/dropi-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/dropi-empty-state.cjs.entry.js +1 -1
- package/dist/cjs/dropi-favorite-button.cjs.entry.js +1 -1
- package/dist/cjs/dropi-file-upload-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/dropi-file-upload.cjs.entry.js +1 -1
- package/dist/cjs/dropi-icon.cjs.entry.js +1 -1
- package/dist/cjs/dropi-ilustration-icon.cjs.entry.js +1 -1
- package/dist/cjs/dropi-image-miniature.cjs.entry.js +1 -1
- package/dist/cjs/dropi-image-overlay.cjs.entry.js +1 -1
- package/dist/cjs/dropi-input_3.cjs.entry.js +4 -4
- package/dist/cjs/dropi-languages-selector.cjs.entry.js +1 -1
- package/dist/cjs/dropi-logo.cjs.entry.js +1 -1
- package/dist/cjs/dropi-lottie-loader.cjs.entry.js +1 -1
- package/dist/cjs/dropi-media-player.cjs.entry.js +1 -1
- package/dist/cjs/dropi-modal.cjs.entry.js +2 -2
- package/dist/cjs/dropi-navbar.cjs.entry.js +1 -1
- package/dist/cjs/dropi-otp-send-code.cjs.entry.js +23 -3
- package/dist/cjs/dropi-phone-input.cjs.entry.js +27 -4
- package/dist/cjs/dropi-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/dropi-radio-button.cjs.entry.js +19 -2
- package/dist/cjs/dropi-radio-selection-list.cjs.entry.js +1 -1
- package/dist/cjs/dropi-read-more.cjs.entry.js +1 -1
- package/dist/cjs/dropi-search.cjs.entry.js +1 -1
- package/dist/cjs/dropi-select.cjs.entry.js +3 -3
- package/dist/cjs/dropi-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/dropi-simple-stepper.cjs.entry.js +1 -1
- package/dist/cjs/dropi-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/dropi-steps.cjs.entry.js +1 -1
- package/dist/cjs/dropi-switch.cjs.entry.js +23 -2
- package/dist/cjs/dropi-table.cjs.entry.js +1 -1
- package/dist/cjs/dropi-tabs.cjs.entry.js +1 -1
- package/dist/cjs/dropi-tag-type-product.cjs.entry.js +1 -1
- package/dist/cjs/dropi-text-area.cjs.entry.js +4 -4
- package/dist/cjs/dropi-time-line.cjs.entry.js +1 -1
- package/dist/cjs/dropi-toast.cjs.entry.js +2 -2
- package/dist/cjs/dropi-tooltip-v2.cjs.entry.js +2 -2
- package/dist/cjs/dropi-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/dropi-ui.cjs.js +2 -2
- package/dist/cjs/dropi-vertical-steps.cjs.entry.js +1 -1
- package/dist/cjs/dropi-youtube-lazy-video.cjs.entry.js +1 -1
- package/dist/cjs/index-DydfpGMc.js +2773 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/components/dropi-button/dropi-button.js +39 -2
- package/dist/collection/components/dropi-checkbox/dropi-checkbox.js +38 -2
- package/dist/collection/components/dropi-city-selector/dropi-city-selector.css +1 -1
- package/dist/collection/components/dropi-country-selector/dropi-country-selector.css +1 -1
- package/dist/collection/components/dropi-country-selector/dropi-country-selector.js +140 -5
- package/dist/collection/components/dropi-date-picker/dropi-date-picker.js +55 -4
- package/dist/collection/components/dropi-drawer/dropi-drawer.css +1 -1
- package/dist/collection/components/dropi-input/dropi-input.js +4 -4
- package/dist/collection/components/dropi-modal/dropi-modal.css +1 -1
- package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.js +36 -2
- package/dist/collection/components/dropi-phone-input/dropi-phone-input.css +1 -1
- package/dist/collection/components/dropi-phone-input/dropi-phone-input.js +39 -2
- package/dist/collection/components/dropi-radio-button/dropi-radio-button.js +13 -2
- package/dist/collection/components/dropi-select/dropi-select.css +1 -1
- package/dist/collection/components/dropi-select/dropi-select.js +2 -2
- package/dist/collection/components/dropi-switch/dropi-switch.js +37 -1
- package/dist/collection/components/dropi-text-area/dropi-text-area.js +4 -4
- package/dist/collection/components/dropi-toast/dropi-toast.css +1 -1
- package/dist/collection/components/dropi-tooltip/dropi-tooltip.css +1 -1
- package/dist/collection/components/dropi-tooltip-v2/dropi-tooltip.css +1 -1
- package/dist/components/dropi-alert-modal.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-section.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-city-selector.js +1 -1
- package/dist/components/dropi-country-selector.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-file-upload.js +1 -1
- package/dist/components/dropi-input.js +1 -1
- package/dist/components/dropi-modal.js +1 -1
- package/dist/components/dropi-otp-send-code.js +1 -1
- package/dist/components/dropi-phone-input.js +1 -1
- package/dist/components/dropi-radio-button.js +1 -1
- package/dist/components/dropi-search.js +1 -1
- package/dist/components/dropi-select.js +1 -1
- package/dist/components/dropi-switch.js +1 -1
- package/dist/components/dropi-table.js +1 -1
- package/dist/components/dropi-text-area.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/index.js +1 -1
- package/dist/components/p-BGb7xtJN.js +1 -1
- package/dist/components/p-Bimspdte.js +1 -1
- package/dist/components/p-BmuWhHN-.js +1 -1
- package/dist/components/p-Bw8zPxUl.js +1 -0
- package/dist/components/p-C44-ijf2.js +1 -1
- package/dist/components/p-CCZ6rIo5.js +1 -0
- package/dist/components/p-CKflT57p.js +1 -1
- package/dist/components/p-DFNI0UID.js +1 -1
- package/dist/components/p-Dd1g1gjR.js +1 -0
- package/dist/components/p-Dnx3uXgo.js +1 -0
- package/dist/components/p-HCtk4_Dq.js +1 -1
- package/dist/components/p-Qrac2GRu.js +1 -0
- package/dist/components/p-emzVHCws.js +1 -1
- package/dist/dropi-ui/dropi-accordion-item.entry.js +1 -1
- package/dist/dropi-ui/dropi-accordion.entry.js +1 -1
- package/dist/dropi-ui/dropi-alert-legacy.entry.js +1 -1
- package/dist/dropi-ui/dropi-alert-modal.entry.js +1 -1
- package/dist/dropi-ui/dropi-alert.entry.js +1 -1
- package/dist/dropi-ui/dropi-avatars.entry.js +1 -1
- package/dist/dropi-ui/dropi-badge-legacy.entry.js +1 -1
- package/dist/dropi-ui/dropi-badge.entry.js +1 -1
- package/dist/dropi-ui/dropi-banner-external.entry.js +1 -1
- package/dist/dropi-ui/dropi-breadcrumb.entry.js +1 -1
- package/dist/dropi-ui/dropi-button.entry.js +20 -3
- package/dist/dropi-ui/dropi-button.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-card-checkbox.entry.js +1 -1
- package/dist/dropi-ui/dropi-card-product.entry.js +1 -1
- package/dist/dropi-ui/dropi-card-section.entry.js +1 -1
- package/dist/dropi-ui/dropi-carousel.entry.js +1 -1
- package/dist/dropi-ui/dropi-checkbox-selection-list.entry.js +1 -1
- package/dist/dropi-ui/dropi-checkbox.entry.js +24 -3
- package/dist/dropi-ui/dropi-checkbox.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-chips.entry.js +1 -1
- package/dist/dropi-ui/dropi-city-selector.entry.js +2 -2
- package/dist/dropi-ui/dropi-city-selector.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-color-picker.entry.js +1 -1
- package/dist/dropi-ui/dropi-country-flags.entry.js +1 -1
- package/dist/dropi-ui/dropi-country-selector.entry.js +108 -7
- package/dist/dropi-ui/dropi-country-selector.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-date-picker-range.entry.js +1 -1
- package/dist/dropi-ui/dropi-date-picker.entry.js +41 -5
- package/dist/dropi-ui/dropi-date-picker.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-drawer.entry.js +2 -2
- package/dist/dropi-ui/dropi-drawer.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-dropdown.entry.js +1 -1
- package/dist/dropi-ui/dropi-empty-state.entry.js +1 -1
- package/dist/dropi-ui/dropi-favorite-button.entry.js +1 -1
- package/dist/dropi-ui/dropi-file-upload-progress-bar.entry.js +1 -1
- package/dist/dropi-ui/dropi-file-upload.entry.js +1 -1
- package/dist/dropi-ui/dropi-icon.entry.js +1 -1
- package/dist/dropi-ui/dropi-ilustration-icon.entry.js +1 -1
- package/dist/dropi-ui/dropi-image-miniature.entry.js +1 -1
- package/dist/dropi-ui/dropi-image-overlay.entry.js +1 -1
- package/dist/dropi-ui/dropi-input.entry.js +4 -4
- package/dist/dropi-ui/dropi-input.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-languages-selector.entry.js +1 -1
- package/dist/dropi-ui/dropi-logo.entry.js +1 -1
- package/dist/dropi-ui/dropi-lottie-loader.entry.js +1 -1
- package/dist/dropi-ui/dropi-media-player.entry.js +1 -1
- package/dist/dropi-ui/dropi-modal.entry.js +2 -2
- package/dist/dropi-ui/dropi-modal.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-navbar.entry.js +1 -1
- package/dist/dropi-ui/dropi-otp-send-code.entry.js +23 -3
- package/dist/dropi-ui/dropi-otp-send-code.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-paginator.entry.js +1 -1
- package/dist/dropi-ui/dropi-phone-input.entry.js +27 -4
- package/dist/dropi-ui/dropi-phone-input.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-progress-bar.entry.js +1 -1
- package/dist/dropi-ui/dropi-radio-button.entry.js +19 -2
- package/dist/dropi-ui/dropi-radio-button.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-radio-selection-list.entry.js +1 -1
- package/dist/dropi-ui/dropi-read-more.entry.js +1 -1
- package/dist/dropi-ui/dropi-search.entry.js +1 -1
- package/dist/dropi-ui/dropi-select.entry.js +3 -3
- package/dist/dropi-ui/dropi-select.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-sidebar.entry.js +1 -1
- package/dist/dropi-ui/dropi-simple-stepper.entry.js +1 -1
- package/dist/dropi-ui/dropi-skeleton.entry.js +1 -1
- package/dist/dropi-ui/dropi-steps.entry.js +1 -1
- package/dist/dropi-ui/dropi-switch.entry.js +23 -2
- package/dist/dropi-ui/dropi-switch.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-table.entry.js +1 -1
- package/dist/dropi-ui/dropi-tabs.entry.js +1 -1
- package/dist/dropi-ui/dropi-tag-type-product.entry.js +1 -1
- package/dist/dropi-ui/dropi-tag.entry.js +1 -1
- package/dist/dropi-ui/dropi-text-area.entry.js +4 -4
- package/dist/dropi-ui/dropi-text-area.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-time-line.entry.js +1 -1
- package/dist/dropi-ui/dropi-toast.entry.js +2 -2
- package/dist/dropi-ui/dropi-toast.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-tooltip-v2.entry.js +2 -2
- package/dist/dropi-ui/dropi-tooltip-v2.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-tooltip.entry.js +2 -2
- package/dist/dropi-ui/dropi-tooltip.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-ui.css +320 -1
- package/dist/dropi-ui/dropi-ui.esm.js +50 -1
- package/dist/dropi-ui/dropi-vertical-steps.entry.js +1 -1
- package/dist/dropi-ui/dropi-youtube-lazy-video.entry.js +1 -1
- package/dist/dropi-ui/index-D0Z06C2b.js +4585 -0
- package/dist/dropi-ui/index-D0Z06C2b.js.map +1 -0
- package/dist/dropi-ui/index.esm.js +4 -0
- package/dist/dropi-ui/p-06bdd006.entry.js +1 -1
- package/dist/dropi-ui/p-09462f7b.entry.js +1 -0
- package/dist/dropi-ui/p-0946a1f7.entry.js +1 -1
- package/dist/dropi-ui/p-09cf560a.entry.js +1 -0
- package/dist/dropi-ui/p-0d188f2c.entry.js +1 -1
- package/dist/dropi-ui/p-0f1b13e5.entry.js +1 -1
- package/dist/dropi-ui/p-19031bf8.entry.js +1 -0
- package/dist/dropi-ui/p-1a07b3a6.entry.js +1 -1
- package/dist/dropi-ui/p-1d3d6a32.entry.js +1 -1
- package/dist/dropi-ui/p-2ad8d3c1.entry.js +1 -0
- package/dist/dropi-ui/p-2b5ce062.entry.js +1 -0
- package/dist/dropi-ui/p-369a069e.entry.js +1 -0
- package/dist/dropi-ui/p-372a5023.entry.js +1 -0
- package/dist/dropi-ui/p-378b165b.entry.js +1 -0
- package/dist/dropi-ui/p-393867c2.entry.js +1 -1
- package/dist/dropi-ui/p-3ec6620c.entry.js +1 -0
- package/dist/dropi-ui/p-42a85ce5.entry.js +1 -0
- package/dist/dropi-ui/p-43e21ed8.entry.js +1 -0
- package/dist/dropi-ui/p-51028e22.entry.js +1 -0
- package/dist/dropi-ui/p-510ad065.entry.js +1 -0
- package/dist/dropi-ui/p-532136cc.entry.js +1 -0
- package/dist/dropi-ui/p-5e0da387.entry.js +1 -1
- package/dist/dropi-ui/p-5f5c0a5c.entry.js +1 -0
- package/dist/dropi-ui/p-60901aa7.entry.js +1 -0
- package/dist/dropi-ui/p-62847b6f.entry.js +1 -0
- package/dist/dropi-ui/p-647bab57.entry.js +1 -0
- package/dist/dropi-ui/p-650a7679.entry.js +1 -1
- package/dist/dropi-ui/p-68cae74b.entry.js +1 -0
- package/dist/dropi-ui/p-6a51f80c.entry.js +1 -0
- package/dist/dropi-ui/p-6c45c910.entry.js +1 -0
- package/dist/dropi-ui/p-6ef4affd.entry.js +1 -0
- package/dist/dropi-ui/p-721ef2b1.entry.js +1 -0
- package/dist/dropi-ui/p-72c6e0c4.entry.js +1 -0
- package/dist/dropi-ui/p-7664b8f9.entry.js +1 -0
- package/dist/dropi-ui/p-774aab1a.entry.js +1 -0
- package/dist/dropi-ui/p-7a25f595.entry.js +1 -1
- package/dist/dropi-ui/p-7bc18f39.entry.js +1 -0
- package/dist/dropi-ui/p-7c0f959f.entry.js +1 -1
- package/dist/dropi-ui/p-7c3aa4bc.entry.js +1 -0
- package/dist/dropi-ui/p-7e526178.entry.js +1 -0
- package/dist/dropi-ui/p-7e99d4c4.entry.js +1 -0
- package/dist/dropi-ui/p-7f0f828d.entry.js +1 -1
- package/dist/dropi-ui/p-7fc195ee.entry.js +1 -0
- package/dist/dropi-ui/p-80f0f6e6.entry.js +1 -1
- package/dist/dropi-ui/p-82909f07.entry.js +1 -0
- package/dist/dropi-ui/p-84c63ece.entry.js +1 -0
- package/dist/dropi-ui/p-850b92f0.entry.js +1 -0
- package/dist/dropi-ui/p-85ee6d6a.entry.js +1 -0
- package/dist/dropi-ui/p-8c0ff5e6.entry.js +1 -0
- package/dist/dropi-ui/p-8fc3dbcb.entry.js +1 -1
- package/dist/dropi-ui/p-95808559.entry.js +1 -0
- package/dist/dropi-ui/p-95b7abf3.entry.js +1 -0
- package/dist/dropi-ui/p-96f72e50.entry.js +1 -1
- package/dist/dropi-ui/p-9a569a4e.entry.js +1 -0
- package/dist/dropi-ui/p-9c734a8f.entry.js +1 -0
- package/dist/dropi-ui/p-9c7698ef.entry.js +1 -0
- package/dist/dropi-ui/p-9e62ff06.entry.js +1 -0
- package/dist/dropi-ui/p-B-h7fjQz.js +2 -0
- package/dist/dropi-ui/p-a3b729fe.entry.js +1 -1
- package/dist/dropi-ui/p-a3c3e479.entry.js +1 -0
- package/dist/dropi-ui/p-a470a24a.entry.js +1 -1
- package/dist/dropi-ui/p-aa48e5cb.entry.js +1 -0
- package/dist/dropi-ui/p-af1e778b.entry.js +1 -0
- package/dist/dropi-ui/p-b14f6889.entry.js +1 -0
- package/dist/dropi-ui/p-b2e8c0e2.entry.js +1 -0
- package/dist/dropi-ui/p-b320ca5a.entry.js +1 -0
- package/dist/dropi-ui/p-b605d3d9.entry.js +1 -1
- package/dist/dropi-ui/p-baac546d.entry.js +1 -0
- package/dist/dropi-ui/p-bb6a2bdd.entry.js +1 -0
- package/dist/dropi-ui/p-bbf374d6.entry.js +1 -0
- package/dist/dropi-ui/p-bc6bb893.entry.js +1 -0
- package/dist/dropi-ui/p-bd06eb80.entry.js +1 -0
- package/dist/dropi-ui/p-c08b8995.entry.js +1 -0
- package/dist/dropi-ui/p-c1d5d4ab.entry.js +1 -0
- package/dist/dropi-ui/p-c4e24d47.entry.js +1 -0
- package/dist/dropi-ui/p-c51fcf75.entry.js +1 -1
- package/dist/dropi-ui/p-c6926604.entry.js +1 -0
- package/dist/dropi-ui/p-c8d0727a.entry.js +1 -0
- package/dist/dropi-ui/p-ca90e108.entry.js +1 -1
- package/dist/dropi-ui/p-caa6ba65.entry.js +1 -0
- package/dist/dropi-ui/p-cb4ad8d2.entry.js +1 -0
- package/dist/dropi-ui/p-d1aeb373.entry.js +1 -1
- package/dist/dropi-ui/p-d384f4e9.entry.js +1 -0
- package/dist/dropi-ui/p-d3f3bb91.entry.js +1 -0
- package/dist/dropi-ui/p-d6b3784b.entry.js +1 -0
- package/dist/dropi-ui/p-d886b045.entry.js +1 -0
- package/dist/dropi-ui/p-db71d065.entry.js +1 -0
- package/dist/dropi-ui/p-e1b40bda.entry.js +1 -1
- package/dist/dropi-ui/p-e36d5e9f.entry.js +1 -0
- package/dist/dropi-ui/p-e40db21a.entry.js +1 -0
- package/dist/dropi-ui/p-e53b23dd.entry.js +1 -1
- package/dist/dropi-ui/p-e629fdc7.entry.js +1 -1
- package/dist/dropi-ui/p-e97d3704.entry.js +1 -1
- package/dist/dropi-ui/p-e9a64ecc.entry.js +1 -1
- package/dist/dropi-ui/p-eaa10fe8.entry.js +1 -0
- package/dist/dropi-ui/p-ebaa1574.entry.js +1 -0
- package/dist/dropi-ui/p-ebb81172.entry.js +1 -0
- package/dist/dropi-ui/p-edcf5623.entry.js +1 -1
- package/dist/dropi-ui/p-f1e08f03.entry.js +1 -0
- package/dist/dropi-ui/p-f3f27534.entry.js +1 -0
- package/dist/dropi-ui/p-f426e0fc.entry.js +1 -0
- package/dist/dropi-ui/p-f6ed3cbb.entry.js +1 -0
- package/dist/dropi-ui/p-f9888cea.entry.js +1 -1
- package/dist/dropi-ui/p-fb39dfdc.entry.js +1 -1
- package/dist/dropi-ui/p-fb4856ea.entry.js +1 -0
- package/dist/dropi-ui/p-fea1be78.entry.js +1 -0
- package/dist/dropi-ui/p-ff084c1c.entry.js +1 -0
- package/dist/esm/dropi-accordion-item.entry.js +1 -1
- package/dist/esm/dropi-accordion.entry.js +1 -1
- package/dist/esm/dropi-alert-legacy.entry.js +1 -1
- package/dist/esm/dropi-alert-modal.entry.js +1 -1
- package/dist/esm/dropi-alert.entry.js +1 -1
- package/dist/esm/dropi-avatars.entry.js +1 -1
- package/dist/esm/dropi-badge-legacy.entry.js +1 -1
- package/dist/esm/dropi-badge.entry.js +1 -1
- package/dist/esm/dropi-banner-external.entry.js +1 -1
- package/dist/esm/dropi-breadcrumb.entry.js +1 -1
- package/dist/esm/dropi-button.entry.js +20 -3
- package/dist/esm/dropi-card-checkbox.entry.js +1 -1
- package/dist/esm/dropi-card-product.entry.js +1 -1
- package/dist/esm/dropi-card-section.entry.js +1 -1
- package/dist/esm/dropi-carousel.entry.js +1 -1
- package/dist/esm/dropi-checkbox-selection-list.entry.js +1 -1
- package/dist/esm/dropi-checkbox.entry.js +24 -3
- package/dist/esm/dropi-chips.entry.js +1 -1
- package/dist/esm/dropi-city-selector.entry.js +2 -2
- package/dist/esm/dropi-color-picker.entry.js +1 -1
- package/dist/esm/dropi-country-flags.entry.js +1 -1
- package/dist/esm/dropi-country-selector.entry.js +108 -7
- package/dist/esm/dropi-date-picker-range.entry.js +1 -1
- package/dist/esm/dropi-date-picker.entry.js +41 -5
- package/dist/esm/dropi-drawer.entry.js +2 -2
- package/dist/esm/dropi-dropdown.entry.js +1 -1
- package/dist/esm/dropi-empty-state.entry.js +1 -1
- package/dist/esm/dropi-favorite-button.entry.js +1 -1
- package/dist/esm/dropi-file-upload-progress-bar.entry.js +1 -1
- package/dist/esm/dropi-file-upload.entry.js +1 -1
- package/dist/esm/dropi-icon.entry.js +1 -1
- package/dist/esm/dropi-ilustration-icon.entry.js +1 -1
- package/dist/esm/dropi-image-miniature.entry.js +1 -1
- package/dist/esm/dropi-image-overlay.entry.js +1 -1
- package/dist/esm/dropi-input_3.entry.js +4 -4
- package/dist/esm/dropi-languages-selector.entry.js +1 -1
- package/dist/esm/dropi-logo.entry.js +1 -1
- package/dist/esm/dropi-lottie-loader.entry.js +1 -1
- package/dist/esm/dropi-media-player.entry.js +1 -1
- package/dist/esm/dropi-modal.entry.js +2 -2
- package/dist/esm/dropi-navbar.entry.js +1 -1
- package/dist/esm/dropi-otp-send-code.entry.js +23 -3
- package/dist/esm/dropi-phone-input.entry.js +27 -4
- package/dist/esm/dropi-progress-bar.entry.js +1 -1
- package/dist/esm/dropi-radio-button.entry.js +19 -2
- package/dist/esm/dropi-radio-selection-list.entry.js +1 -1
- package/dist/esm/dropi-read-more.entry.js +1 -1
- package/dist/esm/dropi-search.entry.js +1 -1
- package/dist/esm/dropi-select.entry.js +3 -3
- package/dist/esm/dropi-sidebar.entry.js +1 -1
- package/dist/esm/dropi-simple-stepper.entry.js +1 -1
- package/dist/esm/dropi-skeleton.entry.js +1 -1
- package/dist/esm/dropi-steps.entry.js +1 -1
- package/dist/esm/dropi-switch.entry.js +23 -2
- package/dist/esm/dropi-table.entry.js +1 -1
- package/dist/esm/dropi-tabs.entry.js +1 -1
- package/dist/esm/dropi-tag-type-product.entry.js +1 -1
- package/dist/esm/dropi-text-area.entry.js +4 -4
- package/dist/esm/dropi-time-line.entry.js +1 -1
- package/dist/esm/dropi-toast.entry.js +2 -2
- package/dist/esm/dropi-tooltip-v2.entry.js +2 -2
- package/dist/esm/dropi-tooltip.entry.js +2 -2
- package/dist/esm/dropi-ui.js +3 -3
- package/dist/esm/dropi-vertical-steps.entry.js +1 -1
- package/dist/esm/dropi-youtube-lazy-video.entry.js +1 -1
- package/dist/esm/index-B-h7fjQz.js +2763 -0
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/dropi-button/dropi-button.d.ts +4 -0
- package/dist/types/components/dropi-checkbox/dropi-checkbox.d.ts +5 -0
- package/dist/types/components/dropi-country-selector/dropi-country-selector.d.ts +13 -0
- package/dist/types/components/dropi-date-picker/dropi-date-picker.d.ts +6 -0
- package/dist/types/components/dropi-otp-send-code/dropi-otp-send-code.d.ts +3 -0
- package/dist/types/components/dropi-phone-input/dropi-phone-input.d.ts +5 -0
- package/dist/types/components/dropi-radio-button/dropi-radio-button.d.ts +3 -0
- package/dist/types/components/dropi-switch/dropi-switch.d.ts +5 -0
- package/dist/types/components.d.ts +120 -4
- package/hydrate/index.js +320 -56
- package/hydrate/index.mjs +320 -56
- package/package.json +3 -2
- package/readme.md +36 -0
- package/scripts/postinstall.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"dropi-date-picker.entry.js","mappings":";;AAAA,MAAM,kBAAkB,GAAG,MAAM,CAAC,usIAAusI,CAAC;;ACE1uI,MAAM,SAAS,GAAG;IAChB,OAAO,EAAC,SAAS,EAAC,OAAO,EAAC,OAAO,EAAC,MAAM,EAAC,OAAO;IAChD,OAAO,EAAC,QAAQ,EAAC,YAAY,EAAC,SAAS,EAAC,WAAW,EAAC;CACrD;AACD,MAAM,OAAO,GAAG,CAAC,IAAI,EAAC,IAAI,EAAC,IAAI,EAAC,IAAI,EAAC,IAAI,EAAC,IAAI,EAAC,IAAI,CAAC;MAYvC,eAAe,GAAA,MAAA;;;;;;;;IAED,YAAY,GAAW,EAAE;;IAEzB,SAAS,GAAW,EAAE;;IAEtB,OAAO,GAAW,EAAE;;IAErC,aAAa,GAAuB,QAAQ;;IAE5C,OAAO,GAAW,EAAE;;IAEpB,OAAO,GAAW,EAAE;;IAEpB,KAAK,GAAkB,IAAI;;IAE3B,WAAW,GAAW,YAAY;;IAElC,QAAQ,GAAY,KAAK;;IAEzB,SAAS,GAAY,KAAK;;IAE1B,OAAO,GAAY,KAAK;IAEf,IAAI,GAAY,KAAK;AACrB,IAAA,QAAQ,GAAW,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;AAC3C,IAAA,SAAS,GAAW,IAAI,IAAI,EAAE,CAAC,QAAQ,EAAE;IACzC,SAAS,GAAW,EAAE;;AAKvC,IAAA,cAAc,CAAC,CAAa,EAAA;AAC1B,QAAA,IAAI,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,YAAY,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC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;AAAE,oBAAA,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC;;qBAC/G;AAAE,oBAAA,IAAI,CAAC,SAAS,GAAG,KAAK;AAAE,oBAAA,IAAI,CAAC,OAAO,GAAG,EAAE;;aACjD,UAEQ,CACL,CACF,CACP,CACG;;;;;;;","names":[],"sources":["src/components/dropi-date-picker/dropi-date-picker.css?tag=dropi-date-picker&encapsulation=shadow","src/components/dropi-date-picker/dropi-date-picker.tsx"],"sourcesContent":[":host { display: block; width: 100%; position: relative; }\n*, *::before, *::after { box-sizing: border-box; }\n\n.dp-label {\n display: block;\n font-size: var(--font-size-xxs, 10px);\n color: var(--Gray-Gray-600, #475066);\n margin-bottom: 4px;\n}\n\n/* Trigger */\n.dp-trigger {\n width: 100%;\n height: 44px;\n display: flex;\n align-items: center;\n gap: var(--Size-2, 8px);\n padding: 0 var(--Size-3, 12px);\n border: 1px solid var(--Gray-Gray-200, #c3c9d9);\n border-radius: var(--Border-2, 8px);\n background: var(--Neutral-White, #ffffff);\n cursor: pointer;\n font-family: inherit;\n transition: border-color 0.2s;\n}\n.dp-trigger:hover:not(:disabled) { border-color: var(--Info-Info-500, #50a5f1); }\n.dp-trigger--disabled { background: var(--Gray-Gray-50, #f7f8fa); cursor: not-allowed; opacity: 0.6; }\n\n.dp-trigger__value {\n flex: 1;\n text-align: left;\n font-size: var(--font-size-xs, 12px);\n color: var(--Gray-Gray-700, #32394d);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.dp-trigger__placeholder { color: var(--Gray-Gray-400, #858ea6); }\n\n/* Popup */\n.dp-popup {\n position: absolute;\n top: calc(100% + 8px);\n left: 0;\n width: 320px;\n background: var(--Neutral-White, #ffffff);\n border: 1px solid var(--Gray-Gray-200, #c3c9d9);\n border-radius: var(--Border-3, 12px);\n box-shadow: 0 4px 16px rgba(0,0,0,0.08);\n z-index: 300;\n padding: var(--Size-4, 16px);\n}\n\n/* Navigation */\n.dp-nav {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: var(--Size-4, 16px);\n}\n\n.dp-nav__btn {\n background: none;\n border: none;\n padding: 0;\n cursor: pointer;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n transition: background 0.15s;\n}\n.dp-nav__btn:hover { background: var(--Gray-Gray-50, #f7f8fa); }\n\n.dp-nav__title {\n font-size: var(--font-size-s, 14px);\n font-weight: var(--font-weight-bold, 700);\n color: var(--Gray-Gray-700, #32394d);\n display: flex;\n gap: 8px;\n}\n\n/* Grid */\n.dp-grid {\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n row-gap: 8px;\n column-gap: 4px;\n}\n\n.dp-day-header {\n font-size: var(--font-size-s, 14px);\n color: var(--Gray-Gray-700, #32394d);\n text-align: center;\n padding: 8px 0;\n font-weight: var(--font-weight-bold, 700);\n}\n\n/* Day cells */\n.dp-cell {\n aspect-ratio: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: var(--font-size-xs, 12px);\n font-family: inherit;\n border: none;\n cursor: pointer;\n background: transparent;\n color: var(--Gray-Gray-600, #475066);\n width: 100%;\n position: relative;\n z-index: 1;\n padding: 0;\n}\n\n/* Pseudo-element for the circle (selected / hover / today) */\n.dp-cell::after {\n content: \"\";\n position: absolute;\n top: 0; left: 0; right: 0; bottom: 0;\n border-radius: 50%;\n transition: all 0.2s;\n z-index: -1;\n background: transparent;\n}\n\n/* Pseudo-element for the continuous light-orange range background */\n.dp-cell::before {\n content: \"\";\n position: absolute;\n top: 0; bottom: 0;\n z-index: -2;\n border-radius: 0;\n background: transparent;\n}\n\n.dp-cell:hover:not(:disabled)::after {\n background: var(--Gray-Gray-100, #e6eaf2);\n}\n\n.dp-cell--other-month { color: var(--Gray-Gray-300, #a0a9c0); }\n\n.dp-cell--today {\n font-weight: var(--font-weight-bold, 700);\n}\n.dp-cell--today::after {\n background: var(--Gray-Gray-100, #e6eaf2);\n}\n\n.dp-cell--selected {\n color: var(--Neutral-White, #ffffff);\n font-weight: var(--font-weight-bold, 700);\n}\n.dp-cell--selected::after {\n background: var(--Orange-orange-500, #f49a3d) !important;\n}\n\n/* Range modes */\n.dp-cell--range-start, .dp-cell--range-end {\n color: var(--Neutral-White, #ffffff);\n font-weight: var(--font-weight-bold, 700);\n}\n.dp-cell--range-start::after, .dp-cell--range-end::after {\n background: var(--Orange-orange-500, #f49a3d) !important;\n}\n\n.dp-cell--in-range {\n color: var(--Orange-orange-500, #f49a3d);\n font-weight: var(--font-weight-bold, 700);\n}\n.dp-cell--in-range::before {\n left: -2px; right: -2px;\n background: var(--Orange-orange-50, #fef5ec);\n}\n.dp-cell--range-start::before {\n left: 50%; right: -2px;\n background: var(--Orange-orange-50, #fef5ec);\n}\n.dp-cell--range-end::before {\n left: -2px; right: 50%;\n background: var(--Orange-orange-50, #fef5ec);\n}\n.dp-cell--range-start.dp-cell--range-end::before {\n background: transparent;\n}\n\n.dp-cell--disabled { opacity: 0.35; cursor: not-allowed; }\n\n/* Footer */\n.dp-footer {\n display: flex;\n justify-content: space-between;\n margin-top: var(--Size-3, 12px);\n border-top: 1px solid var(--Gray-Gray-100, #e6eaf2);\n padding-top: var(--Size-2, 8px);\n}\n\n.dp-footer__clear,\n.dp-footer__today {\n background: none;\n border: none;\n padding: 4px 8px;\n font-size: var(--font-size-xxs, 10px);\n font-family: inherit;\n cursor: pointer;\n border-radius: var(--Border-1, 4px);\n transition: background 0.15s;\n}\n.dp-footer__clear { color: var(--Gray-Gray-500, #69738c); }\n.dp-footer__today { color: var(--Orange-orange-500, #f49a3d); font-weight: var(--font-weight-bold, 700); }\n.dp-footer__clear:hover { background: var(--Gray-Gray-50, #f7f8fa); }\n.dp-footer__today:hover { background: var(--Orange-orange-50, #fef5ec); }\n","import { Component, Prop, State, Event, EventEmitter, h, Element, Listen } from '@stencil/core';\n\nconst MONTHS_ES = [\n 'Enero','Febrero','Marzo','Abril','Mayo','Junio',\n 'Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre'\n];\nconst DAYS_ES = ['Do','Lu','Ma','Mi','Ju','Vi','Sa'];\n\n/**\n * @component dropi-date-picker\n * Calendar date picker with optional date range mode.\n * Emits ISO date strings (YYYY-MM-DD).\n */\n@Component({\n tag: 'dropi-date-picker',\n styleUrl: 'dropi-date-picker.css',\n shadow: true,\n})\nexport class DropiDatePicker {\n /** Selected date (ISO string, single mode) - matches Angular 'selectedDate' */\n @Prop({ mutable: true }) selectedDate: string = '';\n /** Range start date (ISO string, range mode) */\n @Prop({ mutable: true }) startDate: string = '';\n /** Range end date (ISO string, range mode) */\n @Prop({ mutable: true }) endDate: string = '';\n /** Enable range selection - matches Angular selectionMode */\n @Prop() selectionMode: 'single' | 'range' = 'single';\n /** Min selectable date (ISO string) */\n @Prop() minDate: string = '';\n /** Max selectable date (ISO string) */\n @Prop() maxDate: string = '';\n /** Label */\n @Prop() label: string | null = null;\n /** Placeholder */\n @Prop() placeholder: string = 'DD/MM/YYYY';\n /** Disabled */\n @Prop() disabled: boolean = false;\n /** Is invalid state - matches Angular */\n @Prop() isInvalid: boolean = false;\n /** Loading state - matches Angular */\n @Prop() loading: boolean = false;\n\n @State() private open: boolean = false;\n @State() private viewYear: number = new Date().getFullYear();\n @State() private viewMonth: number = new Date().getMonth();\n @State() private hoverDate: string = '';\n\n @Element() el!: HTMLElement;\n\n @Listen('click', { target: 'document' })\n handleDocClick(e: MouseEvent) {\n if (this.open && !e.composedPath().includes(this.el)) {\n this.open = false;\n }\n }\n\n /** Emitted when date selected — matches Angular 'onChangeDate' */\n @Event() dropiChangeDate: EventEmitter<string>;\n /** Emitted when panel closes — matches Angular 'onClosePanel' */\n @Event() dropiClosePanel: EventEmitter<void>;\n /** Emitted when range selected */\n @Event() dropiRangeChange: EventEmitter<{ start: string; end: string }>;\n\n private get displayValue(): string {\n if (this.selectionMode === 'range') {\n if (this.startDate && this.endDate) return `${this.startDate} – ${this.endDate}`;\n if (this.startDate) return this.startDate;\n return '';\n }\n return this.selectedDate;\n }\n\n private open_() {\n if (this.disabled) return;\n if (this.selectedDate) {\n const d = new Date(this.selectedDate);\n this.viewYear = d.getFullYear();\n this.viewMonth = d.getMonth();\n } else if (this.startDate) {\n const d = new Date(this.startDate);\n this.viewYear = d.getFullYear();\n this.viewMonth = d.getMonth();\n }\n this.open = true;\n }\n\n private prevMonth() {\n if (this.viewMonth === 0) { this.viewMonth = 11; this.viewYear--; }\n else this.viewMonth--;\n }\n\n private nextMonth() {\n if (this.viewMonth === 11) { this.viewMonth = 0; this.viewYear++; }\n else this.viewMonth++;\n }\n\n private toISO(year: number, month: number, day: number): string {\n return `${year}-${String(month + 1).padStart(2, '0')}-${String(day).padStart(2, '0')}`;\n }\n\n private isDisabled(iso: string): boolean {\n if (this.minDate && iso < this.minDate) return true;\n if (this.maxDate && iso > this.maxDate) return true;\n return false;\n }\n\n private isInRange(iso: string): boolean {\n if (this.selectionMode !== 'range') return false;\n const start = this.startDate;\n const end = this.endDate || this.hoverDate;\n if (!start || !end) return false;\n const [s, e] = start <= end ? [start, end] : [end, start];\n return iso > s && iso < e;\n }\n\n private selectDate(iso: string) {\n if (this.isDisabled(iso)) return;\n\n if (this.selectionMode !== 'range') {\n this.selectedDate = iso;\n this.open = false;\n this.dropiChangeDate.emit(iso);\n return;\n }\n\n // Range mode\n if (!this.startDate || (this.startDate && this.endDate)) {\n this.startDate = iso;\n this.endDate = '';\n } else {\n if (iso < this.startDate) {\n this.endDate = this.startDate;\n this.startDate = iso;\n } else {\n this.endDate = iso;\n }\n this.open = false;\n this.dropiRangeChange.emit({ start: this.startDate, end: this.endDate });\n }\n }\n\n private buildDays(): Array<{ iso: string; day: number; currentMonth: boolean }> {\n const year = this.viewYear;\n const month = this.viewMonth;\n\n const firstDay = new Date(year, month, 1).getDay();\n // Adjust to Sunday-first\n const startOffset = firstDay;\n const daysInMonth = new Date(year, month + 1, 0).getDate();\n const daysInPrevMonth = new Date(year, month, 0).getDate();\n\n const cells: Array<{ iso: string; day: number; currentMonth: boolean }> = [];\n\n // Previous month filler\n for (let i = startOffset - 1; i >= 0; i--) {\n const d = daysInPrevMonth - i;\n const m = month === 0 ? 11 : month - 1;\n const y = month === 0 ? year - 1 : year;\n cells.push({ iso: this.toISO(y, m, d), day: d, currentMonth: false });\n }\n\n // Current month\n for (let d = 1; d <= daysInMonth; d++) {\n cells.push({ iso: this.toISO(year, month, d), day: d, currentMonth: true });\n }\n\n // Next month filler\n const remaining = 42 - cells.length;\n for (let d = 1; d <= remaining; d++) {\n const m = month === 11 ? 0 : month + 1;\n const y = month === 11 ? year + 1 : year;\n cells.push({ iso: this.toISO(y, m, d), day: d, currentMonth: false });\n }\n\n return cells;\n }\n\n render() {\n const days = this.buildDays();\n const today = new Date().toISOString().slice(0, 10);\n\n return (\n <div class=\"dp-wrap\">\n {this.label && <label class=\"dp-label\">{this.label}</label>}\n\n {/* Trigger */}\n <button\n class={{\n 'dp-trigger': true,\n 'dp-trigger--disabled': this.disabled,\n 'dp-trigger--invalid': this.isInvalid,\n 'dp-trigger--loading': this.loading\n }}\n onClick={() => this.open ? this.open = false : this.open_()}\n disabled={this.disabled || this.loading}\n type=\"button\"\n >\n <dropi-icon name=\"Calendar\" iconWidth=\"16px\" iconHeight=\"16px\" color=\"Gray-Gray-400\" />\n <span class={{ 'dp-trigger__value': true, 'dp-trigger__placeholder': !this.displayValue }}>\n {this.displayValue || this.placeholder}\n </span>\n <dropi-icon name=\"Arrow-Down-2\" iconWidth=\"12px\" iconHeight=\"12px\" color=\"Gray-Gray-400\" />\n </button>\n\n {/* Calendar popup */}\n {this.open && (\n <div class=\"dp-popup\">\n {/* Navigation */}\n <div class=\"dp-nav\">\n <button class=\"dp-nav__btn\" onClick={() => this.prevMonth()} type=\"button\">\n <dropi-icon name=\"Arrow-Left-2\" iconWidth=\"16px\" iconHeight=\"16px\" color=\"Gray-Gray-600\" />\n </button>\n <span class=\"dp-nav__title\">\n <span>{MONTHS_ES[this.viewMonth]}</span>\n <span>{this.viewYear}</span>\n </span>\n <button class=\"dp-nav__btn\" onClick={() => this.nextMonth()} type=\"button\">\n <dropi-icon name=\"Arrow-Right-2\" iconWidth=\"16px\" iconHeight=\"16px\" color=\"Gray-Gray-600\" />\n </button>\n </div>\n\n {/* Day headers */}\n <div class=\"dp-grid\">\n {DAYS_ES.map(d => (\n <div class=\"dp-day-header\">{d}</div>\n ))}\n\n {/* Day cells */}\n {days.map(({ iso, day, currentMonth }) => {\n const isSelected = this.selectionMode !== 'range'\n ? iso === this.selectedDate\n : iso === this.startDate || iso === this.endDate;\n const isRangeStart = this.selectionMode === 'range' && iso === this.startDate;\n const isRangeEnd = this.selectionMode === 'range' && iso === this.endDate;\n const inRange = this.isInRange(iso);\n const disabled = this.isDisabled(iso);\n const isToday = iso === today;\n\n return (\n <button\n class={{\n 'dp-cell': true,\n 'dp-cell--other-month': !currentMonth,\n 'dp-cell--today': isToday,\n 'dp-cell--selected': isSelected,\n 'dp-cell--range-start': isRangeStart,\n 'dp-cell--range-end': isRangeEnd,\n 'dp-cell--in-range': inRange,\n 'dp-cell--disabled': disabled,\n }}\n type=\"button\"\n disabled={disabled}\n onClick={() => this.selectDate(iso)}\n onMouseEnter={() => { if (this.selectionMode === 'range' && this.startDate && !this.endDate) this.hoverDate = iso; }}\n onMouseLeave={() => this.hoverDate = ''}\n >\n {day}\n </button>\n );\n })}\n </div>\n\n {/* Footer */}\n <div class=\"dp-footer\">\n <button class=\"dp-footer__clear\" type=\"button\" onClick={() => {\n this.selectedDate = ''; this.startDate = ''; this.endDate = '';\n this.open = false;\n }}>\n Limpiar\n </button>\n <button class=\"dp-footer__today\" type=\"button\" onClick={() => {\n if (this.selectionMode !== 'range') { this.selectedDate = today; this.open = false; this.dropiChangeDate.emit(today); }\n else { this.startDate = today; this.endDate = ''; }\n }}>\n Hoy\n </button>\n </div>\n </div>\n )}\n </div>\n );\n }\n}\n"],"version":3}
|
|
1
|
+
{"file":"dropi-date-picker.entry.js","mappings":";;AAAA,MAAM,kB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AAA,EAAA,GAAA,EAAA,0CAAA,EAAQ,KAAK,EAAC,kBAAkB,EAAC,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,MAAK;AAC3D,gBAAA,IAAI,IAAI,CAAC,aAAa,KAAK,OAAO,EAAE;AAAE,oBAAA,IAAI,CAAC,YAAY,GAAG,KAAK;AAAE,oBAAA,IAAI,CAAC,IAAI,GAAG,KAAK;AAAE,oBAAA,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC;;qBAC/G;AAAE,oBAAA,IAAI,CAAC,SAAS,GAAG,KAAK;AAAE,oBAAA,IAAI,CAAC,OAAO,GAAG,EAAE;;aACjD,UAEQ,CACL,CACF,CACP,CACG;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/dropi-date-picker/dropi-date-picker.css?tag=dropi-date-picker&encapsulation=shadow","src/components/dropi-date-picker/dropi-date-picker.tsx"],"sourcesContent":[":host { display: block; width: 100%; position: relative; }\n*, *::before, *::after { box-sizing: border-box; }\n\n.dp-label {\n display: block;\n font-size: var(--font-size-xxs, 10px);\n color: var(--Gray-Gray-600, #475066);\n margin-bottom: 4px;\n}\n\n/* Trigger */\n.dp-trigger {\n width: 100%;\n height: 44px;\n display: flex;\n align-items: center;\n gap: var(--Size-2, 8px);\n padding: 0 var(--Size-3, 12px);\n border: 1px solid var(--Gray-Gray-200, #c3c9d9);\n border-radius: var(--Border-2, 8px);\n background: var(--Neutral-White, #ffffff);\n cursor: pointer;\n font-family: inherit;\n transition: border-color 0.2s;\n}\n.dp-trigger:hover:not(:disabled) { border-color: var(--Info-Info-500, #50a5f1); }\n.dp-trigger--disabled { background: var(--Gray-Gray-50, #f7f8fa); cursor: not-allowed; opacity: 0.6; }\n\n.dp-trigger__value {\n flex: 1;\n text-align: left;\n font-size: var(--font-size-xs, 12px);\n color: var(--Gray-Gray-700, #32394d);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.dp-trigger__placeholder { color: var(--Gray-Gray-400, #858ea6); }\n\n/* Popup */\n.dp-popup {\n position: absolute;\n top: calc(100% + 8px);\n left: 0;\n width: 320px;\n background: var(--Neutral-White, #ffffff);\n border: 1px solid var(--Gray-Gray-200, #c3c9d9);\n border-radius: var(--Border-3, 12px);\n box-shadow: 0 4px 16px rgba(0,0,0,0.08);\n z-index: 300;\n padding: var(--Size-4, 16px);\n}\n\n/* Navigation */\n.dp-nav {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: var(--Size-4, 16px);\n}\n\n.dp-nav__btn {\n background: none;\n border: none;\n padding: 0;\n cursor: pointer;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n transition: background 0.15s;\n}\n.dp-nav__btn:hover { background: var(--Gray-Gray-50, #f7f8fa); }\n\n.dp-nav__title {\n font-size: var(--font-size-s, 14px);\n font-weight: var(--font-weight-bold, 700);\n color: var(--Gray-Gray-700, #32394d);\n display: flex;\n gap: 8px;\n}\n\n/* Grid */\n.dp-grid {\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n row-gap: 8px;\n column-gap: 4px;\n}\n\n.dp-day-header {\n font-size: var(--font-size-s, 14px);\n color: var(--Gray-Gray-700, #32394d);\n text-align: center;\n padding: 8px 0;\n font-weight: var(--font-weight-bold, 700);\n}\n\n/* Day cells */\n.dp-cell {\n aspect-ratio: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: var(--font-size-xs, 12px);\n font-family: inherit;\n border: none;\n cursor: pointer;\n background: transparent;\n color: var(--Gray-Gray-600, #475066);\n width: 100%;\n position: relative;\n z-index: 1;\n padding: 0;\n}\n\n/* Pseudo-element for the circle (selected / hover / today) */\n.dp-cell::after {\n content: \"\";\n position: absolute;\n top: 0; left: 0; right: 0; bottom: 0;\n border-radius: 50%;\n transition: all 0.2s;\n z-index: -1;\n background: transparent;\n}\n\n/* Pseudo-element for the continuous light-orange range background */\n.dp-cell::before {\n content: \"\";\n position: absolute;\n top: 0; bottom: 0;\n z-index: -2;\n border-radius: 0;\n background: transparent;\n}\n\n.dp-cell:hover:not(:disabled)::after {\n background: var(--Gray-Gray-100, #e6eaf2);\n}\n\n.dp-cell--other-month { color: var(--Gray-Gray-300, #a0a9c0); }\n\n.dp-cell--today {\n font-weight: var(--font-weight-bold, 700);\n}\n.dp-cell--today::after {\n background: var(--Gray-Gray-100, #e6eaf2);\n}\n\n.dp-cell--selected {\n color: var(--Neutral-White, #ffffff);\n font-weight: var(--font-weight-bold, 700);\n}\n.dp-cell--selected::after {\n background: var(--Orange-orange-500, #f49a3d) !important;\n}\n\n/* Range modes */\n.dp-cell--range-start, .dp-cell--range-end {\n color: var(--Neutral-White, #ffffff);\n font-weight: var(--font-weight-bold, 700);\n}\n.dp-cell--range-start::after, .dp-cell--range-end::after {\n background: var(--Orange-orange-500, #f49a3d) !important;\n}\n\n.dp-cell--in-range {\n color: var(--Orange-orange-500, #f49a3d);\n font-weight: var(--font-weight-bold, 700);\n}\n.dp-cell--in-range::before {\n left: -2px; right: -2px;\n background: var(--Orange-orange-50, #fef5ec);\n}\n.dp-cell--range-start::before {\n left: 50%; right: -2px;\n background: var(--Orange-orange-50, #fef5ec);\n}\n.dp-cell--range-end::before {\n left: -2px; right: 50%;\n background: var(--Orange-orange-50, #fef5ec);\n}\n.dp-cell--range-start.dp-cell--range-end::before {\n background: transparent;\n}\n\n.dp-cell--disabled { opacity: 0.35; cursor: not-allowed; }\n\n/* Footer */\n.dp-footer {\n display: flex;\n justify-content: space-between;\n margin-top: var(--Size-3, 12px);\n border-top: 1px solid var(--Gray-Gray-100, #e6eaf2);\n padding-top: var(--Size-2, 8px);\n}\n\n.dp-footer__clear,\n.dp-footer__today {\n background: none;\n border: none;\n padding: 4px 8px;\n font-size: var(--font-size-xxs, 10px);\n font-family: inherit;\n cursor: pointer;\n border-radius: var(--Border-1, 4px);\n transition: background 0.15s;\n}\n.dp-footer__clear { color: var(--Gray-Gray-500, #69738c); }\n.dp-footer__today { color: var(--Orange-orange-500, #f49a3d); font-weight: var(--font-weight-bold, 700); }\n.dp-footer__clear:hover { background: var(--Gray-Gray-50, #f7f8fa); }\n.dp-footer__today:hover { background: var(--Orange-orange-50, #fef5ec); }\n","import { Component, Prop, State, Event, EventEmitter, h, Element, Listen, AttachInternals, Watch } from '@stencil/core';\n\nconst MONTHS_ES = [\n 'Enero','Febrero','Marzo','Abril','Mayo','Junio',\n 'Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre'\n];\nconst DAYS_ES = ['Do','Lu','Ma','Mi','Ju','Vi','Sa'];\n\n/**\n * @component dropi-date-picker\n * Calendar date picker with optional date range mode.\n * Emits ISO date strings (YYYY-MM-DD).\n */\n@Component({\n tag: 'dropi-date-picker',\n styleUrl: 'dropi-date-picker.css',\n shadow: true,\n formAssociated: true,\n})\nexport class DropiDatePicker {\n @AttachInternals() internals: ElementInternals;\n\n /** Name for native form submission */\n @Prop({ reflect: true }) name: string = '';\n\n /** Selected date (ISO string, single mode) - matches Angular 'selectedDate' */\n @Prop({ mutable: true }) selectedDate: string = '';\n /** Range start date (ISO string, range mode) */\n @Prop({ mutable: true }) startDate: string = '';\n /** Range end date (ISO string, range mode) */\n @Prop({ mutable: true }) endDate: string = '';\n\n @Watch('selectedDate')\n @Watch('startDate')\n @Watch('endDate')\n valueChanged() {\n this.updateFormValue();\n }\n\n /** Enable range selection - matches Angular selectionMode */\n @Prop() selectionMode: 'single' | 'range' = 'single';\n /** Min selectable date (ISO string) */\n @Prop() minDate: string = '';\n /** Max selectable date (ISO string) */\n @Prop() maxDate: string = '';\n /** Label */\n @Prop() label: string | null = null;\n /** Placeholder */\n @Prop() placeholder: string = 'DD/MM/YYYY';\n /** Disabled */\n @Prop() disabled: boolean = false;\n /** Is invalid state - matches Angular */\n @Prop() isInvalid: boolean = false;\n /** Loading state - matches Angular */\n @Prop() loading: boolean = false;\n\n @State() private open: boolean = false;\n @State() private viewYear: number = new Date().getFullYear();\n @State() private viewMonth: number = new Date().getMonth();\n @State() private hoverDate: string = '';\n\n @Element() el!: HTMLElement;\n\n @Listen('click', { target: 'document' })\n handleDocClick(e: MouseEvent) {\n if (this.open && !e.composedPath().includes(this.el)) {\n this.open = false;\n }\n }\n\n /** Emitted when date selected — matches Angular 'onChangeDate' */\n @Event() dropiChangeDate: EventEmitter<string>;\n /** Emitted when panel closes — matches Angular 'onClosePanel' */\n @Event() dropiClosePanel: EventEmitter<void>;\n /** Emitted when range selected */\n @Event() dropiRangeChange: EventEmitter<{ start: string; end: string }>;\n\n componentWillLoad() {\n this.updateFormValue();\n }\n\n private updateFormValue() {\n if (this.selectionMode === 'range') {\n this.internals.setFormValue(this.startDate && this.endDate ? `${this.startDate},${this.endDate}` : '');\n } else {\n this.internals.setFormValue(this.selectedDate || '');\n }\n }\n\n\n private get displayValue(): string {\n if (this.selectionMode === 'range') {\n if (this.startDate && this.endDate) return `${this.startDate} – ${this.endDate}`;\n if (this.startDate) return this.startDate;\n return '';\n }\n return this.selectedDate;\n }\n\n private open_() {\n if (this.disabled) return;\n if (this.selectedDate) {\n const d = new Date(this.selectedDate);\n this.viewYear = d.getFullYear();\n this.viewMonth = d.getMonth();\n } else if (this.startDate) {\n const d = new Date(this.startDate);\n this.viewYear = d.getFullYear();\n this.viewMonth = d.getMonth();\n }\n this.open = true;\n }\n\n private prevMonth() {\n if (this.viewMonth === 0) { this.viewMonth = 11; this.viewYear--; }\n else this.viewMonth--;\n }\n\n private nextMonth() {\n if (this.viewMonth === 11) { this.viewMonth = 0; this.viewYear++; }\n else this.viewMonth++;\n }\n\n private toISO(year: number, month: number, day: number): string {\n return `${year}-${String(month + 1).padStart(2, '0')}-${String(day).padStart(2, '0')}`;\n }\n\n private isDisabled(iso: string): boolean {\n if (this.minDate && iso < this.minDate) return true;\n if (this.maxDate && iso > this.maxDate) return true;\n return false;\n }\n\n private isInRange(iso: string): boolean {\n if (this.selectionMode !== 'range') return false;\n const start = this.startDate;\n const end = this.endDate || this.hoverDate;\n if (!start || !end) return false;\n const [s, e] = start <= end ? [start, end] : [end, start];\n return iso > s && iso < e;\n }\n\n private selectDate(iso: string) {\n if (this.isDisabled(iso)) return;\n\n if (this.selectionMode !== 'range') {\n this.selectedDate = iso;\n this.open = false;\n this.dropiChangeDate.emit(iso);\n return;\n }\n\n // Range mode\n if (!this.startDate || (this.startDate && this.endDate)) {\n this.startDate = iso;\n this.endDate = '';\n } else {\n if (iso < this.startDate) {\n this.endDate = this.startDate;\n this.startDate = iso;\n } else {\n this.endDate = iso;\n }\n this.open = false;\n this.dropiRangeChange.emit({ start: this.startDate, end: this.endDate });\n }\n }\n\n private buildDays(): Array<{ iso: string; day: number; currentMonth: boolean }> {\n const year = this.viewYear;\n const month = this.viewMonth;\n\n const firstDay = new Date(year, month, 1).getDay();\n // Adjust to Sunday-first\n const startOffset = firstDay;\n const daysInMonth = new Date(year, month + 1, 0).getDate();\n const daysInPrevMonth = new Date(year, month, 0).getDate();\n\n const cells: Array<{ iso: string; day: number; currentMonth: boolean }> = [];\n\n // Previous month filler\n for (let i = startOffset - 1; i >= 0; i--) {\n const d = daysInPrevMonth - i;\n const m = month === 0 ? 11 : month - 1;\n const y = month === 0 ? year - 1 : year;\n cells.push({ iso: this.toISO(y, m, d), day: d, currentMonth: false });\n }\n\n // Current month\n for (let d = 1; d <= daysInMonth; d++) {\n cells.push({ iso: this.toISO(year, month, d), day: d, currentMonth: true });\n }\n\n // Next month filler\n const remaining = 42 - cells.length;\n for (let d = 1; d <= remaining; d++) {\n const m = month === 11 ? 0 : month + 1;\n const y = month === 11 ? year + 1 : year;\n cells.push({ iso: this.toISO(y, m, d), day: d, currentMonth: false });\n }\n\n return cells;\n }\n\n render() {\n const days = this.buildDays();\n const today = new Date().toISOString().slice(0, 10);\n\n return (\n <div class=\"dp-wrap\">\n {this.label && <label class=\"dp-label\">{this.label}</label>}\n\n {/* Trigger */}\n <button\n class={{\n 'dp-trigger': true,\n 'dp-trigger--disabled': this.disabled,\n 'dp-trigger--invalid': this.isInvalid,\n 'dp-trigger--loading': this.loading\n }}\n onClick={() => this.open ? this.open = false : this.open_()}\n disabled={this.disabled || this.loading}\n type=\"button\"\n >\n <dropi-icon name=\"Calendar\" iconWidth=\"16px\" iconHeight=\"16px\" color=\"Gray-Gray-400\" />\n <span class={{ 'dp-trigger__value': true, 'dp-trigger__placeholder': !this.displayValue }}>\n {this.displayValue || this.placeholder}\n </span>\n <dropi-icon name=\"Arrow-Down-2\" iconWidth=\"12px\" iconHeight=\"12px\" color=\"Gray-Gray-400\" />\n </button>\n\n {/* Calendar popup */}\n {this.open && (\n <div class=\"dp-popup\">\n {/* Navigation */}\n <div class=\"dp-nav\">\n <button class=\"dp-nav__btn\" onClick={() => this.prevMonth()} type=\"button\">\n <dropi-icon name=\"Arrow-Left-2\" iconWidth=\"16px\" iconHeight=\"16px\" color=\"Gray-Gray-600\" />\n </button>\n <span class=\"dp-nav__title\">\n <span>{MONTHS_ES[this.viewMonth]}</span>\n <span>{this.viewYear}</span>\n </span>\n <button class=\"dp-nav__btn\" onClick={() => this.nextMonth()} type=\"button\">\n <dropi-icon name=\"Arrow-Right-2\" iconWidth=\"16px\" iconHeight=\"16px\" color=\"Gray-Gray-600\" />\n </button>\n </div>\n\n {/* Day headers */}\n <div class=\"dp-grid\">\n {DAYS_ES.map(d => (\n <div class=\"dp-day-header\">{d}</div>\n ))}\n\n {/* Day cells */}\n {days.map(({ iso, day, currentMonth }) => {\n const isSelected = this.selectionMode !== 'range'\n ? iso === this.selectedDate\n : iso === this.startDate || iso === this.endDate;\n const isRangeStart = this.selectionMode === 'range' && iso === this.startDate;\n const isRangeEnd = this.selectionMode === 'range' && iso === this.endDate;\n const inRange = this.isInRange(iso);\n const disabled = this.isDisabled(iso);\n const isToday = iso === today;\n\n return (\n <button\n class={{\n 'dp-cell': true,\n 'dp-cell--other-month': !currentMonth,\n 'dp-cell--today': isToday,\n 'dp-cell--selected': isSelected,\n 'dp-cell--range-start': isRangeStart,\n 'dp-cell--range-end': isRangeEnd,\n 'dp-cell--in-range': inRange,\n 'dp-cell--disabled': disabled,\n }}\n type=\"button\"\n disabled={disabled}\n onClick={() => this.selectDate(iso)}\n onMouseEnter={() => { if (this.selectionMode === 'range' && this.startDate && !this.endDate) this.hoverDate = iso; }}\n onMouseLeave={() => this.hoverDate = ''}\n >\n {day}\n </button>\n );\n })}\n </div>\n\n {/* Footer */}\n <div class=\"dp-footer\">\n <button class=\"dp-footer__clear\" type=\"button\" onClick={() => {\n this.selectedDate = ''; this.startDate = ''; this.endDate = '';\n this.open = false;\n }}>\n Limpiar\n </button>\n <button class=\"dp-footer__today\" type=\"button\" onClick={() => {\n if (this.selectionMode !== 'range') { this.selectedDate = today; this.open = false; this.dropiChangeDate.emit(today); }\n else { this.startDate = today; this.endDate = ''; }\n }}>\n Hoy\n </button>\n </div>\n </div>\n )}\n </div>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, d as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, d as createEvent, h } from './index-D0Z06C2b.js';
|
|
2
2
|
|
|
3
|
-
const dropiDrawerCss = () => `:host{display:contents;font-family:'Inter', sans-serif}*,*::before,*::after{box-sizing:border-box}.drawer-host{position:fixed;inset:0;z-index:
|
|
3
|
+
const dropiDrawerCss = () => `:host{display:contents;font-family:'Inter', sans-serif}*,*::before,*::after{box-sizing:border-box}.drawer-host{position:fixed;inset:0;z-index:var(--dropi-z-index-drawer, 9999);pointer-events:none;visibility:hidden}.drawer-host--open{pointer-events:all;visibility:visible}.drawer-backdrop{position:absolute;inset:0;background:rgba(0, 0, 0, 0.5);opacity:0;transition:opacity 0.25s}.drawer-host--open .drawer-backdrop{opacity:1}.drawer-panel{position:absolute;background:var(--Neutral-White, #ffffff);display:flex;flex-direction:column;transition:transform 0.25s ease;overflow:hidden;max-width:100%;min-width:auto}.drawer-panel--right{top:0;right:0;bottom:0;transform:translateX(100%);box-shadow:-4px 0 24px rgba(0, 0, 0, 0.12)}.drawer-host--open .drawer-panel--right{transform:translateX(0)}.drawer-panel--left{top:0;left:0;bottom:0;transform:translateX(-100%);box-shadow:4px 0 24px rgba(0, 0, 0, 0.12)}.drawer-host--open .drawer-panel--left{transform:translateX(0)}.drawer-panel--bottom{bottom:0;left:0;right:0;transform:translateY(100%);border-radius:var(--Border-2, 8px) var(--Border-2, 8px) 0 0;box-shadow:0 -4px 24px rgba(0, 0, 0, 0.12)}.drawer-host--open .drawer-panel--bottom{transform:translateY(0)}.drawer-panel--top{top:0;left:0;right:0;transform:translateY(-100%);border-radius:0 0 var(--Border-2, 8px) var(--Border-2, 8px);box-shadow:0 4px 24px rgba(0, 0, 0, 0.12)}.drawer-host--open .drawer-panel--top{transform:translateY(0)}.drawer-panel--size-m{width:550px}.drawer-panel--size-l{width:1137px}.drawer-panel--size-xl{width:1280px}.drawer-panel--size-xxl{width:1330px}.drawer-header{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--Size-4, 16px) var(--Size-4, 16px) var(--Size-3, 12px);border-bottom:1px solid var(--Gray-Gray-100, #eceef4);flex-shrink:0}.drawer-header--headless{display:none}.drawer-header__title{color:var(--Gray-700, #32394d);font-family:Inter, sans-serif;font-size:24px;font-style:normal;font-weight:700;line-height:110%;margin:0}.drawer-header__close{width:var(--Size-6, 32px);height:var(--Size-6, 32px);background:none;border:none;padding:0;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--Gray-400, #858ea6);border-radius:var(--Border-1, 4px);transition:background 0.15s;flex-shrink:0}.drawer-header__close:hover{background:var(--Gray-Gray-50, #f7f8fa)}.drawer-body{flex:1;overflow-y:auto;padding:var(--Size-4, 16px);display:flex;flex-direction:column}.drawer-footer{display:none}`;
|
|
4
4
|
|
|
5
5
|
const DropiDrawer = class {
|
|
6
6
|
constructor(hostRef) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"dropi-drawer.entry.js","mappings":";;AAAA,MAAM,cAAc,GAAG,MAAM,CAAC,
|
|
1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,QAAQ,EAAA,EACnF,CAAA,CAAA,YAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAY,IAAI,EAAC,aAAa,EAAC,SAAS,EAAC,MAAM,EAAC,UAAU,EAAC,MAAM,EAAC,KAAK,EAAC,eAAe,EAAA,CAAG,CACnF,CACL,EAGN,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAC,aAAa,EAAA,EACtB,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAQ,CACJ,EAGN,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAC,eAAe,EAAA,EACxB,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,QAAQ,EAAA,CAAG,CAClB,CACF,CACF;;;;;;;;;;;;;;;","names":[],"sources":["src/components/dropi-drawer/dropi-drawer.css?tag=dropi-drawer&encapsulation=shadow","src/components/dropi-drawer/dropi-drawer.tsx"],"sourcesContent":[":host { display: contents; font-family: 'Inter', sans-serif; }\n*, *::before, *::after { box-sizing: border-box; }\n\n.drawer-host {\n position: fixed;\n inset: 0;\n z-index: var(--dropi-z-index-drawer, 9999);\n pointer-events: none;\n visibility: hidden;\n}\n.drawer-host--open {\n pointer-events: all;\n visibility: visible;\n}\n\n/* Backdrop */\n.drawer-backdrop {\n position: absolute;\n inset: 0;\n background: rgba(0, 0, 0, 0.5);\n opacity: 0;\n transition: opacity 0.25s;\n}\n.drawer-host--open .drawer-backdrop { opacity: 1; }\n\n/* Panel base */\n.drawer-panel {\n position: absolute;\n background: var(--Neutral-White, #ffffff);\n display: flex;\n flex-direction: column;\n transition: transform 0.25s ease;\n overflow: hidden;\n max-width: 100%;\n min-width: auto;\n}\n\n/* Positions */\n.drawer-panel--right {\n top: 0; right: 0; bottom: 0;\n transform: translateX(100%);\n box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);\n}\n.drawer-host--open .drawer-panel--right { transform: translateX(0); }\n\n.drawer-panel--left {\n top: 0; left: 0; bottom: 0;\n transform: translateX(-100%);\n box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);\n}\n.drawer-host--open .drawer-panel--left { transform: translateX(0); }\n\n.drawer-panel--bottom {\n bottom: 0; left: 0; right: 0;\n transform: translateY(100%);\n border-radius: var(--Border-2, 8px) var(--Border-2, 8px) 0 0;\n box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);\n}\n.drawer-host--open .drawer-panel--bottom { transform: translateY(0); }\n\n.drawer-panel--top {\n top: 0; left: 0; right: 0;\n transform: translateY(-100%);\n border-radius: 0 0 var(--Border-2, 8px) var(--Border-2, 8px);\n box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);\n}\n.drawer-host--open .drawer-panel--top { transform: translateY(0); }\n\n/* Sizes — coinciden con size-m/l/xl/xxl del host */\n.drawer-panel--size-m { width: 550px; }\n.drawer-panel--size-l { width: 1137px; }\n.drawer-panel--size-xl { width: 1280px; }\n.drawer-panel--size-xxl { width: 1330px; }\n\n/* Header */\n.drawer-header {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n padding: var(--Size-4, 16px) var(--Size-4, 16px) var(--Size-3, 12px);\n border-bottom: 1px solid var(--Gray-Gray-100, #eceef4);\n flex-shrink: 0;\n}\n\n.drawer-header--headless {\n display: none;\n}\n\n.drawer-header__title {\n color: var(--Gray-700, #32394d);\n font-family: Inter, sans-serif;\n font-size: 24px;\n font-style: normal;\n font-weight: 700;\n line-height: 110%;\n margin: 0;\n}\n\n.drawer-header__close {\n width: var(--Size-6, 32px);\n height: var(--Size-6, 32px);\n background: none;\n border: none;\n padding: 0;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--Gray-400, #858ea6);\n border-radius: var(--Border-1, 4px);\n transition: background 0.15s;\n flex-shrink: 0;\n}\n.drawer-header__close:hover { background: var(--Gray-Gray-50, #f7f8fa); }\n\n/* Body */\n.drawer-body {\n flex: 1;\n overflow-y: auto;\n padding: var(--Size-4, 16px);\n display: flex;\n flex-direction: column;\n}\n\n/* Footer — oculto por defecto como en el host */\n.drawer-footer {\n display: none;\n}\n","import { Component, Prop, Event, EventEmitter, Watch, h } from '@stencil/core';\n\n/**\n * @component dropi-drawer\n * Slide-in panel from any side of the screen with backdrop.\n * Matches dropi-core_front implementation with size and headless support.\n */\n@Component({\n tag: 'dropi-drawer',\n styleUrl: 'dropi-drawer.css',\n shadow: true,\n})\nexport class DropiDrawer {\n @Prop() drawerTitle: string = '';\n /** Controls visibility (alias of open for Angular parity) */\n @Prop({ mutable: true }) drawerIsOpen: any = false;\n /** Controls visibility */\n @Prop({ mutable: true }) open: any = false;\n /** Side from which the drawer slides in */\n @Prop() position: 'left' | 'right' | 'top' | 'bottom' = 'right';\n /** Preset size (overrides width when set): 'm' | 'l' | 'xl' | 'xxl' */\n @Prop() size: 'm' | 'l' | 'xl' | 'xxl' | '' = '';\n /** Custom width for left/right drawers (used when size is not set) */\n @Prop() width: string = '400px';\n /** Custom height for top/bottom drawers */\n @Prop() height: string = '50vh';\n /** Hide the header (headless mode) */\n @Prop() headless: boolean = false;\n /** Close on backdrop click */\n @Prop() closeOnBackdrop: boolean = true;\n\n /** Emitted when drawer closes */\n @Event() dropiClose: EventEmitter<void>;\n\n @Watch('open')\n @Watch('drawerIsOpen')\n openChanged(val: boolean) {\n this.open = val;\n this.drawerIsOpen = val;\n if (typeof document !== 'undefined') {\n if (val) document.body.classList.add('dropi-modal-open');\n else document.body.classList.remove('dropi-modal-open');\n }\n }\n\n componentWillLoad() {\n if (this.drawerIsOpen) this.open = true;\n if (this.open) this.drawerIsOpen = true;\n }\n\n private close() {\n this.open = false;\n this.dropiClose.emit();\n }\n\n render() {\n const isHorizontal = this.position === 'left' || this.position === 'right';\n\n // Clase de tamaño según prop size\n const sizeClass = this.size ? `drawer-panel--size-${this.size}` : '';\n\n // Estilo inline solo cuando no hay size preset\n const panelStyle: { [key: string]: string } = {};\n if (!this.size) {\n if (isHorizontal) panelStyle['width'] = this.width;\n else panelStyle['height'] = this.height;\n }\n\n return (\n <div class={{ 'drawer-host': true, 'drawer-host--open': this.open }}>\n {/* Backdrop */}\n <div\n class=\"drawer-backdrop\"\n onClick={() => { if (this.closeOnBackdrop) this.close(); }}\n />\n\n {/* Panel */}\n <div\n class={`drawer-panel drawer-panel--${this.position}${sizeClass ? ' ' + sizeClass : ''}`}\n style={panelStyle}\n role=\"dialog\"\n aria-modal=\"true\"\n >\n {/* Header */}\n <div class={{ 'drawer-header': true, 'drawer-header--headless': this.headless }}>\n <h3 class=\"drawer-header__title\">{this.drawerTitle}</h3>\n <button class=\"drawer-header__close\" onClick={() => this.close()} aria-label=\"Cerrar\">\n <dropi-icon name=\"Close-small\" iconWidth=\"32px\" iconHeight=\"32px\" color=\"Gray-Gray-400\" />\n </button>\n </div>\n\n {/* Body */}\n <div class=\"drawer-body\">\n <slot />\n </div>\n\n {/* Footer — hidden by default matching host */}\n <div class=\"drawer-footer\">\n <slot name=\"footer\" />\n </div>\n </div>\n </div>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, d as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, d as createEvent, h } from './index-D0Z06C2b.js';
|
|
2
2
|
|
|
3
3
|
const dropiDropdownCss = () => `:host{display:block;width:100%}*,*::before,*::after{box-sizing:border-box}.dropdown{display:flex;flex-direction:column;overflow-y:auto;max-height:var(--dropdown-height, 300px);border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);background:var(--Neutral-White, #ffffff)}.dropdown__item{display:flex;align-items:center;gap:var(--Size-2, 8px);padding:var(--Size-2, 8px) var(--Size-3, 12px);cursor:pointer;transition:background 0.15s;user-select:none}.dropdown__item:hover{background:var(--Gray-Gray-50, #f7f8fa)}.dropdown__item--active{background:var(--Primary-Primary-50, #fff5eb)}.dropdown__avatar{width:28px;height:28px;border-radius:50%;object-fit:cover;flex-shrink:0}.dropdown__label{flex:1;font-size:var(--font-size-s, 12px);color:var(--Gray-Gray-700, #32394d);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}`;
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, d as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, d as createEvent, h } from './index-D0Z06C2b.js';
|
|
2
2
|
|
|
3
3
|
const dropiEmptyStateCss = () => `:host{display:block}*,*::before,*::after{box-sizing:border-box}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--Size-3, 12px);padding:var(--Size-6, 32px) var(--Size-5, 20px);text-align:center}.empty-state-img{max-width:200px;width:100%;height:auto;object-fit:contain;filter:brightness(0) saturate(100%) invert(73%) sepia(9%) saturate(503%) hue-rotate(187deg) brightness(91%) contrast(88%)}.empty-state-svg{width:80px;height:80px}.empty-state-placeholder{display:flex;align-items:center;justify-content:center}.empty-state-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.3}.empty-state-description{margin:0;font-size:var(--font-size-s, 12px);color:var(--Gray-Gray-500, #69738c);line-height:1.6;max-width:400px}.empty-state-actions{display:flex;align-items:center;gap:var(--Size-3, 12px);flex-wrap:wrap;justify-content:center;margin-top:var(--Size-2, 8px)}`;
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, d as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, d as createEvent, h } from './index-D0Z06C2b.js';
|
|
2
2
|
|
|
3
3
|
const dropiFavoriteButtonCss = () => `:host{display:inline-flex}.fav-btn{display:flex;align-items:center;justify-content:center;width:37px;height:37px;border-radius:8px;border:1px solid var(--Gray-Gray-200);background:var(--Neutral-White);cursor:pointer;transition:all 0.2s ease-in-out}.fav-btn:hover,.fav-btn--active{background:var(--Gray-Gray-50)}.fav-btn:active{transform:scale(0.95)}`;
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, d as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, d as createEvent, h } from './index-D0Z06C2b.js';
|
|
2
2
|
|
|
3
3
|
const dropiFileUploadProgressBarCss = () => `:host{display:block;width:100%}*,*::before,*::after{box-sizing:border-box}.container-progress-bar{width:100%;height:100%;display:flex;padding:var(--Size-4);gap:var(--Size-3);border-radius:var(--Size-2);border:1px solid var(--Gray-Gray-100);background-color:var(--Neutral-White);min-width:0;overflow:hidden;align-items:center}.container-icon-info{background:var(--Info-Info-50);width:32px;height:32px;border-radius:var(--Size-2);display:flex;justify-content:center;align-items:center;flex-shrink:0}.icon-pdf{background:var(--Error-Error-50);border-radius:var(--Border-2);width:34px;height:34px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.image-to-view{width:34px;height:34px;border-radius:var(--Border-2);object-fit:cover;flex-shrink:0}.container-bar-title{display:flex;gap:8px;flex:1;flex-direction:column;justify-content:center;min-width:0;p{margin:0;font-size:var(--font-size-s);color:var(--Gray-Gray-700);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}}progress{width:100%;height:4px;-webkit-appearance:none;appearance:none;border-radius:4.5px;max-width:100%;display:block}progress::-webkit-progress-bar{background-color:var(--Gray-Gray-100);border-radius:4.5px}progress::-webkit-progress-value{background-color:var(--Primary-Primary-500);border-radius:4.5px;transition:width 0.3s ease}progress::-moz-progress-bar{background-color:var(--Primary-Primary-500);border-radius:4.5px}.view-icon,.container-icon-trash{cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;padding:4px;border-radius:var(--Border-1);transition:background 0.2s}.view-icon:hover,.container-icon-trash:hover{background-color:var(--Gray-Gray-50)}`;
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, d as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, d as createEvent, h } from './index-D0Z06C2b.js';
|
|
2
2
|
|
|
3
3
|
const dropiFileUploadCss = () => `:host{display:block;width:100%}*,*::before,*::after{box-sizing:border-box}.upload-container{display:flex;flex-direction:column;gap:var(--Size-3, 12px);width:100%}.upload-header{display:flex;flex-direction:column;gap:var(--Size-1, 4px);align-items:flex-start;align-self:stretch}.upload-header .text{color:var(--Gray-Gray-600, #475066);font-size:var(--font-size-xs, 12px);font-style:normal;line-height:150%}.upload-header .title{font-weight:var(--font-weight-medium, 500)}.upload-header .label{font-weight:var(--font-weight-regular, 400)}.file-upload{display:flex;width:100%;flex-direction:column;justify-content:center;align-items:center;gap:var(--Size-3, 12px);background:var(--Neutral-White, #ffffff)}.file-upload__zone{display:flex;padding:var(--Size-5, 24px);flex-direction:column;justify-content:center;align-items:center;gap:var(--Size-6, 32px);align-self:stretch;border-radius:var(--Border-2, 8px);border:1px dashed var(--Gray-Gray-200, #c3c9d9);background:var(--Neutral-White, #ffffff);text-align:center;transition:border-color 0.3s ease}.file-upload__zone.drag-over{border:1px dashed var(--Primary-Primary-500, #f49a3d);background:var(--Primary-Primary-50, #fef8f1)}.info{display:flex;flex-direction:column;align-items:center;gap:var(--Size-2, 8px);align-self:stretch}.info .title{color:var(--Gray-Gray-700, #32394d);text-align:center;font-size:var(--font-size-m, 16px);font-weight:var(--font-weight-medium, 500);line-height:150%}.info.size-small-upload{flex-direction:row;gap:var(--Size-3, 12px)}.info-desc{display:flex;flex-direction:column;align-items:center;gap:var(--Size-1, 4px)}.description{color:var(--Gray-Gray-600, #475066);text-align:center;font-size:var(--font-size-s, 14px);font-style:normal;font-weight:var(--font-weight-regular, 400);line-height:150%}.upload-hidden{display:none}.files-container{display:flex;flex-direction:column;gap:var(--Size-3, 12px)}.grid-list{display:flex;align-items:flex-start;gap:var(--Size-5, 24px);align-self:stretch;flex-wrap:wrap}.add-img{display:flex;height:88px;width:88px;flex-direction:column;justify-content:center;align-items:center;gap:var(--Size-1, 4px);align-self:stretch;border-radius:var(--Border-2, 8px);background:var(--Gray-Gray-50, #f7f8fa);cursor:pointer}.add-img:hover{transform:scale(1.1)}.add-img .icon{display:flex;width:24px;height:24px;padding:4px;justify-content:center;align-items:center;flex-shrink:0;border-radius:var(--Border-3, 12px);background:var(--Gray-Gray-100, #e6eaf2)}.add-img .text{color:var(--Gray-Gray-600, #475066);text-align:center;font-size:var(--font-size-xs, 12px);font-style:normal;font-weight:var(--font-weight-regular, 400);line-height:150%}.card-list{display:flex;flex-direction:column;align-items:flex-start;gap:var(--Size-3, 12px);align-self:stretch;width:100%}.file-card{display:flex;padding:var(--Size-4, 16px);align-items:center;gap:var(--Size-3, 12px);align-self:stretch;border-radius:var(--Border-2, 8px);border:1px solid var(--Gray-Gray-100, #e6eaf2);background:var(--Neutral-White, #ffffff);width:100%}.file-card.error{border-color:var(--Error-Error-300, #f89b9c);background:var(--Error-Error-50, #fef0f0)}.file-card .preview-wrapper{width:34px;height:34px;position:relative;display:inline-block;border-radius:var(--Border-2, 8px);overflow:hidden;flex-shrink:0}.file-card .preview{width:100%;height:100%;object-fit:cover;flex-shrink:0}.file-card .preview.uploading{filter:blur(2px)}.file-card .overlay-icon{width:16px;height:16px;padding:4px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex;justify-content:center;align-items:center;flex-shrink:0;border-radius:var(--Border-3, 12px);background:var(--Neutral-White, #ffffff)}.file-card .file-icon{flex-shrink:0}.file-card .info-container{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:var(--Size-2, 8px);flex:1 0 0;min-width:0}.file-card .file-name{overflow:hidden;color:var(--Gray-Gray-600, #475066);text-overflow:ellipsis;font-size:var(--font-size-xs, 12px);font-style:normal;font-weight:var(--font-weight-regular, 400);line-height:150%;white-space:nowrap;max-width:300px}.file-card .file-name.error-text{color:var(--Error-Error-500, #f46a6b)}.file-card .progress-bar-container{width:100%;height:4px;background-color:#f0f0f0;border-radius:4px;overflow:hidden}.file-card .progress-bar{height:100%;border-radius:4.5px;background:var(--Primary-Primary-500, #f49a3d);transition:width 0.3s ease}.file-card .error-label{color:var(--Error-Error-500, #f46a6b);font-size:11px;font-weight:var(--font-weight-regular, 400);line-height:150%}.file-card .deleting-container{display:flex;align-items:center;flex:1 0 0}.file-card .deleting-label{color:var(--Gray-Gray-500, #69738c);font-size:var(--font-size-xs, 12px);font-style:italic;font-weight:var(--font-weight-regular, 400);line-height:150%}.file-card .delete,.file-card .preview-image{display:inline-flex;align-items:center;justify-content:center;transition:transform 0.3s ease;border-radius:var(--Border-2, 8px);flex-shrink:0;cursor:pointer}.file-card .delete:hover,.file-card .preview-image:hover{transform:scale(1.1)}.file-card .delete-confirm{color:var(--Gray-Gray-600, #475066);font-size:var(--font-size-xs, 12px);font-style:normal;font-weight:var(--font-weight-medium, 500);line-height:150%;display:flex;justify-content:space-between;align-items:center;align-self:stretch;flex:1 0 0}.file-card .delete-confirm .message{flex:1}.file-card .delete-confirm .actions{display:flex;align-items:flex-start;gap:var(--Size-2, 8px)}.img-view{display:flex;width:88px;flex-direction:column;justify-content:center;align-items:flex-start;gap:var(--Size-2, 8px)}.img-view .preview-wrapper{position:relative;display:inline-block;width:88px;height:88px}.img-view .preview-container{border-radius:var(--Border-2, 8px);overflow:hidden;width:100%;height:100%}.img-view .preview{width:100%;height:100%;object-fit:cover;flex-shrink:0}.img-view .preview.uploading{filter:blur(2px)}.img-view .overlay-icon{width:24px;height:24px;padding:6px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none;display:flex;justify-content:center;align-items:center;flex-shrink:0;border-radius:var(--Border-3, 12px);background:var(--Neutral-White, #ffffff)}.img-view .delete{position:absolute;top:-12px;right:-9px;display:flex;justify-content:center;align-items:center;flex-shrink:0;border-radius:var(--Border-3, 12px);background:var(--Neutral-White, #ffffff);cursor:pointer}.img-view .delete:hover{transform:scale(1.1)}.img-view.error .preview-wrapper{border:2px solid var(--Error-Error-500, #f46a6b);border-radius:var(--Border-2, 8px)}.img-view.deleting .preview-wrapper{opacity:0.4}.img-view .progress-bar-container{width:100%;height:4px;background-color:#f0f0f0;border-radius:4px;overflow:hidden}.img-view .progress-bar{height:100%;border-radius:4.5px;background:var(--Primary-Primary-500, #f49a3d);transition:width 0.3s ease}.img-view .deleting-info{width:100%;text-align:center}.img-view .deleting-info-label{color:var(--Gray-Gray-500, #69738c);font-size:var(--font-size-xxs, 10px);font-style:italic;font-weight:var(--font-weight-regular, 400);line-height:150%}@media screen and (max-width: 599px){.info.size-small-upload{flex-wrap:wrap;justify-content:center}.file-card .file-name{max-width:100px}}`;
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, a as getElement, h } from './index-
|
|
1
|
+
import { r as registerInstance, a as getElement, h } from './index-D0Z06C2b.js';
|
|
2
2
|
|
|
3
3
|
const dropiIconCss = () => `:host{display:inline-flex;align-items:center;justify-content:center;fill:var(--icon-fill, currentColor);overflow:hidden}svg{fill:inherit;stroke:var(--icon-fill, currentColor);stroke-width:var(--icon-stroke-width, 0);display:block;width:100%;height:100%;vertical-align:middle}.spin{animation:spin 1s linear infinite}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}`;
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-D0Z06C2b.js';
|
|
2
2
|
|
|
3
3
|
const dropiIlustrationIconCss = () => `:host{display:inline-flex}.dropi-ilustration{display:inline-flex;align-items:center;justify-content:center}.dropi-ilustration__image,.dropi-ilustration-insignia{margin:0;display:flex;align-items:center;justify-content:center}.dropi-ilustration__image img{max-width:100%;height:auto}.dropi-ilustration__image-mb{width:60px;height:60px;display:flex;align-items:center;justify-content:center;border-radius:50%;margin:0}.dropi-ilustration__image-mb.success{background:var(--Success-Success-500, #22c55e)}.dropi-ilustration__image-mb.error{background:var(--Error-Error-500, #ef4444)}.dropi-ilustration__image-mb.info{background:var(--Info-Info-500, #3b82f6)}.dropi-ilustration__image-mb.warning{background:url('assets/icons/ilustration/bg-warning.svg') no-repeat center;background-size:contain;border-radius:0}.dropi-ilustration-insignia-tag{display:flex;align-items:center;margin:0}.dropi-ilustration-insignia-tag img{position:relative;z-index:2;height:32px;width:auto}.tag{border-radius:32px;color:var(--Neutral-White, #ffffff);text-transform:capitalize;margin:0 0 0 -20px;display:flex;align-items:center;justify-content:flex-start}.tag span{color:var(--Neutral-White, #ffffff);padding:4px 8px 4px 18px;font-size:var(--font-size-xxs)}.tag--verified{background:linear-gradient(90deg, #ffc10d 41.3%, #ff6102 112.32%)}.tag--premium{background:linear-gradient(90deg, #ff6102 56.52%, #ffc10d 107.25%)}.tag--exclusive{background:linear-gradient(90deg, var(--Gray-900, #0e111a) 26.09%, #ff6102 116.67%)}`;
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, d as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, d as createEvent, h } from './index-D0Z06C2b.js';
|
|
2
2
|
|
|
3
3
|
const dropiImageMiniatureCss = () => `:host{display:block}*,*::before,*::after{box-sizing:border-box}.miniature__label{display:block;font-size:var(--font-size-xs, 10px);color:var(--Gray-Gray-600, #475066);margin-bottom:var(--Size-2, 8px)}.miniature__grid{display:flex;flex-wrap:wrap;gap:var(--Size-2, 8px)}.miniature__item{position:relative;border-radius:var(--Border-2, 8px);overflow:hidden;cursor:pointer;flex-shrink:0}.miniature__item img{width:100%;height:100%;object-fit:cover;display:block;transition:transform 0.2s}.miniature__zoom{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,0.35);opacity:0;transition:opacity 0.2s}.miniature__item:hover img{transform:scale(1.05)}.miniature__item:hover .miniature__zoom{opacity:1}`;
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, d as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, d as createEvent, h } from './index-D0Z06C2b.js';
|
|
2
2
|
|
|
3
3
|
const dropiImageOverlayCss = () => `:host{display:block}.overlay{position:fixed;inset:0;background:rgba(0,0,0,0.92);display:flex;justify-content:center;align-items:center;z-index:9999;animation:fade-in 0.3s ease-out}.overlay__close{position:absolute;top:24px;right:24px;background:rgba(255, 255, 255, 0.1);border:none;border-radius:50%;width:48px;height:48px;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:10010;transition:background 0.15s}.overlay__close:hover{background:rgba(255, 255, 255, 0.2)}.overlay__body{display:flex;width:90%;height:80%;max-width:1200px;gap:32px;align-items:center}.overlay__body--single{justify-content:center}.overlay__thumbs{display:flex;flex-direction:column;gap:12px;height:100%;overflow-y:auto;padding-right:8px;width:100px;flex-shrink:0}.overlay__thumbs::-webkit-scrollbar{width:4px}.overlay__thumbs::-webkit-scrollbar-thumb{background:var(--Gray-Gray-600);border-radius:4px}.overlay__thumb-box{width:80px;height:80px;border:2px solid transparent;border-radius:8px;overflow:hidden;cursor:pointer;flex-shrink:0;transition:border-color 0.2s}.overlay__thumb-box--active{border-color:var(--Primary-Primary-500, #f49a3d)}.overlay__thumb-img{width:100%;height:100%;object-fit:cover}.overlay__content{flex:1;height:100%;position:relative;display:flex;justify-content:center;align-items:center}.overlay__main-image{max-width:100%;max-height:100%;object-fit:contain;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,0.5);animation:scale-up 0.3s ease-out}.overlay__nav{position:absolute;top:50%;transform:translateY(-50%);background:rgba(255, 255, 255, 0.1);border:none;border-radius:50%;width:48px;height:48px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background 0.2s;z-index:5}.overlay__nav:hover{background:rgba(255, 255, 255, 0.2)}.overlay__nav--prev{left:-24px}.overlay__nav--next{right:-24px;background:var(--Neutral-White)}.overlay__nav--next:hover{background:var(--Neutral-White)}@keyframes fade-in{from{opacity:0}to{opacity:1}}@keyframes scale-up{from{transform:scale(0.9);opacity:0}to{transform:scale(1);opacity:1}}`;
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, d as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, d as createEvent, h } from './index-D0Z06C2b.js';
|
|
2
2
|
|
|
3
3
|
const dropiInputCss = () => `:host{display:block;width:100%}*,*::before,*::after{box-sizing:border-box}.fixed-label-container{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:8px}.input-label{color:var(--Gray-Gray-600, #475066);font-size:var(--font-size-xs, 10px);font-weight:var(--font-weight-regular, 400);text-align:left}.asterisk{color:var(--Error-Error-500, #f46a6b)}.form-group{position:relative;width:100%}.input-container{position:relative}.icon-input{position:absolute;top:50%;left:12px;transform:translateY(-50%);z-index:1;display:flex;align-items:center;justify-content:center}.icon-input-password{position:absolute;top:50%;right:13px;transform:translateY(-50%);cursor:pointer;z-index:1;display:flex;align-items:center;justify-content:center}.form-control{box-sizing:border-box;width:100%;padding:var(--Size-2, 8px);border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);background:var(--Neutral-White, #ffffff);font-size:var(--font-size-s, 12px);font-family:inherit;color:var(--Gray-Gray-700, #32394d);transition:border-color 0.3s ease-in-out;height:40px;outline:none;appearance:none;text-align:left}.form-control::placeholder{color:transparent;transition:color 0.2s ease-in-out}.form-control:focus::placeholder,.fixed-label-input::placeholder{color:var(--Gray-Gray-400, #858ea6)}.form-control:focus{border-color:var(--Info-Info-500, #50a5f1)}.form-control-valid{border-color:var(--Gray-Gray-400, #858ea6) !important;color:var(--Gray-Gray-600, #475066)}.form-control-invalid{border-color:var(--Error-Error-500, #f46a6b) !important;color:var(--Gray-Gray-600, #475066)}.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}.padding-icon{padding-left:40px}.input-container--has-icon label.label-bottom{left:40px}.input-container--has-icon .form-control:focus+label.label-bottom,.input-container--has-icon .form-control:not(:placeholder-shown)+label.label-bottom{left:0}.text-password{-webkit-text-security:disc;text-security:disc}label.label-bottom{position:absolute;font-weight:var(--font-weight-regular, 400);top:10px;font-size:var(--font-size-s, 12px);color:var(--Gray-Gray-500, #69738c);left:10px;transition:all 0.2s ease-in-out;pointer-events:none;overflow:hidden;width:90%;white-space:nowrap}.form-control:focus+label.label-bottom,.form-control:not(:placeholder-shown)+label.label-bottom{top:-22px;left:0;font-size:var(--font-size-xs, 10px);color:var(--Gray-Gray-600, #475066);width:unset}.form-control:disabled+label.label-bottom{color:var(--Gray-Gray-400, #858ea6)}.form-control-helper{display:flex;position:absolute;top:100%;left:0;gap:4px;align-items:center;margin-top:4px}.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}.disabled-helper{color:var(--Gray-Gray-400, #858ea6) !important}.disabled-helper{color:var(--Gray-Gray-400, #858ea6) !important}`;
|
|
4
4
|
|
|
@@ -153,6 +153,7 @@ const DropiInput = class {
|
|
|
153
153
|
this.value = val;
|
|
154
154
|
this.internals.setFormValue(val);
|
|
155
155
|
this.dropiInput.emit(val);
|
|
156
|
+
this.dropiChange.emit(val);
|
|
156
157
|
}
|
|
157
158
|
handleKeyDown(e) {
|
|
158
159
|
if ((this.isNumericInput || this.isMoneyInput || this.isThousandSeparator) && !this.isAllowedNumberKey(e)) {
|
|
@@ -167,7 +168,6 @@ const DropiInput = class {
|
|
|
167
168
|
}
|
|
168
169
|
handleBlur() {
|
|
169
170
|
this.touched = true;
|
|
170
|
-
this.dropiChange.emit(this.value);
|
|
171
171
|
this.dropiBlur.emit();
|
|
172
172
|
}
|
|
173
173
|
togglePassword() {
|
|
@@ -233,14 +233,14 @@ const DropiInput = class {
|
|
|
233
233
|
render() {
|
|
234
234
|
const showObligatoryAsterisk = this.required && this.showObligatoryAsterisk && !this.disabled;
|
|
235
235
|
const showIconInline = !!this.icon;
|
|
236
|
-
return (h("div", { key: '
|
|
236
|
+
return (h("div", { key: '6af757e1d86bfe96d471e9cbed258a50727ae190', class: { 'fixed-label-container': this.fixedLabel } }, this.fixedLabel && (h("div", { key: 'e88bf81fd2b79933e386c2e5fa38f57d85cfe836', class: "input-label Body-S-Regular" }, this.label, showObligatoryAsterisk && h("span", { key: 'be8ec1b0d3ef624ca22e58ae072917ad2ecc79fb', class: "asterisk" }, " *"))), h("div", { key: '4806c0d250f00bb08788d9d6aa935ca15f2aa826', class: "form-group" }, h("div", { key: 'b9fa243d299bcd165458947d6695fcc845764276', class: { 'input-container': true, 'input-container--has-icon': showIconInline } }, showIconInline && (h("dropi-icon", { key: '92b3cf11803745784f13e908ea88992f76c74473', class: "icon-input", name: this.icon, color: this.iconColor, iconWidth: "20px", iconHeight: "20px", style: { width: '20px', height: '20px' } })), this.passwordInput && (h("dropi-icon", { key: 'c7dc725d577a6d4afb7f87c8b53b16c621de9e86', class: "icon-input-password", name: this.showPassword ? 'Eye' : 'Eye-crossed', iconWidth: "20px", iconHeight: "20px", style: { width: '20px', height: '20px' }, color: "Gray-Gray-500", onClick: () => this.togglePassword() })), h("input", { key: '8146ae1794cbe1f200bb681358c7319f10faab3c', id: this.resolvedId, class: {
|
|
237
237
|
'form-control': true,
|
|
238
238
|
'form-control-valid': !this.isInvalid && this.touched && !!this.value,
|
|
239
239
|
'form-control-invalid': this.isInvalid,
|
|
240
240
|
'padding-icon': showIconInline,
|
|
241
241
|
'text-password': this.passwordInput && !this.showPassword,
|
|
242
242
|
'fixed-label-input': this.fixedLabel,
|
|
243
|
-
}, type: this.inputType, value: this.value, placeholder: this.fixedLabel ? this.placeholder : ' ', disabled: this.disabled, required: this.required, maxLength: this.maxLength, inputMode: this.inputMode, "data-cy": undefined, onInput: e => this.handleInput(e), onKeyDown: e => this.handleKeyDown(e), onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur() }), !this.fixedLabel && (h("label", { key: '
|
|
243
|
+
}, type: this.inputType, value: this.value, placeholder: this.fixedLabel ? this.placeholder : ' ', disabled: this.disabled, required: this.required, maxLength: this.maxLength, inputMode: this.inputMode, "data-cy": undefined, onInput: e => this.handleInput(e), onKeyDown: e => this.handleKeyDown(e), onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur() }), !this.fixedLabel && (h("label", { key: '005d15af6b50b2cb2d47ac8381a722794eb273e5', class: "Body-S-Regular label-bottom", htmlFor: this.resolvedId }, this.label, showObligatoryAsterisk && h("span", { key: 'ad56df877cff3df8a801cdfcb607d9af02f7465a', class: "asterisk" }, " *"))), this.showHelper && (h("div", { key: '76e858c13a798f69b2d20ee9908f17531568dad1', class: "form-control-helper" }, this.isInvalid && h("dropi-icon", { key: '3e42ffb4db7444ebfb49cc9c6720d5a9d02b2860', name: "Warning-circle", iconWidth: "12px", iconHeight: "12px", color: "Error-Error-500" }), h("span", { key: '5e970903eb51ca6b72a43bef0edf6ef149443247', class: {
|
|
244
244
|
'disabled-helper': this.disabled,
|
|
245
245
|
'invalid-color': this.isInvalid,
|
|
246
246
|
} }, this.textHelper)))))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"dropi-input.entry.js","mappings":";;AAAA,MAAM,aAAa,GAAG,MAAM,CAAC,k+FAAk+F,CAAC;;MCyBn/F,UAAU,GAAA,MAAA;;;;;;;;;;;;;;;AACF,IAAA,SAAS;;;IAIH,OAAO,GAAW,EAAE;;IAErC,IAAI,GAAW,EAAE;;;IAIA,KAAK,GAAW,EAAE;;IAElB,WAAW,GAAW,GAAG;;IAEzB,KAAK,GAAW,EAAE;;AAElB,IAAA,SAAS;;;IAIT,QAAQ,GAAY,KAAK;;IAEzB,QAAQ,GAAY,KAAK;;IAEzB,sBAAsB,GAAY,IAAI;;IAEvD,UAAU,GAAY,KAAK;;IAEV,SAAS,GAAc,MAAM;;;IAI7B,aAAa,GAAY,KAAK;;IAE9B,YAAY,GAAY,KAAK;;IAE7B,mBAAmB,GAAY,KAAK;;IAEpC,cAAc,GAAY,KAAK;;IAE/B,aAAa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AS,EAAE,CAAC,IAAI,IAAI,CAAC,aAAa,CAAC,CAAkB,CAAC,EACtD,OAAO,EAAE,MAAM,IAAI,CAAC,WAAW,EAAE,EACjC,MAAM,EAAE,MAAM,IAAI,CAAC,UAAU,EAAE,EAAA,CAC/B,EAGD,CAAC,IAAI,CAAC,UAAU,KACf,CAAA,CAAA,OAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAO,KAAK,EAAC,6BAA6B,EAAC,OAAO,EAAE,IAAI,CAAC,UAAU,EAAA,EAChE,IAAI,CAAC,KAAK,EACV,sBAAsB,IAAI,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,KAAK,EAAC,UAAU,EAAA,EAAA,IAAA,CAAU,CACrD,CACT,EAGA,IAAI,CAAC,UAAU,KACd,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAC,qBAAqB,EAAA,EAC7B,IAAI,CAAC,SAAS,IAAI,mEAAY,IAAI,EAAC,gBAAgB,EAAC,SAAS,EAAC,MAAM,EAAC,UAAU,EAAC,MAAM,EAAC,KAAK,EAAC,iBAAiB,EAAA,CAAG,EAClH,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,KAAK,EAAE;gBACL,iBAAiB,EAAE,IAAI,CAAC,QAAQ;gBAChC,eAAe,EAAE,IAAI,CAAC,SAAS;aAChC,EAAA,EAEA,IAAI,CAAC,UAAU,CACX,CACH,CACP,CACG,CACF,CACF;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/dropi-input/dropi-input.css?tag=dropi-input&encapsulation=shadow","src/components/dropi-input/dropi-input.tsx"],"sourcesContent":[":host {\n display: block;\n width: 100%;\n}\n\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\n/* ── Fixed label layout ────────────────────────────────────── */\n.fixed-label-container {\n display: flex;\n width: 100%;\n flex-direction: column;\n align-items: flex-start;\n gap: 8px;\n}\n\n.input-label {\n color: var(--Gray-Gray-600, #475066);\n font-size: var(--font-size-xs, 10px);\n font-weight: var(--font-weight-regular, 400);\n text-align: left;\n}\n\n.asterisk {\n color: var(--Error-Error-500, #f46a6b);\n}\n\n/* ── Form group / container ────────────────────────────────── */\n.form-group {\n position: relative;\n width: 100%;\n}\n\n.input-container {\n position: relative;\n}\n\n/* ── Icons ─────────────────────────────────────────────────── */\n.icon-input {\n position: absolute;\n top: 50%;\n left: 12px;\n transform: translateY(-50%);\n z-index: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.icon-input-password {\n position: absolute;\n top: 50%;\n right: 13px;\n transform: translateY(-50%);\n cursor: pointer;\n z-index: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n/* ── Base input ─────────────────────────────────────────────── */\n.form-control {\n box-sizing: border-box;\n width: 100%;\n padding: var(--Size-2, 8px);\n border: 1px solid var(--Gray-Gray-200, #c3c9d9);\n border-radius: var(--Border-2, 8px);\n background: var(--Neutral-White, #ffffff);\n font-size: var(--font-size-s, 12px);\n font-family: inherit;\n color: var(--Gray-Gray-700, #32394d);\n transition: border-color 0.3s ease-in-out;\n height: 40px;\n outline: none;\n appearance: none;\n text-align: left;\n}\n\n.form-control::placeholder {\n color: transparent;\n transition: color 0.2s ease-in-out;\n}\n\n/* Show placeholder only on focus or in fixedLabel mode */\n.form-control:focus::placeholder,\n.fixed-label-input::placeholder {\n color: var(--Gray-Gray-400, #858ea6);\n}\n\n.form-control:focus {\n border-color: var(--Info-Info-500, #50a5f1);\n}\n\n.form-control-valid {\n border-color: var(--Gray-Gray-400, #858ea6) !important;\n color: var(--Gray-Gray-600, #475066);\n}\n\n.form-control-invalid {\n border-color: var(--Error-Error-500, #f46a6b) !important;\n color: var(--Gray-Gray-600, #475066);\n}\n\n.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.padding-icon {\n padding-left: 40px;\n}\n\n/* When icon is always visible, shift the floating label right to avoid overlap */\n.input-container--has-icon label.label-bottom {\n left: 40px;\n}\n\n/* When focused or has value, float up to left: 0 regardless */\n.input-container--has-icon .form-control:focus + label.label-bottom,\n.input-container--has-icon .form-control:not(:placeholder-shown) + label.label-bottom {\n left: 0;\n}\n\n/* Password: hide characters via CSS (no type=password needed for font trick) */\n.text-password {\n -webkit-text-security: disc;\n text-security: disc;\n}\n\n/* ── Floating label ─────────────────────────────────────────── */\nlabel.label-bottom {\n position: absolute;\n font-weight: var(--font-weight-regular, 400);\n top: 10px;\n font-size: var(--font-size-s, 12px);\n color: var(--Gray-Gray-500, #69738c);\n left: 10px;\n transition: all 0.2s ease-in-out;\n pointer-events: none;\n overflow: hidden;\n width: 90%;\n white-space: nowrap;\n}\n\n/* Float up when focused or has value */\n.form-control:focus+label.label-bottom,\n.form-control:not(:placeholder-shown)+label.label-bottom {\n top: -22px;\n left: 0;\n font-size: var(--font-size-xs, 10px);\n color: var(--Gray-Gray-600, #475066);\n width: unset;\n}\n\n.form-control:disabled+label.label-bottom {\n color: var(--Gray-Gray-400, #858ea6);\n}\n\n/* ── Helper text ────────────────────────────────────────────── */\n.form-control-helper {\n display: flex;\n position: absolute;\n top: 100%;\n left: 0;\n gap: 4px;\n align-items: center;\n margin-top: 4px;\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\n.disabled-helper {\n color: var(--Gray-Gray-400, #858ea6) !important;\n}\n\n.disabled-helper {\n color: var(--Gray-Gray-400, #858ea6) !important;\n}","import { Component, Prop, State, Event, EventEmitter, AttachInternals, Watch, h } from '@stencil/core';\n\nexport type InputMode = 'text' | 'numeric' | 'decimal' | 'tel' | 'email' | 'url' | 'search';\n\n/**\n * @component dropi-input\n * Text input with floating label, validation states, password toggle,\n * number/letter restrictions, thousand separator, and native form association.\n *\n * ## Form usage (native HTML form)\n * ```html\n * <form>\n * <dropi-input name=\"email\" label=\"Email\" required></dropi-input>\n * </form>\n * ```\n *\n * ## Controlled usage (React / Vue / Angular)\n * Pass `value` and listen to `dropiInput` to update.\n */\n@Component({\n tag: 'dropi-input',\n styleUrl: 'dropi-input.css',\n shadow: true,\n formAssociated: true,\n})\nexport class DropiInput {\n @AttachInternals() internals: ElementInternals;\n\n // ── Identification ──────────────────────────────────────────\n /** Input id. Defaults to label label. */\n @Prop({ mutable: true }) inputId: string = '';\n /** Name attribute for native form submission */\n @Prop() name: string = '';\n\n // ── Content ─────────────────────────────────────────────────\n /** Floating or fixed label text */\n @Prop({ mutable: true }) label: string = '';\n /** Placeholder text (visible in fixedLabel mode or on focus) */\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\n // ── Behavior ────────────────────────────────────────────────\n /** Disable the input */\n @Prop({ reflect: true }) disabled: boolean = false;\n /** Mark as required (shows asterisk when showObligatoryAsterisk is true) */\n @Prop({ reflect: true }) required: boolean = false;\n /** Show the required asterisk on the label */\n @Prop({ mutable: true }) showObligatoryAsterisk: boolean = true;\n /** Show label above the input (fixed), instead of floating inside */\n @Prop() fixedLabel: boolean = false;\n /** Keyboard input mode hint */\n @Prop({ mutable: true }) inputMode: InputMode = 'text';\n\n // ── Input type modifiers ────────────────────────────────────\n /** Show password visibility toggle (renders as password field) */\n @Prop({ mutable: true }) passwordInput: boolean = false;\n /** Apply thousand separator formatting (e.g. 1,000,000) */\n @Prop({ mutable: true }) isMoneyInput: boolean = false;\n /** Apply thousand separator without currency symbol */\n @Prop({ mutable: true }) isThousandSeparator: boolean = false;\n /** Only allow numeric characters */\n @Prop({ mutable: true }) isNumericInput: boolean = false;\n /** Allow decimal point when isNumericInput is true */\n @Prop({ mutable: true }) allowDecimals: boolean = false;\n /** Only allow letter characters */\n @Prop({ mutable: true }) isLettersOnly: boolean = false;\n\n // ── Icon ────────────────────────────────────────────────────\n /** Icon name shown inside the input (only visible when value is not empty) */\n @Prop({ mutable: true }) icon: string = '';\n /** Color token for the icon */\n @Prop({ mutable: true }) iconColor: string = 'Gray-Gray-400';\n\n // ── Validation ──────────────────────────────────────────────\n /** Mark the field as invalid (consumer-controlled) */\n @Prop({ mutable: true }) hasError: boolean = false;\n /** Helper / error text shown below the field */\n @Prop({ mutable: true }) textHelper: string = '';\n /** Only show textHelper when the field is invalid */\n @Prop({ mutable: true }) showHelperOnlyOnError: boolean = false;\n\n // ── Angular-parity ──────────────────────────────────────────\n /**\n * Convenience object prop — matches Angular `inputProperties: InputProperties`.\n * Fields: id, label, placeholder, maxLength, textHelper, passwordInput,\n * icon, iconColor, isMoneyInput, showObligatoryAsterisk, isNumericInput,\n * allowDecimals, isThousandSeparator, showHelperOnlyOnError,\n * isLettersOnly, inputMode.\n * Note: `formControl` is not supported; use `value` + onInput event instead.\n */\n @Prop() inputProperties: any = null;\n\n // ── Internal state ──────────────────────────────────────────\n @State() private showPassword: boolean = false;\n @State() private touched: boolean = false;\n\n // ── Events ──────────────────────────────────────────────────\n /** Emitted on every keystroke with the current value */\n @Event() dropiInput: EventEmitter<string>;\n /** Emitted on blur with the final value */\n @Event() dropiChange: EventEmitter<string>;\n /** Emitted on focus */\n @Event() dropiFocus: EventEmitter<void>;\n /** Emitted on blur */\n @Event() dropiBlur: EventEmitter<void>;\n\n @Watch('inputProperties')\n inputPropertiesChanged(val: any) {\n if (!val) return;\n if (val.id !== undefined) this.inputId = val.id;\n if (val.inputId !== undefined) this.inputId = val.inputId;\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.textHelper !== undefined) this.textHelper = val.textHelper;\n if (val.passwordInput !== undefined) this.passwordInput = val.passwordInput;\n if (val.isPasswordInput !== undefined) this.passwordInput = val.isPasswordInput; // Fallback\n if (val.icon !== undefined) this.icon = val.icon;\n if (val.iconColor !== undefined) this.iconColor = val.iconColor;\n if (val.isMoneyInput !== undefined) this.isMoneyInput = val.isMoneyInput;\n if (val.showObligatoryAsterisk !== undefined) this.showObligatoryAsterisk = val.showObligatoryAsterisk;\n if (val.isNumericInput !== undefined) this.isNumericInput = val.isNumericInput;\n if (val.allowDecimals !== undefined) this.allowDecimals = val.allowDecimals;\n if (val.isThousandSeparator !== undefined) this.isThousandSeparator = val.isThousandSeparator;\n if (val.showHelperOnlyOnError !== undefined) this.showHelperOnlyOnError = val.showHelperOnlyOnError;\n if (val.isLettersOnly !== undefined) this.isLettersOnly = val.isLettersOnly;\n if (val.inputMode !== undefined) this.inputMode = val.inputMode;\n }\n\n @Watch('value')\n valueChanged(val: string) {\n this.internals.setFormValue(val);\n }\n\n @Watch('disabled')\n disabledChanged(val: boolean) {\n this.internals.setValidity(val ? { customError: true } : {}, val ? 'Field is disabled' : '');\n }\n\n componentWillLoad() {\n this.internals.setFormValue(this.value ?? '');\n if (this.inputProperties) this.inputPropertiesChanged(this.inputProperties);\n }\n\n // ── Handlers ────────────────────────────────────────────────\n\n private handleInput(e: InputEvent) {\n let val = (e.target as HTMLInputElement).value;\n\n if (this.isNumericInput) val = this.filterNumbers(val);\n if (this.isLettersOnly) val = this.filterLetters(val);\n if (this.isMoneyInput || this.isThousandSeparator) val = this.formatThousands(val, this.isMoneyInput);\n\n this.value = val;\n this.internals.setFormValue(val);\n this.dropiInput.emit(val);\n }\n\n private handleKeyDown(e: KeyboardEvent) {\n if ((this.isNumericInput || this.isMoneyInput || this.isThousandSeparator) && !this.isAllowedNumberKey(e)) {\n e.preventDefault();\n }\n if (this.isLettersOnly && !this.isAllowedLetterKey(e)) {\n e.preventDefault();\n }\n }\n\n private handleFocus() {\n this.dropiFocus.emit();\n }\n\n private handleBlur() {\n this.touched = true;\n this.dropiChange.emit(this.value);\n this.dropiBlur.emit();\n }\n\n private togglePassword() {\n if (this.disabled) return;\n this.showPassword = !this.showPassword;\n }\n\n // ── Helpers ─────────────────────────────────────────────────\n\n private filterNumbers(val: string): string {\n const pattern = this.allowDecimals ? /[^0-9.]/g : /[^0-9]/g;\n return val.replace(pattern, '');\n }\n\n private filterLetters(val: string): string {\n return val.replace(/[^a-zA-ZáéíóúÁÉÍÓÚñÑüÜ\\s]/g, '');\n }\n\n private isAllowedNumberKey(e: KeyboardEvent): boolean {\n const allowed = ['Backspace', 'Delete', 'ArrowLeft', 'ArrowRight', 'Tab', 'Enter', 'Home', 'End'];\n if (allowed.includes(e.key)) return true;\n if (e.ctrlKey || e.metaKey) return true; // copy/paste/select-all\n if (/^[0-9]$/.test(e.key)) return true;\n if (this.allowDecimals && e.key === '.') return true;\n return false;\n }\n\n private isAllowedLetterKey(e: KeyboardEvent): boolean {\n const allowed = ['Backspace', 'Delete', 'ArrowLeft', 'ArrowRight', 'Tab', 'Enter', 'Home', 'End', ' '];\n if (allowed.includes(e.key)) return true;\n if (e.ctrlKey || e.metaKey) return true;\n return /^[a-zA-ZáéíóúÁÉÍÓÚñÑüÜ]$/.test(e.key);\n }\n\n private formatThousands(val: string, withCurrency: boolean): string {\n const raw = val.replace(/[^0-9.]/g, '');\n const [integer, decimal] = raw.split('.');\n const formatted = integer.replace(/\\B(?=(\\d{3})+(?!\\d))/g, ',');\n const result = decimal !== undefined ? `${formatted}.${decimal}` : formatted;\n return withCurrency ? `$${result}` : result;\n }\n\n // ── Computed ─────────────────────────────────────────────────\n\n private get resolvedId(): string {\n return this.inputId || this.label;\n }\n\n private get inputType(): string {\n if (this.passwordInput) return this.showPassword ? 'text' : 'password';\n return 'text';\n }\n\n private get showHelper(): boolean {\n if (!this.textHelper) return false;\n if (this.showHelperOnlyOnError) return this.hasError && this.touched;\n return true;\n }\n\n private get isInvalid(): boolean {\n return this.hasError && this.touched;\n }\n\n // ── Render ───────────────────────────────────────────────────\n\n render() {\n const showObligatoryAsterisk = this.required && this.showObligatoryAsterisk && !this.disabled;\n const showIconInline = !!this.icon;\n\n return (\n <div class={{ 'fixed-label-container': this.fixedLabel }}>\n {/* Fixed label above input */}\n {this.fixedLabel && (\n <div class=\"input-label Body-S-Regular\">\n {this.label}\n {showObligatoryAsterisk && <span class=\"asterisk\"> *</span>}\n </div>\n )}\n\n <div class=\"form-group\">\n <div class={{ 'input-container': true, 'input-container--has-icon': showIconInline }}>\n {/* Inline icon (left) */}\n {showIconInline && (\n <dropi-icon\n class=\"icon-input\"\n name={this.icon}\n color={this.iconColor}\n iconWidth=\"20px\"\n iconHeight=\"20px\"\n style={{ width: '20px', height: '20px' }}\n />\n )}\n\n {/* Password toggle (right) */}\n {this.passwordInput && (\n <dropi-icon\n class=\"icon-input-password\"\n name={this.showPassword ? 'Eye' : 'Eye-crossed'}\n iconWidth=\"20px\"\n iconHeight=\"20px\"\n style={{ width: '20px', height: '20px' }}\n color=\"Gray-Gray-500\"\n onClick={() => this.togglePassword()}\n />\n )}\n\n {/* Native input */}\n <input\n id={this.resolvedId}\n class={{\n 'form-control': true,\n 'form-control-valid': !this.isInvalid && this.touched && !!this.value,\n 'form-control-invalid': this.isInvalid,\n 'padding-icon': showIconInline,\n 'text-password': this.passwordInput && !this.showPassword,\n 'fixed-label-input': this.fixedLabel,\n }}\n type={this.inputType}\n value={this.value}\n placeholder={this.fixedLabel ? this.placeholder : ' '}\n disabled={this.disabled}\n required={this.required}\n maxLength={this.maxLength}\n inputMode={this.inputMode}\n data-cy={undefined}\n onInput={e => this.handleInput(e as InputEvent)}\n onKeyDown={e => this.handleKeyDown(e as KeyboardEvent)}\n onFocus={() => this.handleFocus()}\n onBlur={() => this.handleBlur()}\n />\n\n {/* Floating label (only when not fixedLabel) */}\n {!this.fixedLabel && (\n <label class=\"Body-S-Regular label-bottom\" htmlFor={this.resolvedId}>\n {this.label}\n {showObligatoryAsterisk && <span class=\"asterisk\"> *</span>}\n </label>\n )}\n\n {/* Helper / error text */}\n {this.showHelper && (\n <div class=\"form-control-helper\">\n {this.isInvalid && <dropi-icon name=\"Warning-circle\" iconWidth=\"12px\" iconHeight=\"12px\" color=\"Error-Error-500\" />}\n <span\n class={{\n 'disabled-helper': this.disabled,\n 'invalid-color': this.isInvalid,\n }}\n >\n {this.textHelper}\n </span>\n </div>\n )}\n </div>\n </div>\n </div>\n );\n }\n}\n"],"version":3}
|
|
1
|
+
{"file":"dropi-input.entry.js","mappings":";;AAAA,MAAM,aAAa,GAAG,MAAM,CAAC,k+FAAk+F,CAAC;;MCyBn/F,UAAU,GAAA,MAAA;;;;;;;;;;;;;;;AACF,IAAA,SAAS;;;IAIH,OAAO,GAAW,EAAE;;IAEpB,IAAI,GAAW,EAAE;;;IAIjB,KAAK,GAAW,EAAE;;IAElB,WAAW,GAAW,GAAG;;IAEzB,KAAK,GAAW,EAAE;;AAElB,IAAA,SAAS;;;IAIT,QAAQ,GAAY,KAAK;;IAEzB,QAAQ,GAAY,KAAK;;IAEzB,sBAAsB,GAAY,IAAI;;IAEvD,UAAU,GAAY,KAAK;;IAEV,SAAS,GAAc,MAAM;;;IAI7B,aAAa,GAAY,KAAK;;IAE9B,YAAY,GAAY,KAAK;;IAE7B,mBAAmB,GAAY,KAAK;;IAEpC,cAAc,GAAY,KAAK;;IAE/B,aAAa,GAAY,KAAK;;IAE9B,aAAa,GAAY,KAAK;;;IAI9B,IAAI,GAAW,EAAE;;IAEjB,SAAS,GAAW,eAAe;;;IAInC,QAAQ,GAAY,KAAK;;IAEzB,UAAU,GAAW,EAAE;;IAEvB,qBAAqB,GAAY,KAAK;;AAG/D;;;;;;;AAOG;IACK,eAAe,GAAQ,IAAI;;IAGlB,YAAY,GAAY,KAAK;IAC7B,OAAO,GAAY,KAAK;;;AAIhC,IAAA,UAAU;;AAEV,IAAA,WAAW;;AAEX,IAAA,UAAU;;AAEV,IAAA,SAAS;AAGlB,IAAA,sBAAsB,CAAC,GAAQ,EAAA;AAC7B,QAAA,IAAI,CAAC,GAAG;YAAE;AACV,QAAA,IAA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AA,CAAU,CACrD,CACT,EAGA,IAAI,CAAC,UAAU,KACd,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAC,qBAAqB,EAAA,EAC7B,IAAI,CAAC,SAAS,IAAI,mEAAY,IAAI,EAAC,gBAAgB,EAAC,SAAS,EAAC,MAAM,EAAC,UAAU,EAAC,MAAM,EAAC,KAAK,EAAC,iBAAiB,EAAA,CAAG,EAClH,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,KAAK,EAAE;gBACL,iBAAiB,EAAE,IAAI,CAAC,QAAQ;gBAChC,eAAe,EAAE,IAAI,CAAC,SAAS;aAChC,EAAA,EAEA,IAAI,CAAC,UAAU,CACX,CACH,CACP,CACG,CACF,CACF;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/dropi-input/dropi-input.css?tag=dropi-input&encapsulation=shadow","src/components/dropi-input/dropi-input.tsx"],"sourcesContent":[":host {\n display: block;\n width: 100%;\n}\n\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\n/* ── Fixed label layout ────────────────────────────────────── */\n.fixed-label-container {\n display: flex;\n width: 100%;\n flex-direction: column;\n align-items: flex-start;\n gap: 8px;\n}\n\n.input-label {\n color: var(--Gray-Gray-600, #475066);\n font-size: var(--font-size-xs, 10px);\n font-weight: var(--font-weight-regular, 400);\n text-align: left;\n}\n\n.asterisk {\n color: var(--Error-Error-500, #f46a6b);\n}\n\n/* ── Form group / container ────────────────────────────────── */\n.form-group {\n position: relative;\n width: 100%;\n}\n\n.input-container {\n position: relative;\n}\n\n/* ── Icons ─────────────────────────────────────────────────── */\n.icon-input {\n position: absolute;\n top: 50%;\n left: 12px;\n transform: translateY(-50%);\n z-index: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.icon-input-password {\n position: absolute;\n top: 50%;\n right: 13px;\n transform: translateY(-50%);\n cursor: pointer;\n z-index: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n/* ── Base input ─────────────────────────────────────────────── */\n.form-control {\n box-sizing: border-box;\n width: 100%;\n padding: var(--Size-2, 8px);\n border: 1px solid var(--Gray-Gray-200, #c3c9d9);\n border-radius: var(--Border-2, 8px);\n background: var(--Neutral-White, #ffffff);\n font-size: var(--font-size-s, 12px);\n font-family: inherit;\n color: var(--Gray-Gray-700, #32394d);\n transition: border-color 0.3s ease-in-out;\n height: 40px;\n outline: none;\n appearance: none;\n text-align: left;\n}\n\n.form-control::placeholder {\n color: transparent;\n transition: color 0.2s ease-in-out;\n}\n\n/* Show placeholder only on focus or in fixedLabel mode */\n.form-control:focus::placeholder,\n.fixed-label-input::placeholder {\n color: var(--Gray-Gray-400, #858ea6);\n}\n\n.form-control:focus {\n border-color: var(--Info-Info-500, #50a5f1);\n}\n\n.form-control-valid {\n border-color: var(--Gray-Gray-400, #858ea6) !important;\n color: var(--Gray-Gray-600, #475066);\n}\n\n.form-control-invalid {\n border-color: var(--Error-Error-500, #f46a6b) !important;\n color: var(--Gray-Gray-600, #475066);\n}\n\n.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.padding-icon {\n padding-left: 40px;\n}\n\n/* When icon is always visible, shift the floating label right to avoid overlap */\n.input-container--has-icon label.label-bottom {\n left: 40px;\n}\n\n/* When focused or has value, float up to left: 0 regardless */\n.input-container--has-icon .form-control:focus + label.label-bottom,\n.input-container--has-icon .form-control:not(:placeholder-shown) + label.label-bottom {\n left: 0;\n}\n\n/* Password: hide characters via CSS (no type=password needed for font trick) */\n.text-password {\n -webkit-text-security: disc;\n text-security: disc;\n}\n\n/* ── Floating label ─────────────────────────────────────────── */\nlabel.label-bottom {\n position: absolute;\n font-weight: var(--font-weight-regular, 400);\n top: 10px;\n font-size: var(--font-size-s, 12px);\n color: var(--Gray-Gray-500, #69738c);\n left: 10px;\n transition: all 0.2s ease-in-out;\n pointer-events: none;\n overflow: hidden;\n width: 90%;\n white-space: nowrap;\n}\n\n/* Float up when focused or has value */\n.form-control:focus+label.label-bottom,\n.form-control:not(:placeholder-shown)+label.label-bottom {\n top: -22px;\n left: 0;\n font-size: var(--font-size-xs, 10px);\n color: var(--Gray-Gray-600, #475066);\n width: unset;\n}\n\n.form-control:disabled+label.label-bottom {\n color: var(--Gray-Gray-400, #858ea6);\n}\n\n/* ── Helper text ────────────────────────────────────────────── */\n.form-control-helper {\n display: flex;\n position: absolute;\n top: 100%;\n left: 0;\n gap: 4px;\n align-items: center;\n margin-top: 4px;\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\n.disabled-helper {\n color: var(--Gray-Gray-400, #858ea6) !important;\n}\n\n.disabled-helper {\n color: var(--Gray-Gray-400, #858ea6) !important;\n}","import { Component, Prop, State, Event, EventEmitter, AttachInternals, Watch, h } from '@stencil/core';\n\nexport type InputMode = 'text' | 'numeric' | 'decimal' | 'tel' | 'email' | 'url' | 'search';\n\n/**\n * @component dropi-input\n * Text input with floating label, validation states, password toggle,\n * number/letter restrictions, thousand separator, and native form association.\n *\n * ## Form usage (native HTML form)\n * ```html\n * <form>\n * <dropi-input name=\"email\" label=\"Email\" required></dropi-input>\n * </form>\n * ```\n *\n * ## Controlled usage (React / Vue / Angular)\n * Pass `value` and listen to `dropiInput` to update.\n */\n@Component({\n tag: 'dropi-input',\n styleUrl: 'dropi-input.css',\n shadow: true,\n formAssociated: true,\n})\nexport class DropiInput {\n @AttachInternals() internals: ElementInternals;\n\n // ── Identification ──────────────────────────────────────────\n /** Input id. Defaults to label label. */\n @Prop({ mutable: true }) inputId: string = '';\n /** Name attribute for native form submission */\n @Prop({ reflect: true }) name: string = '';\n\n // ── Content ─────────────────────────────────────────────────\n /** Floating or fixed label text */\n @Prop({ mutable: true }) label: string = '';\n /** Placeholder text (visible in fixedLabel mode or on focus) */\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\n // ── Behavior ────────────────────────────────────────────────\n /** Disable the input */\n @Prop({ reflect: true }) disabled: boolean = false;\n /** Mark as required (shows asterisk when showObligatoryAsterisk is true) */\n @Prop({ reflect: true }) required: boolean = false;\n /** Show the required asterisk on the label */\n @Prop({ mutable: true }) showObligatoryAsterisk: boolean = true;\n /** Show label above the input (fixed), instead of floating inside */\n @Prop() fixedLabel: boolean = false;\n /** Keyboard input mode hint */\n @Prop({ mutable: true }) inputMode: InputMode = 'text';\n\n // ── Input type modifiers ────────────────────────────────────\n /** Show password visibility toggle (renders as password field) */\n @Prop({ mutable: true }) passwordInput: boolean = false;\n /** Apply thousand separator formatting (e.g. 1,000,000) */\n @Prop({ mutable: true }) isMoneyInput: boolean = false;\n /** Apply thousand separator without currency symbol */\n @Prop({ mutable: true }) isThousandSeparator: boolean = false;\n /** Only allow numeric characters */\n @Prop({ mutable: true }) isNumericInput: boolean = false;\n /** Allow decimal point when isNumericInput is true */\n @Prop({ mutable: true }) allowDecimals: boolean = false;\n /** Only allow letter characters */\n @Prop({ mutable: true }) isLettersOnly: boolean = false;\n\n // ── Icon ────────────────────────────────────────────────────\n /** Icon name shown inside the input (only visible when value is not empty) */\n @Prop({ mutable: true }) icon: string = '';\n /** Color token for the icon */\n @Prop({ mutable: true }) iconColor: string = 'Gray-Gray-400';\n\n // ── Validation ──────────────────────────────────────────────\n /** Mark the field as invalid (consumer-controlled) */\n @Prop({ mutable: true }) hasError: boolean = false;\n /** Helper / error text shown below the field */\n @Prop({ mutable: true }) textHelper: string = '';\n /** Only show textHelper when the field is invalid */\n @Prop({ mutable: true }) showHelperOnlyOnError: boolean = false;\n\n // ── Angular-parity ──────────────────────────────────────────\n /**\n * Convenience object prop — matches Angular `inputProperties: InputProperties`.\n * Fields: id, label, placeholder, maxLength, textHelper, passwordInput,\n * icon, iconColor, isMoneyInput, showObligatoryAsterisk, isNumericInput,\n * allowDecimals, isThousandSeparator, showHelperOnlyOnError,\n * isLettersOnly, inputMode.\n * Note: `formControl` is not supported; use `value` + onInput event instead.\n */\n @Prop() inputProperties: any = null;\n\n // ── Internal state ──────────────────────────────────────────\n @State() private showPassword: boolean = false;\n @State() private touched: boolean = false;\n\n // ── Events ──────────────────────────────────────────────────\n /** Emitted on every keystroke with the current value */\n @Event() dropiInput: EventEmitter<string>;\n /** Emitted on blur with the final value */\n @Event() dropiChange: EventEmitter<string>;\n /** Emitted on focus */\n @Event() dropiFocus: EventEmitter<void>;\n /** Emitted on blur */\n @Event() dropiBlur: EventEmitter<void>;\n\n @Watch('inputProperties')\n inputPropertiesChanged(val: any) {\n if (!val) return;\n if (val.id !== undefined) this.inputId = val.id;\n if (val.inputId !== undefined) this.inputId = val.inputId;\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.textHelper !== undefined) this.textHelper = val.textHelper;\n if (val.passwordInput !== undefined) this.passwordInput = val.passwordInput;\n if (val.isPasswordInput !== undefined) this.passwordInput = val.isPasswordInput; // Fallback\n if (val.icon !== undefined) this.icon = val.icon;\n if (val.iconColor !== undefined) this.iconColor = val.iconColor;\n if (val.isMoneyInput !== undefined) this.isMoneyInput = val.isMoneyInput;\n if (val.showObligatoryAsterisk !== undefined) this.showObligatoryAsterisk = val.showObligatoryAsterisk;\n if (val.isNumericInput !== undefined) this.isNumericInput = val.isNumericInput;\n if (val.allowDecimals !== undefined) this.allowDecimals = val.allowDecimals;\n if (val.isThousandSeparator !== undefined) this.isThousandSeparator = val.isThousandSeparator;\n if (val.showHelperOnlyOnError !== undefined) this.showHelperOnlyOnError = val.showHelperOnlyOnError;\n if (val.isLettersOnly !== undefined) this.isLettersOnly = val.isLettersOnly;\n if (val.inputMode !== undefined) this.inputMode = val.inputMode;\n }\n\n @Watch('value')\n valueChanged(val: string) {\n this.internals.setFormValue(val);\n }\n\n @Watch('disabled')\n disabledChanged(val: boolean) {\n this.internals.setValidity(val ? { customError: true } : {}, val ? 'Field is disabled' : '');\n }\n\n componentWillLoad() {\n this.internals.setFormValue(this.value ?? '');\n if (this.inputProperties) this.inputPropertiesChanged(this.inputProperties);\n }\n\n // ── Handlers ────────────────────────────────────────────────\n\n private handleInput(e: InputEvent) {\n let val = (e.target as HTMLInputElement).value;\n\n if (this.isNumericInput) val = this.filterNumbers(val);\n if (this.isLettersOnly) val = this.filterLetters(val);\n if (this.isMoneyInput || this.isThousandSeparator) val = this.formatThousands(val, this.isMoneyInput);\n\n this.value = val;\n this.internals.setFormValue(val);\n this.dropiInput.emit(val);\n this.dropiChange.emit(val);\n }\n\n private handleKeyDown(e: KeyboardEvent) {\n if ((this.isNumericInput || this.isMoneyInput || this.isThousandSeparator) && !this.isAllowedNumberKey(e)) {\n e.preventDefault();\n }\n if (this.isLettersOnly && !this.isAllowedLetterKey(e)) {\n e.preventDefault();\n }\n }\n\n private handleFocus() {\n this.dropiFocus.emit();\n }\n\n private handleBlur() {\n this.touched = true;\n this.dropiBlur.emit();\n }\n\n private togglePassword() {\n if (this.disabled) return;\n this.showPassword = !this.showPassword;\n }\n\n // ── Helpers ─────────────────────────────────────────────────\n\n private filterNumbers(val: string): string {\n const pattern = this.allowDecimals ? /[^0-9.]/g : /[^0-9]/g;\n return val.replace(pattern, '');\n }\n\n private filterLetters(val: string): string {\n return val.replace(/[^a-zA-ZáéíóúÁÉÍÓÚñÑüÜ\\s]/g, '');\n }\n\n private isAllowedNumberKey(e: KeyboardEvent): boolean {\n const allowed = ['Backspace', 'Delete', 'ArrowLeft', 'ArrowRight', 'Tab', 'Enter', 'Home', 'End'];\n if (allowed.includes(e.key)) return true;\n if (e.ctrlKey || e.metaKey) return true; // copy/paste/select-all\n if (/^[0-9]$/.test(e.key)) return true;\n if (this.allowDecimals && e.key === '.') return true;\n return false;\n }\n\n private isAllowedLetterKey(e: KeyboardEvent): boolean {\n const allowed = ['Backspace', 'Delete', 'ArrowLeft', 'ArrowRight', 'Tab', 'Enter', 'Home', 'End', ' '];\n if (allowed.includes(e.key)) return true;\n if (e.ctrlKey || e.metaKey) return true;\n return /^[a-zA-ZáéíóúÁÉÍÓÚñÑüÜ]$/.test(e.key);\n }\n\n private formatThousands(val: string, withCurrency: boolean): string {\n const raw = val.replace(/[^0-9.]/g, '');\n const [integer, decimal] = raw.split('.');\n const formatted = integer.replace(/\\B(?=(\\d{3})+(?!\\d))/g, ',');\n const result = decimal !== undefined ? `${formatted}.${decimal}` : formatted;\n return withCurrency ? `$${result}` : result;\n }\n\n // ── Computed ─────────────────────────────────────────────────\n\n private get resolvedId(): string {\n return this.inputId || this.label;\n }\n\n private get inputType(): string {\n if (this.passwordInput) return this.showPassword ? 'text' : 'password';\n return 'text';\n }\n\n private get showHelper(): boolean {\n if (!this.textHelper) return false;\n if (this.showHelperOnlyOnError) return this.hasError && this.touched;\n return true;\n }\n\n private get isInvalid(): boolean {\n return this.hasError && this.touched;\n }\n\n // ── Render ───────────────────────────────────────────────────\n\n render() {\n const showObligatoryAsterisk = this.required && this.showObligatoryAsterisk && !this.disabled;\n const showIconInline = !!this.icon;\n\n return (\n <div class={{ 'fixed-label-container': this.fixedLabel }}>\n {/* Fixed label above input */}\n {this.fixedLabel && (\n <div class=\"input-label Body-S-Regular\">\n {this.label}\n {showObligatoryAsterisk && <span class=\"asterisk\"> *</span>}\n </div>\n )}\n\n <div class=\"form-group\">\n <div class={{ 'input-container': true, 'input-container--has-icon': showIconInline }}>\n {/* Inline icon (left) */}\n {showIconInline && (\n <dropi-icon\n class=\"icon-input\"\n name={this.icon}\n color={this.iconColor}\n iconWidth=\"20px\"\n iconHeight=\"20px\"\n style={{ width: '20px', height: '20px' }}\n />\n )}\n\n {/* Password toggle (right) */}\n {this.passwordInput && (\n <dropi-icon\n class=\"icon-input-password\"\n name={this.showPassword ? 'Eye' : 'Eye-crossed'}\n iconWidth=\"20px\"\n iconHeight=\"20px\"\n style={{ width: '20px', height: '20px' }}\n color=\"Gray-Gray-500\"\n onClick={() => this.togglePassword()}\n />\n )}\n\n {/* Native input */}\n <input\n id={this.resolvedId}\n class={{\n 'form-control': true,\n 'form-control-valid': !this.isInvalid && this.touched && !!this.value,\n 'form-control-invalid': this.isInvalid,\n 'padding-icon': showIconInline,\n 'text-password': this.passwordInput && !this.showPassword,\n 'fixed-label-input': this.fixedLabel,\n }}\n type={this.inputType}\n value={this.value}\n placeholder={this.fixedLabel ? this.placeholder : ' '}\n disabled={this.disabled}\n required={this.required}\n maxLength={this.maxLength}\n inputMode={this.inputMode}\n data-cy={undefined}\n onInput={e => this.handleInput(e as InputEvent)}\n onKeyDown={e => this.handleKeyDown(e as KeyboardEvent)}\n onFocus={() => this.handleFocus()}\n onBlur={() => this.handleBlur()}\n />\n\n {/* Floating label (only when not fixedLabel) */}\n {!this.fixedLabel && (\n <label class=\"Body-S-Regular label-bottom\" htmlFor={this.resolvedId}>\n {this.label}\n {showObligatoryAsterisk && <span class=\"asterisk\"> *</span>}\n </label>\n )}\n\n {/* Helper / error text */}\n {this.showHelper && (\n <div class=\"form-control-helper\">\n {this.isInvalid && <dropi-icon name=\"Warning-circle\" iconWidth=\"12px\" iconHeight=\"12px\" color=\"Error-Error-500\" />}\n <span\n class={{\n 'disabled-helper': this.disabled,\n 'invalid-color': this.isInvalid,\n }}\n >\n {this.textHelper}\n </span>\n </div>\n )}\n </div>\n </div>\n </div>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, d as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, d as createEvent, h } from './index-D0Z06C2b.js';
|
|
2
2
|
|
|
3
3
|
const dropiLanguagesSelectorCss = () => `:host{display:inline-block;position:relative}*,*::before,*::after{box-sizing:border-box}.custom-dropdown{position:relative;cursor:pointer;user-select:none}.custom-dropdown.open dropi-icon{transform:rotate(180deg)}.selected-option{display:flex;height:38px;padding:var(--Size-2, 8px) var(--Size-3, 12px);align-items:center;gap:var(--Size-2, 8px);border-radius:4px;border:1px solid var(--Gray-Gray-200, #c3c9d9);background:var(--Neutral-White, #ffffff);font-size:var(--font-size-s, 12px);color:var(--Gray-Gray-600, #475066)}.dropdown-options{position:absolute;top:100%;left:0;right:0;background:white;border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:6px;margin-top:4px;z-index:1000;overflow-y:auto;box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);padding:0;list-style:none;height:0;opacity:0;visibility:hidden;transition:height 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;max-height:0}.dropdown-options.dropdown-open{max-height:300px;height:auto;opacity:1;visibility:visible}.dropdown-options li{padding:8px 12px;display:flex;align-items:center;gap:8px;cursor:pointer;font-size:var(--font-size-s, 12px);color:var(--Gray-Gray-600, #475066)}.dropdown-options li:hover,.dropdown-options li.active{background:var(--Gray-Gray-50, #f7f8fa)}@media screen and (max-width: 720px){.selected-option span,.dropdown-options li span{display:none}}`;
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, a as getElement, h } from './index-
|
|
1
|
+
import { r as registerInstance, a as getElement, h } from './index-D0Z06C2b.js';
|
|
2
2
|
|
|
3
3
|
const dropiLogoCss = () => `:host{display:inline-block}.dropi-logo{margin:0;padding:0;display:flex;align-items:center;justify-content:center}.dropi-logo img{display:block;object-fit:contain}.dropi-logo--large img{width:256px;height:84px}.dropi-logo--small img{width:86px;height:81px}`;
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-D0Z06C2b.js';
|
|
2
2
|
|
|
3
3
|
const dropiLottieLoaderCss = () => `:host{display:block}.loader-overlay{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(255, 255, 255, 0.85);z-index:9999}.loader-container{display:flex;flex-direction:column;align-items:center;gap:var(--Size-4, 16px)}.lottie-animation{display:flex;align-items:center;justify-content:center;width:300px;height:300px}.lottie-animation lottie-player{display:block;width:300px !important;height:300px !important}.loader-text{display:flex;flex-direction:column;align-items:center;gap:var(--Size-2, 8px);text-align:center}.loader-title{margin:0;font-size:var(--font-size-m, 14px);font-weight:var(--font-weight-bold, 700);color:var(--Gray-Gray-700, #32394d)}.loader-message{margin:0;font-size:var(--font-size-s, 12px);font-weight:var(--font-weight-regular, 400);color:var(--Gray-Gray-500, #69738c)}`;
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, d as createEvent, a as getElement, h } from './index-
|
|
1
|
+
import { r as registerInstance, d as createEvent, a as getElement, h } from './index-D0Z06C2b.js';
|
|
2
2
|
|
|
3
3
|
const dropiMediaPlayerCss = () => `:host{display:block;width:100%}*,*::before,*::after{box-sizing:border-box}.dropi-media-player{position:relative;width:100%;max-width:335px;height:auto;aspect-ratio:335 / 567;background-color:var(--Neutral-Black);border-radius:var(--Border-2, 8px);overflow:hidden;display:flex;align-items:center;justify-content:center;cursor:pointer}.dropi-media-player--mobile-vertical{max-width:335px;aspect-ratio:335 / 567}.dropi-media-player--mobile-compact{max-width:335px;aspect-ratio:335 / 337}.dropi-media-player--desktop{max-width:587px;aspect-ratio:587 / 567}.dropi-media-player__video{width:100%;height:100%;object-fit:cover}.dropi-media-player__center-play{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);border-radius:400px;background-color:rgba(14, 17, 26, 0.6);backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center;transition:opacity 0.3s ease;pointer-events:auto}.dropi-media-player__center-play--hidden{opacity:0;pointer-events:none}.dropi-media-player__controls-bar{position:absolute;bottom:0;left:0;width:100%;height:72px;padding:24px;display:flex;flex-direction:row;align-items:center;gap:10px;background:linear-gradient(to bottom, rgba(0, 0, 0, 0), #000000);transition:opacity 0.3s ease;box-sizing:border-box}.dropi-media-player__controls-bar--hidden{opacity:0;pointer-events:none}.dropi-media-player__timestamp{font-family:'Inter', sans-serif;font-size:var(--font-size-xs, 12px);font-weight:var(--font-weight-medium, 500);color:var(--Neutral-White);white-space:nowrap;flex-shrink:0}.dropi-media-player__progress{flex:1;padding:6px 0;cursor:pointer;position:relative}.dropi-media-player__progress-track{position:relative;width:100%;height:5px;border-radius:var(--Border-2, 8px);background-color:var(--Gray-Gray-700, #32394d)}.dropi-media-player__progress-fill{height:100%;background-color:var(--Neutral-White);border-radius:var(--Border-2, 8px);will-change:width}.dropi-media-player__progress-thumb{position:absolute;top:50%;transform:translate(-50%, -50%);width:12px;height:12px;border-radius:50%;background-color:var(--Neutral-White);pointer-events:none;will-change:left}.dropi-media-player__actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.dropi-media-player__btn{-webkit-appearance:none;appearance:none;background:transparent;border:none;padding:0;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--Neutral-White);transition:opacity 0.15s ease}.dropi-media-player__btn:hover{opacity:0.8}.dropi-media-player__btn--speed{font-family:'Inter', sans-serif;font-size:var(--font-size-sm, 14px);font-weight:var(--font-weight-medium, 500);color:var(--Neutral-White);min-width:20px}.dropi-media-player__speed-control{position:relative;display:flex;align-items:center}.dropi-media-player__speed-menu{position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);background:var(--Gray-Gray-800, #1f2433);border-radius:var(--Border-2, 8px);padding:6px 0;min-width:44px;display:flex;flex-direction:column;z-index:20}.dropi-media-player__speed-option{-webkit-appearance:none;appearance:none;background:transparent;border:none;padding:6px 10px;font-family:'Inter', sans-serif;font-size:var(--font-size-s);font-weight:var(--font-weight-medium);color:var(--Neutral-White);cursor:pointer;text-align:center;white-space:nowrap;transition:opacity 0.15s ease}.dropi-media-player__speed-option--active{color:var(--Primary-Primary-500, #f49a3d)}.dropi-media-player__speed-option:hover{opacity:0.8}.dropi-media-player__volume-control{position:relative;display:flex;align-items:center}.dropi-media-player__volume-popup{position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);width:32px;height:108px;display:flex;align-items:center;justify-content:center;background:var(--Gray-Gray-800, #1f2433);border-radius:var(--Border-2, 8px);overflow:visible;z-index:20}.dropi-media-player__volume-slider{-webkit-appearance:none;appearance:none;width:97px;height:8px;transform:rotate(-90deg);border-radius:4px;cursor:pointer;outline:none;flex-shrink:0}.dropi-media-player__volume-slider::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;border-radius:50%;background:var(--Neutral-White);cursor:pointer}.dropi-media-player__volume-slider::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:var(--Neutral-White);border:none;cursor:pointer}.dropi-media-player__volume-slider::-webkit-slider-runnable-track{border-radius:4px}.dropi-media-player__volume-slider::-moz-range-track{height:8px;background:var(--Gray-Gray-700, #32394d);border-radius:4px}.dropi-media-player__blur-bg{display:none;position:absolute;inset:0;background-size:cover;background-position:center;filter:blur(21px);transform:scale(1.15);z-index:0}.dropi-media-player__blur-overlay{display:none;position:absolute;inset:0;background-color:rgba(0, 0, 0, 0.7);z-index:0}.dropi-media-player.is-fullscreen,.dropi-media-player:fullscreen{max-width:none;aspect-ratio:auto;width:100vw;height:100vh;border-radius:0}.dropi-media-player.is-fullscreen .dropi-media-player__blur-bg,.dropi-media-player:fullscreen .dropi-media-player__blur-bg,.dropi-media-player.is-fullscreen .dropi-media-player__blur-overlay,.dropi-media-player:fullscreen .dropi-media-player__blur-overlay{display:block}.dropi-media-player.is-fullscreen .dropi-media-player__video,.dropi-media-player:fullscreen .dropi-media-player__video{object-fit:contain;position:relative;z-index:1}.dropi-media-player.is-fullscreen .dropi-media-player__center-play,.dropi-media-player:fullscreen .dropi-media-player__center-play,.dropi-media-player.is-fullscreen .dropi-media-player__controls-bar,.dropi-media-player:fullscreen .dropi-media-player__controls-bar{z-index:2}`;
|
|
4
4
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, d as createEvent, e as Build, h } from './index-
|
|
1
|
+
import { r as registerInstance, d as createEvent, e as Build, h } from './index-D0Z06C2b.js';
|
|
2
2
|
|
|
3
|
-
const dropiModalCss = () => `:host{display:contents}*,*::before,*::after{box-sizing:border-box}.modal-root{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;opacity:0;transition:opacity 0.18s ease;z-index:9999;visibility:hidden}.modal-root--open{opacity:1;pointer-events:auto;visibility:visible}.modal-root--closing{opacity:1;pointer-events:none;visibility:visible}.modal-mask{position:absolute;inset:0;background:rgba(6,11,16,0.66);pointer-events:auto;opacity:0;transition:opacity 0.18s ease}.modal-root--open .modal-mask{opacity:1}.modal-root--closing .modal-mask{opacity:0}.modal-panel{position:relative;pointer-events:auto;display:flex;flex-direction:column;border-radius:var(--Border-2, 8px);background:var(--Neutral-White, #ffffff);box-shadow:0 0 60px rgba(0,0,0,0.06);overflow:hidden;padding:var(--Size-6, 32px);gap:var(--Size-5, 24px);max-height:calc(100vh - 60px);opacity:0;transform:translateY(16px) scale(0.92);transition:opacity 0.18s ease, transform 0.18s ease}.modal-root--open .modal-panel{opacity:1;transform:none}.modal-root--closing .modal-panel{opacity:0;transform:translateY(-12px) scale(1.06)}.modal-header{display:flex;align-items:center;gap:4px}.modal-title{color:var(--Gray-Gray-700,#32394d);font-size:var(--Size-5, 24px);font-weight:var(--font-weight-bold);flex:1;text-align:left}.modal-close{margin-left:auto;border:0;background:transparent;cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:var(--font-size-xxl);line-height:1;color:var(--Gray-Gray-400)}.modal-close:hover{opacity:0.7}.modal-content{padding-right:8px;overflow:auto;flex:1;display:flex;flex-direction:column;scrollbar-width:thin;scrollbar-color:var(--Gray-Gray-300,#a3abbf) var(--Gray-Gray-50,#f7f8fa)}.modal-content::-webkit-scrollbar{width:4px}.modal-content::-webkit-scrollbar-track{background:var(--Gray-Gray-50,#f7f8fa);border-radius:16px}.modal-content::-webkit-scrollbar-thumb{background:var(--Gray-Gray-300,#a3abbf);border-radius:16px}.modal-footer{display:flex;justify-content:flex-end;align-items:flex-start;gap:var(--Size-1, 4px);width:100%;margin-top:auto;flex-shrink:0}.modal-footer:empty{display:none}::slotted(.button-container){display:grid;grid-template-columns:1fr 1fr;gap:var(--Size-4, 16px);min-width:470px;width:100%}::slotted(.button-container)>*{width:100%}::slotted(.button-container) dropi-button{width:100%}.modal-panel.size-m .modal-footer,.modal-panel.size-s .modal-footer,.modal-panel.size-xs .modal-footer{justify-content:flex-end}.modal-panel.size-m .modal-footer ::slotted(.button-container),.modal-panel.size-s .modal-footer ::slotted(.button-container),.modal-panel.size-xs .modal-footer ::slotted(.button-container){min-width:unset !important;width:100%}.modal-panel.size-drawer-s .modal-footer ::slotted(.button-container){min-width:unset;display:flex;flex-direction:column-reverse;gap:var(--Size-4, 16px)}.modal-panel.size-full{width:100%;height:100vh;max-height:100vh;border-radius:0}.modal-panel.size-xxl{width:calc(100% - 60px);max-width:1520px;height:calc(100vh - 120px);max-height:900px}.modal-panel.size-l{width:1137px;max-width:1137px;max-height:754px}.modal-panel.size-m{max-width:550px;width:550px}.modal-panel.size-s{width:454px}.modal-panel.size-xs{width:320px;padding:24px;gap:16px}.modal-root--right{align-items:stretch;justify-content:flex-end}.modal-root--right .modal-panel{height:100vh;max-height:100vh;border-radius:0;gap:0;opacity:1;transform:translateX(100%);transition:transform 0.32s cubic-bezier(0.4,0,0.2,1)}.modal-root--open.modal-root--right .modal-panel{transform:translateX(0)}.modal-root--closing.modal-root--right .modal-panel{transform:translateX(100%)}.modal-root--right .modal-panel.size-drawer-s{width:351px;padding:20px;box-shadow:0 8px 40px rgba(0,0,0,0.16)}.modal-root--right .modal-panel.size-drawer-m{width:550px;box-shadow:0 8px 40px rgba(0,0,0,0.16)}.modal-root--right .modal-panel.size-drawer-l{width:1137px;box-shadow:0 8px 40px rgba(0,0,0,0.16)}.modal-root--right .modal-panel.size-drawer-xxl{width:1214px;box-shadow:0 8px 40px rgba(0,0,0,0.16)}.modal-root--right .modal-panel.size-sidebar-half{width:50vw;min-width:600px;box-shadow:0 8px 40px rgba(0,0,0,0.16)}@media (max-width: 768px){.modal-root--right .modal-panel.size-drawer-s,.modal-root--right .modal-panel.size-drawer-m,.modal-root--right .modal-panel.size-drawer-l,.modal-root--right .modal-panel.size-drawer-xxl,.modal-root--right .modal-panel.size-sidebar-half{width:100vw;min-width:unset}}.modal-root--left{align-items:stretch;justify-content:flex-start}.modal-root--left .modal-panel{height:100vh;max-height:100vh;border-radius:0;gap:0;opacity:1;transform:translateX(-100%);transition:transform 0.32s cubic-bezier(0.4,0,0.2,1)}.modal-root--open.modal-root--left .modal-panel{transform:translateX(0)}.modal-root--closing.modal-root--left .modal-panel{transform:translateX(-100%)}.modal-root--top{align-items:flex-start}.modal-root--bottom{align-items:flex-end}@media (max-width: 599px){.modal-panel{padding:20px;width:100% !important}.modal-panel:not(.size-s){border-radius:0 !important;height:100% !important;max-height:unset !important}.modal-root--right .modal-panel{width:100vw !important;min-width:unset !important}.modal-footer{justify-content:center}.modal-footer ::slotted(.button-container){width:100%;min-width:unset !important;display:flex;flex-direction:column-reverse;gap:var(--Size-4, 16px)}}@media (prefers-reduced-motion: reduce){.modal-root,.modal-mask,.modal-panel{transition:none !important}}`;
|
|
3
|
+
const dropiModalCss = () => `:host{display:contents}*,*::before,*::after{box-sizing:border-box}.modal-root{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;opacity:0;transition:opacity 0.18s ease;z-index:var(--dropi-z-index-modal, 9999);visibility:hidden}.modal-root--open{opacity:1;pointer-events:auto;visibility:visible}.modal-root--closing{opacity:1;pointer-events:none;visibility:visible}.modal-mask{position:absolute;inset:0;background:rgba(6,11,16,0.66);pointer-events:auto;opacity:0;transition:opacity 0.18s ease}.modal-root--open .modal-mask{opacity:1}.modal-root--closing .modal-mask{opacity:0}.modal-panel{position:relative;pointer-events:auto;display:flex;flex-direction:column;border-radius:var(--Border-2, 8px);background:var(--Neutral-White, #ffffff);box-shadow:0 0 60px rgba(0,0,0,0.06);overflow:hidden;padding:var(--Size-6, 32px);gap:var(--Size-5, 24px);max-height:calc(100vh - 60px);opacity:0;transform:translateY(16px) scale(0.92);transition:opacity 0.18s ease, transform 0.18s ease}.modal-root--open .modal-panel{opacity:1;transform:none}.modal-root--closing .modal-panel{opacity:0;transform:translateY(-12px) scale(1.06)}.modal-header{display:flex;align-items:center;gap:4px}.modal-title{color:var(--Gray-Gray-700,#32394d);font-size:var(--Size-5, 24px);font-weight:var(--font-weight-bold);flex:1;text-align:left}.modal-close{margin-left:auto;border:0;background:transparent;cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:var(--font-size-xxl);line-height:1;color:var(--Gray-Gray-400)}.modal-close:hover{opacity:0.7}.modal-content{padding-right:8px;overflow:auto;flex:1;display:flex;flex-direction:column;scrollbar-width:thin;scrollbar-color:var(--Gray-Gray-300,#a3abbf) var(--Gray-Gray-50,#f7f8fa)}.modal-content::-webkit-scrollbar{width:4px}.modal-content::-webkit-scrollbar-track{background:var(--Gray-Gray-50,#f7f8fa);border-radius:16px}.modal-content::-webkit-scrollbar-thumb{background:var(--Gray-Gray-300,#a3abbf);border-radius:16px}.modal-footer{display:flex;justify-content:flex-end;align-items:flex-start;gap:var(--Size-1, 4px);width:100%;margin-top:auto;flex-shrink:0}.modal-footer:empty{display:none}::slotted(.button-container){display:grid;grid-template-columns:1fr 1fr;gap:var(--Size-4, 16px);min-width:470px;width:100%}::slotted(.button-container)>*{width:100%}::slotted(.button-container) dropi-button{width:100%}.modal-panel.size-m .modal-footer,.modal-panel.size-s .modal-footer,.modal-panel.size-xs .modal-footer{justify-content:flex-end}.modal-panel.size-m .modal-footer ::slotted(.button-container),.modal-panel.size-s .modal-footer ::slotted(.button-container),.modal-panel.size-xs .modal-footer ::slotted(.button-container){min-width:unset !important;width:100%}.modal-panel.size-drawer-s .modal-footer ::slotted(.button-container){min-width:unset;display:flex;flex-direction:column-reverse;gap:var(--Size-4, 16px)}.modal-panel.size-full{width:100%;height:100vh;max-height:100vh;border-radius:0}.modal-panel.size-xxl{width:calc(100% - 60px);max-width:1520px;height:calc(100vh - 120px);max-height:900px}.modal-panel.size-l{width:1137px;max-width:1137px;max-height:754px}.modal-panel.size-m{max-width:550px;width:550px}.modal-panel.size-s{width:454px}.modal-panel.size-xs{width:320px;padding:24px;gap:16px}.modal-root--right{align-items:stretch;justify-content:flex-end}.modal-root--right .modal-panel{height:100vh;max-height:100vh;border-radius:0;gap:0;opacity:1;transform:translateX(100%);transition:transform 0.32s cubic-bezier(0.4,0,0.2,1)}.modal-root--open.modal-root--right .modal-panel{transform:translateX(0)}.modal-root--closing.modal-root--right .modal-panel{transform:translateX(100%)}.modal-root--right .modal-panel.size-drawer-s{width:351px;padding:20px;box-shadow:0 8px 40px rgba(0,0,0,0.16)}.modal-root--right .modal-panel.size-drawer-m{width:550px;box-shadow:0 8px 40px rgba(0,0,0,0.16)}.modal-root--right .modal-panel.size-drawer-l{width:1137px;box-shadow:0 8px 40px rgba(0,0,0,0.16)}.modal-root--right .modal-panel.size-drawer-xxl{width:1214px;box-shadow:0 8px 40px rgba(0,0,0,0.16)}.modal-root--right .modal-panel.size-sidebar-half{width:50vw;min-width:600px;box-shadow:0 8px 40px rgba(0,0,0,0.16)}@media (max-width: 768px){.modal-root--right .modal-panel.size-drawer-s,.modal-root--right .modal-panel.size-drawer-m,.modal-root--right .modal-panel.size-drawer-l,.modal-root--right .modal-panel.size-drawer-xxl,.modal-root--right .modal-panel.size-sidebar-half{width:100vw;min-width:unset}}.modal-root--left{align-items:stretch;justify-content:flex-start}.modal-root--left .modal-panel{height:100vh;max-height:100vh;border-radius:0;gap:0;opacity:1;transform:translateX(-100%);transition:transform 0.32s cubic-bezier(0.4,0,0.2,1)}.modal-root--open.modal-root--left .modal-panel{transform:translateX(0)}.modal-root--closing.modal-root--left .modal-panel{transform:translateX(-100%)}.modal-root--top{align-items:flex-start}.modal-root--bottom{align-items:flex-end}@media (max-width: 599px){.modal-panel{padding:20px;width:100% !important}.modal-panel:not(.size-s){border-radius:0 !important;height:100% !important;max-height:unset !important}.modal-root--right .modal-panel{width:100vw !important;min-width:unset !important}.modal-footer{justify-content:center}.modal-footer ::slotted(.button-container){width:100%;min-width:unset !important;display:flex;flex-direction:column-reverse;gap:var(--Size-4, 16px)}}@media (prefers-reduced-motion: reduce){.modal-root,.modal-mask,.modal-panel{transition:none !important}}`;
|
|
4
4
|
|
|
5
5
|
const DropiModal = class {
|
|
6
6
|
constructor(hostRef) {
|