@edsis/angular 21.3.13 → 22.0.1
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/.npmignore +2 -0
- package/README.md +261 -88
- package/collection.json +30 -0
- package/component/accordion/README.md +195 -0
- package/component/accordion/package.json +4 -0
- package/component/alert/README.md +182 -0
- package/component/alert/package.json +4 -0
- package/component/alert-dialog/README.md +239 -0
- package/component/alert-dialog/package.json +4 -0
- package/component/aspect-ratio/README.md +112 -0
- package/component/aspect-ratio/package.json +4 -0
- package/component/avatar/README.md +176 -0
- package/component/avatar/package.json +4 -0
- package/component/badge/README.md +133 -0
- package/component/badge/package.json +4 -0
- package/component/breadcrumb/README.md +216 -0
- package/component/breadcrumb/package.json +4 -0
- package/component/button/README.md +139 -0
- package/component/button/package.json +4 -0
- package/component/button-group/README.md +208 -0
- package/component/button-group/package.json +4 -0
- package/component/calendar/README.md +132 -0
- package/component/calendar/package.json +4 -0
- package/component/card/README.md +220 -0
- package/component/card/package.json +4 -0
- package/component/carousel/README.md +276 -0
- package/component/carousel/package.json +4 -0
- package/component/chart/README.md +249 -0
- package/component/chart/area/package.json +4 -0
- package/component/chart/bar/package.json +4 -0
- package/component/chart/line/package.json +4 -0
- package/component/chart/package.json +4 -0
- package/component/chart/pie/package.json +4 -0
- package/component/chart/radar/package.json +4 -0
- package/component/chart/radial/package.json +4 -0
- package/component/chart/scatter/package.json +4 -0
- package/component/checkbox/README.md +149 -0
- package/component/checkbox/package.json +4 -0
- package/component/collapsible/README.md +195 -0
- package/component/collapsible/package.json +4 -0
- package/component/combobox/README.md +198 -0
- package/component/combobox/package.json +4 -0
- package/component/command/README.md +275 -0
- package/component/command/package.json +4 -0
- package/component/composer/README.md +235 -0
- package/component/composer/package.json +4 -0
- package/component/context-menu/README.md +267 -0
- package/component/context-menu/package.json +4 -0
- package/component/date-picker/README.md +177 -0
- package/component/date-picker/package.json +4 -0
- package/component/dialog/README.md +237 -0
- package/component/dialog/package.json +4 -0
- package/component/drawer/README.md +145 -0
- package/component/drawer/package.json +4 -0
- package/component/dropdown-menu/README.md +311 -0
- package/component/dropdown-menu/package.json +4 -0
- package/component/editor/README.md +136 -0
- package/component/editor/package.json +4 -0
- package/component/empty/README.md +183 -0
- package/component/empty/package.json +4 -0
- package/component/form/README.md +210 -0
- package/component/form/package.json +4 -0
- package/component/hover-card/README.md +146 -0
- package/component/hover-card/package.json +4 -0
- package/component/input/README.md +159 -0
- package/component/input/package.json +4 -0
- package/component/input-group/README.md +239 -0
- package/component/input-group/package.json +4 -0
- package/component/input-otp/README.md +278 -0
- package/component/input-otp/package.json +4 -0
- package/component/item/README.md +247 -0
- package/component/item/package.json +4 -0
- package/component/kanban/README.md +81 -0
- package/component/kanban/package.json +4 -0
- package/component/kbd/README.md +139 -0
- package/component/kbd/package.json +4 -0
- package/component/label/README.md +136 -0
- package/component/label/package.json +4 -0
- package/component/menubar/README.md +269 -0
- package/component/menubar/package.json +4 -0
- package/component/native-select/README.md +176 -0
- package/component/native-select/package.json +4 -0
- package/component/navigation-menu/README.md +160 -0
- package/component/navigation-menu/package.json +4 -0
- package/component/pagination/README.md +144 -0
- package/component/pagination/package.json +4 -0
- package/component/pillbox/README.md +67 -0
- package/component/pillbox/package.json +4 -0
- package/component/popover/README.md +43 -0
- package/component/popover/package.json +4 -0
- package/component/progress/README.md +160 -0
- package/component/progress/package.json +4 -0
- package/component/radio/README.md +209 -0
- package/component/radio/package.json +4 -0
- package/component/resizable/README.md +168 -0
- package/component/resizable/package.json +4 -0
- package/component/scroll-area/README.md +143 -0
- package/component/scroll-area/package.json +4 -0
- package/component/select/README.md +174 -0
- package/component/select/package.json +4 -0
- package/component/separator/README.md +170 -0
- package/component/separator/package.json +4 -0
- package/component/sheet/README.md +183 -0
- package/component/sheet/package.json +4 -0
- package/component/skeleton/README.md +158 -0
- package/component/skeleton/package.json +4 -0
- package/component/slider/README.md +207 -0
- package/component/slider/package.json +4 -0
- package/component/spinner/README.md +160 -0
- package/component/spinner/package.json +4 -0
- package/component/switch/README.md +166 -0
- package/component/switch/package.json +4 -0
- package/component/table/README.md +291 -0
- package/component/table/package.json +4 -0
- package/component/tabs/README.md +219 -0
- package/component/tabs/package.json +4 -0
- package/component/textarea/README.md +154 -0
- package/component/textarea/package.json +4 -0
- package/component/timeline/README.md +94 -0
- package/component/timeline/package.json +4 -0
- package/component/toast/README.md +321 -0
- package/component/toast/package.json +4 -0
- package/component/toggle/README.md +131 -0
- package/component/toggle/package.json +4 -0
- package/component/toggle-group/README.md +206 -0
- package/component/toggle-group/package.json +4 -0
- package/component/tooltip/README.md +211 -0
- package/component/tooltip/package.json +4 -0
- package/component/utils/package.json +4 -0
- package/fesm2022/ojiepermana-angular-component-accordion.mjs +189 -0
- package/fesm2022/ojiepermana-angular-component-accordion.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs +276 -0
- package/fesm2022/ojiepermana-angular-component-alert-dialog.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-alert.mjs +99 -0
- package/fesm2022/ojiepermana-angular-component-alert.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs +37 -0
- package/fesm2022/ojiepermana-angular-component-aspect-ratio.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-avatar.mjs +139 -0
- package/fesm2022/ojiepermana-angular-component-avatar.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-badge.mjs +50 -0
- package/fesm2022/ojiepermana-angular-component-badge.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs +200 -0
- package/fesm2022/ojiepermana-angular-component-breadcrumb.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-button-group.mjs +103 -0
- package/fesm2022/ojiepermana-angular-component-button-group.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-button.mjs +68 -0
- package/fesm2022/ojiepermana-angular-component-button.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-calendar.mjs +88 -0
- package/fesm2022/ojiepermana-angular-component-calendar.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-card.mjs +152 -0
- package/fesm2022/ojiepermana-angular-component-card.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-carousel.mjs +334 -0
- package/fesm2022/ojiepermana-angular-component-carousel.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-chart-area.mjs +6 -0
- package/fesm2022/ojiepermana-angular-component-chart-area.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-chart-bar.mjs +6 -0
- package/fesm2022/ojiepermana-angular-component-chart-bar.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-chart-line.mjs +6 -0
- package/fesm2022/ojiepermana-angular-component-chart-line.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-chart-pie.mjs +6 -0
- package/fesm2022/ojiepermana-angular-component-chart-pie.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-chart-radar.mjs +6 -0
- package/fesm2022/ojiepermana-angular-component-chart-radar.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-chart-radial.mjs +6 -0
- package/fesm2022/ojiepermana-angular-component-chart-radial.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-chart-scatter.mjs +6 -0
- package/fesm2022/ojiepermana-angular-component-chart-scatter.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-chart.mjs +3925 -0
- package/fesm2022/ojiepermana-angular-component-chart.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-checkbox.mjs +114 -0
- package/fesm2022/ojiepermana-angular-component-checkbox.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-collapsible.mjs +124 -0
- package/fesm2022/ojiepermana-angular-component-collapsible.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-combobox.mjs +272 -0
- package/fesm2022/ojiepermana-angular-component-combobox.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-command.mjs +293 -0
- package/fesm2022/ojiepermana-angular-component-command.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-composer.mjs +352 -0
- package/fesm2022/ojiepermana-angular-component-composer.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-context-menu.mjs +103 -0
- package/fesm2022/ojiepermana-angular-component-context-menu.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-date-picker.mjs +170 -0
- package/fesm2022/ojiepermana-angular-component-date-picker.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-dialog.mjs +279 -0
- package/fesm2022/ojiepermana-angular-component-dialog.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-drawer.mjs +6 -0
- package/fesm2022/ojiepermana-angular-component-drawer.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs +492 -0
- package/fesm2022/ojiepermana-angular-component-dropdown-menu.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-editor.mjs +717 -0
- package/fesm2022/ojiepermana-angular-component-editor.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-empty.mjs +145 -0
- package/fesm2022/ojiepermana-angular-component-empty.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-form.mjs +366 -0
- package/fesm2022/ojiepermana-angular-component-form.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-hover-card.mjs +297 -0
- package/fesm2022/ojiepermana-angular-component-hover-card.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-input-group.mjs +179 -0
- package/fesm2022/ojiepermana-angular-component-input-group.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-input-otp.mjs +514 -0
- package/fesm2022/ojiepermana-angular-component-input-otp.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-input.mjs +45 -0
- package/fesm2022/ojiepermana-angular-component-input.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-item.mjs +264 -0
- package/fesm2022/ojiepermana-angular-component-item.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-kanban.mjs +314 -0
- package/fesm2022/ojiepermana-angular-component-kanban.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-kbd.mjs +55 -0
- package/fesm2022/ojiepermana-angular-component-kbd.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-label.mjs +33 -0
- package/fesm2022/ojiepermana-angular-component-label.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-menubar.mjs +308 -0
- package/fesm2022/ojiepermana-angular-component-menubar.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-native-select.mjs +67 -0
- package/fesm2022/ojiepermana-angular-component-native-select.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs +413 -0
- package/fesm2022/ojiepermana-angular-component-navigation-menu.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-pagination.mjs +226 -0
- package/fesm2022/ojiepermana-angular-component-pagination.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-pillbox.mjs +812 -0
- package/fesm2022/ojiepermana-angular-component-pillbox.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-popover.mjs +169 -0
- package/fesm2022/ojiepermana-angular-component-popover.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-progress.mjs +60 -0
- package/fesm2022/ojiepermana-angular-component-progress.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-radio.mjs +122 -0
- package/fesm2022/ojiepermana-angular-component-radio.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-resizable.mjs +481 -0
- package/fesm2022/ojiepermana-angular-component-resizable.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-scroll-area.mjs +54 -0
- package/fesm2022/ojiepermana-angular-component-scroll-area.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-select.mjs +176 -0
- package/fesm2022/ojiepermana-angular-component-select.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-separator.mjs +37 -0
- package/fesm2022/ojiepermana-angular-component-separator.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-sheet.mjs +284 -0
- package/fesm2022/ojiepermana-angular-component-sheet.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-skeleton.mjs +31 -0
- package/fesm2022/ojiepermana-angular-component-skeleton.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-slider.mjs +423 -0
- package/fesm2022/ojiepermana-angular-component-slider.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-spinner.mjs +60 -0
- package/fesm2022/ojiepermana-angular-component-spinner.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-switch.mjs +116 -0
- package/fesm2022/ojiepermana-angular-component-switch.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-table.mjs +155 -0
- package/fesm2022/ojiepermana-angular-component-table.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-tabs.mjs +272 -0
- package/fesm2022/ojiepermana-angular-component-tabs.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-textarea.mjs +39 -0
- package/fesm2022/ojiepermana-angular-component-textarea.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-timeline.mjs +237 -0
- package/fesm2022/ojiepermana-angular-component-timeline.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-toast.mjs +71 -0
- package/fesm2022/ojiepermana-angular-component-toast.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-toggle-group.mjs +289 -0
- package/fesm2022/ojiepermana-angular-component-toggle-group.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-toggle.mjs +82 -0
- package/fesm2022/ojiepermana-angular-component-toggle.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-tooltip.mjs +354 -0
- package/fesm2022/ojiepermana-angular-component-tooltip.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component-utils.mjs +13 -0
- package/fesm2022/ojiepermana-angular-component-utils.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-generator-api.mjs +68 -0
- package/fesm2022/ojiepermana-angular-generator-api.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-layout-component.mjs +602 -0
- package/fesm2022/ojiepermana-angular-layout-component.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-layout-provider.mjs +21 -0
- package/fesm2022/ojiepermana-angular-layout-provider.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-layout-services.mjs +116 -0
- package/fesm2022/ojiepermana-angular-layout-services.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-layout-shell.mjs +48 -0
- package/fesm2022/ojiepermana-angular-layout-shell.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-layout-token-directive.mjs +30 -0
- package/fesm2022/ojiepermana-angular-layout-token-directive.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-layout-token.mjs +33 -0
- package/fesm2022/ojiepermana-angular-layout-token.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-layout-type-empty.mjs +49 -0
- package/fesm2022/ojiepermana-angular-layout-type-empty.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-layout-type-horizontal.mjs +128 -0
- package/fesm2022/ojiepermana-angular-layout-type-horizontal.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-layout-type-vertical.mjs +123 -0
- package/fesm2022/ojiepermana-angular-layout-type-vertical.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-layout.mjs +485 -0
- package/fesm2022/ojiepermana-angular-layout.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-navigation-demo-data.mjs +334 -0
- package/fesm2022/ojiepermana-angular-navigation-demo-data.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-navigation-icon.mjs +63 -0
- package/fesm2022/ojiepermana-angular-navigation-icon.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-navigation-item.mjs +559 -0
- package/fesm2022/ojiepermana-angular-navigation-item.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-navigation-service.mjs +213 -0
- package/fesm2022/ojiepermana-angular-navigation-service.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-navigation-sidebar.mjs +401 -0
- package/fesm2022/ojiepermana-angular-navigation-sidebar.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-navigation-topbar.mjs +670 -0
- package/fesm2022/ojiepermana-angular-navigation-topbar.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-navigation-types.mjs +4 -0
- package/fesm2022/ojiepermana-angular-navigation-types.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-theme-provider.mjs +35 -0
- package/fesm2022/ojiepermana-angular-theme-provider.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-theme-services.mjs +294 -0
- package/fesm2022/ojiepermana-angular-theme-services.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-theme-token.mjs +56 -0
- package/fesm2022/ojiepermana-angular-theme-token.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-theme.mjs +390 -0
- package/fesm2022/ojiepermana-angular-theme.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular.mjs +22 -0
- package/fesm2022/ojiepermana-angular.mjs.map +1 -0
- package/generator/api/README.md +252 -0
- package/generator/api/bin/package.json +3 -0
- package/generator/api/bin/schematics/init/index.js +90 -0
- package/generator/api/bin/schematics/ng-add/index.js +131 -0
- package/generator/api/bin/schematics/sdk/index.js +76 -0
- package/generator/api/bin/src/config/loader.js +41 -0
- package/generator/api/bin/src/config/schema.js +57 -0
- package/generator/api/bin/src/emit/client.js +248 -0
- package/generator/api/bin/src/emit/metadata.js +295 -0
- package/generator/api/bin/src/emit/models.js +106 -0
- package/generator/api/bin/src/emit/navigation.js +56 -0
- package/generator/api/bin/src/emit/operations.js +122 -0
- package/generator/api/bin/src/emit/public-api.js +54 -0
- package/generator/api/bin/src/emit/services.js +87 -0
- package/generator/api/bin/src/engine.js +65 -0
- package/generator/api/bin/src/layout/per-domain.js +359 -0
- package/generator/api/bin/src/parser/bundle.js +25 -0
- package/generator/api/bin/src/parser/ir.js +320 -0
- package/generator/api/bin/src/parser/types.js +7 -0
- package/generator/api/bin/src/render/template.js +58 -0
- package/generator/api/bin/src/writer/index.js +278 -0
- package/generator/api/package.json +4 -0
- package/generator/api/schematics/init/schema.json +19 -0
- package/generator/api/schematics/ng-add/schema.json +14 -0
- package/generator/api/schematics/sdk/schema.json +19 -0
- package/generator/api/sdk.config.example.json +24 -0
- package/generator/guide/README.md +84 -0
- package/generator/guide/bin/package.json +3 -0
- package/generator/guide/bin/schematics/build/index.js +36 -0
- package/generator/guide/bin/schematics/init/index.js +70 -0
- package/generator/guide/bin/src/config/loader.js +50 -0
- package/generator/guide/bin/src/config/schema.js +12 -0
- package/generator/guide/bin/src/engine/component.js +74 -0
- package/generator/guide/bin/src/engine/frontmatter.js +42 -0
- package/generator/guide/bin/src/engine/index.js +42 -0
- package/generator/guide/bin/src/engine/naming.js +39 -0
- package/generator/guide/bin/src/engine/render.js +36 -0
- package/generator/guide/bin/src/engine/routes.js +106 -0
- package/generator/guide/bin/src/engine/walk.js +35 -0
- package/generator/guide/guide.config.example.json +9 -0
- package/generator/guide/schematics/build/schema.json +14 -0
- package/generator/guide/schematics/init/schema.json +19 -0
- package/layout/component/package.json +4 -0
- package/layout/package.json +4 -0
- package/layout/provider/package.json +4 -0
- package/layout/services/package.json +4 -0
- package/layout/shell/package.json +4 -0
- package/layout/token/directive/package.json +4 -0
- package/layout/token/package.json +4 -0
- package/layout/type/empty/package.json +4 -0
- package/layout/type/horizontal/package.json +4 -0
- package/layout/type/vertical/package.json +4 -0
- package/navigation/demo-data/package.json +4 -0
- package/navigation/icon/package.json +4 -0
- package/navigation/item/package.json +4 -0
- package/navigation/service/package.json +4 -0
- package/navigation/sidebar/package.json +4 -0
- package/navigation/topbar/README.md +196 -0
- package/navigation/topbar/package.json +4 -0
- package/navigation/types/package.json +4 -0
- package/package.json +433 -18
- package/theme/README.md +174 -0
- package/theme/package.json +4 -0
- package/theme/provider/package.json +4 -0
- package/theme/services/package.json +4 -0
- package/theme/styles/foundation/components.css +81 -0
- package/theme/styles/foundation/layers.css +15 -0
- package/theme/styles/foundation/tokens.css +55 -0
- package/theme/styles/index.css +37 -0
- package/theme/styles/integrations/material/autocomplete.css +178 -0
- package/theme/styles/integrations/material/button.css +468 -0
- package/theme/styles/integrations/material/dialog.css +152 -0
- package/theme/styles/integrations/material/select.css +175 -0
- package/theme/styles/integrations/material/slide-toggle.css +234 -0
- package/theme/styles/integrations/material/slider.css +194 -0
- package/theme/styles/integrations/material/tabs.css +229 -0
- package/theme/styles/integrations/material.css +264 -0
- package/theme/styles/integrations/tailwind.css +114 -0
- package/theme/styles/variants/color/amber.css +31 -0
- package/theme/styles/variants/color/base.css +36 -0
- package/theme/styles/variants/color/blue.css +31 -0
- package/theme/styles/variants/color/cyan.css +31 -0
- package/theme/styles/variants/color/emerald.css +31 -0
- package/theme/styles/variants/color/fuchsia.css +31 -0
- package/theme/styles/variants/color/green.css +31 -0
- package/theme/styles/variants/color/index.css +22 -0
- package/theme/styles/variants/color/indigo.css +31 -0
- package/theme/styles/variants/color/lime.css +31 -0
- package/theme/styles/variants/color/orange.css +31 -0
- package/theme/styles/variants/color/pink.css +31 -0
- package/theme/styles/variants/color/purple.css +31 -0
- package/theme/styles/variants/color/red.css +31 -0
- package/theme/styles/variants/color/rose.css +31 -0
- package/theme/styles/variants/color/sky.css +31 -0
- package/theme/styles/variants/color/teal.css +31 -0
- package/theme/styles/variants/color/violet.css +31 -0
- package/theme/styles/variants/color/yellow.css +31 -0
- package/theme/styles/variants/mode/dark.css +20 -0
- package/theme/styles/variants/mode/index.css +6 -0
- package/theme/styles/variants/mode/light.css +24 -0
- package/theme/styles/variants/style/brutal.css +50 -0
- package/theme/styles/variants/style/default.css +54 -0
- package/theme/styles/variants/style/index.css +8 -0
- package/theme/styles/variants/style/sharp.css +50 -0
- package/theme/styles/variants/style/soft.css +50 -0
- package/theme/token/package.json +4 -0
- package/types/ojiepermana-angular-component-accordion.d.ts +51 -0
- package/types/ojiepermana-angular-component-alert-dialog.d.ts +93 -0
- package/types/ojiepermana-angular-component-alert.d.ts +37 -0
- package/types/ojiepermana-angular-component-aspect-ratio.d.ts +12 -0
- package/types/ojiepermana-angular-component-avatar.d.ts +51 -0
- package/types/ojiepermana-angular-component-badge.d.ts +19 -0
- package/types/ojiepermana-angular-component-breadcrumb.d.ts +46 -0
- package/types/ojiepermana-angular-component-button-group.d.ts +26 -0
- package/types/ojiepermana-angular-component-button.d.ts +22 -0
- package/types/ojiepermana-angular-component-calendar.d.ts +33 -0
- package/types/ojiepermana-angular-component-card.d.ts +60 -0
- package/types/ojiepermana-angular-component-carousel.d.ts +86 -0
- package/types/ojiepermana-angular-component-chart-area.d.ts +1 -0
- package/types/ojiepermana-angular-component-chart-bar.d.ts +1 -0
- package/types/ojiepermana-angular-component-chart-line.d.ts +1 -0
- package/types/ojiepermana-angular-component-chart-pie.d.ts +1 -0
- package/types/ojiepermana-angular-component-chart-radar.d.ts +1 -0
- package/types/ojiepermana-angular-component-chart-radial.d.ts +1 -0
- package/types/ojiepermana-angular-component-chart-scatter.d.ts +1 -0
- package/types/ojiepermana-angular-component-chart.d.ts +1094 -0
- package/types/ojiepermana-angular-component-checkbox.d.ts +35 -0
- package/types/ojiepermana-angular-component-collapsible.d.ts +42 -0
- package/types/ojiepermana-angular-component-combobox.d.ts +50 -0
- package/types/ojiepermana-angular-component-command.d.ts +99 -0
- package/types/ojiepermana-angular-component-composer.d.ts +90 -0
- package/types/ojiepermana-angular-component-context-menu.d.ts +35 -0
- package/types/ojiepermana-angular-component-date-picker.d.ts +41 -0
- package/types/ojiepermana-angular-component-dialog.d.ts +87 -0
- package/types/ojiepermana-angular-component-drawer.d.ts +1 -0
- package/types/ojiepermana-angular-component-dropdown-menu.d.ts +137 -0
- package/types/ojiepermana-angular-component-editor.d.ts +123 -0
- package/types/ojiepermana-angular-component-empty.d.ts +50 -0
- package/types/ojiepermana-angular-component-form.d.ts +141 -0
- package/types/ojiepermana-angular-component-hover-card.d.ts +74 -0
- package/types/ojiepermana-angular-component-input-group.d.ts +51 -0
- package/types/ojiepermana-angular-component-input-otp.d.ts +136 -0
- package/types/ojiepermana-angular-component-input.d.ts +16 -0
- package/types/ojiepermana-angular-component-item.d.ts +88 -0
- package/types/ojiepermana-angular-component-kanban.d.ts +70 -0
- package/types/ojiepermana-angular-component-kbd.d.ts +16 -0
- package/types/ojiepermana-angular-component-label.d.ts +11 -0
- package/types/ojiepermana-angular-component-menubar.d.ts +67 -0
- package/types/ojiepermana-angular-component-native-select.d.ts +26 -0
- package/types/ojiepermana-angular-component-navigation-menu.d.ts +96 -0
- package/types/ojiepermana-angular-component-pagination.d.ts +33 -0
- package/types/ojiepermana-angular-component-pillbox.d.ts +157 -0
- package/types/ojiepermana-angular-component-popover.d.ts +43 -0
- package/types/ojiepermana-angular-component-progress.d.ts +17 -0
- package/types/ojiepermana-angular-component-radio.d.ts +40 -0
- package/types/ojiepermana-angular-component-resizable.d.ts +99 -0
- package/types/ojiepermana-angular-component-scroll-area.d.ts +19 -0
- package/types/ojiepermana-angular-component-select.d.ts +57 -0
- package/types/ojiepermana-angular-component-separator.d.ts +14 -0
- package/types/ojiepermana-angular-component-sheet.d.ts +76 -0
- package/types/ojiepermana-angular-component-skeleton.d.ts +10 -0
- package/types/ojiepermana-angular-component-slider.d.ts +74 -0
- package/types/ojiepermana-angular-component-spinner.d.ts +13 -0
- package/types/ojiepermana-angular-component-switch.d.ts +40 -0
- package/types/ojiepermana-angular-component-table.d.ts +52 -0
- package/types/ojiepermana-angular-component-tabs.d.ts +92 -0
- package/types/ojiepermana-angular-component-textarea.d.ts +12 -0
- package/types/ojiepermana-angular-component-timeline.d.ts +63 -0
- package/types/ojiepermana-angular-component-toast.d.ts +38 -0
- package/types/ojiepermana-angular-component-toggle-group.d.ts +89 -0
- package/types/ojiepermana-angular-component-toggle.d.ts +25 -0
- package/types/ojiepermana-angular-component-tooltip.d.ts +89 -0
- package/types/ojiepermana-angular-component-utils.d.ts +5 -0
- package/types/ojiepermana-angular-generator-api.d.ts +86 -0
- package/types/ojiepermana-angular-layout-component.d.ts +205 -0
- package/types/ojiepermana-angular-layout-provider.d.ts +6 -0
- package/types/ojiepermana-angular-layout-services.d.ts +25 -0
- package/types/ojiepermana-angular-layout-shell.d.ts +8 -0
- package/types/ojiepermana-angular-layout-token-directive.d.ts +13 -0
- package/types/ojiepermana-angular-layout-token.d.ts +36 -0
- package/types/ojiepermana-angular-layout-type-empty.d.ts +22 -0
- package/types/ojiepermana-angular-layout-type-horizontal.d.ts +36 -0
- package/types/ojiepermana-angular-layout-type-vertical.d.ts +38 -0
- package/types/ojiepermana-angular-layout.d.ts +164 -0
- package/types/ojiepermana-angular-navigation-demo-data.d.ts +5 -0
- package/types/ojiepermana-angular-navigation-icon.d.ts +17 -0
- package/types/ojiepermana-angular-navigation-item.d.ts +54 -0
- package/types/ojiepermana-angular-navigation-service.d.ts +77 -0
- package/types/ojiepermana-angular-navigation-sidebar.d.ts +75 -0
- package/types/ojiepermana-angular-navigation-topbar.d.ts +74 -0
- package/types/ojiepermana-angular-navigation-types.d.ts +135 -0
- package/types/ojiepermana-angular-theme-provider.d.ts +11 -0
- package/types/ojiepermana-angular-theme-services.d.ts +55 -0
- package/types/ojiepermana-angular-theme-token.d.ts +57 -0
- package/types/ojiepermana-angular-theme.d.ts +116 -0
- package/types/ojiepermana-angular.d.ts +3 -0
- package/fesm2022/edsis-angular-block-shell.mjs +0 -698
- package/fesm2022/edsis-angular-block-shell.mjs.map +0 -1
- package/fesm2022/edsis-angular-module-auth.mjs +0 -1317
- package/fesm2022/edsis-angular-module-auth.mjs.map +0 -1
- package/fesm2022/edsis-angular.mjs +0 -8
- package/fesm2022/edsis-angular.mjs.map +0 -1
- package/types/edsis-angular-block-shell.d.ts +0 -111
- package/types/edsis-angular-module-auth.d.ts +0 -132
- package/types/edsis-angular.d.ts +0 -2
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
# Avatar
|
|
2
|
+
|
|
3
|
+
Rounded image with an automatic text fallback when the image fails to load.
|
|
4
|
+
|
|
5
|
+
This Angular implementation follows the shadcn Avatar information architecture while adapting it to standalone Angular imports, signal-friendly inputs, and local menu primitives.
|
|
6
|
+
|
|
7
|
+
## Import
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import {
|
|
11
|
+
AvatarBadgeComponent,
|
|
12
|
+
AvatarComponent,
|
|
13
|
+
AvatarFallbackComponent,
|
|
14
|
+
AvatarGroupComponent,
|
|
15
|
+
AvatarGroupCountComponent,
|
|
16
|
+
AvatarImageComponent,
|
|
17
|
+
} from '@edsis/angular/component/avatar';
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
```html
|
|
23
|
+
<ui-avatar size="lg">
|
|
24
|
+
<ui-avatar-image src="/me.jpg" alt="Ada Lovelace" />
|
|
25
|
+
<ui-avatar-fallback>AL</ui-avatar-fallback>
|
|
26
|
+
<ui-avatar-badge class="bg-emerald-600" aria-hidden="true"></ui-avatar-badge>
|
|
27
|
+
</ui-avatar>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
If `src` fails to load, the `<img>` is removed and the fallback becomes visible.
|
|
31
|
+
|
|
32
|
+
## Composition
|
|
33
|
+
|
|
34
|
+
```text
|
|
35
|
+
ui-avatar
|
|
36
|
+
├── ui-avatar-image
|
|
37
|
+
├── ui-avatar-fallback
|
|
38
|
+
└── ui-avatar-badge
|
|
39
|
+
|
|
40
|
+
ui-avatar-group
|
|
41
|
+
├── ui-avatar
|
|
42
|
+
│ ├── ui-avatar-image
|
|
43
|
+
│ ├── ui-avatar-fallback
|
|
44
|
+
│ └── ui-avatar-badge
|
|
45
|
+
├── ui-avatar
|
|
46
|
+
│ ├── ui-avatar-image
|
|
47
|
+
│ ├── ui-avatar-fallback
|
|
48
|
+
│ └── ui-avatar-badge
|
|
49
|
+
└── ui-avatar-group-count
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Common patterns
|
|
53
|
+
|
|
54
|
+
### Basic avatar
|
|
55
|
+
|
|
56
|
+
```html
|
|
57
|
+
<ui-avatar>
|
|
58
|
+
<ui-avatar-image src="https://github.com/shadcn.png" alt="@shadcn" class="grayscale" />
|
|
59
|
+
<ui-avatar-fallback>CN</ui-avatar-fallback>
|
|
60
|
+
</ui-avatar>
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Presence badge
|
|
64
|
+
|
|
65
|
+
Use `ui-avatar-badge` for online status, synced state, or a compact icon action.
|
|
66
|
+
|
|
67
|
+
```html
|
|
68
|
+
<ui-avatar>
|
|
69
|
+
<ui-avatar-image src="https://github.com/evilrabbit.png" alt="@evilrabbit" />
|
|
70
|
+
<ui-avatar-fallback>ER</ui-avatar-fallback>
|
|
71
|
+
<ui-avatar-badge class="bg-emerald-600" aria-hidden="true"></ui-avatar-badge>
|
|
72
|
+
</ui-avatar>
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### Avatar group
|
|
76
|
+
|
|
77
|
+
`ui-avatar-group` applies the overlapping stack treatment, while `ui-avatar-group-count` handles the overflow counter.
|
|
78
|
+
|
|
79
|
+
```html
|
|
80
|
+
<ui-avatar-group class="grayscale">
|
|
81
|
+
<ui-avatar>
|
|
82
|
+
<ui-avatar-image src="https://github.com/shadcn.png" alt="@shadcn" />
|
|
83
|
+
<ui-avatar-fallback>CN</ui-avatar-fallback>
|
|
84
|
+
</ui-avatar>
|
|
85
|
+
<ui-avatar>
|
|
86
|
+
<ui-avatar-image src="https://github.com/maxleiter.png" alt="@maxleiter" />
|
|
87
|
+
<ui-avatar-fallback>ML</ui-avatar-fallback>
|
|
88
|
+
</ui-avatar>
|
|
89
|
+
<ui-avatar>
|
|
90
|
+
<ui-avatar-image src="https://github.com/evilrabbit.png" alt="@evilrabbit" />
|
|
91
|
+
<ui-avatar-fallback>ER</ui-avatar-fallback>
|
|
92
|
+
</ui-avatar>
|
|
93
|
+
<ui-avatar-group-count>+3</ui-avatar-group-count>
|
|
94
|
+
</ui-avatar-group>
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### Size variants
|
|
98
|
+
|
|
99
|
+
Use the root `size` input instead of repeating manual width and height classes.
|
|
100
|
+
|
|
101
|
+
```html
|
|
102
|
+
<div class="flex items-center gap-3">
|
|
103
|
+
<ui-avatar size="sm">...</ui-avatar>
|
|
104
|
+
<ui-avatar>...</ui-avatar>
|
|
105
|
+
<ui-avatar size="lg">...</ui-avatar>
|
|
106
|
+
</div>
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### Dropdown trigger composition
|
|
110
|
+
|
|
111
|
+
Avatar stays presentational. When it opens a menu, wrap it in a button and let the button or menu trigger own focus and keyboard handling.
|
|
112
|
+
|
|
113
|
+
```html
|
|
114
|
+
<button ui-button variant="ghost" size="icon" class="h-10 w-10 rounded-full p-0" [uiMenuTrigger]="accountMenu">
|
|
115
|
+
<ui-avatar>
|
|
116
|
+
<ui-avatar-image src="https://github.com/shadcn.png" alt="Ada Lovelace" />
|
|
117
|
+
<ui-avatar-fallback>AL</ui-avatar-fallback>
|
|
118
|
+
</ui-avatar>
|
|
119
|
+
</button>
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### RTL
|
|
123
|
+
|
|
124
|
+
Avatar itself does not need different markup in right-to-left layouts. Set `dir="rtl"` on the surrounding surface.
|
|
125
|
+
|
|
126
|
+
```html
|
|
127
|
+
<section dir="rtl" lang="ar" class="flex items-center gap-4 text-right">
|
|
128
|
+
<ui-avatar>
|
|
129
|
+
<ui-avatar-image src="https://github.com/shadcn.png" alt="@shadcn" class="grayscale" />
|
|
130
|
+
<ui-avatar-fallback>CN</ui-avatar-fallback>
|
|
131
|
+
</ui-avatar>
|
|
132
|
+
</section>
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
## API reference
|
|
136
|
+
|
|
137
|
+
| Primitive | Input(s) |
|
|
138
|
+
| --------------------------- | -------------------------------- |
|
|
139
|
+
| `AvatarComponent` | `size`, `class` |
|
|
140
|
+
| `AvatarImageComponent` | `src` (required), `alt`, `class` |
|
|
141
|
+
| `AvatarFallbackComponent` | `class` |
|
|
142
|
+
| `AvatarBadgeComponent` | `class` |
|
|
143
|
+
| `AvatarGroupComponent` | `class` |
|
|
144
|
+
| `AvatarGroupCountComponent` | `class` |
|
|
145
|
+
|
|
146
|
+
`AvatarComponent.size` accepts `'default' | 'sm' | 'lg'` and defaults to `'default'`.
|
|
147
|
+
|
|
148
|
+
## Styling and theming
|
|
149
|
+
|
|
150
|
+
Tokens consumed: `--muted`, `--muted-foreground`, `--background`, `--primary`, and `--primary-foreground`.
|
|
151
|
+
|
|
152
|
+
The default avatar size is `h-10 w-10`. Use the `size` input for the common variants and pass `class` for brand-specific overrides such as grayscale, custom borders, or alternate badge colors.
|
|
153
|
+
|
|
154
|
+
`ui-avatar-badge` is the right place for presence color overrides, and `ui-avatar-group-count` can be restyled when overflow counters should match a specific product palette.
|
|
155
|
+
|
|
156
|
+
## Accessibility
|
|
157
|
+
|
|
158
|
+
Always pass a meaningful `alt` to `<ui-avatar-image>`. If the avatar is purely
|
|
159
|
+
decorative (user's name already shown), use `alt=""`. The fallback text is
|
|
160
|
+
readable by screen readers.
|
|
161
|
+
|
|
162
|
+
Keep fallback text short, typically initials, so it remains legible in smaller sizes.
|
|
163
|
+
|
|
164
|
+
## Keyboard interactions
|
|
165
|
+
|
|
166
|
+
Avatar itself is not interactive. If it is used to open a menu, dialog, or popover, wrap it in a native button or another focusable trigger primitive so Tab, Enter, and Space behavior stays with the interactive host.
|
|
167
|
+
|
|
168
|
+
## Angular notes
|
|
169
|
+
|
|
170
|
+
- `size` is exposed as a typed Angular input on `ui-avatar`.
|
|
171
|
+
- Grouping is handled by dedicated primitives instead of utility-only composition, which keeps Angular templates explicit and reusable.
|
|
172
|
+
- Image fallback is handled internally by hiding the `<img>` after its `error` event.
|
|
173
|
+
|
|
174
|
+
## Source parity
|
|
175
|
+
|
|
176
|
+
This Angular implementation follows the shadcn Avatar concepts, examples, and API shape while adapting menu composition to the local `ui-button` plus menu primitives and Angular standalone imports.
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
# Badge
|
|
2
|
+
|
|
3
|
+
Displays a badge or a semantic element that looks like a badge.
|
|
4
|
+
|
|
5
|
+
Use Badge for status pills, small metadata labels, compact counts, and lightweight link-like callouts that should keep the badge silhouette.
|
|
6
|
+
|
|
7
|
+
## Import
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { BadgeComponent } from '@edsis/angular/component/badge';
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
Use `<ui-badge>` for the default host element or apply `[ui-badge]` to a semantic host such as `<span>` or `<a>` when the badge should inherit native behavior.
|
|
16
|
+
|
|
17
|
+
```html
|
|
18
|
+
<ui-badge>New</ui-badge>
|
|
19
|
+
<ui-badge variant="secondary">Secondary</ui-badge>
|
|
20
|
+
<ui-badge variant="destructive">Error</ui-badge>
|
|
21
|
+
<ui-badge variant="outline">Outline</ui-badge>
|
|
22
|
+
<ui-badge variant="ghost">Ghost</ui-badge>
|
|
23
|
+
|
|
24
|
+
<span ui-badge variant="secondary">v1.0</span>
|
|
25
|
+
|
|
26
|
+
<a ui-badge variant="link" href="#billing">
|
|
27
|
+
Open billing
|
|
28
|
+
<svg aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" class="size-3">
|
|
29
|
+
<path d="M7 17L17 7" />
|
|
30
|
+
<path d="M9 7h8v8" />
|
|
31
|
+
</svg>
|
|
32
|
+
</a>
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Common patterns
|
|
36
|
+
|
|
37
|
+
### Variants
|
|
38
|
+
|
|
39
|
+
The Angular primitive follows the current shadcn badge palette and adds `ghost` plus `link` variants to cover low-emphasis and anchor-style treatments.
|
|
40
|
+
|
|
41
|
+
```html
|
|
42
|
+
<div class="flex flex-wrap gap-2">
|
|
43
|
+
<ui-badge>Default</ui-badge>
|
|
44
|
+
<ui-badge variant="secondary">Secondary</ui-badge>
|
|
45
|
+
<ui-badge variant="destructive">Destructive</ui-badge>
|
|
46
|
+
<ui-badge variant="outline">Outline</ui-badge>
|
|
47
|
+
<ui-badge variant="ghost">Ghost</ui-badge>
|
|
48
|
+
</div>
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### With icon
|
|
52
|
+
|
|
53
|
+
Project an inline SVG or icon component directly inside the badge. The primitive adds compact spacing and sizes direct child SVGs automatically.
|
|
54
|
+
|
|
55
|
+
```html
|
|
56
|
+
<ui-badge variant="secondary">
|
|
57
|
+
<svg aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
58
|
+
<path d="M20 7L9 18l-5-5" />
|
|
59
|
+
</svg>
|
|
60
|
+
Verified
|
|
61
|
+
</ui-badge>
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### With spinner
|
|
65
|
+
|
|
66
|
+
Spinner content can be projected like any other inline element.
|
|
67
|
+
|
|
68
|
+
```html
|
|
69
|
+
<ui-badge variant="destructive">
|
|
70
|
+
<span aria-hidden="true" class="size-3 animate-spin rounded-full border-2 border-current border-r-transparent"></span>
|
|
71
|
+
Deleting
|
|
72
|
+
</ui-badge>
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### Link host
|
|
76
|
+
|
|
77
|
+
shadcn React uses `asChild` for links. In Angular, use a semantic anchor host directly.
|
|
78
|
+
|
|
79
|
+
```html
|
|
80
|
+
<a ui-badge variant="link" href="#link">Open Link</a>
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### Custom colors
|
|
84
|
+
|
|
85
|
+
Custom color treatments are plain classes on the host.
|
|
86
|
+
|
|
87
|
+
```html
|
|
88
|
+
<ui-badge class="border-transparent bg-sky-100 text-sky-800">Blue</ui-badge>
|
|
89
|
+
<ui-badge class="border-transparent bg-emerald-100 text-emerald-800">Green</ui-badge>
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## API reference
|
|
93
|
+
|
|
94
|
+
### `BadgeComponent`
|
|
95
|
+
|
|
96
|
+
| Input | Type | Default |
|
|
97
|
+
| --------- | ----------------------------------------------------------------------------- | ----------- |
|
|
98
|
+
| `variant` | `'default' \| 'secondary' \| 'destructive' \| 'outline' \| 'ghost' \| 'link'` | `'default'` |
|
|
99
|
+
| `class` | `string` | `''` |
|
|
100
|
+
|
|
101
|
+
## Styling and theming
|
|
102
|
+
|
|
103
|
+
The base badge uses `border-border` for visible outlines instead of inheriting border color from text. Variant classes override that border when the badge should render as a filled pill.
|
|
104
|
+
|
|
105
|
+
Pass `class` to add custom backgrounds, foreground colors, spacing, or width behavior. Direct child SVGs inherit `currentColor` and receive compact sizing automatically.
|
|
106
|
+
|
|
107
|
+
Powered by `class-variance-authority`. Re-export: `badgeVariants` and `BadgeVariant`.
|
|
108
|
+
|
|
109
|
+
```ts
|
|
110
|
+
import { badgeVariants } from '@edsis/angular/component/badge';
|
|
111
|
+
|
|
112
|
+
const className = badgeVariants({ variant: 'link' });
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## Accessibility
|
|
116
|
+
|
|
117
|
+
- Keep meaningful text inside the badge when it communicates a state, label, or count.
|
|
118
|
+
- Do not rely on color alone to distinguish success, warning, or destructive meaning.
|
|
119
|
+
- When the badge should be interactive, use a semantic host like `<a ui-badge>` so native keyboard and screen-reader behavior stay intact.
|
|
120
|
+
|
|
121
|
+
## Keyboard interactions
|
|
122
|
+
|
|
123
|
+
Static badges are not focusable. Anchors and other semantic hosts keep their native keyboard behavior, so Tab and Enter handling stays with the host element rather than the badge primitive itself.
|
|
124
|
+
|
|
125
|
+
## Angular notes
|
|
126
|
+
|
|
127
|
+
- Angular uses the selector `ui-badge` for the default element host and `[ui-badge]` for semantic hosts.
|
|
128
|
+
- React `asChild` maps to choosing the correct host element directly in Angular templates.
|
|
129
|
+
- `variant` is an Angular `input()` on the badge component, so it works on both element and attribute hosts.
|
|
130
|
+
|
|
131
|
+
## Source parity
|
|
132
|
+
|
|
133
|
+
This Angular badge follows the shadcn Badge information architecture and examples while translating React-specific `asChild` composition into semantic Angular host elements.
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
# Breadcrumb
|
|
2
|
+
|
|
3
|
+
Displays the path to the current resource using a hierarchy of links.
|
|
4
|
+
|
|
5
|
+
Use Breadcrumb for hierarchical navigation trails in docs, account areas, settings surfaces, and deep app routes where users need a quick sense of where they are.
|
|
6
|
+
|
|
7
|
+
## Import
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import {
|
|
11
|
+
BreadcrumbComponent,
|
|
12
|
+
BreadcrumbEllipsisComponent,
|
|
13
|
+
BreadcrumbItemComponent,
|
|
14
|
+
BreadcrumbLinkComponent,
|
|
15
|
+
BreadcrumbListComponent,
|
|
16
|
+
BreadcrumbPageComponent,
|
|
17
|
+
BreadcrumbSeparatorComponent,
|
|
18
|
+
} from '@edsis/angular/component/breadcrumb';
|
|
19
|
+
import { RouterLink } from '@angular/router';
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Composition
|
|
23
|
+
|
|
24
|
+
The Angular structure matches the shadcn breadcrumb composition while translating it to Angular selectors and native router-friendly anchors.
|
|
25
|
+
|
|
26
|
+
```text
|
|
27
|
+
ui-breadcrumb
|
|
28
|
+
└── ol[ui-breadcrumb-list]
|
|
29
|
+
├── li[ui-breadcrumb-item]
|
|
30
|
+
│ └── a[ui-breadcrumb-link]
|
|
31
|
+
├── li[ui-breadcrumb-separator]
|
|
32
|
+
├── li[ui-breadcrumb-item]
|
|
33
|
+
│ └── a[ui-breadcrumb-link]
|
|
34
|
+
├── li[ui-breadcrumb-separator]
|
|
35
|
+
└── li[ui-breadcrumb-item]
|
|
36
|
+
└── span[ui-breadcrumb-page]
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Basic usage
|
|
40
|
+
|
|
41
|
+
Prefer a semantic `<nav ui-breadcrumb>` root, then build the trail from list, item, link, separator, and current-page parts.
|
|
42
|
+
|
|
43
|
+
```html
|
|
44
|
+
<nav ui-breadcrumb>
|
|
45
|
+
<ol ui-breadcrumb-list>
|
|
46
|
+
<li ui-breadcrumb-item>
|
|
47
|
+
<a ui-breadcrumb-link routerLink="/">Home</a>
|
|
48
|
+
</li>
|
|
49
|
+
<li ui-breadcrumb-separator></li>
|
|
50
|
+
<li ui-breadcrumb-item>
|
|
51
|
+
<a ui-breadcrumb-link routerLink="/ui/shadcn/button">Components</a>
|
|
52
|
+
</li>
|
|
53
|
+
<li ui-breadcrumb-separator></li>
|
|
54
|
+
<li ui-breadcrumb-item>
|
|
55
|
+
<span ui-breadcrumb-page>Breadcrumb</span>
|
|
56
|
+
</li>
|
|
57
|
+
</ol>
|
|
58
|
+
</nav>
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Common patterns
|
|
62
|
+
|
|
63
|
+
### Custom separator
|
|
64
|
+
|
|
65
|
+
Project custom children into `ui-breadcrumb-separator` to swap the default chevron for a slash, dot, brand icon, or other neutral divider.
|
|
66
|
+
|
|
67
|
+
```html
|
|
68
|
+
<nav ui-breadcrumb>
|
|
69
|
+
<ol ui-breadcrumb-list>
|
|
70
|
+
<li ui-breadcrumb-item><a ui-breadcrumb-link href="/">Home</a></li>
|
|
71
|
+
<li ui-breadcrumb-separator>
|
|
72
|
+
<svg class="h-2.5 w-2.5" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
|
|
73
|
+
<circle cx="12" cy="12" r="3"></circle>
|
|
74
|
+
</svg>
|
|
75
|
+
</li>
|
|
76
|
+
<li ui-breadcrumb-item><a ui-breadcrumb-link href="/components">Components</a></li>
|
|
77
|
+
<li ui-breadcrumb-separator>
|
|
78
|
+
<svg class="h-2.5 w-2.5" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
|
|
79
|
+
<circle cx="12" cy="12" r="3"></circle>
|
|
80
|
+
</svg>
|
|
81
|
+
</li>
|
|
82
|
+
<li ui-breadcrumb-item><span ui-breadcrumb-page>Breadcrumb</span></li>
|
|
83
|
+
</ol>
|
|
84
|
+
</nav>
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Collapsed trail
|
|
88
|
+
|
|
89
|
+
Use `ui-breadcrumb-ellipsis` when the trail is too long to show in full. Wrap it in a labeled button when the ellipsis should open an overflow menu.
|
|
90
|
+
|
|
91
|
+
```html
|
|
92
|
+
<nav ui-breadcrumb>
|
|
93
|
+
<ol ui-breadcrumb-list>
|
|
94
|
+
<li ui-breadcrumb-item><a ui-breadcrumb-link routerLink="/">Home</a></li>
|
|
95
|
+
<li ui-breadcrumb-separator></li>
|
|
96
|
+
<li ui-breadcrumb-item><span ui-breadcrumb-ellipsis></span></li>
|
|
97
|
+
<li ui-breadcrumb-separator></li>
|
|
98
|
+
<li ui-breadcrumb-item><a ui-breadcrumb-link routerLink="/docs/components">Components</a></li>
|
|
99
|
+
<li ui-breadcrumb-separator></li>
|
|
100
|
+
<li ui-breadcrumb-item><span ui-breadcrumb-page>Breadcrumb</span></li>
|
|
101
|
+
</ol>
|
|
102
|
+
</nav>
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### Dropdown composition
|
|
106
|
+
|
|
107
|
+
Compose a breadcrumb item with the local menu primitives when an intermediate node should expose related destinations instead of linking directly.
|
|
108
|
+
|
|
109
|
+
```html
|
|
110
|
+
<nav ui-breadcrumb>
|
|
111
|
+
<ol ui-breadcrumb-list>
|
|
112
|
+
<li ui-breadcrumb-item><a ui-breadcrumb-link routerLink="/">Home</a></li>
|
|
113
|
+
<li ui-breadcrumb-separator></li>
|
|
114
|
+
<li ui-breadcrumb-item>
|
|
115
|
+
<button
|
|
116
|
+
ui-button
|
|
117
|
+
type="button"
|
|
118
|
+
variant="ghost"
|
|
119
|
+
class="h-auto gap-1 px-2 py-1 font-normal text-muted-foreground hover:text-foreground"
|
|
120
|
+
[uiMenuTrigger]="componentsMenu">
|
|
121
|
+
Components
|
|
122
|
+
<svg class="h-3.5 w-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
123
|
+
<polyline points="6 9 12 15 18 9"></polyline>
|
|
124
|
+
</svg>
|
|
125
|
+
</button>
|
|
126
|
+
|
|
127
|
+
<ng-template uiMenuContent #componentsMenu="uiMenuContent">
|
|
128
|
+
<ui-menu-surface class="w-44">
|
|
129
|
+
<ui-menu-label>Components</ui-menu-label>
|
|
130
|
+
<button ui-menu-item>Documentation</button>
|
|
131
|
+
<button ui-menu-item>Themes</button>
|
|
132
|
+
<button ui-menu-item>GitHub</button>
|
|
133
|
+
</ui-menu-surface>
|
|
134
|
+
</ng-template>
|
|
135
|
+
</li>
|
|
136
|
+
<li ui-breadcrumb-separator></li>
|
|
137
|
+
<li ui-breadcrumb-item><span ui-breadcrumb-page>Breadcrumb</span></li>
|
|
138
|
+
</ol>
|
|
139
|
+
</nav>
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### RouterLink integration
|
|
143
|
+
|
|
144
|
+
The shadcn React examples use `asChild` for custom routing components. In Angular, apply `routerLink` or `href` directly to the anchor that carries `ui-breadcrumb-link`.
|
|
145
|
+
|
|
146
|
+
```html
|
|
147
|
+
<a ui-breadcrumb-link routerLink="/ui/shadcn">Components</a>
|
|
148
|
+
<a ui-breadcrumb-link href="https://ui.shadcn.com/docs/components/radix/breadcrumb">shadcn docs</a>
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### RTL
|
|
152
|
+
|
|
153
|
+
Set `dir="rtl"` on the breadcrumb root or an ancestor container. The structure stays the same while the visual flow shifts to right-to-left.
|
|
154
|
+
|
|
155
|
+
```html
|
|
156
|
+
<nav ui-breadcrumb dir="rtl" lang="ar">
|
|
157
|
+
<ol ui-breadcrumb-list class="justify-end">
|
|
158
|
+
<li ui-breadcrumb-item><a ui-breadcrumb-link href="/">الرئيسية</a></li>
|
|
159
|
+
<li ui-breadcrumb-separator></li>
|
|
160
|
+
<li ui-breadcrumb-item><a ui-breadcrumb-link href="/components">المكونات</a></li>
|
|
161
|
+
<li ui-breadcrumb-separator></li>
|
|
162
|
+
<li ui-breadcrumb-item><span ui-breadcrumb-page>مسار التنقل</span></li>
|
|
163
|
+
</ol>
|
|
164
|
+
</nav>
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
## API reference
|
|
168
|
+
|
|
169
|
+
### `BreadcrumbComponent`
|
|
170
|
+
|
|
171
|
+
| Input | Type | Default |
|
|
172
|
+
| ------- | -------- | ------- |
|
|
173
|
+
| `class` | `string` | `''` |
|
|
174
|
+
|
|
175
|
+
Use on `ui-breadcrumb` or `nav[ui-breadcrumb]`. The root always emits `aria-label="breadcrumb"` and keeps the custom-element form block-level.
|
|
176
|
+
|
|
177
|
+
### Parts
|
|
178
|
+
|
|
179
|
+
| Part | Selector | Input |
|
|
180
|
+
| ------------------------------ | ------------------------------ | ------- |
|
|
181
|
+
| `BreadcrumbListComponent` | `ol[ui-breadcrumb-list]` | `class` |
|
|
182
|
+
| `BreadcrumbItemComponent` | `li[ui-breadcrumb-item]` | `class` |
|
|
183
|
+
| `BreadcrumbLinkComponent` | `a[ui-breadcrumb-link]` | `class` |
|
|
184
|
+
| `BreadcrumbPageComponent` | `span[ui-breadcrumb-page]` | `class` |
|
|
185
|
+
| `BreadcrumbSeparatorComponent` | `li[ui-breadcrumb-separator]` | `class` |
|
|
186
|
+
| `BreadcrumbEllipsisComponent` | `span[ui-breadcrumb-ellipsis]` | `class` |
|
|
187
|
+
|
|
188
|
+
`BreadcrumbSeparatorComponent` accepts projected children to replace the default chevron icon.
|
|
189
|
+
|
|
190
|
+
## Styling and theming
|
|
191
|
+
|
|
192
|
+
The breadcrumb follows the shared theme tokens for foreground and muted text. Pass `class` to the list or individual parts to control spacing, alignment, color, and embedded layouts.
|
|
193
|
+
|
|
194
|
+
For example, use `class="justify-end"` on `ui-breadcrumb-list` for RTL alignment or `class="max-w-full"` on the root to fit a constrained header.
|
|
195
|
+
|
|
196
|
+
## Accessibility
|
|
197
|
+
|
|
198
|
+
- Root `<nav>` exposes `aria-label="breadcrumb"`.
|
|
199
|
+
- The current page uses `<span ui-breadcrumb-page>` which emits `role="link"`, `aria-current="page"`, and `aria-disabled="true"` so the trail announces the current location.
|
|
200
|
+
- Separators and ellipses are `aria-hidden` and `role="presentation"`.
|
|
201
|
+
- If `ui-breadcrumb-ellipsis` becomes interactive, wrap it in a labeled button so the overflow action is announced correctly.
|
|
202
|
+
|
|
203
|
+
## Keyboard interactions
|
|
204
|
+
|
|
205
|
+
- Links use native anchor keyboard behavior.
|
|
206
|
+
- Overflow menu buttons rely on the local `ui-button` and `uiMenuTrigger` primitives for Enter, Space, ArrowDown, and Escape handling.
|
|
207
|
+
|
|
208
|
+
## Angular notes
|
|
209
|
+
|
|
210
|
+
- Prefer `<nav ui-breadcrumb>` for a semantic navigation landmark.
|
|
211
|
+
- `<ui-breadcrumb>` is also supported and renders as a block-level host by default.
|
|
212
|
+
- The React `asChild` examples map to Angular-native composition: put `routerLink` or `href` directly on `<a ui-breadcrumb-link>`.
|
|
213
|
+
|
|
214
|
+
## Source parity
|
|
215
|
+
|
|
216
|
+
This Angular implementation follows the shadcn breadcrumb information architecture while translating React-specific patterns such as `asChild` and dropdown composition into Angular RouterLink, button, and menu primitives.
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
# Button
|
|
2
|
+
|
|
3
|
+
Displays a native button or anchor that looks like a shadcn-style button, translated to Angular attribute selectors and standalone imports.
|
|
4
|
+
|
|
5
|
+
Use Button for primary actions, secondary actions, icon-only controls, and semantic links that should share the same visual language.
|
|
6
|
+
|
|
7
|
+
## Import
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { ButtonComponent } from '@edsis/angular/component/button';
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```html
|
|
16
|
+
<button ui-button type="button" variant="default">Save</button>
|
|
17
|
+
<button ui-button variant="outline" size="sm">Cancel</button>
|
|
18
|
+
<a ui-button variant="link" href="/learn-more">Learn more</a>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Choose the correct native host for the job: `<button>` for actions and `<a>` for navigation.
|
|
22
|
+
|
|
23
|
+
## Common patterns
|
|
24
|
+
|
|
25
|
+
### Variants
|
|
26
|
+
|
|
27
|
+
Use `variant` for emphasis: `default`, `secondary`, `destructive`, `outline`, `ghost`, or `link`.
|
|
28
|
+
|
|
29
|
+
```html
|
|
30
|
+
<button ui-button variant="default">Save</button>
|
|
31
|
+
<button ui-button variant="secondary">Duplicate</button>
|
|
32
|
+
<button ui-button variant="destructive">Delete</button>
|
|
33
|
+
<button ui-button variant="outline">Outline</button>
|
|
34
|
+
<button ui-button variant="ghost">Ghost</button>
|
|
35
|
+
<a ui-button variant="link" href="/learn-more">Learn more</a>
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Sizes
|
|
39
|
+
|
|
40
|
+
Use `size` for compact or icon-only controls: `xs`, `sm`, `default`, `lg`, `icon-xs`, `icon-sm`, `icon`, `icon-lg`.
|
|
41
|
+
|
|
42
|
+
```html
|
|
43
|
+
<button ui-button size="xs" variant="outline">Extra small</button>
|
|
44
|
+
<button ui-button size="sm" variant="outline">Small</button>
|
|
45
|
+
<button ui-button size="default" variant="outline">Default</button>
|
|
46
|
+
<button ui-button size="lg" variant="outline">Large</button>
|
|
47
|
+
<button ui-button size="icon-xs" variant="outline" aria-label="Extra small icon button">+</button>
|
|
48
|
+
<button ui-button size="icon-sm" variant="outline" aria-label="Small icon button">+</button>
|
|
49
|
+
<button ui-button size="icon" variant="outline" aria-label="Default icon button">+</button>
|
|
50
|
+
<button ui-button size="icon-lg" variant="outline" aria-label="Large icon button">+</button>
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Rounded buttons
|
|
54
|
+
|
|
55
|
+
Pass `class="rounded-full"` when you want a pill or circular button without changing the base API.
|
|
56
|
+
|
|
57
|
+
```html
|
|
58
|
+
<button ui-button variant="outline" class="rounded-full px-5">Invite teammate</button>
|
|
59
|
+
<button ui-button variant="outline" size="icon" class="rounded-full" aria-label="Scroll to top">
|
|
60
|
+
<svg aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5">
|
|
61
|
+
<path d="m12 19 0-14" />
|
|
62
|
+
<path d="m5 12 7-7 7 7" />
|
|
63
|
+
</svg>
|
|
64
|
+
</button>
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Loading and disabled states
|
|
68
|
+
|
|
69
|
+
Project a spinner element into the button and set `disabled` while async work is pending.
|
|
70
|
+
|
|
71
|
+
```html
|
|
72
|
+
<button ui-button variant="outline" disabled>
|
|
73
|
+
<span
|
|
74
|
+
aria-hidden="true"
|
|
75
|
+
class="inline-block h-3.5 w-3.5 animate-spin rounded-full border-2 border-current border-t-transparent"></span>
|
|
76
|
+
Generating
|
|
77
|
+
</button>
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### Semantic host mapping
|
|
81
|
+
|
|
82
|
+
React's `asChild` pattern maps to choosing the right native host directly in Angular templates.
|
|
83
|
+
|
|
84
|
+
```html
|
|
85
|
+
<button ui-button type="button">Save changes</button> <a ui-button href="/account" variant="link">Go to account</a>
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## API reference
|
|
89
|
+
|
|
90
|
+
| Input | Type | Default |
|
|
91
|
+
| --------- | ------------------------------------------------------------------------------------ | ----------- |
|
|
92
|
+
| `variant` | `'default' \| 'secondary' \| 'destructive' \| 'outline' \| 'ghost' \| 'link'` | `'default'` |
|
|
93
|
+
| `size` | `'xs' \| 'sm' \| 'default' \| 'lg' \| 'icon-xs' \| 'icon-sm' \| 'icon' \| 'icon-lg'` | `'default'` |
|
|
94
|
+
| `class` | `string` | `''` |
|
|
95
|
+
|
|
96
|
+
The selected variant + size are also exposed via `data-variant` / `data-size`
|
|
97
|
+
attributes on the host for styling overrides.
|
|
98
|
+
|
|
99
|
+
Hosts: `button[ui-button]` and `a[ui-button]`.
|
|
100
|
+
|
|
101
|
+
Re-exports: `buttonVariants`, `ButtonVariant`, `ButtonSize`.
|
|
102
|
+
|
|
103
|
+
## Styling and theming
|
|
104
|
+
|
|
105
|
+
Tokens: `--primary`, `--primary-foreground`, `--secondary`, `--destructive`,
|
|
106
|
+
`--border`, `--accent`, `--ring`.
|
|
107
|
+
|
|
108
|
+
Every state (hover, focus-visible, active, disabled) is covered by the variants.
|
|
109
|
+
Focus-visible uses a 2px `ring-ring` outline for keyboard users.
|
|
110
|
+
|
|
111
|
+
Pass `class` to layer width, shape, and spacing overrides such as `rounded-full`, `w-full`, or responsive layout utilities.
|
|
112
|
+
|
|
113
|
+
The local primitive already opts into `cursor-pointer` for interactive hosts, so you do not need an extra Tailwind base-layer override to restore button cursors.
|
|
114
|
+
|
|
115
|
+
## Accessibility
|
|
116
|
+
|
|
117
|
+
Attribute selectors force you to pick a real semantic element:
|
|
118
|
+
|
|
119
|
+
- Use `<button ui-button>` for actions that don't navigate.
|
|
120
|
+
- Use `<a ui-button href="…">` for navigation.
|
|
121
|
+
- Add an `aria-label` to icon-only buttons.
|
|
122
|
+
- Use `type="button"` inside forms unless the button should submit.
|
|
123
|
+
|
|
124
|
+
Avoid faking buttons with `<div>` — keyboard and screen-reader support depend on
|
|
125
|
+
the native element.
|
|
126
|
+
|
|
127
|
+
## Keyboard interactions
|
|
128
|
+
|
|
129
|
+
- Native buttons support Tab, Enter, and Space automatically.
|
|
130
|
+
- Anchors with `href` participate in normal link focus and Enter activation.
|
|
131
|
+
|
|
132
|
+
## Angular notes
|
|
133
|
+
|
|
134
|
+
- Import `ButtonComponent` into the standalone component that renders the host element.
|
|
135
|
+
- There is no Angular `asChild` input; pick the semantic host element directly.
|
|
136
|
+
|
|
137
|
+
## Source parity
|
|
138
|
+
|
|
139
|
+
This Angular version follows the shadcn Button information architecture while translating examples to native hosts, standalone imports, and Angular-friendly template patterns.
|