@dropi/ui 0.1.18 → 0.1.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/icons/ilustration/bg-warning.svg +3 -0
- package/assets/icons/ilustration/default.svg +4 -0
- package/assets/icons/ilustration/error.svg +10 -0
- package/assets/icons/ilustration/exclusive.svg +9 -0
- package/assets/icons/ilustration/info.svg +10 -0
- package/assets/icons/ilustration/loading.svg +4 -0
- package/assets/icons/ilustration/love.svg +9 -0
- package/assets/icons/ilustration/premium-new.svg +14 -0
- package/assets/icons/ilustration/premium.svg +5 -0
- package/assets/icons/ilustration/sorry.svg +4 -0
- package/assets/icons/ilustration/success.svg +11 -0
- package/assets/icons/ilustration/verified-new.svg +9 -0
- package/assets/icons/ilustration/verified.svg +4 -0
- package/assets/icons/ilustration/warning.svg +9 -0
- package/assets/lottie-files/loading.json +1 -0
- package/dist/cjs/dropi-accordion.cjs.entry.js +3 -3
- package/dist/cjs/dropi-alert-modal.cjs.entry.js +72 -0
- package/dist/cjs/dropi-alert.cjs.entry.js +58 -0
- package/dist/cjs/dropi-avatars.cjs.entry.js +31 -0
- package/dist/cjs/dropi-badge.cjs.entry.js +2 -2
- package/dist/cjs/dropi-banner-external.cjs.entry.js +47 -0
- package/dist/cjs/dropi-breadcrumb.cjs.entry.js +48 -0
- package/dist/cjs/dropi-button.cjs.entry.js +7 -5
- package/dist/cjs/dropi-card-checkbox.cjs.entry.js +45 -0
- package/dist/cjs/dropi-card-product.cjs.entry.js +59 -0
- package/dist/cjs/dropi-card-section.cjs.entry.js +38 -0
- package/dist/cjs/dropi-carousel.cjs.entry.js +83 -0
- package/dist/cjs/dropi-checkbox-selection-list.cjs.entry.js +71 -0
- package/dist/cjs/dropi-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/dropi-chips.cjs.entry.js +30 -0
- package/dist/cjs/dropi-city-selector.cjs.entry.js +85 -0
- package/dist/cjs/dropi-color-picker.cjs.entry.js +69 -0
- package/dist/cjs/dropi-country-flags.cjs.entry.js +37 -0
- package/dist/cjs/dropi-country-selector.cjs.entry.js +164 -0
- package/dist/cjs/dropi-date-picker-range.cjs.entry.js +115 -0
- package/dist/cjs/dropi-date-picker.cjs.entry.js +205 -0
- package/dist/cjs/dropi-drawer.cjs.entry.js +50 -0
- package/dist/cjs/dropi-dropdown.cjs.entry.js +58 -0
- package/dist/cjs/dropi-empty-state.cjs.entry.js +9 -5
- package/dist/cjs/dropi-favorite-button.cjs.entry.js +27 -0
- package/dist/cjs/dropi-file-upload-progress-bar.cjs.entry.js +52 -0
- package/dist/cjs/dropi-file-upload.cjs.entry.js +84 -0
- package/dist/cjs/dropi-icon.cjs.entry.js +2 -2
- package/dist/cjs/dropi-ilustration-icon.cjs.entry.js +39 -0
- package/dist/cjs/dropi-image-miniature.cjs.entry.js +44 -0
- package/dist/cjs/dropi-image-overlay.cjs.entry.js +62 -0
- package/dist/cjs/dropi-input.cjs.entry.js +10 -10
- package/dist/cjs/dropi-languages-selector.cjs.entry.js +57 -0
- package/dist/cjs/dropi-logo.cjs.entry.js +27 -0
- package/dist/cjs/dropi-lottie-loader.cjs.entry.js +27 -0
- package/dist/cjs/dropi-media-player.cjs.entry.js +102 -0
- package/dist/cjs/dropi-modal.cjs.entry.js +12 -9
- package/dist/cjs/dropi-navbar.cjs.entry.js +52 -0
- package/dist/cjs/dropi-otp-send-code.cjs.entry.js +92 -0
- package/dist/cjs/dropi-paginator.cjs.entry.js +7 -5
- package/dist/cjs/dropi-phone-input.cjs.entry.js +84 -0
- package/dist/cjs/dropi-radio-button.cjs.entry.js +3 -3
- package/dist/cjs/dropi-radio-selection-list.cjs.entry.js +56 -0
- package/dist/cjs/dropi-read-more.cjs.entry.js +36 -0
- package/dist/cjs/dropi-search.cjs.entry.js +110 -0
- package/dist/cjs/dropi-select.cjs.entry.js +7 -7
- package/dist/cjs/dropi-sidebar.cjs.entry.js +67 -0
- package/dist/cjs/dropi-simple-stepper.cjs.entry.js +51 -0
- package/dist/cjs/dropi-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/dropi-steps.cjs.entry.js +50 -0
- package/dist/cjs/dropi-switch.cjs.entry.js +3 -3
- package/dist/cjs/dropi-table.cjs.entry.js +124 -0
- package/dist/cjs/dropi-tabs.cjs.entry.js +3 -3
- package/dist/cjs/dropi-tag-type-product.cjs.entry.js +19 -0
- package/dist/cjs/dropi-tag.cjs.entry.js +3 -3
- package/dist/cjs/dropi-text-area.cjs.entry.js +8 -8
- package/dist/cjs/dropi-time-line.cjs.entry.js +34 -0
- package/dist/cjs/dropi-toast.cjs.entry.js +2 -2
- package/dist/cjs/dropi-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/dropi-ui.cjs.js +2 -2
- package/dist/cjs/dropi-vertical-steps.cjs.entry.js +55 -0
- package/dist/cjs/dropi-youtube-lazy-video.cjs.entry.js +33 -0
- package/dist/cjs/{index-B6R6Ojma.js → index-DcOH2ZjX.js} +3 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +44 -1
- package/dist/collection/components/dropi-accordion/dropi-accordion.js +1 -1
- package/dist/collection/components/dropi-alert/dropi-alert.css +134 -0
- package/dist/collection/components/dropi-alert/dropi-alert.js +305 -0
- package/dist/collection/components/dropi-alert-modal/dropi-alert-modal.css +73 -0
- package/dist/collection/components/dropi-alert-modal/dropi-alert-modal.js +395 -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.js +1 -1
- package/dist/collection/components/dropi-banner-external/dropi-banner-external.css +56 -0
- package/dist/collection/components/dropi-banner-external/dropi-banner-external.js +179 -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 +4 -2
- package/dist/collection/components/dropi-button/dropi-button.js +24 -2
- package/dist/collection/components/dropi-card-checkbox/dropi-card-checkbox.css +90 -0
- package/dist/collection/components/dropi-card-checkbox/dropi-card-checkbox.js +219 -0
- package/dist/collection/components/dropi-card-product/dropi-card-product.css +158 -0
- package/dist/collection/components/dropi-card-product/dropi-card-product.js +353 -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 +103 -0
- package/dist/collection/components/dropi-carousel/dropi-carousel.js +277 -0
- package/dist/collection/components/dropi-checkbox/dropi-checkbox.js +2 -2
- 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 +245 -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 +156 -0
- package/dist/collection/components/dropi-city-selector/dropi-city-selector.js +213 -0
- package/dist/collection/components/dropi-color-picker/dropi-color-picker.css +183 -0
- package/dist/collection/components/dropi-color-picker/dropi-color-picker.js +235 -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 +164 -0
- package/dist/collection/components/dropi-country-selector/dropi-country-selector.js +327 -0
- package/dist/collection/components/dropi-date-picker/dropi-date-picker.css +150 -0
- package/dist/collection/components/dropi-date-picker/dropi-date-picker.js +434 -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 +107 -0
- package/dist/collection/components/dropi-drawer/dropi-drawer.js +198 -0
- package/dist/collection/components/dropi-dropdown/dropi-dropdown.css +51 -0
- package/dist/collection/components/dropi-dropdown/dropi-dropdown.js +184 -0
- package/dist/collection/components/dropi-empty-state/dropi-empty-state.css +1 -0
- package/dist/collection/components/dropi-empty-state/dropi-empty-state.js +45 -1
- 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 +66 -0
- package/dist/collection/components/dropi-file-upload/dropi-file-upload.js +257 -0
- package/dist/collection/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.css +111 -0
- package/dist/collection/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.js +198 -0
- package/dist/collection/components/dropi-icon/dropi-icon.js +1 -1
- package/dist/collection/components/dropi-ilustration-icon/dropi-ilustration-icon.css +91 -0
- package/dist/collection/components/dropi-ilustration-icon/dropi-ilustration-icon.js +150 -0
- package/dist/collection/components/dropi-image-miniature/dropi-image-miniature.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 +123 -0
- package/dist/collection/components/dropi-image-overlay/dropi-image-overlay.js +155 -0
- package/dist/collection/components/dropi-input/dropi-input.css +11 -0
- package/dist/collection/components/dropi-input/dropi-input.js +4 -4
- package/dist/collection/components/dropi-languages-selector/dropi-languages-selector.css +79 -0
- package/dist/collection/components/dropi-languages-selector/dropi-languages-selector.js +154 -0
- package/dist/collection/components/dropi-logo/dropi-logo.css +26 -0
- package/dist/collection/components/dropi-logo/dropi-logo.js +96 -0
- package/dist/collection/components/dropi-lottie-loader/dropi-lottie-loader.css +50 -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 +127 -0
- package/dist/collection/components/dropi-media-player/dropi-media-player.js +294 -0
- package/dist/collection/components/dropi-modal/dropi-modal.css +9 -3
- package/dist/collection/components/dropi-modal/dropi-modal.js +10 -7
- package/dist/collection/components/dropi-navbar/dropi-navbar.css +166 -0
- package/dist/collection/components/dropi-navbar/dropi-navbar.js +286 -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 +15 -12
- package/dist/collection/components/dropi-paginator/dropi-paginator.js +24 -2
- package/dist/collection/components/dropi-phone-input/dropi-phone-input.css +152 -0
- package/dist/collection/components/dropi-phone-input/dropi-phone-input.js +272 -0
- package/dist/collection/components/dropi-radio-button/dropi-radio-button.js +1 -1
- 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 +209 -0
- package/dist/collection/components/dropi-read-more/dropi-read-more.css +28 -0
- package/dist/collection/components/dropi-read-more/dropi-read-more.js +110 -0
- package/dist/collection/components/dropi-search/dropi-search.css +112 -0
- package/dist/collection/components/dropi-search/dropi-search.js +392 -0
- package/dist/collection/components/dropi-select/dropi-select.js +1 -1
- package/dist/collection/components/dropi-sidebar/dropi-sidebar.css +117 -0
- package/dist/collection/components/dropi-sidebar/dropi-sidebar.js +233 -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 +172 -0
- package/dist/collection/components/dropi-steps/dropi-steps.css +95 -0
- package/dist/collection/components/dropi-steps/dropi-steps.js +145 -0
- package/dist/collection/components/dropi-switch/dropi-switch.js +1 -1
- package/dist/collection/components/dropi-table/dropi-table.css +80 -0
- package/dist/collection/components/dropi-table/dropi-table.js +333 -0
- package/dist/collection/components/dropi-tabs/dropi-tabs.js +1 -1
- package/dist/collection/components/dropi-tag/dropi-tag.css +1 -2
- package/dist/collection/components/dropi-tag/dropi-tag.js +1 -1
- package/dist/collection/components/dropi-tag-type-product/dropi-tag-type-product.css +14 -0
- package/dist/collection/components/dropi-tag-type-product/dropi-tag-type-product.js +48 -0
- package/dist/collection/components/dropi-text-area/dropi-text-area.css +2 -2
- package/dist/collection/components/dropi-text-area/dropi-text-area.js +2 -2
- 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.js +1 -1
- package/dist/collection/components/dropi-tooltip/dropi-tooltip.js +1 -1
- 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/components/dropi-accordion.js +1 -1
- package/dist/components/dropi-alert-modal.d.ts +11 -0
- package/dist/components/dropi-alert-modal.js +1 -0
- package/dist/components/dropi-alert.d.ts +11 -0
- package/dist/components/dropi-alert.js +1 -0
- package/dist/components/dropi-avatars.d.ts +11 -0
- package/dist/components/dropi-avatars.js +1 -0
- package/dist/components/dropi-badge.js +1 -1
- package/dist/components/dropi-banner-external.d.ts +11 -0
- package/dist/components/dropi-banner-external.js +1 -0
- package/dist/components/dropi-breadcrumb.d.ts +11 -0
- package/dist/components/dropi-breadcrumb.js +1 -0
- package/dist/components/dropi-button.js +1 -1
- package/dist/components/dropi-card-checkbox.d.ts +11 -0
- package/dist/components/dropi-card-checkbox.js +1 -0
- package/dist/components/dropi-card-product.d.ts +11 -0
- package/dist/components/dropi-card-product.js +1 -0
- package/dist/components/dropi-card-section.d.ts +11 -0
- package/dist/components/dropi-card-section.js +1 -0
- package/dist/components/dropi-carousel.d.ts +11 -0
- package/dist/components/dropi-carousel.js +1 -0
- package/dist/components/dropi-checkbox-selection-list.d.ts +11 -0
- package/dist/components/dropi-checkbox-selection-list.js +1 -0
- package/dist/components/dropi-checkbox.js +1 -1
- package/dist/components/dropi-chips.d.ts +11 -0
- package/dist/components/dropi-chips.js +1 -0
- package/dist/components/dropi-city-selector.d.ts +11 -0
- package/dist/components/dropi-city-selector.js +1 -0
- package/dist/components/dropi-color-picker.d.ts +11 -0
- package/dist/components/dropi-color-picker.js +1 -0
- package/dist/components/dropi-country-flags.d.ts +11 -0
- package/dist/components/dropi-country-flags.js +1 -0
- package/dist/components/dropi-country-selector.d.ts +11 -0
- package/dist/components/dropi-country-selector.js +1 -0
- package/dist/components/dropi-date-picker-range.d.ts +11 -0
- package/dist/components/dropi-date-picker-range.js +1 -0
- package/dist/components/dropi-date-picker.d.ts +11 -0
- package/dist/components/dropi-date-picker.js +1 -0
- package/dist/components/dropi-drawer.d.ts +11 -0
- package/dist/components/dropi-drawer.js +1 -0
- package/dist/components/dropi-dropdown.d.ts +11 -0
- package/dist/components/dropi-dropdown.js +1 -0
- package/dist/components/dropi-empty-state.js +1 -1
- package/dist/components/dropi-favorite-button.d.ts +11 -0
- package/dist/components/dropi-favorite-button.js +1 -0
- package/dist/components/dropi-file-upload-progress-bar.d.ts +11 -0
- package/dist/components/dropi-file-upload-progress-bar.js +1 -0
- package/dist/components/dropi-file-upload.d.ts +11 -0
- package/dist/components/dropi-file-upload.js +1 -0
- package/dist/components/dropi-icon.js +1 -1
- package/dist/components/dropi-ilustration-icon.d.ts +11 -0
- package/dist/components/dropi-ilustration-icon.js +1 -0
- package/dist/components/dropi-image-miniature.d.ts +11 -0
- package/dist/components/dropi-image-miniature.js +1 -0
- package/dist/components/dropi-image-overlay.d.ts +11 -0
- package/dist/components/dropi-image-overlay.js +1 -0
- package/dist/components/dropi-input.js +1 -1
- package/dist/components/dropi-languages-selector.d.ts +11 -0
- package/dist/components/dropi-languages-selector.js +1 -0
- package/dist/components/dropi-logo.d.ts +11 -0
- package/dist/components/dropi-logo.js +1 -0
- package/dist/components/dropi-lottie-loader.d.ts +11 -0
- package/dist/components/dropi-lottie-loader.js +1 -0
- package/dist/components/dropi-media-player.d.ts +11 -0
- package/dist/components/dropi-media-player.js +1 -0
- package/dist/components/dropi-modal.js +1 -1
- package/dist/components/dropi-navbar.d.ts +11 -0
- package/dist/components/dropi-navbar.js +1 -0
- package/dist/components/dropi-otp-send-code.d.ts +11 -0
- package/dist/components/dropi-otp-send-code.js +1 -0
- package/dist/components/dropi-paginator.js +1 -1
- package/dist/components/dropi-phone-input.d.ts +11 -0
- package/dist/components/dropi-phone-input.js +1 -0
- package/dist/components/dropi-radio-button.js +1 -1
- package/dist/components/dropi-radio-selection-list.d.ts +11 -0
- package/dist/components/dropi-radio-selection-list.js +1 -0
- package/dist/components/dropi-read-more.d.ts +11 -0
- package/dist/components/dropi-read-more.js +1 -0
- package/dist/components/dropi-search.d.ts +11 -0
- package/dist/components/dropi-search.js +1 -0
- package/dist/components/dropi-select.js +1 -1
- package/dist/components/dropi-sidebar.d.ts +11 -0
- package/dist/components/dropi-sidebar.js +1 -0
- package/dist/components/dropi-simple-stepper.d.ts +11 -0
- package/dist/components/dropi-simple-stepper.js +1 -0
- package/dist/components/dropi-steps.d.ts +11 -0
- package/dist/components/dropi-steps.js +1 -0
- package/dist/components/dropi-switch.js +1 -1
- package/dist/components/dropi-table.d.ts +11 -0
- package/dist/components/dropi-table.js +1 -0
- package/dist/components/dropi-tabs.js +1 -1
- package/dist/components/dropi-tag-type-product.d.ts +11 -0
- package/dist/components/dropi-tag-type-product.js +1 -0
- package/dist/components/dropi-tag.js +1 -1
- package/dist/components/dropi-text-area.js +1 -1
- package/dist/components/dropi-time-line.d.ts +11 -0
- package/dist/components/dropi-time-line.js +1 -0
- package/dist/components/dropi-toast.js +1 -1
- package/dist/components/dropi-tooltip.js +1 -1
- package/dist/components/dropi-vertical-steps.d.ts +11 -0
- package/dist/components/dropi-vertical-steps.js +1 -0
- package/dist/components/dropi-youtube-lazy-video.d.ts +11 -0
- package/dist/components/dropi-youtube-lazy-video.js +1 -0
- package/dist/components/index.js +1 -1
- package/dist/components/p-BY_J-4Sm.js +1 -0
- package/dist/components/p-CYCV-5qV.js +1 -0
- package/dist/components/p-D0ZJcRZn.js +1 -0
- package/dist/components/p-DUPOnSiL.js +1 -0
- package/dist/components/p-DUX_WvqW.js +1 -0
- package/dist/components/{p-ChOXWKmI.js → p-wO1yy0Zr.js} +1 -1
- package/dist/dropi-ui/dropi-ui.esm.js +1 -1
- package/dist/dropi-ui/p-053ebb91.entry.js +1 -0
- package/dist/dropi-ui/p-0acd32e6.entry.js +1 -0
- package/dist/dropi-ui/p-0e88a543.entry.js +1 -0
- package/dist/dropi-ui/p-0f2f5f75.entry.js +1 -0
- package/dist/dropi-ui/p-131d87ac.entry.js +1 -0
- package/dist/dropi-ui/p-1af4719d.entry.js +1 -0
- package/dist/dropi-ui/p-1e8f6d4a.entry.js +1 -0
- package/dist/dropi-ui/p-22132b1a.entry.js +1 -0
- package/dist/dropi-ui/p-2c1aaf6f.entry.js +1 -0
- package/dist/dropi-ui/p-2e9b87a9.entry.js +1 -0
- package/dist/dropi-ui/p-3414a414.entry.js +1 -0
- package/dist/dropi-ui/p-34ad54a1.entry.js +1 -0
- package/dist/dropi-ui/p-3531378b.entry.js +1 -0
- package/dist/dropi-ui/p-3983a7aa.entry.js +1 -0
- package/dist/dropi-ui/p-40e91337.entry.js +1 -0
- package/dist/dropi-ui/{p-42179ae4.entry.js → p-4a8646e5.entry.js} +1 -1
- package/dist/dropi-ui/p-4be64bf0.entry.js +1 -0
- package/dist/dropi-ui/p-4ec17510.entry.js +1 -0
- package/dist/dropi-ui/p-5023eef0.entry.js +1 -0
- package/dist/dropi-ui/p-51a97b1a.entry.js +1 -0
- package/dist/dropi-ui/p-52796d84.entry.js +1 -0
- package/dist/dropi-ui/p-53a5bd7b.entry.js +1 -0
- package/dist/dropi-ui/p-5425f941.entry.js +1 -0
- package/dist/dropi-ui/p-58d0bf7a.entry.js +1 -0
- package/dist/dropi-ui/p-59d3bd9b.entry.js +1 -0
- package/dist/dropi-ui/p-5e957631.entry.js +1 -0
- package/dist/dropi-ui/p-64cbf4ea.entry.js +1 -0
- package/dist/dropi-ui/p-68080534.entry.js +1 -0
- package/dist/dropi-ui/{p-e44242e2.entry.js → p-6da6b97e.entry.js} +1 -1
- package/dist/dropi-ui/p-6df57f25.entry.js +1 -0
- package/dist/dropi-ui/p-7c916570.entry.js +1 -0
- package/dist/dropi-ui/p-7e95462a.entry.js +1 -0
- package/dist/dropi-ui/{p-6031ac9d.entry.js → p-80089042.entry.js} +1 -1
- package/dist/dropi-ui/p-8768bb11.entry.js +1 -0
- package/dist/dropi-ui/p-896f2900.entry.js +1 -0
- package/dist/dropi-ui/p-89ac1ff2.entry.js +1 -0
- package/dist/dropi-ui/p-8ce79c69.entry.js +1 -0
- package/dist/dropi-ui/p-8e809670.entry.js +1 -0
- package/dist/dropi-ui/p-93b207b7.entry.js +1 -0
- package/dist/dropi-ui/p-983f72ad.entry.js +1 -0
- package/dist/dropi-ui/p-98babb78.entry.js +1 -0
- package/dist/dropi-ui/p-9fc53d50.entry.js +1 -0
- package/dist/dropi-ui/p-Tbza12Gt.js +2 -0
- package/dist/dropi-ui/p-a20705fe.entry.js +1 -0
- package/dist/dropi-ui/p-a72da98f.entry.js +1 -0
- package/dist/dropi-ui/p-a876d57c.entry.js +1 -0
- package/dist/dropi-ui/p-b1b0f938.entry.js +1 -0
- package/dist/dropi-ui/p-b2e176b1.entry.js +1 -0
- package/dist/dropi-ui/p-b41c8a6c.entry.js +1 -0
- package/dist/dropi-ui/p-b890fd5b.entry.js +1 -0
- package/dist/dropi-ui/p-bf5a53ef.entry.js +1 -0
- package/dist/dropi-ui/{p-4d582d58.entry.js → p-c0677661.entry.js} +1 -1
- package/dist/dropi-ui/p-c2562a1c.entry.js +1 -0
- package/dist/dropi-ui/p-c2b5d0fb.entry.js +1 -0
- package/dist/dropi-ui/p-c4d4396b.entry.js +1 -0
- package/dist/dropi-ui/p-c9ebd31b.entry.js +1 -0
- package/dist/dropi-ui/p-cecfb68e.entry.js +1 -0
- package/dist/dropi-ui/p-d0b47e2e.entry.js +1 -0
- package/dist/dropi-ui/p-dcefef51.entry.js +1 -0
- package/dist/dropi-ui/p-e4b7e15f.entry.js +1 -0
- package/dist/dropi-ui/{p-b0d3442e.entry.js → p-e7f4ed25.entry.js} +1 -1
- package/dist/dropi-ui/p-f1d69b15.entry.js +1 -0
- package/dist/esm/dropi-accordion.entry.js +3 -3
- package/dist/esm/dropi-alert-modal.entry.js +70 -0
- package/dist/esm/dropi-alert.entry.js +56 -0
- package/dist/esm/dropi-avatars.entry.js +29 -0
- package/dist/esm/dropi-badge.entry.js +2 -2
- package/dist/esm/dropi-banner-external.entry.js +45 -0
- package/dist/esm/dropi-breadcrumb.entry.js +46 -0
- package/dist/esm/dropi-button.entry.js +7 -5
- package/dist/esm/dropi-card-checkbox.entry.js +43 -0
- package/dist/esm/dropi-card-product.entry.js +57 -0
- package/dist/esm/dropi-card-section.entry.js +36 -0
- package/dist/esm/dropi-carousel.entry.js +81 -0
- package/dist/esm/dropi-checkbox-selection-list.entry.js +69 -0
- package/dist/esm/dropi-checkbox.entry.js +4 -4
- package/dist/esm/dropi-chips.entry.js +28 -0
- package/dist/esm/dropi-city-selector.entry.js +83 -0
- package/dist/esm/dropi-color-picker.entry.js +67 -0
- package/dist/esm/dropi-country-flags.entry.js +35 -0
- package/dist/esm/dropi-country-selector.entry.js +162 -0
- package/dist/esm/dropi-date-picker-range.entry.js +113 -0
- package/dist/esm/dropi-date-picker.entry.js +203 -0
- package/dist/esm/dropi-drawer.entry.js +48 -0
- package/dist/esm/dropi-dropdown.entry.js +56 -0
- package/dist/esm/dropi-empty-state.entry.js +9 -5
- package/dist/esm/dropi-favorite-button.entry.js +25 -0
- package/dist/esm/dropi-file-upload-progress-bar.entry.js +50 -0
- package/dist/esm/dropi-file-upload.entry.js +82 -0
- package/dist/esm/dropi-icon.entry.js +2 -2
- package/dist/esm/dropi-ilustration-icon.entry.js +37 -0
- package/dist/esm/dropi-image-miniature.entry.js +42 -0
- package/dist/esm/dropi-image-overlay.entry.js +60 -0
- package/dist/esm/dropi-input.entry.js +10 -10
- package/dist/esm/dropi-languages-selector.entry.js +55 -0
- package/dist/esm/dropi-logo.entry.js +25 -0
- package/dist/esm/dropi-lottie-loader.entry.js +25 -0
- package/dist/esm/dropi-media-player.entry.js +100 -0
- package/dist/esm/dropi-modal.entry.js +12 -9
- package/dist/esm/dropi-navbar.entry.js +50 -0
- package/dist/esm/dropi-otp-send-code.entry.js +90 -0
- package/dist/esm/dropi-paginator.entry.js +7 -5
- package/dist/esm/dropi-phone-input.entry.js +82 -0
- package/dist/esm/dropi-radio-button.entry.js +3 -3
- package/dist/esm/dropi-radio-selection-list.entry.js +54 -0
- package/dist/esm/dropi-read-more.entry.js +34 -0
- package/dist/esm/dropi-search.entry.js +108 -0
- package/dist/esm/dropi-select.entry.js +7 -7
- package/dist/esm/dropi-sidebar.entry.js +65 -0
- package/dist/esm/dropi-simple-stepper.entry.js +49 -0
- package/dist/esm/dropi-skeleton.entry.js +1 -1
- package/dist/esm/dropi-steps.entry.js +48 -0
- package/dist/esm/dropi-switch.entry.js +3 -3
- package/dist/esm/dropi-table.entry.js +122 -0
- package/dist/esm/dropi-tabs.entry.js +3 -3
- package/dist/esm/dropi-tag-type-product.entry.js +17 -0
- package/dist/esm/dropi-tag.entry.js +3 -3
- package/dist/esm/dropi-text-area.entry.js +8 -8
- package/dist/esm/dropi-time-line.entry.js +32 -0
- package/dist/esm/dropi-toast.entry.js +2 -2
- package/dist/esm/dropi-tooltip.entry.js +2 -2
- package/dist/esm/dropi-ui.js +3 -3
- package/dist/esm/dropi-vertical-steps.entry.js +53 -0
- package/dist/esm/dropi-youtube-lazy-video.entry.js +31 -0
- package/dist/esm/{index-Twbb5MNM.js → index-Tbza12Gt.js} +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/dropi-alert/dropi-alert.d.ts +35 -0
- package/dist/types/components/dropi-alert-modal/dropi-alert-modal.d.ts +48 -0
- package/dist/types/components/dropi-avatars/dropi-avatars.d.ts +17 -0
- package/dist/types/components/dropi-banner-external/dropi-banner-external.d.ts +30 -0
- package/dist/types/components/dropi-breadcrumb/dropi-breadcrumb.d.ts +31 -0
- package/dist/types/components/dropi-button/dropi-button.d.ts +2 -0
- package/dist/types/components/dropi-card-checkbox/dropi-card-checkbox.d.ts +33 -0
- package/dist/types/components/dropi-card-product/dropi-card-product.d.ts +39 -0
- package/dist/types/components/dropi-card-section/dropi-card-section.d.ts +22 -0
- package/dist/types/components/dropi-carousel/dropi-carousel.d.ts +40 -0
- package/dist/types/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.d.ts +37 -0
- package/dist/types/components/dropi-chips/dropi-chips.d.ts +23 -0
- package/dist/types/components/dropi-city-selector/dropi-city-selector.d.ts +46 -0
- package/dist/types/components/dropi-color-picker/dropi-color-picker.d.ts +31 -0
- package/dist/types/components/dropi-country-flags/dropi-country-flags.d.ts +19 -0
- package/dist/types/components/dropi-country-selector/dropi-country-selector.d.ts +39 -0
- package/dist/types/components/dropi-date-picker/dropi-date-picker.d.ts +47 -0
- package/dist/types/components/dropi-date-picker-range/dropi-date-picker-range.d.ts +50 -0
- package/dist/types/components/dropi-drawer/dropi-drawer.d.ts +25 -0
- package/dist/types/components/dropi-dropdown/dropi-dropdown.d.ts +28 -0
- package/dist/types/components/dropi-empty-state/dropi-empty-state.d.ts +4 -0
- package/dist/types/components/dropi-favorite-button/dropi-favorite-button.d.ts +14 -0
- package/dist/types/components/dropi-file-upload/dropi-file-upload.d.ts +37 -0
- package/dist/types/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.d.ts +25 -0
- package/dist/types/components/dropi-ilustration-icon/dropi-ilustration-icon.d.ts +24 -0
- package/dist/types/components/dropi-image-miniature/dropi-image-miniature.d.ts +23 -0
- package/dist/types/components/dropi-image-overlay/dropi-image-overlay.d.ts +26 -0
- package/dist/types/components/dropi-languages-selector/dropi-languages-selector.d.ts +31 -0
- package/dist/types/components/dropi-logo/dropi-logo.d.ts +14 -0
- package/dist/types/components/dropi-lottie-loader/dropi-lottie-loader.d.ts +15 -0
- package/dist/types/components/dropi-media-player/dropi-media-player.d.ts +44 -0
- package/dist/types/components/dropi-navbar/dropi-navbar.d.ts +40 -0
- package/dist/types/components/dropi-otp-send-code/dropi-otp-send-code.d.ts +33 -0
- package/dist/types/components/dropi-paginator/dropi-paginator.d.ts +2 -0
- package/dist/types/components/dropi-phone-input/dropi-phone-input.d.ts +34 -0
- package/dist/types/components/dropi-radio-selection-list/dropi-radio-selection-list.d.ts +34 -0
- package/dist/types/components/dropi-read-more/dropi-read-more.d.ts +17 -0
- package/dist/types/components/dropi-search/dropi-search.d.ts +51 -0
- package/dist/types/components/dropi-sidebar/dropi-sidebar.d.ts +35 -0
- package/dist/types/components/dropi-simple-stepper/dropi-simple-stepper.d.ts +20 -0
- package/dist/types/components/dropi-steps/dropi-steps.d.ts +21 -0
- package/dist/types/components/dropi-table/dropi-table.d.ts +57 -0
- package/dist/types/components/dropi-tag-type-product/dropi-tag-type-product.d.ts +9 -0
- package/dist/types/components/dropi-time-line/dropi-time-line.d.ts +18 -0
- package/dist/types/components/dropi-vertical-steps/dropi-vertical-steps.d.ts +24 -0
- package/dist/types/components/dropi-youtube-lazy-video/dropi-youtube-lazy-video.d.ts +19 -0
- package/dist/types/components.d.ts +5705 -874
- package/package.json +1 -1
- package/scripts/setup.js +2 -0
- package/dist/components/p-NCyvfOs2.js +0 -1
- package/dist/dropi-ui/p-082b7039.entry.js +0 -1
- package/dist/dropi-ui/p-09c38a49.entry.js +0 -1
- package/dist/dropi-ui/p-1739d20c.entry.js +0 -1
- package/dist/dropi-ui/p-26dbae0d.entry.js +0 -1
- package/dist/dropi-ui/p-63e969da.entry.js +0 -1
- package/dist/dropi-ui/p-65fa8558.entry.js +0 -1
- package/dist/dropi-ui/p-6d15d32f.entry.js +0 -1
- package/dist/dropi-ui/p-79466fec.entry.js +0 -1
- package/dist/dropi-ui/p-Twbb5MNM.js +0 -2
- package/dist/dropi-ui/p-a5650d8f.entry.js +0 -1
- package/dist/dropi-ui/p-eb7f9a57.entry.js +0 -1
- package/dist/dropi-ui/p-ecda6e19.entry.js +0 -1
- package/dist/dropi-ui/p-f0e1e0f6.entry.js +0 -1
- package/dist/dropi-ui/p-f283f41d.entry.js +0 -1
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* @component dropi-steps
|
|
4
|
+
* Horizontal stepper showing step progress with number/title/description.
|
|
5
|
+
*/
|
|
6
|
+
export class DropiSteps {
|
|
7
|
+
/** Total number of steps */
|
|
8
|
+
stepsCount = 3;
|
|
9
|
+
/** Show step number inside the circle */
|
|
10
|
+
showNumberOfStep = true;
|
|
11
|
+
/** Active/current step index (1-based) */
|
|
12
|
+
currentStep = 1;
|
|
13
|
+
/** Labels for each step. Pass as JSON string or array */
|
|
14
|
+
stepLabels = [];
|
|
15
|
+
get parsedLabels() {
|
|
16
|
+
if (typeof this.stepLabels === 'string') {
|
|
17
|
+
try {
|
|
18
|
+
return JSON.parse(this.stepLabels);
|
|
19
|
+
}
|
|
20
|
+
catch {
|
|
21
|
+
return [];
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return this.stepLabels || [];
|
|
25
|
+
}
|
|
26
|
+
stepState(index) {
|
|
27
|
+
if (index < this.currentStep)
|
|
28
|
+
return 'completed';
|
|
29
|
+
if (index === this.currentStep)
|
|
30
|
+
return 'focus';
|
|
31
|
+
return 'pending';
|
|
32
|
+
}
|
|
33
|
+
render() {
|
|
34
|
+
const labels = this.parsedLabels;
|
|
35
|
+
const steps = Array.from({ length: this.stepsCount }, (_, i) => i + 1);
|
|
36
|
+
return (h("div", { key: '95573c2ac185f7fc63fa804a03873499ba296e5c', class: "stepper" }, steps.map((step) => {
|
|
37
|
+
const state = this.stepState(step);
|
|
38
|
+
const label = labels[step - 1];
|
|
39
|
+
const isLast = step === this.stepsCount;
|
|
40
|
+
return (h("div", { class: "stepper__step", key: step }, h("div", { class: "stepper__circle-wrap" }, h("div", { class: { 'stepper__circle': true, [`stepper__circle--${state}`]: true } }, state === 'completed' ? (h("dropi-icon", { name: "Check", width: "12px", height: "12px", color: "Neutral-White" })) : (this.showNumberOfStep ? h("span", null, step) : null)), !isLast && h("div", { class: { 'stepper__line': true, 'stepper__line--done': state === 'completed' } })), label && (h("div", { class: "stepper__label" }, label.title && h("span", { class: "stepper__title" }, label.title), label.description && h("span", { class: "stepper__desc" }, label.description)))));
|
|
41
|
+
})));
|
|
42
|
+
}
|
|
43
|
+
static get is() { return "dropi-steps"; }
|
|
44
|
+
static get encapsulation() { return "shadow"; }
|
|
45
|
+
static get originalStyleUrls() {
|
|
46
|
+
return {
|
|
47
|
+
"$": ["dropi-steps.css"]
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
static get styleUrls() {
|
|
51
|
+
return {
|
|
52
|
+
"$": ["dropi-steps.css"]
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
static get properties() {
|
|
56
|
+
return {
|
|
57
|
+
"stepsCount": {
|
|
58
|
+
"type": "number",
|
|
59
|
+
"mutable": false,
|
|
60
|
+
"complexType": {
|
|
61
|
+
"original": "number",
|
|
62
|
+
"resolved": "number",
|
|
63
|
+
"references": {}
|
|
64
|
+
},
|
|
65
|
+
"required": false,
|
|
66
|
+
"optional": false,
|
|
67
|
+
"docs": {
|
|
68
|
+
"tags": [],
|
|
69
|
+
"text": "Total number of steps"
|
|
70
|
+
},
|
|
71
|
+
"getter": false,
|
|
72
|
+
"setter": false,
|
|
73
|
+
"reflect": false,
|
|
74
|
+
"attribute": "steps-count",
|
|
75
|
+
"defaultValue": "3"
|
|
76
|
+
},
|
|
77
|
+
"showNumberOfStep": {
|
|
78
|
+
"type": "boolean",
|
|
79
|
+
"mutable": false,
|
|
80
|
+
"complexType": {
|
|
81
|
+
"original": "boolean",
|
|
82
|
+
"resolved": "boolean",
|
|
83
|
+
"references": {}
|
|
84
|
+
},
|
|
85
|
+
"required": false,
|
|
86
|
+
"optional": false,
|
|
87
|
+
"docs": {
|
|
88
|
+
"tags": [],
|
|
89
|
+
"text": "Show step number inside the circle"
|
|
90
|
+
},
|
|
91
|
+
"getter": false,
|
|
92
|
+
"setter": false,
|
|
93
|
+
"reflect": false,
|
|
94
|
+
"attribute": "show-number-of-step",
|
|
95
|
+
"defaultValue": "true"
|
|
96
|
+
},
|
|
97
|
+
"currentStep": {
|
|
98
|
+
"type": "number",
|
|
99
|
+
"mutable": false,
|
|
100
|
+
"complexType": {
|
|
101
|
+
"original": "number",
|
|
102
|
+
"resolved": "number",
|
|
103
|
+
"references": {}
|
|
104
|
+
},
|
|
105
|
+
"required": false,
|
|
106
|
+
"optional": false,
|
|
107
|
+
"docs": {
|
|
108
|
+
"tags": [],
|
|
109
|
+
"text": "Active/current step index (1-based)"
|
|
110
|
+
},
|
|
111
|
+
"getter": false,
|
|
112
|
+
"setter": false,
|
|
113
|
+
"reflect": false,
|
|
114
|
+
"attribute": "current-step",
|
|
115
|
+
"defaultValue": "1"
|
|
116
|
+
},
|
|
117
|
+
"stepLabels": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"mutable": false,
|
|
120
|
+
"complexType": {
|
|
121
|
+
"original": "StepLabel[] | string",
|
|
122
|
+
"resolved": "StepLabel[] | string",
|
|
123
|
+
"references": {
|
|
124
|
+
"StepLabel": {
|
|
125
|
+
"location": "local",
|
|
126
|
+
"path": "/Users/mac-ti/Documents/dropi/dropi-ui/src/components/dropi-steps/dropi-steps.tsx",
|
|
127
|
+
"id": "src/components/dropi-steps/dropi-steps.tsx::StepLabel"
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"required": false,
|
|
132
|
+
"optional": false,
|
|
133
|
+
"docs": {
|
|
134
|
+
"tags": [],
|
|
135
|
+
"text": "Labels for each step. Pass as JSON string or array"
|
|
136
|
+
},
|
|
137
|
+
"getter": false,
|
|
138
|
+
"setter": false,
|
|
139
|
+
"reflect": false,
|
|
140
|
+
"attribute": "step-labels",
|
|
141
|
+
"defaultValue": "[]"
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
}
|
|
@@ -16,7 +16,7 @@ export class DropiSwitch {
|
|
|
16
16
|
this.dropiChange.emit(this.isChecked);
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (h("label", { key: '
|
|
19
|
+
return (h("label", { key: 'f02520c1b71af187ddfb766e4bac4e16482bb5cc', class: "toggle-switch" }, h("input", { key: '13b41ec9b7f69512be6d556f1946a3506d9557a3', type: "checkbox", checked: this.isChecked, disabled: this.disabled, onChange: (e) => this.onToggleChange(e) }), h("span", { key: '0bb19ad9767c1e7c5956ef834228a6a2406c225c', class: "slider" })));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "dropi-switch"; }
|
|
22
22
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
:host { display: block; width: 100%; }
|
|
2
|
+
*, *::before, *::after { box-sizing: border-box; }
|
|
3
|
+
|
|
4
|
+
.table-wrap {
|
|
5
|
+
width: 100%;
|
|
6
|
+
overflow-x: auto;
|
|
7
|
+
border: 1px solid var(--Gray-Gray-100, #eceef4);
|
|
8
|
+
border-radius: var(--Border-2, 8px);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.table {
|
|
12
|
+
width: 100%;
|
|
13
|
+
border-collapse: collapse;
|
|
14
|
+
font-size: var(--font-size-s, 12px);
|
|
15
|
+
color: var(--Gray-Gray-700, #32394d);
|
|
16
|
+
background: var(--Neutral-White, #fff);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* Header */
|
|
20
|
+
.table__th {
|
|
21
|
+
padding: var(--Size-3, 12px) var(--Size-3, 12px);
|
|
22
|
+
background: var(--Gray-Gray-50, #f7f8fa);
|
|
23
|
+
font-weight: var(--font-weight-bold, 700);
|
|
24
|
+
color: var(--Gray-Gray-600, #475066);
|
|
25
|
+
font-size: var(--font-size-xs, 10px);
|
|
26
|
+
text-transform: uppercase;
|
|
27
|
+
letter-spacing: 0.5px;
|
|
28
|
+
white-space: nowrap;
|
|
29
|
+
border-bottom: 1px solid var(--Gray-Gray-100, #eceef4);
|
|
30
|
+
user-select: none;
|
|
31
|
+
}
|
|
32
|
+
.table__th--check { width: 40px; }
|
|
33
|
+
.table__th--sortable { cursor: pointer; }
|
|
34
|
+
.table__th--sortable:hover { background: var(--Gray-Gray-100, #eceef4); }
|
|
35
|
+
|
|
36
|
+
.table__th-inner {
|
|
37
|
+
display: inline-flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
gap: 4px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* Body */
|
|
43
|
+
.table__tr {
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
transition: background 0.15s;
|
|
46
|
+
}
|
|
47
|
+
.table__tr:hover { background: var(--Gray-Gray-50, #f7f8fa); }
|
|
48
|
+
.table__tr--selected { background: var(--Primary-Primary-50, #fff5eb); }
|
|
49
|
+
|
|
50
|
+
.table--striped .table__tr:nth-child(even) { background: var(--Gray-Gray-50, #f7f8fa); }
|
|
51
|
+
.table--striped .table__tr:nth-child(even):hover { background: var(--Gray-Gray-100, #eceef4); }
|
|
52
|
+
|
|
53
|
+
.table__td {
|
|
54
|
+
padding: var(--Size-3, 12px);
|
|
55
|
+
border-bottom: 1px solid var(--Gray-Gray-100, #eceef4);
|
|
56
|
+
vertical-align: middle;
|
|
57
|
+
}
|
|
58
|
+
.table__td--check { width: 40px; }
|
|
59
|
+
|
|
60
|
+
.table__td--empty {
|
|
61
|
+
text-align: center;
|
|
62
|
+
padding: var(--Size-8, 48px) var(--Size-4, 16px);
|
|
63
|
+
color: var(--Gray-Gray-400, #858ea6);
|
|
64
|
+
}
|
|
65
|
+
.table__td--empty p { margin: var(--Size-2, 8px) 0 0; }
|
|
66
|
+
|
|
67
|
+
/* Skeleton */
|
|
68
|
+
.skeleton {
|
|
69
|
+
height: 14px;
|
|
70
|
+
background: linear-gradient(90deg, var(--Gray-Gray-100, #eceef4) 25%, var(--Gray-Gray-50, #f7f8fa) 50%, var(--Gray-Gray-100, #eceef4) 75%);
|
|
71
|
+
background-size: 200% 100%;
|
|
72
|
+
animation: shimmer 1.4s infinite;
|
|
73
|
+
border-radius: var(--Border-1, 4px);
|
|
74
|
+
}
|
|
75
|
+
.skeleton--sm { width: 20px; }
|
|
76
|
+
|
|
77
|
+
@keyframes shimmer {
|
|
78
|
+
0% { background-position: 200% 0; }
|
|
79
|
+
100% { background-position: -200% 0; }
|
|
80
|
+
}
|
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* @component dropi-table
|
|
4
|
+
* Data table with sortable columns, row selection, and empty state.
|
|
5
|
+
* Pass columns and rows as JSON strings or arrays.
|
|
6
|
+
*/
|
|
7
|
+
export class DropiTable {
|
|
8
|
+
/** Column definitions (array or JSON string) */
|
|
9
|
+
columns = [];
|
|
10
|
+
/** Row data (array or JSON string) */
|
|
11
|
+
rows = [];
|
|
12
|
+
/** Enable row selection (checkboxes) */
|
|
13
|
+
selectable = false;
|
|
14
|
+
/** Show loading skeleton */
|
|
15
|
+
loading = false;
|
|
16
|
+
/** Text shown when no rows */
|
|
17
|
+
emptyMessage = 'No hay datos disponibles';
|
|
18
|
+
/** Stripe alternate rows */
|
|
19
|
+
striped = false;
|
|
20
|
+
parsedColumns = [];
|
|
21
|
+
parsedRows = [];
|
|
22
|
+
sortKey = '';
|
|
23
|
+
sortDir = null;
|
|
24
|
+
selectedKeys = new Set();
|
|
25
|
+
/** Emitted when sort changes. e.detail = { key, dir } */
|
|
26
|
+
dropiSort;
|
|
27
|
+
/** Emitted when selection changes. e.detail = selected row indices */
|
|
28
|
+
dropiSelection;
|
|
29
|
+
/** Emitted when a row is clicked. e.detail = { row, index } */
|
|
30
|
+
dropiRowClick;
|
|
31
|
+
columnsChanged(val) {
|
|
32
|
+
this.parsedColumns = typeof val === 'string' ? JSON.parse(val) : (val || []);
|
|
33
|
+
}
|
|
34
|
+
rowsChanged(val) {
|
|
35
|
+
this.parsedRows = typeof val === 'string' ? JSON.parse(val) : (val || []);
|
|
36
|
+
this.selectedKeys = new Set();
|
|
37
|
+
}
|
|
38
|
+
componentWillLoad() {
|
|
39
|
+
this.columnsChanged(this.columns);
|
|
40
|
+
this.rowsChanged(this.rows);
|
|
41
|
+
}
|
|
42
|
+
get sortedRows() {
|
|
43
|
+
if (!this.sortKey || !this.sortDir)
|
|
44
|
+
return this.parsedRows;
|
|
45
|
+
const key = this.sortKey;
|
|
46
|
+
const dir = this.sortDir === 'asc' ? 1 : -1;
|
|
47
|
+
return [...this.parsedRows].sort((a, b) => {
|
|
48
|
+
const av = a[key] ?? '';
|
|
49
|
+
const bv = b[key] ?? '';
|
|
50
|
+
if (av < bv)
|
|
51
|
+
return -dir;
|
|
52
|
+
if (av > bv)
|
|
53
|
+
return dir;
|
|
54
|
+
return 0;
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
handleSort(col) {
|
|
58
|
+
if (!col.sortable)
|
|
59
|
+
return;
|
|
60
|
+
if (this.sortKey === col.key) {
|
|
61
|
+
this.sortDir = this.sortDir === 'asc' ? 'desc' : this.sortDir === 'desc' ? null : 'asc';
|
|
62
|
+
if (this.sortDir === null)
|
|
63
|
+
this.sortKey = '';
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
this.sortKey = col.key;
|
|
67
|
+
this.sortDir = 'asc';
|
|
68
|
+
}
|
|
69
|
+
this.dropiSort.emit({ key: this.sortKey, dir: this.sortDir });
|
|
70
|
+
}
|
|
71
|
+
toggleRow(idx) {
|
|
72
|
+
const next = new Set(this.selectedKeys);
|
|
73
|
+
if (next.has(idx))
|
|
74
|
+
next.delete(idx);
|
|
75
|
+
else
|
|
76
|
+
next.add(idx);
|
|
77
|
+
this.selectedKeys = next;
|
|
78
|
+
this.dropiSelection.emit(Array.from(next));
|
|
79
|
+
}
|
|
80
|
+
toggleAll(checked) {
|
|
81
|
+
this.selectedKeys = checked
|
|
82
|
+
? new Set(this.sortedRows.map((_, i) => i))
|
|
83
|
+
: new Set();
|
|
84
|
+
this.dropiSelection.emit(Array.from(this.selectedKeys));
|
|
85
|
+
}
|
|
86
|
+
sortIcon(col) {
|
|
87
|
+
if (!col.sortable)
|
|
88
|
+
return null;
|
|
89
|
+
if (this.sortKey !== col.key) {
|
|
90
|
+
return h("dropi-icon", { name: "Sort", width: "12px", height: "12px", color: "Gray-Gray-300" });
|
|
91
|
+
}
|
|
92
|
+
return this.sortDir === 'asc'
|
|
93
|
+
? h("dropi-icon", { name: "Arrow-Up-2", width: "12px", height: "12px", color: "Primary-Primary-500" })
|
|
94
|
+
: h("dropi-icon", { name: "Arrow-Down-2", width: "12px", height: "12px", color: "Primary-Primary-500" });
|
|
95
|
+
}
|
|
96
|
+
render() {
|
|
97
|
+
const rows = this.sortedRows;
|
|
98
|
+
const allSelected = rows.length > 0 && this.selectedKeys.size === rows.length;
|
|
99
|
+
return (h("div", { key: '3e06da209d1f71b8a4a250f4bcd8a8213f34781d', class: "table-wrap" }, h("table", { key: '20056c30e2652f2a405eeb00954dd7b9c9b5924b', class: { 'table': true, 'table--striped': this.striped } }, h("thead", { key: '1a1ea1914f81d1ef8814f202de4d60308801dc1d' }, h("tr", { key: '22447d7fef0cf22c27c6249570c454d44b0865d3' }, this.selectable && (h("th", { key: 'd51aa876d97e01840a5adc34a5ec53f30fc2cac6', class: "table__th table__th--check" }, h("dropi-checkbox", { key: '192639cf8599dc5f3b095092a403509050e43efa', checked: allSelected, onDropiChange: (e) => this.toggleAll(e.detail) }))), this.parsedColumns.map(col => (h("th", { class: {
|
|
100
|
+
'table__th': true,
|
|
101
|
+
'table__th--sortable': !!col.sortable,
|
|
102
|
+
}, style: { width: col.width, textAlign: col.align || 'left' }, onClick: () => this.handleSort(col) }, h("span", { class: "table__th-inner" }, col.label, this.sortIcon(col))))))), h("tbody", { key: '93f65647369b59f913b381f541a18a215e8e0e9a' }, this.loading ? (Array.from({ length: 5 }).map(() => (h("tr", { class: "table__tr--skeleton" }, this.selectable && h("td", { class: "table__td" }, h("div", { class: "skeleton skeleton--sm" })), this.parsedColumns.map(() => (h("td", { class: "table__td" }, h("div", { class: "skeleton" })))))))) : rows.length === 0 ? (h("tr", null, h("td", { class: "table__td table__td--empty", colSpan: this.parsedColumns.length + (this.selectable ? 1 : 0) }, h("dropi-icon", { name: "Document", width: "24px", height: "24px", color: "Gray-Gray-300" }), h("p", null, this.emptyMessage)))) : (rows.map((row, i) => (h("tr", { class: {
|
|
103
|
+
'table__tr': true,
|
|
104
|
+
'table__tr--selected': this.selectedKeys.has(i),
|
|
105
|
+
}, onClick: () => this.dropiRowClick.emit({ row, index: i }) }, this.selectable && (h("td", { class: "table__td table__td--check", onClick: (e) => e.stopPropagation() }, h("dropi-checkbox", { checked: this.selectedKeys.has(i), onDropiChange: () => this.toggleRow(i) }))), this.parsedColumns.map(col => (h("td", { class: "table__td", style: { textAlign: col.align || 'left' } }, row[col.key] ?? '—')))))))))));
|
|
106
|
+
}
|
|
107
|
+
static get is() { return "dropi-table"; }
|
|
108
|
+
static get encapsulation() { return "shadow"; }
|
|
109
|
+
static get originalStyleUrls() {
|
|
110
|
+
return {
|
|
111
|
+
"$": ["dropi-table.css"]
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
static get styleUrls() {
|
|
115
|
+
return {
|
|
116
|
+
"$": ["dropi-table.css"]
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
static get properties() {
|
|
120
|
+
return {
|
|
121
|
+
"columns": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"mutable": false,
|
|
124
|
+
"complexType": {
|
|
125
|
+
"original": "TableColumn[] | string",
|
|
126
|
+
"resolved": "TableColumn[] | string",
|
|
127
|
+
"references": {
|
|
128
|
+
"TableColumn": {
|
|
129
|
+
"location": "local",
|
|
130
|
+
"path": "/Users/mac-ti/Documents/dropi/dropi-ui/src/components/dropi-table/dropi-table.tsx",
|
|
131
|
+
"id": "src/components/dropi-table/dropi-table.tsx::TableColumn"
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"required": false,
|
|
136
|
+
"optional": false,
|
|
137
|
+
"docs": {
|
|
138
|
+
"tags": [],
|
|
139
|
+
"text": "Column definitions (array or JSON string)"
|
|
140
|
+
},
|
|
141
|
+
"getter": false,
|
|
142
|
+
"setter": false,
|
|
143
|
+
"reflect": false,
|
|
144
|
+
"attribute": "columns",
|
|
145
|
+
"defaultValue": "[]"
|
|
146
|
+
},
|
|
147
|
+
"rows": {
|
|
148
|
+
"type": "string",
|
|
149
|
+
"mutable": false,
|
|
150
|
+
"complexType": {
|
|
151
|
+
"original": "TableRow[] | string",
|
|
152
|
+
"resolved": "TableRow[] | string",
|
|
153
|
+
"references": {
|
|
154
|
+
"TableRow": {
|
|
155
|
+
"location": "local",
|
|
156
|
+
"path": "/Users/mac-ti/Documents/dropi/dropi-ui/src/components/dropi-table/dropi-table.tsx",
|
|
157
|
+
"id": "src/components/dropi-table/dropi-table.tsx::TableRow"
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"required": false,
|
|
162
|
+
"optional": false,
|
|
163
|
+
"docs": {
|
|
164
|
+
"tags": [],
|
|
165
|
+
"text": "Row data (array or JSON string)"
|
|
166
|
+
},
|
|
167
|
+
"getter": false,
|
|
168
|
+
"setter": false,
|
|
169
|
+
"reflect": false,
|
|
170
|
+
"attribute": "rows",
|
|
171
|
+
"defaultValue": "[]"
|
|
172
|
+
},
|
|
173
|
+
"selectable": {
|
|
174
|
+
"type": "boolean",
|
|
175
|
+
"mutable": false,
|
|
176
|
+
"complexType": {
|
|
177
|
+
"original": "boolean",
|
|
178
|
+
"resolved": "boolean",
|
|
179
|
+
"references": {}
|
|
180
|
+
},
|
|
181
|
+
"required": false,
|
|
182
|
+
"optional": false,
|
|
183
|
+
"docs": {
|
|
184
|
+
"tags": [],
|
|
185
|
+
"text": "Enable row selection (checkboxes)"
|
|
186
|
+
},
|
|
187
|
+
"getter": false,
|
|
188
|
+
"setter": false,
|
|
189
|
+
"reflect": false,
|
|
190
|
+
"attribute": "selectable",
|
|
191
|
+
"defaultValue": "false"
|
|
192
|
+
},
|
|
193
|
+
"loading": {
|
|
194
|
+
"type": "boolean",
|
|
195
|
+
"mutable": false,
|
|
196
|
+
"complexType": {
|
|
197
|
+
"original": "boolean",
|
|
198
|
+
"resolved": "boolean",
|
|
199
|
+
"references": {}
|
|
200
|
+
},
|
|
201
|
+
"required": false,
|
|
202
|
+
"optional": false,
|
|
203
|
+
"docs": {
|
|
204
|
+
"tags": [],
|
|
205
|
+
"text": "Show loading skeleton"
|
|
206
|
+
},
|
|
207
|
+
"getter": false,
|
|
208
|
+
"setter": false,
|
|
209
|
+
"reflect": false,
|
|
210
|
+
"attribute": "loading",
|
|
211
|
+
"defaultValue": "false"
|
|
212
|
+
},
|
|
213
|
+
"emptyMessage": {
|
|
214
|
+
"type": "string",
|
|
215
|
+
"mutable": false,
|
|
216
|
+
"complexType": {
|
|
217
|
+
"original": "string",
|
|
218
|
+
"resolved": "string",
|
|
219
|
+
"references": {}
|
|
220
|
+
},
|
|
221
|
+
"required": false,
|
|
222
|
+
"optional": false,
|
|
223
|
+
"docs": {
|
|
224
|
+
"tags": [],
|
|
225
|
+
"text": "Text shown when no rows"
|
|
226
|
+
},
|
|
227
|
+
"getter": false,
|
|
228
|
+
"setter": false,
|
|
229
|
+
"reflect": false,
|
|
230
|
+
"attribute": "empty-message",
|
|
231
|
+
"defaultValue": "'No hay datos disponibles'"
|
|
232
|
+
},
|
|
233
|
+
"striped": {
|
|
234
|
+
"type": "boolean",
|
|
235
|
+
"mutable": false,
|
|
236
|
+
"complexType": {
|
|
237
|
+
"original": "boolean",
|
|
238
|
+
"resolved": "boolean",
|
|
239
|
+
"references": {}
|
|
240
|
+
},
|
|
241
|
+
"required": false,
|
|
242
|
+
"optional": false,
|
|
243
|
+
"docs": {
|
|
244
|
+
"tags": [],
|
|
245
|
+
"text": "Stripe alternate rows"
|
|
246
|
+
},
|
|
247
|
+
"getter": false,
|
|
248
|
+
"setter": false,
|
|
249
|
+
"reflect": false,
|
|
250
|
+
"attribute": "striped",
|
|
251
|
+
"defaultValue": "false"
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
static get states() {
|
|
256
|
+
return {
|
|
257
|
+
"parsedColumns": {},
|
|
258
|
+
"parsedRows": {},
|
|
259
|
+
"sortKey": {},
|
|
260
|
+
"sortDir": {},
|
|
261
|
+
"selectedKeys": {}
|
|
262
|
+
};
|
|
263
|
+
}
|
|
264
|
+
static get events() {
|
|
265
|
+
return [{
|
|
266
|
+
"method": "dropiSort",
|
|
267
|
+
"name": "dropiSort",
|
|
268
|
+
"bubbles": true,
|
|
269
|
+
"cancelable": true,
|
|
270
|
+
"composed": true,
|
|
271
|
+
"docs": {
|
|
272
|
+
"tags": [],
|
|
273
|
+
"text": "Emitted when sort changes. e.detail = { key, dir }"
|
|
274
|
+
},
|
|
275
|
+
"complexType": {
|
|
276
|
+
"original": "{ key: string; dir: SortDir }",
|
|
277
|
+
"resolved": "{ key: string; dir: SortDir; }",
|
|
278
|
+
"references": {
|
|
279
|
+
"SortDir": {
|
|
280
|
+
"location": "local",
|
|
281
|
+
"path": "/Users/mac-ti/Documents/dropi/dropi-ui/src/components/dropi-table/dropi-table.tsx",
|
|
282
|
+
"id": "src/components/dropi-table/dropi-table.tsx::SortDir"
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}, {
|
|
287
|
+
"method": "dropiSelection",
|
|
288
|
+
"name": "dropiSelection",
|
|
289
|
+
"bubbles": true,
|
|
290
|
+
"cancelable": true,
|
|
291
|
+
"composed": true,
|
|
292
|
+
"docs": {
|
|
293
|
+
"tags": [],
|
|
294
|
+
"text": "Emitted when selection changes. e.detail = selected row indices"
|
|
295
|
+
},
|
|
296
|
+
"complexType": {
|
|
297
|
+
"original": "number[]",
|
|
298
|
+
"resolved": "number[]",
|
|
299
|
+
"references": {}
|
|
300
|
+
}
|
|
301
|
+
}, {
|
|
302
|
+
"method": "dropiRowClick",
|
|
303
|
+
"name": "dropiRowClick",
|
|
304
|
+
"bubbles": true,
|
|
305
|
+
"cancelable": true,
|
|
306
|
+
"composed": true,
|
|
307
|
+
"docs": {
|
|
308
|
+
"tags": [],
|
|
309
|
+
"text": "Emitted when a row is clicked. e.detail = { row, index }"
|
|
310
|
+
},
|
|
311
|
+
"complexType": {
|
|
312
|
+
"original": "{ row: TableRow; index: number }",
|
|
313
|
+
"resolved": "{ row: TableRow; index: number; }",
|
|
314
|
+
"references": {
|
|
315
|
+
"TableRow": {
|
|
316
|
+
"location": "local",
|
|
317
|
+
"path": "/Users/mac-ti/Documents/dropi/dropi-ui/src/components/dropi-table/dropi-table.tsx",
|
|
318
|
+
"id": "src/components/dropi-table/dropi-table.tsx::TableRow"
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
}];
|
|
323
|
+
}
|
|
324
|
+
static get watchers() {
|
|
325
|
+
return [{
|
|
326
|
+
"propName": "columns",
|
|
327
|
+
"methodName": "columnsChanged"
|
|
328
|
+
}, {
|
|
329
|
+
"propName": "rows",
|
|
330
|
+
"methodName": "rowsChanged"
|
|
331
|
+
}];
|
|
332
|
+
}
|
|
333
|
+
}
|
|
@@ -32,7 +32,7 @@ export class DropiTabs {
|
|
|
32
32
|
this.dropiTabChange.emit(tab);
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
|
-
return (h("div", { key: '
|
|
35
|
+
return (h("div", { key: '9db1e2f4fdd15fc4ea4407d83fe33c562270acec', class: "tabs-container", role: "tablist" }, this.parsedTabs.map(tab => {
|
|
36
36
|
const isActive = tab.id === this.activeTab;
|
|
37
37
|
return (h("div", { role: "tab", "aria-selected": String(isActive), class: { 'tab-item': true, 'tab-item--active': isActive && !tab.disabled, 'tab-item--disabled': !!tab.disabled }, onClick: () => this.handleClick(tab) }, h("span", { class: "tab-label-row" }, h("span", { class: "tab-label" }, tab.label), tab.counter !== undefined && tab.counter !== null && (h("span", { class: { 'tab-counter': true, 'tab-counter--active': isActive } }, tab.counter))), this.showIcon && (tab.completed
|
|
38
38
|
? h("dropi-icon", { name: "Check-circle", width: "12px", height: "12px", color: "Success-Success-500" })
|
|
@@ -48,7 +48,7 @@ export class DropiTag {
|
|
|
48
48
|
return typeof this.text === 'string' && this.text.trim().length > 0;
|
|
49
49
|
}
|
|
50
50
|
render() {
|
|
51
|
-
return (h("div", { key: '
|
|
51
|
+
return (h("div", { key: 'ca7fdd40b3d059abe34a6c4ccfba5cbfbdb5c786', class: "container-chips" }, h("div", { key: '897f4ab4a9d2d5ecb7088c6732f59c6cc3138c43', class: { tags: true, 'icon-only': this.showIcon && !this.hasContent }, style: { backgroundColor: this.bgColor, color: this.textColor } }, this.showIcon && this.icon && (h("dropi-icon", { key: '77b9315e4d1d4bd257331a4ce4cb3b82480430c0', class: "file-icon", name: this.icon, width: "16px", height: "16px", color: this.iconColor })), this.hasContent && h("span", { key: 'c55aede3070168989b8ebefa85480968f71eb08a' }, this.text))));
|
|
52
52
|
}
|
|
53
53
|
static get is() { return "dropi-tag"; }
|
|
54
54
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* @component dropi-tag-type-product
|
|
4
|
+
* Tag badge showing the product variation type.
|
|
5
|
+
*/
|
|
6
|
+
export class DropiTagTypeProduct {
|
|
7
|
+
/** Label text. Default: VARIABLE */
|
|
8
|
+
label = 'VARIABLE';
|
|
9
|
+
render() {
|
|
10
|
+
return h("div", { key: '7002748963348a2361665d0d307f4d8eb3a24e3a', class: "type-variation" }, this.label);
|
|
11
|
+
}
|
|
12
|
+
static get is() { return "dropi-tag-type-product"; }
|
|
13
|
+
static get encapsulation() { return "shadow"; }
|
|
14
|
+
static get originalStyleUrls() {
|
|
15
|
+
return {
|
|
16
|
+
"$": ["dropi-tag-type-product.css"]
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
static get styleUrls() {
|
|
20
|
+
return {
|
|
21
|
+
"$": ["dropi-tag-type-product.css"]
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
static get properties() {
|
|
25
|
+
return {
|
|
26
|
+
"label": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"mutable": false,
|
|
29
|
+
"complexType": {
|
|
30
|
+
"original": "string",
|
|
31
|
+
"resolved": "string",
|
|
32
|
+
"references": {}
|
|
33
|
+
},
|
|
34
|
+
"required": false,
|
|
35
|
+
"optional": false,
|
|
36
|
+
"docs": {
|
|
37
|
+
"tags": [],
|
|
38
|
+
"text": "Label text. Default: VARIABLE"
|
|
39
|
+
},
|
|
40
|
+
"getter": false,
|
|
41
|
+
"setter": false,
|
|
42
|
+
"reflect": false,
|
|
43
|
+
"attribute": "label",
|
|
44
|
+
"defaultValue": "'VARIABLE'"
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
}
|