@dropi/ui 0.1.24 → 0.1.25
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/{esm → dropi-ui}/dropi-accordion-item.entry.js +8 -2
- package/dist/dropi-ui/dropi-accordion-item.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-accordion.entry.js +4 -1
- package/dist/dropi-ui/dropi-accordion.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-alert-legacy.entry.js +4 -1
- package/dist/dropi-ui/dropi-alert-legacy.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-alert-modal.entry.js +4 -1
- package/dist/dropi-ui/dropi-alert-modal.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-alert.entry.js +4 -1
- package/dist/dropi-ui/dropi-alert.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-avatars.entry.js +4 -1
- package/dist/dropi-ui/dropi-avatars.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-badge-legacy.entry.js +4 -1
- package/dist/dropi-ui/dropi-badge-legacy.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-badge.entry.js +4 -1
- package/dist/dropi-ui/dropi-badge.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-banner-external.entry.js +4 -1
- package/dist/dropi-ui/dropi-banner-external.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-breadcrumb.entry.js +4 -1
- package/dist/dropi-ui/dropi-breadcrumb.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-button.entry.js +4 -1
- package/dist/dropi-ui/dropi-button.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-card-checkbox.entry.js +4 -1
- package/dist/dropi-ui/dropi-card-checkbox.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-card-product.entry.js +4 -1
- package/dist/dropi-ui/dropi-card-product.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-card-section.entry.js +4 -1
- package/dist/dropi-ui/dropi-card-section.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-carousel.entry.js +4 -1
- package/dist/dropi-ui/dropi-carousel.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-checkbox-selection-list.entry.js +4 -1
- package/dist/dropi-ui/dropi-checkbox-selection-list.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-checkbox.entry.js +4 -1
- package/dist/dropi-ui/dropi-checkbox.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-chips.entry.js +4 -1
- package/dist/dropi-ui/dropi-chips.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-city-selector.entry.js +4 -1
- package/dist/dropi-ui/dropi-city-selector.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-color-picker.entry.js +4 -1
- package/dist/dropi-ui/dropi-color-picker.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-country-flags.entry.js +4 -1
- package/dist/dropi-ui/dropi-country-flags.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-country-selector.entry.js +4 -1
- package/dist/dropi-ui/dropi-country-selector.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-date-picker-range.entry.js +4 -1
- package/dist/dropi-ui/dropi-date-picker-range.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-date-picker.entry.js +4 -1
- package/dist/dropi-ui/dropi-date-picker.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-drawer.entry.js +4 -1
- package/dist/dropi-ui/dropi-drawer.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-dropdown.entry.js +4 -1
- package/dist/dropi-ui/dropi-dropdown.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-empty-state.entry.js +4 -1
- package/dist/dropi-ui/dropi-empty-state.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-favorite-button.entry.js +4 -1
- package/dist/dropi-ui/dropi-favorite-button.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-file-upload-progress-bar.entry.js +4 -1
- package/dist/dropi-ui/dropi-file-upload-progress-bar.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-file-upload.entry.js +4 -1
- package/dist/dropi-ui/dropi-file-upload.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-icon.entry.js +4 -1
- package/dist/dropi-ui/dropi-icon.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-ilustration-icon.entry.js +4 -1
- package/dist/dropi-ui/dropi-ilustration-icon.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-image-miniature.entry.js +4 -1
- package/dist/dropi-ui/dropi-image-miniature.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-image-overlay.entry.js +4 -1
- package/dist/dropi-ui/dropi-image-overlay.entry.js.map +1 -0
- package/dist/{esm/dropi-input_3.entry.js → dropi-ui/dropi-input.entry.js} +4 -128
- package/dist/dropi-ui/dropi-input.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-languages-selector.entry.js +4 -1
- package/dist/dropi-ui/dropi-languages-selector.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-logo.entry.js +4 -1
- package/dist/dropi-ui/dropi-logo.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-lottie-loader.entry.js +4 -1
- package/dist/dropi-ui/dropi-lottie-loader.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-media-player.entry.js +4 -1
- package/dist/dropi-ui/dropi-media-player.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-modal.entry.js +4 -1
- package/dist/dropi-ui/dropi-modal.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-navbar.entry.js +4 -1
- package/dist/dropi-ui/dropi-navbar.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-otp-send-code.entry.js +4 -1
- package/dist/dropi-ui/dropi-otp-send-code.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-paginator.entry.js +70 -0
- package/dist/dropi-ui/dropi-paginator.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-phone-input.entry.js +4 -1
- package/dist/dropi-ui/dropi-phone-input.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-radio-button.entry.js +4 -1
- package/dist/dropi-ui/dropi-radio-button.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-radio-selection-list.entry.js +4 -1
- package/dist/dropi-ui/dropi-radio-selection-list.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-read-more.entry.js +4 -1
- package/dist/dropi-ui/dropi-read-more.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-search.entry.js +4 -1
- package/dist/dropi-ui/dropi-search.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-select.entry.js +4 -1
- package/dist/dropi-ui/dropi-select.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-sidebar.entry.js +4 -1
- package/dist/dropi-ui/dropi-sidebar.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-simple-stepper.entry.js +4 -1
- package/dist/dropi-ui/dropi-simple-stepper.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-skeleton.entry.js +4 -1
- package/dist/dropi-ui/dropi-skeleton.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-steps.entry.js +4 -1
- package/dist/dropi-ui/dropi-steps.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-switch.entry.js +4 -1
- package/dist/dropi-ui/dropi-switch.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-table.entry.js +4 -1
- package/dist/dropi-ui/dropi-table.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-tabs.entry.js +4 -1
- package/dist/dropi-ui/dropi-tabs.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-tag-type-product.entry.js +4 -1
- package/dist/dropi-ui/dropi-tag-type-product.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-tag.entry.js +69 -0
- package/dist/dropi-ui/dropi-tag.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-text-area.entry.js +4 -1
- package/dist/dropi-ui/dropi-text-area.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-time-line.entry.js +4 -1
- package/dist/dropi-ui/dropi-time-line.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-toast.entry.js +4 -1
- package/dist/dropi-ui/dropi-toast.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-tooltip-v2.entry.js +4 -1
- package/dist/dropi-ui/dropi-tooltip-v2.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-tooltip.entry.js +4 -1
- package/dist/dropi-ui/dropi-tooltip.entry.js.map +1 -0
- package/dist/dropi-ui/dropi-ui.css +311 -1
- package/dist/dropi-ui/dropi-ui.esm.js +50 -1
- package/dist/dropi-ui/dropi-ui.esm.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-vertical-steps.entry.js +4 -1
- package/dist/dropi-ui/dropi-vertical-steps.entry.js.map +1 -0
- package/dist/{esm → dropi-ui}/dropi-youtube-lazy-video.entry.js +4 -1
- package/dist/dropi-ui/dropi-youtube-lazy-video.entry.js.map +1 -0
- package/dist/dropi-ui/index-Cvp2LQOM.js +4585 -0
- package/dist/dropi-ui/index-Cvp2LQOM.js.map +1 -0
- package/dist/dropi-ui/index.esm.js +4 -0
- package/dist/dropi-ui/index.esm.js.map +1 -0
- package/package.json +1 -1
- package/readme.md +112 -58
- package/dist/cjs/dropi-accordion-item.cjs.entry.js +0 -54
- package/dist/cjs/dropi-accordion.cjs.entry.js +0 -19
- package/dist/cjs/dropi-alert-legacy.cjs.entry.js +0 -39
- package/dist/cjs/dropi-alert-modal.cjs.entry.js +0 -128
- package/dist/cjs/dropi-alert.cjs.entry.js +0 -64
- package/dist/cjs/dropi-avatars.cjs.entry.js +0 -31
- package/dist/cjs/dropi-badge-legacy.cjs.entry.js +0 -30
- package/dist/cjs/dropi-badge.cjs.entry.js +0 -37
- package/dist/cjs/dropi-banner-external.cjs.entry.js +0 -63
- package/dist/cjs/dropi-breadcrumb.cjs.entry.js +0 -48
- package/dist/cjs/dropi-button.cjs.entry.js +0 -87
- package/dist/cjs/dropi-card-checkbox.cjs.entry.js +0 -48
- package/dist/cjs/dropi-card-product.cjs.entry.js +0 -78
- package/dist/cjs/dropi-card-section.cjs.entry.js +0 -38
- package/dist/cjs/dropi-carousel.cjs.entry.js +0 -153
- package/dist/cjs/dropi-checkbox-selection-list.cjs.entry.js +0 -73
- package/dist/cjs/dropi-checkbox.cjs.entry.js +0 -36
- package/dist/cjs/dropi-chips.cjs.entry.js +0 -30
- package/dist/cjs/dropi-city-selector.cjs.entry.js +0 -104
- package/dist/cjs/dropi-color-picker.cjs.entry.js +0 -319
- package/dist/cjs/dropi-country-flags.cjs.entry.js +0 -37
- package/dist/cjs/dropi-country-selector.cjs.entry.js +0 -197
- package/dist/cjs/dropi-date-picker-range.cjs.entry.js +0 -115
- package/dist/cjs/dropi-date-picker.cjs.entry.js +0 -223
- package/dist/cjs/dropi-drawer.cjs.entry.js +0 -79
- package/dist/cjs/dropi-dropdown.cjs.entry.js +0 -65
- package/dist/cjs/dropi-empty-state.cjs.entry.js +0 -36
- package/dist/cjs/dropi-favorite-button.cjs.entry.js +0 -27
- package/dist/cjs/dropi-file-upload-progress-bar.cjs.entry.js +0 -77
- package/dist/cjs/dropi-file-upload.cjs.entry.js +0 -237
- package/dist/cjs/dropi-icon.cjs.entry.js +0 -67
- package/dist/cjs/dropi-ilustration-icon.cjs.entry.js +0 -39
- package/dist/cjs/dropi-image-miniature.cjs.entry.js +0 -44
- package/dist/cjs/dropi-image-overlay.cjs.entry.js +0 -63
- package/dist/cjs/dropi-input_3.cjs.entry.js +0 -392
- package/dist/cjs/dropi-languages-selector.cjs.entry.js +0 -61
- package/dist/cjs/dropi-logo.cjs.entry.js +0 -37
- package/dist/cjs/dropi-lottie-loader.cjs.entry.js +0 -27
- package/dist/cjs/dropi-media-player.cjs.entry.js +0 -192
- package/dist/cjs/dropi-modal.cjs.entry.js +0 -142
- package/dist/cjs/dropi-navbar.cjs.entry.js +0 -54
- package/dist/cjs/dropi-otp-send-code.cjs.entry.js +0 -92
- package/dist/cjs/dropi-phone-input.cjs.entry.js +0 -197
- package/dist/cjs/dropi-radio-button.cjs.entry.js +0 -47
- package/dist/cjs/dropi-radio-selection-list.cjs.entry.js +0 -60
- package/dist/cjs/dropi-read-more.cjs.entry.js +0 -40
- package/dist/cjs/dropi-search.cjs.entry.js +0 -124
- package/dist/cjs/dropi-select.cjs.entry.js +0 -382
- package/dist/cjs/dropi-sidebar.cjs.entry.js +0 -78
- package/dist/cjs/dropi-simple-stepper.cjs.entry.js +0 -53
- package/dist/cjs/dropi-skeleton.cjs.entry.js +0 -57
- package/dist/cjs/dropi-steps.cjs.entry.js +0 -52
- package/dist/cjs/dropi-switch.cjs.entry.js +0 -30
- package/dist/cjs/dropi-table.cjs.entry.js +0 -299
- package/dist/cjs/dropi-tabs.cjs.entry.js +0 -51
- package/dist/cjs/dropi-tag-type-product.cjs.entry.js +0 -19
- package/dist/cjs/dropi-text-area.cjs.entry.js +0 -134
- package/dist/cjs/dropi-time-line.cjs.entry.js +0 -34
- package/dist/cjs/dropi-toast.cjs.entry.js +0 -56
- package/dist/cjs/dropi-tooltip-v2.cjs.entry.js +0 -131
- package/dist/cjs/dropi-tooltip.cjs.entry.js +0 -21
- package/dist/cjs/dropi-ui.cjs.js +0 -24
- package/dist/cjs/dropi-vertical-steps.cjs.entry.js +0 -55
- package/dist/cjs/dropi-youtube-lazy-video.cjs.entry.js +0 -33
- package/dist/cjs/index-C8kwDvpf.js +0 -2773
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +0 -12
- package/dist/collection/assets/icons/symbol/svg/sprite.css.svg +0 -1
- package/dist/collection/collection-manifest.json +0 -77
- package/dist/collection/components/dropi-accordion/dropi-accordion-item.css +0 -45
- package/dist/collection/components/dropi-accordion/dropi-accordion-item.js +0 -172
- package/dist/collection/components/dropi-accordion/dropi-accordion.css +0 -21
- package/dist/collection/components/dropi-accordion/dropi-accordion.js +0 -48
- package/dist/collection/components/dropi-alert/dropi-alert.css +0 -128
- package/dist/collection/components/dropi-alert/dropi-alert.js +0 -371
- package/dist/collection/components/dropi-alert-legacy/dropi-alert-legacy.css +0 -31
- package/dist/collection/components/dropi-alert-legacy/dropi-alert-legacy.js +0 -128
- package/dist/collection/components/dropi-alert-modal/dropi-alert-modal.css +0 -105
- package/dist/collection/components/dropi-alert-modal/dropi-alert-modal.js +0 -525
- package/dist/collection/components/dropi-avatars/dropi-avatars.css +0 -55
- package/dist/collection/components/dropi-avatars/dropi-avatars.js +0 -126
- package/dist/collection/components/dropi-badge/dropi-badge.css +0 -41
- package/dist/collection/components/dropi-badge/dropi-badge.js +0 -71
- package/dist/collection/components/dropi-badge-legacy/dropi-badge-legacy.css +0 -17
- package/dist/collection/components/dropi-badge-legacy/dropi-badge-legacy.js +0 -119
- package/dist/collection/components/dropi-banner-external/dropi-banner-external.css +0 -56
- package/dist/collection/components/dropi-banner-external/dropi-banner-external.js +0 -254
- package/dist/collection/components/dropi-breadcrumb/dropi-breadcrumb.css +0 -69
- package/dist/collection/components/dropi-breadcrumb/dropi-breadcrumb.js +0 -171
- package/dist/collection/components/dropi-button/dropi-button.css +0 -177
- package/dist/collection/components/dropi-button/dropi-button.js +0 -323
- package/dist/collection/components/dropi-card-checkbox/dropi-card-checkbox.css +0 -92
- package/dist/collection/components/dropi-card-checkbox/dropi-card-checkbox.js +0 -222
- package/dist/collection/components/dropi-card-product/dropi-card-product.css +0 -235
- package/dist/collection/components/dropi-card-product/dropi-card-product.js +0 -386
- package/dist/collection/components/dropi-card-section/dropi-card-section.css +0 -42
- package/dist/collection/components/dropi-card-section/dropi-card-section.js +0 -178
- package/dist/collection/components/dropi-carousel/dropi-carousel.css +0 -148
- package/dist/collection/components/dropi-carousel/dropi-carousel.js +0 -379
- package/dist/collection/components/dropi-checkbox/dropi-checkbox.css +0 -47
- package/dist/collection/components/dropi-checkbox/dropi-checkbox.js +0 -103
- package/dist/collection/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.css +0 -44
- package/dist/collection/components/dropi-checkbox-selection-list/dropi-checkbox-selection-list.js +0 -267
- package/dist/collection/components/dropi-chips/dropi-chips.css +0 -68
- package/dist/collection/components/dropi-chips/dropi-chips.js +0 -169
- package/dist/collection/components/dropi-city-selector/dropi-city-selector.css +0 -218
- package/dist/collection/components/dropi-city-selector/dropi-city-selector.js +0 -242
- package/dist/collection/components/dropi-color-picker/dropi-color-picker.css +0 -210
- package/dist/collection/components/dropi-color-picker/dropi-color-picker.js +0 -393
- package/dist/collection/components/dropi-country-flags/dropi-country-flags.css +0 -30
- package/dist/collection/components/dropi-country-flags/dropi-country-flags.js +0 -129
- package/dist/collection/components/dropi-country-selector/dropi-country-selector.css +0 -211
- package/dist/collection/components/dropi-country-selector/dropi-country-selector.js +0 -429
- package/dist/collection/components/dropi-date-picker/dropi-date-picker.css +0 -215
- package/dist/collection/components/dropi-date-picker/dropi-date-picker.js +0 -516
- package/dist/collection/components/dropi-date-picker-range/dropi-date-picker-range.css +0 -143
- package/dist/collection/components/dropi-date-picker-range/dropi-date-picker-range.js +0 -327
- package/dist/collection/components/dropi-drawer/dropi-drawer.css +0 -129
- package/dist/collection/components/dropi-drawer/dropi-drawer.js +0 -287
- package/dist/collection/components/dropi-dropdown/dropi-dropdown.css +0 -51
- package/dist/collection/components/dropi-dropdown/dropi-dropdown.js +0 -209
- package/dist/collection/components/dropi-empty-state/dropi-empty-state.css +0 -59
- package/dist/collection/components/dropi-empty-state/dropi-empty-state.js +0 -222
- package/dist/collection/components/dropi-favorite-button/dropi-favorite-button.css +0 -24
- package/dist/collection/components/dropi-favorite-button/dropi-favorite-button.js +0 -78
- package/dist/collection/components/dropi-file-upload/dropi-file-upload.css +0 -464
- package/dist/collection/components/dropi-file-upload/dropi-file-upload.js +0 -517
- package/dist/collection/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.css +0 -115
- package/dist/collection/components/dropi-file-upload-progress-bar/dropi-file-upload-progress-bar.js +0 -258
- package/dist/collection/components/dropi-icon/dropi-icon.css +0 -26
- package/dist/collection/components/dropi-icon/dropi-icon.js +0 -159
- package/dist/collection/components/dropi-ilustration-icon/dropi-ilustration-icon.css +0 -91
- package/dist/collection/components/dropi-ilustration-icon/dropi-ilustration-icon.js +0 -150
- package/dist/collection/components/dropi-image-miniature/dropi-image-miniature.css +0 -45
- package/dist/collection/components/dropi-image-miniature/dropi-image-miniature.js +0 -150
- package/dist/collection/components/dropi-image-overlay/dropi-image-overlay.css +0 -127
- package/dist/collection/components/dropi-image-overlay/dropi-image-overlay.js +0 -156
- package/dist/collection/components/dropi-input/dropi-input.css +0 -185
- package/dist/collection/components/dropi-input/dropi-input.js +0 -808
- package/dist/collection/components/dropi-languages-selector/dropi-languages-selector.css +0 -79
- package/dist/collection/components/dropi-languages-selector/dropi-languages-selector.js +0 -158
- package/dist/collection/components/dropi-logo/dropi-logo.css +0 -26
- package/dist/collection/components/dropi-logo/dropi-logo.js +0 -107
- package/dist/collection/components/dropi-lottie-loader/dropi-lottie-loader.css +0 -56
- package/dist/collection/components/dropi-lottie-loader/dropi-lottie-loader.js +0 -116
- package/dist/collection/components/dropi-media-player/dropi-media-player.css +0 -320
- package/dist/collection/components/dropi-media-player/dropi-media-player.js +0 -394
- package/dist/collection/components/dropi-modal/dropi-modal.css +0 -140
- package/dist/collection/components/dropi-modal/dropi-modal.js +0 -695
- package/dist/collection/components/dropi-navbar/dropi-navbar.css +0 -166
- package/dist/collection/components/dropi-navbar/dropi-navbar.js +0 -302
- package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.css +0 -67
- package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.js +0 -221
- package/dist/collection/components/dropi-paginator/dropi-paginator.css +0 -103
- package/dist/collection/components/dropi-paginator/dropi-paginator.js +0 -215
- package/dist/collection/components/dropi-phone-input/dropi-phone-input.css +0 -209
- package/dist/collection/components/dropi-phone-input/dropi-phone-input.js +0 -442
- package/dist/collection/components/dropi-radio-button/dropi-radio-button.css +0 -62
- package/dist/collection/components/dropi-radio-button/dropi-radio-button.js +0 -174
- package/dist/collection/components/dropi-radio-selection-list/dropi-radio-selection-list.css +0 -64
- package/dist/collection/components/dropi-radio-selection-list/dropi-radio-selection-list.js +0 -259
- package/dist/collection/components/dropi-read-more/dropi-read-more.css +0 -25
- package/dist/collection/components/dropi-read-more/dropi-read-more.js +0 -154
- package/dist/collection/components/dropi-search/dropi-search.css +0 -112
- package/dist/collection/components/dropi-search/dropi-search.js +0 -526
- package/dist/collection/components/dropi-select/dropi-select.css +0 -366
- package/dist/collection/components/dropi-select/dropi-select.js +0 -1018
- package/dist/collection/components/dropi-select/select.types.js +0 -1
- package/dist/collection/components/dropi-sidebar/dropi-sidebar.css +0 -76
- package/dist/collection/components/dropi-sidebar/dropi-sidebar.js +0 -143
- package/dist/collection/components/dropi-simple-stepper/dropi-simple-stepper.css +0 -94
- package/dist/collection/components/dropi-simple-stepper/dropi-simple-stepper.js +0 -194
- package/dist/collection/components/dropi-skeleton/dropi-skeleton.css +0 -27
- package/dist/collection/components/dropi-skeleton/dropi-skeleton.js +0 -192
- package/dist/collection/components/dropi-steps/dropi-steps.css +0 -95
- package/dist/collection/components/dropi-steps/dropi-steps.js +0 -173
- package/dist/collection/components/dropi-switch/dropi-switch.css +0 -57
- package/dist/collection/components/dropi-switch/dropi-switch.js +0 -96
- package/dist/collection/components/dropi-table/dropi-table.css +0 -540
- package/dist/collection/components/dropi-table/dropi-table.js +0 -973
- package/dist/collection/components/dropi-tabs/dropi-tabs.css +0 -47
- package/dist/collection/components/dropi-tabs/dropi-tabs.js +0 -181
- package/dist/collection/components/dropi-tag/dropi-tag.css +0 -39
- package/dist/collection/components/dropi-tag/dropi-tag.js +0 -190
- package/dist/collection/components/dropi-tag-type-product/dropi-tag-type-product.css +0 -14
- package/dist/collection/components/dropi-tag-type-product/dropi-tag-type-product.js +0 -48
- package/dist/collection/components/dropi-text-area/dropi-text-area.css +0 -100
- package/dist/collection/components/dropi-text-area/dropi-text-area.js +0 -512
- package/dist/collection/components/dropi-time-line/dropi-time-line.css +0 -108
- package/dist/collection/components/dropi-time-line/dropi-time-line.js +0 -69
- package/dist/collection/components/dropi-toast/dropi-toast.css +0 -63
- package/dist/collection/components/dropi-toast/dropi-toast.js +0 -165
- package/dist/collection/components/dropi-tooltip/dropi-tooltip.css +0 -32
- package/dist/collection/components/dropi-tooltip/dropi-tooltip.js +0 -70
- package/dist/collection/components/dropi-tooltip-v2/dropi-tooltip.css +0 -67
- package/dist/collection/components/dropi-tooltip-v2/dropi-tooltip.js +0 -468
- package/dist/collection/components/dropi-vertical-steps/dropi-vertical-steps.css +0 -95
- package/dist/collection/components/dropi-vertical-steps/dropi-vertical-steps.js +0 -167
- package/dist/collection/components/dropi-youtube-lazy-video/dropi-youtube-lazy-video.css +0 -73
- package/dist/collection/components/dropi-youtube-lazy-video/dropi-youtube-lazy-video.js +0 -110
- package/dist/collection/index.js +0 -1
- package/dist/collection/utils/utils.js +0 -3
- package/dist/collection/utils/utils.unit.test.js +0 -16
- package/dist/components/dropi-accordion-item.js +0 -1
- package/dist/components/dropi-accordion.js +0 -1
- package/dist/components/dropi-alert-legacy.js +0 -1
- package/dist/components/dropi-alert-modal.js +0 -1
- package/dist/components/dropi-alert.js +0 -1
- package/dist/components/dropi-avatars.js +0 -1
- package/dist/components/dropi-badge-legacy.js +0 -1
- package/dist/components/dropi-badge.js +0 -1
- package/dist/components/dropi-banner-external.js +0 -1
- package/dist/components/dropi-breadcrumb.js +0 -1
- package/dist/components/dropi-button.js +0 -1
- package/dist/components/dropi-card-checkbox.js +0 -1
- package/dist/components/dropi-card-product.js +0 -1
- package/dist/components/dropi-card-section.js +0 -1
- package/dist/components/dropi-carousel.js +0 -1
- package/dist/components/dropi-checkbox-selection-list.js +0 -1
- package/dist/components/dropi-checkbox.js +0 -1
- package/dist/components/dropi-chips.js +0 -1
- package/dist/components/dropi-city-selector.js +0 -1
- package/dist/components/dropi-color-picker.js +0 -1
- package/dist/components/dropi-country-flags.js +0 -1
- package/dist/components/dropi-country-selector.js +0 -1
- package/dist/components/dropi-date-picker-range.js +0 -1
- package/dist/components/dropi-date-picker.js +0 -1
- package/dist/components/dropi-drawer.js +0 -1
- package/dist/components/dropi-dropdown.js +0 -1
- package/dist/components/dropi-empty-state.js +0 -1
- package/dist/components/dropi-favorite-button.js +0 -1
- package/dist/components/dropi-file-upload-progress-bar.js +0 -1
- package/dist/components/dropi-file-upload.js +0 -1
- package/dist/components/dropi-icon.js +0 -1
- package/dist/components/dropi-ilustration-icon.js +0 -1
- package/dist/components/dropi-image-miniature.js +0 -1
- package/dist/components/dropi-image-overlay.js +0 -1
- package/dist/components/dropi-input.js +0 -1
- package/dist/components/dropi-languages-selector.js +0 -1
- package/dist/components/dropi-logo.js +0 -1
- package/dist/components/dropi-lottie-loader.js +0 -1
- package/dist/components/dropi-media-player.js +0 -1
- package/dist/components/dropi-modal.js +0 -1
- package/dist/components/dropi-navbar.js +0 -1
- package/dist/components/dropi-otp-send-code.js +0 -1
- package/dist/components/dropi-paginator.js +0 -1
- package/dist/components/dropi-phone-input.js +0 -1
- package/dist/components/dropi-radio-button.js +0 -1
- package/dist/components/dropi-radio-selection-list.js +0 -1
- package/dist/components/dropi-read-more.js +0 -1
- package/dist/components/dropi-search.js +0 -1
- package/dist/components/dropi-select.js +0 -1
- package/dist/components/dropi-sidebar.js +0 -1
- package/dist/components/dropi-simple-stepper.js +0 -1
- package/dist/components/dropi-skeleton.js +0 -1
- package/dist/components/dropi-steps.js +0 -1
- package/dist/components/dropi-switch.js +0 -1
- package/dist/components/dropi-table.js +0 -1
- package/dist/components/dropi-tabs.js +0 -1
- package/dist/components/dropi-tag-type-product.js +0 -1
- package/dist/components/dropi-tag.js +0 -1
- package/dist/components/dropi-text-area.js +0 -1
- package/dist/components/dropi-time-line.js +0 -1
- package/dist/components/dropi-toast.js +0 -1
- package/dist/components/dropi-tooltip-v2.js +0 -1
- package/dist/components/dropi-tooltip.js +0 -1
- package/dist/components/dropi-vertical-steps.js +0 -1
- package/dist/components/dropi-youtube-lazy-video.js +0 -1
- package/dist/components/index.js +0 -1
- package/dist/components/p-B9R8Apw7.js +0 -1
- package/dist/components/p-B_Ace02i.js +0 -1
- package/dist/components/p-BrjO_JXp.js +0 -1
- package/dist/components/p-BwhxWL4p.js +0 -1
- package/dist/components/p-Bz2jXX3R.js +0 -1
- package/dist/components/p-CV_oz45O.js +0 -1
- package/dist/components/p-D-vQQQNz.js +0 -1
- package/dist/components/p-D13d88W3.js +0 -1
- package/dist/components/p-DGUfr98Z.js +0 -1
- package/dist/components/p-QOZr7tU8.js +0 -1
- package/dist/components/p-a-hGQrJd.js +0 -1
- package/dist/components/p-o5gyrbbD.js +0 -1
- package/dist/dropi-ui/p-00e5a2de.entry.js +0 -1
- package/dist/dropi-ui/p-0188e07a.entry.js +0 -1
- package/dist/dropi-ui/p-02710049.entry.js +0 -1
- package/dist/dropi-ui/p-17c56074.entry.js +0 -1
- package/dist/dropi-ui/p-18adf694.entry.js +0 -1
- package/dist/dropi-ui/p-1a3619c3.entry.js +0 -1
- package/dist/dropi-ui/p-1d3d6a32.entry.js +0 -1
- package/dist/dropi-ui/p-25640777.entry.js +0 -1
- package/dist/dropi-ui/p-2674d901.entry.js +0 -1
- package/dist/dropi-ui/p-2af538b9.entry.js +0 -1
- package/dist/dropi-ui/p-3013f3b8.entry.js +0 -1
- package/dist/dropi-ui/p-3321ca70.entry.js +0 -1
- package/dist/dropi-ui/p-33d242ec.entry.js +0 -1
- package/dist/dropi-ui/p-34b66ca2.entry.js +0 -1
- package/dist/dropi-ui/p-39af6478.entry.js +0 -1
- package/dist/dropi-ui/p-3e36c8b8.entry.js +0 -1
- package/dist/dropi-ui/p-3ebc9b7b.entry.js +0 -1
- package/dist/dropi-ui/p-446a481d.entry.js +0 -1
- package/dist/dropi-ui/p-50e0d44f.entry.js +0 -1
- package/dist/dropi-ui/p-53a7a37d.entry.js +0 -1
- package/dist/dropi-ui/p-5c0bd7c2.entry.js +0 -1
- package/dist/dropi-ui/p-5cee6721.entry.js +0 -1
- package/dist/dropi-ui/p-5fb33ae4.entry.js +0 -1
- package/dist/dropi-ui/p-665ef7ba.entry.js +0 -1
- package/dist/dropi-ui/p-66b80371.entry.js +0 -1
- package/dist/dropi-ui/p-7bfc1c27.entry.js +0 -1
- package/dist/dropi-ui/p-7c0d2edf.entry.js +0 -1
- package/dist/dropi-ui/p-7eb27836.entry.js +0 -1
- package/dist/dropi-ui/p-85444414.entry.js +0 -1
- package/dist/dropi-ui/p-86283e99.entry.js +0 -1
- package/dist/dropi-ui/p-8bf5d8ee.entry.js +0 -1
- package/dist/dropi-ui/p-9032ba00.entry.js +0 -1
- package/dist/dropi-ui/p-9212f544.entry.js +0 -1
- package/dist/dropi-ui/p-92291873.entry.js +0 -1
- package/dist/dropi-ui/p-955e52f8.entry.js +0 -1
- package/dist/dropi-ui/p-976a15e3.entry.js +0 -1
- package/dist/dropi-ui/p-9b037086.entry.js +0 -1
- package/dist/dropi-ui/p-9e0129cc.entry.js +0 -1
- package/dist/dropi-ui/p-9ffec3f7.entry.js +0 -1
- package/dist/dropi-ui/p-D5SAM1O2.js +0 -2
- package/dist/dropi-ui/p-a1c93e55.entry.js +0 -1
- package/dist/dropi-ui/p-a232c6a7.entry.js +0 -1
- package/dist/dropi-ui/p-a3c4d677.entry.js +0 -1
- package/dist/dropi-ui/p-a457e8ca.entry.js +0 -1
- package/dist/dropi-ui/p-a4e1df5e.entry.js +0 -1
- package/dist/dropi-ui/p-a822a23e.entry.js +0 -1
- package/dist/dropi-ui/p-a8f24270.entry.js +0 -1
- package/dist/dropi-ui/p-ae35d538.entry.js +0 -1
- package/dist/dropi-ui/p-af8e2157.entry.js +0 -1
- package/dist/dropi-ui/p-b2623a5c.entry.js +0 -1
- package/dist/dropi-ui/p-b3d3c72e.entry.js +0 -1
- package/dist/dropi-ui/p-c3614c4a.entry.js +0 -1
- package/dist/dropi-ui/p-cbf5367e.entry.js +0 -1
- package/dist/dropi-ui/p-cc527d91.entry.js +0 -1
- package/dist/dropi-ui/p-cdde481b.entry.js +0 -1
- package/dist/dropi-ui/p-d42d4ef7.entry.js +0 -1
- package/dist/dropi-ui/p-db38bf16.entry.js +0 -1
- package/dist/dropi-ui/p-dd5d8b1b.entry.js +0 -1
- package/dist/dropi-ui/p-e3ad21f8.entry.js +0 -1
- package/dist/dropi-ui/p-e6e766ed.entry.js +0 -1
- package/dist/dropi-ui/p-ec263862.entry.js +0 -1
- package/dist/dropi-ui/p-efc2fc35.entry.js +0 -1
- package/dist/dropi-ui/p-f41cd9b5.entry.js +0 -1
- package/dist/dropi-ui/p-fa3d0267.entry.js +0 -1
- package/dist/esm/dropi-ui.js +0 -20
- package/dist/esm/index-D5SAM1O2.js +0 -2763
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +0 -10
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Librería de Web Components del Design System de Dropi, construida con **Stencil.js v4**.
|
|
4
4
|
Genera componentes reutilizables para Angular, React y Vue desde una única base de código.
|
|
5
5
|
|
|
6
|
-
- **Paquete npm:** `@dropi/ui` (v0.1.
|
|
7
|
-
- **React wrappers:** `@dropi/ui-react`
|
|
6
|
+
- **Paquete npm:** `@dropi/ui` (v0.1.24)
|
|
7
|
+
- **React wrappers:** `@dropi/ui-react` (v0.1.9)
|
|
8
8
|
|
|
9
9
|
---
|
|
10
10
|
|
|
@@ -13,7 +13,7 @@ Genera componentes reutilizables para Angular, React y Vue desde una única base
|
|
|
13
13
|
Ejecuta este comando en la raíz de tu proyecto:
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
npx @dropi/
|
|
16
|
+
npx @dropi/ui setup
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
Detecta tu framework (Angular, React, Next.js), instala las dependencias correctas e inyecta la configuración automáticamente.
|
|
@@ -29,7 +29,7 @@ Si prefieres realizar la configuración paso a paso, consulta la [Guía de Integ
|
|
|
29
29
|
|---|---|
|
|
30
30
|
| Angular | `npm install @dropi/ui @dropi/ui-angular` |
|
|
31
31
|
| React | `npm install @dropi/ui @dropi/ui-react` |
|
|
32
|
-
| Next.js SSR | `npm install @dropi/ui @dropi/ui-react && npm install --save-dev @stencil/ssr` |
|
|
32
|
+
| Next.js SSR | `npm install @dropi/ui @dropi/ui-react && npm install --save-dev @stencil/ssr --legacy-peer-deps` |
|
|
33
33
|
|
|
34
34
|
### 2. Estilos e Iconos
|
|
35
35
|
- **CSS**: Importar `@dropi/ui/dist/dropi-ui/dropi-ui.css`.
|
|
@@ -41,8 +41,6 @@ Si prefieres realizar la configuración paso a paso, consulta la [Guía de Integ
|
|
|
41
41
|
|
|
42
42
|
---
|
|
43
43
|
|
|
44
|
-
---
|
|
45
|
-
|
|
46
44
|
## 🚀 Soporte para Next.js (SSR / Zero Flash)
|
|
47
45
|
|
|
48
46
|
Para habilitar el **Server Side Rendering (SSR)** y eliminar cualquier parpadeo visual, sigue estos pasos:
|
|
@@ -54,6 +52,10 @@ Envuelve tu configuración en el plugin `withStencil`:
|
|
|
54
52
|
// next.config.ts
|
|
55
53
|
import withStencil from "@stencil/ssr/next";
|
|
56
54
|
|
|
55
|
+
const nextConfig = {
|
|
56
|
+
transpilePackages: ["@dropi/ui-react", "@dropi/ui"],
|
|
57
|
+
};
|
|
58
|
+
|
|
57
59
|
export default withStencil({
|
|
58
60
|
from: "@dropi/ui-react",
|
|
59
61
|
module: import("@dropi/ui-react/next"),
|
|
@@ -61,16 +63,29 @@ export default withStencil({
|
|
|
61
63
|
})(nextConfig);
|
|
62
64
|
```
|
|
63
65
|
|
|
64
|
-
### 2.
|
|
66
|
+
### 2. Scripts en package.json (Next.js 16)
|
|
67
|
+
Next.js 16 usa Turbopack por defecto, que es incompatible con `@stencil/ssr`. Agrega `--webpack`:
|
|
68
|
+
|
|
69
|
+
```json
|
|
70
|
+
"dev": "next dev --webpack",
|
|
71
|
+
"build": "next build --webpack"
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### 3. Configuración del Layout (Crítico)
|
|
65
75
|
Añade `suppressHydrationWarning` al `<body>` en `layout.tsx` para evitar que el DevTools o extensiones rompan la hidratación.
|
|
66
76
|
|
|
67
77
|
```tsx
|
|
68
78
|
<body suppressHydrationWarning>{children}</body>
|
|
69
79
|
```
|
|
70
80
|
|
|
71
|
-
###
|
|
72
|
-
En
|
|
73
|
-
|
|
81
|
+
### 4. Importar desde `/next` en Server Components
|
|
82
|
+
En páginas o layouts (Server Components), importa desde `@dropi/ui-react/next`:
|
|
83
|
+
|
|
84
|
+
```tsx
|
|
85
|
+
import { DropiButton, DropiInput } from "@dropi/ui-react/next";
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
En componentes con `"use client"`, importa desde `@dropi/ui-react` normalmente.
|
|
74
89
|
|
|
75
90
|
---
|
|
76
91
|
|
|
@@ -84,7 +99,7 @@ Hay **dos formas válidas**, ambas funcionan:
|
|
|
84
99
|
label="País"
|
|
85
100
|
placeholder="Seleccionar"
|
|
86
101
|
options={options}
|
|
87
|
-
|
|
102
|
+
onOnChangeSelect={(e) => setSelected(e.detail)}
|
|
88
103
|
/>
|
|
89
104
|
```
|
|
90
105
|
|
|
@@ -114,12 +129,14 @@ Todos los eventos son `CustomEvent`. El valor emitido **siempre viene en `e.deta
|
|
|
114
129
|
|
|
115
130
|
```typescript
|
|
116
131
|
// ❌ Incorrecto — e es el CustomEvent completo, no el valor
|
|
117
|
-
|
|
132
|
+
onOnInput={(e) => console.log(e)}
|
|
118
133
|
|
|
119
134
|
// ✅ Correcto — e.detail tiene el valor real
|
|
120
|
-
|
|
135
|
+
onOnInput={(e) => console.log(e.detail)}
|
|
121
136
|
```
|
|
122
137
|
|
|
138
|
+
> **Nombres de eventos en React:** Los wrappers React siguen el patrón `on<EventName>`. Si el evento Stencil empieza con `on` (ej. `onClick`), el wrapper lo duplica: `onOnClick`. Si empieza con `dropi` (ej. `dropiChange`), queda `onDropiChange`.
|
|
139
|
+
|
|
123
140
|
---
|
|
124
141
|
|
|
125
142
|
## Uso en React (Métodos Imperativos)
|
|
@@ -161,9 +178,9 @@ Botón de acción principal con múltiples variantes de tipo, apariencia, tamañ
|
|
|
161
178
|
|
|
162
179
|
**Eventos**
|
|
163
180
|
|
|
164
|
-
| Evento | `e.detail` | Cuándo |
|
|
181
|
+
| Evento React | `e.detail` | Cuándo |
|
|
165
182
|
|---|---|---|
|
|
166
|
-
| `
|
|
183
|
+
| `onOnClick` | `MouseEvent` | Al hacer click (no se emite si `state` es `disabled` o `loading`) |
|
|
167
184
|
|
|
168
185
|
**Ejemplo React**
|
|
169
186
|
```tsx
|
|
@@ -171,13 +188,13 @@ Botón de acción principal con múltiples variantes de tipo, apariencia, tamañ
|
|
|
171
188
|
text="Guardar"
|
|
172
189
|
severity="primary"
|
|
173
190
|
size="normal"
|
|
174
|
-
|
|
191
|
+
onOnClick={(e) => console.log(e.detail)}
|
|
175
192
|
/>
|
|
176
193
|
```
|
|
177
194
|
|
|
178
195
|
**Ejemplo Angular**
|
|
179
196
|
```html
|
|
180
|
-
<dropi-button text="Guardar" severity="primary" (
|
|
197
|
+
<dropi-button text="Guardar" severity="primary" (onClick)="onSave($event)"></dropi-button>
|
|
181
198
|
```
|
|
182
199
|
|
|
183
200
|
---
|
|
@@ -195,9 +212,9 @@ Checkbox estilizado con soporte para formularios nativos.
|
|
|
195
212
|
|
|
196
213
|
**Eventos**
|
|
197
214
|
|
|
198
|
-
| Evento | `e.detail` | Cuándo |
|
|
215
|
+
| Evento React | `e.detail` | Cuándo |
|
|
199
216
|
|---|---|---|
|
|
200
|
-
| `
|
|
217
|
+
| `onOnChange` | `boolean` | Al cambiar el estado (`true` = marcado, `false` = desmarcado) |
|
|
201
218
|
|
|
202
219
|
> `e.detail` es el boolean directamente. Si ves "el objeto completo" es porque estás leyendo `e` en vez de `e.detail`.
|
|
203
220
|
|
|
@@ -207,13 +224,13 @@ const [checked, setChecked] = useState(false)
|
|
|
207
224
|
|
|
208
225
|
<DropiCheckbox
|
|
209
226
|
checked={checked}
|
|
210
|
-
|
|
227
|
+
onOnChange={(e) => setChecked(e.detail)}
|
|
211
228
|
/>
|
|
212
229
|
```
|
|
213
230
|
|
|
214
231
|
**Ejemplo Angular**
|
|
215
232
|
```html
|
|
216
|
-
<dropi-checkbox [checked]="checked" (
|
|
233
|
+
<dropi-checkbox [checked]="checked" (onChange)="checked = $event.detail"></dropi-checkbox>
|
|
217
234
|
```
|
|
218
235
|
|
|
219
236
|
---
|
|
@@ -231,15 +248,15 @@ Toggle switch on/off.
|
|
|
231
248
|
|
|
232
249
|
**Eventos**
|
|
233
250
|
|
|
234
|
-
| Evento | `e.detail` | Cuándo |
|
|
251
|
+
| Evento React | `e.detail` | Cuándo |
|
|
235
252
|
|---|---|---|
|
|
236
|
-
| `
|
|
253
|
+
| `onOnChange` | `boolean` | Al togglear (`true` = encendido, `false` = apagado) |
|
|
237
254
|
|
|
238
255
|
**Ejemplo React**
|
|
239
256
|
```tsx
|
|
240
257
|
const [on, setOn] = useState(false)
|
|
241
258
|
|
|
242
|
-
<DropiSwitch isChecked={on}
|
|
259
|
+
<DropiSwitch isChecked={on} onOnChange={(e) => setOn(e.detail)} />
|
|
243
260
|
```
|
|
244
261
|
|
|
245
262
|
---
|
|
@@ -277,12 +294,12 @@ Campo de texto con label flotante, validación, ícono, toggle de contraseña, f
|
|
|
277
294
|
|
|
278
295
|
**Eventos**
|
|
279
296
|
|
|
280
|
-
| Evento | `e.detail` | Cuándo |
|
|
297
|
+
| Evento React | `e.detail` | Cuándo |
|
|
281
298
|
|---|---|---|
|
|
282
|
-
| `
|
|
283
|
-
| `
|
|
284
|
-
| `
|
|
285
|
-
| `
|
|
299
|
+
| `onOnInput` | `string` | En cada tecla (keystroke) |
|
|
300
|
+
| `onOnChange` | `string` | Al perder el foco (blur) |
|
|
301
|
+
| `onOnFocus` | `void` | Al enfocar el campo |
|
|
302
|
+
| `onOnBlur` | `void` | Al desenfocar el campo |
|
|
286
303
|
|
|
287
304
|
**Ejemplo React**
|
|
288
305
|
```tsx
|
|
@@ -291,8 +308,8 @@ const [value, setValue] = useState('')
|
|
|
291
308
|
<DropiInput
|
|
292
309
|
label="Nombre"
|
|
293
310
|
value={value}
|
|
294
|
-
|
|
295
|
-
|
|
311
|
+
onOnInput={(e) => setValue(e.detail)}
|
|
312
|
+
onOnChange={(e) => console.log('blur:', e.detail)}
|
|
296
313
|
required
|
|
297
314
|
invalid={value.length < 3}
|
|
298
315
|
helperText="Mínimo 3 caracteres"
|
|
@@ -326,12 +343,12 @@ const [value, setValue] = useState('')
|
|
|
326
343
|
|
|
327
344
|
**Eventos**
|
|
328
345
|
|
|
329
|
-
| Evento | `e.detail` | Cuándo |
|
|
346
|
+
| Evento React | `e.detail` | Cuándo |
|
|
330
347
|
|---|---|---|
|
|
331
|
-
| `
|
|
332
|
-
| `
|
|
333
|
-
| `
|
|
334
|
-
| `
|
|
348
|
+
| `onDropiInput` | `string` | En cada tecla (keystroke) |
|
|
349
|
+
| `onDropiChange` | `string` | Al perder el foco (blur) |
|
|
350
|
+
| `onDropiFocus` | `void` | Al enfocar el campo |
|
|
351
|
+
| `onDropiBlur` | `void` | Al desenfocar el campo |
|
|
335
352
|
|
|
336
353
|
**Ejemplo React**
|
|
337
354
|
```tsx
|
|
@@ -407,13 +424,13 @@ interface SelectOptionGroup {
|
|
|
407
424
|
|
|
408
425
|
**Eventos**
|
|
409
426
|
|
|
410
|
-
| Evento | `e.detail` | Cuándo |
|
|
427
|
+
| Evento React | `e.detail` | Cuándo |
|
|
411
428
|
|---|---|---|
|
|
412
|
-
| `
|
|
413
|
-
| `
|
|
414
|
-
| `
|
|
415
|
-
| `
|
|
416
|
-
| `
|
|
429
|
+
| `onOnChangeSelect` | `SelectOption` (single) o `SelectOption[]` (multi) | Al seleccionar una opción |
|
|
430
|
+
| `onOnClear` | `void` | Al limpiar la selección |
|
|
431
|
+
| `onOnSearch` | `string` | Al escribir en el buscador |
|
|
432
|
+
| `onScrolledToEnd` | `void` | Al llegar al final del scroll (paginación) |
|
|
433
|
+
| `onOnKeyEnter` | `KeyboardEvent` | Al presionar Enter en el buscador |
|
|
417
434
|
|
|
418
435
|
**Ejemplo React**
|
|
419
436
|
```tsx
|
|
@@ -428,7 +445,7 @@ const options = [
|
|
|
428
445
|
label="País"
|
|
429
446
|
options={options}
|
|
430
447
|
searchEnabled
|
|
431
|
-
|
|
448
|
+
onOnChangeSelect={(e) => setSelected(e.detail)}
|
|
432
449
|
/>
|
|
433
450
|
```
|
|
434
451
|
|
|
@@ -450,9 +467,9 @@ Radio button estilizado con label y soporte para grupos.
|
|
|
450
467
|
|
|
451
468
|
**Eventos**
|
|
452
469
|
|
|
453
|
-
| Evento | `e.detail` | Cuándo |
|
|
470
|
+
| Evento React | `e.detail` | Cuándo |
|
|
454
471
|
|---|---|---|
|
|
455
|
-
| `
|
|
472
|
+
| `onOnChange` | `Event` (evento nativo) | Al seleccionar el radio |
|
|
456
473
|
|
|
457
474
|
> A diferencia del checkbox, emite el `Event` nativo. Para controlar el estado, maneja la prop `checked` desde el padre.
|
|
458
475
|
|
|
@@ -460,8 +477,8 @@ Radio button estilizado con label y soporte para grupos.
|
|
|
460
477
|
```tsx
|
|
461
478
|
const [selected, setSelected] = useState('a')
|
|
462
479
|
|
|
463
|
-
<DropiRadioButton label="Opción A" name="grupo" inputId="opt-a" checked={selected === 'a'}
|
|
464
|
-
<DropiRadioButton label="Opción B" name="grupo" inputId="opt-b" checked={selected === 'b'}
|
|
480
|
+
<DropiRadioButton label="Opción A" name="grupo" inputId="opt-a" checked={selected === 'a'} onOnChange={() => setSelected('a')} />
|
|
481
|
+
<DropiRadioButton label="Opción B" name="grupo" inputId="opt-b" checked={selected === 'b'} onOnChange={() => setSelected('b')} />
|
|
465
482
|
```
|
|
466
483
|
|
|
467
484
|
---
|
|
@@ -549,11 +566,17 @@ Sistema de pestañas con contadores y estados.
|
|
|
549
566
|
| `tabs` | `TabItem[]` | `[]` | Lista de tabs `{ id, label, counter, active, disabled, completed }` |
|
|
550
567
|
| `showIcon` | `boolean` | `false` | Mostrar check si `completed` |
|
|
551
568
|
|
|
569
|
+
**Eventos**
|
|
570
|
+
|
|
571
|
+
| Evento React | `e.detail` | Cuándo |
|
|
572
|
+
|---|---|---|
|
|
573
|
+
| `onOnIndexChanged` | `TabItem` | Al cambiar de tab |
|
|
574
|
+
|
|
552
575
|
**Ejemplo React**
|
|
553
576
|
```tsx
|
|
554
577
|
<DropiTabs
|
|
555
578
|
tabs={[{ id: 1, label: 'Activos', counter: 5 }]}
|
|
556
|
-
|
|
579
|
+
onOnIndexChanged={(e) => console.log(e.detail)}
|
|
557
580
|
/>
|
|
558
581
|
```
|
|
559
582
|
|
|
@@ -606,11 +629,17 @@ Control de paginación.
|
|
|
606
629
|
| `rows` | `number` | `10` | Registros por página |
|
|
607
630
|
| `showPageSizeSelector` | `boolean` | `false` | Selector de cantidad por página |
|
|
608
631
|
|
|
632
|
+
**Eventos**
|
|
633
|
+
|
|
634
|
+
| Evento React | `e.detail` | Cuándo |
|
|
635
|
+
|---|---|---|
|
|
636
|
+
| `onPageChange` | `number` | Al cambiar de página |
|
|
637
|
+
|
|
609
638
|
**Ejemplo React**
|
|
610
639
|
```tsx
|
|
611
640
|
<DropiPaginator
|
|
612
641
|
total={100}
|
|
613
|
-
|
|
642
|
+
onPageChange={(e) => console.log(e.detail)}
|
|
614
643
|
/>
|
|
615
644
|
```
|
|
616
645
|
|
|
@@ -629,6 +658,12 @@ Pantalla de "no hay datos".
|
|
|
629
658
|
| `actionLabel` | `string` | `''` | Texto botón principal |
|
|
630
659
|
| `secondaryLabel` | `string` | `''` | Texto botón secundario |
|
|
631
660
|
|
|
661
|
+
**Eventos**
|
|
662
|
+
|
|
663
|
+
| Evento React | `e.detail` | Cuándo |
|
|
664
|
+
|---|---|---|
|
|
665
|
+
| `onButtonClickEvent` | `void` | Al hacer click en el botón principal |
|
|
666
|
+
|
|
632
667
|
---
|
|
633
668
|
|
|
634
669
|
### `<dropi-tooltip>` (V2)
|
|
@@ -669,12 +704,14 @@ Tabla de datos con paginación local/backend, ordenación, búsqueda y checkbox
|
|
|
669
704
|
|
|
670
705
|
**Eventos**
|
|
671
706
|
|
|
672
|
-
| Evento | `e.detail` | Cuándo |
|
|
707
|
+
| Evento React | `e.detail` | Cuándo |
|
|
673
708
|
|---|---|---|
|
|
674
|
-
| `
|
|
675
|
-
| `
|
|
676
|
-
| `
|
|
677
|
-
| `
|
|
709
|
+
| `onDropiSelection` | `number[]` | Checkbox cambia selección |
|
|
710
|
+
| `onDropiSort` | `{ key: string; dir: SortDir }` | Click en columna ordenable |
|
|
711
|
+
| `onDropiPageChange` | `number` | Cambio de página (backend) |
|
|
712
|
+
| `onDropiAction` | `{ row: TableRow; action: any }` | Click en acción de fila |
|
|
713
|
+
| `onDropiRowClick` | `{ row: TableRow; index: number }` | Click en una fila |
|
|
714
|
+
| `onDropiSearch` | `string` | Al buscar |
|
|
678
715
|
|
|
679
716
|
**Ejemplo Angular**
|
|
680
717
|
```html
|
|
@@ -683,8 +720,8 @@ Tabla de datos con paginación local/backend, ordenación, búsqueda y checkbox
|
|
|
683
720
|
[data]="data"
|
|
684
721
|
[dropiTableConfiguration]="{ backendPagination: false, showPaginator: true, pageSizeConfiguration: [5, 10, 25] }"
|
|
685
722
|
[loading]="loading"
|
|
686
|
-
(
|
|
687
|
-
(
|
|
723
|
+
(dropiSort)="onSort($event)"
|
|
724
|
+
(dropiSelection)="onSelect($event)"
|
|
688
725
|
/>
|
|
689
726
|
```
|
|
690
727
|
|
|
@@ -702,19 +739,36 @@ Ventana de diálogo con overlays.
|
|
|
702
739
|
| `size` | `'s' \| 'm' \| 'l' \| 'full' ...` | `'m'` | Tamaño |
|
|
703
740
|
| `visible` | `boolean` | `false` | Controlar visibilidad vía prop |
|
|
704
741
|
|
|
742
|
+
**Eventos**
|
|
743
|
+
|
|
744
|
+
| Evento React | `e.detail` | Cuándo |
|
|
745
|
+
|---|---|---|
|
|
746
|
+
| `onOnShow` | `void` | Al abrir el modal |
|
|
747
|
+
| `onOnHide` | `void` | Al cerrar el modal |
|
|
748
|
+
| `onVisibleChange` | `boolean` | Al cambiar `visible` |
|
|
749
|
+
|
|
705
750
|
**Ejemplo React (Imperativo)**
|
|
706
751
|
```tsx
|
|
707
752
|
const modalRef = useRef<any>(null);
|
|
708
753
|
const Modal = DropiModal as any;
|
|
709
754
|
|
|
710
|
-
<Modal ref={modalRef} header="Mi Modal">
|
|
755
|
+
<Modal ref={modalRef} header="Mi Modal" onOnHide={() => console.log('cerrado')}>
|
|
711
756
|
<p>Contenido</p>
|
|
712
757
|
<div slot="footer">
|
|
713
|
-
<DropiButton text="Cerrar"
|
|
758
|
+
<DropiButton text="Cerrar" onOnClick={() => modalRef.current.hide()} />
|
|
714
759
|
</div>
|
|
715
760
|
</Modal>
|
|
716
761
|
```
|
|
717
762
|
|
|
763
|
+
**Ejemplo React (Declarativo con `visible`)**
|
|
764
|
+
```tsx
|
|
765
|
+
const [open, setOpen] = useState(false);
|
|
766
|
+
|
|
767
|
+
<DropiModal visible={open} header="Confirmar" onOnHide={() => setOpen(false)}>
|
|
768
|
+
<p>¿Estás seguro?</p>
|
|
769
|
+
</DropiModal>
|
|
770
|
+
```
|
|
771
|
+
|
|
718
772
|
---
|
|
719
773
|
|
|
720
774
|
### `<dropi-toast>`
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-C8kwDvpf.js');
|
|
4
|
-
|
|
5
|
-
const dropiAccordionItemCss = () => `:host{display:block;border-bottom:1px solid var(--Gray-Gray-100)}.accordion-header{width:100%;display:flex;justify-content:space-between;align-items:center;padding:16px;background:white;border:none;cursor:pointer;text-align:left}.accordion-header-left{display:flex;align-items:center;gap:8px}.accordion-title{font-size:var(--font-size-m);font-weight:var(--font-weight-semibold);color:var(--Gray-Gray-700)}.accordion-chevron{transition:transform 0.3s ease}.accordion-chevron--open{transform:rotate(180deg)}.accordion-body{overflow:hidden;transition:max-height 0.3s ease-out}.accordion-content{padding:0 16px 16px 16px}`;
|
|
6
|
-
|
|
7
|
-
const DropiAccordionItem = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
index.registerInstance(this, hostRef);
|
|
10
|
-
}
|
|
11
|
-
get el() { return index.getElement(this); }
|
|
12
|
-
/** The title of the item — matches Angular `sectionTitle` */
|
|
13
|
-
sectionTitle = '';
|
|
14
|
-
/** Index of the item — matches Angular `index` */
|
|
15
|
-
index;
|
|
16
|
-
/** Whether the section is expanded */
|
|
17
|
-
open = false;
|
|
18
|
-
/** Disable toggling */
|
|
19
|
-
disabled = false;
|
|
20
|
-
/** Icon name before title */
|
|
21
|
-
preIcon = '';
|
|
22
|
-
contentHeight = '0px';
|
|
23
|
-
contentRef;
|
|
24
|
-
openChanged(val) {
|
|
25
|
-
this.updateHeight(val);
|
|
26
|
-
}
|
|
27
|
-
componentDidLoad() {
|
|
28
|
-
this.updateHeight(this.open);
|
|
29
|
-
}
|
|
30
|
-
updateHeight(open) {
|
|
31
|
-
if (!this.contentRef)
|
|
32
|
-
return;
|
|
33
|
-
this.contentHeight = open ? `${this.contentRef.scrollHeight}px` : '0px';
|
|
34
|
-
}
|
|
35
|
-
handleToggle() {
|
|
36
|
-
if (this.disabled)
|
|
37
|
-
return;
|
|
38
|
-
// Notify parent if needed, or just toggle locally
|
|
39
|
-
this.el.closest('dropi-accordion');
|
|
40
|
-
this.open = !this.open;
|
|
41
|
-
setTimeout(() => this.updateHeight(this.open), 0);
|
|
42
|
-
}
|
|
43
|
-
render() {
|
|
44
|
-
return (index.h("div", { key: '43f4ce6c38338a90a3b866a449f14e48b478e738', class: { 'accordion-item': true, 'accordion-item--open': this.open, 'accordion-item--disabled': this.disabled } }, index.h("button", { key: 'b5150a903bf75b82ffea9707e5906dc17f0bcd1c', class: "accordion-header", onClick: () => this.handleToggle(), "aria-expanded": String(this.open), disabled: this.disabled }, index.h("span", { key: '53f5c6a4e5a9d02412145395112368ddea9af746', class: "accordion-header-left" }, this.preIcon && index.h("dropi-icon", { key: '5fea3e2916fe5dfb6c1435f08c3b63aca4656523', name: this.preIcon, width: "20px", height: "20px", color: "Gray-Gray-600" }), index.h("span", { key: '3ad504dcf5d8b4f05d11a0e951a81b79428de3ec', class: "accordion-title" }, this.sectionTitle)), index.h("span", { key: 'bd44cf2fe9989fc80badb6e46a33a9d699c90f49', class: { 'accordion-chevron': true, 'accordion-chevron--open': this.open } }, index.h("dropi-icon", { key: '7a4b261df5ffd4c6276e4cccc6bc5e8f8e43a717', name: "Dropdown-down", width: "20px", height: "20px", color: "Gray-Gray-500" }))), index.h("div", { key: 'cb8789f49d4c83e33f2c366b90220b79b5619502', class: "accordion-body", style: { maxHeight: this.contentHeight }, ref: (el) => this.contentRef = el }, index.h("div", { key: '72d302242a40c9aa60a941814ac311a540b319f6', class: "accordion-content" }, index.h("slot", { key: 'b5a4a42f0d366f1f0409f719a52d5af11d77e3c3' })))));
|
|
45
|
-
}
|
|
46
|
-
static get watchers() { return {
|
|
47
|
-
"open": [{
|
|
48
|
-
"openChanged": 0
|
|
49
|
-
}]
|
|
50
|
-
}; }
|
|
51
|
-
};
|
|
52
|
-
DropiAccordionItem.style = dropiAccordionItemCss();
|
|
53
|
-
|
|
54
|
-
exports.dropi_accordion_item = DropiAccordionItem;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-C8kwDvpf.js');
|
|
4
|
-
|
|
5
|
-
const dropiAccordionCss = () => `:host{display:block;width:100%;margin-bottom:-1px}*,*::before,*::after{box-sizing:border-box}.accordion{border-top:1px solid var(--Gray-Gray-100,#e6eaf2);border-bottom:1px solid var(--Gray-Gray-100,#e6eaf2);overflow:hidden}.accordion-header{width:100%;display:flex;align-items:center;justify-content:space-between;padding:var(--Size-4,16px) var(--Size-5,20px);background:transparent;border:none;cursor:pointer;gap:12px;text-align:left}.accordion-header:disabled{cursor:not-allowed;opacity:0.5}.accordion--open .accordion-header{border-bottom:1px solid var(--Gray-Gray-100,#e6eaf2)}.accordion-header-left{display:flex;align-items:center;gap:8px;flex:1;min-width:0}.accordion-title{font-size:var(--font-size-m, 16px);font-weight:var(--font-weight-bold,700);color:var(--Gray-Gray-600, #475066);line-height:1.4}.accordion-chevron{display:flex;align-items:center;flex-shrink:0;transition:transform 0.22s ease}.accordion-chevron--open{transform:rotate(180deg)}.accordion-body{max-height:0;overflow:hidden;transition:max-height 0.28s ease}.accordion-content{padding:0 var(--Size-5,20px) var(--Size-4,16px);color:var(--Gray-Gray-600,#475066);font-size:var(--font-size-s,12px);line-height:1.6}`;
|
|
6
|
-
|
|
7
|
-
const DropiAccordion = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
index.registerInstance(this, hostRef);
|
|
10
|
-
}
|
|
11
|
-
/** Allows multiple sections to be open at the same time. If false, only one section can be open. */
|
|
12
|
-
multiple = false;
|
|
13
|
-
render() {
|
|
14
|
-
return (index.h("div", { key: '15575b05adec26235378bb459cdf158bdabe2852', class: "accordion-container" }, index.h("slot", { key: 'e5411aee85b69e50c777657b0cb2aa7d04d09fa4' })));
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
DropiAccordion.style = dropiAccordionCss();
|
|
18
|
-
|
|
19
|
-
exports.dropi_accordion = DropiAccordion;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-C8kwDvpf.js');
|
|
4
|
-
|
|
5
|
-
const dropiAlertLegacyCss = () => `:host{display:block;margin:10px 0}.alert-legacy{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-radius:var(--Border-2);font-size:var(--font-size-s)}.alert-legacy--success{background:var(--Success-Success-50);color:var(--Success-Success-700);border:1px solid var(--Success-Success-200)}.alert-legacy--error{background:var(--Error-Error-50);color:var(--Error-Error-700);border:1px solid var(--Error-Error-200)}.alert-legacy--warning{background:var(--Warning-Warning-50);color:var(--Warning-Warning-700);border:1px solid var(--Warning-Warning-200)}.alert-legacy--info{background:var(--Info-Info-50);color:var(--Info-Info-700);border:1px solid var(--Info-Info-200)}.alert-legacy__close{background:transparent;border:none;font-size:20px;cursor:pointer;color:currentColor;opacity:0.6}.alert-legacy__close:hover{opacity:1}`;
|
|
6
|
-
|
|
7
|
-
const DropiAlertLegacy = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
index.registerInstance(this, hostRef);
|
|
10
|
-
}
|
|
11
|
-
/** Visibility toggle */
|
|
12
|
-
visible = false;
|
|
13
|
-
/** Alert message */
|
|
14
|
-
message = '';
|
|
15
|
-
/** Semantic type: success | error | warning | info */
|
|
16
|
-
type = 'success';
|
|
17
|
-
/** Automatically close after timeout */
|
|
18
|
-
autoClose = false;
|
|
19
|
-
timer;
|
|
20
|
-
componentDidLoad() {
|
|
21
|
-
if (this.autoClose && this.visible) {
|
|
22
|
-
this.startTimer();
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
startTimer() {
|
|
26
|
-
clearTimeout(this.timer);
|
|
27
|
-
this.timer = setTimeout(() => {
|
|
28
|
-
this.visible = false;
|
|
29
|
-
}, 7000);
|
|
30
|
-
}
|
|
31
|
-
render() {
|
|
32
|
-
if (!this.visible)
|
|
33
|
-
return null;
|
|
34
|
-
return (index.h("div", { class: { 'alert-legacy': true, [`alert-legacy--${this.type}`]: true } }, index.h("div", { class: "alert-legacy__content" }, index.h("span", { class: "alert-legacy__message" }, this.message)), index.h("button", { class: "alert-legacy__close", onClick: () => this.visible = false }, "\u00D7")));
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
DropiAlertLegacy.style = dropiAlertLegacyCss();
|
|
38
|
-
|
|
39
|
-
exports.dropi_alert_legacy = DropiAlertLegacy;
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('./index-C8kwDvpf.js');
|
|
4
|
-
|
|
5
|
-
const dropiAlertModalCss = () => `:host{display:contents}.body-alert{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:var(--Size-3);width:100%;flex:1;overflow:visible;padding-bottom:var(--Size-2)}.lottie-img{width:120px;height:120px;overflow:hidden;flex-shrink:0;align-self:center;margin-top:-8px;margin-bottom:var(--Size-2)}.lottie-img lottie-player{display:block;width:120px;height:120px}.lottie-img--loading{width:100%;height:120px;overflow:hidden;display:flex;align-items:center;justify-content:center}.lottie-img--loading lottie-player{width:300px;height:auto;flex-shrink:0}.content-alert{text-align:center;width:100%;display:flex;flex-direction:column;align-items:center}.content-alert h2{color:var(--Gray-Gray-800);font-size:19px;font-weight:var(--font-weight-semibold);margin:0}.content-alert p{color:var(--Gray-Gray-500);font-size:var(--font-size-s);margin-bottom:var(--Size-2);overflow-wrap:anywhere;max-height:100px;overflow:auto}.custom-content{width:100%;text-align:left;margin-top:var(--Size-2);display:flex;flex-direction:column;gap:var(--Size-3)}.actions{display:flex;gap:var(--Size-3);width:100%}.actions dropi-button{flex:1;display:flex;justify-content:center}@media (max-width: 768px){.actions{flex-direction:column}.actions dropi-button{width:100%}}`;
|
|
6
|
-
|
|
7
|
-
const DropiAlertModal = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
index.registerInstance(this, hostRef);
|
|
10
|
-
this.primaryButtonEvent = index.createEvent(this, "primaryButtonEvent", 7);
|
|
11
|
-
this.secondaryButtonEvent = index.createEvent(this, "secondaryButtonEvent", 7);
|
|
12
|
-
this.modalOpenChange = index.createEvent(this, "modalOpenChange", 7);
|
|
13
|
-
this.onHide = index.createEvent(this, "onHide", 7);
|
|
14
|
-
}
|
|
15
|
-
/** Controls visibility */
|
|
16
|
-
visible = false;
|
|
17
|
-
/** Modal type — determines Lottie animation */
|
|
18
|
-
type = 'question';
|
|
19
|
-
/** Bold title */
|
|
20
|
-
tittle = '';
|
|
21
|
-
/** Body message */
|
|
22
|
-
message = '';
|
|
23
|
-
/** Primary button label */
|
|
24
|
-
primaryButton = 'Accept';
|
|
25
|
-
/** Secondary button label (hidden if empty) */
|
|
26
|
-
secondaryButton = '';
|
|
27
|
-
/** Show loading state with loading.json Lottie */
|
|
28
|
-
loading = false;
|
|
29
|
-
/** Show close icon in header */
|
|
30
|
-
closable = false;
|
|
31
|
-
/** Hide action buttons */
|
|
32
|
-
displayButtons = true;
|
|
33
|
-
/** Loading title */
|
|
34
|
-
loadingTitle = 'Loading';
|
|
35
|
-
/** Loading message */
|
|
36
|
-
loadingMessage = 'Please wait a moment';
|
|
37
|
-
/**
|
|
38
|
-
* When true, primary button does NOT auto-close the modal (matches Angular `isStep`).
|
|
39
|
-
* Useful for step-by-step flows.
|
|
40
|
-
*/
|
|
41
|
-
isStep = false;
|
|
42
|
-
/** Base z-index for the internal modal overlay (matches Angular `baseZIndex`) */
|
|
43
|
-
baseZIndex = 0;
|
|
44
|
-
/**
|
|
45
|
-
* Convenience object prop — matches Angular `params: ModalParams`.
|
|
46
|
-
* Fields: tittle, type, message, primaryButton, secondaryButton, loadingTitle,
|
|
47
|
-
* loadingMessage, closable, displayButtons.
|
|
48
|
-
* When provided, its values override the corresponding individual props.
|
|
49
|
-
*/
|
|
50
|
-
params = null;
|
|
51
|
-
paramsChanged(val) {
|
|
52
|
-
if (!val)
|
|
53
|
-
return;
|
|
54
|
-
if (val.tittle !== undefined)
|
|
55
|
-
this.tittle = val.tittle;
|
|
56
|
-
if (val.type !== undefined)
|
|
57
|
-
this.type = val.type;
|
|
58
|
-
if (val.message !== undefined)
|
|
59
|
-
this.message = val.message;
|
|
60
|
-
if (val.primaryButton !== undefined)
|
|
61
|
-
this.primaryButton = val.primaryButton;
|
|
62
|
-
if (val.secondaryButton !== undefined)
|
|
63
|
-
this.secondaryButton = val.secondaryButton;
|
|
64
|
-
if (val.loadingTitle !== undefined)
|
|
65
|
-
this.loadingTitle = val.loadingTitle;
|
|
66
|
-
if (val.loadingMessage !== undefined)
|
|
67
|
-
this.loadingMessage = val.loadingMessage;
|
|
68
|
-
if (val.closable !== undefined)
|
|
69
|
-
this.closable = val.closable;
|
|
70
|
-
if (val.displayButtons !== undefined)
|
|
71
|
-
this.displayButtons = val.displayButtons;
|
|
72
|
-
}
|
|
73
|
-
/** Emitted when primary button is clicked — matches Angular 'primaryButtonEvent' */
|
|
74
|
-
primaryButtonEvent;
|
|
75
|
-
/** Emitted when secondary button is clicked — matches Angular 'secondaryButtonEvent' */
|
|
76
|
-
secondaryButtonEvent;
|
|
77
|
-
/** Emitted when modal open state changes — matches Angular 'modalOpenChange' */
|
|
78
|
-
modalOpenChange;
|
|
79
|
-
/** Emitted when modal is hidden — matches Angular 'onHide' */
|
|
80
|
-
onHide;
|
|
81
|
-
lottieMap = {
|
|
82
|
-
question: '/assets/lottie-files/question.json',
|
|
83
|
-
warning: '/assets/lottie-files/warning.json',
|
|
84
|
-
success: '/assets/lottie-files/success.json',
|
|
85
|
-
error: '/assets/lottie-files/failure.json',
|
|
86
|
-
loading: '/assets/lottie-files/loading.json',
|
|
87
|
-
};
|
|
88
|
-
componentWillLoad() {
|
|
89
|
-
if (this.params)
|
|
90
|
-
this.paramsChanged(this.params);
|
|
91
|
-
}
|
|
92
|
-
async show() {
|
|
93
|
-
this.visible = true;
|
|
94
|
-
}
|
|
95
|
-
async hide() {
|
|
96
|
-
this.visible = false;
|
|
97
|
-
}
|
|
98
|
-
handlePrimary() {
|
|
99
|
-
this.primaryButtonEvent.emit(true);
|
|
100
|
-
if (!this.isStep) {
|
|
101
|
-
this.visible = false;
|
|
102
|
-
this.modalOpenChange.emit(false);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
handleSecondary() {
|
|
106
|
-
this.secondaryButtonEvent.emit(true);
|
|
107
|
-
this.visible = false;
|
|
108
|
-
this.modalOpenChange.emit(false);
|
|
109
|
-
}
|
|
110
|
-
onModalHide() {
|
|
111
|
-
this.visible = false;
|
|
112
|
-
this.modalOpenChange.emit(false);
|
|
113
|
-
this.onHide.emit();
|
|
114
|
-
}
|
|
115
|
-
render() {
|
|
116
|
-
const lottieKey = this.loading ? 'loading' : this.type;
|
|
117
|
-
const isLottieLoading = lottieKey === 'loading';
|
|
118
|
-
return (index.h("dropi-modal", { key: '8581cbc944d42889228cb21fa27bf4e8b3bf1e16', visible: this.visible, showHeader: this.closable, showCloseIcon: this.closable, dismissable: false, closeOnEscape: false, showFooter: false, size: "s", onOnHide: () => this.onModalHide() }, index.h("div", { key: '7208cbe742dab77bcee14150998aff5647fd41af', class: "body-alert" }, this.lottieMap[lottieKey] && (index.h("div", { key: '3b4d36963f8d6547556eee704823c8e34805b8d8', class: `lottie-img${isLottieLoading ? ' lottie-img--loading' : ''}` }, index.h("lottie-player", { key: lottieKey, src: this.lottieMap[lottieKey], background: "transparent", speed: "1", loop: true, autoplay: true }))), index.h("div", { key: 'dc52f3daec2eaf7ff9f1d51c90c67bcfaafe370f', class: "content-alert" }, index.h("h2", { key: '685df4cb76145cf6e965dd94e5f3fe60f828100c' }, this.loading ? this.loadingTitle : this.tittle), index.h("p", { key: 'f9e5b699816236148bc00c5046c6cc67eb86ae01' }, this.loading ? this.loadingMessage : this.message)), index.h("div", { key: '2e9280865cad761bea5cdd88b972734c11ab7737', class: "custom-content" }, index.h("slot", { key: '4fd36baa1455e7793a1e5291b52448707e3aa448' })), !this.loading && this.displayButtons && (index.h("div", { key: '451bd3d90ec780499d9956a8a57a0d1461406fa9', class: "actions" }, this.secondaryButton && index.h("dropi-button", { key: 'b60c30cc92cc080c01e1bf337a5e4b78f561be81', text: this.secondaryButton, severity: "secondary", onClick: () => this.handleSecondary(), fullWidth: true }), index.h("dropi-button", { key: '2b8696a02b253d289a1baef2116cffe436346717', text: this.primaryButton, severity: "primary", onClick: () => this.handlePrimary(), fullWidth: true }))))));
|
|
119
|
-
}
|
|
120
|
-
static get watchers() { return {
|
|
121
|
-
"params": [{
|
|
122
|
-
"paramsChanged": 0
|
|
123
|
-
}]
|
|
124
|
-
}; }
|
|
125
|
-
};
|
|
126
|
-
DropiAlertModal.style = dropiAlertModalCss();
|
|
127
|
-
|
|
128
|
-
exports.dropi_alert_modal = DropiAlertModal;
|