@dropi/ui-components 1.0.0
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/.gitignore +13 -0
- package/CONTRIBUTING.md +188 -0
- package/MIGRATION_STEPS.md +39 -0
- package/PUBLISH_CHECKLIST.md +97 -0
- package/QUICK_START.md +108 -0
- package/README.md +146 -0
- package/jest.config.ts +21 -0
- package/ng-package.json +8 -0
- package/package.json +66 -0
- package/project.json +48 -0
- package/publish.sh +113 -0
- package/src/components-source/accordion/accordion-item/accordion-item.component.html +12 -0
- package/src/components-source/accordion/accordion-item/accordion-item.component.scss +47 -0
- package/src/components-source/accordion/accordion-item/accordion-item.component.spec.ts +122 -0
- package/src/components-source/accordion/accordion-item/accordion-item.component.ts +42 -0
- package/src/components-source/accordion/accordion.component.html +3 -0
- package/src/components-source/accordion/accordion.component.scss +5 -0
- package/src/components-source/accordion/accordion.component.spec.ts +243 -0
- package/src/components-source/accordion/accordion.component.stories.ts +111 -0
- package/src/components-source/accordion/accordion.component.ts +43 -0
- package/src/components-source/alert/alert.component.html +28 -0
- package/src/components-source/alert/alert.component.scss +154 -0
- package/src/components-source/alert/alert.component.spec.ts +185 -0
- package/src/components-source/alert/alert.component.stories.ts +310 -0
- package/src/components-source/alert/alert.component.ts +203 -0
- package/src/components-source/alert-legacy/alert.component.html +21 -0
- package/src/components-source/alert-legacy/alert.component.scss +42 -0
- package/src/components-source/alert-legacy/alert.component.spec.ts +159 -0
- package/src/components-source/alert-legacy/alert.component.ts +33 -0
- package/src/components-source/alert-modal/alert-modal.component.html +124 -0
- package/src/components-source/alert-modal/alert-modal.component.scss +203 -0
- package/src/components-source/alert-modal/alert-modal.component.spec.ts +557 -0
- package/src/components-source/alert-modal/alert-modal.component.stories.ts +295 -0
- package/src/components-source/alert-modal/alert-modal.component.ts +294 -0
- package/src/components-source/alert-modal/services/template-alert-modal.service.ts +75 -0
- package/src/components-source/badge/badge.component.html +49 -0
- package/src/components-source/badge/badge.component.scss +57 -0
- package/src/components-source/badge/badge.component.spec.ts +181 -0
- package/src/components-source/badge/badge.component.ts +21 -0
- package/src/components-source/breadcrumb/breadcrumb.component.html +5 -0
- package/src/components-source/breadcrumb/breadcrumb.component.scss +46 -0
- package/src/components-source/breadcrumb/breadcrumb.component.spec.ts +279 -0
- package/src/components-source/breadcrumb/breadcrumb.component.ts +24 -0
- package/src/components-source/card-product/card-product.component.html +173 -0
- package/src/components-source/card-product/card-product.component.spec.ts +601 -0
- package/src/components-source/card-product/card-product.component.stories.ts +322 -0
- package/src/components-source/card-product/card-product.component.ts +1101 -0
- package/src/components-source/card-section/card-section.component.html +22 -0
- package/src/components-source/card-section/card-section.component.scss +14 -0
- package/src/components-source/card-section/card-section.component.spec.ts +333 -0
- package/src/components-source/card-section/card-section.component.stories.ts +141 -0
- package/src/components-source/card-section/card-section.component.ts +35 -0
- package/src/components-source/checkbox-selection-list/checkbox-selection-list.component.html +38 -0
- package/src/components-source/checkbox-selection-list/checkbox-selection-list.component.scss +147 -0
- package/src/components-source/checkbox-selection-list/checkbox-selection-list.component.spec.ts +555 -0
- package/src/components-source/checkbox-selection-list/checkbox-selection-list.component.stories.ts +157 -0
- package/src/components-source/checkbox-selection-list/checkbox-selection-list.component.ts +219 -0
- package/src/components-source/city-selector/city-selector.component.html +22 -0
- package/src/components-source/city-selector/city-selector.component.scss +1 -0
- package/src/components-source/city-selector/city-selector.component.spec.ts +278 -0
- package/src/components-source/city-selector/city-selector.component.stories.ts +200 -0
- package/src/components-source/city-selector/city-selector.component.ts +151 -0
- package/src/components-source/color-picker/color-picker.component.html +54 -0
- package/src/components-source/color-picker/color-picker.component.scss +203 -0
- package/src/components-source/color-picker/color-picker.component.spec.ts +148 -0
- package/src/components-source/color-picker/color-picker.component.stories.ts +70 -0
- package/src/components-source/color-picker/color-picker.component.ts +353 -0
- package/src/components-source/country-flags/country-flags.component.html +10 -0
- package/src/components-source/country-flags/country-flags.component.scss +34 -0
- package/src/components-source/country-flags/country-flags.component.spec.ts +78 -0
- package/src/components-source/country-flags/country-flags.component.ts +18 -0
- package/src/components-source/date-picker/date-picker.component.html +35 -0
- package/src/components-source/date-picker/date-picker.component.scss +388 -0
- package/src/components-source/date-picker/date-picker.component.spec.ts +510 -0
- package/src/components-source/date-picker/date-picker.component.stories.ts +444 -0
- package/src/components-source/date-picker/date-picker.component.ts +313 -0
- package/src/components-source/date-picker/date-picker.stories.spec.ts +150 -0
- package/src/components-source/date-picker-range/date-picker-range.component.html +45 -0
- package/src/components-source/date-picker-range/date-picker-range.component.scss +229 -0
- package/src/components-source/date-picker-range/date-picker-range.component.spec.ts +555 -0
- package/src/components-source/date-picker-range/date-picker-range.component.ts +254 -0
- package/src/components-source/dropi-avatars/dropi-avatars.component.html +17 -0
- package/src/components-source/dropi-avatars/dropi-avatars.component.scss +58 -0
- package/src/components-source/dropi-avatars/dropi-avatars.component.spec.ts +403 -0
- package/src/components-source/dropi-avatars/dropi-avatars.component.ts +24 -0
- package/src/components-source/dropi-badge/dropi-badge.component.html +12 -0
- package/src/components-source/dropi-badge/dropi-badge.component.scss +50 -0
- package/src/components-source/dropi-badge/dropi-badge.component.spec.ts +108 -0
- package/src/components-source/dropi-badge/dropi-badge.component.stories.ts +140 -0
- package/src/components-source/dropi-badge/dropi-badge.component.ts +39 -0
- package/src/components-source/dropi-banner-external/dropi-banner-external.component.html +67 -0
- package/src/components-source/dropi-banner-external/dropi-banner-external.component.scss +46 -0
- package/src/components-source/dropi-banner-external/dropi-banner-external.component.spec.ts +170 -0
- package/src/components-source/dropi-banner-external/dropi-banner-external.component.stories.ts +203 -0
- package/src/components-source/dropi-banner-external/dropi-banner-external.component.ts +204 -0
- package/src/components-source/dropi-breadcrumb/dropi-breadcrumb.component.html +65 -0
- package/src/components-source/dropi-breadcrumb/dropi-breadcrumb.component.scss +65 -0
- package/src/components-source/dropi-breadcrumb/dropi-breadcrumb.component.spec.ts +125 -0
- package/src/components-source/dropi-breadcrumb/dropi-breadcrumb.component.ts +38 -0
- package/src/components-source/dropi-breadcrumb/dropi-breadcrumb.stories.ts +133 -0
- package/src/components-source/dropi-button/dropi-button.component.html +37 -0
- package/src/components-source/dropi-button/dropi-button.component.scss +266 -0
- package/src/components-source/dropi-button/dropi-button.component.spec.ts +264 -0
- package/src/components-source/dropi-button/dropi-button.component.stories.ts +221 -0
- package/src/components-source/dropi-button/dropi-button.component.ts +82 -0
- package/src/components-source/dropi-card-checkbox/dropi-card-checkbox.component.html +24 -0
- package/src/components-source/dropi-card-checkbox/dropi-card-checkbox.component.scss +85 -0
- package/src/components-source/dropi-card-checkbox/dropi-card-checkbox.component.spec.ts +157 -0
- package/src/components-source/dropi-card-checkbox/dropi-card-checkbox.component.stories.ts +209 -0
- package/src/components-source/dropi-card-checkbox/dropi-card-checkbox.component.ts +41 -0
- package/src/components-source/dropi-carousel/dropi-carousel.component.html +57 -0
- package/src/components-source/dropi-carousel/dropi-carousel.component.scss +156 -0
- package/src/components-source/dropi-carousel/dropi-carousel.component.spec.ts +224 -0
- package/src/components-source/dropi-carousel/dropi-carousel.component.ts +266 -0
- package/src/components-source/dropi-carousel/dropi-carousel.stories.ts +365 -0
- package/src/components-source/dropi-checkbox/dropi-checkbox.component.css +39 -0
- package/src/components-source/dropi-checkbox/dropi-checkbox.component.html +18 -0
- package/src/components-source/dropi-checkbox/dropi-checkbox.component.spec.ts +155 -0
- package/src/components-source/dropi-checkbox/dropi-checkbox.component.stories.ts +101 -0
- package/src/components-source/dropi-checkbox/dropi-checkbox.component.ts +25 -0
- package/src/components-source/dropi-chips/dropi-chips.component.html +10 -0
- package/src/components-source/dropi-chips/dropi-chips.component.scss +54 -0
- package/src/components-source/dropi-chips/dropi-chips.component.spec.ts +356 -0
- package/src/components-source/dropi-chips/dropi-chips.component.stories.ts +275 -0
- package/src/components-source/dropi-chips/dropi-chips.component.ts +100 -0
- package/src/components-source/dropi-country-selector/countries.data.ts +239 -0
- package/src/components-source/dropi-country-selector/dropi-country-selector.component.html +59 -0
- package/src/components-source/dropi-country-selector/dropi-country-selector.component.scss +126 -0
- package/src/components-source/dropi-country-selector/dropi-country-selector.component.spec.ts +244 -0
- package/src/components-source/dropi-country-selector/dropi-country-selector.component.stories.ts +117 -0
- package/src/components-source/dropi-country-selector/dropi-country-selector.component.ts +179 -0
- package/src/components-source/dropi-drawer/dropi-drawer.component.html +23 -0
- package/src/components-source/dropi-drawer/dropi-drawer.component.scss +88 -0
- package/src/components-source/dropi-drawer/dropi-drawer.component.spec.ts +84 -0
- package/src/components-source/dropi-drawer/dropi-drawer.component.ts +90 -0
- package/src/components-source/dropi-dropdown/dropi-dropdown.component.html +30 -0
- package/src/components-source/dropi-dropdown/dropi-dropdown.component.scss +58 -0
- package/src/components-source/dropi-dropdown/dropi-dropdown.component.spec.ts +213 -0
- package/src/components-source/dropi-dropdown/dropi-dropdown.component.stories.ts +143 -0
- package/src/components-source/dropi-dropdown/dropi-dropdown.component.ts +53 -0
- package/src/components-source/dropi-favorite-button/dropi-favorite-button.component.html +23 -0
- package/src/components-source/dropi-favorite-button/dropi-favorite-button.component.scss +21 -0
- package/src/components-source/dropi-favorite-button/dropi-favorite-button.component.spec.ts +240 -0
- package/src/components-source/dropi-favorite-button/dropi-favorite-button.component.ts +31 -0
- package/src/components-source/dropi-file-upload/card-view/card-view.component.html +154 -0
- package/src/components-source/dropi-file-upload/card-view/card-view.component.scss +118 -0
- package/src/components-source/dropi-file-upload/card-view/card-view.component.ts +72 -0
- package/src/components-source/dropi-file-upload/drop-zone/drop-zone.coment.stories.ts +179 -0
- package/src/components-source/dropi-file-upload/drop-zone/drop-zone.component.html +111 -0
- package/src/components-source/dropi-file-upload/drop-zone/drop-zone.component.scss +90 -0
- package/src/components-source/dropi-file-upload/drop-zone/drop-zone.component.ts +172 -0
- package/src/components-source/dropi-file-upload/dropi-file-upload.component.html +42 -0
- package/src/components-source/dropi-file-upload/dropi-file-upload.component.scss +31 -0
- package/src/components-source/dropi-file-upload/dropi-file-upload.component.spec.ts +398 -0
- package/src/components-source/dropi-file-upload/dropi-file-upload.component.stories.ts +139 -0
- package/src/components-source/dropi-file-upload/dropi-file-upload.component.ts +329 -0
- package/src/components-source/dropi-file-upload/file-list/file-list.component.html +51 -0
- package/src/components-source/dropi-file-upload/file-list/file-list.component.scss +60 -0
- package/src/components-source/dropi-file-upload/file-list/file-list.component.ts +84 -0
- package/src/components-source/dropi-file-upload/grid-view/grid-view.component.html +77 -0
- package/src/components-source/dropi-file-upload/grid-view/grid-view.component.scss +85 -0
- package/src/components-source/dropi-file-upload/grid-view/grid-view.component.ts +35 -0
- package/src/components-source/dropi-ilustration-icon/dropi-ilustration-icon.component.html +38 -0
- package/src/components-source/dropi-ilustration-icon/dropi-ilustration-icon.component.scss +59 -0
- package/src/components-source/dropi-ilustration-icon/dropi-ilustration-icon.component.spec.ts +214 -0
- package/src/components-source/dropi-ilustration-icon/dropi-ilustration-icon.component.ts +65 -0
- package/src/components-source/dropi-image-overlay/dropi-image-overlay.component.html +54 -0
- package/src/components-source/dropi-image-overlay/dropi-image-overlay.component.scss +210 -0
- package/src/components-source/dropi-image-overlay/dropi-image-overlay.component.spec.ts +145 -0
- package/src/components-source/dropi-image-overlay/dropi-image-overlay.component.ts +76 -0
- package/src/components-source/dropi-image-overlay/dropi-image-overlay.stories.ts +267 -0
- package/src/components-source/dropi-languages-selector/dropi-languages-selector.component.html +17 -0
- package/src/components-source/dropi-languages-selector/dropi-languages-selector.component.scss +82 -0
- package/src/components-source/dropi-languages-selector/dropi-languages-selector.component.spec.ts +152 -0
- package/src/components-source/dropi-languages-selector/dropi-languages-selector.component.ts +41 -0
- package/src/components-source/dropi-logo/dropi-logo.component.html +3 -0
- package/src/components-source/dropi-logo/dropi-logo.component.scss +20 -0
- package/src/components-source/dropi-logo/dropi-logo.component.spec.ts +274 -0
- package/src/components-source/dropi-logo/dropi-logo.component.ts +24 -0
- package/src/components-source/dropi-modal/dropi-modal-stack.service.ts +75 -0
- package/src/components-source/dropi-modal/dropi-modal.component.html +55 -0
- package/src/components-source/dropi-modal/dropi-modal.component.scss +274 -0
- package/src/components-source/dropi-modal/dropi-modal.component.spec.ts +46 -0
- package/src/components-source/dropi-modal/dropi-modal.component.stories.ts +392 -0
- package/src/components-source/dropi-modal/dropi-modal.component.ts +392 -0
- package/src/components-source/dropi-modal/p-template.directive.ts +11 -0
- package/src/components-source/dropi-navbar/dropi-navbar.component.html +41 -0
- package/src/components-source/dropi-navbar/dropi-navbar.component.scss +227 -0
- package/src/components-source/dropi-navbar/dropi-navbar.component.spec.ts +110 -0
- package/src/components-source/dropi-navbar/dropi-navbar.component.ts +52 -0
- package/src/components-source/dropi-paginator/dropi-paginator.component.html +64 -0
- package/src/components-source/dropi-paginator/dropi-paginator.component.scss +43 -0
- package/src/components-source/dropi-paginator/dropi-paginator.component.spec.ts +285 -0
- package/src/components-source/dropi-paginator/dropi-paginator.component.stories.ts +345 -0
- package/src/components-source/dropi-paginator/dropi-paginator.component.ts +85 -0
- package/src/components-source/dropi-phone-input/dropi-phone-input.component.html +93 -0
- package/src/components-source/dropi-phone-input/dropi-phone-input.component.scss +224 -0
- package/src/components-source/dropi-phone-input/dropi-phone-input.component.spec.ts +376 -0
- package/src/components-source/dropi-phone-input/dropi-phone-input.component.ts +203 -0
- package/src/components-source/dropi-phone-input/numeric-input.directive.ts +17 -0
- package/src/components-source/dropi-radio-button/dropi-radio-button.component.html +8 -0
- package/src/components-source/dropi-radio-button/dropi-radio-button.component.scss +33 -0
- package/src/components-source/dropi-radio-button/dropi-radio-button.component.spec.ts +225 -0
- package/src/components-source/dropi-radio-button/dropi-radio-button.component.ts +48 -0
- package/src/components-source/dropi-search/dropi-search.component.html +124 -0
- package/src/components-source/dropi-search/dropi-search.component.scss +116 -0
- package/src/components-source/dropi-search/dropi-search.component.spec.ts +483 -0
- package/src/components-source/dropi-search/dropi-search.component.stories.ts +267 -0
- package/src/components-source/dropi-search/dropi-search.component.ts +230 -0
- package/src/components-source/dropi-select/dropi-select.component.html +158 -0
- package/src/components-source/dropi-select/dropi-select.component.scss +275 -0
- package/src/components-source/dropi-select/dropi-select.component.spec.ts +386 -0
- package/src/components-source/dropi-select/dropi-select.component.stories.ts +686 -0
- package/src/components-source/dropi-select/dropi-select.component.ts +465 -0
- package/src/components-source/dropi-skeleton/dropi-skeleton.component.html +10 -0
- package/src/components-source/dropi-skeleton/dropi-skeleton.component.scss +28 -0
- package/src/components-source/dropi-skeleton/dropi-skeleton.component.spec.ts +273 -0
- package/src/components-source/dropi-skeleton/dropi-skeleton.component.stories.ts +145 -0
- package/src/components-source/dropi-skeleton/dropi-skeleton.component.ts +30 -0
- package/src/components-source/dropi-steps/dropi-steps.component.html +29 -0
- package/src/components-source/dropi-steps/dropi-steps.component.scss +110 -0
- package/src/components-source/dropi-steps/dropi-steps.component.spec.ts +228 -0
- package/src/components-source/dropi-steps/dropi-steps.component.stories.ts +231 -0
- package/src/components-source/dropi-steps/dropi-steps.component.ts +98 -0
- package/src/components-source/dropi-switch/dropi-switch.component.html +4 -0
- package/src/components-source/dropi-switch/dropi-switch.component.scss +50 -0
- package/src/components-source/dropi-switch/dropi-switch.component.spec.ts +105 -0
- package/src/components-source/dropi-switch/dropi-switch.component.stories.ts +106 -0
- package/src/components-source/dropi-switch/dropi-switch.component.ts +22 -0
- package/src/components-source/dropi-table/dropi-table.component.html +395 -0
- package/src/components-source/dropi-table/dropi-table.component.scss +506 -0
- package/src/components-source/dropi-table/dropi-table.component.spec.ts +578 -0
- package/src/components-source/dropi-table/dropi-table.component.stories.ts +313 -0
- package/src/components-source/dropi-table/dropi-table.component.ts +580 -0
- package/src/components-source/dropi-tag/dropi-tag.component.html +17 -0
- package/src/components-source/dropi-tag/dropi-tag.component.scss +50 -0
- package/src/components-source/dropi-tag/dropi-tag.component.spec.ts +267 -0
- package/src/components-source/dropi-tag/dropi-tag.component.stories.ts +290 -0
- package/src/components-source/dropi-tag/dropi-tag.component.ts +92 -0
- package/src/components-source/dropi-text-area/droip-text-area.component.stories.ts +138 -0
- package/src/components-source/dropi-text-area/dropi-text-area.component.html +63 -0
- package/src/components-source/dropi-text-area/dropi-text-area.component.scss +106 -0
- package/src/components-source/dropi-text-area/dropi-text-area.component.spec.ts +507 -0
- package/src/components-source/dropi-text-area/dropi-text-area.component.ts +80 -0
- package/src/components-source/dropi-tooltip/dropi-tooltip.component.html +70 -0
- package/src/components-source/dropi-tooltip/dropi-tooltip.component.scss +250 -0
- package/src/components-source/dropi-tooltip/dropi-tooltip.component.spec.ts +423 -0
- package/src/components-source/dropi-tooltip/dropi-tooltip.component.ts +153 -0
- package/src/components-source/dropi-youtube-lazy-video/dropi-youtube-lazy-video.component.html +20 -0
- package/src/components-source/dropi-youtube-lazy-video/dropi-youtube-lazy-video.component.scss +63 -0
- package/src/components-source/dropi-youtube-lazy-video/dropi-youtube-lazy-video.component.spec.ts +121 -0
- package/src/components-source/dropi-youtube-lazy-video/dropi-youtube-lazy-video.component.ts +43 -0
- package/src/components-source/dropi-youtube-lazy-video/dropi-youtube-lazy-video.stories.ts +125 -0
- package/src/components-source/empty-state/empty-state.component.html +30 -0
- package/src/components-source/empty-state/empty-state.component.scss +76 -0
- package/src/components-source/empty-state/empty-state.component.spec.ts +244 -0
- package/src/components-source/empty-state/empty-state.component.stories.ts +198 -0
- package/src/components-source/empty-state/empty-state.component.ts +34 -0
- package/src/components-source/file-upload-progress-bar/file-upload-progress-bar.component.html +81 -0
- package/src/components-source/file-upload-progress-bar/file-upload-progress-bar.component.scss +86 -0
- package/src/components-source/file-upload-progress-bar/file-upload-progress-bar.component.spec.ts +27 -0
- package/src/components-source/file-upload-progress-bar/file-upload-progress-bar.component.stories.ts +149 -0
- package/src/components-source/file-upload-progress-bar/file-upload-progress-bar.component.ts +89 -0
- package/src/components-source/foundations/dropi-border-radius-demo/dropi-border-radius-demo.component.scss +32 -0
- package/src/components-source/foundations/dropi-border-radius-demo/dropi-border-radius-demo.component.ts +17 -0
- package/src/components-source/foundations/foundations.component.html +183 -0
- package/src/components-source/foundations/foundations.component.scss +31 -0
- package/src/components-source/foundations/foundations.component.ts +26 -0
- package/src/components-source/icon/icon-names.const.ts +270 -0
- package/src/components-source/icon/icon.component.html +3 -0
- package/src/components-source/icon/icon.component.scss +4 -0
- package/src/components-source/icon/icon.component.spec.ts +304 -0
- package/src/components-source/icon/icon.component.ts +53 -0
- package/src/components-source/index.ts +89 -0
- package/src/components-source/input/input.component.html +97 -0
- package/src/components-source/input/input.component.scss +149 -0
- package/src/components-source/input/input.component.spec.ts +243 -0
- package/src/components-source/input/input.component.stories.ts +269 -0
- package/src/components-source/input/input.component.ts +119 -0
- package/src/components-source/lottie-loader/lottie-loader.component.html +16 -0
- package/src/components-source/lottie-loader/lottie-loader.component.scss +32 -0
- package/src/components-source/lottie-loader/lottie-loader.component.spec.ts +103 -0
- package/src/components-source/lottie-loader/lottie-loader.component.ts +20 -0
- package/src/components-source/otp-send-code/mock-otp-services.ts +214 -0
- package/src/components-source/otp-send-code/otp-send-code.component.html +151 -0
- package/src/components-source/otp-send-code/otp-send-code.component.scss +156 -0
- package/src/components-source/otp-send-code/otp-send-code.component.spec.ts +419 -0
- package/src/components-source/otp-send-code/otp-send-code.component.stories.ts +190 -0
- package/src/components-source/otp-send-code/otp-send-code.component.ts +659 -0
- package/src/components-source/radio-selection-list/radio-selection-list.component.html +107 -0
- package/src/components-source/radio-selection-list/radio-selection-list.component.scss +280 -0
- package/src/components-source/radio-selection-list/radio-selection-list.component.spec.ts +243 -0
- package/src/components-source/radio-selection-list/radio-selection-list.component.stories.ts +313 -0
- package/src/components-source/radio-selection-list/radio-selection-list.component.ts +143 -0
- package/src/components-source/read-more/read-more.component.html +14 -0
- package/src/components-source/read-more/read-more.component.scss +16 -0
- package/src/components-source/read-more/read-more.component.spec.ts +272 -0
- package/src/components-source/read-more/read-more.component.stories.ts +131 -0
- package/src/components-source/read-more/read-more.component.ts +88 -0
- package/src/components-source/sidebar/sidebar.component.html +42 -0
- package/src/components-source/sidebar/sidebar.component.scss +70 -0
- package/src/components-source/sidebar/sidebar.component.spec.ts +354 -0
- package/src/components-source/sidebar/sidebar.component.stories.ts +145 -0
- package/src/components-source/sidebar/sidebar.component.ts +105 -0
- package/src/components-source/simple-stepper/simple-stepper.component.html +17 -0
- package/src/components-source/simple-stepper/simple-stepper.component.scss +117 -0
- package/src/components-source/simple-stepper/simple-stepper.component.spec.ts +348 -0
- package/src/components-source/simple-stepper/simple-stepper.component.stories.ts +104 -0
- package/src/components-source/simple-stepper/simple-stepper.component.ts +69 -0
- package/src/components-source/storybook-doc-components/avatars-storybook/avatars-storybook.component.html +192 -0
- package/src/components-source/storybook-doc-components/avatars-storybook/avatars-storybook.component.scss +15 -0
- package/src/components-source/storybook-doc-components/avatars-storybook/avatars-storybook.component.ts +17 -0
- package/src/components-source/storybook-doc-components/border-radius-storybook/border-radius-storybook.component.html +22 -0
- package/src/components-source/storybook-doc-components/border-radius-storybook/border-radius-storybook.component.scss +0 -0
- package/src/components-source/storybook-doc-components/border-radius-storybook/border-radius-storybook.component.ts +54 -0
- package/src/components-source/storybook-doc-components/breakpoints-and-grids-storybook/breakpoints-and-grids-storybook.component.css +81 -0
- package/src/components-source/storybook-doc-components/breakpoints-and-grids-storybook/breakpoints-and-grids-storybook.component.html +143 -0
- package/src/components-source/storybook-doc-components/breakpoints-and-grids-storybook/breakpoints-and-grids-storybook.component.ts +97 -0
- package/src/components-source/storybook-doc-components/colors-storybook/colors-storybook.component.css +10 -0
- package/src/components-source/storybook-doc-components/colors-storybook/colors-storybook.component.html +63 -0
- package/src/components-source/storybook-doc-components/colors-storybook/colors-storybook.component.ts +542 -0
- package/src/components-source/storybook-doc-components/dropi-modal/dropi-modal.component.html +132 -0
- package/src/components-source/storybook-doc-components/dropi-modal/dropi-modal.component.scss +15 -0
- package/src/components-source/storybook-doc-components/dropi-modal/dropi-modal.component.ts +67 -0
- package/src/components-source/storybook-doc-components/dropi-toast/dropi-toast.component.html +156 -0
- package/src/components-source/storybook-doc-components/dropi-toast/dropi-toast.component.scss +13 -0
- package/src/components-source/storybook-doc-components/dropi-toast/dropi-toast.component.ts +55 -0
- package/src/components-source/storybook-doc-components/flags-storybook/flags-storybook.component.css +0 -0
- package/src/components-source/storybook-doc-components/flags-storybook/flags-storybook.component.html +99 -0
- package/src/components-source/storybook-doc-components/flags-storybook/flags-storybook.component.ts +19 -0
- package/src/components-source/storybook-doc-components/icons-storybook/icons-storybook.component.css +82 -0
- package/src/components-source/storybook-doc-components/icons-storybook/icons-storybook.component.html +111 -0
- package/src/components-source/storybook-doc-components/icons-storybook/icons-storybook.component.ts +196 -0
- package/src/components-source/storybook-doc-components/logo-storybook/logo-foundations.component.ts +19 -0
- package/src/components-source/storybook-doc-components/logo-storybook/logo-storybook.component.css +0 -0
- package/src/components-source/storybook-doc-components/logo-storybook/logo-storybook.component.html +104 -0
- package/src/components-source/storybook-doc-components/lustration-storybook/lustration-storybook.component.css +0 -0
- package/src/components-source/storybook-doc-components/lustration-storybook/lustration-storybook.component.html +218 -0
- package/src/components-source/storybook-doc-components/lustration-storybook/lustration-storybook.component.ts +20 -0
- package/src/components-source/storybook-doc-components/shadow-storybook/shadow-storybook.component.html +21 -0
- package/src/components-source/storybook-doc-components/shadow-storybook/shadow-storybook.component.scss +0 -0
- package/src/components-source/storybook-doc-components/shadow-storybook/shadow-storybook.component.ts +66 -0
- package/src/components-source/storybook-doc-components/spacing-storybook/spacing-storybook.component.html +33 -0
- package/src/components-source/storybook-doc-components/spacing-storybook/spacing-storybook.component.scss +0 -0
- package/src/components-source/storybook-doc-components/spacing-storybook/spacing-storybook.component.ts +37 -0
- package/src/components-source/storybook-doc-components/story-page/story-page.component.html +74 -0
- package/src/components-source/storybook-doc-components/story-page/story-page.component.scss +103 -0
- package/src/components-source/storybook-doc-components/story-page/story-page.component.ts +424 -0
- package/src/components-source/storybook-doc-components/template-breakpoint-storybook/template-breakpoint-storybook.component.html +35 -0
- package/src/components-source/storybook-doc-components/template-breakpoint-storybook/template-breakpoint-storybook.component.scss +64 -0
- package/src/components-source/storybook-doc-components/template-breakpoint-storybook/template-breakpoint-storybook.component.ts +71 -0
- package/src/components-source/storybook-doc-components/tillte-table-documentation/tillte-table-documentation.component.html +44 -0
- package/src/components-source/storybook-doc-components/tillte-table-documentation/tillte-table-documentation.component.scss +270 -0
- package/src/components-source/storybook-doc-components/tillte-table-documentation/tillte-table-documentation.component.ts +153 -0
- package/src/components-source/tabs/tabs.component.html +26 -0
- package/src/components-source/tabs/tabs.component.scss +62 -0
- package/src/components-source/tabs/tabs.component.spec.ts +212 -0
- package/src/components-source/tabs/tabs.component.stories.ts +203 -0
- package/src/components-source/tabs/tabs.component.ts +138 -0
- package/src/components-source/tag-type-product/tag-type-product.component.html +1 -0
- package/src/components-source/tag-type-product/tag-type-product.component.scss +10 -0
- package/src/components-source/tag-type-product/tag-type-product.component.spec.ts +38 -0
- package/src/components-source/tag-type-product/tag-type-product.component.ts +9 -0
- package/src/components-source/toast/toast.component.html +37 -0
- package/src/components-source/toast/toast.component.scss +142 -0
- package/src/components-source/toast/toast.component.spec.ts +368 -0
- package/src/components-source/toast/toast.component.ts +59 -0
- package/src/components-source/toast/toast.stories.ts +69 -0
- package/src/components-source/tooltip/tooltip.component.html +46 -0
- package/src/components-source/tooltip/tooltip.component.scss +44 -0
- package/src/components-source/tooltip/tooltip.component.spec.ts +327 -0
- package/src/components-source/tooltip/tooltip.component.ts +24 -0
- package/src/components-source/ui-dropi.module.ts +125 -0
- package/src/components-source/ui-inventory.json +1138 -0
- package/src/components-source/vertical-steps/vertical-steps.component.html +35 -0
- package/src/components-source/vertical-steps/vertical-steps.component.scss +143 -0
- package/src/components-source/vertical-steps/vertical-steps.component.spec.ts +121 -0
- package/src/components-source/vertical-steps/vertical-steps.component.stories.ts +216 -0
- package/src/components-source/vertical-steps/vertical-steps.component.ts +151 -0
- package/src/index.ts +31 -0
- package/src/lib/bootstrap.ts +28 -0
- package/src/lib/dropi-ui-elements/dropi-ui-elements.component.html +1 -0
- package/src/lib/dropi-ui-elements/dropi-ui-elements.component.scss +0 -0
- package/src/lib/dropi-ui-elements/dropi-ui-elements.component.spec.ts +21 -0
- package/src/lib/dropi-ui-elements/dropi-ui-elements.component.ts +9 -0
- package/src/lib/elements-registry.ts +66 -0
- package/src/lib/elements.module.ts +22 -0
- package/src/styles.scss +152 -0
- package/src/test-setup.ts +6 -0
- package/tsconfig.json +28 -0
- package/tsconfig.lib.json +18 -0
- package/tsconfig.lib.prod.json +9 -0
- package/tsconfig.spec.json +12 -0
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
<div class="container">
|
|
2
|
+
<h1>Documentación: Uso del Componente app-icon</h1>
|
|
3
|
+
<br />
|
|
4
|
+
<p style="margin-bottom: 3rem">
|
|
5
|
+
El componente <app-icon> permite insertar un ícono personalizado en la aplicación con
|
|
6
|
+
distintos estilos configurables mediante atributos.
|
|
7
|
+
</p>
|
|
8
|
+
<br />
|
|
9
|
+
|
|
10
|
+
<h2>Uso del Componente</h2>
|
|
11
|
+
<br />
|
|
12
|
+
<p>Para invocar el componente en tu aplicación, utiliza la siguiente sintaxis:</p>
|
|
13
|
+
|
|
14
|
+
<pre>
|
|
15
|
+
<code appPrismHighlight class="language-html">
|
|
16
|
+
<app-icon name="Apps" width="32px" height="32px" color="Neutral-Black"></app-icon>
|
|
17
|
+
</code>
|
|
18
|
+
</pre>
|
|
19
|
+
|
|
20
|
+
<h2>Propiedades Disponibles</h2>
|
|
21
|
+
<hr />
|
|
22
|
+
<br />
|
|
23
|
+
<p>El componente acepta los siguientes atributos para personalizar su apariencia:</p>
|
|
24
|
+
<table class="icon-table">
|
|
25
|
+
<thead>
|
|
26
|
+
<tr>
|
|
27
|
+
<th>Propiedad</th>
|
|
28
|
+
<th>Descripción</th>
|
|
29
|
+
<th>Ejemplo</th>
|
|
30
|
+
</tr>
|
|
31
|
+
</thead>
|
|
32
|
+
<tbody>
|
|
33
|
+
<tr>
|
|
34
|
+
<td>name</td>
|
|
35
|
+
<td>Nombre del ícono a mostrar</td>
|
|
36
|
+
<td>"Apps"</td>
|
|
37
|
+
</tr>
|
|
38
|
+
<tr>
|
|
39
|
+
<td>width</td>
|
|
40
|
+
<td>Ancho del ícono en cualquier unidad válida</td>
|
|
41
|
+
<td>"32px"</td>
|
|
42
|
+
</tr>
|
|
43
|
+
<tr>
|
|
44
|
+
<td>height</td>
|
|
45
|
+
<td>Alto del ícono en cualquier unidad válida</td>
|
|
46
|
+
<td>"32px"</td>
|
|
47
|
+
</tr>
|
|
48
|
+
<tr>
|
|
49
|
+
<td>color</td>
|
|
50
|
+
<td>Color del ícono (según la paleta definida)</td>
|
|
51
|
+
<td>"Neutral-Black"</td>
|
|
52
|
+
</tr>
|
|
53
|
+
</tbody>
|
|
54
|
+
</table>
|
|
55
|
+
|
|
56
|
+
<h2 style="margin-top: 3rem">Importación del Componente</h2>
|
|
57
|
+
<h3 style="margin-top: 2rem">Si el componente es <strong>Standalone</strong></h3>
|
|
58
|
+
<p style="margin-top: 1rem">
|
|
59
|
+
Si el componente es independiente (standalone), es necesario importarlo directamente en el
|
|
60
|
+
archivo donde se usará:
|
|
61
|
+
</p>
|
|
62
|
+
|
|
63
|
+
<pre style="margin-top: 2rem">
|
|
64
|
+
<code appPrismHighlight class="language-ts">
|
|
65
|
+
{{"import { IconComponent } from '@app/ui/icon/icon.component';"}}
|
|
66
|
+
</code>
|
|
67
|
+
</pre>
|
|
68
|
+
|
|
69
|
+
<h3 style="margin-top: 3rem">Si el componente proviene de un Módulo</h3>
|
|
70
|
+
<p style="margin-top: 1rem">
|
|
71
|
+
Si el componente está incluido dentro de un módulo, entonces se debe importar en el módulo
|
|
72
|
+
correspondiente:
|
|
73
|
+
</p>
|
|
74
|
+
|
|
75
|
+
<pre style="margin-top: 2rem">
|
|
76
|
+
<code appPrismHighlight class="language-ts">
|
|
77
|
+
{{"import { UiDropiModule } from '@app/ui/ui-dropi.module';
|
|
78
|
+
|
|
79
|
+
@NgModule({
|
|
80
|
+
imports: [UiDropiModule],
|
|
81
|
+
})
|
|
82
|
+
export class SomeModule {}"}}
|
|
83
|
+
</code>
|
|
84
|
+
</pre>
|
|
85
|
+
|
|
86
|
+
<h2 style="margin-top: 3rem">Consideraciones</h2>
|
|
87
|
+
<ul style="margin-top: 1rem">
|
|
88
|
+
<li>Asegúrate de utilizar nombres de íconos válidos según la biblioteca definida.</li>
|
|
89
|
+
<li>La paleta de colores debe seguir la convención establecida en el proyecto.</li>
|
|
90
|
+
<li>
|
|
91
|
+
Verifica que el módulo o componente esté correctamente importado para evitar errores en la
|
|
92
|
+
compilación.
|
|
93
|
+
</li>
|
|
94
|
+
</ul>
|
|
95
|
+
|
|
96
|
+
<h2 class="tittleIcon" style="margin-top: 5rem">Iconos</h2>
|
|
97
|
+
|
|
98
|
+
<div class="container-icons" style="margin-top: 4rem">
|
|
99
|
+
<div
|
|
100
|
+
*ngFor="let icon of iconsList"
|
|
101
|
+
class="content-icon-list"
|
|
102
|
+
style="margin-top: 1rem"
|
|
103
|
+
(click)="copyIconName(icon)"
|
|
104
|
+
>
|
|
105
|
+
<img [src]="'assets/icons/optimized_svgs/' + icon + '.svg'" alt="" />
|
|
106
|
+
<p>{{ icon }}</p>
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
|
|
110
|
+
<p-toast></p-toast>
|
|
111
|
+
</div>
|
package/src/components-source/storybook-doc-components/icons-storybook/icons-storybook.component.ts
ADDED
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { Component, OnInit } from '@angular/core';
|
|
2
|
+
import { CommonModule, NgFor } from '@angular/common';
|
|
3
|
+
import { PrismHighlightDirective } from '@app/directives/prism-highlight.directive';
|
|
4
|
+
import { ToastModule } from 'primeng/toast';
|
|
5
|
+
import { MessageService } from 'primeng/api';
|
|
6
|
+
|
|
7
|
+
@Component({
|
|
8
|
+
selector: 'app-icons-storybook',
|
|
9
|
+
templateUrl: './icons-storybook.component.html',
|
|
10
|
+
styleUrls: ['./icons-storybook.component.css'],
|
|
11
|
+
standalone: true,
|
|
12
|
+
imports: [CommonModule, PrismHighlightDirective, ToastModule],
|
|
13
|
+
providers: [MessageService],
|
|
14
|
+
})
|
|
15
|
+
export class IconsStorybookComponent implements OnInit {
|
|
16
|
+
constructor(private messageService: MessageService) {}
|
|
17
|
+
|
|
18
|
+
iconsList = [
|
|
19
|
+
'Add-circle',
|
|
20
|
+
'Alarm-clock',
|
|
21
|
+
'Apps-add',
|
|
22
|
+
'Apps',
|
|
23
|
+
'Arrow-alt',
|
|
24
|
+
'Arrow-diagonal-down',
|
|
25
|
+
'Arrow-diagonal-up',
|
|
26
|
+
'Arrow-double-small-left',
|
|
27
|
+
'Arrow-double-small-right',
|
|
28
|
+
'Arrow-down',
|
|
29
|
+
'Arrow-left',
|
|
30
|
+
'Arrow-next',
|
|
31
|
+
'Arrow-right',
|
|
32
|
+
'Arrow-undo',
|
|
33
|
+
'Arrow-up',
|
|
34
|
+
'Ban',
|
|
35
|
+
'Bank',
|
|
36
|
+
'Bell-ring',
|
|
37
|
+
'Bell',
|
|
38
|
+
'Bold',
|
|
39
|
+
'Bolt',
|
|
40
|
+
'Book',
|
|
41
|
+
'Bookmark',
|
|
42
|
+
'Box-back',
|
|
43
|
+
'Box-close',
|
|
44
|
+
'Box',
|
|
45
|
+
'Boxes',
|
|
46
|
+
'Calculator',
|
|
47
|
+
'Calendar',
|
|
48
|
+
'Call-history',
|
|
49
|
+
'Call-incoming',
|
|
50
|
+
'Call-missed',
|
|
51
|
+
'Call-outgoing',
|
|
52
|
+
'Callcenter-alt',
|
|
53
|
+
'Canvan',
|
|
54
|
+
'Card',
|
|
55
|
+
'Caret-down-up',
|
|
56
|
+
'Caret-down',
|
|
57
|
+
'Caret-left',
|
|
58
|
+
'Caret-right',
|
|
59
|
+
'Caret-up',
|
|
60
|
+
'Certificated',
|
|
61
|
+
'Chat-arrow-down',
|
|
62
|
+
'Chat-arrow-grow',
|
|
63
|
+
'Chat-bars-grow',
|
|
64
|
+
'Check-circle',
|
|
65
|
+
'Checkbox',
|
|
66
|
+
'City',
|
|
67
|
+
'Clip',
|
|
68
|
+
'Clock',
|
|
69
|
+
'Close-large',
|
|
70
|
+
'Close-small',
|
|
71
|
+
'Comment-round-info',
|
|
72
|
+
'Comment-round-check',
|
|
73
|
+
'Comment-round-heart',
|
|
74
|
+
'Comment-round',
|
|
75
|
+
'Comment-square-user',
|
|
76
|
+
'Comment-square',
|
|
77
|
+
'Comments-round',
|
|
78
|
+
'Comments-square-dots',
|
|
79
|
+
'Comments-square',
|
|
80
|
+
'Computer',
|
|
81
|
+
'Cross-circle',
|
|
82
|
+
'Disk',
|
|
83
|
+
'Download',
|
|
84
|
+
'Dropdown-down',
|
|
85
|
+
'Dropdown-left',
|
|
86
|
+
'Dropdown-Right',
|
|
87
|
+
'Dropdown-up',
|
|
88
|
+
'Duplicate',
|
|
89
|
+
'Envelope-ban',
|
|
90
|
+
'Envelope-download',
|
|
91
|
+
'Envelope-marker',
|
|
92
|
+
'Envelope-open',
|
|
93
|
+
'Envelope-plus',
|
|
94
|
+
'Envelope',
|
|
95
|
+
'Expand',
|
|
96
|
+
'External-link',
|
|
97
|
+
'Eye-crossed',
|
|
98
|
+
'Eye',
|
|
99
|
+
'Face-smile',
|
|
100
|
+
'Facebook',
|
|
101
|
+
'File-add',
|
|
102
|
+
'File-delete',
|
|
103
|
+
'File-download',
|
|
104
|
+
'File-jpg',
|
|
105
|
+
'File-music',
|
|
106
|
+
'File-pdf',
|
|
107
|
+
'File-text',
|
|
108
|
+
'File-upload',
|
|
109
|
+
'File-video',
|
|
110
|
+
'File',
|
|
111
|
+
'Filter-alt',
|
|
112
|
+
'Filter-settings',
|
|
113
|
+
'Filter',
|
|
114
|
+
'Globe',
|
|
115
|
+
'Graduation-cap',
|
|
116
|
+
'Grid-alt',
|
|
117
|
+
'Headset',
|
|
118
|
+
'Heart-solid',
|
|
119
|
+
'Heart',
|
|
120
|
+
'Hexagon',
|
|
121
|
+
'Home',
|
|
122
|
+
'House-building',
|
|
123
|
+
'Id-badge',
|
|
124
|
+
'Image-add',
|
|
125
|
+
'Image-uploading',
|
|
126
|
+
'Inbox-in',
|
|
127
|
+
'Inbox-out',
|
|
128
|
+
'Inbox',
|
|
129
|
+
'Info',
|
|
130
|
+
'Instagram',
|
|
131
|
+
'Light-alarm',
|
|
132
|
+
'Light-bulb',
|
|
133
|
+
'Link',
|
|
134
|
+
'List-alt',
|
|
135
|
+
'List-check',
|
|
136
|
+
'List',
|
|
137
|
+
'Location-market',
|
|
138
|
+
'Lock',
|
|
139
|
+
'Map-marker-check',
|
|
140
|
+
'Map-marker-cross',
|
|
141
|
+
'Map-marker-edit',
|
|
142
|
+
'Map-marker-exclamation',
|
|
143
|
+
'Map-marker-home',
|
|
144
|
+
'Map-marker-minus',
|
|
145
|
+
'Map-marker-plus',
|
|
146
|
+
'Map-marker',
|
|
147
|
+
'Megaphone',
|
|
148
|
+
'Menu-burger',
|
|
149
|
+
'Menu-dots-vertical',
|
|
150
|
+
'Menu-dots',
|
|
151
|
+
'Minus-small',
|
|
152
|
+
'Money-1',
|
|
153
|
+
'Money-arrow-up-alt',
|
|
154
|
+
'Money-arrow-up',
|
|
155
|
+
'Money-bag',
|
|
156
|
+
'Money-coin',
|
|
157
|
+
'Money-Fee',
|
|
158
|
+
'Money-hand',
|
|
159
|
+
'Money-sending',
|
|
160
|
+
'Money-transfer',
|
|
161
|
+
'Money',
|
|
162
|
+
'Notification',
|
|
163
|
+
'Page-check',
|
|
164
|
+
'Page-edit',
|
|
165
|
+
'Page',
|
|
166
|
+
'Palette',
|
|
167
|
+
'Paper-plane',
|
|
168
|
+
'Pencil',
|
|
169
|
+
'Phone-call',
|
|
170
|
+
'Phone-cross',
|
|
171
|
+
'Play',
|
|
172
|
+
];
|
|
173
|
+
|
|
174
|
+
ngOnInit() {}
|
|
175
|
+
|
|
176
|
+
copyIconName(icon) {
|
|
177
|
+
navigator.clipboard
|
|
178
|
+
.writeText(icon)
|
|
179
|
+
.then(() => {
|
|
180
|
+
console.log('lkhfskdfhjsdfjkhjk');
|
|
181
|
+
|
|
182
|
+
this.messageService.add({
|
|
183
|
+
severity: 'success',
|
|
184
|
+
summary: 'Copiado',
|
|
185
|
+
detail: `El nombre "${icon}" ha sido copiado!`,
|
|
186
|
+
});
|
|
187
|
+
})
|
|
188
|
+
.catch((error) => {
|
|
189
|
+
this.messageService.add({
|
|
190
|
+
severity: 'error',
|
|
191
|
+
summary: 'Error',
|
|
192
|
+
detail: 'No se pudo copiar el nombre.',
|
|
193
|
+
});
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
}
|
package/src/components-source/storybook-doc-components/logo-storybook/logo-foundations.component.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { Component, OnInit } from '@angular/core';
|
|
3
|
+
import { PrismHighlightDirective } from '@app/directives/prism-highlight.directive';
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: 'app-logo-storybook',
|
|
7
|
+
templateUrl: './logo-storybook.component.html',
|
|
8
|
+
styleUrls: ['./logo-storybook.component.css'],
|
|
9
|
+
imports:[CommonModule,PrismHighlightDirective],
|
|
10
|
+
standalone:true
|
|
11
|
+
})
|
|
12
|
+
export class LogoStorybookComponent implements OnInit {
|
|
13
|
+
|
|
14
|
+
constructor() { }
|
|
15
|
+
|
|
16
|
+
ngOnInit() {
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
}
|
package/src/components-source/storybook-doc-components/logo-storybook/logo-storybook.component.css
ADDED
|
File without changes
|
package/src/components-source/storybook-doc-components/logo-storybook/logo-storybook.component.html
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
<div class="container">
|
|
2
|
+
<h1>Documentación: Uso del Componente app-icon</h1>
|
|
3
|
+
<br>
|
|
4
|
+
<p style="margin-bottom: 3rem;">
|
|
5
|
+
El componente <app-icon> permite insertar un ícono personalizado en la aplicación con distintos estilos
|
|
6
|
+
configurables mediante atributos.
|
|
7
|
+
</p>
|
|
8
|
+
<br>
|
|
9
|
+
|
|
10
|
+
<h2>Uso del Componente</h2>
|
|
11
|
+
<br>
|
|
12
|
+
<p>
|
|
13
|
+
Para invocar el componente en tu aplicación, utiliza la siguiente sintaxis:
|
|
14
|
+
</p>
|
|
15
|
+
|
|
16
|
+
<pre>
|
|
17
|
+
<code appPrismHighlight class="language-html">
|
|
18
|
+
<app-icon name="Apps" width="32px" height="32px" color="Neutral-Black"></app-icon>
|
|
19
|
+
</code>
|
|
20
|
+
</pre>
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
<h2>Propiedades Disponibles</h2>
|
|
24
|
+
<hr>
|
|
25
|
+
<br>
|
|
26
|
+
<p>El componente acepta los siguientes atributos para personalizar su apariencia:</p>
|
|
27
|
+
<table class="icon-table">
|
|
28
|
+
<thead>
|
|
29
|
+
<tr>
|
|
30
|
+
<th>Propiedad</th>
|
|
31
|
+
<th>Descripción</th>
|
|
32
|
+
<th>Ejemplo</th>
|
|
33
|
+
</tr>
|
|
34
|
+
</thead>
|
|
35
|
+
<tbody>
|
|
36
|
+
<tr>
|
|
37
|
+
<td>name</td>
|
|
38
|
+
<td>Nombre del ícono a mostrar</td>
|
|
39
|
+
<td>"Apps"</td>
|
|
40
|
+
</tr>
|
|
41
|
+
<tr>
|
|
42
|
+
<td>width</td>
|
|
43
|
+
<td>Ancho del ícono en cualquier unidad válida</td>
|
|
44
|
+
<td>"32px"</td>
|
|
45
|
+
</tr>
|
|
46
|
+
<tr>
|
|
47
|
+
<td>height</td>
|
|
48
|
+
<td>Alto del ícono en cualquier unidad válida</td>
|
|
49
|
+
<td>"32px"</td>
|
|
50
|
+
</tr>
|
|
51
|
+
<tr>
|
|
52
|
+
<td>color</td>
|
|
53
|
+
<td>Color del ícono (según la paleta definida)</td>
|
|
54
|
+
<td>"Neutral-Black"</td>
|
|
55
|
+
</tr>
|
|
56
|
+
</tbody>
|
|
57
|
+
</table>
|
|
58
|
+
|
|
59
|
+
<h2 style="margin-top: 3rem;">Importación del Componente</h2>
|
|
60
|
+
<h3 style="margin-top: 2rem;">Si el componente es <strong>Standalone</strong></h3>
|
|
61
|
+
<p style="margin-top: 1rem;">
|
|
62
|
+
Si el componente es independiente (standalone), es necesario importarlo directamente en el archivo donde se usará:
|
|
63
|
+
</p>
|
|
64
|
+
|
|
65
|
+
<pre style="margin-top: 2rem;">
|
|
66
|
+
<code appPrismHighlight class="language-ts">
|
|
67
|
+
{{"import { AppIcon } from 'ruta/del/componente/app-icon';"}}
|
|
68
|
+
</code>
|
|
69
|
+
</pre>
|
|
70
|
+
|
|
71
|
+
<h3 style="margin-top: 3rem;">Si el componente proviene de un Módulo</h3>
|
|
72
|
+
<p style="margin-top: 1rem;">Si el componente está incluido dentro de un módulo, entonces se debe importar en el
|
|
73
|
+
módulo correspondiente:</p>
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
<pre style="margin-top: 2rem;">
|
|
77
|
+
<code appPrismHighlight class="language-ts">
|
|
78
|
+
{{"import { AppIconModule } from 'ruta/del/modulo/app-icon.module';
|
|
79
|
+
|
|
80
|
+
@NgModule({
|
|
81
|
+
imports: [AppIconModule],
|
|
82
|
+
})
|
|
83
|
+
export class SomeModule {}"}}
|
|
84
|
+
</code>
|
|
85
|
+
</pre>
|
|
86
|
+
|
|
87
|
+
<h2 style="margin-top: 3rem;">Consideraciones</h2>
|
|
88
|
+
<ul style="margin-top: 1rem;">
|
|
89
|
+
<li>Asegúrate de utilizar nombres de íconos válidos según la biblioteca definida.</li>
|
|
90
|
+
<li>La paleta de colores debe seguir la convención establecida en el proyecto.</li>
|
|
91
|
+
<li>Verifica que el módulo o componente esté correctamente importado para evitar errores en la compilación.</li>
|
|
92
|
+
</ul>
|
|
93
|
+
|
|
94
|
+
<h2 class="tittleIcon" style="margin-top: 5rem;">Iconos</h2>
|
|
95
|
+
|
|
96
|
+
<div class="container-icons" style="margin-top: 4rem;">
|
|
97
|
+
<div *ngFor="let icon of iconsList" class="content-icon-list" style="margin-top: 1rem;" (click)="copyIconName(icon)">
|
|
98
|
+
<img [src]="'assets/icons/optimized_svgs/' + icon + '.svg'" alt="">
|
|
99
|
+
<p>{{ icon }}</p>
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
|
|
103
|
+
<p-toast></p-toast>
|
|
104
|
+
</div>
|
|
File without changes
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
<div class="container">
|
|
2
|
+
<h1><code appPrismHighlight><dropi-ilustration-icon></code></h1>
|
|
3
|
+
|
|
4
|
+
<h2>Descripción</h2>
|
|
5
|
+
<p>
|
|
6
|
+
El componente <code appPrismHighlight><dropi-ilustration-icon></code> permite representar
|
|
7
|
+
ilustraciones gráficas para diferentes estados:
|
|
8
|
+
<strong>éxito, error, advertencia, carga, información</strong> o <strong>insignias</strong>.
|
|
9
|
+
</p>
|
|
10
|
+
|
|
11
|
+
<h2>Uso Básico</h2>
|
|
12
|
+
<div style="display: flex; align-items: center; gap: 2rem">
|
|
13
|
+
<div style="flex: 0">
|
|
14
|
+
<dropi-ilustration-icon [type]="'dropi'" [state]="'success'"></dropi-ilustration-icon>
|
|
15
|
+
</div>
|
|
16
|
+
<div style="flex: 1">
|
|
17
|
+
<pre><code appPrismHighlight><dropi-ilustration-icon
|
|
18
|
+
[type]="'dropi'"
|
|
19
|
+
[state]="'success'"
|
|
20
|
+
></dropi-ilustration-icon></code></pre>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
<p>o para insignias:</p>
|
|
25
|
+
|
|
26
|
+
<div style="display: flex; align-items: center; gap: 2rem">
|
|
27
|
+
<div style="flex: 0">
|
|
28
|
+
<dropi-ilustration-icon
|
|
29
|
+
[type]="'insignia'"
|
|
30
|
+
[stateInsignia]="'verified'"
|
|
31
|
+
></dropi-ilustration-icon>
|
|
32
|
+
</div>
|
|
33
|
+
<div style="flex: 1">
|
|
34
|
+
<pre><code appPrismHighlight><dropi-ilustration-icon
|
|
35
|
+
[type]="'insignia'"
|
|
36
|
+
[stateInsignia]="'verified'"
|
|
37
|
+
></dropi-ilustration-icon></code></pre>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
|
|
41
|
+
<h2>Propiedades</h2>
|
|
42
|
+
<table>
|
|
43
|
+
<thead>
|
|
44
|
+
<tr>
|
|
45
|
+
<th>Propiedad</th>
|
|
46
|
+
<th>Tipo</th>
|
|
47
|
+
<th>Descripción</th>
|
|
48
|
+
</tr>
|
|
49
|
+
</thead>
|
|
50
|
+
<tbody>
|
|
51
|
+
<tr>
|
|
52
|
+
<td><code appPrismHighlight>type</code></td>
|
|
53
|
+
<td>string</td>
|
|
54
|
+
<td>
|
|
55
|
+
Tipo de ilustración: <code appPrismHighlight>'dropi'</code>,
|
|
56
|
+
<code appPrismHighlight>'mb'</code>, <code appPrismHighlight>'insignia'</code>.
|
|
57
|
+
</td>
|
|
58
|
+
</tr>
|
|
59
|
+
<tr>
|
|
60
|
+
<td><code appPrismHighlight>state</code></td>
|
|
61
|
+
<td>string</td>
|
|
62
|
+
<td>
|
|
63
|
+
Estado para ilustraciones comunes: <code appPrismHighlight>'success'</code>,
|
|
64
|
+
<code appPrismHighlight>'warning'</code>, <code appPrismHighlight>'error'</code>,
|
|
65
|
+
<code appPrismHighlight>'info'</code>, <code appPrismHighlight>'loading'</code>.
|
|
66
|
+
</td>
|
|
67
|
+
</tr>
|
|
68
|
+
<tr>
|
|
69
|
+
<td><code appPrismHighlight>stateInsignia</code></td>
|
|
70
|
+
<td>string</td>
|
|
71
|
+
<td>
|
|
72
|
+
Estado especial para insignias: <code appPrismHighlight>'verified'</code>,
|
|
73
|
+
<code appPrismHighlight>'premium'</code>.
|
|
74
|
+
</td>
|
|
75
|
+
</tr>
|
|
76
|
+
</tbody>
|
|
77
|
+
</table>
|
|
78
|
+
|
|
79
|
+
<h2>Tipos y Ejemplos</h2>
|
|
80
|
+
|
|
81
|
+
<h3>1. Ilustraciones tipo <code appPrismHighlight>'dropi'</code></h3>
|
|
82
|
+
|
|
83
|
+
<div style="display: flex; flex-direction: column; gap: 2rem">
|
|
84
|
+
<div style="display: flex; align-items: center; gap: 2rem">
|
|
85
|
+
<div style="flex: 0">
|
|
86
|
+
<dropi-ilustration-icon [type]="'dropi'" [state]="'warning'"></dropi-ilustration-icon>
|
|
87
|
+
</div>
|
|
88
|
+
<div style="flex: 1">
|
|
89
|
+
<pre><code appPrismHighlight><dropi-ilustration-icon
|
|
90
|
+
[type]="'dropi'"
|
|
91
|
+
[state]="'warning'"
|
|
92
|
+
></dropi-ilustration-icon></code></pre>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
|
|
96
|
+
<div style="display: flex; align-items: center; gap: 2rem">
|
|
97
|
+
<div style="flex: 0">
|
|
98
|
+
<dropi-ilustration-icon [type]="'dropi'" [state]="'success'"></dropi-ilustration-icon>
|
|
99
|
+
</div>
|
|
100
|
+
<div style="flex: 1">
|
|
101
|
+
<pre><code appPrismHighlight><dropi-ilustration-icon
|
|
102
|
+
[type]="'dropi'"
|
|
103
|
+
[state]="'success'"
|
|
104
|
+
></dropi-ilustration-icon></code></pre>
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
|
|
108
|
+
<div style="display: flex; align-items: center; gap: 2rem">
|
|
109
|
+
<div style="flex: 0">
|
|
110
|
+
<dropi-ilustration-icon [type]="'dropi'" [state]="'loading'"></dropi-ilustration-icon>
|
|
111
|
+
</div>
|
|
112
|
+
<div style="flex: 1">
|
|
113
|
+
<pre><code appPrismHighlight><dropi-ilustration-icon
|
|
114
|
+
[type]="'dropi'"
|
|
115
|
+
[state]="'loading'"
|
|
116
|
+
></dropi-ilustration-icon></code></pre>
|
|
117
|
+
</div>
|
|
118
|
+
</div>
|
|
119
|
+
|
|
120
|
+
<div style="display: flex; align-items: center; gap: 2rem">
|
|
121
|
+
<div style="flex: 0">
|
|
122
|
+
<dropi-ilustration-icon [type]="'dropi'" [state]="'error'"></dropi-ilustration-icon>
|
|
123
|
+
</div>
|
|
124
|
+
<div style="flex: 1">
|
|
125
|
+
<pre><code appPrismHighlight><dropi-ilustration-icon
|
|
126
|
+
[type]="'dropi'"
|
|
127
|
+
[state]="'error'"
|
|
128
|
+
></dropi-ilustration-icon></code></pre>
|
|
129
|
+
</div>
|
|
130
|
+
</div>
|
|
131
|
+
</div>
|
|
132
|
+
|
|
133
|
+
<h3>2. Ilustraciones tipo <code appPrismHighlight>'marca blanca'</code></h3>
|
|
134
|
+
|
|
135
|
+
<div style="display: flex; flex-direction: column; gap: 2rem">
|
|
136
|
+
<div style="display: flex; align-items: center; gap: 2rem">
|
|
137
|
+
<div style="flex: 0">
|
|
138
|
+
<dropi-ilustration-icon [type]="'mb'" [state]="'success'"></dropi-ilustration-icon>
|
|
139
|
+
</div>
|
|
140
|
+
<div style="flex: 1">
|
|
141
|
+
<pre><code appPrismHighlight><dropi-ilustration-icon
|
|
142
|
+
[type]="'mb'"
|
|
143
|
+
[state]="'success'"
|
|
144
|
+
></dropi-ilustration-icon></code></pre>
|
|
145
|
+
</div>
|
|
146
|
+
</div>
|
|
147
|
+
|
|
148
|
+
<div style="display: flex; align-items: center; gap: 2rem">
|
|
149
|
+
<div style="flex: 0">
|
|
150
|
+
<dropi-ilustration-icon [type]="'mb'" [state]="'error'"></dropi-ilustration-icon>
|
|
151
|
+
</div>
|
|
152
|
+
<div style="flex: 1">
|
|
153
|
+
<pre><code appPrismHighlight><dropi-ilustration-icon
|
|
154
|
+
[type]="'mb'"
|
|
155
|
+
[state]="'error'"
|
|
156
|
+
></dropi-ilustration-icon></code></pre>
|
|
157
|
+
</div>
|
|
158
|
+
</div>
|
|
159
|
+
|
|
160
|
+
<div style="display: flex; align-items: center; gap: 2rem">
|
|
161
|
+
<div style="flex: 0">
|
|
162
|
+
<dropi-ilustration-icon [type]="'mb'" [state]="'info'"></dropi-ilustration-icon>
|
|
163
|
+
</div>
|
|
164
|
+
<div style="flex: 1">
|
|
165
|
+
<pre><code appPrismHighlight><dropi-ilustration-icon
|
|
166
|
+
[type]="'mb'"
|
|
167
|
+
[state]="'info'"
|
|
168
|
+
></dropi-ilustration-icon></code></pre>
|
|
169
|
+
</div>
|
|
170
|
+
</div>
|
|
171
|
+
|
|
172
|
+
<div style="display: flex; align-items: center; gap: 2rem">
|
|
173
|
+
<div style="flex: 0">
|
|
174
|
+
<dropi-ilustration-icon [type]="'mb'" [state]="'warning'"></dropi-ilustration-icon>
|
|
175
|
+
</div>
|
|
176
|
+
<div style="flex: 1">
|
|
177
|
+
<pre><code appPrismHighlight><dropi-ilustration-icon
|
|
178
|
+
[type]="'mb'"
|
|
179
|
+
[state]="'warning'"
|
|
180
|
+
></dropi-ilustration-icon></code></pre>
|
|
181
|
+
</div>
|
|
182
|
+
</div>
|
|
183
|
+
</div>
|
|
184
|
+
|
|
185
|
+
<h3>3. Ilustraciones tipo <code appPrismHighlight>'insignia'</code></h3>
|
|
186
|
+
|
|
187
|
+
<div style="display: flex; flex-direction: column; gap: 2rem">
|
|
188
|
+
<div style="display: flex; align-items: center; gap: 2rem">
|
|
189
|
+
<div style="flex: 0">
|
|
190
|
+
<dropi-ilustration-icon
|
|
191
|
+
[type]="'insignia'"
|
|
192
|
+
[stateInsignia]="'verified'"
|
|
193
|
+
></dropi-ilustration-icon>
|
|
194
|
+
</div>
|
|
195
|
+
<div style="flex: 1">
|
|
196
|
+
<pre><code appPrismHighlight><dropi-ilustration-icon
|
|
197
|
+
[type]="'insignia'"
|
|
198
|
+
[stateInsignia]="'verified'"
|
|
199
|
+
></dropi-ilustration-icon></code></pre>
|
|
200
|
+
</div>
|
|
201
|
+
</div>
|
|
202
|
+
|
|
203
|
+
<div style="display: flex; align-items: center; gap: 2rem">
|
|
204
|
+
<div style="flex: 0">
|
|
205
|
+
<dropi-ilustration-icon
|
|
206
|
+
[type]="'insignia'"
|
|
207
|
+
[stateInsignia]="'premium'"
|
|
208
|
+
></dropi-ilustration-icon>
|
|
209
|
+
</div>
|
|
210
|
+
<div style="flex: 1">
|
|
211
|
+
<pre><code appPrismHighlight><dropi-ilustration-icon
|
|
212
|
+
[type]="'insignia'"
|
|
213
|
+
[stateInsignia]="'premium'"
|
|
214
|
+
></dropi-ilustration-icon></code></pre>
|
|
215
|
+
</div>
|
|
216
|
+
</div>
|
|
217
|
+
</div>
|
|
218
|
+
</div>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common';
|
|
2
|
+
import { Component, OnInit } from '@angular/core';
|
|
3
|
+
import { PrismHighlightDirective } from '@app/directives/prism-highlight.directive';
|
|
4
|
+
import { DropiIlustrationIconComponent } from '@app/ui/dropi-ilustration-icon/dropi-ilustration-icon.component';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'app-lustration-storybook',
|
|
8
|
+
templateUrl: './lustration-storybook.component.html',
|
|
9
|
+
styleUrls: ['./lustration-storybook.component.css'],
|
|
10
|
+
imports:[CommonModule,PrismHighlightDirective, DropiIlustrationIconComponent],
|
|
11
|
+
standalone:true
|
|
12
|
+
})
|
|
13
|
+
export class LustrationStorybookComponent implements OnInit {
|
|
14
|
+
|
|
15
|
+
constructor() { }
|
|
16
|
+
|
|
17
|
+
ngOnInit() {
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
}
|