dasar-ui 1.3.0 → 1.9.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/.editorconfig +17 -0
- package/.github/workflows/npm-publish-github-packages.yml +36 -0
- package/.prettierrc +12 -0
- package/.versionrc.json +4 -0
- package/.vscode/extensions.json +4 -0
- package/.vscode/launch.json +20 -0
- package/.vscode/settings.json +4 -0
- package/.vscode/tasks.json +42 -0
- package/CHANGELOG.md +92 -0
- package/Dockerfile +26 -0
- package/README.md +41 -40
- package/angular.json +114 -0
- package/docs/_config.yml +3 -0
- package/docs/getting-started.md +89 -0
- package/docs/index.md +9 -0
- package/docs/installation.md +46 -0
- package/package.json +57 -39
- package/projects/dasar-ui/README.md +64 -0
- package/projects/dasar-ui/ng-package.json +10 -0
- package/projects/dasar-ui/package.json +27 -0
- package/projects/dasar-ui/src/lib/components/dasar-button/dasar-button.html +9 -0
- package/projects/dasar-ui/src/lib/components/dasar-button/dasar-button.scss +352 -0
- package/projects/dasar-ui/src/lib/components/dasar-button/dasar-button.spec.ts +21 -0
- package/projects/dasar-ui/src/lib/components/dasar-button/dasar-button.ts +154 -0
- package/projects/dasar-ui/src/lib/components/dasar-button-group/dasar-button-group.html +1 -0
- package/projects/dasar-ui/src/lib/components/dasar-button-group/dasar-button-group.scss +69 -0
- package/projects/dasar-ui/src/lib/components/dasar-button-group/dasar-button-group.spec.ts +21 -0
- package/projects/dasar-ui/src/lib/components/dasar-button-group/dasar-button-group.ts +26 -0
- package/projects/dasar-ui/src/lib/components/dasar-calendar/dasar-calendar.html +158 -0
- package/projects/dasar-ui/src/lib/components/dasar-calendar/dasar-calendar.scss +371 -0
- package/projects/dasar-ui/src/lib/components/dasar-calendar/dasar-calendar.spec.ts +21 -0
- package/projects/dasar-ui/src/lib/components/dasar-calendar/dasar-calendar.ts +458 -0
- package/projects/dasar-ui/src/lib/components/dasar-card/dasar-card.html +80 -0
- package/projects/dasar-ui/src/lib/components/dasar-card/dasar-card.scss +184 -0
- package/projects/dasar-ui/src/lib/components/dasar-card/dasar-card.spec.ts +21 -0
- package/projects/dasar-ui/src/lib/components/dasar-card/dasar-card.ts +294 -0
- package/projects/dasar-ui/src/lib/components/dasar-chip/dasar-chip.html +42 -0
- package/projects/dasar-ui/src/lib/components/dasar-chip/dasar-chip.scss +38 -0
- package/projects/dasar-ui/src/lib/components/dasar-chip/dasar-chip.ts +205 -0
- package/projects/dasar-ui/src/lib/components/dasar-datepicker/dasar-datepicker.html +111 -0
- package/projects/dasar-ui/src/lib/components/dasar-datepicker/dasar-datepicker.scss +331 -0
- package/projects/dasar-ui/src/lib/components/dasar-datepicker/dasar-datepicker.spec.ts +93 -0
- package/projects/dasar-ui/src/lib/components/dasar-datepicker/dasar-datepicker.ts +527 -0
- package/projects/dasar-ui/src/lib/components/dasar-icon/dasar-icon.html +1 -0
- package/projects/dasar-ui/src/lib/components/dasar-icon/dasar-icon.registry.ts +5087 -0
- package/projects/dasar-ui/src/lib/components/dasar-icon/dasar-icon.scss +24 -0
- package/projects/dasar-ui/src/lib/components/dasar-icon/dasar-icon.spec.ts +21 -0
- package/projects/dasar-ui/src/lib/components/dasar-icon/dasar-icon.ts +97 -0
- package/projects/dasar-ui/src/lib/components/dasar-input/dasar-input.html +54 -0
- package/projects/dasar-ui/src/lib/components/dasar-input/dasar-input.scss +251 -0
- package/projects/dasar-ui/src/lib/components/dasar-input/dasar-input.spec.ts +21 -0
- package/projects/dasar-ui/src/lib/components/dasar-input/dasar-input.ts +319 -0
- 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 +64 -0
- package/projects/dasar-ui/src/lib/components/dasar-menu/dasar-menu.scss +229 -0
- package/projects/dasar-ui/src/lib/components/dasar-menu/dasar-menu.spec.ts +93 -0
- package/projects/dasar-ui/src/lib/components/dasar-menu/dasar-menu.ts +278 -0
- 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.html +90 -0
- package/projects/dasar-ui/src/lib/components/dasar-number-input/dasar-number-input.scss +353 -0
- package/projects/dasar-ui/src/lib/components/dasar-number-input/dasar-number-input.spec.ts +21 -0
- package/projects/dasar-ui/src/lib/components/dasar-number-input/dasar-number-input.ts +337 -0
- 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 +112 -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.html +98 -0
- package/projects/dasar-ui/src/lib/components/dasar-pagination/dasar-pagination.scss +51 -0
- package/projects/dasar-ui/src/lib/components/dasar-pagination/dasar-pagination.spec.ts +21 -0
- package/projects/dasar-ui/src/lib/components/dasar-pagination/dasar-pagination.ts +99 -0
- package/projects/dasar-ui/src/lib/components/dasar-pin/dasar-pin.css +0 -0
- package/projects/dasar-ui/src/lib/components/dasar-pin/dasar-pin.html +1 -0
- package/projects/dasar-ui/src/lib/components/dasar-pin/dasar-pin.spec.ts +21 -0
- package/projects/dasar-ui/src/lib/components/dasar-pin/dasar-pin.ts +9 -0
- package/projects/dasar-ui/src/lib/components/dasar-pivot-table/dasar-pivot-table.html +150 -0
- package/projects/dasar-ui/src/lib/components/dasar-pivot-table/dasar-pivot-table.scss +272 -0
- package/projects/dasar-ui/src/lib/components/dasar-pivot-table/dasar-pivot-table.ts +228 -0
- package/projects/dasar-ui/src/lib/components/dasar-radio/dasar-radio.css +0 -0
- package/projects/dasar-ui/src/lib/components/dasar-radio/dasar-radio.html +1 -0
- package/projects/dasar-ui/src/lib/components/dasar-radio/dasar-radio.spec.ts +21 -0
- package/projects/dasar-ui/src/lib/components/dasar-radio/dasar-radio.ts +9 -0
- package/projects/dasar-ui/src/lib/components/dasar-select/dasar-select.html +189 -0
- package/projects/dasar-ui/src/lib/components/dasar-select/dasar-select.scss +387 -0
- package/projects/dasar-ui/src/lib/components/dasar-select/dasar-select.spec.ts +97 -0
- package/projects/dasar-ui/src/lib/components/dasar-select/dasar-select.ts +540 -0
- package/projects/dasar-ui/src/lib/components/dasar-slider/dasar-slider.css +0 -0
- package/projects/dasar-ui/src/lib/components/dasar-slider/dasar-slider.html +1 -0
- package/projects/dasar-ui/src/lib/components/dasar-slider/dasar-slider.spec.ts +21 -0
- package/projects/dasar-ui/src/lib/components/dasar-slider/dasar-slider.ts +9 -0
- package/projects/dasar-ui/src/lib/components/dasar-table/dasar-table.html +162 -0
- package/projects/dasar-ui/src/lib/components/dasar-table/dasar-table.scss +283 -0
- package/projects/dasar-ui/src/lib/components/dasar-table/dasar-table.spec.ts +21 -0
- package/projects/dasar-ui/src/lib/components/dasar-table/dasar-table.ts +380 -0
- package/projects/dasar-ui/src/lib/components/dasar-tabs/dasar-tabs.html +103 -0
- package/projects/dasar-ui/src/lib/components/dasar-tabs/dasar-tabs.scss +238 -0
- package/projects/dasar-ui/src/lib/components/dasar-tabs/dasar-tabs.spec.ts +570 -0
- package/projects/dasar-ui/src/lib/components/dasar-tabs/dasar-tabs.ts +349 -0
- package/projects/dasar-ui/src/lib/components/dasar-textarea/dasar-textarea.html +43 -0
- package/projects/dasar-ui/src/lib/components/dasar-textarea/dasar-textarea.scss +189 -0
- package/projects/dasar-ui/src/lib/components/dasar-textarea/dasar-textarea.spec.ts +21 -0
- package/projects/dasar-ui/src/lib/components/dasar-textarea/dasar-textarea.ts +139 -0
- package/projects/dasar-ui/src/lib/components/dasar-theme-provider/dasar-theme-provider.spec.ts +89 -0
- package/projects/dasar-ui/src/lib/components/dasar-theme-provider/dasar-theme-provider.ts +294 -0
- package/projects/dasar-ui/src/lib/components/dasar-toast/dasar-toast.css +0 -0
- package/projects/dasar-ui/src/lib/components/dasar-toast/dasar-toast.html +1 -0
- package/projects/dasar-ui/src/lib/components/dasar-toast/dasar-toast.spec.ts +21 -0
- package/projects/dasar-ui/src/lib/components/dasar-toast/dasar-toast.ts +9 -0
- package/projects/dasar-ui/src/lib/components/dasar-toggle/dasar-toggle.css +0 -0
- package/projects/dasar-ui/src/lib/components/dasar-toggle/dasar-toggle.html +1 -0
- package/projects/dasar-ui/src/lib/components/dasar-toggle/dasar-toggle.spec.ts +21 -0
- package/projects/dasar-ui/src/lib/components/dasar-toggle/dasar-toggle.ts +9 -0
- package/projects/dasar-ui/src/lib/components/dasar-tooltip/dasar-tooltip.css +0 -0
- package/projects/dasar-ui/src/lib/components/dasar-tooltip/dasar-tooltip.html +1 -0
- package/projects/dasar-ui/src/lib/components/dasar-tooltip/dasar-tooltip.spec.ts +21 -0
- package/projects/dasar-ui/src/lib/components/dasar-tooltip/dasar-tooltip.ts +9 -0
- package/projects/dasar-ui/src/lib/models/theme.model.ts +730 -0
- package/projects/dasar-ui/src/lib/models/type.model.ts +11 -0
- package/projects/dasar-ui/src/lib/services/theme.service.spec.ts +130 -0
- package/projects/dasar-ui/src/lib/services/theme.service.ts +777 -0
- package/{styles → projects/dasar-ui/src/lib/styles}/theme.scss +47 -48
- package/projects/dasar-ui/src/lib/styles/theme.ts +70 -0
- package/projects/dasar-ui/src/lib/utils/common.ts +156 -0
- 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 +24 -0
- package/projects/dasar-ui/tsconfig.lib.json +21 -0
- package/projects/dasar-ui/tsconfig.lib.prod.json +11 -0
- package/projects/dasar-ui/tsconfig.spec.json +18 -0
- package/projects/documentation/public/favicon.ico +0 -0
- package/projects/documentation/src/app/app.html +78 -0
- package/projects/documentation/src/app/app.spec.ts +23 -0
- package/projects/documentation/src/app/app.ts +57 -0
- package/projects/documentation/src/app/components/doc-customize-modal.component.ts +368 -0
- package/projects/documentation/src/app/components/doc-example.component.ts +195 -0
- package/projects/documentation/src/app/components/doc-markdown.component.ts +154 -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 +249 -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/getting-started/getting-started.page.ts +21 -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/installation/installation.page.ts +18 -0
- package/projects/documentation/src/app/pages/introduction/introduction.page.ts +18 -0
- package/projects/documentation/src/app/pages/list/examples/advanced-dynamic/list-advanced-dynamic.example.html +29 -0
- package/projects/documentation/src/app/pages/list/examples/advanced-dynamic/list-advanced-dynamic.example.ts +33 -0
- package/projects/documentation/src/app/pages/list/examples/advanced-theme/list-advanced-theme.example.html +13 -0
- package/projects/documentation/src/app/pages/list/examples/advanced-theme/list-advanced-theme.example.ts +30 -0
- package/projects/documentation/src/app/pages/list/examples/basic/list-basic.example.html +5 -0
- package/projects/documentation/src/app/pages/list/examples/basic/list-basic.example.ts +12 -0
- package/projects/documentation/src/app/pages/list/examples/bordered-divider/list-bordered-divider.example.html +20 -0
- package/projects/documentation/src/app/pages/list/examples/bordered-divider/list-bordered-divider.example.ts +12 -0
- package/projects/documentation/src/app/pages/list/examples/custom-style/list-custom-style.example.html +11 -0
- package/projects/documentation/src/app/pages/list/examples/custom-style/list-custom-style.example.ts +19 -0
- package/projects/documentation/src/app/pages/list/examples/header-footer/list-header-footer.example.html +7 -0
- package/projects/documentation/src/app/pages/list/examples/header-footer/list-header-footer.example.ts +12 -0
- package/projects/documentation/src/app/pages/list/examples/interactive/list-interactive.example.html +20 -0
- package/projects/documentation/src/app/pages/list/examples/interactive/list-interactive.example.ts +22 -0
- package/projects/documentation/src/app/pages/list/examples/prefix-suffix/list-prefix-suffix.example.html +9 -0
- package/projects/documentation/src/app/pages/list/examples/prefix-suffix/list-prefix-suffix.example.ts +16 -0
- package/projects/documentation/src/app/pages/list/examples/size/list-size.example.html +20 -0
- package/projects/documentation/src/app/pages/list/examples/size/list-size.example.ts +12 -0
- package/projects/documentation/src/app/pages/list/list.page.html +95 -0
- package/projects/documentation/src/app/pages/list/list.page.ts +238 -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 +266 -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 +347 -0
- package/projects/documentation/src/app/pages/theming/examples/component-config/theming-component-config.example.html +13 -0
- package/projects/documentation/src/app/pages/theming/examples/component-config/theming-component-config.example.ts +20 -0
- package/projects/documentation/src/app/pages/theming/examples/css-override/theming-css-override.example.html +8 -0
- package/projects/documentation/src/app/pages/theming/examples/css-override/theming-css-override.example.scss +4 -0
- package/projects/documentation/src/app/pages/theming/examples/css-override/theming-css-override.example.ts +11 -0
- package/projects/documentation/src/app/pages/theming/examples/custom-tokens/theming-custom-tokens.example.html +13 -0
- package/projects/documentation/src/app/pages/theming/examples/custom-tokens/theming-custom-tokens.example.ts +33 -0
- package/projects/documentation/src/app/pages/theming/examples/global-theme/theming-global-theme.example.html +6 -0
- package/projects/documentation/src/app/pages/theming/examples/global-theme/theming-global-theme.example.ts +20 -0
- package/projects/documentation/src/app/pages/theming/examples/light-dark/theming-light-dark.example.html +15 -0
- package/projects/documentation/src/app/pages/theming/examples/light-dark/theming-light-dark.example.ts +31 -0
- package/projects/documentation/src/app/pages/theming/theming-component-config.page.ts +52 -0
- package/projects/documentation/src/app/pages/theming/theming-css-variables.page.ts +71 -0
- package/projects/documentation/src/app/pages/theming/theming-tokens.page.ts +56 -0
- package/projects/documentation/src/app/pages/theming/theming.data.ts +947 -0
- package/projects/documentation/src/app/pages/theming/theming.page.html +56 -0
- package/projects/documentation/src/app/pages/theming/theming.page.ts +144 -0
- package/projects/documentation/src/app/routes/app.routes.server.ts +8 -0
- package/projects/documentation/src/app/routes/app.routes.ts +135 -0
- package/projects/documentation/src/app/services/doc-customize.service.ts +119 -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 +19 -0
- package/projects/documentation/tsconfig.app.json +11 -0
- package/projects/documentation/tsconfig.spec.json +10 -0
- package/tsconfig.json +40 -0
- package/fesm2022/dasar-ui.mjs +0 -9664
- package/fesm2022/dasar-ui.mjs.map +0 -1
- package/types/dasar-ui.d.ts +0 -2114
|
@@ -0,0 +1,947 @@
|
|
|
1
|
+
import {
|
|
2
|
+
buttonMap,
|
|
3
|
+
calendarMap,
|
|
4
|
+
cardMap,
|
|
5
|
+
chipMap,
|
|
6
|
+
commonMap,
|
|
7
|
+
datepickerMap,
|
|
8
|
+
inputMap,
|
|
9
|
+
listMap,
|
|
10
|
+
menuMap,
|
|
11
|
+
modalMap,
|
|
12
|
+
overlayMap,
|
|
13
|
+
selectMap,
|
|
14
|
+
tableMap,
|
|
15
|
+
tabsMap,
|
|
16
|
+
} from 'dasar-ui';
|
|
17
|
+
import { DocApiProperty } from '../../layouts/doc.layout';
|
|
18
|
+
|
|
19
|
+
export interface ThemingTokenGroup {
|
|
20
|
+
component: string;
|
|
21
|
+
path: string;
|
|
22
|
+
map: Record<string, string>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface ThemingTokenRow {
|
|
26
|
+
component: string;
|
|
27
|
+
token: string;
|
|
28
|
+
cssVar: string;
|
|
29
|
+
path: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export const TOKEN_GROUPS: ThemingTokenGroup[] = [
|
|
33
|
+
{ component: 'common', path: 'tokens.light.common', map: commonMap },
|
|
34
|
+
{ component: 'button', path: 'tokens.light.button', map: buttonMap },
|
|
35
|
+
{ component: 'input', path: 'tokens.light.input', map: inputMap },
|
|
36
|
+
{ component: 'calendar', path: 'tokens.light.calendar', map: calendarMap },
|
|
37
|
+
{ component: 'datepicker', path: 'tokens.light.datepicker', map: datepickerMap },
|
|
38
|
+
{ component: 'chip', path: 'tokens.light.chip', map: chipMap },
|
|
39
|
+
{ component: 'select', path: 'tokens.light.select', map: selectMap },
|
|
40
|
+
{ component: 'card', path: 'tokens.light.card', map: cardMap },
|
|
41
|
+
{ component: 'menu', path: 'tokens.light.menu', map: menuMap },
|
|
42
|
+
{ component: 'table', path: 'tokens.light.table', map: tableMap },
|
|
43
|
+
{ component: 'list', path: 'tokens.light.list', map: listMap },
|
|
44
|
+
{ component: 'tabs', path: 'tokens.light.tabs', map: tabsMap },
|
|
45
|
+
{ component: 'overlay', path: 'tokens.light.overlay', map: overlayMap },
|
|
46
|
+
{ component: 'modal', path: 'tokens.light.modal', map: modalMap },
|
|
47
|
+
];
|
|
48
|
+
|
|
49
|
+
export const TOKEN_ROWS: ThemingTokenRow[] = TOKEN_GROUPS.flatMap((group) =>
|
|
50
|
+
Object.entries(group.map).map(([token, cssVar]) => ({
|
|
51
|
+
component: group.component,
|
|
52
|
+
token,
|
|
53
|
+
cssVar,
|
|
54
|
+
path: group.path,
|
|
55
|
+
})),
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
export const COMPONENT_CONFIG_DOCS: Record<string, DocApiProperty[]> = {
|
|
59
|
+
common: [
|
|
60
|
+
{
|
|
61
|
+
name: 'size',
|
|
62
|
+
type: "'xs' | 'sm' | 'md' | 'lg' | 'xl'",
|
|
63
|
+
defaultValue: '-',
|
|
64
|
+
description: 'Shared size default used by components that opt into the common config.',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: 'radius',
|
|
68
|
+
type: 'ScaleAttributeType',
|
|
69
|
+
defaultValue: '-',
|
|
70
|
+
description: 'Shared radius default used by components that opt into the common config.',
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
button: [
|
|
74
|
+
{
|
|
75
|
+
name: 'appearance',
|
|
76
|
+
type: "'solid' | 'subtle' | 'outline'",
|
|
77
|
+
defaultValue: "'solid'",
|
|
78
|
+
description: 'Fill style of the button.',
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: 'variant',
|
|
82
|
+
type: "'primary' | 'secondary' | 'success' | 'warning' | 'danger' | ...",
|
|
83
|
+
defaultValue: "'primary'",
|
|
84
|
+
description: 'Color variant of the button.',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
name: 'radius',
|
|
88
|
+
type: 'DasarButtonRadiusType',
|
|
89
|
+
defaultValue: "'md'",
|
|
90
|
+
description: 'Corner radius of the button.',
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
name: 'size',
|
|
94
|
+
type: 'DasarButtonSizeType',
|
|
95
|
+
defaultValue: "'md'",
|
|
96
|
+
description: 'Size of the button.',
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: 'type',
|
|
100
|
+
type: "'button' | 'submit' | 'reset'",
|
|
101
|
+
defaultValue: "'button'",
|
|
102
|
+
description: 'Native button type.',
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: 'fullWidth',
|
|
106
|
+
type: 'boolean',
|
|
107
|
+
defaultValue: 'false',
|
|
108
|
+
description: 'Stretches the button to the container width.',
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
name: 'iconOnly',
|
|
112
|
+
type: 'boolean',
|
|
113
|
+
defaultValue: 'false',
|
|
114
|
+
description: 'Square padding for icon-only buttons.',
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
name: 'disabled',
|
|
118
|
+
type: 'boolean',
|
|
119
|
+
defaultValue: 'false',
|
|
120
|
+
description: 'Disables the button.',
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
name: 'fluid',
|
|
124
|
+
type: 'boolean',
|
|
125
|
+
defaultValue: 'false',
|
|
126
|
+
description: 'Removes the fixed height so the button follows its content.',
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: 'buttonStyle',
|
|
130
|
+
type: 'StyleType',
|
|
131
|
+
defaultValue: '-',
|
|
132
|
+
description: 'Inline style for the button element.',
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
name: 'buttonClass',
|
|
136
|
+
type: 'ClassType',
|
|
137
|
+
defaultValue: '-',
|
|
138
|
+
description: 'Class for the button element.',
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
input: [
|
|
142
|
+
{
|
|
143
|
+
name: 'appearance',
|
|
144
|
+
type: 'DasarInputAppearanceType',
|
|
145
|
+
defaultValue: "'outline'",
|
|
146
|
+
description: 'Fill style of the input.',
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
name: 'radius',
|
|
150
|
+
type: 'DasarInputRadiusType',
|
|
151
|
+
defaultValue: "'md'",
|
|
152
|
+
description: 'Corner radius of the input.',
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
name: 'size',
|
|
156
|
+
type: 'DasarInputSizeType',
|
|
157
|
+
defaultValue: "'md'",
|
|
158
|
+
description: 'Size of the input.',
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
name: 'type',
|
|
162
|
+
type: 'DasarInputType',
|
|
163
|
+
defaultValue: "'text'",
|
|
164
|
+
description: 'Native input type.',
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
name: 'mask',
|
|
168
|
+
type: 'DasarInputMaskType',
|
|
169
|
+
defaultValue: '-',
|
|
170
|
+
description: 'Input mask preset.',
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
name: 'label',
|
|
174
|
+
type: 'string',
|
|
175
|
+
defaultValue: "''",
|
|
176
|
+
description: 'Label above the input.',
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
name: 'labelRight',
|
|
180
|
+
type: 'string',
|
|
181
|
+
defaultValue: "''",
|
|
182
|
+
description: 'Secondary label on the right side.',
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
name: 'placeholder',
|
|
186
|
+
type: 'string',
|
|
187
|
+
defaultValue: "''",
|
|
188
|
+
description: 'Placeholder text.',
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
name: 'hint',
|
|
192
|
+
type: 'string',
|
|
193
|
+
defaultValue: "''",
|
|
194
|
+
description: 'Hint text below the input.',
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
name: 'fullWidth',
|
|
198
|
+
type: 'boolean',
|
|
199
|
+
defaultValue: 'false',
|
|
200
|
+
description: 'Stretches the input to the container width.',
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
name: 'disabled',
|
|
204
|
+
type: 'boolean',
|
|
205
|
+
defaultValue: 'false',
|
|
206
|
+
description: 'Disables the input.',
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
name: 'readonly',
|
|
210
|
+
type: 'boolean',
|
|
211
|
+
defaultValue: 'false',
|
|
212
|
+
description: 'Makes the input read-only.',
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
name: 'error',
|
|
216
|
+
type: 'boolean',
|
|
217
|
+
defaultValue: 'false',
|
|
218
|
+
description: 'Error state styling.',
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
name: 'fluid',
|
|
222
|
+
type: 'boolean',
|
|
223
|
+
defaultValue: 'false',
|
|
224
|
+
description: 'Removes the fixed height.',
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
name: 'hideOverflow',
|
|
228
|
+
type: 'boolean',
|
|
229
|
+
defaultValue: 'false',
|
|
230
|
+
description: 'Clips overflowing content.',
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
name: 'containerStyle / inputStyle / hostStyle / hintStyle',
|
|
234
|
+
type: 'StyleType',
|
|
235
|
+
defaultValue: '-',
|
|
236
|
+
description: 'Inline styles for the input parts.',
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
name: 'containerClass / inputClass / hostClass / hintClass',
|
|
240
|
+
type: 'ClassType',
|
|
241
|
+
defaultValue: '-',
|
|
242
|
+
description: 'Classes for the input parts.',
|
|
243
|
+
},
|
|
244
|
+
],
|
|
245
|
+
numberInput: [
|
|
246
|
+
{
|
|
247
|
+
name: 'appearance',
|
|
248
|
+
type: 'DasarNumberInputAppearanceType',
|
|
249
|
+
defaultValue: "'outline'",
|
|
250
|
+
description: 'Fill style of the number input.',
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
name: 'radius',
|
|
254
|
+
type: 'DasarNumberInputRadiusType',
|
|
255
|
+
defaultValue: "'md'",
|
|
256
|
+
description: 'Corner radius.',
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
name: 'size',
|
|
260
|
+
type: 'DasarNumberInputSize',
|
|
261
|
+
defaultValue: "'md'",
|
|
262
|
+
description: 'Size of the number input.',
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
name: 'label / labelRight / placeholder / hint',
|
|
266
|
+
type: 'string',
|
|
267
|
+
defaultValue: "''",
|
|
268
|
+
description: 'Text parts of the number input.',
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
name: 'step / min / max',
|
|
272
|
+
type: 'number',
|
|
273
|
+
defaultValue: '-',
|
|
274
|
+
description: 'Step and range limits for the stepper buttons.',
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
name: 'disabled / fullWidth / error',
|
|
278
|
+
type: 'boolean',
|
|
279
|
+
defaultValue: 'false',
|
|
280
|
+
description: 'State flags.',
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
name: 'containerStyle / inputStyle / hintStyle',
|
|
284
|
+
type: 'StyleType',
|
|
285
|
+
defaultValue: '-',
|
|
286
|
+
description: 'Inline styles for the number input parts.',
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
name: 'containerClass / inputClass / hostClass / hintClass',
|
|
290
|
+
type: 'ClassType',
|
|
291
|
+
defaultValue: '-',
|
|
292
|
+
description: 'Classes for the number input parts.',
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
name: 'hideOverflow',
|
|
296
|
+
type: 'boolean',
|
|
297
|
+
defaultValue: 'false',
|
|
298
|
+
description: 'Clips overflowing content.',
|
|
299
|
+
},
|
|
300
|
+
],
|
|
301
|
+
select: [
|
|
302
|
+
{
|
|
303
|
+
name: 'appearance',
|
|
304
|
+
type: 'DasarSelectAppearanceType',
|
|
305
|
+
defaultValue: "'outline'",
|
|
306
|
+
description: 'Fill style of the select trigger.',
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
name: 'radius / size',
|
|
310
|
+
type: 'DasarSelectRadiusType / DasarSelectSizeType',
|
|
311
|
+
defaultValue: "'md' / 'md'",
|
|
312
|
+
description: 'Corner radius and size.',
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
name: 'options',
|
|
316
|
+
type: 'DasarSelectOption[]',
|
|
317
|
+
defaultValue: '[]',
|
|
318
|
+
description: 'Selectable options.',
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
name: 'multipleType',
|
|
322
|
+
type: 'DasarSelectMultipleDisplayType',
|
|
323
|
+
defaultValue: '-',
|
|
324
|
+
description: 'How multiple selected values are displayed.',
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
name: 'chipSize',
|
|
328
|
+
type: 'DasarSelectChipSizeType',
|
|
329
|
+
defaultValue: '-',
|
|
330
|
+
description: 'Size of the selected-value chips.',
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
name: 'arrowIconName',
|
|
334
|
+
type: 'string',
|
|
335
|
+
defaultValue: '-',
|
|
336
|
+
description: 'Icon used for the dropdown arrow.',
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
name: 'debounceTime',
|
|
340
|
+
type: 'number',
|
|
341
|
+
defaultValue: '-',
|
|
342
|
+
description: 'Debounce for the search input in milliseconds.',
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
name: 'label / labelRight / placeholder / hint',
|
|
346
|
+
type: 'string',
|
|
347
|
+
defaultValue: "''",
|
|
348
|
+
description: 'Text parts of the select.',
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
name: 'placement',
|
|
352
|
+
type: 'DasarPanelPlacement',
|
|
353
|
+
defaultValue: '-',
|
|
354
|
+
description: 'Dropdown panel placement.',
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
name: 'clearable / searchable / disabled / loading / error / fullWidth / hideOverflow',
|
|
358
|
+
type: 'boolean',
|
|
359
|
+
defaultValue: 'false',
|
|
360
|
+
description: 'State flags.',
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
name: 'dropdownPanelStyle / containerStyle',
|
|
364
|
+
type: 'StyleType',
|
|
365
|
+
defaultValue: '-',
|
|
366
|
+
description: 'Inline styles for the panel and container.',
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
name: 'dropdownPanelClass / containerClass / optionClass',
|
|
370
|
+
type: 'ClassType',
|
|
371
|
+
defaultValue: '-',
|
|
372
|
+
description: 'Classes for the panel, container and options.',
|
|
373
|
+
},
|
|
374
|
+
],
|
|
375
|
+
chip: [
|
|
376
|
+
{
|
|
377
|
+
name: 'appearance',
|
|
378
|
+
type: 'DasarChipAppearanceType',
|
|
379
|
+
defaultValue: "'solid'",
|
|
380
|
+
description: 'Fill style of the chip.',
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
name: 'variant',
|
|
384
|
+
type: 'DasarChipVariantType',
|
|
385
|
+
defaultValue: "'primary'",
|
|
386
|
+
description: 'Color variant of the chip.',
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
name: 'size',
|
|
390
|
+
type: 'DasarButtonSizeType',
|
|
391
|
+
defaultValue: "'xs'",
|
|
392
|
+
description: 'Size of the chip.',
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
name: 'radius',
|
|
396
|
+
type: 'DasarButtonRadiusType',
|
|
397
|
+
defaultValue: '-',
|
|
398
|
+
description: 'Corner radius of the chip.',
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
name: 'label',
|
|
402
|
+
type: 'string',
|
|
403
|
+
defaultValue: "''",
|
|
404
|
+
description: 'Chip label. Content projection works as well.',
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
name: 'iconName / closeIconName',
|
|
408
|
+
type: 'string',
|
|
409
|
+
defaultValue: '-',
|
|
410
|
+
description: 'Leading icon and the remove icon.',
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
name: 'removable / disabled / fluid',
|
|
414
|
+
type: 'boolean',
|
|
415
|
+
defaultValue: 'false',
|
|
416
|
+
description: 'State flags.',
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
name: 'containerStyle / contentStyle / labelStyle',
|
|
420
|
+
type: 'StyleType',
|
|
421
|
+
defaultValue: '-',
|
|
422
|
+
description: 'Inline styles for the chip parts.',
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
name: 'containerClass / contentClass / labelClass',
|
|
426
|
+
type: 'ClassType',
|
|
427
|
+
defaultValue: '-',
|
|
428
|
+
description: 'Classes for the chip parts.',
|
|
429
|
+
},
|
|
430
|
+
],
|
|
431
|
+
calendar: [
|
|
432
|
+
{
|
|
433
|
+
name: 'appearance',
|
|
434
|
+
type: "'outline' | 'borderless'",
|
|
435
|
+
defaultValue: "'outline'",
|
|
436
|
+
description: 'Fill style of the calendar.',
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
name: 'variant',
|
|
440
|
+
type: "'dashboard' | 'dropdown'",
|
|
441
|
+
defaultValue: "'dashboard'",
|
|
442
|
+
description: 'Full calendar or compact dropdown calendar.',
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
name: 'size',
|
|
446
|
+
type: 'DasarCalendarSizeType',
|
|
447
|
+
defaultValue: "'md'",
|
|
448
|
+
description: 'Size of the calendar.',
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
name: 'radius',
|
|
452
|
+
type: 'DasarCalendarRadius',
|
|
453
|
+
defaultValue: '-',
|
|
454
|
+
description: 'Corner radius.',
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
name: 'locale',
|
|
458
|
+
type: 'string',
|
|
459
|
+
defaultValue: '-',
|
|
460
|
+
description: 'Locale for month and weekday names.',
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
name: 'weekdayFormat / headerFormat / valueFormat',
|
|
464
|
+
type: 'string',
|
|
465
|
+
defaultValue: '-',
|
|
466
|
+
description: 'Date format strings for the calendar parts.',
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
name: 'hideHeader / hideFullDate / fullWidth / disabled',
|
|
470
|
+
type: 'boolean',
|
|
471
|
+
defaultValue: 'false',
|
|
472
|
+
description: 'State flags.',
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
name: 'containerStyle / headerStyle',
|
|
476
|
+
type: 'StyleType',
|
|
477
|
+
defaultValue: '-',
|
|
478
|
+
description: 'Inline styles for the calendar parts.',
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
name: 'containerClass / headerClass',
|
|
482
|
+
type: 'ClassType',
|
|
483
|
+
defaultValue: '-',
|
|
484
|
+
description: 'Classes for the calendar parts.',
|
|
485
|
+
},
|
|
486
|
+
],
|
|
487
|
+
datepicker: [
|
|
488
|
+
{
|
|
489
|
+
name: 'appearance',
|
|
490
|
+
type: 'DasarDatepickerAppearance',
|
|
491
|
+
defaultValue: "'outline'",
|
|
492
|
+
description: 'Fill style of the trigger input.',
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
name: 'type',
|
|
496
|
+
type: 'DasarDatepickerType',
|
|
497
|
+
defaultValue: "'single'",
|
|
498
|
+
description: 'Single date or range selection.',
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
name: 'size / radius',
|
|
502
|
+
type: 'DasarDatepickerSize / DasarDatepickerRadius',
|
|
503
|
+
defaultValue: "'md' / 'md'",
|
|
504
|
+
description: 'Size and corner radius.',
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
name: 'displayFormat / valueFormat',
|
|
508
|
+
type: 'string',
|
|
509
|
+
defaultValue: '-',
|
|
510
|
+
description: 'Display format and emitted value format.',
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
name: 'placement',
|
|
514
|
+
type: 'DasarDatepickerPlacement',
|
|
515
|
+
defaultValue: '-',
|
|
516
|
+
description: 'Calendar dropdown placement.',
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
name: 'label / extraLabel / placeholder / hint',
|
|
520
|
+
type: 'string',
|
|
521
|
+
defaultValue: "''",
|
|
522
|
+
description: 'Text parts of the datepicker.',
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
name: 'locale',
|
|
526
|
+
type: 'string',
|
|
527
|
+
defaultValue: '-',
|
|
528
|
+
description: 'Locale for the calendar.',
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
name: 'fullWidth / clearable / disabled / fluid / error',
|
|
532
|
+
type: 'boolean',
|
|
533
|
+
defaultValue: 'false',
|
|
534
|
+
description: 'State flags.',
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
name: 'wrapperStyle / triggerStyle / labelWrapperStyle / hintWrapperStyle / containerStyle / dropdownStyle',
|
|
538
|
+
type: 'StyleType',
|
|
539
|
+
defaultValue: '-',
|
|
540
|
+
description: 'Inline styles for the datepicker parts.',
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
name: 'containerClass / wrapperClass / triggerClass / dropdownClass / labelWrapperClass / hintWrapperClass',
|
|
544
|
+
type: 'ClassType',
|
|
545
|
+
defaultValue: '-',
|
|
546
|
+
description: 'Classes for the datepicker parts.',
|
|
547
|
+
},
|
|
548
|
+
],
|
|
549
|
+
card: [
|
|
550
|
+
{
|
|
551
|
+
name: 'appearance',
|
|
552
|
+
type: "'outline' | 'borderless' | 'elevated'",
|
|
553
|
+
defaultValue: "'outline'",
|
|
554
|
+
description: 'Fill style of the card.',
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
name: 'spacing',
|
|
558
|
+
type: "'normal' | 'compact'",
|
|
559
|
+
defaultValue: "'normal'",
|
|
560
|
+
description: 'Padding density of the card.',
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
name: 'radius / size',
|
|
564
|
+
type: "ScaleAttributeType / 'sm' | 'md' | 'lg'",
|
|
565
|
+
defaultValue: "'md' / 'md'",
|
|
566
|
+
description: 'Corner radius and size.',
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
name: 'label',
|
|
570
|
+
type: 'string',
|
|
571
|
+
defaultValue: "''",
|
|
572
|
+
description: 'Card title.',
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
name: 'closable',
|
|
576
|
+
type: 'boolean',
|
|
577
|
+
defaultValue: 'false',
|
|
578
|
+
description: 'Shows a close button.',
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
name: 'fullWidth / fluid',
|
|
582
|
+
type: 'boolean',
|
|
583
|
+
defaultValue: 'false',
|
|
584
|
+
description: 'Width and height behavior flags.',
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
name: 'captionFluid / hideOverflow / headerFluid / actionFluid / bodyFluid',
|
|
588
|
+
type: 'boolean',
|
|
589
|
+
defaultValue: 'false',
|
|
590
|
+
description: 'Layout flags for the card slots.',
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
name: 'contentHeaderStyle / extraHeaderStyle / containerStyle / captionStyle / headerStyle / actionStyle / bodyStyle',
|
|
594
|
+
type: 'StyleType',
|
|
595
|
+
defaultValue: '-',
|
|
596
|
+
description: 'Inline styles for the card parts.',
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
name: 'contentHeaderClass / extraHeaderClass / containerClass / captionClass / actionClass / headerClass / bodyClass',
|
|
600
|
+
type: 'ClassType',
|
|
601
|
+
defaultValue: '-',
|
|
602
|
+
description: 'Classes for the card parts.',
|
|
603
|
+
},
|
|
604
|
+
],
|
|
605
|
+
modal: [
|
|
606
|
+
{
|
|
607
|
+
name: 'appearance',
|
|
608
|
+
type: 'DasarModalAppearance',
|
|
609
|
+
defaultValue: '-',
|
|
610
|
+
description: 'Fill style of the modal.',
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
name: 'spacing',
|
|
614
|
+
type: 'DasarModalSpacing',
|
|
615
|
+
defaultValue: '-',
|
|
616
|
+
description: 'Padding density of the modal.',
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
name: 'radius / size',
|
|
620
|
+
type: 'DasarModalRadius / DasarModalSize',
|
|
621
|
+
defaultValue: '-',
|
|
622
|
+
description: 'Corner radius and width preset.',
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
name: 'label',
|
|
626
|
+
type: 'string',
|
|
627
|
+
defaultValue: "''",
|
|
628
|
+
description: 'Modal title.',
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
name: 'width',
|
|
632
|
+
type: 'string',
|
|
633
|
+
defaultValue: '-',
|
|
634
|
+
description: 'Custom modal width, overrides the size preset.',
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
name: 'closable / closeOnOverlay / closeOnEscape',
|
|
638
|
+
type: 'boolean',
|
|
639
|
+
defaultValue: 'true',
|
|
640
|
+
description: 'Close behavior flags.',
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
name: 'headerFluid / bodyFluid / actionFluid / fullWidth',
|
|
644
|
+
type: 'boolean',
|
|
645
|
+
defaultValue: 'false',
|
|
646
|
+
description: 'Layout flags.',
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
name: 'overlayBlur / overlayBackground',
|
|
650
|
+
type: 'string',
|
|
651
|
+
defaultValue: 'null',
|
|
652
|
+
description:
|
|
653
|
+
'Backdrop blur and background. Null falls back to the overlay tokens and CSS defaults.',
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
name: 'containerStyle / headerStyle / closeStyle / bodyStyle / actionStyle',
|
|
657
|
+
type: 'StyleType',
|
|
658
|
+
defaultValue: '-',
|
|
659
|
+
description: 'Inline styles for the modal parts.',
|
|
660
|
+
},
|
|
661
|
+
{
|
|
662
|
+
name: 'containerClass / headerClass / closeClass / bodyClass / actionClass',
|
|
663
|
+
type: 'ClassType',
|
|
664
|
+
defaultValue: '-',
|
|
665
|
+
description: 'Classes for the modal parts.',
|
|
666
|
+
},
|
|
667
|
+
],
|
|
668
|
+
overlay: [
|
|
669
|
+
{
|
|
670
|
+
name: 'blur',
|
|
671
|
+
type: 'string',
|
|
672
|
+
defaultValue: 'null',
|
|
673
|
+
description: 'Backdrop blur. Null falls back to the overlay token and the 4px CSS default.',
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
name: 'background',
|
|
677
|
+
type: 'string',
|
|
678
|
+
defaultValue: 'null',
|
|
679
|
+
description:
|
|
680
|
+
'Backdrop background. Null falls back to the overlay token and the rgba(0, 0, 0, 0.45) CSS default.',
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
name: 'zIndex',
|
|
684
|
+
type: 'number',
|
|
685
|
+
defaultValue: '-',
|
|
686
|
+
description: 'Stacking order of the overlay.',
|
|
687
|
+
},
|
|
688
|
+
{
|
|
689
|
+
name: 'closeOnClick',
|
|
690
|
+
type: 'boolean',
|
|
691
|
+
defaultValue: 'true',
|
|
692
|
+
description: 'Closes the overlay when the backdrop is clicked.',
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
name: 'overlayStyle',
|
|
696
|
+
type: 'StyleType',
|
|
697
|
+
defaultValue: '-',
|
|
698
|
+
description: 'Inline style for the overlay.',
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
name: 'overlayClass',
|
|
702
|
+
type: 'ClassType',
|
|
703
|
+
defaultValue: '-',
|
|
704
|
+
description: 'Class for the overlay.',
|
|
705
|
+
},
|
|
706
|
+
],
|
|
707
|
+
icon: [
|
|
708
|
+
{
|
|
709
|
+
name: 'name',
|
|
710
|
+
type: 'string',
|
|
711
|
+
defaultValue: "''",
|
|
712
|
+
description: 'Icon name from the registry.',
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
name: 'size',
|
|
716
|
+
type: 'DasarIconSizeType',
|
|
717
|
+
defaultValue: "'md'",
|
|
718
|
+
description: 'Size of the icon.',
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
name: 'stroke',
|
|
722
|
+
type: 'number',
|
|
723
|
+
defaultValue: '-',
|
|
724
|
+
description: 'Stroke width of the icon paths.',
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
name: 'color',
|
|
728
|
+
type: 'string',
|
|
729
|
+
defaultValue: '-',
|
|
730
|
+
description: 'Icon color override.',
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
name: 'fluid',
|
|
734
|
+
type: 'boolean',
|
|
735
|
+
defaultValue: 'false',
|
|
736
|
+
description: 'Lets the icon fill its container.',
|
|
737
|
+
},
|
|
738
|
+
],
|
|
739
|
+
menu: [
|
|
740
|
+
{
|
|
741
|
+
name: 'placement',
|
|
742
|
+
type: 'DasarMenuPlacementType',
|
|
743
|
+
defaultValue: "'bottom-start'",
|
|
744
|
+
description: 'Dropdown panel placement.',
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
name: 'appearance',
|
|
748
|
+
type: 'DasarMenuAppearanceType',
|
|
749
|
+
defaultValue: "'outline'",
|
|
750
|
+
description: 'Fill style of the panel.',
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
name: 'radius / size',
|
|
754
|
+
type: 'DasarMenuRadiusType / DasarMenuSizeType',
|
|
755
|
+
defaultValue: "'md' / 'md'",
|
|
756
|
+
description: 'Corner radius and size.',
|
|
757
|
+
},
|
|
758
|
+
{
|
|
759
|
+
name: 'label',
|
|
760
|
+
type: 'string',
|
|
761
|
+
defaultValue: "''",
|
|
762
|
+
description: 'Trigger label when no trigger slot is provided.',
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
name: 'items',
|
|
766
|
+
type: 'DasarMenuItem[]',
|
|
767
|
+
defaultValue: '[]',
|
|
768
|
+
description: 'Menu items.',
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
name: 'disabled / fluid',
|
|
772
|
+
type: 'boolean',
|
|
773
|
+
defaultValue: 'false',
|
|
774
|
+
description: 'State flags.',
|
|
775
|
+
},
|
|
776
|
+
{
|
|
777
|
+
name: 'containerStyle / panelStyle / itemStyle',
|
|
778
|
+
type: 'StyleType',
|
|
779
|
+
defaultValue: '-',
|
|
780
|
+
description: 'Inline styles for the menu parts.',
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
name: 'containerClass / panelClass / itemClass',
|
|
784
|
+
type: 'ClassType',
|
|
785
|
+
defaultValue: '-',
|
|
786
|
+
description: 'Classes for the menu parts.',
|
|
787
|
+
},
|
|
788
|
+
],
|
|
789
|
+
table: [
|
|
790
|
+
{
|
|
791
|
+
name: 'data / columns',
|
|
792
|
+
type: 'any[] / DasarTableColumn[]',
|
|
793
|
+
defaultValue: '[]',
|
|
794
|
+
description: 'Rows and column definitions.',
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
name: 'appearance',
|
|
798
|
+
type: 'DasarTableAppearance',
|
|
799
|
+
defaultValue: "'outline'",
|
|
800
|
+
description: 'Fill style of the table container.',
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
name: 'spacing / size',
|
|
804
|
+
type: 'DasarTableSpacing / DasarTableSize',
|
|
805
|
+
defaultValue: "'normal' / 'md'",
|
|
806
|
+
description: 'Padding density and size.',
|
|
807
|
+
},
|
|
808
|
+
{
|
|
809
|
+
name: 'sortKey / sortDirection',
|
|
810
|
+
type: 'string | null / DasarTableSortDirection',
|
|
811
|
+
defaultValue: 'null',
|
|
812
|
+
description: 'Controlled sorting state.',
|
|
813
|
+
},
|
|
814
|
+
{
|
|
815
|
+
name: 'emptyTitle / emptyDescription / loadingText',
|
|
816
|
+
type: 'string',
|
|
817
|
+
defaultValue: '-',
|
|
818
|
+
description: 'Empty and loading state copy.',
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
name: 'fluid / striped / hoverable / loading / expandable',
|
|
822
|
+
type: 'boolean',
|
|
823
|
+
defaultValue: 'false',
|
|
824
|
+
description: 'State flags.',
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
name: 'containerStyle / wrapperStyle / tableStyle / headerStyle / bodyStyle / paginationStyle',
|
|
828
|
+
type: 'StyleType',
|
|
829
|
+
defaultValue: '-',
|
|
830
|
+
description: 'Inline styles for the table parts.',
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
name: 'containerClass / wrapperClass / tableClass / headerClass / bodyClass / paginationClass',
|
|
834
|
+
type: 'ClassType',
|
|
835
|
+
defaultValue: '-',
|
|
836
|
+
description: 'Classes for the table parts.',
|
|
837
|
+
},
|
|
838
|
+
],
|
|
839
|
+
tabs: [
|
|
840
|
+
{
|
|
841
|
+
name: 'appearance',
|
|
842
|
+
type: "'solid' | 'subtle' | 'outline'",
|
|
843
|
+
defaultValue: "'solid'",
|
|
844
|
+
description: 'Fill style of the tab list.',
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
name: 'radius',
|
|
848
|
+
type: 'DasarTabsRadiusType',
|
|
849
|
+
defaultValue: "'md'",
|
|
850
|
+
description: 'Corner radius of the tab list.',
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
name: 'size',
|
|
854
|
+
type: 'DasarTabsSizeType',
|
|
855
|
+
defaultValue: "'md'",
|
|
856
|
+
description: 'Size of the tabs.',
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
name: 'spacing',
|
|
860
|
+
type: "'normal' | 'compact'",
|
|
861
|
+
defaultValue: "'normal'",
|
|
862
|
+
description: 'Padding density of the tabs.',
|
|
863
|
+
},
|
|
864
|
+
{
|
|
865
|
+
name: 'fluid',
|
|
866
|
+
type: 'boolean',
|
|
867
|
+
defaultValue: 'false',
|
|
868
|
+
description: 'Stretches tabs to the container width.',
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
name: 'scrollLeftIconName / scrollRightIconName',
|
|
872
|
+
type: 'string',
|
|
873
|
+
defaultValue: '-',
|
|
874
|
+
description: 'Icons for the overflow scroll buttons.',
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
name: 'containerStyle / contentStyle / listStyle / scrollButtonStyle',
|
|
878
|
+
type: 'StyleType',
|
|
879
|
+
defaultValue: '-',
|
|
880
|
+
description: 'Inline styles for the tabs parts.',
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
name: 'containerClass / contentClass / listClass / scrollButtonClass',
|
|
884
|
+
type: 'ClassType',
|
|
885
|
+
defaultValue: '-',
|
|
886
|
+
description: 'Classes for the tabs parts.',
|
|
887
|
+
},
|
|
888
|
+
],
|
|
889
|
+
list: [
|
|
890
|
+
{
|
|
891
|
+
name: 'size',
|
|
892
|
+
type: "'sm' | 'md' | 'lg'",
|
|
893
|
+
defaultValue: "'md'",
|
|
894
|
+
description: 'Font size and item padding of the list.',
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
name: 'bordered',
|
|
898
|
+
type: 'boolean',
|
|
899
|
+
defaultValue: 'false',
|
|
900
|
+
description: 'Adds a border around the list container.',
|
|
901
|
+
},
|
|
902
|
+
{
|
|
903
|
+
name: 'showDivider',
|
|
904
|
+
type: 'boolean',
|
|
905
|
+
defaultValue: 'false',
|
|
906
|
+
description: 'Separates items with a divider line.',
|
|
907
|
+
},
|
|
908
|
+
{
|
|
909
|
+
name: 'hoverable',
|
|
910
|
+
type: 'boolean',
|
|
911
|
+
defaultValue: 'false',
|
|
912
|
+
description: 'Highlights an item on hover.',
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
name: 'clickable',
|
|
916
|
+
type: 'boolean',
|
|
917
|
+
defaultValue: 'false',
|
|
918
|
+
description: 'Pointer cursor and active background on items.',
|
|
919
|
+
},
|
|
920
|
+
{
|
|
921
|
+
name: 'containerStyle',
|
|
922
|
+
type: 'StyleType',
|
|
923
|
+
defaultValue: '-',
|
|
924
|
+
description: 'Inline style for the list container.',
|
|
925
|
+
},
|
|
926
|
+
{
|
|
927
|
+
name: 'containerClass',
|
|
928
|
+
type: 'ClassType',
|
|
929
|
+
defaultValue: '-',
|
|
930
|
+
description: 'Class for the list container.',
|
|
931
|
+
},
|
|
932
|
+
],
|
|
933
|
+
listItem: [
|
|
934
|
+
{
|
|
935
|
+
name: 'itemStyle',
|
|
936
|
+
type: 'StyleType',
|
|
937
|
+
defaultValue: '-',
|
|
938
|
+
description: 'Inline style for the list item.',
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
name: 'itemClass',
|
|
942
|
+
type: 'ClassType',
|
|
943
|
+
defaultValue: '-',
|
|
944
|
+
description: 'Class for the list item.',
|
|
945
|
+
},
|
|
946
|
+
],
|
|
947
|
+
};
|