dasar-ui 1.1.0 → 1.5.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/.dockerignore +31 -0
- package/.github/workflows/npm-publish-github-packages.yml +36 -0
- package/.versionrc.json +4 -0
- package/CHANGELOG.md +30 -0
- package/Dockerfile +26 -0
- package/angular.json +77 -0
- package/package.json +38 -24
- package/projects/dasar-ui/package.json +1 -1
- package/projects/dasar-ui/src/lib/components/dasar-button-group/dasar-button-group.ts +3 -7
- package/projects/dasar-ui/src/lib/components/dasar-calendar/dasar-calendar.ts +1 -1
- package/projects/dasar-ui/src/lib/components/dasar-card/dasar-card.ts +2 -2
- package/projects/dasar-ui/src/lib/components/dasar-chip/dasar-chip.ts +0 -2
- package/projects/dasar-ui/src/lib/components/dasar-datepicker/dasar-datepicker.html +11 -2
- package/projects/dasar-ui/src/lib/components/dasar-datepicker/dasar-datepicker.scss +30 -0
- package/projects/dasar-ui/src/lib/components/dasar-datepicker/dasar-datepicker.spec.ts +78 -6
- package/projects/dasar-ui/src/lib/components/dasar-datepicker/dasar-datepicker.ts +32 -32
- package/projects/dasar-ui/src/lib/components/dasar-icon/dasar-icon.registry.ts +0 -2
- package/projects/dasar-ui/src/lib/components/dasar-icon/dasar-icon.ts +1 -1
- package/projects/dasar-ui/src/lib/components/dasar-input/dasar-input.scss +0 -30
- package/projects/dasar-ui/src/lib/components/dasar-input/dasar-input.ts +0 -4
- package/projects/dasar-ui/src/lib/components/dasar-list/dasar-list-item.html +17 -0
- package/projects/dasar-ui/src/lib/components/dasar-list/dasar-list.html +25 -0
- package/projects/dasar-ui/src/lib/components/dasar-list/dasar-list.scss +122 -0
- package/projects/dasar-ui/src/lib/components/dasar-list/dasar-list.spec.ts +21 -0
- package/projects/dasar-ui/src/lib/components/dasar-list/dasar-list.ts +166 -0
- package/projects/dasar-ui/src/lib/components/dasar-menu/dasar-menu.html +6 -5
- package/projects/dasar-ui/src/lib/components/dasar-menu/dasar-menu.scss +39 -5
- package/projects/dasar-ui/src/lib/components/dasar-menu/dasar-menu.spec.ts +78 -6
- package/projects/dasar-ui/src/lib/components/dasar-menu/dasar-menu.ts +41 -3
- package/projects/dasar-ui/src/lib/components/dasar-modal/dasar-modal.html +72 -0
- package/projects/dasar-ui/src/lib/components/dasar-modal/dasar-modal.scss +170 -0
- package/projects/dasar-ui/src/lib/components/dasar-modal/dasar-modal.spec.ts +267 -0
- package/projects/dasar-ui/src/lib/components/dasar-modal/dasar-modal.ts +305 -0
- package/projects/dasar-ui/src/lib/components/dasar-number-input/dasar-number-input.scss +2 -7
- package/projects/dasar-ui/src/lib/components/dasar-overlay/dasar-overlay.html +11 -0
- package/projects/dasar-ui/src/lib/components/dasar-overlay/dasar-overlay.scss +18 -0
- package/projects/dasar-ui/src/lib/components/dasar-overlay/dasar-overlay.spec.ts +104 -0
- package/projects/dasar-ui/src/lib/components/dasar-overlay/dasar-overlay.ts +87 -0
- package/projects/dasar-ui/src/lib/components/dasar-pagination/dasar-pagination.ts +1 -1
- package/projects/dasar-ui/src/lib/components/dasar-pivot-table/dasar-pivot-table.html +1 -14
- package/projects/dasar-ui/src/lib/components/dasar-pivot-table/dasar-pivot-table.scss +0 -11
- package/projects/dasar-ui/src/lib/components/dasar-pivot-table/dasar-pivot-table.ts +0 -2
- package/projects/dasar-ui/src/lib/components/dasar-select/dasar-select.html +9 -5
- package/projects/dasar-ui/src/lib/components/dasar-select/dasar-select.scss +62 -22
- package/projects/dasar-ui/src/lib/components/dasar-select/dasar-select.spec.ts +82 -6
- package/projects/dasar-ui/src/lib/components/dasar-select/dasar-select.ts +47 -4
- package/projects/dasar-ui/src/lib/components/dasar-tabs/dasar-tabs.html +92 -30
- package/projects/dasar-ui/src/lib/components/dasar-tabs/dasar-tabs.scss +137 -25
- package/projects/dasar-ui/src/lib/components/dasar-tabs/dasar-tabs.spec.ts +554 -5
- package/projects/dasar-ui/src/lib/components/dasar-tabs/dasar-tabs.ts +312 -35
- package/projects/dasar-ui/src/lib/components/dasar-theme-provider/dasar-theme-provider.ts +6 -21
- package/projects/dasar-ui/src/lib/models/theme.model.ts +35 -12
- package/projects/dasar-ui/src/lib/services/theme.service.spec.ts +65 -0
- package/projects/dasar-ui/src/lib/services/theme.service.ts +68 -4
- package/projects/dasar-ui/src/lib/styles/theme.scss +47 -48
- package/projects/dasar-ui/src/lib/utils/common.ts +5 -24
- package/projects/dasar-ui/src/lib/utils/icon-size.spec.ts +23 -0
- package/projects/dasar-ui/src/lib/utils/icon-size.ts +16 -0
- package/projects/dasar-ui/src/lib/utils/panel-placement.spec.ts +90 -0
- package/projects/dasar-ui/src/lib/utils/panel-placement.ts +53 -0
- package/projects/dasar-ui/src/public-api.ts +4 -4
- package/projects/dasar-ui/tsconfig.spec.json +8 -1
- package/projects/documentation/public/favicon.ico +0 -0
- package/projects/documentation/src/app/app.html +51 -0
- package/projects/documentation/src/app/app.spec.ts +23 -0
- package/projects/documentation/src/app/app.ts +23 -0
- package/projects/documentation/src/app/components/doc-customize-modal.component.ts +314 -0
- package/projects/documentation/src/app/components/doc-example.component.ts +195 -0
- package/projects/documentation/src/app/config/app.config.server.ts +10 -0
- package/projects/documentation/src/app/config/app.config.ts +17 -0
- package/projects/documentation/src/app/layouts/doc.layout.ts +229 -0
- package/projects/documentation/src/app/pages/button/button.page.html +65 -0
- package/projects/documentation/src/app/pages/button/button.page.ts +139 -0
- package/projects/documentation/src/app/pages/button/examples/appearance/button-appearance.example.html +7 -0
- package/projects/documentation/src/app/pages/button/examples/appearance/button-appearance.example.ts +10 -0
- package/projects/documentation/src/app/pages/button/examples/icon/button-icon.example.html +19 -0
- package/projects/documentation/src/app/pages/button/examples/icon/button-icon.example.ts +10 -0
- package/projects/documentation/src/app/pages/button/examples/radius/button-radius.example.html +9 -0
- package/projects/documentation/src/app/pages/button/examples/radius/button-radius.example.ts +10 -0
- package/projects/documentation/src/app/pages/button/examples/sizes/button-sizes.example.html +7 -0
- package/projects/documentation/src/app/pages/button/examples/sizes/button-sizes.example.ts +10 -0
- package/projects/documentation/src/app/pages/button/examples/state/button-state.example.html +10 -0
- package/projects/documentation/src/app/pages/button/examples/state/button-state.example.ts +10 -0
- package/projects/documentation/src/app/pages/button/examples/variant/button-variant.example.html +9 -0
- package/projects/documentation/src/app/pages/button/examples/variant/button-variant.example.ts +10 -0
- package/projects/documentation/src/app/pages/calendar/calendar.page.html +75 -0
- package/projects/documentation/src/app/pages/calendar/calendar.page.ts +165 -0
- package/projects/documentation/src/app/pages/calendar/examples/actions/calendar-actions.example.html +21 -0
- package/projects/documentation/src/app/pages/calendar/examples/actions/calendar-actions.example.ts +10 -0
- package/projects/documentation/src/app/pages/calendar/examples/basic/calendar-basic.example.html +11 -0
- package/projects/documentation/src/app/pages/calendar/examples/basic/calendar-basic.example.ts +13 -0
- package/projects/documentation/src/app/pages/calendar/examples/custom-header/calendar-custom-header.example.html +36 -0
- package/projects/documentation/src/app/pages/calendar/examples/custom-header/calendar-custom-header.example.ts +11 -0
- package/projects/documentation/src/app/pages/calendar/examples/dropdown/calendar-dropdown.example.html +10 -0
- package/projects/documentation/src/app/pages/calendar/examples/dropdown/calendar-dropdown.example.ts +12 -0
- package/projects/documentation/src/app/pages/calendar/examples/format/calendar-format.example.html +15 -0
- package/projects/documentation/src/app/pages/calendar/examples/format/calendar-format.example.ts +12 -0
- package/projects/documentation/src/app/pages/calendar/examples/locale/calendar-locale.example.html +34 -0
- package/projects/documentation/src/app/pages/calendar/examples/locale/calendar-locale.example.ts +14 -0
- package/projects/documentation/src/app/pages/calendar/examples/more/calendar.more.example.html +20 -0
- package/projects/documentation/src/app/pages/calendar/examples/more/calendar.more.example.ts +37 -0
- package/projects/documentation/src/app/pages/calendar/examples/styles/calendar-styles.example.html +16 -0
- package/projects/documentation/src/app/pages/calendar/examples/styles/calendar-styles.example.ts +10 -0
- package/projects/documentation/src/app/pages/card/card.page.html +75 -0
- package/projects/documentation/src/app/pages/card/card.page.ts +182 -0
- package/projects/documentation/src/app/pages/card/examples/appearance/card-appearance.example.html +13 -0
- package/projects/documentation/src/app/pages/card/examples/appearance/card-appearance.example.ts +10 -0
- package/projects/documentation/src/app/pages/card/examples/closable/card-closable.example.html +30 -0
- package/projects/documentation/src/app/pages/card/examples/closable/card-closable.example.ts +19 -0
- package/projects/documentation/src/app/pages/card/examples/custom-style/card-custom-style.example.html +173 -0
- package/projects/documentation/src/app/pages/card/examples/custom-style/card-custom-style.example.ts +10 -0
- package/projects/documentation/src/app/pages/card/examples/media/card-media.example.html +27 -0
- package/projects/documentation/src/app/pages/card/examples/media/card-media.example.ts +10 -0
- package/projects/documentation/src/app/pages/card/examples/radius/card-radius.example.html +13 -0
- package/projects/documentation/src/app/pages/card/examples/radius/card-radius.example.ts +10 -0
- package/projects/documentation/src/app/pages/card/examples/slots/card-slots.example.html +20 -0
- package/projects/documentation/src/app/pages/card/examples/slots/card-slots.example.ts +10 -0
- package/projects/documentation/src/app/pages/card/examples/spacing/card-spacing.example.html +11 -0
- package/projects/documentation/src/app/pages/card/examples/spacing/card-spacing.example.ts +10 -0
- package/projects/documentation/src/app/pages/chip/chip.page.html +55 -0
- package/projects/documentation/src/app/pages/chip/chip.page.ts +158 -0
- package/projects/documentation/src/app/pages/chip/examples/appearance/chip-appearance.example.html +7 -0
- package/projects/documentation/src/app/pages/chip/examples/appearance/chip-appearance.example.ts +10 -0
- package/projects/documentation/src/app/pages/chip/examples/more/chip-more.example.html +13 -0
- package/projects/documentation/src/app/pages/chip/examples/more/chip-more.example.ts +17 -0
- package/projects/documentation/src/app/pages/chip/examples/radius/chip-radius.example.html +9 -0
- package/projects/documentation/src/app/pages/chip/examples/radius/chip-radius.example.ts +10 -0
- package/projects/documentation/src/app/pages/chip/examples/sizes/chip-sizes.example.html +6 -0
- package/projects/documentation/src/app/pages/chip/examples/sizes/chip-sizes.example.ts +10 -0
- package/projects/documentation/src/app/pages/chip/examples/variant/chip-variant.example.html +8 -0
- package/projects/documentation/src/app/pages/chip/examples/variant/chip-variant.example.ts +10 -0
- package/projects/documentation/src/app/pages/datepicker/datepicker.page.html +75 -0
- package/projects/documentation/src/app/pages/datepicker/datepicker.page.ts +181 -0
- package/projects/documentation/src/app/pages/datepicker/examples/appearance/datepicker-appearance.example.html +29 -0
- package/projects/documentation/src/app/pages/datepicker/examples/appearance/datepicker-appearance.example.ts +10 -0
- package/projects/documentation/src/app/pages/datepicker/examples/basic/datepicker-basic.example.html +12 -0
- package/projects/documentation/src/app/pages/datepicker/examples/basic/datepicker-basic.example.ts +12 -0
- package/projects/documentation/src/app/pages/datepicker/examples/footer/datepicker-footer.example.html +23 -0
- package/projects/documentation/src/app/pages/datepicker/examples/footer/datepicker-footer.example.ts +17 -0
- package/projects/documentation/src/app/pages/datepicker/examples/format/datepicker-format.example.html +30 -0
- package/projects/documentation/src/app/pages/datepicker/examples/format/datepicker-format.example.ts +13 -0
- package/projects/documentation/src/app/pages/datepicker/examples/placement/datepicker-placement.example.html +24 -0
- package/projects/documentation/src/app/pages/datepicker/examples/placement/datepicker-placement.example.ts +10 -0
- package/projects/documentation/src/app/pages/datepicker/examples/slots/datepicker-slots.example.html +19 -0
- package/projects/documentation/src/app/pages/datepicker/examples/slots/datepicker-slots.example.ts +10 -0
- package/projects/documentation/src/app/pages/datepicker/examples/states/datepicker-states.example.html +28 -0
- package/projects/documentation/src/app/pages/datepicker/examples/states/datepicker-states.example.ts +12 -0
- package/projects/documentation/src/app/pages/icon/icon.page.html +15 -0
- package/projects/documentation/src/app/pages/icon/icon.page.ts +60 -0
- package/projects/documentation/src/app/pages/input/examples/appearance/input-appearance.example.html +27 -0
- package/projects/documentation/src/app/pages/input/examples/appearance/input-appearance.example.ts +10 -0
- package/projects/documentation/src/app/pages/input/examples/basic/input-basic.example.html +13 -0
- package/projects/documentation/src/app/pages/input/examples/basic/input-basic.example.ts +13 -0
- package/projects/documentation/src/app/pages/input/examples/mask/input-mask.example.html +31 -0
- package/projects/documentation/src/app/pages/input/examples/mask/input-mask.example.ts +19 -0
- package/projects/documentation/src/app/pages/input/examples/more/input-more.example.html +68 -0
- package/projects/documentation/src/app/pages/input/examples/more/input-more.example.ts +18 -0
- package/projects/documentation/src/app/pages/input/examples/slots/input-slots.example.html +52 -0
- package/projects/documentation/src/app/pages/input/examples/slots/input-slots.example.ts +10 -0
- package/projects/documentation/src/app/pages/input/examples/states/input-states.example.html +29 -0
- package/projects/documentation/src/app/pages/input/examples/states/input-states.example.ts +10 -0
- package/projects/documentation/src/app/pages/input/input.page.html +65 -0
- package/projects/documentation/src/app/pages/input/input.page.ts +170 -0
- package/projects/documentation/src/app/pages/menu/examples/basic/menu-basic.example.html +5 -0
- package/projects/documentation/src/app/pages/menu/examples/basic/menu-basic.example.ts +17 -0
- package/projects/documentation/src/app/pages/menu/examples/custom-template/menu-custom-template.example.html +35 -0
- package/projects/documentation/src/app/pages/menu/examples/custom-template/menu-custom-template.example.ts +57 -0
- package/projects/documentation/src/app/pages/menu/examples/placement/menu-placement.example.html +12 -0
- package/projects/documentation/src/app/pages/menu/examples/placement/menu-placement.example.ts +16 -0
- package/projects/documentation/src/app/pages/menu/menu.page.html +35 -0
- package/projects/documentation/src/app/pages/menu/menu.page.ts +149 -0
- package/projects/documentation/src/app/pages/modal/examples/appearance/modal-appearance.example.html +18 -0
- package/projects/documentation/src/app/pages/modal/examples/appearance/modal-appearance.example.ts +21 -0
- package/projects/documentation/src/app/pages/modal/examples/basic/modal-basic.example.html +8 -0
- package/projects/documentation/src/app/pages/modal/examples/basic/modal-basic.example.ts +12 -0
- package/projects/documentation/src/app/pages/modal/examples/close-behavior/modal-close-behavior.example.html +44 -0
- package/projects/documentation/src/app/pages/modal/examples/close-behavior/modal-close-behavior.example.ts +14 -0
- package/projects/documentation/src/app/pages/modal/examples/custom-style/modal-custom-style.example.html +36 -0
- package/projects/documentation/src/app/pages/modal/examples/custom-style/modal-custom-style.example.ts +12 -0
- package/projects/documentation/src/app/pages/modal/examples/overlay/modal-overlay.example.html +29 -0
- package/projects/documentation/src/app/pages/modal/examples/overlay/modal-overlay.example.ts +14 -0
- package/projects/documentation/src/app/pages/modal/examples/radius-spacing/modal-radius-spacing.example.html +27 -0
- package/projects/documentation/src/app/pages/modal/examples/radius-spacing/modal-radius-spacing.example.ts +27 -0
- package/projects/documentation/src/app/pages/modal/examples/scroll/modal-scroll.example.html +14 -0
- package/projects/documentation/src/app/pages/modal/examples/scroll/modal-scroll.example.ts +13 -0
- package/projects/documentation/src/app/pages/modal/examples/size/modal-size.example.html +17 -0
- package/projects/documentation/src/app/pages/modal/examples/size/modal-size.example.ts +21 -0
- package/projects/documentation/src/app/pages/modal/examples/slots/modal-slots.example.html +30 -0
- package/projects/documentation/src/app/pages/modal/examples/slots/modal-slots.example.ts +12 -0
- package/projects/documentation/src/app/pages/modal/examples/width/modal-width.example.html +23 -0
- package/projects/documentation/src/app/pages/modal/examples/width/modal-width.example.ts +13 -0
- package/projects/documentation/src/app/pages/modal/modal.page.html +105 -0
- package/projects/documentation/src/app/pages/modal/modal.page.ts +257 -0
- package/projects/documentation/src/app/pages/number-input/examples/appearance/number-input-appearance.example.html +30 -0
- package/projects/documentation/src/app/pages/number-input/examples/appearance/number-input-appearance.example.ts +10 -0
- package/projects/documentation/src/app/pages/number-input/examples/basic/number-input-basic.example.html +12 -0
- package/projects/documentation/src/app/pages/number-input/examples/basic/number-input-basic.example.ts +13 -0
- package/projects/documentation/src/app/pages/number-input/examples/limits/number-input-limits.example.html +30 -0
- package/projects/documentation/src/app/pages/number-input/examples/limits/number-input-limits.example.ts +14 -0
- package/projects/documentation/src/app/pages/number-input/examples/slots/number-input-slots.example.html +49 -0
- package/projects/documentation/src/app/pages/number-input/examples/slots/number-input-slots.example.ts +10 -0
- package/projects/documentation/src/app/pages/number-input/examples/states/number-input-states.example.html +21 -0
- package/projects/documentation/src/app/pages/number-input/examples/states/number-input-states.example.ts +10 -0
- package/projects/documentation/src/app/pages/number-input/number-input.page.html +55 -0
- package/projects/documentation/src/app/pages/number-input/number-input.page.ts +142 -0
- package/projects/documentation/src/app/pages/select/examples/appearance/select-appearance.example.html +32 -0
- package/projects/documentation/src/app/pages/select/examples/appearance/select-appearance.example.ts +15 -0
- package/projects/documentation/src/app/pages/select/examples/basic/select-basic.example.html +13 -0
- package/projects/documentation/src/app/pages/select/examples/basic/select-basic.example.ts +20 -0
- package/projects/documentation/src/app/pages/select/examples/multiple/select-multiple.example.html +24 -0
- package/projects/documentation/src/app/pages/select/examples/multiple/select-multiple.example.ts +59 -0
- package/projects/documentation/src/app/pages/select/examples/placement/select-placement.example.html +20 -0
- package/projects/documentation/src/app/pages/select/examples/placement/select-placement.example.ts +20 -0
- package/projects/documentation/src/app/pages/select/examples/search/select-search.example.html +13 -0
- package/projects/documentation/src/app/pages/select/examples/search/select-search.example.ts +22 -0
- package/projects/documentation/src/app/pages/select/examples/slots/select-slots.example.html +44 -0
- package/projects/documentation/src/app/pages/select/examples/slots/select-slots.example.ts +15 -0
- package/projects/documentation/src/app/pages/select/examples/states/select-states.example.html +31 -0
- package/projects/documentation/src/app/pages/select/examples/states/select-states.example.ts +12 -0
- package/projects/documentation/src/app/pages/select/select.page.html +75 -0
- package/projects/documentation/src/app/pages/select/select.page.ts +195 -0
- package/projects/documentation/src/app/pages/table/examples/cell-actions/table-cell-actions.example.html +14 -0
- package/projects/documentation/src/app/pages/table/examples/cell-actions/table-cell-actions.example.ts +25 -0
- package/projects/documentation/src/app/pages/table/examples/cell-badge/table-cell-badge.example.html +12 -0
- package/projects/documentation/src/app/pages/table/examples/cell-badge/table-cell-badge.example.ts +21 -0
- package/projects/documentation/src/app/pages/table/examples/cell-profile/table-cell-profile.example.html +29 -0
- package/projects/documentation/src/app/pages/table/examples/cell-profile/table-cell-profile.example.ts +20 -0
- package/projects/documentation/src/app/pages/table/examples/custom-body/table-custom-body.example.html +39 -0
- package/projects/documentation/src/app/pages/table/examples/custom-body/table-custom-body.example.ts +21 -0
- package/projects/documentation/src/app/pages/table/examples/custom-sizes/table-custom-sizes.example.html +7 -0
- package/projects/documentation/src/app/pages/table/examples/custom-sizes/table-custom-sizes.example.ts +21 -0
- package/projects/documentation/src/app/pages/table/examples/dynamic-style/table-dynamic-style.example.html +3 -0
- package/projects/documentation/src/app/pages/table/examples/dynamic-style/table-dynamic-style.example.ts +41 -0
- package/projects/documentation/src/app/pages/table/examples/empty/table-empty.example.html +43 -0
- package/projects/documentation/src/app/pages/table/examples/empty/table-empty.example.ts +21 -0
- package/projects/documentation/src/app/pages/table/examples/expanded/table-expanded.example.html +36 -0
- package/projects/documentation/src/app/pages/table/examples/expanded/table-expanded.example.ts +34 -0
- package/projects/documentation/src/app/pages/table/examples/heatmap/table-heatmap.example.html +8 -0
- package/projects/documentation/src/app/pages/table/examples/heatmap/table-heatmap.example.ts +52 -0
- package/projects/documentation/src/app/pages/table/examples/inline-edit/table-inline-edit.example.html +53 -0
- package/projects/documentation/src/app/pages/table/examples/inline-edit/table-inline-edit.example.ts +50 -0
- package/projects/documentation/src/app/pages/table/examples/nested/table-nested.example.html +23 -0
- package/projects/documentation/src/app/pages/table/examples/nested/table-nested.example.ts +42 -0
- package/projects/documentation/src/app/pages/table/examples/pagination/table-pagination.example.html +20 -0
- package/projects/documentation/src/app/pages/table/examples/pagination/table-pagination.example.ts +21 -0
- package/projects/documentation/src/app/pages/table/table.page.html +125 -0
- package/projects/documentation/src/app/pages/table/table.page.ts +261 -0
- package/projects/documentation/src/app/pages/tabs/examples/advanced-dynamic/tabs-advanced-dynamic.example.html +13 -0
- package/projects/documentation/src/app/pages/tabs/examples/advanced-dynamic/tabs-advanced-dynamic.example.ts +27 -0
- package/projects/documentation/src/app/pages/tabs/examples/advanced-form/tabs-advanced-form.example.html +27 -0
- package/projects/documentation/src/app/pages/tabs/examples/advanced-form/tabs-advanced-form.example.ts +36 -0
- package/projects/documentation/src/app/pages/tabs/examples/advanced-theme/tabs-advanced-theme.example.html +5 -0
- package/projects/documentation/src/app/pages/tabs/examples/advanced-theme/tabs-advanced-theme.example.ts +20 -0
- package/projects/documentation/src/app/pages/tabs/examples/appearance/tabs-appearance.example.html +6 -0
- package/projects/documentation/src/app/pages/tabs/examples/appearance/tabs-appearance.example.ts +13 -0
- package/projects/documentation/src/app/pages/tabs/examples/basic/tabs-basic.example.html +13 -0
- package/projects/documentation/src/app/pages/tabs/examples/basic/tabs-basic.example.ts +13 -0
- package/projects/documentation/src/app/pages/tabs/examples/custom-style/tabs-custom-style.example.html +19 -0
- package/projects/documentation/src/app/pages/tabs/examples/custom-style/tabs-custom-style.example.ts +12 -0
- package/projects/documentation/src/app/pages/tabs/examples/events/tabs-events.example.html +16 -0
- package/projects/documentation/src/app/pages/tabs/examples/events/tabs-events.example.ts +23 -0
- package/projects/documentation/src/app/pages/tabs/examples/fluid/tabs-fluid.example.html +5 -0
- package/projects/documentation/src/app/pages/tabs/examples/fluid/tabs-fluid.example.ts +12 -0
- package/projects/documentation/src/app/pages/tabs/examples/no-body/tabs-no-body.example.html +6 -0
- package/projects/documentation/src/app/pages/tabs/examples/no-body/tabs-no-body.example.ts +12 -0
- package/projects/documentation/src/app/pages/tabs/examples/radius/tabs-radius.example.html +6 -0
- package/projects/documentation/src/app/pages/tabs/examples/radius/tabs-radius.example.ts +13 -0
- package/projects/documentation/src/app/pages/tabs/examples/scroll/tabs-scroll.example.html +20 -0
- package/projects/documentation/src/app/pages/tabs/examples/scroll/tabs-scroll.example.ts +30 -0
- package/projects/documentation/src/app/pages/tabs/examples/scroll-icon/tabs-scroll-icon.example.html +16 -0
- package/projects/documentation/src/app/pages/tabs/examples/scroll-icon/tabs-scroll-icon.example.ts +26 -0
- package/projects/documentation/src/app/pages/tabs/examples/scroll-slot/tabs-scroll-slot.example.html +22 -0
- package/projects/documentation/src/app/pages/tabs/examples/scroll-slot/tabs-scroll-slot.example.ts +26 -0
- package/projects/documentation/src/app/pages/tabs/examples/size/tabs-size.example.html +6 -0
- package/projects/documentation/src/app/pages/tabs/examples/size/tabs-size.example.ts +13 -0
- package/projects/documentation/src/app/pages/tabs/examples/slots/tabs-slots.example.html +25 -0
- package/projects/documentation/src/app/pages/tabs/examples/slots/tabs-slots.example.ts +10 -0
- package/projects/documentation/src/app/pages/tabs/examples/spacing/tabs-spacing.example.html +6 -0
- package/projects/documentation/src/app/pages/tabs/examples/spacing/tabs-spacing.example.ts +13 -0
- package/projects/documentation/src/app/pages/tabs/tabs.page.html +165 -0
- package/projects/documentation/src/app/pages/tabs/tabs.page.ts +340 -0
- package/projects/documentation/src/app/routes/app.routes.server.ts +8 -0
- package/projects/documentation/src/app/routes/app.routes.ts +87 -0
- package/projects/documentation/src/app/services/doc-customize.service.ts +107 -0
- package/projects/documentation/src/app/utils/highlight.pipe.ts +43 -0
- package/projects/documentation/src/index.html +13 -0
- package/projects/documentation/src/main.server.ts +7 -0
- package/projects/documentation/src/main.ts +5 -0
- package/projects/documentation/src/server.ts +47 -0
- package/projects/documentation/src/styles.scss +7 -0
- package/projects/documentation/tsconfig.app.json +11 -0
- package/projects/documentation/tsconfig.spec.json +10 -0
- package/tsconfig.json +6 -3
- package/.nvmrc +0 -1
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { DocsLayoutComponent, DocApiProperty } from '../../layouts/doc.layout';
|
|
4
|
+
import { DocExampleComponent } from '../../components/doc-example.component';
|
|
5
|
+
|
|
6
|
+
import { CardAppearanceExample } from './examples/appearance/card-appearance.example';
|
|
7
|
+
import { CardSpacingExample } from './examples/spacing/card-spacing.example';
|
|
8
|
+
import { CardSlotsExample } from './examples/slots/card-slots.example';
|
|
9
|
+
import { CardClosableExample } from './examples/closable/card-closable.example';
|
|
10
|
+
import { CardMediaExample } from './examples/media/card-media.example';
|
|
11
|
+
import { CardRadiusExample } from './examples/radius/card-radius.example';
|
|
12
|
+
import { CardCustomStyleExample } from './examples/custom-style/card-custom-style.example';
|
|
13
|
+
|
|
14
|
+
// @ts-ignore
|
|
15
|
+
import appearanceHtml from './examples/appearance/card-appearance.example.html' with {
|
|
16
|
+
loader: 'text',
|
|
17
|
+
};
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
import appearanceTs from './examples/appearance/card-appearance.example.ts' with { loader: 'text' };
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import spacingHtml from './examples/spacing/card-spacing.example.html' with { loader: 'text' };
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import spacingTs from './examples/spacing/card-spacing.example.ts' with { loader: 'text' };
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import slotsHtml from './examples/slots/card-slots.example.html' with { loader: 'text' };
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import slotsTs from './examples/slots/card-slots.example.ts' with { loader: 'text' };
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import closableHtml from './examples/closable/card-closable.example.html' with { loader: 'text' };
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
import closableTs from './examples/closable/card-closable.example.ts' with { loader: 'text' };
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
import mediaHtml from './examples/media/card-media.example.html' with { loader: 'text' };
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
import mediaTs from './examples/media/card-media.example.ts' with { loader: 'text' };
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
import radiusHtml from './examples/radius/card-radius.example.html' with { loader: 'text' };
|
|
38
|
+
// @ts-ignore
|
|
39
|
+
import radiusTs from './examples/radius/card-radius.example.ts' with { loader: 'text' };
|
|
40
|
+
// @ts-ignore
|
|
41
|
+
import customStyleHtml from './examples/custom-style/card-custom-style.example.html' with {
|
|
42
|
+
loader: 'text',
|
|
43
|
+
};
|
|
44
|
+
// @ts-ignore
|
|
45
|
+
import customStyleTs from './examples/custom-style/card-custom-style.example.ts' with {
|
|
46
|
+
loader: 'text',
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
@Component({
|
|
50
|
+
imports: [
|
|
51
|
+
CommonModule,
|
|
52
|
+
DocsLayoutComponent,
|
|
53
|
+
DocExampleComponent,
|
|
54
|
+
CardAppearanceExample,
|
|
55
|
+
CardSpacingExample,
|
|
56
|
+
CardSlotsExample,
|
|
57
|
+
CardClosableExample,
|
|
58
|
+
CardMediaExample,
|
|
59
|
+
CardRadiusExample,
|
|
60
|
+
CardCustomStyleExample,
|
|
61
|
+
],
|
|
62
|
+
templateUrl: './card.page.html',
|
|
63
|
+
selector: 'app-card-page',
|
|
64
|
+
standalone: true,
|
|
65
|
+
})
|
|
66
|
+
export class CardDocPage {
|
|
67
|
+
protected appearanceHtml = appearanceHtml;
|
|
68
|
+
protected appearanceTs = appearanceTs;
|
|
69
|
+
|
|
70
|
+
protected spacingHtml = spacingHtml;
|
|
71
|
+
protected spacingTs = spacingTs;
|
|
72
|
+
|
|
73
|
+
protected slotsHtml = slotsHtml;
|
|
74
|
+
protected slotsTs = slotsTs;
|
|
75
|
+
|
|
76
|
+
protected closableHtml = closableHtml;
|
|
77
|
+
protected closableTs = closableTs;
|
|
78
|
+
|
|
79
|
+
protected mediaHtml = mediaHtml;
|
|
80
|
+
protected mediaTs = mediaTs;
|
|
81
|
+
|
|
82
|
+
protected radiusHtml = radiusHtml;
|
|
83
|
+
protected radiusTs = radiusTs;
|
|
84
|
+
|
|
85
|
+
protected customStyleHtml = customStyleHtml;
|
|
86
|
+
protected customStyleTs = customStyleTs;
|
|
87
|
+
|
|
88
|
+
protected readonly apiProps: DocApiProperty[] = [
|
|
89
|
+
{
|
|
90
|
+
name: 'appearance',
|
|
91
|
+
type: "'outline' | 'borderless' | 'elevated'",
|
|
92
|
+
defaultValue: "'elevated'",
|
|
93
|
+
description: 'Defines the structural shadow and border style of the card.',
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: 'spacing',
|
|
97
|
+
type: "'normal' | 'compact'",
|
|
98
|
+
defaultValue: "'normal'",
|
|
99
|
+
description: 'Controls the inner padding scale of the card.',
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: 'radius',
|
|
103
|
+
type: 'ScaleAttributeType',
|
|
104
|
+
defaultValue: "'lg'",
|
|
105
|
+
description: 'Sets the border radius of the card.',
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: 'size',
|
|
109
|
+
type: "'sm' | 'md' | 'lg'",
|
|
110
|
+
defaultValue: "'md'",
|
|
111
|
+
description: 'Controls the typographic scale inside the card.',
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
name: 'label',
|
|
115
|
+
type: 'string',
|
|
116
|
+
defaultValue: 'undefined',
|
|
117
|
+
description: 'Sets a simple string title for the header section.',
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
name: 'closable',
|
|
121
|
+
type: 'boolean',
|
|
122
|
+
defaultValue: 'false',
|
|
123
|
+
description: 'Displays a dismiss icon in the header. Emits (onClose) when clicked.',
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
name: 'hide-overflow',
|
|
127
|
+
type: 'boolean',
|
|
128
|
+
defaultValue: 'false',
|
|
129
|
+
description: 'Applies overflow hidden. Great for embedding edge-to-edge images.',
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
name: 'full-width',
|
|
133
|
+
type: 'boolean',
|
|
134
|
+
defaultValue: 'false',
|
|
135
|
+
description: 'Forces the host element to width 100% using flex display.',
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
name: 'fluid / ...-fluid',
|
|
139
|
+
type: 'boolean',
|
|
140
|
+
defaultValue: 'false',
|
|
141
|
+
description:
|
|
142
|
+
'Removes padding from the entire card (fluid) or specific sections (header-fluid, body-fluid, etc.).',
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
name: '...-class / ...-style',
|
|
146
|
+
type: 'string | object',
|
|
147
|
+
defaultValue: 'null',
|
|
148
|
+
description:
|
|
149
|
+
'Custom class or style injection for sections like container, header, body, extra-header, action.',
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
name: '(onClose)',
|
|
153
|
+
type: 'EventEmitter<void>',
|
|
154
|
+
defaultValue: '-',
|
|
155
|
+
description: 'Emitted when the close icon is clicked (requires closable=true).',
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
name: '[header-slot]',
|
|
159
|
+
type: 'Content Slot',
|
|
160
|
+
defaultValue: '-',
|
|
161
|
+
description: 'Replaces the default label with custom HTML content.',
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
name: '[caption-slot]',
|
|
165
|
+
type: 'Content Slot',
|
|
166
|
+
defaultValue: '-',
|
|
167
|
+
description: 'Injects small descriptive text below the title.',
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
name: '[extra-header-slot]',
|
|
171
|
+
type: 'Content Slot',
|
|
172
|
+
defaultValue: '-',
|
|
173
|
+
description: 'Injects elements to the far right of the header (like badges or menus).',
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
name: '[action-slot]',
|
|
177
|
+
type: 'Content Slot',
|
|
178
|
+
defaultValue: '-',
|
|
179
|
+
description: 'Injects footer action elements (like buttons) into a flex container.',
|
|
180
|
+
},
|
|
181
|
+
];
|
|
182
|
+
}
|
package/projects/documentation/src/app/pages/card/examples/appearance/card-appearance.example.html
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<div style="display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap">
|
|
2
|
+
<dasar-card appearance="elevated" label="Elevated Card" style="width: 300px">
|
|
3
|
+
<p>This is the default card appearance with a subtle shadow to lift it off the page.</p>
|
|
4
|
+
</dasar-card>
|
|
5
|
+
|
|
6
|
+
<dasar-card appearance="outline" label="Outline Card" style="width: 300px">
|
|
7
|
+
<p>This card uses a border instead of a shadow for a flatter, cleaner look.</p>
|
|
8
|
+
</dasar-card>
|
|
9
|
+
|
|
10
|
+
<dasar-card appearance="borderless" label="Borderless Card" style="width: 300px">
|
|
11
|
+
<p>This card has no border or shadow, useful for grouping content in an existing container.</p>
|
|
12
|
+
</dasar-card>
|
|
13
|
+
</div>
|
package/projects/documentation/src/app/pages/card/examples/appearance/card-appearance.example.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DasarCardComponent } from 'dasar-ui';
|
|
2
|
+
import { Component } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
templateUrl: './card-appearance.example.html',
|
|
6
|
+
selector: 'app-card-appearance-example',
|
|
7
|
+
imports: [DasarCardComponent],
|
|
8
|
+
standalone: true,
|
|
9
|
+
})
|
|
10
|
+
export class CardAppearanceExample {}
|
package/projects/documentation/src/app/pages/card/examples/closable/card-closable.example.html
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<div style="display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap">
|
|
2
|
+
@if (!isClosed) {
|
|
3
|
+
<dasar-card
|
|
4
|
+
label="Dismissible Notification"
|
|
5
|
+
[closable]="true"
|
|
6
|
+
(onClose)="handleClose()"
|
|
7
|
+
style="width: 320px"
|
|
8
|
+
appearance="outline"
|
|
9
|
+
>
|
|
10
|
+
<span caption-slot>System Alert</span>
|
|
11
|
+
<p>This card can be dismissed by clicking the X icon in the header.</p>
|
|
12
|
+
</dasar-card>
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
<dasar-card label="Task Status" style="width: 320px">
|
|
16
|
+
<div extra-header-slot>
|
|
17
|
+
<span
|
|
18
|
+
style="
|
|
19
|
+
background: var(--theme-success-color);
|
|
20
|
+
color: white;
|
|
21
|
+
padding: 2px 8px;
|
|
22
|
+
border-radius: 99px;
|
|
23
|
+
font-size: 12px;
|
|
24
|
+
"
|
|
25
|
+
>Completed</span
|
|
26
|
+
>
|
|
27
|
+
</div>
|
|
28
|
+
<p>We provide an extra header slot for badges, toggles, or secondary action menus.</p>
|
|
29
|
+
</dasar-card>
|
|
30
|
+
</div>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { DasarCardComponent } from 'dasar-ui';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
templateUrl: './card-closable.example.html',
|
|
6
|
+
selector: 'app-card-closable-example',
|
|
7
|
+
imports: [DasarCardComponent],
|
|
8
|
+
standalone: true,
|
|
9
|
+
})
|
|
10
|
+
export class CardClosableExample {
|
|
11
|
+
protected isClosed = false;
|
|
12
|
+
|
|
13
|
+
handleClose() {
|
|
14
|
+
this.isClosed = true;
|
|
15
|
+
setTimeout(() => {
|
|
16
|
+
this.isClosed = false;
|
|
17
|
+
}, 2000);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px">
|
|
2
|
+
<dasar-card [container-style]="{ overflow: 'hidden' }" appearance="elevated" header-fluid>
|
|
3
|
+
<div header-slot style="display: flex; width: 100%">
|
|
4
|
+
<img
|
|
5
|
+
src="https://img.magnific.com/free-photo/liquid-marbling-paint-texture-background-fluid-painting-abstract-texture-intensive-color-mix-wallpaper_1258-82946.jpg?semt=ais_hybrid&w=740&q=80"
|
|
6
|
+
alt="Hero"
|
|
7
|
+
style="
|
|
8
|
+
display: block;
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: 80px;
|
|
11
|
+
object-fit: cover;
|
|
12
|
+
border-top-left-radius: inherit;
|
|
13
|
+
border-top-right-radius: inherit;
|
|
14
|
+
"
|
|
15
|
+
/>
|
|
16
|
+
</div>
|
|
17
|
+
<div style="font-weight: bold; margin-bottom: 4px; padding-top: 12px">
|
|
18
|
+
Card with Image Header
|
|
19
|
+
</div>
|
|
20
|
+
<div style="font-size: 13px; color: var(--theme-text-secondary-color)">
|
|
21
|
+
Because <code>headerFluid</code> is true, the image touches the top edges.
|
|
22
|
+
</div>
|
|
23
|
+
</dasar-card>
|
|
24
|
+
<dasar-card
|
|
25
|
+
[container-style]="{ overflow: 'hidden' }"
|
|
26
|
+
appearance="outline"
|
|
27
|
+
label="Recent Users"
|
|
28
|
+
body-fluid
|
|
29
|
+
>
|
|
30
|
+
<div caption-slot>Users who logged in recently</div>
|
|
31
|
+
<ul style="list-style: none; margin: 0; padding: 0; font-size: 14px">
|
|
32
|
+
<li style="padding: 12px 16px; border-bottom: 1px solid var(--theme-border-subtle-color)">
|
|
33
|
+
Alice Johnson
|
|
34
|
+
</li>
|
|
35
|
+
<li style="padding: 12px 16px; border-bottom: 1px solid var(--theme-border-subtle-color)">
|
|
36
|
+
Bob Smith
|
|
37
|
+
</li>
|
|
38
|
+
<li style="padding: 12px 16px">Charlie Davis</li>
|
|
39
|
+
</ul>
|
|
40
|
+
</dasar-card>
|
|
41
|
+
<dasar-card
|
|
42
|
+
[container-style]="{ overflow: 'hidden' }"
|
|
43
|
+
appearance="elevated"
|
|
44
|
+
label="Pro Plan"
|
|
45
|
+
action-fluid
|
|
46
|
+
>
|
|
47
|
+
<div style="font-size: 32px; font-weight: bold; margin: 12px 0 4px 0">
|
|
48
|
+
$19<span style="font-size: 16px; color: gray; font-weight: normal">/mo</span>
|
|
49
|
+
</div>
|
|
50
|
+
<div style="font-size: 13px; color: gray; margin-bottom: 16px">
|
|
51
|
+
Includes all premium features.
|
|
52
|
+
</div>
|
|
53
|
+
<dasar-button action-slot variant="primary" radius="none" full-width>
|
|
54
|
+
Subscribe Now
|
|
55
|
+
</dasar-button>
|
|
56
|
+
</dasar-card>
|
|
57
|
+
<dasar-card
|
|
58
|
+
[container-style]="{ overflow: 'hidden' }"
|
|
59
|
+
appearance="outline"
|
|
60
|
+
body-fluid
|
|
61
|
+
spacing="compact"
|
|
62
|
+
>
|
|
63
|
+
<div
|
|
64
|
+
header-slot
|
|
65
|
+
style="display: flex; justify-content: space-between; align-items: center; width: 100%"
|
|
66
|
+
>
|
|
67
|
+
<span style="font-weight: 600">Mechanical Keyboard</span>
|
|
68
|
+
<span style="color: var(--theme-primary-color); font-weight: bold">$99.00</span>
|
|
69
|
+
</div>
|
|
70
|
+
<img
|
|
71
|
+
src="https://images.unsplash.com/photo-1595225476474-87563907a212?w=500&q=80"
|
|
72
|
+
alt="Keyboard"
|
|
73
|
+
style="display: block; width: 100%; height: 160px; object-fit: cover"
|
|
74
|
+
/>
|
|
75
|
+
<ng-container action-slot>
|
|
76
|
+
<dasar-button variant="secondary" fluid>Add to Cart</dasar-button>
|
|
77
|
+
</ng-container>
|
|
78
|
+
</dasar-card>
|
|
79
|
+
<dasar-card
|
|
80
|
+
appearance="elevated"
|
|
81
|
+
spacing="compact"
|
|
82
|
+
[container-style]="{
|
|
83
|
+
background: 'linear-gradient(135deg, var(--theme-primary-color), #2563eb)',
|
|
84
|
+
color: 'white',
|
|
85
|
+
border: 'none',
|
|
86
|
+
}"
|
|
87
|
+
[header-style]="{ borderBottom: 'none', paddingBottom: '0' }"
|
|
88
|
+
>
|
|
89
|
+
<div header-slot style="font-size: 14px; opacity: 0.9">Total Revenue</div>
|
|
90
|
+
<div extra-header-slot>
|
|
91
|
+
<dasar-icon
|
|
92
|
+
style="color: rgba(255, 255, 255, 0.8)"
|
|
93
|
+
name="trending-up"
|
|
94
|
+
[stroke]="2"
|
|
95
|
+
></dasar-icon>
|
|
96
|
+
</div>
|
|
97
|
+
<div style="font-size: 32px; font-weight: bold">$45,231</div>
|
|
98
|
+
<div style="font-size: 12px; opacity: 0.8; margin-top: 4px">+12.5% from last month</div>
|
|
99
|
+
</dasar-card>
|
|
100
|
+
<dasar-card
|
|
101
|
+
appearance="outline"
|
|
102
|
+
[container-style]="{
|
|
103
|
+
borderColor: 'var(--theme-warning-color)',
|
|
104
|
+
backgroundColor: 'var(--theme-warning-color)',
|
|
105
|
+
}"
|
|
106
|
+
[header-style]="{ borderBottom: '1px solid rgba(0,0,0,0.1)' }"
|
|
107
|
+
>
|
|
108
|
+
<div header-slot style="display: flex; align-items: center; gap: 8px; color: white">
|
|
109
|
+
<dasar-icon name="alert-triangle"></dasar-icon>
|
|
110
|
+
<span style="font-weight: 600">Action Required</span>
|
|
111
|
+
</div>
|
|
112
|
+
<p style="margin: 0; color: white; font-size: 14px; opacity: 0.9">
|
|
113
|
+
Your subscription is about to expire in 3 days. Please update your billing information to
|
|
114
|
+
avoid service interruption.
|
|
115
|
+
</p>
|
|
116
|
+
<ng-container action-slot>
|
|
117
|
+
<dasar-button
|
|
118
|
+
variant="secondary"
|
|
119
|
+
size="sm"
|
|
120
|
+
[button-style]="{ backgroundColor: '#854d0e', color: 'white', border: 'none' }"
|
|
121
|
+
>Update Billing</dasar-button
|
|
122
|
+
>
|
|
123
|
+
</ng-container>
|
|
124
|
+
</dasar-card>
|
|
125
|
+
<dasar-card [container-style]="{ overflow: 'visible', marginTop: '36px' }" appearance="outline">
|
|
126
|
+
<div
|
|
127
|
+
header-slot
|
|
128
|
+
style="
|
|
129
|
+
display: flex;
|
|
130
|
+
flex-direction: column;
|
|
131
|
+
align-items: center;
|
|
132
|
+
width: 100%;
|
|
133
|
+
position: relative;
|
|
134
|
+
"
|
|
135
|
+
>
|
|
136
|
+
<div
|
|
137
|
+
style="
|
|
138
|
+
width: 72px;
|
|
139
|
+
height: 72px;
|
|
140
|
+
border-radius: 50%;
|
|
141
|
+
background-color: var(--theme-primary-color);
|
|
142
|
+
border: 4px solid var(--theme-bg-surface-color, white);
|
|
143
|
+
position: absolute;
|
|
144
|
+
top: -56px;
|
|
145
|
+
display: flex;
|
|
146
|
+
align-items: center;
|
|
147
|
+
justify-content: center;
|
|
148
|
+
color: white;
|
|
149
|
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
150
|
+
"
|
|
151
|
+
>
|
|
152
|
+
<dasar-icon name="user" size="lg"></dasar-icon>
|
|
153
|
+
</div>
|
|
154
|
+
<div style="margin-top: 24px; font-weight: bold; font-size: 18px">Jane Doe</div>
|
|
155
|
+
<div style="font-size: 13px; color: gray">Senior Developer</div>
|
|
156
|
+
</div>
|
|
157
|
+
|
|
158
|
+
<div
|
|
159
|
+
style="
|
|
160
|
+
text-align: center;
|
|
161
|
+
font-size: 14px;
|
|
162
|
+
margin-bottom: 8px;
|
|
163
|
+
color: var(--theme-text-secondary-color);
|
|
164
|
+
"
|
|
165
|
+
>
|
|
166
|
+
Passionate about building scalable frontend applications and mentoring junior developers.
|
|
167
|
+
</div>
|
|
168
|
+
<div action-slot style="display: flex; gap: 8px; justify-content: center; width: 100%">
|
|
169
|
+
<dasar-button variant="ghost" size="sm">Message</dasar-button>
|
|
170
|
+
<dasar-button variant="primary" size="sm">Follow</dasar-button>
|
|
171
|
+
</div>
|
|
172
|
+
</dasar-card>
|
|
173
|
+
</div>
|
package/projects/documentation/src/app/pages/card/examples/custom-style/card-custom-style.example.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DasarCardComponent, DasarButtonComponent, DasarIconComponent } from 'dasar-ui';
|
|
2
|
+
import { Component } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
imports: [DasarCardComponent, DasarButtonComponent, DasarIconComponent],
|
|
6
|
+
templateUrl: './card-custom-style.example.html',
|
|
7
|
+
selector: 'app-card-custom-style-example',
|
|
8
|
+
standalone: true,
|
|
9
|
+
})
|
|
10
|
+
export class CardCustomStyleExample {}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<div style="display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap">
|
|
2
|
+
<dasar-card hide-overflow body-fluid style="width: 300px">
|
|
3
|
+
<div
|
|
4
|
+
style="
|
|
5
|
+
height: 160px;
|
|
6
|
+
background-color: var(--theme-primary-color);
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
color: white;
|
|
11
|
+
"
|
|
12
|
+
>
|
|
13
|
+
Image Placeholder
|
|
14
|
+
</div>
|
|
15
|
+
|
|
16
|
+
<div style="padding: 16px">
|
|
17
|
+
<h3 style="margin-top: 0; margin-bottom: 4px">Beautiful Scenery</h3>
|
|
18
|
+
<p style="margin: 0; color: var(--theme-text-secondary-color); font-size: 14px">
|
|
19
|
+
By combining hideOverflow and bodyFluid, you can create edge-to-edge media cards.
|
|
20
|
+
</p>
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
<ng-container action-slot>
|
|
24
|
+
<dasar-button variant="primary" fluid>Read More</dasar-button>
|
|
25
|
+
</ng-container>
|
|
26
|
+
</dasar-card>
|
|
27
|
+
</div>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DasarCardComponent, DasarButtonComponent } from 'dasar-ui';
|
|
2
|
+
import { Component } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
imports: [DasarCardComponent, DasarButtonComponent],
|
|
6
|
+
templateUrl: './card-media.example.html',
|
|
7
|
+
selector: 'app-card-media-example',
|
|
8
|
+
standalone: true,
|
|
9
|
+
})
|
|
10
|
+
export class CardMediaExample {}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<div style="display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap">
|
|
2
|
+
<dasar-card radius="none" label="Radius None" style="width: 200px">
|
|
3
|
+
<p>Square corners.</p>
|
|
4
|
+
</dasar-card>
|
|
5
|
+
|
|
6
|
+
<dasar-card radius="md" label="Radius Medium" style="width: 200px">
|
|
7
|
+
<p>Default rounded corners.</p>
|
|
8
|
+
</dasar-card>
|
|
9
|
+
|
|
10
|
+
<dasar-card radius="xl" label="Radius Extra Large" style="width: 200px">
|
|
11
|
+
<p>Highly rounded corners.</p>
|
|
12
|
+
</dasar-card>
|
|
13
|
+
</div>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { DasarCardComponent } from 'dasar-ui';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'app-card-radius-example',
|
|
6
|
+
standalone: true,
|
|
7
|
+
imports: [DasarCardComponent],
|
|
8
|
+
templateUrl: './card-radius.example.html',
|
|
9
|
+
})
|
|
10
|
+
export class CardRadiusExample {}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<div style="display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap">
|
|
2
|
+
<dasar-card style="width: 350px">
|
|
3
|
+
<div header-slot style="display: flex; align-items: center; gap: 8px">
|
|
4
|
+
<dasar-icon name="user" size="md"></dasar-icon>
|
|
5
|
+
<span style="font-weight: 600">User Profile</span>
|
|
6
|
+
</div>
|
|
7
|
+
|
|
8
|
+
<span caption-slot>Manage your personal information and security.</span>
|
|
9
|
+
|
|
10
|
+
<p style="margin-bottom: 0">
|
|
11
|
+
Your account is currently active. Please review your security settings to ensure maximum
|
|
12
|
+
protection.
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
<ng-container action-slot>
|
|
16
|
+
<dasar-button variant="danger" full-width>Cancel</dasar-button>
|
|
17
|
+
<dasar-button variant="primary" full-width>Save Changes</dasar-button>
|
|
18
|
+
</ng-container>
|
|
19
|
+
</dasar-card>
|
|
20
|
+
</div>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DasarCardComponent, DasarButtonComponent, DasarIconComponent } from 'dasar-ui';
|
|
2
|
+
import { Component } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
imports: [DasarCardComponent, DasarButtonComponent, DasarIconComponent],
|
|
6
|
+
templateUrl: './card-slots.example.html',
|
|
7
|
+
selector: 'app-card-slots-example',
|
|
8
|
+
standalone: true,
|
|
9
|
+
})
|
|
10
|
+
export class CardSlotsExample {}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<div style="display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap">
|
|
2
|
+
<dasar-card spacing="normal" label="Normal Spacing" style="width: 300px">
|
|
3
|
+
<p>This card uses the standard padding across its header, body, and actions.</p>
|
|
4
|
+
</dasar-card>
|
|
5
|
+
|
|
6
|
+
<dasar-card spacing="compact" label="Compact Spacing" style="width: 300px">
|
|
7
|
+
<p>
|
|
8
|
+
This card reduces the padding, making it ideal for dense data displays or smaller sidebars.
|
|
9
|
+
</p>
|
|
10
|
+
</dasar-card>
|
|
11
|
+
</div>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DasarCardComponent } from 'dasar-ui';
|
|
2
|
+
import { Component } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
templateUrl: './card-spacing.example.html',
|
|
6
|
+
selector: 'app-card-spacing-example',
|
|
7
|
+
imports: [DasarCardComponent],
|
|
8
|
+
standalone: true,
|
|
9
|
+
})
|
|
10
|
+
export class CardSpacingExample {}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
<docs-layout
|
|
2
|
+
title="Chip"
|
|
3
|
+
description="Lorem ipsum dolor sit amet consectetur adipisicing elit. Fugiat cupiditate odit ipsa quaerat blanditiis vel eveniet, aut esse laudantium similique quo nobis odio nostrum ipsam consequatur. Magni odit maiores nesciunt?"
|
|
4
|
+
[apiData]="apiProps"
|
|
5
|
+
>
|
|
6
|
+
<doc-example-component
|
|
7
|
+
[codes]="[
|
|
8
|
+
{ label: 'HTML', lang: 'html', value: variantHtml },
|
|
9
|
+
{ label: 'TypeScript', lang: 'typescript', value: variantTs },
|
|
10
|
+
]"
|
|
11
|
+
title="Variant"
|
|
12
|
+
>
|
|
13
|
+
<app-chip-variant-example />
|
|
14
|
+
</doc-example-component>
|
|
15
|
+
|
|
16
|
+
<doc-example-component
|
|
17
|
+
[codes]="[
|
|
18
|
+
{ label: 'HTML', lang: 'html', value: appearanceHtml },
|
|
19
|
+
{ label: 'TypeScript', lang: 'typescript', value: appearanceTs },
|
|
20
|
+
]"
|
|
21
|
+
title="Appearance"
|
|
22
|
+
>
|
|
23
|
+
<app-chip-appearance-example />
|
|
24
|
+
</doc-example-component>
|
|
25
|
+
|
|
26
|
+
<doc-example-component
|
|
27
|
+
[codes]="[
|
|
28
|
+
{ label: 'HTML', lang: 'html', value: radiusHtml },
|
|
29
|
+
{ label: 'TypeScript', lang: 'typescript', value: radiusTs },
|
|
30
|
+
]"
|
|
31
|
+
title="Radius"
|
|
32
|
+
>
|
|
33
|
+
<app-chip-radius-example />
|
|
34
|
+
</doc-example-component>
|
|
35
|
+
|
|
36
|
+
<doc-example-component
|
|
37
|
+
[codes]="[
|
|
38
|
+
{ label: 'HTML', lang: 'html', value: sizesHtml },
|
|
39
|
+
{ label: 'TypeScript', lang: 'typescript', value: sizesTs },
|
|
40
|
+
]"
|
|
41
|
+
title="Sizes"
|
|
42
|
+
>
|
|
43
|
+
<app-chip-sizes-example />
|
|
44
|
+
</doc-example-component>
|
|
45
|
+
|
|
46
|
+
<doc-example-component
|
|
47
|
+
[codes]="[
|
|
48
|
+
{ label: 'HTML', lang: 'html', value: moreHtml },
|
|
49
|
+
{ label: 'TypeScript', lang: 'typescript', value: moreTs },
|
|
50
|
+
]"
|
|
51
|
+
title="More example"
|
|
52
|
+
>
|
|
53
|
+
<app-chip-more-example />
|
|
54
|
+
</doc-example-component>
|
|
55
|
+
</docs-layout>
|