@dropi/ui 0.1.26 → 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/scripts/setup.js +38 -2
- 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,379 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export class DropiCarousel {
|
|
3
|
+
el;
|
|
4
|
+
/** Items to display (Array of URLs or objects) */
|
|
5
|
+
value = [];
|
|
6
|
+
/** Active page index */
|
|
7
|
+
page = 0;
|
|
8
|
+
/** Number of items visible per page */
|
|
9
|
+
numVisible = 1;
|
|
10
|
+
/** Number of items to scroll per click */
|
|
11
|
+
numScroll = 1;
|
|
12
|
+
/** Orientation of the carousel */
|
|
13
|
+
orientation = 'horizontal';
|
|
14
|
+
/** Show navigation arrows */
|
|
15
|
+
showNavigators = true;
|
|
16
|
+
/** Show dot indicators */
|
|
17
|
+
showIndicators = true;
|
|
18
|
+
/** Autoplay interval in ms (0 = disabled) */
|
|
19
|
+
autoplayInterval = 0;
|
|
20
|
+
/** Infinite scrolling */
|
|
21
|
+
circular = false;
|
|
22
|
+
parsedValue = [];
|
|
23
|
+
internalPage = 0;
|
|
24
|
+
isAnimating = false;
|
|
25
|
+
totalPages = 0;
|
|
26
|
+
itemsContainer;
|
|
27
|
+
timer;
|
|
28
|
+
pageChange;
|
|
29
|
+
onPage;
|
|
30
|
+
handleValue(val) {
|
|
31
|
+
this.parsedValue = typeof val === 'string' ? JSON.parse(val) : (val || []);
|
|
32
|
+
this.updateTotalPages();
|
|
33
|
+
this.updateTransform();
|
|
34
|
+
}
|
|
35
|
+
handlePage(val) {
|
|
36
|
+
this.internalPage = val;
|
|
37
|
+
this.updateTransform();
|
|
38
|
+
}
|
|
39
|
+
componentWillLoad() {
|
|
40
|
+
if (!this.value || (Array.isArray(this.value) && this.value.length === 0)) {
|
|
41
|
+
const attrValue = this.el.getAttribute('value');
|
|
42
|
+
if (attrValue)
|
|
43
|
+
this.value = attrValue;
|
|
44
|
+
}
|
|
45
|
+
this.handleValue(this.value);
|
|
46
|
+
this.internalPage = this.page;
|
|
47
|
+
}
|
|
48
|
+
componentDidLoad() {
|
|
49
|
+
this.updateTransform();
|
|
50
|
+
if (this.autoplayInterval > 0) {
|
|
51
|
+
this.startAutoplay();
|
|
52
|
+
}
|
|
53
|
+
window.addEventListener('resize', this.onResize);
|
|
54
|
+
}
|
|
55
|
+
disconnectedCallback() {
|
|
56
|
+
this.stopAutoplay();
|
|
57
|
+
window.removeEventListener('resize', this.onResize);
|
|
58
|
+
}
|
|
59
|
+
onResize = () => {
|
|
60
|
+
this.updateTotalPages();
|
|
61
|
+
this.updateTransform();
|
|
62
|
+
};
|
|
63
|
+
startAutoplay() {
|
|
64
|
+
this.timer = setInterval(() => this.navForward(), this.autoplayInterval);
|
|
65
|
+
}
|
|
66
|
+
stopAutoplay() {
|
|
67
|
+
if (this.timer)
|
|
68
|
+
clearInterval(this.timer);
|
|
69
|
+
}
|
|
70
|
+
updateTotalPages() {
|
|
71
|
+
if (!this.parsedValue.length || this.parsedValue.length <= this.numVisible) {
|
|
72
|
+
this.totalPages = 1;
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
const totalItems = this.parsedValue.length;
|
|
76
|
+
const remainingItems = totalItems - this.numVisible;
|
|
77
|
+
this.totalPages = Math.ceil(remainingItems / this.numScroll) + 1;
|
|
78
|
+
}
|
|
79
|
+
updateTransform() {
|
|
80
|
+
if (!this.itemsContainer)
|
|
81
|
+
return;
|
|
82
|
+
const prop = this.orientation === 'vertical' ? 'translateY' : 'translateX';
|
|
83
|
+
const firstItem = this.itemsContainer.querySelector('.dropi-carousel-item');
|
|
84
|
+
if (!firstItem)
|
|
85
|
+
return;
|
|
86
|
+
const itemSize = this.orientation === 'vertical' ? firstItem.offsetHeight : firstItem.offsetWidth;
|
|
87
|
+
const itemsScrolled = this.internalPage * this.numScroll;
|
|
88
|
+
const maxScroll = Math.max(0, this.parsedValue.length - this.numVisible);
|
|
89
|
+
const safeScroll = Math.min(itemsScrolled, maxScroll);
|
|
90
|
+
const translateValue = -(safeScroll * itemSize);
|
|
91
|
+
this.itemsContainer.style.transform = `${prop}(${translateValue}px)`;
|
|
92
|
+
}
|
|
93
|
+
navForward = (e) => {
|
|
94
|
+
if (e)
|
|
95
|
+
e.preventDefault();
|
|
96
|
+
if (this.circular || this.internalPage < this.totalPages - 1) {
|
|
97
|
+
this.isAnimating = true;
|
|
98
|
+
this.internalPage = (this.internalPage + 1) % this.totalPages;
|
|
99
|
+
this.page = this.internalPage;
|
|
100
|
+
this.updateTransform();
|
|
101
|
+
this.pageChange.emit(this.internalPage);
|
|
102
|
+
setTimeout(() => (this.isAnimating = false), 500);
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
navBackward = (e) => {
|
|
106
|
+
if (e)
|
|
107
|
+
e.preventDefault();
|
|
108
|
+
if (this.circular || this.internalPage > 0) {
|
|
109
|
+
this.isAnimating = true;
|
|
110
|
+
this.internalPage = (this.internalPage - 1 + this.totalPages) % this.totalPages;
|
|
111
|
+
this.page = this.internalPage;
|
|
112
|
+
this.updateTransform();
|
|
113
|
+
this.pageChange.emit(this.internalPage);
|
|
114
|
+
setTimeout(() => (this.isAnimating = false), 500);
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
onDotClick(index) {
|
|
118
|
+
this.isAnimating = true;
|
|
119
|
+
this.internalPage = index;
|
|
120
|
+
this.page = this.internalPage;
|
|
121
|
+
this.updateTransform();
|
|
122
|
+
this.pageChange.emit(this.internalPage);
|
|
123
|
+
setTimeout(() => (this.isAnimating = false), 500);
|
|
124
|
+
}
|
|
125
|
+
render() {
|
|
126
|
+
const items = this.parsedValue;
|
|
127
|
+
if (!items.length)
|
|
128
|
+
return null;
|
|
129
|
+
const itemFlexBasis = `${100 / this.numVisible}%`;
|
|
130
|
+
return (h("div", { class: { 'dropi-carousel-container': true, 'vertical': this.orientation === 'vertical' } }, h("div", { class: "dropi-carousel-content" }, this.showNavigators && items.length > this.numVisible && (h("button", { class: "dropi-carousel-nav dropi-carousel-prev", disabled: !this.circular && this.internalPage === 0, onClick: (e) => this.navBackward(e), "aria-label": "Anterior" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" }, h("path", { d: "M14.659 17.5a.833.833 0 0 1-.589-.244l-4.43-4.431a.833.833 0 0 1 0-1.178l4.43-4.431a.834.834 0 0 1 1.179 1.178L11.42 12.25l3.83 3.829a.833.833 0 0 1-.59 1.421Z", fill: "#475066" })))), h("div", { class: "dropi-carousel-items-content" }, h("div", { class: "dropi-carousel-items-container", ref: (el) => (this.itemsContainer = el), style: { transition: this.isAnimating ? 'transform 0.5s ease' : 'none' } }, items.map((item, i) => (h("div", { class: "dropi-carousel-item", style: { flex: `0 0 ${itemFlexBasis}` } }, typeof item === 'string' ? (h("img", { src: item, alt: `Slide ${i + 1}` })) : (h("slot", { name: `item-${i}` }))))))), this.showNavigators && items.length > this.numVisible && (h("button", { class: "dropi-carousel-nav dropi-carousel-next", disabled: !this.circular && this.internalPage >= this.totalPages - 1, onClick: (e) => this.navForward(e), "aria-label": "Siguiente" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" }, h("path", { d: "M9.341 17.5a.833.833 0 0 0 .589-.244l4.43-4.431a.833.833 0 0 0 0-1.178l-4.43-4.431a.834.834 0 0 0-1.179 1.178l3.83 3.829-3.83 3.829a.833.833 0 0 0 .59 1.421Z", fill: "#475066" }))))), this.showIndicators && this.totalPages > 1 && (h("ul", { class: "dropi-carousel-indicators" }, Array.from({ length: this.totalPages }).map((_, i) => (h("li", { class: { active: i === this.internalPage }, onClick: () => this.onDotClick(i) }, h("button", { type: "button", "aria-label": `Página ${i + 1}` }))))))));
|
|
131
|
+
}
|
|
132
|
+
static get is() { return "dropi-carousel"; }
|
|
133
|
+
static get encapsulation() { return "shadow"; }
|
|
134
|
+
static get originalStyleUrls() {
|
|
135
|
+
return {
|
|
136
|
+
"$": ["dropi-carousel.css"]
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
static get styleUrls() {
|
|
140
|
+
return {
|
|
141
|
+
"$": ["dropi-carousel.css"]
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
static get properties() {
|
|
145
|
+
return {
|
|
146
|
+
"value": {
|
|
147
|
+
"type": "string",
|
|
148
|
+
"mutable": false,
|
|
149
|
+
"complexType": {
|
|
150
|
+
"original": "any[] | string",
|
|
151
|
+
"resolved": "any[] | string",
|
|
152
|
+
"references": {}
|
|
153
|
+
},
|
|
154
|
+
"required": false,
|
|
155
|
+
"optional": false,
|
|
156
|
+
"docs": {
|
|
157
|
+
"tags": [],
|
|
158
|
+
"text": "Items to display (Array of URLs or objects)"
|
|
159
|
+
},
|
|
160
|
+
"getter": false,
|
|
161
|
+
"setter": false,
|
|
162
|
+
"reflect": false,
|
|
163
|
+
"attribute": "value",
|
|
164
|
+
"defaultValue": "[]"
|
|
165
|
+
},
|
|
166
|
+
"page": {
|
|
167
|
+
"type": "number",
|
|
168
|
+
"mutable": true,
|
|
169
|
+
"complexType": {
|
|
170
|
+
"original": "number",
|
|
171
|
+
"resolved": "number",
|
|
172
|
+
"references": {}
|
|
173
|
+
},
|
|
174
|
+
"required": false,
|
|
175
|
+
"optional": false,
|
|
176
|
+
"docs": {
|
|
177
|
+
"tags": [],
|
|
178
|
+
"text": "Active page index"
|
|
179
|
+
},
|
|
180
|
+
"getter": false,
|
|
181
|
+
"setter": false,
|
|
182
|
+
"reflect": false,
|
|
183
|
+
"attribute": "page",
|
|
184
|
+
"defaultValue": "0"
|
|
185
|
+
},
|
|
186
|
+
"numVisible": {
|
|
187
|
+
"type": "number",
|
|
188
|
+
"mutable": false,
|
|
189
|
+
"complexType": {
|
|
190
|
+
"original": "number",
|
|
191
|
+
"resolved": "number",
|
|
192
|
+
"references": {}
|
|
193
|
+
},
|
|
194
|
+
"required": false,
|
|
195
|
+
"optional": false,
|
|
196
|
+
"docs": {
|
|
197
|
+
"tags": [],
|
|
198
|
+
"text": "Number of items visible per page"
|
|
199
|
+
},
|
|
200
|
+
"getter": false,
|
|
201
|
+
"setter": false,
|
|
202
|
+
"reflect": false,
|
|
203
|
+
"attribute": "num-visible",
|
|
204
|
+
"defaultValue": "1"
|
|
205
|
+
},
|
|
206
|
+
"numScroll": {
|
|
207
|
+
"type": "number",
|
|
208
|
+
"mutable": false,
|
|
209
|
+
"complexType": {
|
|
210
|
+
"original": "number",
|
|
211
|
+
"resolved": "number",
|
|
212
|
+
"references": {}
|
|
213
|
+
},
|
|
214
|
+
"required": false,
|
|
215
|
+
"optional": false,
|
|
216
|
+
"docs": {
|
|
217
|
+
"tags": [],
|
|
218
|
+
"text": "Number of items to scroll per click"
|
|
219
|
+
},
|
|
220
|
+
"getter": false,
|
|
221
|
+
"setter": false,
|
|
222
|
+
"reflect": false,
|
|
223
|
+
"attribute": "num-scroll",
|
|
224
|
+
"defaultValue": "1"
|
|
225
|
+
},
|
|
226
|
+
"orientation": {
|
|
227
|
+
"type": "string",
|
|
228
|
+
"mutable": false,
|
|
229
|
+
"complexType": {
|
|
230
|
+
"original": "'horizontal' | 'vertical'",
|
|
231
|
+
"resolved": "\"horizontal\" | \"vertical\"",
|
|
232
|
+
"references": {}
|
|
233
|
+
},
|
|
234
|
+
"required": false,
|
|
235
|
+
"optional": false,
|
|
236
|
+
"docs": {
|
|
237
|
+
"tags": [],
|
|
238
|
+
"text": "Orientation of the carousel"
|
|
239
|
+
},
|
|
240
|
+
"getter": false,
|
|
241
|
+
"setter": false,
|
|
242
|
+
"reflect": false,
|
|
243
|
+
"attribute": "orientation",
|
|
244
|
+
"defaultValue": "'horizontal'"
|
|
245
|
+
},
|
|
246
|
+
"showNavigators": {
|
|
247
|
+
"type": "any",
|
|
248
|
+
"mutable": false,
|
|
249
|
+
"complexType": {
|
|
250
|
+
"original": "any",
|
|
251
|
+
"resolved": "any",
|
|
252
|
+
"references": {}
|
|
253
|
+
},
|
|
254
|
+
"required": false,
|
|
255
|
+
"optional": false,
|
|
256
|
+
"docs": {
|
|
257
|
+
"tags": [],
|
|
258
|
+
"text": "Show navigation arrows"
|
|
259
|
+
},
|
|
260
|
+
"getter": false,
|
|
261
|
+
"setter": false,
|
|
262
|
+
"reflect": false,
|
|
263
|
+
"attribute": "show-navigators",
|
|
264
|
+
"defaultValue": "true"
|
|
265
|
+
},
|
|
266
|
+
"showIndicators": {
|
|
267
|
+
"type": "any",
|
|
268
|
+
"mutable": false,
|
|
269
|
+
"complexType": {
|
|
270
|
+
"original": "any",
|
|
271
|
+
"resolved": "any",
|
|
272
|
+
"references": {}
|
|
273
|
+
},
|
|
274
|
+
"required": false,
|
|
275
|
+
"optional": false,
|
|
276
|
+
"docs": {
|
|
277
|
+
"tags": [],
|
|
278
|
+
"text": "Show dot indicators"
|
|
279
|
+
},
|
|
280
|
+
"getter": false,
|
|
281
|
+
"setter": false,
|
|
282
|
+
"reflect": false,
|
|
283
|
+
"attribute": "show-indicators",
|
|
284
|
+
"defaultValue": "true"
|
|
285
|
+
},
|
|
286
|
+
"autoplayInterval": {
|
|
287
|
+
"type": "number",
|
|
288
|
+
"mutable": false,
|
|
289
|
+
"complexType": {
|
|
290
|
+
"original": "number",
|
|
291
|
+
"resolved": "number",
|
|
292
|
+
"references": {}
|
|
293
|
+
},
|
|
294
|
+
"required": false,
|
|
295
|
+
"optional": false,
|
|
296
|
+
"docs": {
|
|
297
|
+
"tags": [],
|
|
298
|
+
"text": "Autoplay interval in ms (0 = disabled)"
|
|
299
|
+
},
|
|
300
|
+
"getter": false,
|
|
301
|
+
"setter": false,
|
|
302
|
+
"reflect": false,
|
|
303
|
+
"attribute": "autoplay-interval",
|
|
304
|
+
"defaultValue": "0"
|
|
305
|
+
},
|
|
306
|
+
"circular": {
|
|
307
|
+
"type": "any",
|
|
308
|
+
"mutable": false,
|
|
309
|
+
"complexType": {
|
|
310
|
+
"original": "any",
|
|
311
|
+
"resolved": "any",
|
|
312
|
+
"references": {}
|
|
313
|
+
},
|
|
314
|
+
"required": false,
|
|
315
|
+
"optional": false,
|
|
316
|
+
"docs": {
|
|
317
|
+
"tags": [],
|
|
318
|
+
"text": "Infinite scrolling"
|
|
319
|
+
},
|
|
320
|
+
"getter": false,
|
|
321
|
+
"setter": false,
|
|
322
|
+
"reflect": false,
|
|
323
|
+
"attribute": "circular",
|
|
324
|
+
"defaultValue": "false"
|
|
325
|
+
}
|
|
326
|
+
};
|
|
327
|
+
}
|
|
328
|
+
static get states() {
|
|
329
|
+
return {
|
|
330
|
+
"parsedValue": {},
|
|
331
|
+
"internalPage": {},
|
|
332
|
+
"isAnimating": {},
|
|
333
|
+
"totalPages": {}
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
static get events() {
|
|
337
|
+
return [{
|
|
338
|
+
"method": "pageChange",
|
|
339
|
+
"name": "pageChange",
|
|
340
|
+
"bubbles": true,
|
|
341
|
+
"cancelable": true,
|
|
342
|
+
"composed": true,
|
|
343
|
+
"docs": {
|
|
344
|
+
"tags": [],
|
|
345
|
+
"text": ""
|
|
346
|
+
},
|
|
347
|
+
"complexType": {
|
|
348
|
+
"original": "number",
|
|
349
|
+
"resolved": "number",
|
|
350
|
+
"references": {}
|
|
351
|
+
}
|
|
352
|
+
}, {
|
|
353
|
+
"method": "onPage",
|
|
354
|
+
"name": "onPage",
|
|
355
|
+
"bubbles": true,
|
|
356
|
+
"cancelable": true,
|
|
357
|
+
"composed": true,
|
|
358
|
+
"docs": {
|
|
359
|
+
"tags": [],
|
|
360
|
+
"text": ""
|
|
361
|
+
},
|
|
362
|
+
"complexType": {
|
|
363
|
+
"original": "any",
|
|
364
|
+
"resolved": "any",
|
|
365
|
+
"references": {}
|
|
366
|
+
}
|
|
367
|
+
}];
|
|
368
|
+
}
|
|
369
|
+
static get elementRef() { return "el"; }
|
|
370
|
+
static get watchers() {
|
|
371
|
+
return [{
|
|
372
|
+
"propName": "value",
|
|
373
|
+
"methodName": "handleValue"
|
|
374
|
+
}, {
|
|
375
|
+
"propName": "page",
|
|
376
|
+
"methodName": "handlePage"
|
|
377
|
+
}];
|
|
378
|
+
}
|
|
379
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
*, *::before, *::after {
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.container-dropi-checkbox {
|
|
10
|
+
display: inline-block;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.check {
|
|
14
|
+
width: 20px;
|
|
15
|
+
height: 20px;
|
|
16
|
+
border-radius: var(--Border-1, 4px);
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
transition:
|
|
19
|
+
background-color 0.3s ease-in-out,
|
|
20
|
+
border-style 0.3s ease-in-out;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.noCheck {
|
|
24
|
+
border-style: solid;
|
|
25
|
+
border-width: 2px;
|
|
26
|
+
border-color: var(--Gray-Gray-200, #c3c9d9);
|
|
27
|
+
display: flex;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
align-items: center;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.noCheck svg {
|
|
33
|
+
visibility: hidden;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.isCheck {
|
|
37
|
+
display: flex;
|
|
38
|
+
background-color: var(--Primary-Primary-500, #f49a3d);
|
|
39
|
+
justify-content: center;
|
|
40
|
+
align-items: center;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.disabled {
|
|
44
|
+
background-color: var(--Gray-Gray-50, #f7f8fa);
|
|
45
|
+
border-color: var(--Gray-Gray-100, #e6eaf2);
|
|
46
|
+
cursor: not-allowed;
|
|
47
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* @component dropi-checkbox
|
|
4
|
+
* A styled checkbox that emits change events.
|
|
5
|
+
* Supports form association via native `<input type="checkbox">` internals.
|
|
6
|
+
*/
|
|
7
|
+
export class DropiCheckbox {
|
|
8
|
+
/** Whether the checkbox is checked */
|
|
9
|
+
checked = false;
|
|
10
|
+
/** Whether the checkbox is disabled */
|
|
11
|
+
disabled = false;
|
|
12
|
+
/** Emitted when the checked state changes */
|
|
13
|
+
onChange;
|
|
14
|
+
changeState() {
|
|
15
|
+
if (this.disabled)
|
|
16
|
+
return;
|
|
17
|
+
this.checked = !this.checked;
|
|
18
|
+
this.onChange.emit(this.checked);
|
|
19
|
+
}
|
|
20
|
+
render() {
|
|
21
|
+
return (h("div", { key: 'fdc1c54733617c0dab1ae11050d90650dc3eba91', class: "container-dropi-checkbox", onClick: () => this.changeState() }, h("div", { key: '6329c1a53e8b9f85ea26ca01afb920583570e85f', class: {
|
|
22
|
+
check: true,
|
|
23
|
+
isCheck: this.checked,
|
|
24
|
+
noCheck: !this.checked,
|
|
25
|
+
disabled: this.disabled,
|
|
26
|
+
} }, h("svg", { key: '50b1ebd160e1ee6b28ef23651f1e12afc9406f8a', xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none" }, h("path", { key: '518070eaa2902d4cdc5e905f8a80d06b3d044f3d', d: "M20.5991 5.69251L9.08325 17.2075C9.00583 17.2852 8.91382 17.3469 8.8125 17.389C8.71118 17.4311 8.60255 17.4527 8.49283 17.4527C8.38312 17.4527 8.27449 17.4311 8.17317 17.389C8.07185 17.3469 7.97984 17.2852 7.90242 17.2075L3.44908 12.75C3.37166 12.6723 3.27965 12.6106 3.17833 12.5685C3.07701 12.5264 2.96838 12.5048 2.85867 12.5048C2.74896 12.5048 2.64032 12.5264 2.53901 12.5685C2.43769 12.6106 2.34568 12.6723 2.26825 12.75C2.19052 12.8274 2.12884 12.9194 2.08676 13.0208C2.04467 13.1221 2.02301 13.2307 2.02301 13.3404C2.02301 13.4501 2.04467 13.5588 2.08676 13.6601C2.12884 13.7614 2.19052 13.8534 2.26825 13.9308L6.72325 18.385C7.19321 18.8541 7.83008 19.1175 8.49408 19.1175C9.15809 19.1175 9.79496 18.8541 10.2649 18.385L21.7799 6.87251C21.8575 6.7951 21.9191 6.70314 21.9611 6.6019C22.0031 6.50065 22.0247 6.39212 22.0247 6.28251C22.0247 6.17289 22.0031 6.06436 21.9611 5.96312C21.9191 5.86188 21.8575 5.76992 21.7799 5.69251C21.7025 5.61478 21.6105 5.5531 21.5092 5.51101C21.4078 5.46893 21.2992 5.44727 21.1895 5.44727C21.0798 5.44727 20.9712 5.46893 20.8698 5.51101C20.7685 5.5531 20.6765 5.61478 20.5991 5.69251Z", fill: "#FFFFFF" })))));
|
|
27
|
+
}
|
|
28
|
+
static get is() { return "dropi-checkbox"; }
|
|
29
|
+
static get encapsulation() { return "shadow"; }
|
|
30
|
+
static get formAssociated() { return true; }
|
|
31
|
+
static get originalStyleUrls() {
|
|
32
|
+
return {
|
|
33
|
+
"$": ["dropi-checkbox.css"]
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
static get styleUrls() {
|
|
37
|
+
return {
|
|
38
|
+
"$": ["dropi-checkbox.css"]
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
static get properties() {
|
|
42
|
+
return {
|
|
43
|
+
"checked": {
|
|
44
|
+
"type": "boolean",
|
|
45
|
+
"mutable": true,
|
|
46
|
+
"complexType": {
|
|
47
|
+
"original": "boolean",
|
|
48
|
+
"resolved": "boolean",
|
|
49
|
+
"references": {}
|
|
50
|
+
},
|
|
51
|
+
"required": false,
|
|
52
|
+
"optional": false,
|
|
53
|
+
"docs": {
|
|
54
|
+
"tags": [],
|
|
55
|
+
"text": "Whether the checkbox is checked"
|
|
56
|
+
},
|
|
57
|
+
"getter": false,
|
|
58
|
+
"setter": false,
|
|
59
|
+
"reflect": true,
|
|
60
|
+
"attribute": "checked",
|
|
61
|
+
"defaultValue": "false"
|
|
62
|
+
},
|
|
63
|
+
"disabled": {
|
|
64
|
+
"type": "boolean",
|
|
65
|
+
"mutable": false,
|
|
66
|
+
"complexType": {
|
|
67
|
+
"original": "boolean",
|
|
68
|
+
"resolved": "boolean",
|
|
69
|
+
"references": {}
|
|
70
|
+
},
|
|
71
|
+
"required": false,
|
|
72
|
+
"optional": false,
|
|
73
|
+
"docs": {
|
|
74
|
+
"tags": [],
|
|
75
|
+
"text": "Whether the checkbox is disabled"
|
|
76
|
+
},
|
|
77
|
+
"getter": false,
|
|
78
|
+
"setter": false,
|
|
79
|
+
"reflect": true,
|
|
80
|
+
"attribute": "disabled",
|
|
81
|
+
"defaultValue": "false"
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
static get events() {
|
|
86
|
+
return [{
|
|
87
|
+
"method": "onChange",
|
|
88
|
+
"name": "onChange",
|
|
89
|
+
"bubbles": true,
|
|
90
|
+
"cancelable": true,
|
|
91
|
+
"composed": true,
|
|
92
|
+
"docs": {
|
|
93
|
+
"tags": [],
|
|
94
|
+
"text": "Emitted when the checked state changes"
|
|
95
|
+
},
|
|
96
|
+
"complexType": {
|
|
97
|
+
"original": "boolean",
|
|
98
|
+
"resolved": "boolean",
|
|
99
|
+
"references": {}
|
|
100
|
+
}
|
|
101
|
+
}];
|
|
102
|
+
}
|
|
103
|
+
}
|
package/dist/collection/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.css
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
:host { display: block; width: 100%; }
|
|
2
|
+
*, *::before, *::after { box-sizing: border-box; }
|
|
3
|
+
|
|
4
|
+
.csl__search {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
gap: var(--Size-2, 8px);
|
|
8
|
+
padding: var(--Size-2, 8px) var(--Size-3, 12px);
|
|
9
|
+
border: 1px solid var(--Gray-Gray-200, #c3c9d9);
|
|
10
|
+
border-radius: var(--Border-2, 8px);
|
|
11
|
+
margin-bottom: var(--Size-2, 8px);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.csl__search-input {
|
|
15
|
+
flex: 1; border: none; outline: none;
|
|
16
|
+
font-size: var(--font-size-s, 12px); font-family: inherit;
|
|
17
|
+
color: var(--Gray-Gray-700, #32394d); background: transparent;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.csl__clear { display: flex; background: none; border: none; padding: 0; cursor: pointer; }
|
|
21
|
+
|
|
22
|
+
.csl__list { display: flex; flex-direction: column; }
|
|
23
|
+
|
|
24
|
+
.csl__item {
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
gap: var(--Size-2, 8px);
|
|
28
|
+
padding: var(--Size-2, 8px) var(--Size-3, 12px);
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
border-radius: var(--Border-1, 4px);
|
|
31
|
+
transition: background 0.15s;
|
|
32
|
+
}
|
|
33
|
+
.csl__item:hover { background: var(--Gray-Gray-50, #f7f8fa); }
|
|
34
|
+
|
|
35
|
+
.csl__icon { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
|
|
36
|
+
|
|
37
|
+
.csl__label { font-size: var(--font-size-s, 12px); color: var(--Gray-Gray-700, #32394d); flex: 1; }
|
|
38
|
+
|
|
39
|
+
.csl__empty {
|
|
40
|
+
padding: var(--Size-4, 16px);
|
|
41
|
+
text-align: center;
|
|
42
|
+
font-size: var(--font-size-s, 12px);
|
|
43
|
+
color: var(--Gray-Gray-400, #858ea6);
|
|
44
|
+
}
|