@dropi/ui 0.1.27 → 0.1.28
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 +54 -0
- package/dist/cjs/dropi-accordion.cjs.entry.js +19 -0
- 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 +64 -0
- package/dist/cjs/dropi-avatars.cjs.entry.js +31 -0
- package/dist/cjs/dropi-badge-legacy.cjs.entry.js +30 -0
- package/dist/cjs/dropi-badge.cjs.entry.js +37 -0
- package/dist/cjs/dropi-banner-external.cjs.entry.js +63 -0
- package/dist/cjs/dropi-breadcrumb.cjs.entry.js +48 -0
- package/dist/cjs/dropi-button.cjs.entry.js +87 -0
- package/dist/cjs/dropi-card-checkbox.cjs.entry.js +48 -0
- package/dist/cjs/dropi-card-product.cjs.entry.js +78 -0
- package/dist/cjs/dropi-card-section.cjs.entry.js +38 -0
- package/dist/cjs/dropi-carousel.cjs.entry.js +153 -0
- package/dist/cjs/dropi-checkbox-selection-list.cjs.entry.js +73 -0
- package/dist/cjs/dropi-checkbox.cjs.entry.js +36 -0
- package/dist/cjs/dropi-chips.cjs.entry.js +30 -0
- package/dist/cjs/dropi-city-selector.cjs.entry.js +104 -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 +79 -0
- package/dist/cjs/dropi-dropdown.cjs.entry.js +65 -0
- package/dist/cjs/dropi-empty-state.cjs.entry.js +36 -0
- package/dist/cjs/dropi-favorite-button.cjs.entry.js +27 -0
- package/dist/cjs/dropi-file-upload-progress-bar.cjs.entry.js +77 -0
- package/dist/cjs/dropi-file-upload.cjs.entry.js +237 -0
- package/dist/cjs/dropi-icon.cjs.entry.js +67 -0
- package/dist/cjs/dropi-ilustration-icon.cjs.entry.js +39 -0
- package/dist/cjs/dropi-image-miniature.cjs.entry.js +44 -0
- package/dist/cjs/dropi-image-overlay.cjs.entry.js +63 -0
- package/dist/cjs/dropi-input_3.cjs.entry.js +392 -0
- package/dist/cjs/dropi-languages-selector.cjs.entry.js +61 -0
- package/dist/cjs/dropi-logo.cjs.entry.js +37 -0
- package/dist/cjs/dropi-lottie-loader.cjs.entry.js +27 -0
- package/dist/cjs/dropi-media-player.cjs.entry.js +192 -0
- package/dist/cjs/dropi-modal.cjs.entry.js +142 -0
- package/dist/cjs/dropi-navbar.cjs.entry.js +54 -0
- package/dist/cjs/dropi-otp-send-code.cjs.entry.js +92 -0
- package/dist/cjs/dropi-phone-input.cjs.entry.js +197 -0
- package/dist/cjs/dropi-radio-button.cjs.entry.js +47 -0
- package/dist/cjs/dropi-radio-selection-list.cjs.entry.js +60 -0
- package/dist/cjs/dropi-read-more.cjs.entry.js +40 -0
- package/dist/cjs/dropi-search.cjs.entry.js +124 -0
- package/dist/cjs/dropi-select.cjs.entry.js +382 -0
- package/dist/cjs/dropi-sidebar.cjs.entry.js +78 -0
- package/dist/cjs/dropi-simple-stepper.cjs.entry.js +53 -0
- package/dist/cjs/dropi-skeleton.cjs.entry.js +57 -0
- package/dist/cjs/dropi-steps.cjs.entry.js +52 -0
- package/dist/cjs/dropi-switch.cjs.entry.js +30 -0
- package/dist/cjs/dropi-table.cjs.entry.js +299 -0
- package/dist/cjs/dropi-tabs.cjs.entry.js +51 -0
- package/dist/cjs/dropi-tag-type-product.cjs.entry.js +19 -0
- package/dist/cjs/dropi-text-area.cjs.entry.js +134 -0
- package/dist/cjs/dropi-time-line.cjs.entry.js +34 -0
- package/dist/cjs/dropi-toast.cjs.entry.js +56 -0
- package/dist/cjs/dropi-tooltip-v2.cjs.entry.js +131 -0
- package/dist/cjs/dropi-tooltip.cjs.entry.js +21 -0
- package/dist/cjs/dropi-ui.cjs.js +24 -0
- package/dist/cjs/dropi-vertical-steps.cjs.entry.js +55 -0
- package/dist/cjs/dropi-youtube-lazy-video.cjs.entry.js +33 -0
- package/dist/cjs/index-C8kwDvpf.js +2773 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +12 -0
- package/dist/collection/assets/icons/symbol/svg/sprite.css.svg +1 -0
- package/dist/collection/collection-manifest.json +77 -0
- 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 +21 -0
- package/dist/collection/components/dropi-accordion/dropi-accordion.js +48 -0
- package/dist/collection/components/dropi-alert/dropi-alert.css +128 -0
- package/dist/collection/components/dropi-alert/dropi-alert.js +371 -0
- 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 +105 -0
- package/dist/collection/components/dropi-alert-modal/dropi-alert-modal.js +525 -0
- package/dist/collection/components/dropi-avatars/dropi-avatars.css +55 -0
- package/dist/collection/components/dropi-avatars/dropi-avatars.js +126 -0
- package/dist/collection/components/dropi-badge/dropi-badge.css +41 -0
- package/dist/collection/components/dropi-badge/dropi-badge.js +71 -0
- 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 +254 -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 +177 -0
- package/dist/collection/components/dropi-button/dropi-button.js +323 -0
- 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 +386 -0
- package/dist/collection/components/dropi-card-section/dropi-card-section.css +42 -0
- package/dist/collection/components/dropi-card-section/dropi-card-section.js +178 -0
- package/dist/collection/components/dropi-carousel/dropi-carousel.css +148 -0
- package/dist/collection/components/dropi-carousel/dropi-carousel.js +379 -0
- package/dist/collection/components/dropi-checkbox/dropi-checkbox.css +47 -0
- package/dist/collection/components/dropi-checkbox/dropi-checkbox.js +103 -0
- package/dist/collection/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.css +44 -0
- package/dist/collection/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.js +267 -0
- package/dist/collection/components/dropi-chips/dropi-chips.css +68 -0
- package/dist/collection/components/dropi-chips/dropi-chips.js +169 -0
- package/dist/collection/components/dropi-city-selector/dropi-city-selector.css +218 -0
- package/dist/collection/components/dropi-city-selector/dropi-city-selector.js +242 -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 +287 -0
- package/dist/collection/components/dropi-dropdown/dropi-dropdown.css +51 -0
- package/dist/collection/components/dropi-dropdown/dropi-dropdown.js +209 -0
- package/dist/collection/components/dropi-empty-state/dropi-empty-state.css +59 -0
- package/dist/collection/components/dropi-empty-state/dropi-empty-state.js +222 -0
- package/dist/collection/components/dropi-favorite-button/dropi-favorite-button.css +24 -0
- package/dist/collection/components/dropi-favorite-button/dropi-favorite-button.js +78 -0
- package/dist/collection/components/dropi-file-upload/dropi-file-upload.css +464 -0
- package/dist/collection/components/dropi-file-upload/dropi-file-upload.js +517 -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 +258 -0
- package/dist/collection/components/dropi-icon/dropi-icon.css +26 -0
- package/dist/collection/components/dropi-icon/dropi-icon.js +159 -0
- package/dist/collection/components/dropi-ilustration-icon/dropi-ilustration-icon.css +91 -0
- package/dist/collection/components/dropi-ilustration-icon/dropi-ilustration-icon.js +150 -0
- package/dist/collection/components/dropi-image-miniature/dropi-image-miniature.css +45 -0
- package/dist/collection/components/dropi-image-miniature/dropi-image-miniature.js +150 -0
- package/dist/collection/components/dropi-image-overlay/dropi-image-overlay.css +127 -0
- package/dist/collection/components/dropi-image-overlay/dropi-image-overlay.js +156 -0
- package/dist/collection/components/dropi-input/dropi-input.css +185 -0
- package/dist/collection/components/dropi-input/dropi-input.js +808 -0
- package/dist/collection/components/dropi-languages-selector/dropi-languages-selector.css +79 -0
- package/dist/collection/components/dropi-languages-selector/dropi-languages-selector.js +158 -0
- package/dist/collection/components/dropi-logo/dropi-logo.css +26 -0
- package/dist/collection/components/dropi-logo/dropi-logo.js +107 -0
- package/dist/collection/components/dropi-lottie-loader/dropi-lottie-loader.css +56 -0
- package/dist/collection/components/dropi-lottie-loader/dropi-lottie-loader.js +116 -0
- package/dist/collection/components/dropi-media-player/dropi-media-player.css +320 -0
- package/dist/collection/components/dropi-media-player/dropi-media-player.js +394 -0
- package/dist/collection/components/dropi-modal/dropi-modal.css +140 -0
- package/dist/collection/components/dropi-modal/dropi-modal.js +695 -0
- 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 +67 -0
- package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.js +221 -0
- package/dist/collection/components/dropi-paginator/dropi-paginator.css +103 -0
- package/dist/collection/components/dropi-paginator/dropi-paginator.js +215 -0
- 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.css +62 -0
- package/dist/collection/components/dropi-radio-button/dropi-radio-button.js +174 -0
- package/dist/collection/components/dropi-radio-selection-list/dropi-radio-selection-list.css +64 -0
- package/dist/collection/components/dropi-radio-selection-list/dropi-radio-selection-list.js +259 -0
- package/dist/collection/components/dropi-read-more/dropi-read-more.css +25 -0
- package/dist/collection/components/dropi-read-more/dropi-read-more.js +154 -0
- package/dist/collection/components/dropi-search/dropi-search.css +112 -0
- package/dist/collection/components/dropi-search/dropi-search.js +526 -0
- package/dist/collection/components/dropi-select/dropi-select.css +366 -0
- package/dist/collection/components/dropi-select/dropi-select.js +1018 -0
- package/dist/collection/components/dropi-select/select.types.js +1 -0
- 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 +94 -0
- package/dist/collection/components/dropi-simple-stepper/dropi-simple-stepper.js +194 -0
- package/dist/collection/components/dropi-skeleton/dropi-skeleton.css +27 -0
- package/dist/collection/components/dropi-skeleton/dropi-skeleton.js +192 -0
- package/dist/collection/components/dropi-steps/dropi-steps.css +95 -0
- package/dist/collection/components/dropi-steps/dropi-steps.js +173 -0
- package/dist/collection/components/dropi-switch/dropi-switch.css +57 -0
- package/dist/collection/components/dropi-switch/dropi-switch.js +96 -0
- package/dist/collection/components/dropi-table/dropi-table.css +540 -0
- package/dist/collection/components/dropi-table/dropi-table.js +973 -0
- package/dist/collection/components/dropi-tabs/dropi-tabs.css +47 -0
- package/dist/collection/components/dropi-tabs/dropi-tabs.js +181 -0
- package/dist/collection/components/dropi-tag/dropi-tag.css +39 -0
- package/dist/collection/components/dropi-tag/dropi-tag.js +190 -0
- 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 +100 -0
- package/dist/collection/components/dropi-text-area/dropi-text-area.js +512 -0
- package/dist/collection/components/dropi-time-line/dropi-time-line.css +108 -0
- package/dist/collection/components/dropi-time-line/dropi-time-line.js +69 -0
- package/dist/collection/components/dropi-toast/dropi-toast.css +63 -0
- package/dist/collection/components/dropi-toast/dropi-toast.js +165 -0
- package/dist/collection/components/dropi-tooltip/dropi-tooltip.css +32 -0
- package/dist/collection/components/dropi-tooltip/dropi-tooltip.js +70 -0
- 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 +95 -0
- package/dist/collection/components/dropi-vertical-steps/dropi-vertical-steps.js +167 -0
- package/dist/collection/components/dropi-youtube-lazy-video/dropi-youtube-lazy-video.css +73 -0
- package/dist/collection/components/dropi-youtube-lazy-video/dropi-youtube-lazy-video.js +110 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/utils.js +3 -0
- package/dist/collection/utils/utils.unit.test.js +16 -0
- package/dist/components/dropi-accordion-item.js +1 -0
- package/dist/components/dropi-accordion.js +1 -0
- package/dist/components/dropi-alert-legacy.js +1 -0
- package/dist/components/dropi-alert-modal.js +1 -0
- package/dist/components/dropi-alert.js +1 -0
- package/dist/components/dropi-avatars.js +1 -0
- package/dist/components/dropi-badge-legacy.js +1 -0
- package/dist/components/dropi-badge.js +1 -0
- package/dist/components/dropi-banner-external.js +1 -0
- package/dist/components/dropi-breadcrumb.js +1 -0
- package/dist/components/dropi-button.js +1 -0
- package/dist/components/dropi-card-checkbox.js +1 -0
- package/dist/components/dropi-card-product.js +1 -0
- package/dist/components/dropi-card-section.js +1 -0
- package/dist/components/dropi-carousel.js +1 -0
- package/dist/components/dropi-checkbox-selection-list.js +1 -0
- package/dist/components/dropi-checkbox.js +1 -0
- package/dist/components/dropi-chips.js +1 -0
- package/dist/components/dropi-city-selector.js +1 -0
- package/dist/components/dropi-color-picker.js +1 -0
- package/dist/components/dropi-country-flags.js +1 -0
- package/dist/components/dropi-country-selector.js +1 -0
- package/dist/components/dropi-date-picker-range.js +1 -0
- package/dist/components/dropi-date-picker.js +1 -0
- package/dist/components/dropi-drawer.js +1 -0
- package/dist/components/dropi-dropdown.js +1 -0
- package/dist/components/dropi-empty-state.js +1 -0
- package/dist/components/dropi-favorite-button.js +1 -0
- package/dist/components/dropi-file-upload-progress-bar.js +1 -0
- package/dist/components/dropi-file-upload.js +1 -0
- package/dist/components/dropi-icon.js +1 -0
- package/dist/components/dropi-ilustration-icon.js +1 -0
- package/dist/components/dropi-image-miniature.js +1 -0
- package/dist/components/dropi-image-overlay.js +1 -0
- package/dist/components/dropi-input.js +1 -0
- package/dist/components/dropi-languages-selector.js +1 -0
- package/dist/components/dropi-logo.js +1 -0
- package/dist/components/dropi-lottie-loader.js +1 -0
- package/dist/components/dropi-media-player.js +1 -0
- package/dist/components/dropi-modal.js +1 -0
- package/dist/components/dropi-navbar.js +1 -0
- package/dist/components/dropi-otp-send-code.js +1 -0
- package/dist/components/dropi-paginator.js +1 -0
- package/dist/components/dropi-phone-input.js +1 -0
- package/dist/components/dropi-radio-button.js +1 -0
- package/dist/components/dropi-radio-selection-list.js +1 -0
- package/dist/components/dropi-read-more.js +1 -0
- package/dist/components/dropi-search.js +1 -0
- package/dist/components/dropi-select.js +1 -0
- package/dist/components/dropi-sidebar.js +1 -0
- package/dist/components/dropi-simple-stepper.js +1 -0
- package/dist/components/dropi-skeleton.js +1 -0
- package/dist/components/dropi-steps.js +1 -0
- package/dist/components/dropi-switch.js +1 -0
- package/dist/components/dropi-table.js +1 -0
- package/dist/components/dropi-tabs.js +1 -0
- package/dist/components/dropi-tag-type-product.js +1 -0
- package/dist/components/dropi-tag.js +1 -0
- package/dist/components/dropi-text-area.js +1 -0
- package/dist/components/dropi-time-line.js +1 -0
- package/dist/components/dropi-toast.js +1 -0
- package/dist/components/dropi-tooltip-v2.js +1 -0
- package/dist/components/dropi-tooltip.js +1 -0
- package/dist/components/dropi-vertical-steps.js +1 -0
- package/dist/components/dropi-youtube-lazy-video.js +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/p-B9R8Apw7.js +1 -0
- package/dist/components/p-B_Ace02i.js +1 -0
- package/dist/components/p-BrjO_JXp.js +1 -0
- package/dist/components/p-BwhxWL4p.js +1 -0
- package/dist/components/p-Bz2jXX3R.js +1 -0
- package/dist/components/p-CV_oz45O.js +1 -0
- package/dist/components/p-D-vQQQNz.js +1 -0
- package/dist/components/p-D13d88W3.js +1 -0
- package/dist/components/p-DGUfr98Z.js +1 -0
- package/dist/components/p-QOZr7tU8.js +1 -0
- package/dist/components/p-a-hGQrJd.js +1 -0
- package/dist/components/p-o5gyrbbD.js +1 -0
- package/dist/dropi-ui/dropi-ui.css +1 -311
- package/dist/dropi-ui/dropi-ui.esm.js +1 -50
- package/dist/dropi-ui/index.esm.js +0 -4
- package/dist/dropi-ui/p-00e5a2de.entry.js +1 -0
- package/dist/dropi-ui/p-0188e07a.entry.js +1 -0
- package/dist/dropi-ui/p-02710049.entry.js +1 -0
- package/dist/dropi-ui/p-17c56074.entry.js +1 -0
- package/dist/dropi-ui/p-18adf694.entry.js +1 -0
- package/dist/dropi-ui/p-1a3619c3.entry.js +1 -0
- package/dist/dropi-ui/p-1d3d6a32.entry.js +1 -0
- package/dist/dropi-ui/p-25640777.entry.js +1 -0
- package/dist/dropi-ui/p-2674d901.entry.js +1 -0
- package/dist/dropi-ui/p-2af538b9.entry.js +1 -0
- package/dist/dropi-ui/p-3013f3b8.entry.js +1 -0
- package/dist/dropi-ui/p-3321ca70.entry.js +1 -0
- package/dist/dropi-ui/p-33d242ec.entry.js +1 -0
- package/dist/dropi-ui/p-34b66ca2.entry.js +1 -0
- package/dist/dropi-ui/p-39af6478.entry.js +1 -0
- package/dist/dropi-ui/p-3e36c8b8.entry.js +1 -0
- package/dist/dropi-ui/p-3ebc9b7b.entry.js +1 -0
- package/dist/dropi-ui/p-446a481d.entry.js +1 -0
- package/dist/dropi-ui/p-50e0d44f.entry.js +1 -0
- package/dist/dropi-ui/p-53a7a37d.entry.js +1 -0
- package/dist/dropi-ui/p-5c0bd7c2.entry.js +1 -0
- package/dist/dropi-ui/p-5cee6721.entry.js +1 -0
- package/dist/dropi-ui/p-5fb33ae4.entry.js +1 -0
- package/dist/dropi-ui/p-665ef7ba.entry.js +1 -0
- package/dist/dropi-ui/p-66b80371.entry.js +1 -0
- package/dist/dropi-ui/p-7bfc1c27.entry.js +1 -0
- package/dist/dropi-ui/p-7c0d2edf.entry.js +1 -0
- package/dist/dropi-ui/p-7eb27836.entry.js +1 -0
- package/dist/dropi-ui/p-85444414.entry.js +1 -0
- package/dist/dropi-ui/p-86283e99.entry.js +1 -0
- package/dist/dropi-ui/p-8bf5d8ee.entry.js +1 -0
- package/dist/dropi-ui/p-9032ba00.entry.js +1 -0
- package/dist/dropi-ui/p-9212f544.entry.js +1 -0
- package/dist/dropi-ui/p-92291873.entry.js +1 -0
- package/dist/dropi-ui/p-955e52f8.entry.js +1 -0
- package/dist/dropi-ui/p-976a15e3.entry.js +1 -0
- package/dist/dropi-ui/p-9b037086.entry.js +1 -0
- package/dist/dropi-ui/p-9e0129cc.entry.js +1 -0
- package/dist/dropi-ui/p-9ffec3f7.entry.js +1 -0
- package/dist/dropi-ui/p-D5SAM1O2.js +2 -0
- package/dist/dropi-ui/p-a1c93e55.entry.js +1 -0
- package/dist/dropi-ui/p-a232c6a7.entry.js +1 -0
- package/dist/dropi-ui/p-a3c4d677.entry.js +1 -0
- package/dist/dropi-ui/p-a457e8ca.entry.js +1 -0
- package/dist/dropi-ui/p-a4e1df5e.entry.js +1 -0
- package/dist/dropi-ui/p-a822a23e.entry.js +1 -0
- package/dist/dropi-ui/p-a8f24270.entry.js +1 -0
- package/dist/dropi-ui/p-ae35d538.entry.js +1 -0
- package/dist/dropi-ui/p-af8e2157.entry.js +1 -0
- package/dist/dropi-ui/p-b2623a5c.entry.js +1 -0
- package/dist/dropi-ui/p-b3d3c72e.entry.js +1 -0
- package/dist/dropi-ui/p-c3614c4a.entry.js +1 -0
- package/dist/dropi-ui/p-cbf5367e.entry.js +1 -0
- package/dist/dropi-ui/p-cc527d91.entry.js +1 -0
- package/dist/dropi-ui/p-cdde481b.entry.js +1 -0
- package/dist/dropi-ui/p-d42d4ef7.entry.js +1 -0
- package/dist/dropi-ui/p-db38bf16.entry.js +1 -0
- package/dist/dropi-ui/p-dd5d8b1b.entry.js +1 -0
- package/dist/dropi-ui/p-e3ad21f8.entry.js +1 -0
- package/dist/dropi-ui/p-e6e766ed.entry.js +1 -0
- package/dist/dropi-ui/p-ec263862.entry.js +1 -0
- package/dist/dropi-ui/p-efc2fc35.entry.js +1 -0
- package/dist/dropi-ui/p-f41cd9b5.entry.js +1 -0
- package/dist/dropi-ui/p-fa3d0267.entry.js +1 -0
- package/dist/{dropi-ui → esm}/dropi-accordion-item.entry.js +2 -8
- package/dist/{dropi-ui → esm}/dropi-accordion.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-alert-legacy.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-alert-modal.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-alert.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-avatars.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-badge-legacy.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-badge.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-banner-external.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-breadcrumb.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-button.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-card-checkbox.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-card-product.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-card-section.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-carousel.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-checkbox-selection-list.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-checkbox.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-chips.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-city-selector.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-color-picker.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-country-flags.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-country-selector.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-date-picker-range.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-date-picker.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-drawer.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-dropdown.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-empty-state.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-favorite-button.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-file-upload-progress-bar.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-file-upload.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-icon.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-ilustration-icon.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-image-miniature.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-image-overlay.entry.js +1 -4
- package/dist/{dropi-ui/dropi-input.entry.js → esm/dropi-input_3.entry.js} +128 -4
- package/dist/{dropi-ui → esm}/dropi-languages-selector.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-logo.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-lottie-loader.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-media-player.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-modal.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-navbar.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-otp-send-code.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-phone-input.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-radio-button.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-radio-selection-list.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-read-more.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-search.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-select.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-sidebar.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-simple-stepper.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-skeleton.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-steps.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-switch.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-table.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-tabs.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-tag-type-product.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-text-area.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-time-line.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-toast.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-tooltip-v2.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-tooltip.entry.js +1 -4
- package/dist/esm/dropi-ui.js +20 -0
- package/dist/{dropi-ui → esm}/dropi-vertical-steps.entry.js +1 -4
- package/dist/{dropi-ui → esm}/dropi-youtube-lazy-video.entry.js +1 -4
- package/dist/esm/index-D5SAM1O2.js +2763 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +10 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
- package/dist/dropi-ui/dropi-accordion-item.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-accordion.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-alert-legacy.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-alert-modal.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-alert.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-avatars.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-badge-legacy.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-badge.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-banner-external.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-breadcrumb.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-button.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-card-checkbox.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-card-product.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-card-section.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-carousel.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-checkbox-selection-list.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-checkbox.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-chips.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-city-selector.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-color-picker.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-country-flags.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-country-selector.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-date-picker-range.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-date-picker.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-drawer.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-dropdown.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-empty-state.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-favorite-button.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-file-upload-progress-bar.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-file-upload.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-icon.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-ilustration-icon.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-image-miniature.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-image-overlay.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-input.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-languages-selector.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-logo.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-lottie-loader.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-media-player.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-modal.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-navbar.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-otp-send-code.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-paginator.entry.js +0 -70
- package/dist/dropi-ui/dropi-paginator.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-phone-input.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-radio-button.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-radio-selection-list.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-read-more.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-search.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-select.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-sidebar.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-simple-stepper.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-skeleton.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-steps.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-switch.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-table.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-tabs.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-tag-type-product.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-tag.entry.js +0 -69
- package/dist/dropi-ui/dropi-tag.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-text-area.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-time-line.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-toast.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-tooltip-v2.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-tooltip.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-ui.esm.js.map +0 -1
- package/dist/dropi-ui/dropi-vertical-steps.entry.js.map +0 -1
- package/dist/dropi-ui/dropi-youtube-lazy-video.entry.js.map +0 -1
- package/dist/dropi-ui/index-Cvp2LQOM.js +0 -4585
- package/dist/dropi-ui/index-Cvp2LQOM.js.map +0 -1
- package/dist/dropi-ui/index.esm.js.map +0 -1
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
font-family: 'Inter', sans-serif;
|
|
4
|
+
}
|
|
5
|
+
*, *::before, *::after { box-sizing: border-box; }
|
|
6
|
+
|
|
7
|
+
/* ── Card wrapper ── */
|
|
8
|
+
.dropi-card-product {
|
|
9
|
+
position: relative;
|
|
10
|
+
background: #ffffff;
|
|
11
|
+
border-radius: 8px;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
transition: all 0.2s ease-in-out;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
height: 100%;
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
width: 100%;
|
|
20
|
+
max-width: 450px;
|
|
21
|
+
box-shadow: none;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* ── Image container ── */
|
|
25
|
+
.product-image-container {
|
|
26
|
+
padding: 4px;
|
|
27
|
+
flex-shrink: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.product-image {
|
|
31
|
+
position: relative;
|
|
32
|
+
width: 100%;
|
|
33
|
+
aspect-ratio: 1;
|
|
34
|
+
border-radius: 8px;
|
|
35
|
+
border: 1px solid #c3c9d9;
|
|
36
|
+
overflow: hidden;
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
justify-content: center;
|
|
40
|
+
background-color: #f8f9fa;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.product-image img {
|
|
44
|
+
width: 100%;
|
|
45
|
+
height: 100%;
|
|
46
|
+
object-fit: cover;
|
|
47
|
+
border-radius: 8px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.product-image img.error-img {
|
|
51
|
+
object-fit: contain;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* ── Favorite button ── */
|
|
55
|
+
.favorite-button {
|
|
56
|
+
position: absolute;
|
|
57
|
+
bottom: 5px;
|
|
58
|
+
right: 6px;
|
|
59
|
+
border-radius: 8px;
|
|
60
|
+
padding: 12px;
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
transition: all 0.2s ease-in-out;
|
|
63
|
+
z-index: 2;
|
|
64
|
+
display: flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
justify-content: center;
|
|
67
|
+
width: 42px;
|
|
68
|
+
height: 40px;
|
|
69
|
+
background: #ffffff;
|
|
70
|
+
border: 1px solid #858ea6;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.favorite-button.favorite-active {
|
|
74
|
+
background: var(--Primary-Primary-500, #f49a3d);
|
|
75
|
+
border: 1px solid var(--Primary-Primary-500, #f49a3d);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/* ── Product info ── */
|
|
79
|
+
.product-info {
|
|
80
|
+
position: relative;
|
|
81
|
+
padding: 8px;
|
|
82
|
+
display: flex;
|
|
83
|
+
flex-direction: column;
|
|
84
|
+
gap: 4px;
|
|
85
|
+
flex: 1;
|
|
86
|
+
justify-content: space-between;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* ── Supplier insignia — overlaps from top ── */
|
|
90
|
+
.supplier-insignia {
|
|
91
|
+
position: absolute;
|
|
92
|
+
top: -24px;
|
|
93
|
+
left: 0px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* ── Header: category + stock ── */
|
|
97
|
+
.product-header {
|
|
98
|
+
display: flex;
|
|
99
|
+
justify-content: space-between;
|
|
100
|
+
align-items: center;
|
|
101
|
+
width: 100%;
|
|
102
|
+
height: 26px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.category {
|
|
106
|
+
color: #69738c;
|
|
107
|
+
font-family: 'Inter', sans-serif;
|
|
108
|
+
font-size: 12px;
|
|
109
|
+
font-weight: 400;
|
|
110
|
+
line-height: 1.5;
|
|
111
|
+
flex: 1;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.stock-info {
|
|
115
|
+
display: flex;
|
|
116
|
+
align-items: center;
|
|
117
|
+
gap: 2px;
|
|
118
|
+
font-family: 'Inter', sans-serif;
|
|
119
|
+
font-size: 12px;
|
|
120
|
+
font-weight: 400;
|
|
121
|
+
line-height: 1.5;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.stock-label {
|
|
125
|
+
color: #69738c;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.stock-value {
|
|
129
|
+
font-weight: 500;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* ── Product name ── */
|
|
133
|
+
.product-name {
|
|
134
|
+
color: #32394d;
|
|
135
|
+
font-family: 'Inter', sans-serif;
|
|
136
|
+
font-size: 16px;
|
|
137
|
+
font-weight: 500;
|
|
138
|
+
line-height: 1.5;
|
|
139
|
+
margin: 0;
|
|
140
|
+
overflow: hidden;
|
|
141
|
+
text-overflow: ellipsis;
|
|
142
|
+
display: -webkit-box;
|
|
143
|
+
-webkit-line-clamp: 2;
|
|
144
|
+
-webkit-box-orient: vertical;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/* ── Supplier ── */
|
|
148
|
+
.supplier-info {
|
|
149
|
+
font-family: 'Inter', sans-serif;
|
|
150
|
+
font-size: 12px;
|
|
151
|
+
line-height: 1.2;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.supplier-label {
|
|
155
|
+
color: #69738c;
|
|
156
|
+
font-weight: 400;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.supplier-name {
|
|
160
|
+
color: #50a5f1;
|
|
161
|
+
font-weight: 400;
|
|
162
|
+
margin-left: 4px;
|
|
163
|
+
cursor: pointer;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/* ── Prices ── */
|
|
167
|
+
.price-container {
|
|
168
|
+
display: flex;
|
|
169
|
+
gap: 8px;
|
|
170
|
+
margin-top: 4px;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.price-item {
|
|
174
|
+
flex: 1;
|
|
175
|
+
display: flex;
|
|
176
|
+
flex-direction: column;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.price-label {
|
|
180
|
+
color: #69738c;
|
|
181
|
+
font-family: 'Inter', sans-serif;
|
|
182
|
+
font-size: 12px;
|
|
183
|
+
font-weight: 400;
|
|
184
|
+
line-height: 1.5;
|
|
185
|
+
height: 18px;
|
|
186
|
+
min-width: max-content;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.price-value {
|
|
190
|
+
color: #32394d;
|
|
191
|
+
font-family: 'Inter', sans-serif;
|
|
192
|
+
font-size: 14px;
|
|
193
|
+
font-weight: 700;
|
|
194
|
+
line-height: 1.1;
|
|
195
|
+
margin-top: 2px;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/* ── Separator ── */
|
|
199
|
+
.separator {
|
|
200
|
+
height: 1px;
|
|
201
|
+
background: #e6eaf2;
|
|
202
|
+
margin: 0;
|
|
203
|
+
flex-shrink: 0;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/* ── Action button ── */
|
|
207
|
+
.action-button {
|
|
208
|
+
background: #ffffff;
|
|
209
|
+
border: none;
|
|
210
|
+
border-top: 1px solid #e6eaf2;
|
|
211
|
+
padding: 12px;
|
|
212
|
+
cursor: pointer;
|
|
213
|
+
transition: all 0.2s ease-in-out;
|
|
214
|
+
display: flex;
|
|
215
|
+
align-items: center;
|
|
216
|
+
justify-content: center;
|
|
217
|
+
gap: 8px;
|
|
218
|
+
height: 40px;
|
|
219
|
+
flex-shrink: 0;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.action-button--disabled {
|
|
223
|
+
opacity: 0.3;
|
|
224
|
+
cursor: not-allowed;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.button-text {
|
|
228
|
+
font-family: 'Inter', sans-serif;
|
|
229
|
+
font-size: 14px;
|
|
230
|
+
font-weight: 700;
|
|
231
|
+
line-height: 1.1;
|
|
232
|
+
color: #f49a3d;
|
|
233
|
+
text-align: center;
|
|
234
|
+
white-space: nowrap;
|
|
235
|
+
}
|
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* @component dropi-card-product
|
|
4
|
+
* Product card showing image, supplier insignia, name, stock, prices and action button.
|
|
5
|
+
*/
|
|
6
|
+
export class DropiCardProduct {
|
|
7
|
+
/** Product image URL */
|
|
8
|
+
image = '';
|
|
9
|
+
/** Product name */
|
|
10
|
+
productName = '';
|
|
11
|
+
/** Sale / supplier price (Precio proveedor) */
|
|
12
|
+
salePrice = 0;
|
|
13
|
+
/** Suggested price for the dropshipper (Precio sugerido) */
|
|
14
|
+
suggestedPrice = 0;
|
|
15
|
+
/** Price currency symbol */
|
|
16
|
+
currency = '$';
|
|
17
|
+
/** Supplier / store name */
|
|
18
|
+
supplier = '';
|
|
19
|
+
/** Category label */
|
|
20
|
+
category = '';
|
|
21
|
+
/** Stock quantity (0 = Agotado) */
|
|
22
|
+
stock = 0;
|
|
23
|
+
/** Supplier category for insignia: 'verified' | 'premium' | 'exclusive' | '' */
|
|
24
|
+
supplierCategory = '';
|
|
25
|
+
/** Show favorite button */
|
|
26
|
+
showFavorite = true;
|
|
27
|
+
/** Is marked as favorite */
|
|
28
|
+
isFavorite = false;
|
|
29
|
+
/** Show "Enviar a cliente" button */
|
|
30
|
+
showAddButton = true;
|
|
31
|
+
/** Emitted when card is clicked — matches Angular 'onProductClick' */
|
|
32
|
+
onProductClick;
|
|
33
|
+
/** Emitted when favorite toggled — matches Angular 'changeFavorite' */
|
|
34
|
+
changeFavorite;
|
|
35
|
+
/** Emitted when "Enviar a cliente" button clicked */
|
|
36
|
+
dropiAddProduct;
|
|
37
|
+
/** Emitted when supplier name clicked */
|
|
38
|
+
dropiSupplierClick;
|
|
39
|
+
formatPrice(val) {
|
|
40
|
+
if (val == null)
|
|
41
|
+
return '0';
|
|
42
|
+
return val.toLocaleString('es-CO');
|
|
43
|
+
}
|
|
44
|
+
get inStock() {
|
|
45
|
+
return this.stock > 0;
|
|
46
|
+
}
|
|
47
|
+
getStockColor() {
|
|
48
|
+
if (this.stock === 0)
|
|
49
|
+
return 'var(--Error-Error-500, #f46a6b)';
|
|
50
|
+
if (this.stock <= 10)
|
|
51
|
+
return 'var(--Warning-Warning-500, #f59e0b)';
|
|
52
|
+
return 'var(--Success-Success-500, #0abb87)';
|
|
53
|
+
}
|
|
54
|
+
render() {
|
|
55
|
+
return (h("div", { key: '42990ea883dcd6cc72e1f62771f7b9554c36bdba', class: "dropi-card-product", onClick: () => this.onProductClick.emit() }, h("div", { key: '59295427ddc350ec3c70d7d1bd4803ffa6bf26b0', class: "product-image-container" }, h("div", { key: '9d10e18f2eadf16f0c0b1b7cb7860d08f2ca778f', class: "product-image" }, h("img", { key: '19f7af8eddcbea880d32ef30603d55bfe9337f17', src: this.image || '', alt: this.productName, onError: (e) => {
|
|
56
|
+
e.target.src = './assets/utils/no-image.jpg';
|
|
57
|
+
}, class: !this.image ? 'error-img' : '' }), this.showFavorite && (h("button", { key: 'a6e13eea7c211fd772fe5ee7c13c7d475d54986c', class: { 'favorite-button': true, 'favorite-active': this.isFavorite }, onClick: (e) => {
|
|
58
|
+
e.stopPropagation();
|
|
59
|
+
this.isFavorite = !this.isFavorite;
|
|
60
|
+
this.changeFavorite.emit(this.isFavorite);
|
|
61
|
+
}, "aria-label": "Favorito" }, h("dropi-icon", { key: '0020aaa1beffedd0243c62f616dfeb6428ec63e5', name: this.isFavorite ? 'Heart-solid' : 'Heart', width: "18px", height: "18px", color: this.isFavorite ? '#fff' : '#858ea6' }))))), h("div", { key: '390a04f46d8394deb0591969a04525f3687509a0', class: "product-info" }, this.supplierCategory && (h("dropi-ilustration-icon", { key: '7fa320fcc36f6d4929197a2d88e59deb76d34ab0', class: "supplier-insignia", type: "insignia", stateInsignia: this.supplierCategory, tagProduct: true })), h("div", { key: '67e922b0afc44b3f376db3b20a33d7cc0ae8e987', class: "product-header" }, this.category && (h("span", { key: '421f39afc07922579610fe57abdfa37b4fa68586', class: "category" }, this.category)), h("div", { key: 'e4ad1d38535bd876298efb6d819d3355ac6b7446', class: "stock-info" }, h("span", { key: '5dbdabc282dbfaee4adec81668d38a909e04227d', class: "stock-label" }, "Stock:"), h("span", { key: 'f14a47956953779f4527404930b4a988ac5c5737', class: "stock-value", style: { color: this.getStockColor() } }, this.stock === 0 ? 'Agotado' : this.stock))), h("h3", { key: '4403e622316112df4075fafbbbbc17151d2e1b39', class: "product-name" }, this.productName), this.supplier && (h("div", { key: '28554238023a313e1698847a5faccd17e9bbd750', class: "supplier-info" }, h("span", { key: 'e34245925f659f232050ad835cf83690b112d7d0', class: "supplier-label" }, "Proveedor:"), h("span", { key: 'cabf8743951095acf0c05dd6e48ee74140984773', class: "supplier-name", onClick: (e) => { e.stopPropagation(); this.dropiSupplierClick.emit(); } }, this.supplier))), h("div", { key: '193982dc4aea14f337f64c9156d97f7c23d02db7', class: "price-container" }, h("div", { key: 'f2925c29fe4d5f9be2f92c501b92351e9a4f60e0', class: "price-item" }, h("span", { key: 'd0a8f99140d6ced64e19a69a2f198ba861cca017', class: "price-label" }, "Precio proveedor"), h("span", { key: '6fa5b8b5cd1f6d6e7b2551bdceedf65e3cb0029d', class: "price-value" }, this.currency, " ", this.formatPrice(this.salePrice))), h("div", { key: '0a37ead7f660608ed6303c97893fdd9156b5bfad', class: "price-item" }, h("span", { key: '8bb33b1b418fdbb79c31ed69ddfa2598f6450efd', class: "price-label" }, "Precio sugerido"), h("span", { key: '2df4c30b299190461f0032a66cc8d281ce9c9dab', class: "price-value" }, this.currency, " ", this.formatPrice(this.suggestedPrice))))), h("div", { key: '91a8306e386ac8d0422a02d3b4bac2d96ba7bebc', class: "separator" }), this.showAddButton && (h("div", { key: '69fd0267e5388770f5067a23d4ddf2636867b030', class: { 'action-button': true, 'action-button--disabled': !this.inStock }, onClick: (e) => {
|
|
62
|
+
e.stopPropagation();
|
|
63
|
+
if (this.inStock)
|
|
64
|
+
this.dropiAddProduct.emit();
|
|
65
|
+
} }, h("dropi-icon", { key: '6e9a7333778b5a4e75bca612f7900909e9b52c80', name: "Shopping-cart-arrow-rigth", width: "20px", height: "20px", color: "#f49a3d" }), h("span", { key: '1f3eb20049a94cb74bef8c89f8773a831667dc7b', class: "button-text" }, "Enviar a cliente")))));
|
|
66
|
+
}
|
|
67
|
+
static get is() { return "dropi-card-product"; }
|
|
68
|
+
static get encapsulation() { return "shadow"; }
|
|
69
|
+
static get originalStyleUrls() {
|
|
70
|
+
return {
|
|
71
|
+
"$": ["dropi-card-product.css"]
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
static get styleUrls() {
|
|
75
|
+
return {
|
|
76
|
+
"$": ["dropi-card-product.css"]
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
static get properties() {
|
|
80
|
+
return {
|
|
81
|
+
"image": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"mutable": false,
|
|
84
|
+
"complexType": {
|
|
85
|
+
"original": "string",
|
|
86
|
+
"resolved": "string",
|
|
87
|
+
"references": {}
|
|
88
|
+
},
|
|
89
|
+
"required": false,
|
|
90
|
+
"optional": false,
|
|
91
|
+
"docs": {
|
|
92
|
+
"tags": [],
|
|
93
|
+
"text": "Product image URL"
|
|
94
|
+
},
|
|
95
|
+
"getter": false,
|
|
96
|
+
"setter": false,
|
|
97
|
+
"reflect": false,
|
|
98
|
+
"attribute": "image",
|
|
99
|
+
"defaultValue": "''"
|
|
100
|
+
},
|
|
101
|
+
"productName": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"mutable": false,
|
|
104
|
+
"complexType": {
|
|
105
|
+
"original": "string",
|
|
106
|
+
"resolved": "string",
|
|
107
|
+
"references": {}
|
|
108
|
+
},
|
|
109
|
+
"required": false,
|
|
110
|
+
"optional": false,
|
|
111
|
+
"docs": {
|
|
112
|
+
"tags": [],
|
|
113
|
+
"text": "Product name"
|
|
114
|
+
},
|
|
115
|
+
"getter": false,
|
|
116
|
+
"setter": false,
|
|
117
|
+
"reflect": false,
|
|
118
|
+
"attribute": "product-name",
|
|
119
|
+
"defaultValue": "''"
|
|
120
|
+
},
|
|
121
|
+
"salePrice": {
|
|
122
|
+
"type": "number",
|
|
123
|
+
"mutable": false,
|
|
124
|
+
"complexType": {
|
|
125
|
+
"original": "number",
|
|
126
|
+
"resolved": "number",
|
|
127
|
+
"references": {}
|
|
128
|
+
},
|
|
129
|
+
"required": false,
|
|
130
|
+
"optional": false,
|
|
131
|
+
"docs": {
|
|
132
|
+
"tags": [],
|
|
133
|
+
"text": "Sale / supplier price (Precio proveedor)"
|
|
134
|
+
},
|
|
135
|
+
"getter": false,
|
|
136
|
+
"setter": false,
|
|
137
|
+
"reflect": false,
|
|
138
|
+
"attribute": "sale-price",
|
|
139
|
+
"defaultValue": "0"
|
|
140
|
+
},
|
|
141
|
+
"suggestedPrice": {
|
|
142
|
+
"type": "number",
|
|
143
|
+
"mutable": false,
|
|
144
|
+
"complexType": {
|
|
145
|
+
"original": "number",
|
|
146
|
+
"resolved": "number",
|
|
147
|
+
"references": {}
|
|
148
|
+
},
|
|
149
|
+
"required": false,
|
|
150
|
+
"optional": false,
|
|
151
|
+
"docs": {
|
|
152
|
+
"tags": [],
|
|
153
|
+
"text": "Suggested price for the dropshipper (Precio sugerido)"
|
|
154
|
+
},
|
|
155
|
+
"getter": false,
|
|
156
|
+
"setter": false,
|
|
157
|
+
"reflect": false,
|
|
158
|
+
"attribute": "suggested-price",
|
|
159
|
+
"defaultValue": "0"
|
|
160
|
+
},
|
|
161
|
+
"currency": {
|
|
162
|
+
"type": "string",
|
|
163
|
+
"mutable": false,
|
|
164
|
+
"complexType": {
|
|
165
|
+
"original": "string",
|
|
166
|
+
"resolved": "string",
|
|
167
|
+
"references": {}
|
|
168
|
+
},
|
|
169
|
+
"required": false,
|
|
170
|
+
"optional": false,
|
|
171
|
+
"docs": {
|
|
172
|
+
"tags": [],
|
|
173
|
+
"text": "Price currency symbol"
|
|
174
|
+
},
|
|
175
|
+
"getter": false,
|
|
176
|
+
"setter": false,
|
|
177
|
+
"reflect": false,
|
|
178
|
+
"attribute": "currency",
|
|
179
|
+
"defaultValue": "'$'"
|
|
180
|
+
},
|
|
181
|
+
"supplier": {
|
|
182
|
+
"type": "string",
|
|
183
|
+
"mutable": false,
|
|
184
|
+
"complexType": {
|
|
185
|
+
"original": "string",
|
|
186
|
+
"resolved": "string",
|
|
187
|
+
"references": {}
|
|
188
|
+
},
|
|
189
|
+
"required": false,
|
|
190
|
+
"optional": false,
|
|
191
|
+
"docs": {
|
|
192
|
+
"tags": [],
|
|
193
|
+
"text": "Supplier / store name"
|
|
194
|
+
},
|
|
195
|
+
"getter": false,
|
|
196
|
+
"setter": false,
|
|
197
|
+
"reflect": false,
|
|
198
|
+
"attribute": "supplier",
|
|
199
|
+
"defaultValue": "''"
|
|
200
|
+
},
|
|
201
|
+
"category": {
|
|
202
|
+
"type": "string",
|
|
203
|
+
"mutable": false,
|
|
204
|
+
"complexType": {
|
|
205
|
+
"original": "string",
|
|
206
|
+
"resolved": "string",
|
|
207
|
+
"references": {}
|
|
208
|
+
},
|
|
209
|
+
"required": false,
|
|
210
|
+
"optional": false,
|
|
211
|
+
"docs": {
|
|
212
|
+
"tags": [],
|
|
213
|
+
"text": "Category label"
|
|
214
|
+
},
|
|
215
|
+
"getter": false,
|
|
216
|
+
"setter": false,
|
|
217
|
+
"reflect": false,
|
|
218
|
+
"attribute": "category",
|
|
219
|
+
"defaultValue": "''"
|
|
220
|
+
},
|
|
221
|
+
"stock": {
|
|
222
|
+
"type": "number",
|
|
223
|
+
"mutable": false,
|
|
224
|
+
"complexType": {
|
|
225
|
+
"original": "number",
|
|
226
|
+
"resolved": "number",
|
|
227
|
+
"references": {}
|
|
228
|
+
},
|
|
229
|
+
"required": false,
|
|
230
|
+
"optional": false,
|
|
231
|
+
"docs": {
|
|
232
|
+
"tags": [],
|
|
233
|
+
"text": "Stock quantity (0 = Agotado)"
|
|
234
|
+
},
|
|
235
|
+
"getter": false,
|
|
236
|
+
"setter": false,
|
|
237
|
+
"reflect": false,
|
|
238
|
+
"attribute": "stock",
|
|
239
|
+
"defaultValue": "0"
|
|
240
|
+
},
|
|
241
|
+
"supplierCategory": {
|
|
242
|
+
"type": "string",
|
|
243
|
+
"mutable": false,
|
|
244
|
+
"complexType": {
|
|
245
|
+
"original": "'verified' | 'premium' | 'exclusive' | ''",
|
|
246
|
+
"resolved": "\"\" | \"exclusive\" | \"premium\" | \"verified\"",
|
|
247
|
+
"references": {}
|
|
248
|
+
},
|
|
249
|
+
"required": false,
|
|
250
|
+
"optional": false,
|
|
251
|
+
"docs": {
|
|
252
|
+
"tags": [],
|
|
253
|
+
"text": "Supplier category for insignia: 'verified' | 'premium' | 'exclusive' | ''"
|
|
254
|
+
},
|
|
255
|
+
"getter": false,
|
|
256
|
+
"setter": false,
|
|
257
|
+
"reflect": false,
|
|
258
|
+
"attribute": "supplier-category",
|
|
259
|
+
"defaultValue": "''"
|
|
260
|
+
},
|
|
261
|
+
"showFavorite": {
|
|
262
|
+
"type": "boolean",
|
|
263
|
+
"mutable": false,
|
|
264
|
+
"complexType": {
|
|
265
|
+
"original": "boolean",
|
|
266
|
+
"resolved": "boolean",
|
|
267
|
+
"references": {}
|
|
268
|
+
},
|
|
269
|
+
"required": false,
|
|
270
|
+
"optional": false,
|
|
271
|
+
"docs": {
|
|
272
|
+
"tags": [],
|
|
273
|
+
"text": "Show favorite button"
|
|
274
|
+
},
|
|
275
|
+
"getter": false,
|
|
276
|
+
"setter": false,
|
|
277
|
+
"reflect": false,
|
|
278
|
+
"attribute": "show-favorite",
|
|
279
|
+
"defaultValue": "true"
|
|
280
|
+
},
|
|
281
|
+
"isFavorite": {
|
|
282
|
+
"type": "boolean",
|
|
283
|
+
"mutable": true,
|
|
284
|
+
"complexType": {
|
|
285
|
+
"original": "boolean",
|
|
286
|
+
"resolved": "boolean",
|
|
287
|
+
"references": {}
|
|
288
|
+
},
|
|
289
|
+
"required": false,
|
|
290
|
+
"optional": false,
|
|
291
|
+
"docs": {
|
|
292
|
+
"tags": [],
|
|
293
|
+
"text": "Is marked as favorite"
|
|
294
|
+
},
|
|
295
|
+
"getter": false,
|
|
296
|
+
"setter": false,
|
|
297
|
+
"reflect": false,
|
|
298
|
+
"attribute": "is-favorite",
|
|
299
|
+
"defaultValue": "false"
|
|
300
|
+
},
|
|
301
|
+
"showAddButton": {
|
|
302
|
+
"type": "boolean",
|
|
303
|
+
"mutable": false,
|
|
304
|
+
"complexType": {
|
|
305
|
+
"original": "boolean",
|
|
306
|
+
"resolved": "boolean",
|
|
307
|
+
"references": {}
|
|
308
|
+
},
|
|
309
|
+
"required": false,
|
|
310
|
+
"optional": false,
|
|
311
|
+
"docs": {
|
|
312
|
+
"tags": [],
|
|
313
|
+
"text": "Show \"Enviar a cliente\" button"
|
|
314
|
+
},
|
|
315
|
+
"getter": false,
|
|
316
|
+
"setter": false,
|
|
317
|
+
"reflect": false,
|
|
318
|
+
"attribute": "show-add-button",
|
|
319
|
+
"defaultValue": "true"
|
|
320
|
+
}
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
static get events() {
|
|
324
|
+
return [{
|
|
325
|
+
"method": "onProductClick",
|
|
326
|
+
"name": "onProductClick",
|
|
327
|
+
"bubbles": true,
|
|
328
|
+
"cancelable": true,
|
|
329
|
+
"composed": true,
|
|
330
|
+
"docs": {
|
|
331
|
+
"tags": [],
|
|
332
|
+
"text": "Emitted when card is clicked \u2014 matches Angular 'onProductClick'"
|
|
333
|
+
},
|
|
334
|
+
"complexType": {
|
|
335
|
+
"original": "void",
|
|
336
|
+
"resolved": "void",
|
|
337
|
+
"references": {}
|
|
338
|
+
}
|
|
339
|
+
}, {
|
|
340
|
+
"method": "changeFavorite",
|
|
341
|
+
"name": "changeFavorite",
|
|
342
|
+
"bubbles": true,
|
|
343
|
+
"cancelable": true,
|
|
344
|
+
"composed": true,
|
|
345
|
+
"docs": {
|
|
346
|
+
"tags": [],
|
|
347
|
+
"text": "Emitted when favorite toggled \u2014 matches Angular 'changeFavorite'"
|
|
348
|
+
},
|
|
349
|
+
"complexType": {
|
|
350
|
+
"original": "boolean",
|
|
351
|
+
"resolved": "boolean",
|
|
352
|
+
"references": {}
|
|
353
|
+
}
|
|
354
|
+
}, {
|
|
355
|
+
"method": "dropiAddProduct",
|
|
356
|
+
"name": "dropiAddProduct",
|
|
357
|
+
"bubbles": true,
|
|
358
|
+
"cancelable": true,
|
|
359
|
+
"composed": true,
|
|
360
|
+
"docs": {
|
|
361
|
+
"tags": [],
|
|
362
|
+
"text": "Emitted when \"Enviar a cliente\" button clicked"
|
|
363
|
+
},
|
|
364
|
+
"complexType": {
|
|
365
|
+
"original": "void",
|
|
366
|
+
"resolved": "void",
|
|
367
|
+
"references": {}
|
|
368
|
+
}
|
|
369
|
+
}, {
|
|
370
|
+
"method": "dropiSupplierClick",
|
|
371
|
+
"name": "dropiSupplierClick",
|
|
372
|
+
"bubbles": true,
|
|
373
|
+
"cancelable": true,
|
|
374
|
+
"composed": true,
|
|
375
|
+
"docs": {
|
|
376
|
+
"tags": [],
|
|
377
|
+
"text": "Emitted when supplier name clicked"
|
|
378
|
+
},
|
|
379
|
+
"complexType": {
|
|
380
|
+
"original": "void",
|
|
381
|
+
"resolved": "void",
|
|
382
|
+
"references": {}
|
|
383
|
+
}
|
|
384
|
+
}];
|
|
385
|
+
}
|
|
386
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
:host { display: block; width: 100%; }
|
|
2
|
+
*, *::before, *::after { box-sizing: border-box; }
|
|
3
|
+
|
|
4
|
+
.card-section {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: space-between;
|
|
8
|
+
gap: var(--Size-4, 16px);
|
|
9
|
+
padding: var(--Size-3, 12px) var(--Size-4, 16px);
|
|
10
|
+
background: var(--Neutral-White, #ffffff);
|
|
11
|
+
border: 1px solid var(--Gray-Gray-100, #e6eaf2);
|
|
12
|
+
border-radius: var(--Border-2, 8px);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.card-section__text { flex: 1; }
|
|
16
|
+
|
|
17
|
+
.card-section__title {
|
|
18
|
+
margin: 0 0 4px;
|
|
19
|
+
font-family: inherit;
|
|
20
|
+
font-weight: var(--font-weight-bold, 700);
|
|
21
|
+
color: var(--Gray-Gray-800, #1f2433);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
h5.card-section__title { font-size: var(--font-size-m, 14px); }
|
|
25
|
+
h6.card-section__title { font-size: var(--font-size-s, 12px); }
|
|
26
|
+
|
|
27
|
+
.card-section__desc {
|
|
28
|
+
margin: 0;
|
|
29
|
+
font-size: var(--font-size-xs, 10px);
|
|
30
|
+
color: var(--Gray-Gray-500, #69738c);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.card-section__control { flex-shrink: 0; }
|
|
34
|
+
|
|
35
|
+
.card-section__dropdown-btn {
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
background: none;
|
|
39
|
+
border: none;
|
|
40
|
+
padding: 0;
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
}
|