From 23fa65444a73e76108aebaf6435a771c3f1a0777 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20UB?= <22903142+adrian-ub@users.noreply.github.com> Date: Tue, 24 Sep 2024 12:26:20 -0500 Subject: [PATCH] chore: restructure workspace --- .changeset/README.md | 8 - .changeset/config.json | 14 - .../DISCUSSION_TEMPLATE/blocks-request.yml | 25 - .github/FUNDING.yml | 2 + .github/ISSUE_TEMPLATE/bug_report.yml | 85 - .github/ISSUE_TEMPLATE/config.yml | 5 - .github/ISSUE_TEMPLATE/feature_request.yml | 55 - .github/changeset-version.js | 12 - .github/version-script-beta.js | 21 - .github/version-script-next.js | 21 - .github/workflows/ci.yml | 53 + .github/workflows/issue-stale.yml | 25 - .github/workflows/prerelease-comment.yml | 65 - .github/workflows/prerelease.yml | 60 - .github/workflows/release.yml | 56 +- .gitignore | 49 +- .npmrc | 4 +- .verdaccio/config.yml | 28 - .vscode/extensions.json | 6 - .vscode/settings.json | 38 + CONTRIBUTING.md | 1 + README.md | 35 +- apps/www/astro.config.mjs | 118 - apps/www/src/__registry__/examples.ts | 28 - apps/www/src/components/SelectStyle/index.ts | 4 - .../SelectStyle/rehype-select-style.ts | 113 - apps/www/src/components/component-preview.ts | 30 - apps/www/src/config/site.ts | 13 - apps/www/src/constants.ts | 1 - apps/www/src/lib/utils.ts | 6 - .../pages/registry/colors/index/index.json.ts | 5 - .../src/pages/registry/index/index.json.ts | 7 - .../registry/styles/[style]/[name].json.ts | 59 - .../pages/registry/styles/index/index.json.ts | 5 - .../src/pages/registry/themes/[theme].json.ts | 41 - apps/www/src/registry/blocks.ts | 3 - apps/www/src/registry/charts.ts | 3 - apps/www/src/registry/colors.ts | 1609 --- .../registry/default/example/alert-demo.ts | 35 - .../default/example/alert-destructive.ts | 35 - .../registry/default/example/avatar-demo.ts | 18 - .../registry/default/example/badge-demo.ts | 13 - .../default/example/badge-destructive.ts | 13 - .../registry/default/example/badge-outline.ts | 13 - .../default/example/badge-secondary.ts | 13 - .../registry/default/example/button-demo.ts | 13 - .../default/example/button-destructive.ts | 13 - .../registry/default/example/button-ghost.ts | 13 - .../registry/default/example/button-icon.ts | 21 - .../registry/default/example/button-link.ts | 13 - .../default/example/button-loading.ts | 21 - .../default/example/button-outline.ts | 13 - .../default/example/button-secondary.ts | 13 - .../default/example/button-with-icon.ts | 21 - .../registry/default/example/input-demo.ts | 13 - .../default/example/input-disabled.ts | 13 - .../registry/default/example/input-file.ts | 19 - .../registry/default/example/table-demo.ts | 117 - .../default/example/typography-large.ts | 12 - .../default/example/typography-muted.ts | 12 - .../default/example/typography-small.ts | 12 - .../default/ui/accordion.directive.ts | 85 - .../registry/default/ui/alert.directive.ts | 77 - .../registry/default/ui/avatar.directive.ts | 52 - .../registry/default/ui/badge.directive.ts | 44 - .../default/ui/breadcrumb.directive.ts | 129 - .../registry/default/ui/button.directive.ts | 64 - .../src/registry/default/ui/card.directive.ts | 85 - .../registry/default/ui/input.directive.ts | 35 - .../registry/default/ui/label.directive.ts | 28 - .../default/ui/separator.directive.ts | 22 - .../registry/default/ui/skeleton.directive.ts | 17 - .../registry/default/ui/switch.directive.ts | 29 - .../registry/default/ui/table.directive.ts | 119 - apps/www/src/registry/examples.ts | 3 - .../registry/new-york/example/alert-demo.ts | 35 - .../new-york/example/alert-destructive.ts | 35 - .../registry/new-york/example/avatar-demo.ts | 18 - .../registry/new-york/example/badge-demo.ts | 13 - .../new-york/example/badge-destructive.ts | 13 - .../new-york/example/badge-outline.ts | 13 - .../new-york/example/badge-secondary.ts | 13 - .../registry/new-york/example/button-demo.ts | 13 - .../new-york/example/button-destructive.ts | 13 - .../registry/new-york/example/button-ghost.ts | 13 - .../registry/new-york/example/button-icon.ts | 21 - .../registry/new-york/example/button-link.ts | 13 - .../new-york/example/button-loading.ts | 21 - .../new-york/example/button-outline.ts | 13 - .../new-york/example/button-secondary.ts | 13 - .../new-york/example/button-with-icon.ts | 21 - .../registry/new-york/example/input-demo.ts | 13 - .../new-york/example/input-disabled.ts | 13 - .../registry/new-york/example/input-file.ts | 19 - .../registry/new-york/example/table-demo.ts | 117 - .../new-york/example/typography-h3.ts | 14 - .../new-york/example/typography-large.ts | 12 - .../new-york/example/typography-muted.ts | 12 - .../new-york/example/typography-small.ts | 12 - .../new-york/ui/accordion.directive.ts | 85 - .../registry/new-york/ui/alert.directive.ts | 77 - .../registry/new-york/ui/avatar.directive.ts | 52 - .../registry/new-york/ui/badge.directive.ts | 44 - .../new-york/ui/breadcrumb.directive.ts | 129 - .../registry/new-york/ui/button.directive.ts | 65 - .../registry/new-york/ui/card.directive.ts | 85 - .../registry/new-york/ui/input.directive.ts | 35 - .../registry/new-york/ui/label.directive.ts | 28 - .../new-york/ui/separator.directive.ts | 22 - .../new-york/ui/skeleton.directive.ts | 17 - .../registry/new-york/ui/switch.directive.ts | 29 - .../registry/new-york/ui/table.directive.ts | 122 - apps/www/src/registry/registry.ts | 7 - apps/www/src/registry/styles.ts | 12 - apps/www/src/registry/themes.ts | 756 -- apps/www/src/registry/ui.ts | 80 - apps/www/src/schemas/badge.ts | 31 - apps/www/src/utils/base.ts | 15 - apps/www/src/utils/format-path.ts | 7 - apps/www/src/utils/path.ts | 54 - apps/www/src/virtual.d.ts | 24 - apps/www/tailwind.config.mjs | 85 - build.config.ts | 12 + {apps/www => docs}/.gitignore | 0 {apps/www => docs}/.vscode/extensions.json | 0 {apps/www => docs}/.vscode/launch.json | 0 .../.vscode/simple-query.code-snippets | 0 docs/astro.config.mjs | 118 + {apps/www => docs}/package.json | 2 +- {apps/www => docs}/public/favicon.ico | Bin {apps/www => docs}/public/og.jpg | Bin {apps/www => docs}/public/schema.json | 0 docs/src/__registry__/examples.ts | 28 + {apps/www => docs}/src/assets/logo.svg | 0 .../src/components/ComponentPreview.astro | 0 .../src/components/ComponentSource.astro | 0 .../src/components/SelectStyle/Item.astro | 0 .../src/components/SelectStyle/Select.astro | 0 docs/src/components/SelectStyle/index.ts | 4 + .../SelectStyle/rehype-select-style.ts | 114 + docs/src/components/component-preview.ts | 31 + .../components/starlight/ContentPanel.astro | 0 .../src/components/starlight/Hero.astro | 0 .../starlight/MarkdownContent.astro | 0 .../starlight/MobileMenuToggle.astro | 0 .../src/components/starlight/PageFrame.astro | 0 .../components/starlight/PageSidebar.astro | 0 .../src/components/starlight/PageTitle.astro | 0 .../src/components/starlight/Pagination.astro | 0 .../src/components/starlight/Search.astro | 0 .../src/components/starlight/Sidebar.astro | 0 .../components/starlight/SidebarSublist.astro | 0 .../src/components/starlight/SiteTitle.astro | 0 .../components/starlight/SocialIcons.astro | 0 .../starlight/TwoColumnContent.astro | 0 .../components/starlight/header/Header.astro | 0 .../components/starlight/header/MainNav.astro | 0 docs/src/config/site.ts | 13 + docs/src/constants.ts | 1 + {apps/www => docs}/src/content/config.ts | 6 +- .../src/content/docs/docs/cli.mdx | 0 .../src/content/docs/docs/components-json.mdx | 0 .../docs/docs/components/accordion.mdx | 0 .../content/docs/docs/components/alert.mdx | 0 .../content/docs/docs/components/avatar.mdx | 0 .../content/docs/docs/components/badge.mdx | 0 .../docs/docs/components/breadcrumb.mdx | 0 .../content/docs/docs/components/button.mdx | 0 .../content/docs/docs/components/input.mdx | 0 .../docs/docs/components/separator.mdx | 0 .../content/docs/docs/components/skeleton.mdx | 0 .../content/docs/docs/components/switch.mdx | 0 .../content/docs/docs/components/table.mdx | 0 .../src/content/docs/docs/components/tabs.mdx | 0 .../docs/docs/components/typography.mdx | 0 .../src/content/docs/docs/index.mdx | 0 .../docs/docs/installation/angular.mdx | 0 .../content/docs/docs/installation/astro.mdx | 0 .../content/docs/docs/installation/index.mdx | 0 .../src/content/docs/docs/theming.mdx | 0 {apps/www => docs}/src/content/docs/index.mdx | 0 {apps/www => docs}/src/env.d.ts | 0 .../src/fonts/GeistVariableVF.woff2 | Bin {apps/www => docs}/src/fonts/font-face.css | 0 .../src/lib/highlighter-theme.json | 0 docs/src/lib/utils.ts | 6 + .../src/pages/registry/colors/[base].json.ts | 54 +- .../pages/registry/colors/index/index.json.ts | 5 + docs/src/pages/registry/index/index.json.ts | 7 + .../registry/styles/[style]/[name].json.ts | 59 + .../pages/registry/styles/index/index.json.ts | 5 + .../src/pages/registry/themes.css.ts | 18 +- .../src/pages/registry/themes/[theme].json.ts | 41 + docs/src/registry/blocks.ts | 3 + docs/src/registry/charts.ts | 3 + docs/src/registry/colors.ts | 1609 +++ .../default/example/accordion-demo.ts | 16 +- .../registry/default/example/alert-demo.ts | 35 + .../default/example/alert-destructive.ts | 35 + .../registry/default/example/avatar-demo.ts | 18 + .../registry/default/example/badge-demo.ts | 13 + .../default/example/badge-destructive.ts | 13 + .../registry/default/example/badge-outline.ts | 13 + .../default/example/badge-secondary.ts | 13 + .../default/example/breadcrumb-demo.ts | 36 +- .../registry/default/example/button-demo.ts | 13 + .../default/example/button-destructive.ts | 13 + .../registry/default/example/button-ghost.ts | 13 + .../registry/default/example/button-icon.ts | 21 + .../registry/default/example/button-link.ts | 13 + .../default/example/button-loading.ts | 21 + .../default/example/button-outline.ts | 13 + .../default/example/button-secondary.ts | 13 + .../default/example/button-with-icon.ts | 21 + .../registry/default/example/input-demo.ts | 13 + .../default/example/input-disabled.ts | 13 + .../registry/default/example/input-file.ts | 19 + .../default/example/separator-demo.ts | 14 +- .../registry/default/example/skeleton-card.ts | 14 +- .../registry/default/example/skeleton-demo.ts | 14 +- .../registry/default/example/switch-demo.ts | 16 +- .../registry/default/example/table-demo.ts | 117 + .../src/registry/default/example/tabs-demo.ts | 52 +- .../default/example/typography-blockquote.ts | 10 +- .../default/example/typography-demo.ts | 10 +- .../registry/default/example/typography-h1.ts | 10 +- .../registry/default/example/typography-h2.ts | 10 +- .../registry/default/example/typography-h3.ts | 10 +- .../registry/default/example/typography-h4.ts | 10 +- .../default/example/typography-inline-code.ts | 10 +- .../default/example/typography-large.ts | 12 + .../default/example/typography-lead.ts | 10 +- .../default/example/typography-list.ts | 10 +- .../default/example/typography-muted.ts | 12 + .../registry/default/example/typography-p.ts | 10 +- .../default/example/typography-small.ts | 12 + .../default/example/typography-table.ts | 10 +- .../default/ui/accordion.directive.ts | 83 + .../registry/default/ui/alert.directive.ts | 77 + .../registry/default/ui/avatar.directive.ts | 52 + .../registry/default/ui/badge.directive.ts | 44 + .../default/ui/breadcrumb.directive.ts | 129 + .../registry/default/ui/button.directive.ts | 64 + .../src/registry/default/ui/card.directive.ts | 85 + .../registry/default/ui/input.directive.ts | 35 + .../registry/default/ui/label.directive.ts | 28 + .../default/ui/separator.directive.ts | 22 + .../registry/default/ui/skeleton.directive.ts | 17 + .../registry/default/ui/switch.directive.ts | 29 + .../registry/default/ui/table.directive.ts | 119 + .../src/registry/default/ui/tabs.directive.ts | 64 +- docs/src/registry/examples.ts | 3 + .../new-york/example/accordion-demo.ts | 16 +- .../registry/new-york/example/alert-demo.ts | 35 + .../new-york/example/alert-destructive.ts | 35 + .../registry/new-york/example/avatar-demo.ts | 18 + .../registry/new-york/example/badge-demo.ts | 13 + .../new-york/example/badge-destructive.ts | 13 + .../new-york/example/badge-outline.ts | 13 + .../new-york/example/badge-secondary.ts | 13 + .../new-york/example/breadcrumb-demo.ts | 36 +- .../registry/new-york/example/button-demo.ts | 13 + .../new-york/example/button-destructive.ts | 13 + .../registry/new-york/example/button-ghost.ts | 13 + .../registry/new-york/example/button-icon.ts | 21 + .../registry/new-york/example/button-link.ts | 13 + .../new-york/example/button-loading.ts | 21 + .../new-york/example/button-outline.ts | 13 + .../new-york/example/button-secondary.ts | 13 + .../new-york/example/button-with-icon.ts | 21 + .../registry/new-york/example/input-demo.ts | 13 + .../new-york/example/input-disabled.ts | 13 + .../registry/new-york/example/input-file.ts | 19 + .../new-york/example/separator-demo.ts | 14 +- .../new-york/example/skeleton-card.ts | 14 +- .../new-york/example/skeleton-demo.ts | 14 +- .../registry/new-york/example/switch-demo.ts | 16 +- .../registry/new-york/example/table-demo.ts | 117 + .../registry/new-york/example/tabs-demo.ts | 52 +- .../new-york/example/typography-blockquote.ts | 10 +- .../new-york/example/typography-demo.ts | 10 +- .../new-york/example/typography-h1.ts | 10 +- .../new-york/example/typography-h2.ts | 10 +- .../new-york/example/typography-h3.ts | 14 + .../new-york/example/typography-h4.ts | 10 +- .../example/typography-inline-code.ts | 10 +- .../new-york/example/typography-large.ts | 12 + .../new-york/example/typography-lead.ts | 10 +- .../new-york/example/typography-list.ts | 10 +- .../new-york/example/typography-muted.ts | 12 + .../registry/new-york/example/typography-p.ts | 10 +- .../new-york/example/typography-small.ts | 12 + .../new-york/example/typography-table.ts | 10 +- .../new-york/ui/accordion.directive.ts | 83 + .../registry/new-york/ui/alert.directive.ts | 77 + .../registry/new-york/ui/avatar.directive.ts | 52 + .../registry/new-york/ui/badge.directive.ts | 44 + .../new-york/ui/breadcrumb.directive.ts | 129 + .../registry/new-york/ui/button.directive.ts | 65 + .../registry/new-york/ui/card.directive.ts | 85 + .../registry/new-york/ui/input.directive.ts | 35 + .../registry/new-york/ui/label.directive.ts | 28 + .../new-york/ui/separator.directive.ts | 22 + .../new-york/ui/skeleton.directive.ts | 17 + .../registry/new-york/ui/switch.directive.ts | 29 + .../registry/new-york/ui/table.directive.ts | 122 + .../registry/new-york/ui/tabs.directive.ts | 64 +- docs/src/registry/registry.ts | 7 + {apps/www => docs}/src/registry/schema.ts | 32 +- docs/src/registry/styles.ts | 12 + docs/src/registry/themes.ts | 756 ++ docs/src/registry/ui.ts | 80 + docs/src/schemas/badge.ts | 33 + .../www => docs}/src/schemas/prevNextLink.ts | 13 +- {apps/www => docs}/src/schemas/sidebar.ts | 57 +- {apps/www => docs}/src/style/markdown.css | 0 {apps/www => docs}/src/tailwind.css | 0 docs/src/utils/base.ts | 15 + .../src/utils/createPathFormatter.ts | 35 +- docs/src/utils/format-path.ts | 7 + {apps/www => docs}/src/utils/i18n.ts | 162 +- {apps/www => docs}/src/utils/navigation.ts | 381 +- docs/src/utils/path.ts | 58 + {apps/www => docs}/src/utils/routing.ts | 112 +- {apps/www => docs}/src/utils/slugs.ts | 106 +- .../src/utils/validateLogoImports.ts | 23 +- docs/src/virtual.d.ts | 24 + docs/tailwind.config.mjs | 85 + {apps/www => docs}/tsconfig.app.json | 20 +- {apps/www => docs}/tsconfig.json | 0 eslint.config.js | 9 + nx.json | 10 - package.json | 106 +- packages/cli/.gitignore | 3 - packages/cli/CHANGELOG.md | 13 - packages/cli/README.md | 43 - packages/cli/package.json | 75 - packages/cli/src/commands/add.ts | 213 - packages/cli/src/commands/diff.ts | 196 - packages/cli/src/commands/init.ts | 373 - packages/cli/src/index.ts | 29 - packages/cli/src/utils/get-config.ts | 99 - packages/cli/src/utils/get-package-info.ts | 9 - packages/cli/src/utils/get-package-manager.ts | 13 - packages/cli/src/utils/get-project-info.ts | 108 - packages/cli/src/utils/handle-error.ts | 16 - packages/cli/src/utils/logger.ts | 19 - packages/cli/src/utils/registry/index.ts | 156 - packages/cli/src/utils/transformers/index.ts | 51 - .../utils/transformers/transform-css-vars.ts | 107 - packages/cli/tsconfig.json | 24 - packages/cli/tsup.config.ts | 12 - pnpm-lock.yaml | 8968 +++++++++-------- pnpm-workspace.yaml | 6 +- project.json | 14 - src/cli.ts | 31 + src/commands/add.ts | 218 + src/commands/diff.ts | 201 + src/commands/init.ts | 379 + src/utils/get-config.ts | 102 + src/utils/get-package-info.ts | 9 + src/utils/get-package-manager.ts | 16 + src/utils/get-project-info.ts | 112 + src/utils/handle-error.ts | 18 + src/utils/logger.ts | 20 + src/utils/registry/index.ts | 165 + .../cli/src => src}/utils/registry/schema.ts | 8 +- .../cli/src => src}/utils/resolve-import.ts | 12 +- {packages/cli/src => src}/utils/templates.ts | 10 +- src/utils/transformers/index.ts | 53 + src/utils/transformers/transform-css-vars.ts | 108 + .../utils/transformers/transform-import.ts | 35 +- .../utils/transformers/transform-tw-prefix.ts | 173 +- test/cli.test.ts | 7 + tsconfig.base.json | 22 - tsconfig.json | 15 + 376 files changed, 13184 insertions(+), 12903 deletions(-) delete mode 100644 .changeset/README.md delete mode 100644 .changeset/config.json delete mode 100644 .github/DISCUSSION_TEMPLATE/blocks-request.yml create mode 100644 .github/FUNDING.yml delete mode 100644 .github/ISSUE_TEMPLATE/bug_report.yml delete mode 100644 .github/ISSUE_TEMPLATE/config.yml delete mode 100644 .github/ISSUE_TEMPLATE/feature_request.yml delete mode 100644 .github/changeset-version.js delete mode 100644 .github/version-script-beta.js delete mode 100644 .github/version-script-next.js create mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/issue-stale.yml delete mode 100644 .github/workflows/prerelease-comment.yml delete mode 100644 .github/workflows/prerelease.yml delete mode 100644 .verdaccio/config.yml delete mode 100644 .vscode/extensions.json create mode 100644 .vscode/settings.json create mode 100644 CONTRIBUTING.md delete mode 100644 apps/www/astro.config.mjs delete mode 100644 apps/www/src/__registry__/examples.ts delete mode 100644 apps/www/src/components/SelectStyle/index.ts delete mode 100644 apps/www/src/components/SelectStyle/rehype-select-style.ts delete mode 100644 apps/www/src/components/component-preview.ts delete mode 100644 apps/www/src/config/site.ts delete mode 100644 apps/www/src/constants.ts delete mode 100644 apps/www/src/lib/utils.ts delete mode 100644 apps/www/src/pages/registry/colors/index/index.json.ts delete mode 100644 apps/www/src/pages/registry/index/index.json.ts delete mode 100644 apps/www/src/pages/registry/styles/[style]/[name].json.ts delete mode 100644 apps/www/src/pages/registry/styles/index/index.json.ts delete mode 100644 apps/www/src/pages/registry/themes/[theme].json.ts delete mode 100644 apps/www/src/registry/blocks.ts delete mode 100644 apps/www/src/registry/charts.ts delete mode 100644 apps/www/src/registry/colors.ts delete mode 100644 apps/www/src/registry/default/example/alert-demo.ts delete mode 100644 apps/www/src/registry/default/example/alert-destructive.ts delete mode 100644 apps/www/src/registry/default/example/avatar-demo.ts delete mode 100644 apps/www/src/registry/default/example/badge-demo.ts delete mode 100644 apps/www/src/registry/default/example/badge-destructive.ts delete mode 100644 apps/www/src/registry/default/example/badge-outline.ts delete mode 100644 apps/www/src/registry/default/example/badge-secondary.ts delete mode 100644 apps/www/src/registry/default/example/button-demo.ts delete mode 100644 apps/www/src/registry/default/example/button-destructive.ts delete mode 100644 apps/www/src/registry/default/example/button-ghost.ts delete mode 100644 apps/www/src/registry/default/example/button-icon.ts delete mode 100644 apps/www/src/registry/default/example/button-link.ts delete mode 100644 apps/www/src/registry/default/example/button-loading.ts delete mode 100644 apps/www/src/registry/default/example/button-outline.ts delete mode 100644 apps/www/src/registry/default/example/button-secondary.ts delete mode 100644 apps/www/src/registry/default/example/button-with-icon.ts delete mode 100644 apps/www/src/registry/default/example/input-demo.ts delete mode 100644 apps/www/src/registry/default/example/input-disabled.ts delete mode 100644 apps/www/src/registry/default/example/input-file.ts delete mode 100644 apps/www/src/registry/default/example/table-demo.ts delete mode 100644 apps/www/src/registry/default/example/typography-large.ts delete mode 100644 apps/www/src/registry/default/example/typography-muted.ts delete mode 100644 apps/www/src/registry/default/example/typography-small.ts delete mode 100644 apps/www/src/registry/default/ui/accordion.directive.ts delete mode 100644 apps/www/src/registry/default/ui/alert.directive.ts delete mode 100644 apps/www/src/registry/default/ui/avatar.directive.ts delete mode 100644 apps/www/src/registry/default/ui/badge.directive.ts delete mode 100644 apps/www/src/registry/default/ui/breadcrumb.directive.ts delete mode 100644 apps/www/src/registry/default/ui/button.directive.ts delete mode 100644 apps/www/src/registry/default/ui/card.directive.ts delete mode 100644 apps/www/src/registry/default/ui/input.directive.ts delete mode 100644 apps/www/src/registry/default/ui/label.directive.ts delete mode 100644 apps/www/src/registry/default/ui/separator.directive.ts delete mode 100644 apps/www/src/registry/default/ui/skeleton.directive.ts delete mode 100644 apps/www/src/registry/default/ui/switch.directive.ts delete mode 100644 apps/www/src/registry/default/ui/table.directive.ts delete mode 100644 apps/www/src/registry/examples.ts delete mode 100644 apps/www/src/registry/new-york/example/alert-demo.ts delete mode 100644 apps/www/src/registry/new-york/example/alert-destructive.ts delete mode 100644 apps/www/src/registry/new-york/example/avatar-demo.ts delete mode 100644 apps/www/src/registry/new-york/example/badge-demo.ts delete mode 100644 apps/www/src/registry/new-york/example/badge-destructive.ts delete mode 100644 apps/www/src/registry/new-york/example/badge-outline.ts delete mode 100644 apps/www/src/registry/new-york/example/badge-secondary.ts delete mode 100644 apps/www/src/registry/new-york/example/button-demo.ts delete mode 100644 apps/www/src/registry/new-york/example/button-destructive.ts delete mode 100644 apps/www/src/registry/new-york/example/button-ghost.ts delete mode 100644 apps/www/src/registry/new-york/example/button-icon.ts delete mode 100644 apps/www/src/registry/new-york/example/button-link.ts delete mode 100644 apps/www/src/registry/new-york/example/button-loading.ts delete mode 100644 apps/www/src/registry/new-york/example/button-outline.ts delete mode 100644 apps/www/src/registry/new-york/example/button-secondary.ts delete mode 100644 apps/www/src/registry/new-york/example/button-with-icon.ts delete mode 100644 apps/www/src/registry/new-york/example/input-demo.ts delete mode 100644 apps/www/src/registry/new-york/example/input-disabled.ts delete mode 100644 apps/www/src/registry/new-york/example/input-file.ts delete mode 100644 apps/www/src/registry/new-york/example/table-demo.ts delete mode 100644 apps/www/src/registry/new-york/example/typography-h3.ts delete mode 100644 apps/www/src/registry/new-york/example/typography-large.ts delete mode 100644 apps/www/src/registry/new-york/example/typography-muted.ts delete mode 100644 apps/www/src/registry/new-york/example/typography-small.ts delete mode 100644 apps/www/src/registry/new-york/ui/accordion.directive.ts delete mode 100644 apps/www/src/registry/new-york/ui/alert.directive.ts delete mode 100644 apps/www/src/registry/new-york/ui/avatar.directive.ts delete mode 100644 apps/www/src/registry/new-york/ui/badge.directive.ts delete mode 100644 apps/www/src/registry/new-york/ui/breadcrumb.directive.ts delete mode 100644 apps/www/src/registry/new-york/ui/button.directive.ts delete mode 100644 apps/www/src/registry/new-york/ui/card.directive.ts delete mode 100644 apps/www/src/registry/new-york/ui/input.directive.ts delete mode 100644 apps/www/src/registry/new-york/ui/label.directive.ts delete mode 100644 apps/www/src/registry/new-york/ui/separator.directive.ts delete mode 100644 apps/www/src/registry/new-york/ui/skeleton.directive.ts delete mode 100644 apps/www/src/registry/new-york/ui/switch.directive.ts delete mode 100644 apps/www/src/registry/new-york/ui/table.directive.ts delete mode 100644 apps/www/src/registry/registry.ts delete mode 100644 apps/www/src/registry/styles.ts delete mode 100644 apps/www/src/registry/themes.ts delete mode 100644 apps/www/src/registry/ui.ts delete mode 100644 apps/www/src/schemas/badge.ts delete mode 100644 apps/www/src/utils/base.ts delete mode 100644 apps/www/src/utils/format-path.ts delete mode 100644 apps/www/src/utils/path.ts delete mode 100644 apps/www/src/virtual.d.ts delete mode 100644 apps/www/tailwind.config.mjs create mode 100644 build.config.ts rename {apps/www => docs}/.gitignore (100%) rename {apps/www => docs}/.vscode/extensions.json (100%) rename {apps/www => docs}/.vscode/launch.json (100%) rename {apps/www => docs}/.vscode/simple-query.code-snippets (100%) create mode 100644 docs/astro.config.mjs rename {apps/www => docs}/package.json (98%) rename {apps/www => docs}/public/favicon.ico (100%) rename {apps/www => docs}/public/og.jpg (100%) rename {apps/www => docs}/public/schema.json (100%) create mode 100644 docs/src/__registry__/examples.ts rename {apps/www => docs}/src/assets/logo.svg (100%) rename {apps/www => docs}/src/components/ComponentPreview.astro (100%) rename {apps/www => docs}/src/components/ComponentSource.astro (100%) rename {apps/www => docs}/src/components/SelectStyle/Item.astro (100%) rename {apps/www => docs}/src/components/SelectStyle/Select.astro (100%) create mode 100644 docs/src/components/SelectStyle/index.ts create mode 100644 docs/src/components/SelectStyle/rehype-select-style.ts create mode 100644 docs/src/components/component-preview.ts rename {apps/www => docs}/src/components/starlight/ContentPanel.astro (100%) rename {apps/www => docs}/src/components/starlight/Hero.astro (100%) rename {apps/www => docs}/src/components/starlight/MarkdownContent.astro (100%) rename {apps/www => docs}/src/components/starlight/MobileMenuToggle.astro (100%) rename {apps/www => docs}/src/components/starlight/PageFrame.astro (100%) rename {apps/www => docs}/src/components/starlight/PageSidebar.astro (100%) rename {apps/www => docs}/src/components/starlight/PageTitle.astro (100%) rename {apps/www => docs}/src/components/starlight/Pagination.astro (100%) rename {apps/www => docs}/src/components/starlight/Search.astro (100%) rename {apps/www => docs}/src/components/starlight/Sidebar.astro (100%) rename {apps/www => docs}/src/components/starlight/SidebarSublist.astro (100%) rename {apps/www => docs}/src/components/starlight/SiteTitle.astro (100%) rename {apps/www => docs}/src/components/starlight/SocialIcons.astro (100%) rename {apps/www => docs}/src/components/starlight/TwoColumnContent.astro (100%) rename {apps/www => docs}/src/components/starlight/header/Header.astro (100%) rename {apps/www => docs}/src/components/starlight/header/MainNav.astro (100%) create mode 100644 docs/src/config/site.ts create mode 100644 docs/src/constants.ts rename {apps/www => docs}/src/content/config.ts (71%) rename {apps/www => docs}/src/content/docs/docs/cli.mdx (100%) rename {apps/www => docs}/src/content/docs/docs/components-json.mdx (100%) rename {apps/www => docs}/src/content/docs/docs/components/accordion.mdx (100%) rename {apps/www => docs}/src/content/docs/docs/components/alert.mdx (100%) rename {apps/www => docs}/src/content/docs/docs/components/avatar.mdx (100%) rename {apps/www => docs}/src/content/docs/docs/components/badge.mdx (100%) rename {apps/www => docs}/src/content/docs/docs/components/breadcrumb.mdx (100%) rename {apps/www => docs}/src/content/docs/docs/components/button.mdx (100%) rename {apps/www => docs}/src/content/docs/docs/components/input.mdx (100%) rename {apps/www => docs}/src/content/docs/docs/components/separator.mdx (100%) rename {apps/www => docs}/src/content/docs/docs/components/skeleton.mdx (100%) rename {apps/www => docs}/src/content/docs/docs/components/switch.mdx (100%) rename {apps/www => docs}/src/content/docs/docs/components/table.mdx (100%) rename {apps/www => docs}/src/content/docs/docs/components/tabs.mdx (100%) rename {apps/www => docs}/src/content/docs/docs/components/typography.mdx (100%) rename {apps/www => docs}/src/content/docs/docs/index.mdx (100%) rename {apps/www => docs}/src/content/docs/docs/installation/angular.mdx (100%) rename {apps/www => docs}/src/content/docs/docs/installation/astro.mdx (100%) rename {apps/www => docs}/src/content/docs/docs/installation/index.mdx (100%) rename {apps/www => docs}/src/content/docs/docs/theming.mdx (100%) rename {apps/www => docs}/src/content/docs/index.mdx (100%) rename {apps/www => docs}/src/env.d.ts (100%) rename {apps/www => docs}/src/fonts/GeistVariableVF.woff2 (100%) rename {apps/www => docs}/src/fonts/font-face.css (100%) rename {apps/www => docs}/src/lib/highlighter-theme.json (100%) create mode 100644 docs/src/lib/utils.ts rename {apps/www => docs}/src/pages/registry/colors/[base].json.ts (76%) create mode 100644 docs/src/pages/registry/colors/index/index.json.ts create mode 100644 docs/src/pages/registry/index/index.json.ts create mode 100644 docs/src/pages/registry/styles/[style]/[name].json.ts create mode 100644 docs/src/pages/registry/styles/index/index.json.ts rename {apps/www => docs}/src/pages/registry/themes.css.ts (91%) create mode 100644 docs/src/pages/registry/themes/[theme].json.ts create mode 100644 docs/src/registry/blocks.ts create mode 100644 docs/src/registry/charts.ts create mode 100644 docs/src/registry/colors.ts rename {apps/www => docs}/src/registry/default/example/accordion-demo.ts (72%) create mode 100644 docs/src/registry/default/example/alert-demo.ts create mode 100644 docs/src/registry/default/example/alert-destructive.ts create mode 100644 docs/src/registry/default/example/avatar-demo.ts create mode 100644 docs/src/registry/default/example/badge-demo.ts create mode 100644 docs/src/registry/default/example/badge-destructive.ts create mode 100644 docs/src/registry/default/example/badge-outline.ts create mode 100644 docs/src/registry/default/example/badge-secondary.ts rename {apps/www => docs}/src/registry/default/example/breadcrumb-demo.ts (63%) create mode 100644 docs/src/registry/default/example/button-demo.ts create mode 100644 docs/src/registry/default/example/button-destructive.ts create mode 100644 docs/src/registry/default/example/button-ghost.ts create mode 100644 docs/src/registry/default/example/button-icon.ts create mode 100644 docs/src/registry/default/example/button-link.ts create mode 100644 docs/src/registry/default/example/button-loading.ts create mode 100644 docs/src/registry/default/example/button-outline.ts create mode 100644 docs/src/registry/default/example/button-secondary.ts create mode 100644 docs/src/registry/default/example/button-with-icon.ts create mode 100644 docs/src/registry/default/example/input-demo.ts create mode 100644 docs/src/registry/default/example/input-disabled.ts create mode 100644 docs/src/registry/default/example/input-file.ts rename {apps/www => docs}/src/registry/default/example/separator-demo.ts (68%) rename {apps/www => docs}/src/registry/default/example/skeleton-card.ts (56%) rename {apps/www => docs}/src/registry/default/example/skeleton-demo.ts (55%) rename {apps/www => docs}/src/registry/default/example/switch-demo.ts (63%) create mode 100644 docs/src/registry/default/example/table-demo.ts rename {apps/www => docs}/src/registry/default/example/tabs-demo.ts (76%) rename {apps/www => docs}/src/registry/default/example/typography-blockquote.ts (60%) rename {apps/www => docs}/src/registry/default/example/typography-demo.ts (97%) rename {apps/www => docs}/src/registry/default/example/typography-h1.ts (55%) rename {apps/www => docs}/src/registry/default/example/typography-h2.ts (55%) rename {apps/www => docs}/src/registry/default/example/typography-h3.ts (50%) rename {apps/www => docs}/src/registry/default/example/typography-h4.ts (52%) rename {apps/www => docs}/src/registry/default/example/typography-inline-code.ts (56%) create mode 100644 docs/src/registry/default/example/typography-large.ts rename {apps/www => docs}/src/registry/default/example/typography-lead.ts (57%) rename {apps/www => docs}/src/registry/default/example/typography-list.ts (62%) create mode 100644 docs/src/registry/default/example/typography-muted.ts rename {apps/www => docs}/src/registry/default/example/typography-p.ts (61%) create mode 100644 docs/src/registry/default/example/typography-small.ts rename {apps/www => docs}/src/registry/default/example/typography-table.ts (92%) create mode 100644 docs/src/registry/default/ui/accordion.directive.ts create mode 100644 docs/src/registry/default/ui/alert.directive.ts create mode 100644 docs/src/registry/default/ui/avatar.directive.ts create mode 100644 docs/src/registry/default/ui/badge.directive.ts create mode 100644 docs/src/registry/default/ui/breadcrumb.directive.ts create mode 100644 docs/src/registry/default/ui/button.directive.ts create mode 100644 docs/src/registry/default/ui/card.directive.ts create mode 100644 docs/src/registry/default/ui/input.directive.ts create mode 100644 docs/src/registry/default/ui/label.directive.ts create mode 100644 docs/src/registry/default/ui/separator.directive.ts create mode 100644 docs/src/registry/default/ui/skeleton.directive.ts create mode 100644 docs/src/registry/default/ui/switch.directive.ts create mode 100644 docs/src/registry/default/ui/table.directive.ts rename {apps/www => docs}/src/registry/default/ui/tabs.directive.ts (51%) create mode 100644 docs/src/registry/examples.ts rename {apps/www => docs}/src/registry/new-york/example/accordion-demo.ts (72%) create mode 100644 docs/src/registry/new-york/example/alert-demo.ts create mode 100644 docs/src/registry/new-york/example/alert-destructive.ts create mode 100644 docs/src/registry/new-york/example/avatar-demo.ts create mode 100644 docs/src/registry/new-york/example/badge-demo.ts create mode 100644 docs/src/registry/new-york/example/badge-destructive.ts create mode 100644 docs/src/registry/new-york/example/badge-outline.ts create mode 100644 docs/src/registry/new-york/example/badge-secondary.ts rename {apps/www => docs}/src/registry/new-york/example/breadcrumb-demo.ts (63%) create mode 100644 docs/src/registry/new-york/example/button-demo.ts create mode 100644 docs/src/registry/new-york/example/button-destructive.ts create mode 100644 docs/src/registry/new-york/example/button-ghost.ts create mode 100644 docs/src/registry/new-york/example/button-icon.ts create mode 100644 docs/src/registry/new-york/example/button-link.ts create mode 100644 docs/src/registry/new-york/example/button-loading.ts create mode 100644 docs/src/registry/new-york/example/button-outline.ts create mode 100644 docs/src/registry/new-york/example/button-secondary.ts create mode 100644 docs/src/registry/new-york/example/button-with-icon.ts create mode 100644 docs/src/registry/new-york/example/input-demo.ts create mode 100644 docs/src/registry/new-york/example/input-disabled.ts create mode 100644 docs/src/registry/new-york/example/input-file.ts rename {apps/www => docs}/src/registry/new-york/example/separator-demo.ts (68%) rename {apps/www => docs}/src/registry/new-york/example/skeleton-card.ts (55%) rename {apps/www => docs}/src/registry/new-york/example/skeleton-demo.ts (54%) rename {apps/www => docs}/src/registry/new-york/example/switch-demo.ts (63%) create mode 100644 docs/src/registry/new-york/example/table-demo.ts rename {apps/www => docs}/src/registry/new-york/example/tabs-demo.ts (76%) rename {apps/www => docs}/src/registry/new-york/example/typography-blockquote.ts (60%) rename {apps/www => docs}/src/registry/new-york/example/typography-demo.ts (97%) rename {apps/www => docs}/src/registry/new-york/example/typography-h1.ts (55%) rename {apps/www => docs}/src/registry/new-york/example/typography-h2.ts (55%) create mode 100644 docs/src/registry/new-york/example/typography-h3.ts rename {apps/www => docs}/src/registry/new-york/example/typography-h4.ts (52%) rename {apps/www => docs}/src/registry/new-york/example/typography-inline-code.ts (56%) create mode 100644 docs/src/registry/new-york/example/typography-large.ts rename {apps/www => docs}/src/registry/new-york/example/typography-lead.ts (57%) rename {apps/www => docs}/src/registry/new-york/example/typography-list.ts (62%) create mode 100644 docs/src/registry/new-york/example/typography-muted.ts rename {apps/www => docs}/src/registry/new-york/example/typography-p.ts (61%) create mode 100644 docs/src/registry/new-york/example/typography-small.ts rename {apps/www => docs}/src/registry/new-york/example/typography-table.ts (92%) create mode 100644 docs/src/registry/new-york/ui/accordion.directive.ts create mode 100644 docs/src/registry/new-york/ui/alert.directive.ts create mode 100644 docs/src/registry/new-york/ui/avatar.directive.ts create mode 100644 docs/src/registry/new-york/ui/badge.directive.ts create mode 100644 docs/src/registry/new-york/ui/breadcrumb.directive.ts create mode 100644 docs/src/registry/new-york/ui/button.directive.ts create mode 100644 docs/src/registry/new-york/ui/card.directive.ts create mode 100644 docs/src/registry/new-york/ui/input.directive.ts create mode 100644 docs/src/registry/new-york/ui/label.directive.ts create mode 100644 docs/src/registry/new-york/ui/separator.directive.ts create mode 100644 docs/src/registry/new-york/ui/skeleton.directive.ts create mode 100644 docs/src/registry/new-york/ui/switch.directive.ts create mode 100644 docs/src/registry/new-york/ui/table.directive.ts rename {apps/www => docs}/src/registry/new-york/ui/tabs.directive.ts (51%) create mode 100644 docs/src/registry/registry.ts rename {apps/www => docs}/src/registry/schema.ts (64%) create mode 100644 docs/src/registry/styles.ts create mode 100644 docs/src/registry/themes.ts create mode 100644 docs/src/registry/ui.ts create mode 100644 docs/src/schemas/badge.ts rename {apps/www => docs}/src/schemas/prevNextLink.ts (80%) rename {apps/www => docs}/src/schemas/sidebar.ts (83%) rename {apps/www => docs}/src/style/markdown.css (100%) rename {apps/www => docs}/src/tailwind.css (100%) create mode 100644 docs/src/utils/base.ts rename {apps/www => docs}/src/utils/createPathFormatter.ts (61%) create mode 100644 docs/src/utils/format-path.ts rename {apps/www => docs}/src/utils/i18n.ts (64%) rename {apps/www => docs}/src/utils/navigation.ts (60%) create mode 100644 docs/src/utils/path.ts rename {apps/www => docs}/src/utils/routing.ts (57%) rename {apps/www => docs}/src/utils/slugs.ts (57%) rename {apps/www => docs}/src/utils/validateLogoImports.ts (56%) create mode 100644 docs/src/virtual.d.ts create mode 100644 docs/tailwind.config.mjs rename {apps/www => docs}/tsconfig.app.json (100%) rename {apps/www => docs}/tsconfig.json (100%) create mode 100644 eslint.config.js delete mode 100644 nx.json delete mode 100644 packages/cli/.gitignore delete mode 100644 packages/cli/CHANGELOG.md delete mode 100644 packages/cli/README.md delete mode 100644 packages/cli/package.json delete mode 100644 packages/cli/src/commands/add.ts delete mode 100644 packages/cli/src/commands/diff.ts delete mode 100644 packages/cli/src/commands/init.ts delete mode 100644 packages/cli/src/index.ts delete mode 100644 packages/cli/src/utils/get-config.ts delete mode 100644 packages/cli/src/utils/get-package-info.ts delete mode 100644 packages/cli/src/utils/get-package-manager.ts delete mode 100644 packages/cli/src/utils/get-project-info.ts delete mode 100644 packages/cli/src/utils/handle-error.ts delete mode 100644 packages/cli/src/utils/logger.ts delete mode 100644 packages/cli/src/utils/registry/index.ts delete mode 100644 packages/cli/src/utils/transformers/index.ts delete mode 100644 packages/cli/src/utils/transformers/transform-css-vars.ts delete mode 100644 packages/cli/tsconfig.json delete mode 100644 packages/cli/tsup.config.ts delete mode 100644 project.json create mode 100644 src/cli.ts create mode 100644 src/commands/add.ts create mode 100644 src/commands/diff.ts create mode 100644 src/commands/init.ts create mode 100644 src/utils/get-config.ts create mode 100644 src/utils/get-package-info.ts create mode 100644 src/utils/get-package-manager.ts create mode 100644 src/utils/get-project-info.ts create mode 100644 src/utils/handle-error.ts create mode 100644 src/utils/logger.ts create mode 100644 src/utils/registry/index.ts rename {packages/cli/src => src}/utils/registry/schema.ts (89%) rename {packages/cli/src => src}/utils/resolve-import.ts (61%) rename {packages/cli/src => src}/utils/templates.ts (99%) create mode 100644 src/utils/transformers/index.ts create mode 100644 src/utils/transformers/transform-css-vars.ts rename {packages/cli/src => src}/utils/transformers/transform-import.ts (59%) rename {packages/cli/src => src}/utils/transformers/transform-tw-prefix.ts (53%) create mode 100644 test/cli.test.ts delete mode 100644 tsconfig.base.json create mode 100644 tsconfig.json diff --git a/.changeset/README.md b/.changeset/README.md deleted file mode 100644 index e5b6d8d..0000000 --- a/.changeset/README.md +++ /dev/null @@ -1,8 +0,0 @@ -# Changesets - -Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works -with multi-package repos, or single-package repos to help you version and publish your code. You can -find the full documentation for it [in our repository](https://github.com/changesets/changesets) - -We have a quick list of common questions to get you started engaging with this project in -[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) diff --git a/.changeset/config.json b/.changeset/config.json deleted file mode 100644 index 2707074..0000000 --- a/.changeset/config.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "$schema": "https://unpkg.com/@changesets/config@3.0.2/schema.json", - "changelog": [ - "@changesets/changelog-github", - { "repo": "adrian-ub/shadcn-ng" } - ], - "commit": false, - "fixed": [], - "linked": [], - "access": "public", - "baseBranch": "main", - "updateInternalDependencies": "patch", - "ignore": ["www"] -} diff --git a/.github/DISCUSSION_TEMPLATE/blocks-request.yml b/.github/DISCUSSION_TEMPLATE/blocks-request.yml deleted file mode 100644 index d23ca30..0000000 --- a/.github/DISCUSSION_TEMPLATE/blocks-request.yml +++ /dev/null @@ -1,25 +0,0 @@ -title: "[blocks]: " -labels: ["Blocks Request"] -body: - - type: markdown - attributes: - value: | - ### Thanks for taking the time to create a block request! Please search open/closed requests before submitting, as the block or a similar one may have already been requested. - - - type: textarea - id: block-description - attributes: - label: Description - description: Tell us about your block request - placeholder: "A dashboard for an e-commerce website showing sales, orders, and customers..." - validations: - required: true - - - type: input - id: block-example-url - attributes: - label: Example - description: Link to an example of the block - placeholder: ex. https://example.com - validations: - required: false diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..25021fe --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,2 @@ +github: [adrian-ub] +opencollective: adrian-ub diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml deleted file mode 100644 index 0330c21..0000000 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ /dev/null @@ -1,85 +0,0 @@ -name: "Bug report" -description: Report an issue -title: "[bug]: " -labels: ["bug"] -body: - - type: markdown - attributes: - value: | - ### Thanks for taking the time to create a bug report. Please search open/closed issues before submitting, as the issue may have already been reported/addressed. - - - type: markdown - attributes: - value: | - #### If you aren't sure this is a bug or not, please open a discussion instead: - - [Discussions](https://github.com/adrian-ub/shadcn-ng/discussions/new?category=general) - - - type: textarea - id: bug-description - attributes: - label: Describe the bug - description: A clear and concise description of what the bug is. If you intend to submit a PR for this issue, tell us how in the description. Thanks! - placeholder: Bug description - validations: - required: true - - - type: input - id: components-affected - attributes: - label: Affected component/components - description: Which shadcn-ng components are affected? - placeholder: ex. Button, Checkbox... - validations: - required: true - - - type: textarea - id: reproduction - attributes: - label: How to reproduce - description: A step-by-step description of how to reproduce the bug. - placeholder: | - 1. Go to '...' - 2. Click on '....' - 3. See error - validations: - required: true - - - type: input - id: codesandbox-stackblitz - attributes: - label: Codesandbox/StackBlitz link - description: | - A link to a CodeSandbox or StackBlitz that includes a minimal reproduction of the problem. In rare cases when not applicable, you can link to a GitHub repository that we can easily run to recreate the issue. If a report is vague and does not have a reproduction, it will be closed without warning. - - > [!CAUTION] - > If you skip this step, this issue might be **labeled** with `please add a reproduction` and **closed**. - validations: - required: false - - - type: textarea - id: logs - attributes: - label: Logs - description: "Please include browser console and server logs around the time this bug occurred. Optional if provided reproduction. Please try not to insert an image but copy paste the log text." - render: bash - - - type: textarea - id: system-info - attributes: - label: System Info - description: Information about browsers, system or binaries that's relevant. - render: bash - placeholder: System, Binaries, Browsers - validations: - required: true - - - type: checkboxes - id: terms - attributes: - label: Before submitting - description: By submitting this issue, you agree to follow our [Contributing Guidelines](https://github.com/adrian-ub/shadcn-ng/blob/main/CONTRIBUTING.md). - options: - - label: I've made research efforts and searched the documentation - required: true - - label: I've searched for existing issues - required: true diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml deleted file mode 100644 index 4d1e383..0000000 --- a/.github/ISSUE_TEMPLATE/config.yml +++ /dev/null @@ -1,5 +0,0 @@ -blank_issues_enabled: false -contact_links: - - name: Get Help - url: https://github.com/adrian-ub/shadcn-ng/discussions/new?category=general - about: If you can't get something to work the way you expect, open a question in our discussion forums. diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml deleted file mode 100644 index 4e08aa0..0000000 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ /dev/null @@ -1,55 +0,0 @@ -name: "Feature request" -description: Create a feature request for shadcn-ng -title: "[feat]: " -labels: ["area: request"] -body: - - type: markdown - attributes: - value: | - ### Thanks for taking the time to create a feature request! Please search open/closed issues before submitting, as the issue may have already been reported/addressed. - - - type: markdown - attributes: - value: | - #### If you aren't sure this is a bug or not, please open a discussion instead: - - [Discussions](https://github.com/adrian-ub/shadcn-ng/discussions/new?category=general) - - - type: textarea - id: feature-description - attributes: - label: Feature description - description: Tell us about your feature request - placeholder: "I think this feature would be great because..." - value: "Describe your feature request..." - validations: - required: true - - - type: input - id: components-affected - attributes: - label: Affected component/components - description: Is this feature request relevant to any of the already existing components? - placeholder: ex. Button, Checkbox... - validations: - required: false - - - type: textarea - id: context - attributes: - label: Additional Context - description: Add any other context about the feature here. - placeholder: ex. screenshots, Stack Overflow links, forum links, etc. - value: "Additional details here..." - validations: - required: false - - - type: checkboxes - id: terms - attributes: - label: Before submitting - description: By submitting this issue, you agree to follow our [Contributing Guidelines](https://github.com/adrian-ub/shadcn-ng/blob/main/CONTRIBUTING.md). - options: - - label: I've made research efforts and searched the documentation - required: true - - label: I've searched for existing issues and PRs - required: true diff --git a/.github/changeset-version.js b/.github/changeset-version.js deleted file mode 100644 index e1b4cef..0000000 --- a/.github/changeset-version.js +++ /dev/null @@ -1,12 +0,0 @@ -// ORIGINALLY FROM CLOUDFLARE WRANGLER: -// https://github.com/cloudflare/wrangler2/blob/main/.github/changeset-version.js - -import { exec } from "child_process" - -// This script is used by the `release.yml` workflow to update the version of the packages being released. -// The standard step is only to run `changeset version` but this does not update the package-lock.json file. -// So we also run `npm install`, which does this update. -// This is a workaround until this is handled automatically by `changeset version`. -// See https://github.com/changesets/changesets/issues/421. -exec("npx changeset version") -exec("npm install") diff --git a/.github/version-script-beta.js b/.github/version-script-beta.js deleted file mode 100644 index 4dd5ea2..0000000 --- a/.github/version-script-beta.js +++ /dev/null @@ -1,21 +0,0 @@ -// ORIGINALLY FROM CLOUDFLARE WRANGLER: -// https://github.com/cloudflare/wrangler2/blob/main/.github/version-script.js - -import { exec } from "child_process" -import fs from "fs" - -const pkgJsonPath = "packages/cli/package.json" -try { - const pkg = JSON.parse(fs.readFileSync(pkgJsonPath)) - exec("git rev-parse --short HEAD", (err, stdout) => { - if (err) { - console.log(err) - process.exit(1) - } - pkg.version = "0.0.0-beta." + stdout.trim() - fs.writeFileSync(pkgJsonPath, JSON.stringify(pkg, null, "\t") + "\n") - }) -} catch (error) { - console.error(error) - process.exit(1) -} diff --git a/.github/version-script-next.js b/.github/version-script-next.js deleted file mode 100644 index c18a7af..0000000 --- a/.github/version-script-next.js +++ /dev/null @@ -1,21 +0,0 @@ -// ORIGINALLY FROM CLOUDFLARE WRANGLER: -// https://github.com/cloudflare/wrangler2/blob/main/.github/version-script.js - -import { exec } from "child_process" -import fs from "fs" - -const pkgJsonPath = "packages/cli/package.json" -try { - const pkg = JSON.parse(fs.readFileSync(pkgJsonPath)) - exec("git rev-parse --short HEAD", (err, stdout) => { - if (err) { - console.log(err) - process.exit(1) - } - pkg.version = "0.0.0-next." + stdout.trim() - fs.writeFileSync(pkgJsonPath, JSON.stringify(pkg, null, "\t") + "\n") - }) -} catch (error) { - console.error(error) - process.exit(1) -} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..f855cb2 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,53 @@ +name: CI + +on: + push: + branches: + - main + + pull_request: + branches: + - main + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + with: + run_install: false + - uses: actions/setup-node@v4 + with: + node-version: lts/* + cache: pnpm + + - run: pnpm i -g @antfu/ni + - run: nci + - run: nr lint + - run: nr typecheck + + test: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + node: [lts/*] + os: [ubuntu-latest, windows-latest, macos-latest] + fail-fast: false + + steps: + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + with: + run_install: false + - name: Set node ${{ matrix.node }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + cache: pnpm + + - run: pnpm i -g @antfu/ni + - run: nci + - run: nr build + - run: nr test diff --git a/.github/workflows/issue-stale.yml b/.github/workflows/issue-stale.yml deleted file mode 100644 index 02bf8b7..0000000 --- a/.github/workflows/issue-stale.yml +++ /dev/null @@ -1,25 +0,0 @@ -# Adapted from vercel/next.js -name: Issue Stale -on: - workflow_dispatch: - schedule: - # This runs every day 20 minutes before midnight: https://crontab.guru/#40_23_*_*_* - - cron: "40 23 * * *" - -jobs: - stale: - runs-on: ubuntu-latest - if: github.repository_owner == 'adrian-ub' - steps: - - uses: actions/stale@v4 - id: stale-no-repro - name: "Close stale issues with no reproduction" - with: - close-issue-message: "This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you." - days-before-issue-close: 7 - days-before-issue-stale: 15 - stale-pr-label: "stale?" - days-before-pr-close: -1 - days-before-pr-stale: -1 - exempt-issue-labels: "roadmap,next,bug" - operations-per-run: 300 # 1 operation per 100 issues, the rest is to label/comment/close diff --git a/.github/workflows/prerelease-comment.yml b/.github/workflows/prerelease-comment.yml deleted file mode 100644 index 1fad87f..0000000 --- a/.github/workflows/prerelease-comment.yml +++ /dev/null @@ -1,65 +0,0 @@ -# Adapted from create-t3-app. -name: Write Beta Release comment - -on: - workflow_run: - workflows: ["Release - Beta"] - types: - - completed - -jobs: - comment: - if: | - github.repository_owner == 'adrian-ub' && - ${{ github.event.workflow_run.conclusion == 'success' }} - runs-on: ubuntu-latest - name: Write comment to the PR - steps: - - name: "Comment on PR" - uses: actions/github-script@v6 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - const allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({ - owner: context.repo.owner, - repo: context.repo.repo, - run_id: context.payload.workflow_run.id, - }); - - for (const artifact of allArtifacts.data.artifacts) { - // Extract the PR number and package version from the artifact name - const match = /^npm-package-shadcn-ng@(.*?)-pr-(\d+)/.exec(artifact.name); - - if (match) { - require("fs").appendFileSync( - process.env.GITHUB_ENV, - `\nBETA_PACKAGE_VERSION=${match[1]}` + - `\nWORKFLOW_RUN_PR=${match[2]}` + - `\nWORKFLOW_RUN_ID=${context.payload.workflow_run.id}` - ); - break; - } - } - - - name: "Comment on PR with Link" - uses: marocchino/sticky-pull-request-comment@v2 - with: - number: ${{ env.WORKFLOW_RUN_PR }} - message: | - A new prerelease is available for testing: - - ```sh - npx shadcn-ng@${{ env.BETA_PACKAGE_VERSION }} - ``` - - - name: "Remove the autorelease label once published" - uses: actions/github-script@v6 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - github.rest.issues.removeLabel({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: '${{ env.WORKFLOW_RUN_PR }}', - name: '🚀 autorelease', - }); diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml deleted file mode 100644 index d949f95..0000000 --- a/.github/workflows/prerelease.yml +++ /dev/null @@ -1,60 +0,0 @@ -# Adapted from create-t3-app. - -name: Release - Beta - -on: - pull_request: - types: [labeled] - branches: - - main -jobs: - prerelease: - if: | - github.repository_owner == 'adrian-ub' && - contains(github.event.pull_request.labels.*.name, '🚀 autorelease') - name: Build & Publish a beta release to NPM - runs-on: ubuntu-latest - environment: Preview - - steps: - - name: Checkout Repo - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Use PNPM - uses: pnpm/action-setup@v4 - with: - version: 9.0.6 - - - name: Use Node.js 18 - uses: actions/setup-node@v3 - with: - node-version: 18 - cache: "pnpm" - - - name: Install NPM Dependencies - run: pnpm install - - - name: Modify package.json version - run: node .github/version-script-beta.js - - - name: Authenticate to NPM - run: echo "//registry.npmjs.org/:_authToken=$NPM_ACCESS_TOKEN" >> packages/cli/.npmrc - env: - NPM_ACCESS_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }} - - - name: Publish Beta to NPM - run: pnpm pub:beta - - - name: get-npm-version - id: package-version - uses: martinbeentjes/npm-get-version-action@main - with: - path: packages/cli - - - name: Upload packaged artifact - uses: actions/upload-artifact@v2 - with: - name: npm-package-shadcn-ng@${{ steps.package-version.outputs.current-version }}-pr-${{ github.event.number }} # encode the PR number into the artifact name - path: packages/cli/dist/index.js diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ff6c380..ecbe5ce 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,53 +1,33 @@ -# Adapted from create-t3-app. - name: Release +permissions: + id-token: write + contents: write + on: push: - branches: - - main + tags: + - 'v*' jobs: release: - if: ${{ github.repository_owner == 'adrian-ub' }} - name: Create a PR for release workflow runs-on: ubuntu-latest steps: - - name: Checkout Repo - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - - - name: Use PNPM - uses: pnpm/action-setup@v4 - with: - version: 9.0.6 - - - name: Use Node.js 18 - uses: actions/setup-node@v3 + - uses: pnpm/action-setup@v4 + - uses: actions/setup-node@v4 with: - version: 9.0.6 - node-version: 18 - cache: "pnpm" + node-version: lts/* + registry-url: https://registry.npmjs.org/ - - name: Install NPM Dependencies - run: pnpm install - - # - name: Check for errors - # run: pnpm check - - - name: Build the package - run: pnpm build:cli + - run: pnpm dlx changelogithub + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - - name: Create Version PR or Publish to NPM - id: changesets - uses: changesets/action@v1.4.1 - with: - commit: "chore(release): version packages" - title: "chore(release): version packages" - version: node .github/changeset-version.js - publish: npx changeset publish + - run: pnpm install + - run: pnpm publish -r --access public env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }} - NODE_ENV: "production" + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + NPM_CONFIG_PROVENANCE: true diff --git a/.gitignore b/.gitignore index 4f4d87b..95f9ee9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,42 +1,11 @@ -# See http://help.github.com/ignore-files/ for more about ignoring files. - -# compiled output +.cache +.DS_Store +.idea +*.log +*.tgz +coverage dist -tmp -/out-tsc - -# dependencies +lib-cov +logs node_modules - -# IDEs and editors -/.idea -.project -.classpath -.c9/ -*.launch -.settings/ -*.sublime-workspace - -# IDE - VSCode -.vscode/* -!.vscode/settings.json -!.vscode/tasks.json -!.vscode/launch.json -!.vscode/extensions.json - -# misc -/.sass-cache -/connect.lock -/coverage -/libpeerconnection.log -npm-debug.log -yarn-error.log -testem.log -/typings - -# System Files -.DS_Store -Thumbs.db - -.nx/cache -.nx/workspace-data +temp diff --git a/.npmrc b/.npmrc index 19be10e..7969496 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1,2 @@ -strict-peer-dependencies=false -auto-install-peers=true +ignore-workspace-root-check=true +shell-emulator=true diff --git a/.verdaccio/config.yml b/.verdaccio/config.yml deleted file mode 100644 index 0a857ab..0000000 --- a/.verdaccio/config.yml +++ /dev/null @@ -1,28 +0,0 @@ -# path to a directory with all packages -storage: ../tmp/local-registry/storage - -# a list of other known repositories we can talk to -uplinks: - npmjs: - url: https://registry.npmjs.org - maxage: 60m - -packages: - '**': - # give all users (including non-authenticated users) full access - # because it is a local registry - access: $all - publish: $all - unpublish: $all - - # if package is not available locally, proxy requests to npm registry - proxy: npmjs - -# log settings -logs: - type: stdout - format: pretty - level: warn - -publish: - allow_offline: true # set offline to true to allow publish offline diff --git a/.vscode/extensions.json b/.vscode/extensions.json deleted file mode 100644 index bf14b26..0000000 --- a/.vscode/extensions.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "recommendations": [ - - "nrwl.angular-console" - ] -} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..0a477dc --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,38 @@ +{ + // Disable the default formatter, use eslint instead + "prettier.enable": false, + "editor.formatOnSave": false, + + // Auto fix + "editor.codeActionsOnSave": { + "source.fixAll.eslint": "explicit", + "source.organizeImports": "never" + }, + + // Silent the stylistic rules in you IDE, but still auto fix them + "eslint.rules.customizations": [ + { "rule": "style/*", "severity": "off" }, + { "rule": "*-indent", "severity": "off" }, + { "rule": "*-spacing", "severity": "off" }, + { "rule": "*-spaces", "severity": "off" }, + { "rule": "*-order", "severity": "off" }, + { "rule": "*-dangle", "severity": "off" }, + { "rule": "*-newline", "severity": "off" }, + { "rule": "*quotes", "severity": "off" }, + { "rule": "*semi", "severity": "off" } + ], + + // Enable eslint for all supported languages + "eslint.validate": [ + "javascript", + "javascriptreact", + "typescript", + "typescriptreact", + "vue", + "html", + "markdown", + "json", + "jsonc", + "yaml" + ] +} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..5afbffe --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1 @@ +Please refer to https://github.com/adrian-ub/contribute diff --git a/README.md b/README.md index 221f117..d74c579 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,36 @@ # shadcn-ng -Accessible and customizable components that you can copy and paste into your apps. Free. Open Source. **Use this to build your own component library**. +[![npm version][npm-version-src]][npm-version-href] +[![npm downloads][npm-downloads-src]][npm-downloads-href] +[![bundle][bundle-src]][bundle-href] +[![JSDocs][jsdocs-src]][jsdocs-href] +[![License][license-src]][license-href] -![hero](apps/www/public/og.jpg) +Accessible and customizable components that you can copy and paste into your apps. Free. Open Source. Use this to build your own component library. -## Documentation +![hero](docs/public/og.jpg) -Visit http://ui.adrianub.dev/docs to view the documentation. +## Sponsors -## Contributing - -Please read the [contributing guide](/CONTRIBUTING.md). +
+ + + +
## License -Licensed under the [MIT license](https://github.com/adrian-ub/shadcn-ng/blob/main/LICENSE.md). +[MIT](./LICENSE) License © 2024-PRESENT [Adrián UB](https://github.com/adrian-ub) + + + +[npm-version-src]: https://img.shields.io/npm/v/shadcn-ng?style=flat&colorA=080f12&colorB=1fa669 +[npm-version-href]: https://npmjs.com/package/shadcn-ng +[npm-downloads-src]: https://img.shields.io/npm/dm/shadcn-ng?style=flat&colorA=080f12&colorB=1fa669 +[npm-downloads-href]: https://npmjs.com/package/shadcn-ng +[bundle-src]: https://img.shields.io/bundlephobia/minzip/shadcn-ng?style=flat&colorA=080f12&colorB=1fa669&label=minzip +[bundle-href]: https://bundlephobia.com/result?p=shadcn-ng +[license-src]: https://img.shields.io/github/license/adrian-ub/shadcn-ng.svg?style=flat&colorA=080f12&colorB=1fa669 +[license-href]: https://github.com/adrian-ub/shadcn-ng/blob/main/LICENSE +[jsdocs-src]: https://img.shields.io/badge/jsdocs-reference-080f12?style=flat&colorA=080f12&colorB=1fa669 +[jsdocs-href]: https://www.jsdocs.io/package/shadcn-ng diff --git a/apps/www/astro.config.mjs b/apps/www/astro.config.mjs deleted file mode 100644 index bbe4c05..0000000 --- a/apps/www/astro.config.mjs +++ /dev/null @@ -1,118 +0,0 @@ -import { defineConfig } from "astro/config"; -import starlight from "@astrojs/starlight"; -import tailwind from "@astrojs/tailwind"; -import angular from "@analogjs/astro-angular"; -import { siteConfig } from "./src/config/site"; -import theme from "./src/lib/highlighter-theme.json"; - -import AutoImport from "astro-auto-import"; - -// https://astro.build/config -export default defineConfig({ - site: siteConfig.url, - integrations: [ - starlight({ - title: siteConfig.name, - titleDelimiter: "-", - expressiveCode: { - themes: [theme], - styleOverrides: { - textMarkers: { - markHue: "rgba(63,63,70,.5)", - }, - }, - }, - logo: { src: "./src/assets/logo.svg" }, - favicon: "/favicon.ico", - social: { - github: siteConfig.links.github, - "x.com": siteConfig.links.twitter, - }, - sidebar: [ - { - label: "Getting Started", - items: [ - { - label: "Introduction", - slug: "docs", - }, - { - label: "Installation", - slug: "docs/installation", - }, - { - label: "components.json", - slug: "docs/components-json", - }, - { - label: "Theming", - slug: "docs/theming", - }, - { - label: "CLI", - slug: "docs/cli", - }, - { - label: "Typography", - slug: "docs/components/typography", - }, - ], - }, - { - label: "Components", - autogenerate: { - directory: "docs/components", - }, - }, - ], - customCss: ["./src/fonts/font-face.css", "./src/tailwind.css"], - components: { - Header: "./src/components/starlight/header/Header.astro", - SiteTitle: "./src/components/starlight/SiteTitle.astro", - SocialIcons: "./src/components/starlight/SocialIcons.astro", - Search: "./src/components/starlight/Search.astro", - Hero: "./src/components/starlight/Hero.astro", - ContentPanel: "./src/components/starlight/ContentPanel.astro", - PageTitle: "./src/components/starlight/PageTitle.astro", - MarkdownContent: "./src/components/starlight/MarkdownContent.astro", - TwoColumnContent: "./src/components/starlight/TwoColumnContent.astro", - Sidebar: "./src/components/starlight/Sidebar.astro", - Pagination: "./src/components/starlight/Pagination.astro", - MobileMenuToggle: "./src/components/starlight/MobileMenuToggle.astro", - PageFrame: "./src/components/starlight/PageFrame.astro", - PageSidebar: "./src/components/starlight/PageSidebar.astro", - }, - }), - AutoImport({ - imports: [ - "@/components/ComponentPreview.astro", - "@/components/ComponentSource.astro", - ], - }), - tailwind(), - angular(), - ], - redirects: { - '/docs/components': '/docs/components/accordion', - }, - vite: { - optimizeDeps: { - include: [ - "@radix-ng/primitives", - "@angular/common", - "@angular/core", - "@angular/cdk", - "@ng-icons/core", - "@ng-icons/lucide", - ], - }, - ssr: { - noExternal: [ - "@radix-ng/primitives", - "@angular/cdk", - "@ng-icons/core", - "@ng-icons/lucide", - ], - }, - }, -}); diff --git a/apps/www/src/__registry__/examples.ts b/apps/www/src/__registry__/examples.ts deleted file mode 100644 index 1ba17b8..0000000 --- a/apps/www/src/__registry__/examples.ts +++ /dev/null @@ -1,28 +0,0 @@ -export const examples: RecordInvoice | -Status | -Method | -Amount | -
---|---|---|---|
- {{ invoice.invoice }} - | -- {{ invoice.paymentStatus }} - | -- {{ invoice.paymentMethod }} - | -- {{ invoice.totalAmount }} - | -
Total | -$2,500.00 | -
Enter your email address.
- `, -}) -export class TypographyMutedDefault { } - -export default TypographyMutedDefault; diff --git a/apps/www/src/registry/default/example/typography-small.ts b/apps/www/src/registry/default/example/typography-small.ts deleted file mode 100644 index e45a32f..0000000 --- a/apps/www/src/registry/default/example/typography-small.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Component } from "@angular/core"; - -@Component({ - standalone: true, - selector: "typography-small-default", - template: ` - Email address - `, -}) -export class TypographySmallDefault { } - -export default TypographySmallDefault; diff --git a/apps/www/src/registry/default/ui/accordion.directive.ts b/apps/www/src/registry/default/ui/accordion.directive.ts deleted file mode 100644 index 7d73b55..0000000 --- a/apps/www/src/registry/default/ui/accordion.directive.ts +++ /dev/null @@ -1,85 +0,0 @@ -import { Component, computed, Directive, input } from '@angular/core'; -import type { ClassValue } from 'clsx'; - -import { NgIconComponent, provideIcons } from "@ng-icons/core"; -import { lucideChevronDown } from "@ng-icons/lucide"; - -import { - RdxAccordionContentDirective, - RdxAccordionHeaderDirective, - RdxAccordionItemDirective, - RdxAccordionRootDirective, - RdxAccordionTriggerDirective -} from '@radix-ng/primitives/accordion'; -import { cn } from '@/lib/utils'; - - -@Directive({ - standalone: true, - selector: '[ubAccordion]', - hostDirectives: [RdxAccordionRootDirective], -}) -export class UbAccordionDirective { } - -@Directive({ - standalone: true, - selector: '[ubAccordionItem]', - hostDirectives: [ - { - directive: RdxAccordionItemDirective, - inputs: ['disabled', 'value'] - } - ], - host: { - '[class]': 'computedClass()' - } -}) -export class UbAccordionItemDirective { - class = inputInvoice | -Status | -Method | -Amount | -
---|---|---|---|
- {{ invoice.invoice }} - | -- {{ invoice.paymentStatus }} - | -- {{ invoice.paymentMethod }} - | -- {{ invoice.totalAmount }} - | -
Total | -$2,500.00 | -
Enter your email address.
- `, -}) -export class TypographyMutedNewYork { } - -export default TypographyMutedNewYork; diff --git a/apps/www/src/registry/new-york/example/typography-small.ts b/apps/www/src/registry/new-york/example/typography-small.ts deleted file mode 100644 index c9fc157..0000000 --- a/apps/www/src/registry/new-york/example/typography-small.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Component } from "@angular/core"; - -@Component({ - standalone: true, - selector: "typography-small-new-york", - template: ` - Email address - `, -}) -export class TypographySmallNewYork { } - -export default TypographySmallNewYork; diff --git a/apps/www/src/registry/new-york/ui/accordion.directive.ts b/apps/www/src/registry/new-york/ui/accordion.directive.ts deleted file mode 100644 index 3ea48ef..0000000 --- a/apps/www/src/registry/new-york/ui/accordion.directive.ts +++ /dev/null @@ -1,85 +0,0 @@ -import { Component, computed, Directive, input } from '@angular/core'; -import type { ClassValue } from 'clsx'; - -import { NgIconComponent, provideIcons } from "@ng-icons/core"; -import { lucideChevronDown } from "@ng-icons/lucide"; - -import { - RdxAccordionContentDirective, - RdxAccordionHeaderDirective, - RdxAccordionItemDirective, - RdxAccordionRootDirective, - RdxAccordionTriggerDirective -} from '@radix-ng/primitives/accordion'; -import { cn } from '@/lib/utils'; - - -@Directive({ - standalone: true, - selector: '[ubAccordion]', - hostDirectives: [RdxAccordionRootDirective], -}) -export class UbAccordionDirective { } - -@Directive({ - standalone: true, - selector: '[ubAccordionItem]', - hostDirectives: [ - { - directive: RdxAccordionItemDirective, - inputs: ['disabled', 'value'] - } - ], - host: { - '[class]': 'computedClass()' - } -}) -export class UbAccordionItemDirective { - class = input