@dropi/ui 0.1.19 → 0.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/icons/ilustration/bg-warning.svg +3 -0
- package/assets/icons/ilustration/default.svg +4 -0
- package/assets/icons/ilustration/error.svg +10 -0
- package/assets/icons/ilustration/exclusive.svg +9 -0
- package/assets/icons/ilustration/info.svg +10 -0
- package/assets/icons/ilustration/loading.svg +4 -0
- package/assets/icons/ilustration/love.svg +9 -0
- package/assets/icons/ilustration/premium-new.svg +14 -0
- package/assets/icons/ilustration/premium.svg +5 -0
- package/assets/icons/ilustration/sorry.svg +4 -0
- package/assets/icons/ilustration/success.svg +11 -0
- package/assets/icons/ilustration/verified-new.svg +9 -0
- package/assets/icons/ilustration/verified.svg +4 -0
- package/assets/icons/ilustration/warning.svg +9 -0
- package/assets/lottie-files/loading.json +1 -0
- package/dist/cjs/dropi-accordion-item.cjs.entry.js +54 -0
- package/dist/cjs/dropi-accordion.cjs.entry.js +5 -39
- package/dist/cjs/dropi-alert-legacy.cjs.entry.js +39 -0
- package/dist/cjs/dropi-alert-modal.cjs.entry.js +128 -0
- package/dist/cjs/dropi-alert.cjs.entry.js +21 -15
- package/dist/cjs/dropi-avatars.cjs.entry.js +3 -3
- package/dist/cjs/dropi-badge-legacy.cjs.entry.js +30 -0
- package/dist/cjs/dropi-badge.cjs.entry.js +4 -4
- package/dist/cjs/dropi-banner-external.cjs.entry.js +53 -0
- package/dist/cjs/dropi-breadcrumb.cjs.entry.js +48 -0
- package/dist/cjs/dropi-button.cjs.entry.js +13 -7
- package/dist/cjs/dropi-card-checkbox.cjs.entry.js +48 -0
- package/dist/cjs/dropi-card-product.cjs.entry.js +76 -0
- package/dist/cjs/dropi-card-section.cjs.entry.js +17 -17
- package/dist/cjs/dropi-carousel.cjs.entry.js +148 -0
- package/dist/cjs/dropi-checkbox-selection-list.cjs.entry.js +17 -15
- package/dist/cjs/dropi-checkbox.cjs.entry.js +6 -6
- package/dist/cjs/dropi-chips.cjs.entry.js +9 -9
- package/dist/cjs/dropi-city-selector.cjs.entry.js +96 -0
- package/dist/cjs/dropi-color-picker.cjs.entry.js +319 -0
- package/dist/cjs/dropi-country-flags.cjs.entry.js +37 -0
- package/dist/cjs/dropi-country-selector.cjs.entry.js +197 -0
- package/dist/cjs/dropi-date-picker-range.cjs.entry.js +115 -0
- package/dist/cjs/dropi-date-picker.cjs.entry.js +223 -0
- package/dist/cjs/dropi-drawer.cjs.entry.js +76 -0
- package/dist/cjs/dropi-dropdown.cjs.entry.js +22 -15
- package/dist/cjs/dropi-empty-state.cjs.entry.js +16 -15
- package/dist/cjs/dropi-favorite-button.cjs.entry.js +5 -5
- package/dist/cjs/dropi-file-upload-progress-bar.cjs.entry.js +75 -0
- package/dist/cjs/dropi-file-upload.cjs.entry.js +236 -0
- package/dist/cjs/dropi-icon.cjs.entry.js +2 -2
- package/dist/cjs/dropi-ilustration-icon.cjs.entry.js +39 -0
- package/dist/cjs/dropi-image-miniature.cjs.entry.js +3 -3
- package/dist/cjs/dropi-image-overlay.cjs.entry.js +4 -4
- package/dist/cjs/dropi-input_3.cjs.entry.js +390 -0
- package/dist/cjs/dropi-languages-selector.cjs.entry.js +57 -0
- package/dist/cjs/dropi-logo.cjs.entry.js +3 -3
- package/dist/cjs/dropi-lottie-loader.cjs.entry.js +7 -7
- package/dist/cjs/dropi-media-player.cjs.entry.js +189 -0
- package/dist/cjs/dropi-modal.cjs.entry.js +36 -14
- package/dist/cjs/dropi-navbar.cjs.entry.js +54 -0
- package/dist/cjs/dropi-otp-send-code.cjs.entry.js +10 -10
- package/dist/cjs/dropi-phone-input.cjs.entry.js +197 -0
- package/dist/cjs/dropi-radio-button.cjs.entry.js +7 -7
- package/dist/cjs/dropi-radio-selection-list.cjs.entry.js +17 -13
- package/dist/cjs/dropi-read-more.cjs.entry.js +8 -4
- package/dist/cjs/dropi-search.cjs.entry.js +52 -38
- package/dist/cjs/dropi-select.cjs.entry.js +98 -55
- package/dist/cjs/dropi-sidebar.cjs.entry.js +78 -0
- package/dist/cjs/dropi-simple-stepper.cjs.entry.js +8 -6
- package/dist/cjs/dropi-skeleton.cjs.entry.js +16 -6
- package/dist/cjs/dropi-steps.cjs.entry.js +6 -4
- package/dist/cjs/dropi-switch.cjs.entry.js +5 -5
- package/dist/cjs/dropi-table.cjs.entry.js +292 -0
- package/dist/cjs/dropi-tabs.cjs.entry.js +13 -11
- package/dist/cjs/dropi-tag-type-product.cjs.entry.js +19 -0
- package/dist/cjs/dropi-text-area.cjs.entry.js +49 -18
- package/dist/cjs/dropi-time-line.cjs.entry.js +3 -3
- package/dist/cjs/dropi-toast.cjs.entry.js +4 -4
- package/dist/cjs/dropi-tooltip-v2.cjs.entry.js +131 -0
- package/dist/cjs/dropi-tooltip.cjs.entry.js +5 -26
- package/dist/cjs/dropi-ui.cjs.js +2 -2
- package/dist/cjs/dropi-vertical-steps.cjs.entry.js +6 -6
- package/dist/cjs/dropi-youtube-lazy-video.cjs.entry.js +33 -0
- package/dist/cjs/{index-B6R6Ojma.js → index-077kM98l.js} +6 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +30 -2
- package/dist/collection/components/dropi-accordion/dropi-accordion-item.css +45 -0
- package/dist/collection/components/dropi-accordion/dropi-accordion-item.js +172 -0
- package/dist/collection/components/dropi-accordion/dropi-accordion.css +3 -3
- package/dist/collection/components/dropi-accordion/dropi-accordion.js +7 -129
- package/dist/collection/components/dropi-alert/dropi-alert.css +26 -15
- package/dist/collection/components/dropi-alert/dropi-alert.js +87 -21
- package/dist/collection/components/dropi-alert-legacy/dropi-alert-legacy.css +31 -0
- package/dist/collection/components/dropi-alert-legacy/dropi-alert-legacy.js +128 -0
- package/dist/collection/components/dropi-alert-modal/dropi-alert-modal.css +96 -0
- package/dist/collection/components/dropi-alert-modal/dropi-alert-modal.js +526 -0
- package/dist/collection/components/dropi-avatars/dropi-avatars.js +3 -3
- package/dist/collection/components/dropi-badge/dropi-badge.css +1 -1
- package/dist/collection/components/dropi-badge/dropi-badge.js +3 -4
- package/dist/collection/components/dropi-badge-legacy/dropi-badge-legacy.css +17 -0
- package/dist/collection/components/dropi-badge-legacy/dropi-badge-legacy.js +119 -0
- package/dist/collection/components/dropi-banner-external/dropi-banner-external.css +56 -0
- package/dist/collection/components/dropi-banner-external/dropi-banner-external.js +243 -0
- package/dist/collection/components/dropi-breadcrumb/dropi-breadcrumb.css +69 -0
- package/dist/collection/components/dropi-breadcrumb/dropi-breadcrumb.js +171 -0
- package/dist/collection/components/dropi-button/dropi-button.css +21 -19
- package/dist/collection/components/dropi-button/dropi-button.js +53 -7
- package/dist/collection/components/dropi-card-checkbox/dropi-card-checkbox.css +92 -0
- package/dist/collection/components/dropi-card-checkbox/dropi-card-checkbox.js +222 -0
- package/dist/collection/components/dropi-card-product/dropi-card-product.css +235 -0
- package/dist/collection/components/dropi-card-product/dropi-card-product.js +384 -0
- package/dist/collection/components/dropi-card-section/dropi-card-section.css +2 -2
- package/dist/collection/components/dropi-card-section/dropi-card-section.js +25 -25
- package/dist/collection/components/dropi-carousel/dropi-carousel.css +148 -0
- package/dist/collection/components/dropi-carousel/dropi-carousel.js +374 -0
- package/dist/collection/components/dropi-checkbox/dropi-checkbox.js +6 -6
- package/dist/collection/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.js +42 -20
- package/dist/collection/components/dropi-chips/dropi-chips.css +2 -0
- package/dist/collection/components/dropi-chips/dropi-chips.js +15 -15
- package/dist/collection/components/dropi-city-selector/dropi-city-selector.css +218 -0
- package/dist/collection/components/dropi-city-selector/dropi-city-selector.js +234 -0
- package/dist/collection/components/dropi-color-picker/dropi-color-picker.css +210 -0
- package/dist/collection/components/dropi-color-picker/dropi-color-picker.js +393 -0
- package/dist/collection/components/dropi-country-flags/dropi-country-flags.css +30 -0
- package/dist/collection/components/dropi-country-flags/dropi-country-flags.js +129 -0
- package/dist/collection/components/dropi-country-selector/dropi-country-selector.css +211 -0
- package/dist/collection/components/dropi-country-selector/dropi-country-selector.js +429 -0
- package/dist/collection/components/dropi-date-picker/dropi-date-picker.css +215 -0
- package/dist/collection/components/dropi-date-picker/dropi-date-picker.js +516 -0
- package/dist/collection/components/dropi-date-picker-range/dropi-date-picker-range.css +143 -0
- package/dist/collection/components/dropi-date-picker-range/dropi-date-picker-range.js +327 -0
- package/dist/collection/components/dropi-drawer/dropi-drawer.css +129 -0
- package/dist/collection/components/dropi-drawer/dropi-drawer.js +284 -0
- package/dist/collection/components/dropi-dropdown/dropi-dropdown.css +1 -1
- package/dist/collection/components/dropi-dropdown/dropi-dropdown.js +51 -26
- package/dist/collection/components/dropi-empty-state/dropi-empty-state.css +1 -0
- package/dist/collection/components/dropi-empty-state/dropi-empty-state.js +65 -38
- package/dist/collection/components/dropi-favorite-button/dropi-favorite-button.js +5 -5
- package/dist/collection/components/dropi-file-upload/dropi-file-upload.css +464 -0
- package/dist/collection/components/dropi-file-upload/dropi-file-upload.js +516 -0
- package/dist/collection/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.css +115 -0
- package/dist/collection/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.js +256 -0
- package/dist/collection/components/dropi-icon/dropi-icon.js +1 -1
- package/dist/collection/components/dropi-ilustration-icon/dropi-ilustration-icon.css +91 -0
- package/dist/collection/components/dropi-ilustration-icon/dropi-ilustration-icon.js +150 -0
- package/dist/collection/components/dropi-image-miniature/dropi-image-miniature.js +1 -1
- package/dist/collection/components/dropi-image-overlay/dropi-image-overlay.css +86 -41
- package/dist/collection/components/dropi-image-overlay/dropi-image-overlay.js +1 -1
- package/dist/collection/components/dropi-input/dropi-input.css +1 -1
- package/dist/collection/components/dropi-input/dropi-input.js +158 -87
- package/dist/collection/components/dropi-languages-selector/dropi-languages-selector.css +79 -0
- package/dist/collection/components/dropi-languages-selector/dropi-languages-selector.js +154 -0
- package/dist/collection/components/dropi-logo/dropi-logo.js +2 -2
- package/dist/collection/components/dropi-lottie-loader/dropi-lottie-loader.css +8 -2
- package/dist/collection/components/dropi-lottie-loader/dropi-lottie-loader.js +11 -11
- package/dist/collection/components/dropi-media-player/dropi-media-player.css +320 -0
- package/dist/collection/components/dropi-media-player/dropi-media-player.js +391 -0
- package/dist/collection/components/dropi-modal/dropi-modal.css +20 -4
- package/dist/collection/components/dropi-modal/dropi-modal.js +300 -18
- package/dist/collection/components/dropi-navbar/dropi-navbar.css +166 -0
- package/dist/collection/components/dropi-navbar/dropi-navbar.js +302 -0
- package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.css +17 -10
- package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.js +9 -9
- package/dist/collection/components/dropi-paginator/dropi-paginator.css +2 -2
- package/dist/collection/components/dropi-paginator/dropi-paginator.js +51 -99
- package/dist/collection/components/dropi-phone-input/dropi-phone-input.css +209 -0
- package/dist/collection/components/dropi-phone-input/dropi-phone-input.js +442 -0
- package/dist/collection/components/dropi-radio-button/dropi-radio-button.js +13 -20
- package/dist/collection/components/dropi-radio-selection-list/dropi-radio-selection-list.css +3 -3
- package/dist/collection/components/dropi-radio-selection-list/dropi-radio-selection-list.js +69 -19
- package/dist/collection/components/dropi-read-more/dropi-read-more.css +5 -8
- package/dist/collection/components/dropi-read-more/dropi-read-more.js +46 -2
- package/dist/collection/components/dropi-search/dropi-search.css +2 -2
- package/dist/collection/components/dropi-search/dropi-search.js +194 -60
- package/dist/collection/components/dropi-select/dropi-select.css +7 -7
- package/dist/collection/components/dropi-select/dropi-select.js +166 -84
- package/dist/collection/components/dropi-sidebar/dropi-sidebar.css +76 -0
- package/dist/collection/components/dropi-sidebar/dropi-sidebar.js +143 -0
- package/dist/collection/components/dropi-simple-stepper/dropi-simple-stepper.css +2 -2
- package/dist/collection/components/dropi-simple-stepper/dropi-simple-stepper.js +29 -7
- package/dist/collection/components/dropi-skeleton/dropi-skeleton.js +40 -10
- package/dist/collection/components/dropi-steps/dropi-steps.css +3 -3
- package/dist/collection/components/dropi-steps/dropi-steps.js +31 -3
- package/dist/collection/components/dropi-switch/dropi-switch.js +5 -5
- package/dist/collection/components/dropi-table/dropi-table.css +540 -0
- package/dist/collection/components/dropi-table/dropi-table.js +966 -0
- package/dist/collection/components/dropi-tabs/dropi-tabs.css +10 -5
- package/dist/collection/components/dropi-tabs/dropi-tabs.js +35 -13
- package/dist/collection/components/dropi-tag/dropi-tag.css +1 -2
- package/dist/collection/components/dropi-tag/dropi-tag.js +1 -1
- package/dist/collection/components/dropi-tag-type-product/dropi-tag-type-product.css +14 -0
- package/dist/collection/components/dropi-tag-type-product/dropi-tag-type-product.js +48 -0
- package/dist/collection/components/dropi-text-area/dropi-text-area.css +6 -2
- package/dist/collection/components/dropi-text-area/dropi-text-area.js +87 -32
- package/dist/collection/components/dropi-time-line/dropi-time-line.css +2 -2
- package/dist/collection/components/dropi-time-line/dropi-time-line.js +1 -1
- package/dist/collection/components/dropi-toast/dropi-toast.css +2 -2
- package/dist/collection/components/dropi-toast/dropi-toast.js +3 -3
- package/dist/collection/components/dropi-tooltip/dropi-tooltip.css +28 -63
- package/dist/collection/components/dropi-tooltip/dropi-tooltip.js +11 -88
- package/dist/collection/components/dropi-tooltip-v2/dropi-tooltip.css +67 -0
- package/dist/collection/components/dropi-tooltip-v2/dropi-tooltip.js +468 -0
- package/dist/collection/components/dropi-vertical-steps/dropi-vertical-steps.css +3 -3
- package/dist/collection/components/dropi-vertical-steps/dropi-vertical-steps.js +5 -5
- package/dist/collection/components/dropi-youtube-lazy-video/dropi-youtube-lazy-video.css +73 -0
- package/dist/collection/components/dropi-youtube-lazy-video/dropi-youtube-lazy-video.js +110 -0
- package/dist/components/dropi-accordion-item.d.ts +11 -0
- package/dist/components/dropi-accordion-item.js +1 -0
- package/dist/components/dropi-accordion.js +1 -1
- package/dist/components/dropi-alert-legacy.d.ts +11 -0
- package/dist/components/dropi-alert-legacy.js +1 -0
- package/dist/components/dropi-alert-modal.d.ts +11 -0
- package/dist/components/dropi-alert-modal.js +1 -0
- package/dist/components/dropi-alert.js +1 -1
- package/dist/components/dropi-avatars.js +1 -1
- package/dist/components/dropi-badge-legacy.d.ts +11 -0
- package/dist/components/dropi-badge-legacy.js +1 -0
- package/dist/components/dropi-badge.js +1 -1
- package/dist/components/dropi-banner-external.d.ts +11 -0
- package/dist/components/dropi-banner-external.js +1 -0
- package/dist/components/dropi-breadcrumb.d.ts +11 -0
- package/dist/components/dropi-breadcrumb.js +1 -0
- package/dist/components/dropi-button.js +1 -1
- package/dist/components/dropi-card-checkbox.d.ts +11 -0
- package/dist/components/dropi-card-checkbox.js +1 -0
- package/dist/components/dropi-card-product.d.ts +11 -0
- package/dist/components/dropi-card-product.js +1 -0
- package/dist/components/dropi-card-section.js +1 -1
- package/dist/components/dropi-carousel.d.ts +11 -0
- package/dist/components/dropi-carousel.js +1 -0
- package/dist/components/dropi-checkbox-selection-list.js +1 -1
- package/dist/components/dropi-checkbox.js +1 -1
- package/dist/components/dropi-chips.js +1 -1
- package/dist/components/dropi-city-selector.d.ts +11 -0
- package/dist/components/dropi-city-selector.js +1 -0
- package/dist/components/dropi-color-picker.d.ts +11 -0
- package/dist/components/dropi-color-picker.js +1 -0
- package/dist/components/dropi-country-flags.d.ts +11 -0
- package/dist/components/dropi-country-flags.js +1 -0
- package/dist/components/dropi-country-selector.d.ts +11 -0
- package/dist/components/dropi-country-selector.js +1 -0
- package/dist/components/dropi-date-picker-range.d.ts +11 -0
- package/dist/components/dropi-date-picker-range.js +1 -0
- package/dist/components/dropi-date-picker.d.ts +11 -0
- package/dist/components/dropi-date-picker.js +1 -0
- package/dist/components/dropi-drawer.d.ts +11 -0
- package/dist/components/dropi-drawer.js +1 -0
- package/dist/components/dropi-dropdown.js +1 -1
- package/dist/components/dropi-empty-state.js +1 -1
- package/dist/components/dropi-favorite-button.js +1 -1
- package/dist/components/dropi-file-upload-progress-bar.d.ts +11 -0
- package/dist/components/dropi-file-upload-progress-bar.js +1 -0
- package/dist/components/dropi-file-upload.d.ts +11 -0
- package/dist/components/dropi-file-upload.js +1 -0
- package/dist/components/dropi-icon.js +1 -1
- package/dist/components/dropi-ilustration-icon.d.ts +11 -0
- package/dist/components/dropi-ilustration-icon.js +1 -0
- package/dist/components/dropi-image-miniature.js +1 -1
- package/dist/components/dropi-image-overlay.js +1 -1
- package/dist/components/dropi-input.js +1 -1
- package/dist/components/dropi-languages-selector.d.ts +11 -0
- package/dist/components/dropi-languages-selector.js +1 -0
- package/dist/components/dropi-logo.js +1 -1
- package/dist/components/dropi-lottie-loader.js +1 -1
- package/dist/components/dropi-media-player.d.ts +11 -0
- package/dist/components/dropi-media-player.js +1 -0
- package/dist/components/dropi-modal.js +1 -1
- package/dist/components/dropi-navbar.d.ts +11 -0
- package/dist/components/dropi-navbar.js +1 -0
- package/dist/components/dropi-otp-send-code.js +1 -1
- package/dist/components/dropi-paginator.js +1 -1
- package/dist/components/dropi-phone-input.d.ts +11 -0
- package/dist/components/dropi-phone-input.js +1 -0
- package/dist/components/dropi-radio-button.js +1 -1
- package/dist/components/dropi-radio-selection-list.js +1 -1
- package/dist/components/dropi-read-more.js +1 -1
- package/dist/components/dropi-search.js +1 -1
- package/dist/components/dropi-select.js +1 -1
- package/dist/components/dropi-sidebar.d.ts +11 -0
- package/dist/components/dropi-sidebar.js +1 -0
- package/dist/components/dropi-simple-stepper.js +1 -1
- package/dist/components/dropi-skeleton.js +1 -1
- package/dist/components/dropi-steps.js +1 -1
- package/dist/components/dropi-switch.js +1 -1
- package/dist/components/dropi-table.d.ts +11 -0
- package/dist/components/dropi-table.js +1 -0
- package/dist/components/dropi-tabs.js +1 -1
- package/dist/components/dropi-tag-type-product.d.ts +11 -0
- package/dist/components/dropi-tag-type-product.js +1 -0
- package/dist/components/dropi-tag.js +1 -1
- package/dist/components/dropi-text-area.js +1 -1
- package/dist/components/dropi-time-line.js +1 -1
- package/dist/components/dropi-toast.js +1 -1
- package/dist/components/dropi-tooltip-v2.d.ts +11 -0
- package/dist/components/dropi-tooltip-v2.js +1 -0
- package/dist/components/dropi-tooltip.js +1 -1
- package/dist/components/dropi-vertical-steps.js +1 -1
- package/dist/components/dropi-youtube-lazy-video.d.ts +11 -0
- package/dist/components/dropi-youtube-lazy-video.js +1 -0
- package/dist/components/index.js +1 -1
- package/dist/components/p-9KLpSviZ.js +1 -0
- package/dist/components/p-BVekazGL.js +1 -0
- package/dist/components/p-BYRcOZS4.js +1 -0
- package/dist/components/p-BuDg1d0S.js +1 -0
- package/dist/components/p-C2paYEIp.js +1 -0
- package/dist/components/p-CDvkvedb.js +1 -0
- package/dist/components/{p-CPs3fHRc.js → p-CnALA9z_.js} +1 -1
- package/dist/components/p-CtzCJQVR.js +1 -0
- package/dist/components/p-CzHupXu8.js +1 -0
- package/dist/components/p-DWzWYR5X.js +1 -0
- package/dist/components/p-D_Y7tuEH.js +1 -0
- package/dist/components/p-DjO9xpVc.js +1 -0
- package/dist/dropi-ui/dropi-ui.esm.js +1 -1
- package/dist/dropi-ui/p-0966c363.entry.js +1 -0
- package/dist/dropi-ui/p-0c541a53.entry.js +1 -0
- package/dist/dropi-ui/p-0cd1fb7a.entry.js +1 -0
- package/dist/dropi-ui/p-0f161461.entry.js +1 -0
- package/dist/dropi-ui/p-10e363a2.entry.js +1 -0
- package/dist/dropi-ui/p-1d4c5364.entry.js +1 -0
- package/dist/dropi-ui/p-2e0623ba.entry.js +1 -0
- package/dist/dropi-ui/p-2e4efb72.entry.js +1 -0
- package/dist/dropi-ui/p-36cdd4fc.entry.js +1 -0
- package/dist/dropi-ui/{p-c2316d4d.entry.js → p-37c86c74.entry.js} +1 -1
- package/dist/dropi-ui/p-392654b7.entry.js +1 -0
- package/dist/dropi-ui/p-39904430.entry.js +1 -0
- package/dist/dropi-ui/p-3a3b778f.entry.js +1 -0
- package/dist/dropi-ui/p-3cbe953f.entry.js +1 -0
- package/dist/dropi-ui/p-40b69ccd.entry.js +1 -0
- package/dist/dropi-ui/p-443ed5bd.entry.js +1 -0
- package/dist/dropi-ui/p-475a16f2.entry.js +1 -0
- package/dist/dropi-ui/p-4967b619.entry.js +1 -0
- package/dist/dropi-ui/p-4de83790.entry.js +1 -0
- package/dist/dropi-ui/p-59188dd5.entry.js +1 -0
- package/dist/dropi-ui/p-6178190b.entry.js +1 -0
- package/dist/dropi-ui/p-623759eb.entry.js +1 -0
- package/dist/dropi-ui/p-645da978.entry.js +1 -0
- package/dist/dropi-ui/p-6e727fb0.entry.js +1 -0
- package/dist/dropi-ui/p-7036c073.entry.js +1 -0
- package/dist/dropi-ui/p-710312bd.entry.js +1 -0
- package/dist/dropi-ui/p-74dfe8d1.entry.js +1 -0
- package/dist/dropi-ui/p-770afae3.entry.js +1 -0
- package/dist/dropi-ui/p-7c0bc6dd.entry.js +1 -0
- package/dist/dropi-ui/p-7f8d3642.entry.js +1 -0
- package/dist/dropi-ui/p-7fc02d98.entry.js +1 -0
- package/dist/dropi-ui/p-8188cca4.entry.js +1 -0
- package/dist/dropi-ui/p-858bedcf.entry.js +1 -0
- package/dist/dropi-ui/p-87e9ba6d.entry.js +1 -0
- package/dist/dropi-ui/p-8b4d4d2d.entry.js +1 -0
- package/dist/dropi-ui/p-9062f0de.entry.js +1 -0
- package/dist/dropi-ui/p-925852b1.entry.js +1 -0
- package/dist/dropi-ui/{p-724a2aea.entry.js → p-99943b7d.entry.js} +1 -1
- package/dist/dropi-ui/p-TXz_09YZ.js +2 -0
- package/dist/dropi-ui/p-a1f2383d.entry.js +1 -0
- package/dist/dropi-ui/p-a6939701.entry.js +1 -0
- package/dist/dropi-ui/p-aa8d2aec.entry.js +1 -0
- package/dist/dropi-ui/p-aafaffa3.entry.js +1 -0
- package/dist/dropi-ui/{p-30fdd316.entry.js → p-ac345a0e.entry.js} +1 -1
- package/dist/dropi-ui/p-acfa17ef.entry.js +1 -0
- package/dist/dropi-ui/p-af3691a0.entry.js +1 -0
- package/dist/dropi-ui/p-b207fc92.entry.js +1 -0
- package/dist/dropi-ui/p-ba3ad28e.entry.js +1 -0
- package/dist/dropi-ui/p-bd0ffb4a.entry.js +1 -0
- package/dist/dropi-ui/p-c2e96728.entry.js +1 -0
- package/dist/dropi-ui/p-c664f99f.entry.js +1 -0
- package/dist/dropi-ui/p-c7e3a5e0.entry.js +1 -0
- package/dist/dropi-ui/{p-061e1ad4.entry.js → p-cfc19ca0.entry.js} +1 -1
- package/dist/dropi-ui/p-d36a0c37.entry.js +1 -0
- package/dist/dropi-ui/p-dd4c6b40.entry.js +1 -0
- package/dist/dropi-ui/p-e0351b61.entry.js +1 -0
- package/dist/dropi-ui/p-e2361547.entry.js +1 -0
- package/dist/dropi-ui/p-e25b2680.entry.js +1 -0
- package/dist/dropi-ui/p-e6943d7c.entry.js +1 -0
- package/dist/dropi-ui/p-e7b59811.entry.js +1 -0
- package/dist/dropi-ui/p-eac7777f.entry.js +1 -0
- package/dist/dropi-ui/p-ed94b5fe.entry.js +1 -0
- package/dist/dropi-ui/p-f0ddf569.entry.js +1 -0
- package/dist/dropi-ui/p-f95c11f8.entry.js +1 -0
- package/dist/esm/dropi-accordion-item.entry.js +52 -0
- package/dist/esm/dropi-accordion.entry.js +5 -39
- package/dist/esm/dropi-alert-legacy.entry.js +37 -0
- package/dist/esm/dropi-alert-modal.entry.js +126 -0
- package/dist/esm/dropi-alert.entry.js +21 -15
- package/dist/esm/dropi-avatars.entry.js +3 -3
- package/dist/esm/dropi-badge-legacy.entry.js +28 -0
- package/dist/esm/dropi-badge.entry.js +4 -4
- package/dist/esm/dropi-banner-external.entry.js +51 -0
- package/dist/esm/dropi-breadcrumb.entry.js +46 -0
- package/dist/esm/dropi-button.entry.js +13 -7
- package/dist/esm/dropi-card-checkbox.entry.js +46 -0
- package/dist/esm/dropi-card-product.entry.js +74 -0
- package/dist/esm/dropi-card-section.entry.js +17 -17
- package/dist/esm/dropi-carousel.entry.js +146 -0
- package/dist/esm/dropi-checkbox-selection-list.entry.js +17 -15
- package/dist/esm/dropi-checkbox.entry.js +6 -6
- package/dist/esm/dropi-chips.entry.js +9 -9
- package/dist/esm/dropi-city-selector.entry.js +94 -0
- package/dist/esm/dropi-color-picker.entry.js +317 -0
- package/dist/esm/dropi-country-flags.entry.js +35 -0
- package/dist/esm/dropi-country-selector.entry.js +195 -0
- package/dist/esm/dropi-date-picker-range.entry.js +113 -0
- package/dist/esm/dropi-date-picker.entry.js +221 -0
- package/dist/esm/dropi-drawer.entry.js +74 -0
- package/dist/esm/dropi-dropdown.entry.js +22 -15
- package/dist/esm/dropi-empty-state.entry.js +16 -15
- package/dist/esm/dropi-favorite-button.entry.js +5 -5
- package/dist/esm/dropi-file-upload-progress-bar.entry.js +73 -0
- package/dist/esm/dropi-file-upload.entry.js +234 -0
- package/dist/esm/dropi-icon.entry.js +2 -2
- package/dist/esm/dropi-ilustration-icon.entry.js +37 -0
- package/dist/esm/dropi-image-miniature.entry.js +3 -3
- package/dist/esm/dropi-image-overlay.entry.js +4 -4
- package/dist/esm/dropi-input_3.entry.js +386 -0
- package/dist/esm/dropi-languages-selector.entry.js +55 -0
- package/dist/esm/dropi-logo.entry.js +3 -3
- package/dist/esm/dropi-lottie-loader.entry.js +7 -7
- package/dist/esm/dropi-media-player.entry.js +187 -0
- package/dist/esm/dropi-modal.entry.js +36 -14
- package/dist/esm/dropi-navbar.entry.js +52 -0
- package/dist/esm/dropi-otp-send-code.entry.js +10 -10
- package/dist/esm/dropi-phone-input.entry.js +195 -0
- package/dist/esm/dropi-radio-button.entry.js +7 -7
- package/dist/esm/dropi-radio-selection-list.entry.js +17 -13
- package/dist/esm/dropi-read-more.entry.js +8 -4
- package/dist/esm/dropi-search.entry.js +52 -38
- package/dist/esm/dropi-select.entry.js +98 -55
- package/dist/esm/dropi-sidebar.entry.js +76 -0
- package/dist/esm/dropi-simple-stepper.entry.js +8 -6
- package/dist/esm/dropi-skeleton.entry.js +16 -6
- package/dist/esm/dropi-steps.entry.js +6 -4
- package/dist/esm/dropi-switch.entry.js +5 -5
- package/dist/esm/dropi-table.entry.js +290 -0
- package/dist/esm/dropi-tabs.entry.js +13 -11
- package/dist/esm/dropi-tag-type-product.entry.js +17 -0
- package/dist/esm/dropi-text-area.entry.js +49 -18
- package/dist/esm/dropi-time-line.entry.js +3 -3
- package/dist/esm/dropi-toast.entry.js +4 -4
- package/dist/esm/dropi-tooltip-v2.entry.js +129 -0
- package/dist/esm/dropi-tooltip.entry.js +5 -26
- package/dist/esm/dropi-ui.js +3 -3
- package/dist/esm/dropi-vertical-steps.entry.js +6 -6
- package/dist/esm/dropi-youtube-lazy-video.entry.js +31 -0
- package/dist/esm/{index-Twbb5MNM.js → index-TXz_09YZ.js} +6 -3
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/dropi-accordion/dropi-accordion-item.d.ts +24 -0
- package/dist/types/components/dropi-accordion/dropi-accordion.d.ts +3 -23
- package/dist/types/components/dropi-alert/dropi-alert.d.ts +9 -3
- package/dist/types/components/dropi-alert-legacy/dropi-alert-legacy.d.ts +18 -0
- package/dist/types/components/dropi-alert-modal/dropi-alert-modal.d.ts +66 -0
- package/dist/types/components/dropi-badge-legacy/dropi-badge-legacy.d.ts +15 -0
- package/dist/types/components/dropi-banner-external/dropi-banner-external.d.ts +36 -0
- package/dist/types/components/dropi-breadcrumb/dropi-breadcrumb.d.ts +31 -0
- package/dist/types/components/dropi-button/dropi-button.d.ts +6 -2
- package/dist/types/components/dropi-card-checkbox/dropi-card-checkbox.d.ts +34 -0
- package/dist/types/components/dropi-card-product/dropi-card-product.d.ts +43 -0
- package/dist/types/components/dropi-card-section/dropi-card-section.d.ts +5 -5
- package/dist/types/components/dropi-carousel/dropi-carousel.d.ts +44 -0
- package/dist/types/components/dropi-checkbox/dropi-checkbox.d.ts +1 -1
- package/dist/types/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.d.ts +7 -5
- package/dist/types/components/dropi-chips/dropi-chips.d.ts +4 -4
- package/dist/types/components/dropi-city-selector/dropi-city-selector.d.ts +48 -0
- package/dist/types/components/dropi-color-picker/dropi-color-picker.d.ts +56 -0
- package/dist/types/components/dropi-country-flags/dropi-country-flags.d.ts +19 -0
- package/dist/types/components/dropi-country-selector/dropi-country-selector.d.ts +50 -0
- package/dist/types/components/dropi-date-picker/dropi-date-picker.d.ts +55 -0
- package/dist/types/components/dropi-date-picker-range/dropi-date-picker-range.d.ts +50 -0
- package/dist/types/components/dropi-drawer/dropi-drawer.d.ts +31 -0
- package/dist/types/components/dropi-dropdown/dropi-dropdown.d.ts +12 -6
- package/dist/types/components/dropi-empty-state/dropi-empty-state.d.ts +12 -10
- package/dist/types/components/dropi-favorite-button/dropi-favorite-button.d.ts +1 -1
- package/dist/types/components/dropi-file-upload/dropi-file-upload.d.ts +76 -0
- package/dist/types/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.d.ts +33 -0
- package/dist/types/components/dropi-ilustration-icon/dropi-ilustration-icon.d.ts +24 -0
- package/dist/types/components/dropi-input/dropi-input.d.ts +28 -18
- package/dist/types/components/dropi-languages-selector/dropi-languages-selector.d.ts +31 -0
- package/dist/types/components/dropi-lottie-loader/dropi-lottie-loader.d.ts +1 -1
- package/dist/types/components/dropi-media-player/dropi-media-player.d.ts +51 -0
- package/dist/types/components/dropi-modal/dropi-modal.d.ts +22 -3
- package/dist/types/components/dropi-navbar/dropi-navbar.d.ts +42 -0
- package/dist/types/components/dropi-otp-send-code/dropi-otp-send-code.d.ts +1 -1
- package/dist/types/components/dropi-paginator/dropi-paginator.d.ts +10 -20
- package/dist/types/components/dropi-phone-input/dropi-phone-input.d.ts +49 -0
- package/dist/types/components/dropi-radio-button/dropi-radio-button.d.ts +2 -2
- package/dist/types/components/dropi-radio-selection-list/dropi-radio-selection-list.d.ts +11 -4
- package/dist/types/components/dropi-read-more/dropi-read-more.d.ts +4 -0
- package/dist/types/components/dropi-search/dropi-search.d.ts +24 -12
- package/dist/types/components/dropi-select/dropi-select.d.ts +26 -15
- package/dist/types/components/dropi-sidebar/dropi-sidebar.d.ts +41 -0
- package/dist/types/components/dropi-simple-stepper/dropi-simple-stepper.d.ts +2 -0
- package/dist/types/components/dropi-skeleton/dropi-skeleton.d.ts +4 -1
- package/dist/types/components/dropi-steps/dropi-steps.d.ts +3 -0
- package/dist/types/components/dropi-switch/dropi-switch.d.ts +1 -1
- package/dist/types/components/dropi-table/dropi-table.d.ts +131 -0
- package/dist/types/components/dropi-tabs/dropi-tabs.d.ts +5 -3
- package/dist/types/components/dropi-tag-type-product/dropi-tag-type-product.d.ts +9 -0
- package/dist/types/components/dropi-text-area/dropi-text-area.d.ts +27 -6
- package/dist/types/components/dropi-tooltip/dropi-tooltip.d.ts +3 -17
- package/dist/types/components/dropi-tooltip-v2/dropi-tooltip.d.ts +59 -0
- package/dist/types/components/dropi-vertical-steps/dropi-vertical-steps.d.ts +1 -1
- package/dist/types/components/dropi-youtube-lazy-video/dropi-youtube-lazy-video.d.ts +19 -0
- package/dist/types/components.d.ts +4694 -688
- package/dist/types/index.d.ts +1 -0
- package/package.json +25 -3
- package/readme.md +56 -7
- package/scripts/setup.js +121 -23
- package/skills/install-dropi-ui/skill.md +15 -10
- package/dist/cjs/dropi-input.cjs.entry.js +0 -210
- package/dist/cjs/dropi-paginator.cjs.entry.js +0 -91
- package/dist/cjs/dropi-tag.cjs.entry.js +0 -68
- package/dist/components/p-DKXrREI4.js +0 -1
- package/dist/components/p-Ds74ZOlC.js +0 -1
- package/dist/components/p-WZTFyFH2.js +0 -1
- package/dist/dropi-ui/p-0c13dded.entry.js +0 -1
- package/dist/dropi-ui/p-121c8a09.entry.js +0 -1
- package/dist/dropi-ui/p-291a1416.entry.js +0 -1
- package/dist/dropi-ui/p-2cee44f9.entry.js +0 -1
- package/dist/dropi-ui/p-3537ee5a.entry.js +0 -1
- package/dist/dropi-ui/p-3d859657.entry.js +0 -1
- package/dist/dropi-ui/p-433d161d.entry.js +0 -1
- package/dist/dropi-ui/p-4bdfad16.entry.js +0 -1
- package/dist/dropi-ui/p-4ea7d3a7.entry.js +0 -1
- package/dist/dropi-ui/p-51c8ef68.entry.js +0 -1
- package/dist/dropi-ui/p-54780c90.entry.js +0 -1
- package/dist/dropi-ui/p-66deb85e.entry.js +0 -1
- package/dist/dropi-ui/p-68f81080.entry.js +0 -1
- package/dist/dropi-ui/p-74c37688.entry.js +0 -1
- package/dist/dropi-ui/p-7cec1cea.entry.js +0 -1
- package/dist/dropi-ui/p-7daa2677.entry.js +0 -1
- package/dist/dropi-ui/p-8906a68d.entry.js +0 -1
- package/dist/dropi-ui/p-Twbb5MNM.js +0 -2
- package/dist/dropi-ui/p-a4204ece.entry.js +0 -1
- package/dist/dropi-ui/p-a5650d8f.entry.js +0 -1
- package/dist/dropi-ui/p-a9116dbe.entry.js +0 -1
- package/dist/dropi-ui/p-b0d3442e.entry.js +0 -1
- package/dist/dropi-ui/p-b36b819f.entry.js +0 -1
- package/dist/dropi-ui/p-c10cbb8d.entry.js +0 -1
- package/dist/dropi-ui/p-cb5fd7a9.entry.js +0 -1
- package/dist/dropi-ui/p-d1e1b716.entry.js +0 -1
- package/dist/dropi-ui/p-d5ecc394.entry.js +0 -1
- package/dist/dropi-ui/p-db6c9828.entry.js +0 -1
- package/dist/dropi-ui/p-e721127d.entry.js +0 -1
- package/dist/dropi-ui/p-e8557da0.entry.js +0 -1
- package/dist/dropi-ui/p-ebfd4665.entry.js +0 -1
- package/dist/dropi-ui/p-f3cef35a.entry.js +0 -1
- package/dist/dropi-ui/p-f6a69c4e.entry.js +0 -1
- package/dist/dropi-ui/p-ff45e7c8.entry.js +0 -1
- package/dist/esm/dropi-input.entry.js +0 -208
- package/dist/esm/dropi-paginator.entry.js +0 -89
- package/dist/esm/dropi-tag.entry.js +0 -66
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as r,h as o}from"./p-Twbb5MNM.js";const e=class{constructor(o){t(this,o),this.dropiInput=r(this,"dropiInput"),this.dropiChange=r(this,"dropiChange"),this.dropiFocus=r(this,"dropiFocus"),this.dropiBlur=r(this,"dropiBlur"),o.$hostElement$["s-ei"]?this.internals=o.$hostElement$["s-ei"]:(this.internals=o.$hostElement$.attachInternals(),o.$hostElement$["s-ei"]=this.internals)}internals;inputId="";name="";label="";placeholder=" ";value="";maxlength;disabled=!1;required=!1;showAsterisk=!0;fixedLabel=!1;inputMode="text";passwordInput=!1;moneyFormat=!1;thousandSeparator=!1;onlyNumbers=!1;allowDecimals=!1;onlyLetters=!1;icon="";iconColor="Gray-Gray-400";invalid=!1;helperText="";showHelperOnlyOnError=!1;showPassword=!1;touched=!1;dropiInput;dropiChange;dropiFocus;dropiBlur;valueChanged(t){this.internals.setFormValue(t)}disabledChanged(t){this.internals.setValidity(t?{customError:!0}:{},t?"Field is disabled":"")}componentWillLoad(){this.internals.setFormValue(this.value??"")}handleInput(t){let r=t.target.value;this.onlyNumbers&&(r=this.filterNumbers(r)),this.onlyLetters&&(r=this.filterLetters(r)),(this.moneyFormat||this.thousandSeparator)&&(r=this.formatThousands(r,this.moneyFormat)),this.value=r,this.internals.setFormValue(r),this.dropiInput.emit(r)}handleKeyDown(t){(this.onlyNumbers||this.moneyFormat||this.thousandSeparator)&&!this.isAllowedNumberKey(t)&&t.preventDefault(),this.onlyLetters&&!this.isAllowedLetterKey(t)&&t.preventDefault()}handleFocus(){this.dropiFocus.emit()}handleBlur(){this.touched=!0,this.dropiChange.emit(this.value),this.dropiBlur.emit()}togglePassword(){this.disabled||(this.showPassword=!this.showPassword)}filterNumbers(t){return t.replace(this.allowDecimals?/[^0-9.]/g:/[^0-9]/g,"")}filterLetters(t){return t.replace(/[^a-zA-ZáéíóúÁÉÍÓÚñÑüÜ\s]/g,"")}isAllowedNumberKey(t){return!!(["Backspace","Delete","ArrowLeft","ArrowRight","Tab","Enter","Home","End"].includes(t.key)||t.ctrlKey||t.metaKey||/^[0-9]$/.test(t.key)||this.allowDecimals&&"."===t.key)}isAllowedLetterKey(t){return!!["Backspace","Delete","ArrowLeft","ArrowRight","Tab","Enter","Home","End"," "].includes(t.key)||!(!t.ctrlKey&&!t.metaKey)||/^[a-zA-ZáéíóúÁÉÍÓÚñÑüÜ]$/.test(t.key)}formatThousands(t,r){const o=t.replace(/[^0-9.]/g,""),[e,i]=o.split("."),a=e.replace(/\B(?=(\d{3})+(?!\d))/g,","),s=void 0!==i?`${a}.${i}`:a;return r?`$${s}`:s}get resolvedId(){return this.inputId||this.label}get inputType(){return this.passwordInput?this.showPassword?"text":"password":"text"}get showHelper(){return!!this.helperText&&(!this.showHelperOnlyOnError||this.invalid&&this.touched)}get isInvalid(){return this.invalid&&this.touched}render(){const t=this.required&&this.showAsterisk&&!this.disabled,r=!!this.icon;return o("div",{key:"444e873dc4175e75a5c85814499e28afb3f80b37",class:{"fixed-label-container":this.fixedLabel}},this.fixedLabel&&o("div",{key:"a501500f872b87ad701f5c18e0e3b532005c3fcb",class:"input-label Body-S-Regular"},this.label,t&&o("span",{key:"1ca3afb47b67cfb61cd8bceb8657c9f061462064",class:"asterisk"}," *")),o("div",{key:"eb31110de652f6db7c5fdd747046280b0e81e2b6",class:"form-group"},o("div",{key:"b0bb2cac1e8d7f20d927437e4ba6327e333d1fdb",class:{"input-container":!0,"input-container--has-icon":r}},r&&o("dropi-icon",{key:"604a369b358b1c95a19cc23dd4bc4f9c77e4b050",class:"icon-input",name:this.icon,color:this.iconColor,width:"20px",height:"20px"}),this.passwordInput&&o("dropi-icon",{key:"b1b3b979d172ada0c3fe616f795c7cd5b2bf45cb",class:"icon-input-password",name:this.showPassword?"Eye":"Eye-crossed",width:"20px",height:"20px",color:"Gray-Gray-500",onClick:()=>this.togglePassword()}),o("input",{key:"b5488711765a12b6e9fea7b0f8d5a23ae95de925",id:this.resolvedId,class:{"form-control":!0,"form-control-valid":!this.isInvalid&&this.touched&&!!this.value,"form-control-invalid":this.isInvalid,"padding-icon":r,"text-password":this.passwordInput&&!this.showPassword,"fixed-label-input":this.fixedLabel},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":void 0,onInput:t=>this.handleInput(t),onKeyDown:t=>this.handleKeyDown(t),onFocus:()=>this.handleFocus(),onBlur:()=>this.handleBlur()}),!this.fixedLabel&&o("label",{key:"f3008d901c41e6f362977e1232e7597733c4288e",class:"Body-S-Regular label-bottom",htmlFor:this.resolvedId},this.label,t&&o("span",{key:"1b982a1630f88557380df2f22c0c27bcceebbdc6",class:"asterisk"}," *")),this.showHelper&&o("div",{key:"30382a8e7beb0a14bb06f8fd25dae3da5371efd3",class:"form-control-helper"},this.isInvalid&&o("dropi-icon",{key:"a1ef2b7a9a659301cc22c19d5e5f65bd7a595a2c",name:"Warning-circle",width:"12px",height:"12px",color:"Error-Error-500"}),o("span",{key:"289250769c59d1ddde821395a9e97368404ca1ab",class:{"disabled-helper":this.disabled,"invalid-color":this.isInvalid}},this.helperText)))))}static get formAssociated(){return!0}static get watchers(){return{value:[{valueChanged:0}],disabled:[{disabledChanged:0}]}}};e.style=":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:10px;left:5px;z-index:1}.icon-input-password{position:absolute;top:10px;right:13px;cursor:pointer;z-index:1}.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, #fff);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:28px}.input-container--has-icon label.label-bottom{left:28px}.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}";export{e as dropi_input}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as o}from"./p-Twbb5MNM.js";const r=class{constructor(o){t(this,o)}text="";position="top";maxWidth="280px";showDelay=0;visible=!1;showTimer=null;show=()=>{this.showDelay>0?this.showTimer=setTimeout((()=>{this.visible=!0}),this.showDelay):this.visible=!0};hide=()=>{this.showTimer&&(clearTimeout(this.showTimer),this.showTimer=null),this.visible=!1};render(){return o("div",{key:"fa52d7ff250fe76fefd529f2dab27338d0a8bd0a",class:"tooltip-wrapper",onMouseEnter:this.show,onMouseLeave:this.hide,onFocusin:this.show,onFocusout:this.hide},o("slot",{key:"e301fead7186cec3b817a9339a0878006b750cbf"}),this.text&&o("div",{key:"e24cb85fd227d0f96935dfe6095804ad9fcbc140",class:{"tooltip-bubble":!0,[`tooltip-bubble--${this.position}`]:!0,"tooltip-bubble--visible":this.visible},style:{maxWidth:this.maxWidth},role:"tooltip"},this.text,o("span",{key:"a2dbe5693bfb2c0894d20bc2831d303b5634869e",class:`tooltip-arrow tooltip-arrow--${this.position}`})))}};r.style=":host{display:inline-block}*,*::before,*::after{box-sizing:border-box}.tooltip-wrapper{position:relative;display:inline-flex;align-items:center;justify-content:center}.tooltip-bubble{position:absolute;z-index:9999;background:#1f2433;color:var(--Neutral-White,#fff);font-size:var(--font-size-s,14px);line-height:1.5;padding:8px 12px;border-radius:8px;white-space:normal;pointer-events:none;opacity:0;transition:opacity 0.15s ease, transform 0.15s ease;word-break:break-word;box-shadow:var(--Shadow-medium);text-align:left;width:max-content}.tooltip-bubble--visible{opacity:1}.tooltip-bubble--top{bottom:calc(100% + 12px);left:50%;transform:translateX(-50%)}.tooltip-bubble--bottom{top:calc(100% + 12px);left:50%;transform:translateX(-50%)}.tooltip-bubble--left{right:calc(100% + 12px);top:50%;transform:translateY(-50%)}.tooltip-bubble--right{left:calc(100% + 12px);top:50%;transform:translateY(-50%)}.tooltip-arrow{position:absolute;width:12px;height:6px}.tooltip-arrow::before{content:'';position:absolute;width:0;height:0}.tooltip-arrow--top{top:100%;left:50%;transform:translateX(-50%)}.tooltip-arrow--top::before{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid #1f2433}.tooltip-arrow--bottom{bottom:100%;left:50%;transform:translateX(-50%)}.tooltip-arrow--bottom::before{border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #1f2433}.tooltip-arrow--left{left:100%;top:50%;transform:translateY(-50%)}.tooltip-arrow--left::before{border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid #1f2433}.tooltip-arrow--right{right:100%;top:50%;transform:translateY(-50%)}.tooltip-arrow--right::before{border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:6px solid #1f2433}";export{r as dropi_tooltip}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r,c as a,h as e}from"./p-Twbb5MNM.js";const i={success:"Check-circle",error:"Warning-circle",warning:"Warning-triangle",info:"Info-circle"},o={success:"Success-Success-500",error:"Error-Error-500",warning:"Warning-Warning-500",info:"Info-Info-500"},t=class{constructor(e){r(this,e),this.dropiClose=a(this,"dropiClose"),this.dropiButtonClick=a(this,"dropiButtonClick"),this.dropiLinkClick=a(this,"dropiLinkClick")}message="";type="default";state="info";dismissable=!1;showButton=!1;buttonText="";anchorText="";anchorUrl="";showAlert=!0;dropiClose;dropiButtonClick;dropiLinkClick;render(){return this.showAlert?e("div",{class:{alert:!0,[`alert--${this.type}`]:!0,[`alert--${this.state}`]:!0}},e("div",{class:"alert__icon"},e("dropi-icon",{name:i[this.state],width:"18px",height:"18px",color:o[this.state]})),e("div",{class:"alert__body"},e("span",{class:"alert__message"},this.message),this.anchorText&&e("a",{class:"alert__link",href:this.anchorUrl||"#",onClick:r=>{r.preventDefault(),this.dropiLinkClick.emit()}},this.anchorText)),e("div",{class:"alert__actions"},this.showButton&&this.buttonText&&e("button",{class:"alert__btn",onClick:()=>this.dropiButtonClick.emit()},this.buttonText),this.dismissable&&e("button",{class:"alert__close",onClick:()=>{this.showAlert=!1,this.dropiClose.emit()},"aria-label":"Cerrar"},e("dropi-icon",{name:"Close-small",width:"18px",height:"18px",color:"Gray-Gray-500"})))):null}};t.style=":host{display:block;width:100%}*,*::before,*::after{box-sizing:border-box}.alert{display:flex;align-items:flex-start;gap:var(--Size-2, 8px);padding:var(--Size-3, 12px) var(--Size-4, 16px);border-radius:var(--Border-2, 8px);border:1px solid transparent;width:100%;animation:fadeIn 0.3s ease-in-out}@keyframes fadeIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.alert--success{background:var(--Success-Success-50, #f0fdf4);border-color:var(--Success-Success-200, #bbf7d0)}.alert--error{background:var(--Error-Error-50, #fff5f5);border-color:var(--Error-Error-200, #fecaca)}.alert--warning{background:var(--Warning-Warning-50, #fffbeb);border-color:var(--Warning-Warning-200, #fde68a)}.alert--info{background:var(--Info-Info-50, #eff6ff);border-color:var(--Info-Info-200, #bfdbfe)}.alert--flag{border-left-width:4px;border-radius:0 var(--Border-2, 8px) var(--Border-2, 8px) 0}.alert__icon{display:flex;align-items:center;flex-shrink:0;padding-top:1px}.alert__body{flex:1;display:flex;flex-wrap:wrap;align-items:center;gap:var(--Size-1, 4px)}.alert__message{font-size:var(--font-size-s, 12px);color:var(--Gray-Gray-700, #32394d);line-height:1.5}.alert__link{font-size:var(--font-size-s, 12px);font-weight:var(--font-weight-bold, 700);color:var(--Primary-Primary-500, #f49a3d);text-decoration:underline;cursor:pointer}.alert__actions{display:flex;align-items:center;gap:var(--Size-2, 8px);flex-shrink:0}.alert__btn{height:28px;padding:0 var(--Size-3, 12px);border-radius:var(--Border-2, 8px);border:1px solid var(--Primary-Primary-500, #f49a3d);background:transparent;color:var(--Primary-Primary-500, #f49a3d);font-size:var(--font-size-xs, 10px);font-family:inherit;font-weight:var(--font-weight-bold, 700);cursor:pointer;transition:background 0.15s, color 0.15s}.alert__btn:hover{background:var(--Primary-Primary-500, #f49a3d);color:var(--Neutral-White, #fff)}.alert__close{display:flex;align-items:center;justify-content:center;background:none;border:none;padding:0;cursor:pointer;opacity:0.6;transition:opacity 0.15s}.alert__close:hover{opacity:1}";export{t as dropi_alert}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as r}from"./p-Twbb5MNM.js";const t=class{constructor(r){e(this,r)}stepsCount=3;typeStep="number";currentStep=1;labelStepper=[];flowMode="Sequential";get parsedLabels(){if("string"==typeof this.labelStepper)try{return JSON.parse(this.labelStepper)}catch{return[]}return this.labelStepper||[]}render(){const e=this.parsedLabels,t=Array.from({length:this.stepsCount},((e,r)=>r+1));return r("div",{key:"fc845e4030b4a41c636bc93b969ec561a8e152a5",class:"stepper"},t.map(((s,i)=>{const a=s<this.currentStep,p=s===this.currentStep,c=i===t.length-1,n=e[i];return r("div",{class:"stepper__item",key:s},r("div",{class:"stepper__circle-row"},r("div",{class:{stepper__circle:!0,"stepper__circle--active":p,"stepper__circle--completed":a,"stepper__circle--pending":!p&&!a}},"point"===this.typeStep?r("span",{class:"stepper__dot"}):r("span",{class:"stepper__number"},s)),!c&&r("div",{class:{stepper__line:!0,"stepper__line--done":a}})),n&&r("span",{class:"stepper__label"},n))})))}};t.style=":host{display:block;width:100%}*,*::before,*::after{box-sizing:border-box}.stepper{display:flex;align-items:flex-start;width:100%}.stepper__item{display:flex;flex-direction:column;align-items:center;flex:1}.stepper__circle-row{display:flex;align-items:center;width:100%}.stepper__circle{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background 0.2s, border-color 0.2s}.stepper__circle--pending{background:var(--Gray-Gray-100, #e6eaf2);border:2px solid var(--Gray-Gray-200, #c3c9d9)}.stepper__circle--active{background:var(--Primary-Primary-500, #f49a3d);border:2px solid var(--Primary-Primary-500, #f49a3d)}.stepper__circle--completed{background:var(--Primary-Primary-500, #f49a3d);border:2px solid var(--Primary-Primary-500, #f49a3d)}.stepper__dot{width:8px;height:8px;border-radius:50%;background:var(--Neutral-White, #fff);display:block}.stepper__circle--pending .stepper__dot{background:var(--Gray-Gray-400, #858ea6)}.stepper__number{font-size:var(--font-size-xs, 10px);font-weight:var(--font-weight-bold, 700);color:var(--Neutral-White, #fff)}.stepper__circle--pending .stepper__number{color:var(--Gray-Gray-500, #69738c)}.stepper__line{flex:1;height:2px;background:var(--Gray-Gray-200, #c3c9d9);transition:background 0.2s}.stepper__line--done{background:var(--Primary-Primary-500, #f49a3d)}.stepper__label{margin-top:6px;font-size:var(--font-size-xs, 10px);color:var(--Gray-Gray-600, #475066);text-align:center}";export{t as dropi_simple_stepper}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i,c as e,h as r}from"./p-Twbb5MNM.js";const a=class{constructor(r){i(this,r),this.dropiClose=e(this,"dropiClose")}visible=!1;images=[];activeIndex=0;current=0;parsedImages=[];dropiClose;imagesChanged(i){this.parsedImages="string"==typeof i?JSON.parse(i):i||[]}indexChanged(i){this.current=i}visibleChanged(i){i&&(this.current=this.activeIndex)}componentWillLoad(){this.imagesChanged(this.images),this.current=this.activeIndex}close(){this.visible=!1,this.dropiClose.emit()}prev(){this.current=(this.current-1+this.parsedImages.length)%this.parsedImages.length}next(){this.current=(this.current+1)%this.parsedImages.length}handleError(i){i.target.src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgMzAwIj48cmVjdCB3aWR0aD0iNDAwIiBoZWlnaHQ9IjMwMCIgZmlsbD0iIzFhMjAzMyIvPjx0ZXh0IHg9IjIwMCIgeT0iMTU1IiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBmaWxsPSIjNDc1MDY2IiBmb250LXNpemU9IjE0Ij5TaW4gaW1hZ2VuPC90ZXh0Pjwvc3ZnPg=="}render(){if(!this.visible)return null;const i=this.parsedImages,e=i.length>1;return r("div",{class:"overlay",onClick:()=>this.close()},r("button",{class:"overlay__close",onClick:i=>{i.stopPropagation(),this.close()},"aria-label":"Cerrar"},r("dropi-icon",{name:"Close-small",width:"24px",height:"24px",color:"Neutral-White"})),r("div",{class:"overlay__main",onClick:i=>i.stopPropagation()},e&&r("button",{class:"overlay__nav overlay__nav--prev",onClick:()=>this.prev(),"aria-label":"Anterior"},r("dropi-icon",{name:"Dropdown-left",width:"24px",height:"24px",color:"Neutral-White"})),r("img",{class:"overlay__image",src:i[this.current],alt:`imagen ${this.current+1}`,onError:i=>this.handleError(i)}),e&&r("button",{class:"overlay__nav overlay__nav--next",onClick:()=>this.next(),"aria-label":"Siguiente"},r("dropi-icon",{name:"Dropdown-Right",width:"24px",height:"24px",color:"Neutral-White"}))),e&&r("div",{class:"overlay__thumbs",onClick:i=>i.stopPropagation()},i.map(((i,e)=>r("img",{key:e,class:{overlay__thumb:!0,"overlay__thumb--active":e===this.current},src:i,alt:`miniatura ${e+1}`,onClick:()=>this.current=e,onError:i=>this.handleError(i)})))))}static get watchers(){return{images:[{imagesChanged:0}],activeIndex:[{indexChanged:0}],visible:[{visibleChanged:0}]}}};a.style=":host{display:block}.overlay{position:fixed;inset:0;background:rgba(0,0,0,0.92);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:9999;gap:var(--Size-3, 12px)}.overlay__close{position:absolute;top:var(--Size-4, 16px);right:var(--Size-4, 16px);background:rgba(255,255,255,0.1);border:none;border-radius:50%;width:40px;height:40px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background 0.15s}.overlay__close:hover{background:rgba(255,255,255,0.2)}.overlay__main{position:relative;display:flex;align-items:center;gap:var(--Size-3, 12px);max-width:90vw;max-height:75vh}.overlay__image{max-width:80vw;max-height:72vh;object-fit:contain;border-radius:var(--Border-2, 8px)}.overlay__nav{background:rgba(255,255,255,0.1);border:none;border-radius:50%;width:44px;height:44px;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;transition:background 0.15s}.overlay__nav:hover{background:rgba(255,255,255,0.2)}.overlay__thumbs{display:flex;gap:var(--Size-2, 8px);flex-wrap:wrap;justify-content:center;max-width:90vw}.overlay__thumb{width:56px;height:56px;object-fit:cover;border-radius:var(--Border-1, 4px);cursor:pointer;opacity:0.5;border:2px solid transparent;transition:opacity 0.15s, border-color 0.15s}.overlay__thumb:hover{opacity:0.8}.overlay__thumb--active{opacity:1;border-color:var(--Primary-Primary-500, #f49a3d)}";export{a as dropi_image_overlay}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,c as s,h as i}from"./p-Twbb5MNM.js";const r=class{constructor(i){e(this,i),this.dropiCheckedValues=s(this,"dropiCheckedValues"),this.dropiSearch=s(this,"dropiSearch")}options=[];showFilter=!0;filterPlaceholder="Buscar...";showNotFound=!0;notFoundMessage="Sin resultados";multiSelect=!0;filterText="";selected=[];parsedOptions=[];dropiCheckedValues;dropiSearch;optionsChanged(e){this.parsedOptions="string"==typeof e?JSON.parse(e):e||[]}componentWillLoad(){this.optionsChanged(this.options)}get filtered(){if(!this.filterText)return this.parsedOptions;const e=this.filterText.toLowerCase();return this.parsedOptions.filter((s=>s.name?.toLowerCase().includes(e)))}toggle(e){this.selected=this.multiSelect?this.selected.includes(e)?this.selected.filter((s=>s!==e)):[...this.selected,e]:this.selected.includes(e)?[]:[e],this.dropiCheckedValues.emit(this.selected)}render(){const e=this.filtered;return i("div",{key:"4606e983827d32c18990c44589c2cfcac678b0ae",class:"csl"},this.showFilter&&i("div",{key:"532d95a9e0530023094611ce55b37f56eb6f9d78",class:"csl__search"},i("dropi-icon",{key:"79598d6cb8b36f90e15d2983f8c3e54cb713d193",name:"Search",width:"16px",height:"16px",color:"Gray-Gray-400"}),i("input",{key:"fa95ab8c1112e335560b8c49f7f4b502b3f7b3a0",class:"csl__search-input",type:"text",placeholder:this.filterPlaceholder,value:this.filterText,onInput:e=>{this.filterText=e.target.value,this.dropiSearch.emit(this.filterText)}}),this.filterText&&i("button",{key:"94574b93a5e1d938ebedd7f462e3aed6917390ef",class:"csl__clear",onClick:()=>{this.filterText="",this.dropiSearch.emit("")}},i("dropi-icon",{key:"c9765efda527f9321757a69028f9ceb7e12a7514",name:"Close-small",width:"14px",height:"14px",color:"Gray-Gray-400"}))),i("div",{key:"2f40c32f10c84277924c240a12e89876ff60a4d2",class:"csl__list"},0===e.length&&this.showNotFound?i("div",{class:"csl__empty"},this.notFoundMessage):e.map((e=>{const s=this.selected.includes(e.id);return i("div",{class:"csl__item",key:e.id,onClick:()=>this.toggle(e.id)},i("dropi-checkbox",{checked:s}),e.icon&&i("img",{class:"csl__icon",src:e.icon,alt:e.name}),i("span",{class:"csl__label"},e.name))}))))}static get watchers(){return{options:[{optionsChanged:0}]}}};r.style=":host{display:block;width:100%}*,*::before,*::after{box-sizing:border-box}.csl__search{display:flex;align-items:center;gap:var(--Size-2, 8px);padding:var(--Size-2, 8px) var(--Size-3, 12px);border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-2, 8px);margin-bottom:var(--Size-2, 8px)}.csl__search-input{flex:1;border:none;outline:none;font-size:var(--font-size-s, 12px);font-family:inherit;color:var(--Gray-Gray-700, #32394d);background:transparent}.csl__clear{display:flex;background:none;border:none;padding:0;cursor:pointer}.csl__list{display:flex;flex-direction:column}.csl__item{display:flex;align-items:center;gap:var(--Size-2, 8px);padding:var(--Size-2, 8px) var(--Size-3, 12px);cursor:pointer;border-radius:var(--Border-1, 4px);transition:background 0.15s}.csl__item:hover{background:var(--Gray-Gray-50, #f7f8fa)}.csl__icon{width:24px;height:24px;border-radius:50%;object-fit:cover;flex-shrink:0}.csl__label{font-size:var(--font-size-s, 12px);color:var(--Gray-Gray-700, #32394d);flex:1}.csl__empty{padding:var(--Size-4, 16px);text-align:center;font-size:var(--font-size-s, 12px);color:var(--Gray-Gray-400, #858ea6)}";export{r as dropi_checkbox_selection_list}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as a,c as t,h as r}from"./p-Twbb5MNM.js";const e=class{constructor(r){a(this,r),this.dropiTabChange=t(this,"dropiTabChange")}tabs=[];activeTab=0;showIcon=!1;dropiTabChange;parsedTabs=[];tabsChanged(a){this.parsedTabs="string"==typeof a?JSON.parse(a):a??[]}componentWillLoad(){this.tabsChanged(this.tabs)}handleClick(a){a.disabled||(this.activeTab=a.id,this.dropiTabChange.emit(a))}render(){return r("div",{key:"73bb4c928411c00cd9c6cfa6c0ed591c4573bbb1",class:"tabs-container",role:"tablist"},this.parsedTabs.map((a=>{const t=a.id===this.activeTab;return r("div",{role:"tab","aria-selected":String(t),class:{"tab-item":!0,"tab-item--active":t&&!a.disabled,"tab-item--disabled":!!a.disabled},onClick:()=>this.handleClick(a)},r("span",{class:"tab-label-row"},r("span",{class:"tab-label"},a.label),null!=a.counter&&r("span",{class:{"tab-counter":!0,"tab-counter--active":t}},a.counter)),this.showIcon&&(a.completed?r("dropi-icon",{name:"Check-circle",width:"12px",height:"12px",color:"Success-Success-500"}):r("span",{class:"tab-status-dot"})))})))}static get watchers(){return{tabs:[{tabsChanged:0}]}}};e.style=":host{display:block;width:100%}*,*::before,*::after{box-sizing:border-box}.tabs-container{display:flex;flex-wrap:nowrap;overflow-x:auto;width:100%;height:52px;scrollbar-width:none}.tabs-container::-webkit-scrollbar{width:0;height:0}.tab-item{padding:var(--Size-4,16px) var(--Size-5,20px);background:var(--Neutral-White,#fff);border-bottom:2px solid var(--Gray-Gray-100,#e6eaf2);cursor:pointer;display:flex;gap:16px;align-items:center;white-space:nowrap;flex-shrink:0;transition:border-color 0.15s ease;user-select:none}.tab-item:hover:not(.tab-item--disabled):not(.tab-item--active){border-color:var(--Gray-Gray-300,#a3abbf)}.tab-item--active{border-bottom:2px solid var(--Primary-Primary-500,#f49a3d)}.tab-item--disabled{background:rgba(223,228,237,0.22);cursor:not-allowed;opacity:0.7;pointer-events:none}.tab-label-row{display:flex;align-items:center;gap:8px}.tab-label{font-size:var(--font-size-m,14px);font-weight:var(--font-weight-bold,700);color:var(--Gray-Gray-400,#858ea6);line-height:20px}.tab-item--active .tab-label{color:var(--Gray-Gray-600,#475066)}.tab-item--disabled .tab-label{font-weight:300;color:var(--Gray-Gray-300,#a3abbf)}.tab-counter{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:20px;font-size:var(--font-size-xs,10px);font-weight:var(--font-weight-medium,500);background:var(--Gray-Gray-100,#e6eaf2);color:var(--Gray-Gray-500,#69738c)}.tab-counter--active{background:var(--Primary-Primary-100,#fde8d0);color:var(--Primary-Primary-500,#f49a3d)}.tab-status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background-color:var(--Primary-Primary-500, #f49a3d);flex-shrink:0}";export{e as dropi_tabs}
|
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-Twbb5MNM.js';
|
|
2
|
-
|
|
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:10px;left:5px;z-index:1}.icon-input-password{position:absolute;top:10px;right:13px;cursor:pointer;z-index:1}.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, #fff);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:28px}.input-container--has-icon label.label-bottom{left:28px}.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
|
-
|
|
5
|
-
const DropiInput = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.dropiInput = createEvent(this, "dropiInput");
|
|
9
|
-
this.dropiChange = createEvent(this, "dropiChange");
|
|
10
|
-
this.dropiFocus = createEvent(this, "dropiFocus");
|
|
11
|
-
this.dropiBlur = createEvent(this, "dropiBlur");
|
|
12
|
-
if (hostRef.$hostElement$["s-ei"]) {
|
|
13
|
-
this.internals = hostRef.$hostElement$["s-ei"];
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
this.internals = hostRef.$hostElement$.attachInternals();
|
|
17
|
-
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
internals;
|
|
21
|
-
// ── Identification ──────────────────────────────────────────
|
|
22
|
-
/** Input id. Defaults to label value. */
|
|
23
|
-
inputId = '';
|
|
24
|
-
/** Name attribute for native form submission */
|
|
25
|
-
name = '';
|
|
26
|
-
// ── Content ─────────────────────────────────────────────────
|
|
27
|
-
/** Floating or fixed label text */
|
|
28
|
-
label = '';
|
|
29
|
-
/** Placeholder text (visible in fixedLabel mode or on focus) */
|
|
30
|
-
placeholder = ' ';
|
|
31
|
-
/** Current value (controlled) */
|
|
32
|
-
value = '';
|
|
33
|
-
/** Max character length */
|
|
34
|
-
maxlength;
|
|
35
|
-
// ── Behavior ────────────────────────────────────────────────
|
|
36
|
-
/** Disable the input */
|
|
37
|
-
disabled = false;
|
|
38
|
-
/** Mark as required (shows asterisk when showAsterisk is true) */
|
|
39
|
-
required = false;
|
|
40
|
-
/** Show the required asterisk on the label */
|
|
41
|
-
showAsterisk = true;
|
|
42
|
-
/** Show label above the input (fixed), instead of floating inside */
|
|
43
|
-
fixedLabel = false;
|
|
44
|
-
/** Keyboard input mode hint */
|
|
45
|
-
inputMode = 'text';
|
|
46
|
-
// ── Input type modifiers ────────────────────────────────────
|
|
47
|
-
/** Show password visibility toggle (renders as password field) */
|
|
48
|
-
passwordInput = false;
|
|
49
|
-
/** Apply thousand separator formatting (e.g. 1,000,000) */
|
|
50
|
-
moneyFormat = false;
|
|
51
|
-
/** Apply thousand separator without currency symbol */
|
|
52
|
-
thousandSeparator = false;
|
|
53
|
-
/** Only allow numeric characters */
|
|
54
|
-
onlyNumbers = false;
|
|
55
|
-
/** Allow decimal point when onlyNumbers is true */
|
|
56
|
-
allowDecimals = false;
|
|
57
|
-
/** Only allow letter characters */
|
|
58
|
-
onlyLetters = false;
|
|
59
|
-
// ── Icon ────────────────────────────────────────────────────
|
|
60
|
-
/** Icon name shown inside the input (only visible when value is not empty) */
|
|
61
|
-
icon = '';
|
|
62
|
-
/** Color token for the icon */
|
|
63
|
-
iconColor = 'Gray-Gray-400';
|
|
64
|
-
// ── Validation ──────────────────────────────────────────────
|
|
65
|
-
/** Mark the field as invalid (consumer-controlled) */
|
|
66
|
-
invalid = false;
|
|
67
|
-
/** Helper / error text shown below the field */
|
|
68
|
-
helperText = '';
|
|
69
|
-
/** Only show helperText when the field is invalid */
|
|
70
|
-
showHelperOnlyOnError = false;
|
|
71
|
-
// ── Internal state ──────────────────────────────────────────
|
|
72
|
-
showPassword = false;
|
|
73
|
-
touched = false;
|
|
74
|
-
// ── Events ──────────────────────────────────────────────────
|
|
75
|
-
/** Emitted on every keystroke with the current value */
|
|
76
|
-
dropiInput;
|
|
77
|
-
/** Emitted on blur with the final value */
|
|
78
|
-
dropiChange;
|
|
79
|
-
/** Emitted on focus */
|
|
80
|
-
dropiFocus;
|
|
81
|
-
/** Emitted on blur */
|
|
82
|
-
dropiBlur;
|
|
83
|
-
valueChanged(val) {
|
|
84
|
-
this.internals.setFormValue(val);
|
|
85
|
-
}
|
|
86
|
-
disabledChanged(val) {
|
|
87
|
-
this.internals.setValidity(val ? { customError: true } : {}, val ? 'Field is disabled' : '');
|
|
88
|
-
}
|
|
89
|
-
componentWillLoad() {
|
|
90
|
-
this.internals.setFormValue(this.value ?? '');
|
|
91
|
-
}
|
|
92
|
-
// ── Handlers ────────────────────────────────────────────────
|
|
93
|
-
handleInput(e) {
|
|
94
|
-
let val = e.target.value;
|
|
95
|
-
if (this.onlyNumbers)
|
|
96
|
-
val = this.filterNumbers(val);
|
|
97
|
-
if (this.onlyLetters)
|
|
98
|
-
val = this.filterLetters(val);
|
|
99
|
-
if (this.moneyFormat || this.thousandSeparator)
|
|
100
|
-
val = this.formatThousands(val, this.moneyFormat);
|
|
101
|
-
this.value = val;
|
|
102
|
-
this.internals.setFormValue(val);
|
|
103
|
-
this.dropiInput.emit(val);
|
|
104
|
-
}
|
|
105
|
-
handleKeyDown(e) {
|
|
106
|
-
if ((this.onlyNumbers || this.moneyFormat || this.thousandSeparator) && !this.isAllowedNumberKey(e)) {
|
|
107
|
-
e.preventDefault();
|
|
108
|
-
}
|
|
109
|
-
if (this.onlyLetters && !this.isAllowedLetterKey(e)) {
|
|
110
|
-
e.preventDefault();
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
handleFocus() {
|
|
114
|
-
this.dropiFocus.emit();
|
|
115
|
-
}
|
|
116
|
-
handleBlur() {
|
|
117
|
-
this.touched = true;
|
|
118
|
-
this.dropiChange.emit(this.value);
|
|
119
|
-
this.dropiBlur.emit();
|
|
120
|
-
}
|
|
121
|
-
togglePassword() {
|
|
122
|
-
if (this.disabled)
|
|
123
|
-
return;
|
|
124
|
-
this.showPassword = !this.showPassword;
|
|
125
|
-
}
|
|
126
|
-
// ── Helpers ─────────────────────────────────────────────────
|
|
127
|
-
filterNumbers(val) {
|
|
128
|
-
const pattern = this.allowDecimals ? /[^0-9.]/g : /[^0-9]/g;
|
|
129
|
-
return val.replace(pattern, '');
|
|
130
|
-
}
|
|
131
|
-
filterLetters(val) {
|
|
132
|
-
return val.replace(/[^a-zA-ZáéíóúÁÉÍÓÚñÑüÜ\s]/g, '');
|
|
133
|
-
}
|
|
134
|
-
isAllowedNumberKey(e) {
|
|
135
|
-
const allowed = ['Backspace', 'Delete', 'ArrowLeft', 'ArrowRight', 'Tab', 'Enter', 'Home', 'End'];
|
|
136
|
-
if (allowed.includes(e.key))
|
|
137
|
-
return true;
|
|
138
|
-
if (e.ctrlKey || e.metaKey)
|
|
139
|
-
return true; // copy/paste/select-all
|
|
140
|
-
if (/^[0-9]$/.test(e.key))
|
|
141
|
-
return true;
|
|
142
|
-
if (this.allowDecimals && e.key === '.')
|
|
143
|
-
return true;
|
|
144
|
-
return false;
|
|
145
|
-
}
|
|
146
|
-
isAllowedLetterKey(e) {
|
|
147
|
-
const allowed = ['Backspace', 'Delete', 'ArrowLeft', 'ArrowRight', 'Tab', 'Enter', 'Home', 'End', ' '];
|
|
148
|
-
if (allowed.includes(e.key))
|
|
149
|
-
return true;
|
|
150
|
-
if (e.ctrlKey || e.metaKey)
|
|
151
|
-
return true;
|
|
152
|
-
return /^[a-zA-ZáéíóúÁÉÍÓÚñÑüÜ]$/.test(e.key);
|
|
153
|
-
}
|
|
154
|
-
formatThousands(val, withCurrency) {
|
|
155
|
-
const raw = val.replace(/[^0-9.]/g, '');
|
|
156
|
-
const [integer, decimal] = raw.split('.');
|
|
157
|
-
const formatted = integer.replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
|
158
|
-
const result = decimal !== undefined ? `${formatted}.${decimal}` : formatted;
|
|
159
|
-
return withCurrency ? `$${result}` : result;
|
|
160
|
-
}
|
|
161
|
-
// ── Computed ─────────────────────────────────────────────────
|
|
162
|
-
get resolvedId() {
|
|
163
|
-
return this.inputId || this.label;
|
|
164
|
-
}
|
|
165
|
-
get inputType() {
|
|
166
|
-
if (this.passwordInput)
|
|
167
|
-
return this.showPassword ? 'text' : 'password';
|
|
168
|
-
return 'text';
|
|
169
|
-
}
|
|
170
|
-
get showHelper() {
|
|
171
|
-
if (!this.helperText)
|
|
172
|
-
return false;
|
|
173
|
-
if (this.showHelperOnlyOnError)
|
|
174
|
-
return this.invalid && this.touched;
|
|
175
|
-
return true;
|
|
176
|
-
}
|
|
177
|
-
get isInvalid() {
|
|
178
|
-
return this.invalid && this.touched;
|
|
179
|
-
}
|
|
180
|
-
// ── Render ───────────────────────────────────────────────────
|
|
181
|
-
render() {
|
|
182
|
-
const showAsterisk = this.required && this.showAsterisk && !this.disabled;
|
|
183
|
-
const showIconInline = !!this.icon;
|
|
184
|
-
return (h("div", { key: '444e873dc4175e75a5c85814499e28afb3f80b37', class: { 'fixed-label-container': this.fixedLabel } }, this.fixedLabel && (h("div", { key: 'a501500f872b87ad701f5c18e0e3b532005c3fcb', class: "input-label Body-S-Regular" }, this.label, showAsterisk && h("span", { key: '1ca3afb47b67cfb61cd8bceb8657c9f061462064', class: "asterisk" }, " *"))), h("div", { key: 'eb31110de652f6db7c5fdd747046280b0e81e2b6', class: "form-group" }, h("div", { key: 'b0bb2cac1e8d7f20d927437e4ba6327e333d1fdb', class: { 'input-container': true, 'input-container--has-icon': showIconInline } }, showIconInline && (h("dropi-icon", { key: '604a369b358b1c95a19cc23dd4bc4f9c77e4b050', class: "icon-input", name: this.icon, color: this.iconColor, width: "20px", height: "20px" })), this.passwordInput && (h("dropi-icon", { key: 'b1b3b979d172ada0c3fe616f795c7cd5b2bf45cb', class: "icon-input-password", name: this.showPassword ? 'Eye' : 'Eye-crossed', width: "20px", height: "20px", color: "Gray-Gray-500", onClick: () => this.togglePassword() })), h("input", { key: 'b5488711765a12b6e9fea7b0f8d5a23ae95de925', id: this.resolvedId, class: {
|
|
185
|
-
'form-control': true,
|
|
186
|
-
'form-control-valid': !this.isInvalid && this.touched && !!this.value,
|
|
187
|
-
'form-control-invalid': this.isInvalid,
|
|
188
|
-
'padding-icon': showIconInline,
|
|
189
|
-
'text-password': this.passwordInput && !this.showPassword,
|
|
190
|
-
'fixed-label-input': this.fixedLabel,
|
|
191
|
-
}, 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: 'f3008d901c41e6f362977e1232e7597733c4288e', class: "Body-S-Regular label-bottom", htmlFor: this.resolvedId }, this.label, showAsterisk && h("span", { key: '1b982a1630f88557380df2f22c0c27bcceebbdc6', class: "asterisk" }, " *"))), this.showHelper && (h("div", { key: '30382a8e7beb0a14bb06f8fd25dae3da5371efd3', class: "form-control-helper" }, this.isInvalid && (h("dropi-icon", { key: 'a1ef2b7a9a659301cc22c19d5e5f65bd7a595a2c', name: "Warning-circle", width: "12px", height: "12px", color: "Error-Error-500" })), h("span", { key: '289250769c59d1ddde821395a9e97368404ca1ab', class: {
|
|
192
|
-
'disabled-helper': this.disabled,
|
|
193
|
-
'invalid-color': this.isInvalid,
|
|
194
|
-
} }, this.helperText)))))));
|
|
195
|
-
}
|
|
196
|
-
static get formAssociated() { return true; }
|
|
197
|
-
static get watchers() { return {
|
|
198
|
-
"value": [{
|
|
199
|
-
"valueChanged": 0
|
|
200
|
-
}],
|
|
201
|
-
"disabled": [{
|
|
202
|
-
"disabledChanged": 0
|
|
203
|
-
}]
|
|
204
|
-
}; }
|
|
205
|
-
};
|
|
206
|
-
DropiInput.style = dropiInputCss();
|
|
207
|
-
|
|
208
|
-
export { DropiInput as dropi_input };
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-Twbb5MNM.js';
|
|
2
|
-
|
|
3
|
-
const dropiPaginatorCss = () => `:host{display:block}*,*::before,*::after{box-sizing:border-box}.paginator{display:flex;align-items:center;justify-content:flex-end;gap:var(--Size-4, 16px);flex-wrap:wrap}.paginator-pages{display:flex;align-items:center;gap:var(--Size-1, 4px)}.paginator-btn{width:32px;height:32px;padding:0;border:none;border-radius:50%;background:transparent;color:var(--Gray-Gray-600, #475066);font-size:var(--font-size-s, 12px);font-family:inherit;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background 0.15s ease}.paginator-btn:hover:not(:disabled){background:var(--Gray-Gray-50, #f7f8fa)}.paginator-btn:disabled{opacity:0.4;cursor:not-allowed}.paginator-btn--active{background:var(--Primary-Primary-500, #f49a3d);color:var(--Neutral-White, #fff);font-weight:var(--font-weight-bold, 700)}.paginator-btn--active:hover{background:var(--Primary-Primary-500, #f49a3d)}.paginator-btn--arrow{width:auto;padding:0 var(--Size-2, 8px);border-radius:var(--Border-1, 4px);gap:4px}.paginator-btn--arrow:hover:not(:disabled){background:var(--Gray-Gray-50, #f7f8fa)}.paginator-label{font-size:var(--font-size-s, 12px);color:inherit}.paginator-ellipsis{color:var(--Gray-Gray-400, #858ea6);padding:0 4px;font-size:var(--font-size-s, 12px);display:flex;align-items:center}.paginator-size{display:flex;align-items:center;gap:var(--Size-2, 8px)}.paginator-size-label{font-size:var(--font-size-s, 12px);color:var(--Gray-Gray-500, #69738c)}.paginator-size-select{height:32px;padding:0 var(--Size-2, 8px);border:1px solid var(--Gray-Gray-200, #c3c9d9);border-radius:var(--Border-1, 4px);background:var(--Neutral-White, #fff);color:var(--Gray-Gray-600, #475066);font-size:var(--font-size-s, 12px);font-family:inherit;cursor:pointer;outline:none}`;
|
|
4
|
-
|
|
5
|
-
const DropiPaginator = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.dropiPageChange = createEvent(this, "dropiPageChange");
|
|
9
|
-
}
|
|
10
|
-
/** Total number of items */
|
|
11
|
-
total = 0;
|
|
12
|
-
/** Items per page */
|
|
13
|
-
pageSize = 10;
|
|
14
|
-
/** Current page (1-based) */
|
|
15
|
-
page = 1;
|
|
16
|
-
/** Max page buttons to show at once */
|
|
17
|
-
maxPages = 5;
|
|
18
|
-
/** Hide "Anterior"/"Siguiente" text labels, show only arrows */
|
|
19
|
-
noLabels = false;
|
|
20
|
-
/** Whether to show the items-per-page selector */
|
|
21
|
-
showPageSizeSelector = false;
|
|
22
|
-
/** Options for items per page */
|
|
23
|
-
pageSizeOptions = [10, 25, 50, 100];
|
|
24
|
-
/** Emitted when page changes. e.detail = { page, pageSize } */
|
|
25
|
-
dropiPageChange;
|
|
26
|
-
parsedOptions = [10, 25, 50, 100];
|
|
27
|
-
optionsChanged(val) {
|
|
28
|
-
this.parsedOptions = typeof val === 'string' ? JSON.parse(val) : val;
|
|
29
|
-
}
|
|
30
|
-
componentWillLoad() {
|
|
31
|
-
this.optionsChanged(this.pageSizeOptions);
|
|
32
|
-
}
|
|
33
|
-
get totalPages() {
|
|
34
|
-
return Math.max(1, Math.ceil(this.total / this.pageSize));
|
|
35
|
-
}
|
|
36
|
-
get pageNumbers() {
|
|
37
|
-
const total = this.totalPages;
|
|
38
|
-
const cur = this.page;
|
|
39
|
-
const max = this.maxPages;
|
|
40
|
-
if (total <= max)
|
|
41
|
-
return Array.from({ length: total }, (_, i) => i + 1);
|
|
42
|
-
const half = Math.floor(max / 2);
|
|
43
|
-
let start = Math.max(1, cur - half);
|
|
44
|
-
let end = Math.min(total, start + max - 1);
|
|
45
|
-
if (end - start < max - 1)
|
|
46
|
-
start = Math.max(1, end - max + 1);
|
|
47
|
-
const pages = [];
|
|
48
|
-
if (start > 1) {
|
|
49
|
-
pages.push(1);
|
|
50
|
-
if (start > 2)
|
|
51
|
-
pages.push('...');
|
|
52
|
-
}
|
|
53
|
-
for (let i = start; i <= end; i++)
|
|
54
|
-
pages.push(i);
|
|
55
|
-
if (end < total) {
|
|
56
|
-
if (end < total - 1)
|
|
57
|
-
pages.push('...');
|
|
58
|
-
pages.push(total);
|
|
59
|
-
}
|
|
60
|
-
return pages;
|
|
61
|
-
}
|
|
62
|
-
goTo(p) {
|
|
63
|
-
if (p < 1 || p > this.totalPages || p === this.page)
|
|
64
|
-
return;
|
|
65
|
-
this.page = p;
|
|
66
|
-
this.dropiPageChange.emit({ page: this.page, pageSize: this.pageSize });
|
|
67
|
-
}
|
|
68
|
-
onPageSizeChange(e) {
|
|
69
|
-
this.pageSize = Number(e.target.value);
|
|
70
|
-
this.page = 1;
|
|
71
|
-
this.dropiPageChange.emit({ page: this.page, pageSize: this.pageSize });
|
|
72
|
-
}
|
|
73
|
-
render() {
|
|
74
|
-
const pages = this.pageNumbers;
|
|
75
|
-
const isFirst = this.page <= 1;
|
|
76
|
-
const isLast = this.page >= this.totalPages;
|
|
77
|
-
return (h("div", { key: '7a2b5b626be626d66d33cb7857d9243440559587', class: "paginator" }, this.showPageSizeSelector && (h("div", { key: 'e113aee78c554393e41ad1e2ec94daa24c65043e', class: "paginator-size" }, h("span", { key: 'ee5124c3b99a5d80b309df9d41daaf5c530a1313', class: "paginator-size-label" }, "Por p\u00E1gina:"), h("select", { key: '8c58fd97f11866a2467e4412be2cc18252d55d79', class: "paginator-size-select", onChange: (e) => this.onPageSizeChange(e) }, this.parsedOptions.map(opt => (h("option", { value: opt, selected: opt === this.pageSize }, opt)))))), h("div", { key: 'd727c882a91240cc9d777156c7b6cd2fac01ca67', class: "paginator-pages" }, !isFirst && !this.noLabels && (h("button", { key: '7efb966e0f8a6e8270ec8fda44551072acb46152', class: { 'paginator-btn': true, 'paginator-btn--arrow': true }, onClick: () => this.goTo(1), "aria-label": "Primera p\u00E1gina" }, h("dropi-icon", { key: 'ac59bf489afc4622101bdeaa2b1eb9d8628041d4', name: "Arrow-double-small-left", width: "16px", height: "16px", color: "Gray-Gray-600" }))), !isFirst && (h("button", { key: '0347c7803eed753d73fd0260330853995e74e734', class: { 'paginator-btn': true, 'paginator-btn--arrow': true }, onClick: () => this.goTo(this.page - 1), "aria-label": "Anterior" }, h("dropi-icon", { key: '7097ac1ba68a1953c686022ea73f812437cc96cd', name: "Dropdown-left", width: "16px", height: "16px", color: "Gray-Gray-600" }), !this.noLabels && h("span", { key: '786be5b0f0116c35c2685356607695e8f22328e0', class: "paginator-label" }, "Anterior"))), pages.map((p, i) => p === '...'
|
|
78
|
-
? h("span", { class: "paginator-ellipsis", key: `e${i}` }, "\u2026")
|
|
79
|
-
: h("button", { key: p, class: { 'paginator-btn': true, 'paginator-btn--active': p === this.page }, onClick: () => this.goTo(p), "aria-current": p === this.page ? 'page' : undefined }, p)), !isLast && (h("button", { key: 'e462ff2d53d1b1361e813701fb549505e0eada30', class: { 'paginator-btn': true, 'paginator-btn--arrow': true }, onClick: () => this.goTo(this.page + 1), "aria-label": "Siguiente" }, !this.noLabels && h("span", { key: '1d40fa0b8b69c72c3e7eed4cd4732f009508e052', class: "paginator-label" }, "Siguiente"), h("dropi-icon", { key: 'efcc1414a52a3946f38e2b7790bcbed2fce42328', name: "Dropdown-Right", width: "16px", height: "16px", color: "Gray-Gray-600" }))), !isLast && !this.noLabels && (h("button", { key: 'ad08274cb7d624d141ee7c1599fb5662e5715aca', class: { 'paginator-btn': true, 'paginator-btn--arrow': true }, onClick: () => this.goTo(this.totalPages), "aria-label": "\u00DAltima p\u00E1gina" }, h("dropi-icon", { key: '579969aa3a6c0bc538a2d68fc399e017a836136d', name: "Arrow-double-small-right", width: "16px", height: "16px", color: "Gray-Gray-600" }))))));
|
|
80
|
-
}
|
|
81
|
-
static get watchers() { return {
|
|
82
|
-
"pageSizeOptions": [{
|
|
83
|
-
"optionsChanged": 0
|
|
84
|
-
}]
|
|
85
|
-
}; }
|
|
86
|
-
};
|
|
87
|
-
DropiPaginator.style = dropiPaginatorCss();
|
|
88
|
-
|
|
89
|
-
export { DropiPaginator as dropi_paginator };
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-Twbb5MNM.js';
|
|
2
|
-
|
|
3
|
-
const dropiTagCss = () => `:host{display:inline-block}*,*::before,*::after{box-sizing:border-box}.container-chips{display:inline-block}.tags{display:inline-flex;padding:4px 8px;justify-content:center;align-items:center;gap:4px;border-radius:var(--Border-5, 9999px);overflow:hidden;text-align:center;text-overflow:ellipsis;font-size:var(--font-size-s, 12px);font-weight:var(--font-weight-medium, 500);line-height:var(--Size-5, 24px);animation:fade-in 200ms ease-out}.tags.icon-only{gap:0}.file-icon{display:flex;margin-right:4px}@keyframes fade-in{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:scale(1)}}`;
|
|
4
|
-
|
|
5
|
-
const DropiTag = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
}
|
|
9
|
-
/** primary (filled) | secondary (soft) */
|
|
10
|
-
type = 'primary';
|
|
11
|
-
/** Color state of the tag */
|
|
12
|
-
state = 'default';
|
|
13
|
-
/** Whether to show the icon */
|
|
14
|
-
showIcon = false;
|
|
15
|
-
/** Icon name from the sprite */
|
|
16
|
-
icon = '';
|
|
17
|
-
/** Label text */
|
|
18
|
-
text = '';
|
|
19
|
-
colorMap = {
|
|
20
|
-
default: 'Primary-Primary',
|
|
21
|
-
success: 'Success-Success',
|
|
22
|
-
info: 'Info-Info',
|
|
23
|
-
warning: 'Warning-Warning',
|
|
24
|
-
error: 'Error-Error',
|
|
25
|
-
legacy: 'Gray-Gray',
|
|
26
|
-
};
|
|
27
|
-
propsChanged() { }
|
|
28
|
-
get bgColor() {
|
|
29
|
-
const base = this.colorMap[this.state];
|
|
30
|
-
if (this.type === 'primary')
|
|
31
|
-
return `var(--${base}-500)`;
|
|
32
|
-
const shade = this.state === 'default' || this.state === 'legacy' ? '-100' : '-50';
|
|
33
|
-
return `var(--${base}${shade})`;
|
|
34
|
-
}
|
|
35
|
-
get textColor() {
|
|
36
|
-
const base = this.colorMap[this.state];
|
|
37
|
-
if (this.type === 'primary')
|
|
38
|
-
return `var(--Neutral-White)`;
|
|
39
|
-
const shade = this.state === 'default' ? '-500' : '-700';
|
|
40
|
-
return `var(--${base}${shade})`;
|
|
41
|
-
}
|
|
42
|
-
get iconColor() {
|
|
43
|
-
if (this.type === 'primary')
|
|
44
|
-
return 'Neutral-White';
|
|
45
|
-
const base = this.colorMap[this.state];
|
|
46
|
-
const shade = this.state === 'default' ? '-500' : '-700';
|
|
47
|
-
return `${base}${shade}`;
|
|
48
|
-
}
|
|
49
|
-
get hasContent() {
|
|
50
|
-
return typeof this.text === 'string' && this.text.trim().length > 0;
|
|
51
|
-
}
|
|
52
|
-
render() {
|
|
53
|
-
return (h("div", { key: '65711113151698b330e945197d0b626130dc06ef', class: "container-chips" }, h("div", { key: 'c49964c1bcdfd96f538a1782a4b564a0e73fa87e', class: { tags: true, 'icon-only': this.showIcon && !this.hasContent }, style: { backgroundColor: this.bgColor, color: this.textColor } }, this.showIcon && this.icon && (h("dropi-icon", { key: 'cb1ed97b3f33c8e4171899f78a84e3572a37e462', class: "file-icon", name: this.icon, width: "16px", height: "16px", color: this.iconColor })), this.hasContent && h("span", { key: '92d71bb6f51dd7fa362023c230f27f9fa59744c0' }, this.text))));
|
|
54
|
-
}
|
|
55
|
-
static get watchers() { return {
|
|
56
|
-
"type": [{
|
|
57
|
-
"propsChanged": 0
|
|
58
|
-
}],
|
|
59
|
-
"state": [{
|
|
60
|
-
"propsChanged": 0
|
|
61
|
-
}]
|
|
62
|
-
}; }
|
|
63
|
-
};
|
|
64
|
-
DropiTag.style = dropiTagCss();
|
|
65
|
-
|
|
66
|
-
export { DropiTag as dropi_tag };
|