├── .eslintrc.js
├── .github
└── workflows
│ └── publish.yml
├── .gitignore
├── .npmrc
├── .vscode
└── settings.json
├── README.md
├── apps
└── web
│ ├── .eslintrc.js
│ ├── README.md
│ ├── app
│ ├── favicon.ico
│ ├── globals.css
│ ├── layout.tsx
│ └── page.tsx
│ ├── next-env.d.ts
│ ├── next.config.js
│ ├── package.json
│ ├── postcss.config.js
│ ├── public
│ ├── circles.svg
│ ├── next.svg
│ ├── turborepo.svg
│ └── vercel.svg
│ ├── tailwind.config.ts
│ └── tsconfig.json
├── package.json
├── packages
├── eslint-config
│ ├── README.md
│ ├── library.js
│ ├── next.js
│ ├── package.json
│ └── react-internal.js
├── generated
│ ├── accordion
│ │ ├── build.css
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── accordion.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── accordion.tsx
│ │ ├── styles
│ │ │ └── accordion.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── alert-dialog
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── alert-dialog.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── alert-dialog.tsx
│ │ ├── styles
│ │ │ └── alert-dialog.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── alert
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── alert.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── alert.tsx
│ │ ├── styles
│ │ │ └── alert.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── aspect-ratio
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── aspect-ratio.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── aspect-ratio.tsx
│ │ ├── styles
│ │ │ └── aspect-ratio.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── avatar
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── avatar.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── avatar.tsx
│ │ ├── styles
│ │ │ └── avatar.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── badge
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── badge.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── badge.tsx
│ │ ├── styles
│ │ │ └── badge.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── breadcrumb
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── breadcrumb.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── breadcrumb.tsx
│ │ ├── styles
│ │ │ └── breadcrumb.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── button
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── button.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── button.tsx
│ │ ├── styles
│ │ │ └── button.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── calendar
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── calendar.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── calendar.tsx
│ │ ├── styles
│ │ │ └── calendar.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── card
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── card.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── card.tsx
│ │ ├── styles
│ │ │ └── card.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── carousel
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── carousel.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── carousel.tsx
│ │ ├── styles
│ │ │ └── carousel.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── checkbox
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── checkbox.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── checkbox.tsx
│ │ ├── styles
│ │ │ └── checkbox.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── collapsible
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── collapsible.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── collapsible.tsx
│ │ ├── styles
│ │ │ └── collapsible.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── command
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── command.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── command.tsx
│ │ ├── styles
│ │ │ └── command.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── context-menu
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── context-menu.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── context-menu.tsx
│ │ ├── styles
│ │ │ └── context-menu.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── dialog
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── dialog.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── dialog.tsx
│ │ ├── styles
│ │ │ └── dialog.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── drawer
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── drawer.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── drawer.tsx
│ │ ├── styles
│ │ │ └── drawer.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── dropdown-menu
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── dropdown-menu.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── dropdown-menu.tsx
│ │ ├── styles
│ │ │ └── dropdown-menu.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── form
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── form.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── form.tsx
│ │ ├── styles
│ │ │ └── form.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── hover-card
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── hover-card.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── hover-card.tsx
│ │ ├── styles
│ │ │ └── hover-card.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── input-otp
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── input-otp.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── input-otp.tsx
│ │ ├── styles
│ │ │ └── input-otp.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── input
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── input.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── input.tsx
│ │ ├── styles
│ │ │ └── input.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── label
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── label.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── label.tsx
│ │ ├── styles
│ │ │ └── label.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── menubar
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── menubar.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── menubar.tsx
│ │ ├── styles
│ │ │ └── menubar.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── navigation-menu
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── navigation-menu.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── navigation-menu.tsx
│ │ ├── styles
│ │ │ └── navigation-menu.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── pagination
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── pagination.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── pagination.tsx
│ │ ├── styles
│ │ │ └── pagination.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── popover
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── popover.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── popover.tsx
│ │ ├── styles
│ │ │ └── popover.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── progress
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── progress.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── progress.tsx
│ │ ├── styles
│ │ │ └── progress.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── radio-group
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── radio-group.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── radio-group.tsx
│ │ ├── styles
│ │ │ └── radio-group.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── resizable
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── resizable.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── resizable.tsx
│ │ ├── styles
│ │ │ └── resizable.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── scroll-area
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── scroll-area.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── scroll-area.tsx
│ │ ├── styles
│ │ │ └── scroll-area.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── select
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── select.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── select.tsx
│ │ ├── styles
│ │ │ └── select.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── separator
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── separator.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── separator.tsx
│ │ ├── styles
│ │ │ └── separator.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── sheet
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── sheet.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── sheet.tsx
│ │ ├── styles
│ │ │ └── sheet.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── skeleton
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── skeleton.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── skeleton.tsx
│ │ ├── styles
│ │ │ └── skeleton.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── slider
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── slider.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── slider.tsx
│ │ ├── styles
│ │ │ └── slider.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── sonner
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── sonner.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── sonner.tsx
│ │ ├── styles
│ │ │ └── sonner.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── switch
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── switch.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── switch.tsx
│ │ ├── styles
│ │ │ └── switch.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── table
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── table.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── table.tsx
│ │ ├── styles
│ │ │ └── table.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── tabs
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── tabs.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── tabs.tsx
│ │ ├── styles
│ │ │ └── tabs.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── textarea
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── textarea.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── textarea.tsx
│ │ ├── styles
│ │ │ └── textarea.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── toast
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ ├── toast.tsx
│ │ │ │ ├── toaster.tsx
│ │ │ │ ├── use-toast.ts
│ │ │ │ └── use-toast.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ ├── toast.tsx
│ │ │ │ ├── toaster.tsx
│ │ │ │ ├── use-toast.ts
│ │ │ │ └── use-toast.tsx
│ │ ├── styles
│ │ │ └── toast.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── toggle-group
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── toggle-group.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── toggle-group.tsx
│ │ ├── styles
│ │ │ └── toggle-group.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ ├── toggle
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ │ ├── default
│ │ │ │ └── toggle.tsx
│ │ │ ├── lib.ts
│ │ │ └── new-york
│ │ │ │ └── toggle.tsx
│ │ ├── styles
│ │ │ └── toggle.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
│ └── tooltip
│ │ ├── package.json
│ │ ├── postcss.config.js
│ │ ├── src
│ │ ├── default
│ │ │ └── tooltip.tsx
│ │ ├── lib.ts
│ │ └── new-york
│ │ │ └── tooltip.tsx
│ │ ├── styles
│ │ └── tooltip.css
│ │ ├── tailwind.config.js
│ │ └── tsconfig.json
├── generator
│ ├── .eslintrc.js
│ ├── package.json
│ ├── packageVersionCache.json
│ ├── postcss.config.js
│ ├── src
│ │ ├── index.ts
│ │ ├── registry.ts
│ │ ├── schemas.ts
│ │ ├── template.ts
│ │ └── transform.ts
│ ├── tailwind.config.js
│ ├── tsconfig.json
│ └── tsconfig.lint.json
└── typescript-config
│ ├── base.json
│ ├── nextjs.json
│ ├── package.json
│ └── react-library.json
├── pnpm-lock.yaml
├── pnpm-workspace.yaml
├── tsconfig.json
└── turbo.json
/.eslintrc.js:
--------------------------------------------------------------------------------
1 | // This configuration only applies to the package manager root.
2 | /** @type {import("eslint").Linter.Config} */
3 | module.exports = {
4 | ignorePatterns: ["apps/**", "packages/**"],
5 | extends: ["@repo/eslint-config/library.js"],
6 | parser: "@typescript-eslint/parser",
7 | parserOptions: {
8 | project: true,
9 | },
10 | };
11 |
--------------------------------------------------------------------------------
/.github/workflows/publish.yml:
--------------------------------------------------------------------------------
1 | name: publish
2 |
3 | on:
4 | workflow_dispatch:
5 |
6 | jobs:
7 | publish:
8 | name: publish
9 | runs-on: ubuntu-latest
10 |
11 | steps:
12 | - name: Checkout
13 | uses: actions/checkout@v4
14 | with:
15 | fetch-depth: 0
16 |
17 | - name: Install Node.js
18 | uses: actions/setup-node@v4
19 | with:
20 | always-auth: true
21 | node-version: 20
22 | registry-url: "https://registry.npmjs.org"
23 | env:
24 | NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
25 | NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
26 |
27 | - uses: pnpm/action-setup@v3
28 | name: Install pnpm
29 | with:
30 | version: 8
31 | run_install: false
32 |
33 | - name: Get pnpm store directory
34 | shell: bash
35 | run: |
36 | echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
37 |
38 | - uses: actions/cache@v4
39 | name: Setup pnpm cache
40 | with:
41 | path: ${{ env.STORE_PATH }}
42 | key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
43 | restore-keys: |
44 | ${{ runner.os }}-pnpm-store-
45 |
46 | - name: Setup turbo cache
47 | uses: actions/cache@v4
48 | with:
49 | path: .turbo
50 | key: ${{ runner.os }}-turbo-${{ github.sha }}
51 | restore-keys: |
52 | ${{ runner.os }}-turbo-
53 |
54 | - name: Install dependencies
55 | run: pnpm install
56 |
57 | - name: Generate components
58 | run: pnpm --filter=@repo/generator generate
59 |
60 | - name: Publish
61 | run: pnpm publish-package --access public
62 | env:
63 | NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
64 | NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
65 |
66 | - name: Commit & Push changes
67 | uses: actions-js/push@master
68 | with:
69 | github_token: ${{ secrets.GITHUB_TOKEN }}
70 | force: true
71 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # Dependencies
4 | node_modules
5 | .pnp
6 | .pnp.js
7 |
8 | # Local env files
9 | .env
10 | .env.local
11 | .env.development.local
12 | .env.test.local
13 | .env.production.local
14 |
15 | # Testing
16 | coverage
17 |
18 | # Turbo
19 | .turbo
20 |
21 | # Vercel
22 | .vercel
23 |
24 | # Build Outputs
25 | .next/
26 | out/
27 | build
28 | dist
29 |
30 |
31 | # Debug
32 | npm-debug.log*
33 | yarn-debug.log*
34 | yarn-error.log*
35 |
36 | # Misc
37 | .DS_Store
38 | *.pem
39 |
--------------------------------------------------------------------------------
/.npmrc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/teovillanueva/shadcn-ui-react/7e40c22609b1f1eaaf35b53b7752ae72abeb8069/.npmrc
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "eslint.workingDirectories": [
3 | {
4 | "mode": "auto"
5 | }
6 | ]
7 | }
8 |
--------------------------------------------------------------------------------
/apps/web/.eslintrc.js:
--------------------------------------------------------------------------------
1 | /** @type {import("eslint").Linter.Config} */
2 | module.exports = {
3 | root: true,
4 | extends: ["@repo/eslint-config/next.js"],
5 | parser: "@typescript-eslint/parser",
6 | parserOptions: {
7 | project: true,
8 | },
9 | };
10 |
--------------------------------------------------------------------------------
/apps/web/README.md:
--------------------------------------------------------------------------------
1 | ## Getting Started
2 |
3 | First, run the development server:
4 |
5 | ```bash
6 | yarn dev
7 | ```
8 |
9 | Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
10 |
11 | You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
12 |
13 | To create [API routes](https://nextjs.org/docs/app/building-your-application/routing/router-handlers) add an `api/` directory to the `app/` directory with a `route.ts` file. For individual endpoints, create a subfolder in the `api` directory, like `api/hello/route.ts` would map to [http://localhost:3000/api/hello](http://localhost:3000/api/hello).
14 |
15 | ## Learn More
16 |
17 | To learn more about Next.js, take a look at the following resources:
18 |
19 | - [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
20 | - [Learn Next.js](https://nextjs.org/learn/foundations/about-nextjs) - an interactive Next.js tutorial.
21 |
22 | You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
23 |
24 | ## Deploy on Vercel
25 |
26 | The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_source=github.com&utm_medium=referral&utm_campaign=turborepo-readme) from the creators of Next.js.
27 |
28 | Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
29 |
--------------------------------------------------------------------------------
/apps/web/app/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/teovillanueva/shadcn-ui-react/7e40c22609b1f1eaaf35b53b7752ae72abeb8069/apps/web/app/favicon.ico
--------------------------------------------------------------------------------
/apps/web/app/globals.css:
--------------------------------------------------------------------------------
1 | @import "../node_modules/@teovilla/shadcn-ui-react-button/styles/button.css";
2 |
3 | @tailwind base;
4 | @tailwind components;
5 | @tailwind utilities;
6 |
7 | @layer base {
8 | :root {
9 | --background: 0 0% 100%;
10 | --foreground: 222.2 47.4% 11.2%;
11 |
12 | --muted: 210 40% 96.1%;
13 | --muted-foreground: 215.4 16.3% 46.9%;
14 |
15 | --popover: 0 0% 100%;
16 | --popover-foreground: 222.2 47.4% 11.2%;
17 |
18 | --border: 214.3 31.8% 91.4%;
19 | --input: 214.3 31.8% 91.4%;
20 |
21 | --card: 0 0% 100%;
22 | --card-foreground: 222.2 47.4% 11.2%;
23 |
24 | --primary: 222.2 47.4% 11.2%;
25 | --primary-foreground: 210 40% 98%;
26 |
27 | --secondary: 210 40% 96.1%;
28 | --secondary-foreground: 222.2 47.4% 11.2%;
29 |
30 | --accent: 210 40% 96.1%;
31 | --accent-foreground: 222.2 47.4% 11.2%;
32 |
33 | --destructive: 0 100% 50%;
34 | --destructive-foreground: 210 40% 98%;
35 |
36 | --ring: 215 20.2% 65.1%;
37 |
38 | --radius: 0.5rem;
39 | }
40 |
41 | .dark {
42 | --background: 224 71% 4%;
43 | --foreground: 213 31% 91%;
44 |
45 | --muted: 223 47% 11%;
46 | --muted-foreground: 215.4 16.3% 56.9%;
47 |
48 | --accent: 216 34% 17%;
49 | --accent-foreground: 210 40% 98%;
50 |
51 | --popover: 224 71% 4%;
52 | --popover-foreground: 215 20.2% 65.1%;
53 |
54 | --border: 216 34% 17%;
55 | --input: 216 34% 17%;
56 |
57 | --card: 224 71% 4%;
58 | --card-foreground: 213 31% 91%;
59 |
60 | --primary: 210 40% 98%;
61 | --primary-foreground: 222.2 47.4% 1.2%;
62 |
63 | --secondary: 222.2 47.4% 11.2%;
64 | --secondary-foreground: 210 40% 98%;
65 |
66 | --destructive: 0 63% 31%;
67 | --destructive-foreground: 210 40% 98%;
68 |
69 | --ring: 216 34% 17%;
70 |
71 | --radius: 0.5rem;
72 | }
73 | }
74 |
75 | @layer base {
76 | * {
77 | @apply border-border;
78 | }
79 | body {
80 | @apply bg-background text-foreground;
81 | font-feature-settings:
82 | "rlig" 1,
83 | "calt" 1;
84 | }
85 | }
86 |
--------------------------------------------------------------------------------
/apps/web/app/layout.tsx:
--------------------------------------------------------------------------------
1 | import "./globals.css";
2 | import type { Metadata } from "next";
3 | import { Inter as FontSans } from "next/font/google";
4 |
5 | const fontSans = FontSans({
6 | subsets: ["latin"],
7 | variable: "--font-sans",
8 | weight: ["400"],
9 | });
10 |
11 | export const metadata: Metadata = {
12 | title: "Create Turborepo",
13 | description: "Generated by create turbo",
14 | };
15 |
16 | export default function RootLayout({
17 | children,
18 | }: {
19 | children: React.ReactNode;
20 | }): JSX.Element {
21 | return (
22 |
23 |
{children}
24 |
25 | );
26 | }
27 |
--------------------------------------------------------------------------------
/apps/web/app/page.tsx:
--------------------------------------------------------------------------------
1 | import { Button } from "@teovilla/shadcn-ui-react-button/new-york/button";
2 |
3 | export default function Page() {
4 | return ;
5 | }
6 |
--------------------------------------------------------------------------------
/apps/web/next-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 |
4 | // NOTE: This file should not be edited
5 | // see https://nextjs.org/docs/basic-features/typescript for more information.
6 |
--------------------------------------------------------------------------------
/apps/web/next.config.js:
--------------------------------------------------------------------------------
1 | /** @type {import('next').NextConfig} */
2 | module.exports = {};
3 |
--------------------------------------------------------------------------------
/apps/web/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "web",
3 | "version": "1.0.0",
4 | "private": true,
5 | "scripts": {
6 | "dev": "next dev",
7 | "build": "next build",
8 | "start": "next start",
9 | "lint": "eslint . --max-warnings 0"
10 | },
11 | "dependencies": {
12 | "@teovilla/shadcn-ui-react-button": "workspace:*",
13 | "next": "^14.1.1",
14 | "react": "^18.2.0",
15 | "react-dom": "^18.2.0"
16 | },
17 | "devDependencies": {
18 | "@next/eslint-plugin-next": "^14.1.1",
19 | "@repo/eslint-config": "workspace:*",
20 | "@repo/typescript-config": "workspace:*",
21 | "@types/eslint": "^8.56.5",
22 | "@types/node": "^20.11.24",
23 | "@types/react": "^18.2.61",
24 | "@types/react-dom": "^18.2.19",
25 | "postcss": "^8.4.38",
26 | "autoprefixer": "^10.4.19",
27 | "tailwindcss-animate": "^1.0.7",
28 | "tailwindcss": "^3.4.3",
29 | "eslint": "^8.57.0",
30 | "typescript": "^5.3.3"
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/apps/web/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | autoprefixer: {},
5 | },
6 | };
7 |
--------------------------------------------------------------------------------
/apps/web/public/circles.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/apps/web/public/next.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/apps/web/public/vercel.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/apps/web/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "@repo/typescript-config/nextjs.json",
3 | "compilerOptions": {
4 | "plugins": [
5 | {
6 | "name": "next"
7 | }
8 | ]
9 | },
10 | "include": [
11 | "next-env.d.ts",
12 | "next.config.js",
13 | "**/*.ts",
14 | "**/*.tsx",
15 | ".next/types/**/*.ts"
16 | ],
17 | "exclude": ["node_modules"]
18 | }
19 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "shadcn-ui-react",
3 | "version": "1.0.2",
4 | "private": true,
5 | "scripts": {
6 | "build": "turbo build --cache-dir=.turbo",
7 | "dev": "turbo dev",
8 | "publish-package": "turbo publish-package --cache-dir=.turbo --filter=[HEAD^1] --",
9 | "lint": "turbo lint",
10 | "format": "prettier --write \"**/*.{ts,tsx,md}\""
11 | },
12 | "devDependencies": {
13 | "@repo/eslint-config": "workspace:*",
14 | "@repo/typescript-config": "workspace:*",
15 | "prettier": "^3.2.5",
16 | "turbo": "latest"
17 | },
18 | "packageManager": "pnpm@8.9.0",
19 | "engines": {
20 | "node": ">=18"
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/packages/eslint-config/README.md:
--------------------------------------------------------------------------------
1 | # `@turbo/eslint-config`
2 |
3 | Collection of internal eslint configurations.
4 |
--------------------------------------------------------------------------------
/packages/eslint-config/library.js:
--------------------------------------------------------------------------------
1 | const { resolve } = require("node:path");
2 |
3 | const project = resolve(process.cwd(), "tsconfig.json");
4 |
5 | /** @type {import("eslint").Linter.Config} */
6 | module.exports = {
7 | extends: ["eslint:recommended", "prettier", "eslint-config-turbo"],
8 | plugins: ["only-warn"],
9 | globals: {
10 | React: true,
11 | JSX: true,
12 | },
13 | env: {
14 | node: true,
15 | },
16 | settings: {
17 | "import/resolver": {
18 | typescript: {
19 | project,
20 | },
21 | },
22 | },
23 | ignorePatterns: [
24 | // Ignore dotfiles
25 | ".*.js",
26 | "node_modules/",
27 | "dist/",
28 | ],
29 | overrides: [
30 | {
31 | files: ["*.js?(x)", "*.ts?(x)"],
32 | },
33 | ],
34 | };
35 |
--------------------------------------------------------------------------------
/packages/eslint-config/next.js:
--------------------------------------------------------------------------------
1 | const { resolve } = require("node:path");
2 |
3 | const project = resolve(process.cwd(), "tsconfig.json");
4 |
5 | /** @type {import("eslint").Linter.Config} */
6 | module.exports = {
7 | extends: [
8 | "eslint:recommended",
9 | "prettier",
10 | require.resolve("@vercel/style-guide/eslint/next"),
11 | "eslint-config-turbo",
12 | ],
13 | globals: {
14 | React: true,
15 | JSX: true,
16 | },
17 | env: {
18 | node: true,
19 | browser: true,
20 | },
21 | plugins: ["only-warn"],
22 | settings: {
23 | "import/resolver": {
24 | typescript: {
25 | project,
26 | },
27 | },
28 | },
29 | ignorePatterns: [
30 | // Ignore dotfiles
31 | ".*.js",
32 | "node_modules/",
33 | ],
34 | overrides: [{ files: ["*.js?(x)", "*.ts?(x)"] }],
35 | };
36 |
--------------------------------------------------------------------------------
/packages/eslint-config/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@repo/eslint-config",
3 | "version": "0.0.0",
4 | "private": true,
5 | "files": [
6 | "library.js",
7 | "react-internal.js"
8 | ],
9 | "devDependencies": {
10 | "@vercel/style-guide": "^5.2.0",
11 | "eslint-config-turbo": "^1.12.4",
12 | "eslint-config-prettier": "^9.1.0",
13 | "eslint-plugin-only-warn": "^1.1.0",
14 | "@typescript-eslint/parser": "^7.1.0",
15 | "@typescript-eslint/eslint-plugin": "^7.1.0",
16 | "typescript": "^5.3.3"
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/packages/eslint-config/react-internal.js:
--------------------------------------------------------------------------------
1 | const { resolve } = require("node:path");
2 |
3 | const project = resolve(process.cwd(), "tsconfig.json");
4 |
5 | /*
6 | * This is a custom ESLint configuration for use with
7 | * internal (bundled by their consumer) libraries
8 | * that utilize React.
9 | *
10 | * This config extends the Vercel Engineering Style Guide.
11 | * For more information, see https://github.com/vercel/style-guide
12 | *
13 | */
14 |
15 | /** @type {import("eslint").Linter.Config} */
16 | module.exports = {
17 | extends: ["eslint:recommended", "prettier", "eslint-config-turbo"],
18 | plugins: ["only-warn"],
19 | globals: {
20 | React: true,
21 | JSX: true,
22 | },
23 | env: {
24 | browser: true,
25 | },
26 | settings: {
27 | "import/resolver": {
28 | typescript: {
29 | project,
30 | },
31 | },
32 | },
33 | ignorePatterns: [
34 | // Ignore dotfiles
35 | ".*.js",
36 | "node_modules/",
37 | "dist/",
38 | ],
39 | overrides: [
40 | // Force ESLint to detect .tsx files
41 | { files: ["*.js?(x)", "*.ts?(x)"] },
42 | ],
43 | };
44 |
--------------------------------------------------------------------------------
/packages/generated/accordion/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-accordion",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/accordion.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./accordion.css": "./styles/accordion.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-accordion": "1.1.2",
16 | "@radix-ui/react-icons": "1.3.0",
17 | "lucide-react": "0.373.0",
18 | "class-variance-authority": "0.7.0",
19 | "tailwind-merge": "2.3.0",
20 | "clsx": "2.1.1",
21 | "react": "^18.2.0",
22 | "react-dom": "^18.2.0"
23 | },
24 | "devDependencies": {
25 | "tailwindcss": "3.4.3",
26 | "tailwindcss-animate": "^1.0.7",
27 | "postcss": "8.4.38",
28 | "autoprefixer": "10.4.19",
29 | "@types/react": "^18.2.61",
30 | "@types/react-dom": "^18.2.19",
31 | "typescript": "^5.3.3"
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/packages/generated/accordion/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/accordion/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/accordion/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/alert-dialog/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-alert-dialog",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/alert-dialog.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./alert-dialog.css": "./styles/alert-dialog.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-alert-dialog": "1.0.5",
16 | "@radix-ui/react-slot": "1.0.2",
17 | "@radix-ui/react-icons": "1.3.0",
18 | "lucide-react": "0.373.0",
19 | "class-variance-authority": "0.7.0",
20 | "tailwind-merge": "2.3.0",
21 | "clsx": "2.1.1",
22 | "react": "^18.2.0",
23 | "react-dom": "^18.2.0",
24 | "@teovilla/shadcn-ui-react-button": "workspace:*"
25 | },
26 | "devDependencies": {
27 | "tailwindcss": "3.4.3",
28 | "tailwindcss-animate": "^1.0.7",
29 | "postcss": "8.4.38",
30 | "autoprefixer": "10.4.19",
31 | "@types/react": "^18.2.61",
32 | "@types/react-dom": "^18.2.19",
33 | "typescript": "^5.3.3"
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/packages/generated/alert-dialog/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/alert-dialog/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/alert-dialog/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/alert/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-alert",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/alert.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./alert.css": "./styles/alert.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-icons": "1.3.0",
16 | "lucide-react": "0.373.0",
17 | "class-variance-authority": "0.7.0",
18 | "tailwind-merge": "2.3.0",
19 | "clsx": "2.1.1",
20 | "react": "^18.2.0",
21 | "react-dom": "^18.2.0"
22 | },
23 | "devDependencies": {
24 | "tailwindcss": "3.4.3",
25 | "tailwindcss-animate": "^1.0.7",
26 | "postcss": "8.4.38",
27 | "autoprefixer": "10.4.19",
28 | "@types/react": "^18.2.61",
29 | "@types/react-dom": "^18.2.19",
30 | "typescript": "^5.3.3"
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/packages/generated/alert/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/alert/src/default/alert.tsx:
--------------------------------------------------------------------------------
1 | import * as React from "react"
2 | import { cva, type VariantProps } from "class-variance-authority"
3 |
4 | import { cn } from "../lib"
5 |
6 | const alertVariants = cva(
7 | "relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
8 | {
9 | variants: {
10 | variant: {
11 | default: "bg-background text-foreground",
12 | destructive:
13 | "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",
14 | },
15 | },
16 | defaultVariants: {
17 | variant: "default",
18 | },
19 | }
20 | )
21 |
22 | const Alert = React.forwardRef<
23 | HTMLDivElement,
24 | React.HTMLAttributes & VariantProps
25 | >(({ className, variant, ...props }, ref) => (
26 |
32 | ))
33 | Alert.displayName = "Alert"
34 |
35 | const AlertTitle = React.forwardRef<
36 | HTMLParagraphElement,
37 | React.HTMLAttributes
38 | >(({ className, ...props }, ref) => (
39 |
44 | ))
45 | AlertTitle.displayName = "AlertTitle"
46 |
47 | const AlertDescription = React.forwardRef<
48 | HTMLParagraphElement,
49 | React.HTMLAttributes
50 | >(({ className, ...props }, ref) => (
51 |
56 | ))
57 | AlertDescription.displayName = "AlertDescription"
58 |
59 | export { Alert, AlertTitle, AlertDescription }
60 |
--------------------------------------------------------------------------------
/packages/generated/alert/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/alert/src/new-york/alert.tsx:
--------------------------------------------------------------------------------
1 | import * as React from "react"
2 | import { cva, type VariantProps } from "class-variance-authority"
3 |
4 | import { cn } from "../lib"
5 |
6 | const alertVariants = cva(
7 | "relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",
8 | {
9 | variants: {
10 | variant: {
11 | default: "bg-background text-foreground",
12 | destructive:
13 | "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",
14 | },
15 | },
16 | defaultVariants: {
17 | variant: "default",
18 | },
19 | }
20 | )
21 |
22 | const Alert = React.forwardRef<
23 | HTMLDivElement,
24 | React.HTMLAttributes & VariantProps
25 | >(({ className, variant, ...props }, ref) => (
26 |
32 | ))
33 | Alert.displayName = "Alert"
34 |
35 | const AlertTitle = React.forwardRef<
36 | HTMLParagraphElement,
37 | React.HTMLAttributes
38 | >(({ className, ...props }, ref) => (
39 |
44 | ))
45 | AlertTitle.displayName = "AlertTitle"
46 |
47 | const AlertDescription = React.forwardRef<
48 | HTMLParagraphElement,
49 | React.HTMLAttributes
50 | >(({ className, ...props }, ref) => (
51 |
56 | ))
57 | AlertDescription.displayName = "AlertDescription"
58 |
59 | export { Alert, AlertTitle, AlertDescription }
60 |
--------------------------------------------------------------------------------
/packages/generated/alert/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/aspect-ratio/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-aspect-ratio",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/aspect-ratio.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./aspect-ratio.css": "./styles/aspect-ratio.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-aspect-ratio": "1.0.3",
16 | "@radix-ui/react-icons": "1.3.0",
17 | "lucide-react": "0.373.0",
18 | "class-variance-authority": "0.7.0",
19 | "tailwind-merge": "2.3.0",
20 | "clsx": "2.1.1",
21 | "react": "^18.2.0",
22 | "react-dom": "^18.2.0"
23 | },
24 | "devDependencies": {
25 | "tailwindcss": "3.4.3",
26 | "tailwindcss-animate": "^1.0.7",
27 | "postcss": "8.4.38",
28 | "autoprefixer": "10.4.19",
29 | "@types/react": "^18.2.61",
30 | "@types/react-dom": "^18.2.19",
31 | "typescript": "^5.3.3"
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/packages/generated/aspect-ratio/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/aspect-ratio/src/default/aspect-ratio.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 |
5 | import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio"
6 |
7 | const AspectRatio = AspectRatioPrimitive.Root
8 |
9 | export { AspectRatio }
10 |
--------------------------------------------------------------------------------
/packages/generated/aspect-ratio/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/aspect-ratio/src/new-york/aspect-ratio.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 |
5 | import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio"
6 |
7 | const AspectRatio = AspectRatioPrimitive.Root
8 |
9 | export { AspectRatio }
10 |
--------------------------------------------------------------------------------
/packages/generated/aspect-ratio/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/avatar/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-avatar",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/avatar.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./avatar.css": "./styles/avatar.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-avatar": "1.0.4",
16 | "@radix-ui/react-icons": "1.3.0",
17 | "lucide-react": "0.373.0",
18 | "class-variance-authority": "0.7.0",
19 | "tailwind-merge": "2.3.0",
20 | "clsx": "2.1.1",
21 | "react": "^18.2.0",
22 | "react-dom": "^18.2.0"
23 | },
24 | "devDependencies": {
25 | "tailwindcss": "3.4.3",
26 | "tailwindcss-animate": "^1.0.7",
27 | "postcss": "8.4.38",
28 | "autoprefixer": "10.4.19",
29 | "@types/react": "^18.2.61",
30 | "@types/react-dom": "^18.2.19",
31 | "typescript": "^5.3.3"
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/packages/generated/avatar/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/avatar/src/default/avatar.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 | import * as AvatarPrimitive from "@radix-ui/react-avatar"
5 |
6 | import { cn } from "../lib"
7 |
8 | const Avatar = React.forwardRef<
9 | React.ElementRef,
10 | React.ComponentPropsWithoutRef
11 | >(({ className, ...props }, ref) => (
12 |
20 | ))
21 | Avatar.displayName = AvatarPrimitive.Root.displayName
22 |
23 | const AvatarImage = React.forwardRef<
24 | React.ElementRef,
25 | React.ComponentPropsWithoutRef
26 | >(({ className, ...props }, ref) => (
27 |
32 | ))
33 | AvatarImage.displayName = AvatarPrimitive.Image.displayName
34 |
35 | const AvatarFallback = React.forwardRef<
36 | React.ElementRef,
37 | React.ComponentPropsWithoutRef
38 | >(({ className, ...props }, ref) => (
39 |
47 | ))
48 | AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName
49 |
50 | export { Avatar, AvatarImage, AvatarFallback }
51 |
--------------------------------------------------------------------------------
/packages/generated/avatar/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/avatar/src/new-york/avatar.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 | import * as AvatarPrimitive from "@radix-ui/react-avatar"
5 |
6 | import { cn } from "../lib"
7 |
8 | const Avatar = React.forwardRef<
9 | React.ElementRef,
10 | React.ComponentPropsWithoutRef
11 | >(({ className, ...props }, ref) => (
12 |
20 | ))
21 | Avatar.displayName = AvatarPrimitive.Root.displayName
22 |
23 | const AvatarImage = React.forwardRef<
24 | React.ElementRef,
25 | React.ComponentPropsWithoutRef
26 | >(({ className, ...props }, ref) => (
27 |
32 | ))
33 | AvatarImage.displayName = AvatarPrimitive.Image.displayName
34 |
35 | const AvatarFallback = React.forwardRef<
36 | React.ElementRef,
37 | React.ComponentPropsWithoutRef
38 | >(({ className, ...props }, ref) => (
39 |
47 | ))
48 | AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName
49 |
50 | export { Avatar, AvatarImage, AvatarFallback }
51 |
--------------------------------------------------------------------------------
/packages/generated/avatar/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/badge/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-badge",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/badge.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./badge.css": "./styles/badge.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-icons": "1.3.0",
16 | "lucide-react": "0.373.0",
17 | "class-variance-authority": "0.7.0",
18 | "tailwind-merge": "2.3.0",
19 | "clsx": "2.1.1",
20 | "react": "^18.2.0",
21 | "react-dom": "^18.2.0"
22 | },
23 | "devDependencies": {
24 | "tailwindcss": "3.4.3",
25 | "tailwindcss-animate": "^1.0.7",
26 | "postcss": "8.4.38",
27 | "autoprefixer": "10.4.19",
28 | "@types/react": "^18.2.61",
29 | "@types/react-dom": "^18.2.19",
30 | "typescript": "^5.3.3"
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/packages/generated/badge/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/badge/src/default/badge.tsx:
--------------------------------------------------------------------------------
1 | import * as React from "react"
2 | import { cva, type VariantProps } from "class-variance-authority"
3 |
4 | import { cn } from "../lib"
5 |
6 | const badgeVariants = cva(
7 | "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
8 | {
9 | variants: {
10 | variant: {
11 | default:
12 | "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
13 | secondary:
14 | "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
15 | destructive:
16 | "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
17 | outline: "text-foreground",
18 | },
19 | },
20 | defaultVariants: {
21 | variant: "default",
22 | },
23 | }
24 | )
25 |
26 | export interface BadgeProps
27 | extends React.HTMLAttributes,
28 | VariantProps {}
29 |
30 | function Badge({ className, variant, ...props }: BadgeProps) {
31 | return (
32 |
33 | )
34 | }
35 |
36 | export { Badge, badgeVariants }
37 |
--------------------------------------------------------------------------------
/packages/generated/badge/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/badge/src/new-york/badge.tsx:
--------------------------------------------------------------------------------
1 | import * as React from "react"
2 | import { cva, type VariantProps } from "class-variance-authority"
3 |
4 | import { cn } from "../lib"
5 |
6 | const badgeVariants = cva(
7 | "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
8 | {
9 | variants: {
10 | variant: {
11 | default:
12 | "border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",
13 | secondary:
14 | "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
15 | destructive:
16 | "border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",
17 | outline: "text-foreground",
18 | },
19 | },
20 | defaultVariants: {
21 | variant: "default",
22 | },
23 | }
24 | )
25 |
26 | export interface BadgeProps
27 | extends React.HTMLAttributes,
28 | VariantProps {}
29 |
30 | function Badge({ className, variant, ...props }: BadgeProps) {
31 | return (
32 |
33 | )
34 | }
35 |
36 | export { Badge, badgeVariants }
37 |
--------------------------------------------------------------------------------
/packages/generated/badge/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/breadcrumb/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-breadcrumb",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/breadcrumb.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./breadcrumb.css": "./styles/breadcrumb.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-slot": "1.0.2",
16 | "@radix-ui/react-icons": "1.3.0",
17 | "lucide-react": "0.373.0",
18 | "class-variance-authority": "0.7.0",
19 | "tailwind-merge": "2.3.0",
20 | "clsx": "2.1.1",
21 | "react": "^18.2.0",
22 | "react-dom": "^18.2.0"
23 | },
24 | "devDependencies": {
25 | "tailwindcss": "3.4.3",
26 | "tailwindcss-animate": "^1.0.7",
27 | "postcss": "8.4.38",
28 | "autoprefixer": "10.4.19",
29 | "@types/react": "^18.2.61",
30 | "@types/react-dom": "^18.2.19",
31 | "typescript": "^5.3.3"
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/packages/generated/breadcrumb/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/breadcrumb/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/breadcrumb/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/button/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-button",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/button.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./button.css": "./styles/button.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-slot": "1.0.2",
16 | "@radix-ui/react-icons": "1.3.0",
17 | "lucide-react": "0.373.0",
18 | "class-variance-authority": "0.7.0",
19 | "tailwind-merge": "2.3.0",
20 | "clsx": "2.1.1",
21 | "react": "^18.2.0",
22 | "react-dom": "^18.2.0"
23 | },
24 | "devDependencies": {
25 | "tailwindcss": "3.4.3",
26 | "tailwindcss-animate": "^1.0.7",
27 | "postcss": "8.4.38",
28 | "autoprefixer": "10.4.19",
29 | "@types/react": "^18.2.61",
30 | "@types/react-dom": "^18.2.19",
31 | "typescript": "^5.3.3"
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/packages/generated/button/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/button/src/default/button.tsx:
--------------------------------------------------------------------------------
1 | import * as React from "react"
2 | import { Slot } from "@radix-ui/react-slot"
3 | import { cva, type VariantProps } from "class-variance-authority"
4 |
5 | import { cn } from "../lib"
6 |
7 | const buttonVariants = cva(
8 | "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
9 | {
10 | variants: {
11 | variant: {
12 | default: "bg-primary text-primary-foreground hover:bg-primary/90",
13 | destructive:
14 | "bg-destructive text-destructive-foreground hover:bg-destructive/90",
15 | outline:
16 | "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
17 | secondary:
18 | "bg-secondary text-secondary-foreground hover:bg-secondary/80",
19 | ghost: "hover:bg-accent hover:text-accent-foreground",
20 | link: "text-primary underline-offset-4 hover:underline",
21 | },
22 | size: {
23 | default: "h-10 px-4 py-2",
24 | sm: "h-9 rounded-md px-3",
25 | lg: "h-11 rounded-md px-8",
26 | icon: "h-10 w-10",
27 | },
28 | },
29 | defaultVariants: {
30 | variant: "default",
31 | size: "default",
32 | },
33 | }
34 | )
35 |
36 | export interface ButtonProps
37 | extends React.ButtonHTMLAttributes,
38 | VariantProps {
39 | asChild?: boolean
40 | }
41 |
42 | const Button = React.forwardRef(
43 | ({ className, variant, size, asChild = false, ...props }, ref) => {
44 | const Comp = asChild ? Slot : "button"
45 | return (
46 |
51 | )
52 | }
53 | )
54 | Button.displayName = "Button"
55 |
56 | export { Button, buttonVariants }
57 |
--------------------------------------------------------------------------------
/packages/generated/button/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/button/src/new-york/button.tsx:
--------------------------------------------------------------------------------
1 | import * as React from "react"
2 | import { Slot } from "@radix-ui/react-slot"
3 | import { cva, type VariantProps } from "class-variance-authority"
4 |
5 | import { cn } from "../lib"
6 |
7 | const buttonVariants = cva(
8 | "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
9 | {
10 | variants: {
11 | variant: {
12 | default:
13 | "bg-primary text-primary-foreground shadow hover:bg-primary/90",
14 | destructive:
15 | "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
16 | outline:
17 | "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
18 | secondary:
19 | "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
20 | ghost: "hover:bg-accent hover:text-accent-foreground",
21 | link: "text-primary underline-offset-4 hover:underline",
22 | },
23 | size: {
24 | default: "h-9 px-4 py-2",
25 | sm: "h-8 rounded-md px-3 text-xs",
26 | lg: "h-10 rounded-md px-8",
27 | icon: "h-9 w-9",
28 | },
29 | },
30 | defaultVariants: {
31 | variant: "default",
32 | size: "default",
33 | },
34 | }
35 | )
36 |
37 | export interface ButtonProps
38 | extends React.ButtonHTMLAttributes,
39 | VariantProps {
40 | asChild?: boolean
41 | }
42 |
43 | const Button = React.forwardRef(
44 | ({ className, variant, size, asChild = false, ...props }, ref) => {
45 | const Comp = asChild ? Slot : "button"
46 | return (
47 |
52 | )
53 | }
54 | )
55 | Button.displayName = "Button"
56 |
57 | export { Button, buttonVariants }
58 |
--------------------------------------------------------------------------------
/packages/generated/button/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/calendar/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-calendar",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/calendar.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./calendar.css": "./styles/calendar.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "react-day-picker": "8.10.1",
16 | "date-fns": "3.6.0",
17 | "@radix-ui/react-slot": "1.0.2",
18 | "@radix-ui/react-icons": "1.3.0",
19 | "lucide-react": "0.373.0",
20 | "class-variance-authority": "0.7.0",
21 | "tailwind-merge": "2.3.0",
22 | "clsx": "2.1.1",
23 | "react": "^18.2.0",
24 | "react-dom": "^18.2.0",
25 | "@teovilla/shadcn-ui-react-button": "workspace:*"
26 | },
27 | "devDependencies": {
28 | "tailwindcss": "3.4.3",
29 | "tailwindcss-animate": "^1.0.7",
30 | "postcss": "8.4.38",
31 | "autoprefixer": "10.4.19",
32 | "@types/react": "^18.2.61",
33 | "@types/react-dom": "^18.2.19",
34 | "typescript": "^5.3.3"
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/packages/generated/calendar/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/calendar/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/calendar/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/card/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-card",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/card.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./card.css": "./styles/card.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-icons": "1.3.0",
16 | "lucide-react": "0.373.0",
17 | "class-variance-authority": "0.7.0",
18 | "tailwind-merge": "2.3.0",
19 | "clsx": "2.1.1",
20 | "react": "^18.2.0",
21 | "react-dom": "^18.2.0"
22 | },
23 | "devDependencies": {
24 | "tailwindcss": "3.4.3",
25 | "tailwindcss-animate": "^1.0.7",
26 | "postcss": "8.4.38",
27 | "autoprefixer": "10.4.19",
28 | "@types/react": "^18.2.61",
29 | "@types/react-dom": "^18.2.19",
30 | "typescript": "^5.3.3"
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/packages/generated/card/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/card/src/default/card.tsx:
--------------------------------------------------------------------------------
1 | import * as React from "react"
2 |
3 | import { cn } from "../lib"
4 |
5 | const Card = React.forwardRef<
6 | HTMLDivElement,
7 | React.HTMLAttributes
8 | >(({ className, ...props }, ref) => (
9 |
17 | ))
18 | Card.displayName = "Card"
19 |
20 | const CardHeader = React.forwardRef<
21 | HTMLDivElement,
22 | React.HTMLAttributes
23 | >(({ className, ...props }, ref) => (
24 |
29 | ))
30 | CardHeader.displayName = "CardHeader"
31 |
32 | const CardTitle = React.forwardRef<
33 | HTMLParagraphElement,
34 | React.HTMLAttributes
35 | >(({ className, ...props }, ref) => (
36 |
44 | ))
45 | CardTitle.displayName = "CardTitle"
46 |
47 | const CardDescription = React.forwardRef<
48 | HTMLParagraphElement,
49 | React.HTMLAttributes
50 | >(({ className, ...props }, ref) => (
51 |
56 | ))
57 | CardDescription.displayName = "CardDescription"
58 |
59 | const CardContent = React.forwardRef<
60 | HTMLDivElement,
61 | React.HTMLAttributes
62 | >(({ className, ...props }, ref) => (
63 |
64 | ))
65 | CardContent.displayName = "CardContent"
66 |
67 | const CardFooter = React.forwardRef<
68 | HTMLDivElement,
69 | React.HTMLAttributes
70 | >(({ className, ...props }, ref) => (
71 |
76 | ))
77 | CardFooter.displayName = "CardFooter"
78 |
79 | export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent }
80 |
--------------------------------------------------------------------------------
/packages/generated/card/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/card/src/new-york/card.tsx:
--------------------------------------------------------------------------------
1 | import * as React from "react"
2 |
3 | import { cn } from "../lib"
4 |
5 | const Card = React.forwardRef<
6 | HTMLDivElement,
7 | React.HTMLAttributes
8 | >(({ className, ...props }, ref) => (
9 |
17 | ))
18 | Card.displayName = "Card"
19 |
20 | const CardHeader = React.forwardRef<
21 | HTMLDivElement,
22 | React.HTMLAttributes
23 | >(({ className, ...props }, ref) => (
24 |
29 | ))
30 | CardHeader.displayName = "CardHeader"
31 |
32 | const CardTitle = React.forwardRef<
33 | HTMLParagraphElement,
34 | React.HTMLAttributes
35 | >(({ className, ...props }, ref) => (
36 |
41 | ))
42 | CardTitle.displayName = "CardTitle"
43 |
44 | const CardDescription = React.forwardRef<
45 | HTMLParagraphElement,
46 | React.HTMLAttributes
47 | >(({ className, ...props }, ref) => (
48 |
53 | ))
54 | CardDescription.displayName = "CardDescription"
55 |
56 | const CardContent = React.forwardRef<
57 | HTMLDivElement,
58 | React.HTMLAttributes
59 | >(({ className, ...props }, ref) => (
60 |
61 | ))
62 | CardContent.displayName = "CardContent"
63 |
64 | const CardFooter = React.forwardRef<
65 | HTMLDivElement,
66 | React.HTMLAttributes
67 | >(({ className, ...props }, ref) => (
68 |
73 | ))
74 | CardFooter.displayName = "CardFooter"
75 |
76 | export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent }
77 |
--------------------------------------------------------------------------------
/packages/generated/card/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/carousel/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-carousel",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/carousel.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./carousel.css": "./styles/carousel.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "embla-carousel-react": "8.0.2",
16 | "@radix-ui/react-slot": "1.0.2",
17 | "@radix-ui/react-icons": "1.3.0",
18 | "lucide-react": "0.373.0",
19 | "class-variance-authority": "0.7.0",
20 | "tailwind-merge": "2.3.0",
21 | "clsx": "2.1.1",
22 | "react": "^18.2.0",
23 | "react-dom": "^18.2.0",
24 | "@teovilla/shadcn-ui-react-button": "workspace:*"
25 | },
26 | "devDependencies": {
27 | "tailwindcss": "3.4.3",
28 | "tailwindcss-animate": "^1.0.7",
29 | "postcss": "8.4.38",
30 | "autoprefixer": "10.4.19",
31 | "@types/react": "^18.2.61",
32 | "@types/react-dom": "^18.2.19",
33 | "typescript": "^5.3.3"
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/packages/generated/carousel/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/carousel/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/carousel/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/checkbox/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-checkbox",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/checkbox.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./checkbox.css": "./styles/checkbox.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-checkbox": "1.0.4",
16 | "@radix-ui/react-icons": "1.3.0",
17 | "lucide-react": "0.373.0",
18 | "class-variance-authority": "0.7.0",
19 | "tailwind-merge": "2.3.0",
20 | "clsx": "2.1.1",
21 | "react": "^18.2.0",
22 | "react-dom": "^18.2.0"
23 | },
24 | "devDependencies": {
25 | "tailwindcss": "3.4.3",
26 | "tailwindcss-animate": "^1.0.7",
27 | "postcss": "8.4.38",
28 | "autoprefixer": "10.4.19",
29 | "@types/react": "^18.2.61",
30 | "@types/react-dom": "^18.2.19",
31 | "typescript": "^5.3.3"
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/packages/generated/checkbox/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/checkbox/src/default/checkbox.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 | import * as CheckboxPrimitive from "@radix-ui/react-checkbox"
5 | import { Check } from "lucide-react"
6 |
7 | import { cn } from "../lib"
8 |
9 | const Checkbox = React.forwardRef<
10 | React.ElementRef,
11 | React.ComponentPropsWithoutRef
12 | >(({ className, ...props }, ref) => (
13 |
21 |
24 |
25 |
26 |
27 | ))
28 | Checkbox.displayName = CheckboxPrimitive.Root.displayName
29 |
30 | export { Checkbox }
31 |
--------------------------------------------------------------------------------
/packages/generated/checkbox/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/checkbox/src/new-york/checkbox.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 | import * as CheckboxPrimitive from "@radix-ui/react-checkbox"
5 | import { CheckIcon } from "@radix-ui/react-icons"
6 |
7 | import { cn } from "../lib"
8 |
9 | const Checkbox = React.forwardRef<
10 | React.ElementRef,
11 | React.ComponentPropsWithoutRef
12 | >(({ className, ...props }, ref) => (
13 |
21 |
24 |
25 |
26 |
27 | ))
28 | Checkbox.displayName = CheckboxPrimitive.Root.displayName
29 |
30 | export { Checkbox }
31 |
--------------------------------------------------------------------------------
/packages/generated/checkbox/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/collapsible/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-collapsible",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/collapsible.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./collapsible.css": "./styles/collapsible.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-collapsible": "1.0.3",
16 | "@radix-ui/react-icons": "1.3.0",
17 | "lucide-react": "0.373.0",
18 | "class-variance-authority": "0.7.0",
19 | "tailwind-merge": "2.3.0",
20 | "clsx": "2.1.1",
21 | "react": "^18.2.0",
22 | "react-dom": "^18.2.0"
23 | },
24 | "devDependencies": {
25 | "tailwindcss": "3.4.3",
26 | "tailwindcss-animate": "^1.0.7",
27 | "postcss": "8.4.38",
28 | "autoprefixer": "10.4.19",
29 | "@types/react": "^18.2.61",
30 | "@types/react-dom": "^18.2.19",
31 | "typescript": "^5.3.3"
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/packages/generated/collapsible/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/collapsible/src/default/collapsible.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 |
5 | import * as CollapsiblePrimitive from "@radix-ui/react-collapsible"
6 |
7 | const Collapsible = CollapsiblePrimitive.Root
8 |
9 | const CollapsibleTrigger = CollapsiblePrimitive.CollapsibleTrigger
10 |
11 | const CollapsibleContent = CollapsiblePrimitive.CollapsibleContent
12 |
13 | export { Collapsible, CollapsibleTrigger, CollapsibleContent }
14 |
--------------------------------------------------------------------------------
/packages/generated/collapsible/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/collapsible/src/new-york/collapsible.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 |
5 | import * as CollapsiblePrimitive from "@radix-ui/react-collapsible"
6 |
7 | const Collapsible = CollapsiblePrimitive.Root
8 |
9 | const CollapsibleTrigger = CollapsiblePrimitive.CollapsibleTrigger
10 |
11 | const CollapsibleContent = CollapsiblePrimitive.CollapsibleContent
12 |
13 | export { Collapsible, CollapsibleTrigger, CollapsibleContent }
14 |
--------------------------------------------------------------------------------
/packages/generated/collapsible/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/command/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-command",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/command.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./command.css": "./styles/command.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "cmdk": "1.0.0",
16 | "@radix-ui/react-dialog": "1.0.5",
17 | "@radix-ui/react-icons": "1.3.0",
18 | "lucide-react": "0.373.0",
19 | "class-variance-authority": "0.7.0",
20 | "tailwind-merge": "2.3.0",
21 | "clsx": "2.1.1",
22 | "react": "^18.2.0",
23 | "react-dom": "^18.2.0",
24 | "@teovilla/shadcn-ui-react-dialog": "workspace:*"
25 | },
26 | "devDependencies": {
27 | "tailwindcss": "3.4.3",
28 | "tailwindcss-animate": "^1.0.7",
29 | "postcss": "8.4.38",
30 | "autoprefixer": "10.4.19",
31 | "@types/react": "^18.2.61",
32 | "@types/react-dom": "^18.2.19",
33 | "typescript": "^5.3.3"
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/packages/generated/command/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/command/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/command/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/context-menu/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-context-menu",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/context-menu.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./context-menu.css": "./styles/context-menu.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-context-menu": "2.1.5",
16 | "@radix-ui/react-icons": "1.3.0",
17 | "lucide-react": "0.373.0",
18 | "class-variance-authority": "0.7.0",
19 | "tailwind-merge": "2.3.0",
20 | "clsx": "2.1.1",
21 | "react": "^18.2.0",
22 | "react-dom": "^18.2.0"
23 | },
24 | "devDependencies": {
25 | "tailwindcss": "3.4.3",
26 | "tailwindcss-animate": "^1.0.7",
27 | "postcss": "8.4.38",
28 | "autoprefixer": "10.4.19",
29 | "@types/react": "^18.2.61",
30 | "@types/react-dom": "^18.2.19",
31 | "typescript": "^5.3.3"
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/packages/generated/context-menu/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/context-menu/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/context-menu/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/dialog/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-dialog",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/dialog.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./dialog.css": "./styles/dialog.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-dialog": "1.0.5",
16 | "@radix-ui/react-icons": "1.3.0",
17 | "lucide-react": "0.373.0",
18 | "class-variance-authority": "0.7.0",
19 | "tailwind-merge": "2.3.0",
20 | "clsx": "2.1.1",
21 | "react": "^18.2.0",
22 | "react-dom": "^18.2.0"
23 | },
24 | "devDependencies": {
25 | "tailwindcss": "3.4.3",
26 | "tailwindcss-animate": "^1.0.7",
27 | "postcss": "8.4.38",
28 | "autoprefixer": "10.4.19",
29 | "@types/react": "^18.2.61",
30 | "@types/react-dom": "^18.2.19",
31 | "typescript": "^5.3.3"
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/packages/generated/dialog/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/dialog/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/dialog/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/drawer/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-drawer",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/drawer.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./drawer.css": "./styles/drawer.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "vaul": "0.9.0",
16 | "@radix-ui/react-dialog": "1.0.5",
17 | "@radix-ui/react-icons": "1.3.0",
18 | "lucide-react": "0.373.0",
19 | "class-variance-authority": "0.7.0",
20 | "tailwind-merge": "2.3.0",
21 | "clsx": "2.1.1",
22 | "react": "^18.2.0",
23 | "react-dom": "^18.2.0"
24 | },
25 | "devDependencies": {
26 | "tailwindcss": "3.4.3",
27 | "tailwindcss-animate": "^1.0.7",
28 | "postcss": "8.4.38",
29 | "autoprefixer": "10.4.19",
30 | "@types/react": "^18.2.61",
31 | "@types/react-dom": "^18.2.19",
32 | "typescript": "^5.3.3"
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/packages/generated/drawer/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/drawer/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/drawer/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/dropdown-menu/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-dropdown-menu",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/dropdown-menu.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./dropdown-menu.css": "./styles/dropdown-menu.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-dropdown-menu": "2.0.6",
16 | "@radix-ui/react-icons": "1.3.0",
17 | "lucide-react": "0.373.0",
18 | "class-variance-authority": "0.7.0",
19 | "tailwind-merge": "2.3.0",
20 | "clsx": "2.1.1",
21 | "react": "^18.2.0",
22 | "react-dom": "^18.2.0"
23 | },
24 | "devDependencies": {
25 | "tailwindcss": "3.4.3",
26 | "tailwindcss-animate": "^1.0.7",
27 | "postcss": "8.4.38",
28 | "autoprefixer": "10.4.19",
29 | "@types/react": "^18.2.61",
30 | "@types/react-dom": "^18.2.19",
31 | "typescript": "^5.3.3"
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/packages/generated/dropdown-menu/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/dropdown-menu/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/dropdown-menu/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/form/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-form",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/form.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./form.css": "./styles/form.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-label": "2.0.2",
16 | "@radix-ui/react-slot": "1.0.2",
17 | "@hookform/resolvers": "3.3.4",
18 | "zod": "3.23.4",
19 | "react-hook-form": "7.51.3",
20 | "@radix-ui/react-icons": "1.3.0",
21 | "lucide-react": "0.373.0",
22 | "class-variance-authority": "0.7.0",
23 | "tailwind-merge": "2.3.0",
24 | "clsx": "2.1.1",
25 | "react": "^18.2.0",
26 | "react-dom": "^18.2.0",
27 | "@teovilla/shadcn-ui-react-button": "workspace:*",
28 | "@teovilla/shadcn-ui-react-label": "workspace:*"
29 | },
30 | "devDependencies": {
31 | "tailwindcss": "3.4.3",
32 | "tailwindcss-animate": "^1.0.7",
33 | "postcss": "8.4.38",
34 | "autoprefixer": "10.4.19",
35 | "@types/react": "^18.2.61",
36 | "@types/react-dom": "^18.2.19",
37 | "typescript": "^5.3.3"
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/packages/generated/form/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/form/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/form/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/hover-card/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-hover-card",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/hover-card.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./hover-card.css": "./styles/hover-card.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-hover-card": "1.0.7",
16 | "@radix-ui/react-icons": "1.3.0",
17 | "lucide-react": "0.373.0",
18 | "class-variance-authority": "0.7.0",
19 | "tailwind-merge": "2.3.0",
20 | "clsx": "2.1.1",
21 | "react": "^18.2.0",
22 | "react-dom": "^18.2.0"
23 | },
24 | "devDependencies": {
25 | "tailwindcss": "3.4.3",
26 | "tailwindcss-animate": "^1.0.7",
27 | "postcss": "8.4.38",
28 | "autoprefixer": "10.4.19",
29 | "@types/react": "^18.2.61",
30 | "@types/react-dom": "^18.2.19",
31 | "typescript": "^5.3.3"
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/packages/generated/hover-card/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/hover-card/src/default/hover-card.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 | import * as HoverCardPrimitive from "@radix-ui/react-hover-card"
5 |
6 | import { cn } from "../lib"
7 |
8 | const HoverCard = HoverCardPrimitive.Root
9 |
10 | const HoverCardTrigger = HoverCardPrimitive.Trigger
11 |
12 | const HoverCardContent = React.forwardRef<
13 | React.ElementRef,
14 | React.ComponentPropsWithoutRef
15 | >(({ className, align = "center", sideOffset = 4, ...props }, ref) => (
16 |
26 | ))
27 | HoverCardContent.displayName = HoverCardPrimitive.Content.displayName
28 |
29 | export { HoverCard, HoverCardTrigger, HoverCardContent }
30 |
--------------------------------------------------------------------------------
/packages/generated/hover-card/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/hover-card/src/new-york/hover-card.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 | import * as HoverCardPrimitive from "@radix-ui/react-hover-card"
5 |
6 | import { cn } from "../lib"
7 |
8 | const HoverCard = HoverCardPrimitive.Root
9 |
10 | const HoverCardTrigger = HoverCardPrimitive.Trigger
11 |
12 | const HoverCardContent = React.forwardRef<
13 | React.ElementRef,
14 | React.ComponentPropsWithoutRef
15 | >(({ className, align = "center", sideOffset = 4, ...props }, ref) => (
16 |
26 | ))
27 | HoverCardContent.displayName = HoverCardPrimitive.Content.displayName
28 |
29 | export { HoverCard, HoverCardTrigger, HoverCardContent }
30 |
--------------------------------------------------------------------------------
/packages/generated/hover-card/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/input-otp/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-input-otp",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/input-otp.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./input-otp.css": "./styles/input-otp.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "input-otp": "1.2.4",
16 | "@radix-ui/react-icons": "1.3.0",
17 | "lucide-react": "0.373.0",
18 | "class-variance-authority": "0.7.0",
19 | "tailwind-merge": "2.3.0",
20 | "clsx": "2.1.1",
21 | "react": "^18.2.0",
22 | "react-dom": "^18.2.0"
23 | },
24 | "devDependencies": {
25 | "tailwindcss": "3.4.3",
26 | "tailwindcss-animate": "^1.0.7",
27 | "postcss": "8.4.38",
28 | "autoprefixer": "10.4.19",
29 | "@types/react": "^18.2.61",
30 | "@types/react-dom": "^18.2.19",
31 | "typescript": "^5.3.3"
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/packages/generated/input-otp/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/input-otp/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/input-otp/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/input/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-input",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/input.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./input.css": "./styles/input.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-icons": "1.3.0",
16 | "lucide-react": "0.373.0",
17 | "class-variance-authority": "0.7.0",
18 | "tailwind-merge": "2.3.0",
19 | "clsx": "2.1.1",
20 | "react": "^18.2.0",
21 | "react-dom": "^18.2.0"
22 | },
23 | "devDependencies": {
24 | "tailwindcss": "3.4.3",
25 | "tailwindcss-animate": "^1.0.7",
26 | "postcss": "8.4.38",
27 | "autoprefixer": "10.4.19",
28 | "@types/react": "^18.2.61",
29 | "@types/react-dom": "^18.2.19",
30 | "typescript": "^5.3.3"
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/packages/generated/input/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/input/src/default/input.tsx:
--------------------------------------------------------------------------------
1 | import * as React from "react"
2 |
3 | import { cn } from "../lib"
4 |
5 | export interface InputProps
6 | extends React.InputHTMLAttributes {}
7 |
8 | const Input = React.forwardRef(
9 | ({ className, type, ...props }, ref) => {
10 | return (
11 |
20 | )
21 | }
22 | )
23 | Input.displayName = "Input"
24 |
25 | export { Input }
26 |
--------------------------------------------------------------------------------
/packages/generated/input/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/input/src/new-york/input.tsx:
--------------------------------------------------------------------------------
1 | import * as React from "react"
2 |
3 | import { cn } from "../lib"
4 |
5 | export interface InputProps
6 | extends React.InputHTMLAttributes {}
7 |
8 | const Input = React.forwardRef(
9 | ({ className, type, ...props }, ref) => {
10 | return (
11 |
20 | )
21 | }
22 | )
23 | Input.displayName = "Input"
24 |
25 | export { Input }
26 |
--------------------------------------------------------------------------------
/packages/generated/input/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/label/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-label",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/label.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./label.css": "./styles/label.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-label": "2.0.2",
16 | "@radix-ui/react-icons": "1.3.0",
17 | "lucide-react": "0.373.0",
18 | "class-variance-authority": "0.7.0",
19 | "tailwind-merge": "2.3.0",
20 | "clsx": "2.1.1",
21 | "react": "^18.2.0",
22 | "react-dom": "^18.2.0"
23 | },
24 | "devDependencies": {
25 | "tailwindcss": "3.4.3",
26 | "tailwindcss-animate": "^1.0.7",
27 | "postcss": "8.4.38",
28 | "autoprefixer": "10.4.19",
29 | "@types/react": "^18.2.61",
30 | "@types/react-dom": "^18.2.19",
31 | "typescript": "^5.3.3"
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/packages/generated/label/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/label/src/default/label.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 | import * as LabelPrimitive from "@radix-ui/react-label"
5 | import { cva, type VariantProps } from "class-variance-authority"
6 |
7 | import { cn } from "../lib"
8 |
9 | const labelVariants = cva(
10 | "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
11 | )
12 |
13 | const Label = React.forwardRef<
14 | React.ElementRef,
15 | React.ComponentPropsWithoutRef &
16 | VariantProps
17 | >(({ className, ...props }, ref) => (
18 |
23 | ))
24 | Label.displayName = LabelPrimitive.Root.displayName
25 |
26 | export { Label }
27 |
--------------------------------------------------------------------------------
/packages/generated/label/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/label/src/new-york/label.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 | import * as LabelPrimitive from "@radix-ui/react-label"
5 | import { cva, type VariantProps } from "class-variance-authority"
6 |
7 | import { cn } from "../lib"
8 |
9 | const labelVariants = cva(
10 | "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
11 | )
12 |
13 | const Label = React.forwardRef<
14 | React.ElementRef,
15 | React.ComponentPropsWithoutRef &
16 | VariantProps
17 | >(({ className, ...props }, ref) => (
18 |
23 | ))
24 | Label.displayName = LabelPrimitive.Root.displayName
25 |
26 | export { Label }
27 |
--------------------------------------------------------------------------------
/packages/generated/label/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/menubar/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-menubar",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/menubar.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./menubar.css": "./styles/menubar.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-menubar": "1.0.4",
16 | "@radix-ui/react-icons": "1.3.0",
17 | "lucide-react": "0.373.0",
18 | "class-variance-authority": "0.7.0",
19 | "tailwind-merge": "2.3.0",
20 | "clsx": "2.1.1",
21 | "react": "^18.2.0",
22 | "react-dom": "^18.2.0"
23 | },
24 | "devDependencies": {
25 | "tailwindcss": "3.4.3",
26 | "tailwindcss-animate": "^1.0.7",
27 | "postcss": "8.4.38",
28 | "autoprefixer": "10.4.19",
29 | "@types/react": "^18.2.61",
30 | "@types/react-dom": "^18.2.19",
31 | "typescript": "^5.3.3"
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/packages/generated/menubar/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/menubar/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/menubar/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/navigation-menu/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-navigation-menu",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/navigation-menu.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./navigation-menu.css": "./styles/navigation-menu.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-navigation-menu": "1.1.4",
16 | "@radix-ui/react-icons": "1.3.0",
17 | "lucide-react": "0.373.0",
18 | "class-variance-authority": "0.7.0",
19 | "tailwind-merge": "2.3.0",
20 | "clsx": "2.1.1",
21 | "react": "^18.2.0",
22 | "react-dom": "^18.2.0"
23 | },
24 | "devDependencies": {
25 | "tailwindcss": "3.4.3",
26 | "tailwindcss-animate": "^1.0.7",
27 | "postcss": "8.4.38",
28 | "autoprefixer": "10.4.19",
29 | "@types/react": "^18.2.61",
30 | "@types/react-dom": "^18.2.19",
31 | "typescript": "^5.3.3"
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/packages/generated/navigation-menu/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/navigation-menu/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/navigation-menu/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/pagination/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-pagination",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/pagination.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./pagination.css": "./styles/pagination.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-slot": "1.0.2",
16 | "@radix-ui/react-icons": "1.3.0",
17 | "lucide-react": "0.373.0",
18 | "class-variance-authority": "0.7.0",
19 | "tailwind-merge": "2.3.0",
20 | "clsx": "2.1.1",
21 | "react": "^18.2.0",
22 | "react-dom": "^18.2.0",
23 | "@teovilla/shadcn-ui-react-button": "workspace:*"
24 | },
25 | "devDependencies": {
26 | "tailwindcss": "3.4.3",
27 | "tailwindcss-animate": "^1.0.7",
28 | "postcss": "8.4.38",
29 | "autoprefixer": "10.4.19",
30 | "@types/react": "^18.2.61",
31 | "@types/react-dom": "^18.2.19",
32 | "typescript": "^5.3.3"
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/packages/generated/pagination/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/pagination/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/pagination/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/popover/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-popover",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/popover.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./popover.css": "./styles/popover.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-popover": "1.0.7",
16 | "@radix-ui/react-icons": "1.3.0",
17 | "lucide-react": "0.373.0",
18 | "class-variance-authority": "0.7.0",
19 | "tailwind-merge": "2.3.0",
20 | "clsx": "2.1.1",
21 | "react": "^18.2.0",
22 | "react-dom": "^18.2.0"
23 | },
24 | "devDependencies": {
25 | "tailwindcss": "3.4.3",
26 | "tailwindcss-animate": "^1.0.7",
27 | "postcss": "8.4.38",
28 | "autoprefixer": "10.4.19",
29 | "@types/react": "^18.2.61",
30 | "@types/react-dom": "^18.2.19",
31 | "typescript": "^5.3.3"
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/packages/generated/popover/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/popover/src/default/popover.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 | import * as PopoverPrimitive from "@radix-ui/react-popover"
5 |
6 | import { cn } from "../lib"
7 |
8 | const Popover = PopoverPrimitive.Root
9 |
10 | const PopoverTrigger = PopoverPrimitive.Trigger
11 |
12 | const PopoverContent = React.forwardRef<
13 | React.ElementRef,
14 | React.ComponentPropsWithoutRef
15 | >(({ className, align = "center", sideOffset = 4, ...props }, ref) => (
16 |
17 |
27 |
28 | ))
29 | PopoverContent.displayName = PopoverPrimitive.Content.displayName
30 |
31 | export { Popover, PopoverTrigger, PopoverContent }
32 |
--------------------------------------------------------------------------------
/packages/generated/popover/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/popover/src/new-york/popover.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 | import * as PopoverPrimitive from "@radix-ui/react-popover"
5 |
6 | import { cn } from "../lib"
7 |
8 | const Popover = PopoverPrimitive.Root
9 |
10 | const PopoverTrigger = PopoverPrimitive.Trigger
11 |
12 | const PopoverAnchor = PopoverPrimitive.Anchor
13 |
14 | const PopoverContent = React.forwardRef<
15 | React.ElementRef,
16 | React.ComponentPropsWithoutRef
17 | >(({ className, align = "center", sideOffset = 4, ...props }, ref) => (
18 |
19 |
29 |
30 | ))
31 | PopoverContent.displayName = PopoverPrimitive.Content.displayName
32 |
33 | export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor }
34 |
--------------------------------------------------------------------------------
/packages/generated/popover/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/progress/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-progress",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/progress.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./progress.css": "./styles/progress.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-progress": "1.0.3",
16 | "@radix-ui/react-icons": "1.3.0",
17 | "lucide-react": "0.373.0",
18 | "class-variance-authority": "0.7.0",
19 | "tailwind-merge": "2.3.0",
20 | "clsx": "2.1.1",
21 | "react": "^18.2.0",
22 | "react-dom": "^18.2.0"
23 | },
24 | "devDependencies": {
25 | "tailwindcss": "3.4.3",
26 | "tailwindcss-animate": "^1.0.7",
27 | "postcss": "8.4.38",
28 | "autoprefixer": "10.4.19",
29 | "@types/react": "^18.2.61",
30 | "@types/react-dom": "^18.2.19",
31 | "typescript": "^5.3.3"
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/packages/generated/progress/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/progress/src/default/progress.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 | import * as ProgressPrimitive from "@radix-ui/react-progress"
5 |
6 | import { cn } from "../lib"
7 |
8 | const Progress = React.forwardRef<
9 | React.ElementRef,
10 | React.ComponentPropsWithoutRef
11 | >(({ className, value, ...props }, ref) => (
12 |
20 |
24 |
25 | ))
26 | Progress.displayName = ProgressPrimitive.Root.displayName
27 |
28 | export { Progress }
29 |
--------------------------------------------------------------------------------
/packages/generated/progress/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/progress/src/new-york/progress.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 | import * as ProgressPrimitive from "@radix-ui/react-progress"
5 |
6 | import { cn } from "../lib"
7 |
8 | const Progress = React.forwardRef<
9 | React.ElementRef,
10 | React.ComponentPropsWithoutRef
11 | >(({ className, value, ...props }, ref) => (
12 |
20 |
24 |
25 | ))
26 | Progress.displayName = ProgressPrimitive.Root.displayName
27 |
28 | export { Progress }
29 |
--------------------------------------------------------------------------------
/packages/generated/progress/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/radio-group/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-radio-group",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/radio-group.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./radio-group.css": "./styles/radio-group.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-radio-group": "1.1.3",
16 | "@radix-ui/react-icons": "1.3.0",
17 | "lucide-react": "0.373.0",
18 | "class-variance-authority": "0.7.0",
19 | "tailwind-merge": "2.3.0",
20 | "clsx": "2.1.1",
21 | "react": "^18.2.0",
22 | "react-dom": "^18.2.0"
23 | },
24 | "devDependencies": {
25 | "tailwindcss": "3.4.3",
26 | "tailwindcss-animate": "^1.0.7",
27 | "postcss": "8.4.38",
28 | "autoprefixer": "10.4.19",
29 | "@types/react": "^18.2.61",
30 | "@types/react-dom": "^18.2.19",
31 | "typescript": "^5.3.3"
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/packages/generated/radio-group/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/radio-group/src/default/radio-group.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 | import * as RadioGroupPrimitive from "@radix-ui/react-radio-group"
5 | import { Circle } from "lucide-react"
6 |
7 | import { cn } from "../lib"
8 |
9 | const RadioGroup = React.forwardRef<
10 | React.ElementRef,
11 | React.ComponentPropsWithoutRef
12 | >(({ className, ...props }, ref) => {
13 | return (
14 |
19 | )
20 | })
21 | RadioGroup.displayName = RadioGroupPrimitive.Root.displayName
22 |
23 | const RadioGroupItem = React.forwardRef<
24 | React.ElementRef,
25 | React.ComponentPropsWithoutRef
26 | >(({ className, ...props }, ref) => {
27 | return (
28 |
36 |
37 |
38 |
39 |
40 | )
41 | })
42 | RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName
43 |
44 | export { RadioGroup, RadioGroupItem }
45 |
--------------------------------------------------------------------------------
/packages/generated/radio-group/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/radio-group/src/new-york/radio-group.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 | import { CheckIcon } from "@radix-ui/react-icons"
5 | import * as RadioGroupPrimitive from "@radix-ui/react-radio-group"
6 |
7 | import { cn } from "../lib"
8 |
9 | const RadioGroup = React.forwardRef<
10 | React.ElementRef,
11 | React.ComponentPropsWithoutRef
12 | >(({ className, ...props }, ref) => {
13 | return (
14 |
19 | )
20 | })
21 | RadioGroup.displayName = RadioGroupPrimitive.Root.displayName
22 |
23 | const RadioGroupItem = React.forwardRef<
24 | React.ElementRef,
25 | React.ComponentPropsWithoutRef
26 | >(({ className, ...props }, ref) => {
27 | return (
28 |
36 |
37 |
38 |
39 |
40 | )
41 | })
42 | RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName
43 |
44 | export { RadioGroup, RadioGroupItem }
45 |
--------------------------------------------------------------------------------
/packages/generated/radio-group/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/resizable/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-resizable",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/resizable.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./resizable.css": "./styles/resizable.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "react-resizable-panels": "2.0.18",
16 | "@radix-ui/react-icons": "1.3.0",
17 | "lucide-react": "0.373.0",
18 | "class-variance-authority": "0.7.0",
19 | "tailwind-merge": "2.3.0",
20 | "clsx": "2.1.1",
21 | "react": "^18.2.0",
22 | "react-dom": "^18.2.0"
23 | },
24 | "devDependencies": {
25 | "tailwindcss": "3.4.3",
26 | "tailwindcss-animate": "^1.0.7",
27 | "postcss": "8.4.38",
28 | "autoprefixer": "10.4.19",
29 | "@types/react": "^18.2.61",
30 | "@types/react-dom": "^18.2.19",
31 | "typescript": "^5.3.3"
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/packages/generated/resizable/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/resizable/src/default/resizable.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 |
5 | import { GripVertical } from "lucide-react"
6 | import * as ResizablePrimitive from "react-resizable-panels"
7 |
8 | import { cn } from "../lib"
9 |
10 | const ResizablePanelGroup = ({
11 | className,
12 | ...props
13 | }: React.ComponentProps) => (
14 |
21 | )
22 |
23 | const ResizablePanel = ResizablePrimitive.Panel
24 |
25 | const ResizableHandle = ({
26 | withHandle,
27 | className,
28 | ...props
29 | }: React.ComponentProps & {
30 | withHandle?: boolean
31 | }) => (
32 | div]:rotate-90",
35 | className
36 | )}
37 | {...props}
38 | >
39 | {withHandle && (
40 |
41 |
42 |
43 | )}
44 |
45 | )
46 |
47 | export { ResizablePanelGroup, ResizablePanel, ResizableHandle }
48 |
--------------------------------------------------------------------------------
/packages/generated/resizable/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/resizable/src/new-york/resizable.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 |
5 | import { DragHandleDots2Icon } from "@radix-ui/react-icons"
6 | import * as ResizablePrimitive from "react-resizable-panels"
7 |
8 | import { cn } from "../lib"
9 |
10 | const ResizablePanelGroup = ({
11 | className,
12 | ...props
13 | }: React.ComponentProps) => (
14 |
21 | )
22 |
23 | const ResizablePanel = ResizablePrimitive.Panel
24 |
25 | const ResizableHandle = ({
26 | withHandle,
27 | className,
28 | ...props
29 | }: React.ComponentProps & {
30 | withHandle?: boolean
31 | }) => (
32 | div]:rotate-90",
35 | className
36 | )}
37 | {...props}
38 | >
39 | {withHandle && (
40 |
41 |
42 |
43 | )}
44 |
45 | )
46 |
47 | export { ResizablePanelGroup, ResizablePanel, ResizableHandle }
48 |
--------------------------------------------------------------------------------
/packages/generated/resizable/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/scroll-area/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-scroll-area",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/scroll-area.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./scroll-area.css": "./styles/scroll-area.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-scroll-area": "1.0.5",
16 | "@radix-ui/react-icons": "1.3.0",
17 | "lucide-react": "0.373.0",
18 | "class-variance-authority": "0.7.0",
19 | "tailwind-merge": "2.3.0",
20 | "clsx": "2.1.1",
21 | "react": "^18.2.0",
22 | "react-dom": "^18.2.0"
23 | },
24 | "devDependencies": {
25 | "tailwindcss": "3.4.3",
26 | "tailwindcss-animate": "^1.0.7",
27 | "postcss": "8.4.38",
28 | "autoprefixer": "10.4.19",
29 | "@types/react": "^18.2.61",
30 | "@types/react-dom": "^18.2.19",
31 | "typescript": "^5.3.3"
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/packages/generated/scroll-area/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/scroll-area/src/default/scroll-area.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 | import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area"
5 |
6 | import { cn } from "../lib"
7 |
8 | const ScrollArea = React.forwardRef<
9 | React.ElementRef,
10 | React.ComponentPropsWithoutRef
11 | >(({ className, children, ...props }, ref) => (
12 |
17 |
18 | {children}
19 |
20 |
21 |
22 |
23 | ))
24 | ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName
25 |
26 | const ScrollBar = React.forwardRef<
27 | React.ElementRef,
28 | React.ComponentPropsWithoutRef
29 | >(({ className, orientation = "vertical", ...props }, ref) => (
30 |
43 |
44 |
45 | ))
46 | ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName
47 |
48 | export { ScrollArea, ScrollBar }
49 |
--------------------------------------------------------------------------------
/packages/generated/scroll-area/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/scroll-area/src/new-york/scroll-area.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 | import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area"
5 |
6 | import { cn } from "../lib"
7 |
8 | const ScrollArea = React.forwardRef<
9 | React.ElementRef,
10 | React.ComponentPropsWithoutRef
11 | >(({ className, children, ...props }, ref) => (
12 |
17 |
18 | {children}
19 |
20 |
21 |
22 |
23 | ))
24 | ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName
25 |
26 | const ScrollBar = React.forwardRef<
27 | React.ElementRef,
28 | React.ComponentPropsWithoutRef
29 | >(({ className, orientation = "vertical", ...props }, ref) => (
30 |
43 |
44 |
45 | ))
46 | ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName
47 |
48 | export { ScrollArea, ScrollBar }
49 |
--------------------------------------------------------------------------------
/packages/generated/scroll-area/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/select/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-select",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/select.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./select.css": "./styles/select.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-select": "2.0.0",
16 | "@radix-ui/react-icons": "1.3.0",
17 | "lucide-react": "0.373.0",
18 | "class-variance-authority": "0.7.0",
19 | "tailwind-merge": "2.3.0",
20 | "clsx": "2.1.1",
21 | "react": "^18.2.0",
22 | "react-dom": "^18.2.0"
23 | },
24 | "devDependencies": {
25 | "tailwindcss": "3.4.3",
26 | "tailwindcss-animate": "^1.0.7",
27 | "postcss": "8.4.38",
28 | "autoprefixer": "10.4.19",
29 | "@types/react": "^18.2.61",
30 | "@types/react-dom": "^18.2.19",
31 | "typescript": "^5.3.3"
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/packages/generated/select/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/select/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/select/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/separator/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-separator",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/separator.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./separator.css": "./styles/separator.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-separator": "1.0.3",
16 | "@radix-ui/react-icons": "1.3.0",
17 | "lucide-react": "0.373.0",
18 | "class-variance-authority": "0.7.0",
19 | "tailwind-merge": "2.3.0",
20 | "clsx": "2.1.1",
21 | "react": "^18.2.0",
22 | "react-dom": "^18.2.0"
23 | },
24 | "devDependencies": {
25 | "tailwindcss": "3.4.3",
26 | "tailwindcss-animate": "^1.0.7",
27 | "postcss": "8.4.38",
28 | "autoprefixer": "10.4.19",
29 | "@types/react": "^18.2.61",
30 | "@types/react-dom": "^18.2.19",
31 | "typescript": "^5.3.3"
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/packages/generated/separator/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/separator/src/default/separator.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 | import * as SeparatorPrimitive from "@radix-ui/react-separator"
5 |
6 | import { cn } from "../lib"
7 |
8 | const Separator = React.forwardRef<
9 | React.ElementRef,
10 | React.ComponentPropsWithoutRef
11 | >(
12 | (
13 | { className, orientation = "horizontal", decorative = true, ...props },
14 | ref
15 | ) => (
16 |
27 | )
28 | )
29 | Separator.displayName = SeparatorPrimitive.Root.displayName
30 |
31 | export { Separator }
32 |
--------------------------------------------------------------------------------
/packages/generated/separator/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/separator/src/new-york/separator.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 | import * as SeparatorPrimitive from "@radix-ui/react-separator"
5 |
6 | import { cn } from "../lib"
7 |
8 | const Separator = React.forwardRef<
9 | React.ElementRef,
10 | React.ComponentPropsWithoutRef
11 | >(
12 | (
13 | { className, orientation = "horizontal", decorative = true, ...props },
14 | ref
15 | ) => (
16 |
27 | )
28 | )
29 | Separator.displayName = SeparatorPrimitive.Root.displayName
30 |
31 | export { Separator }
32 |
--------------------------------------------------------------------------------
/packages/generated/separator/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/sheet/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-sheet",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/sheet.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./sheet.css": "./styles/sheet.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-dialog": "1.0.5",
16 | "@radix-ui/react-icons": "1.3.0",
17 | "lucide-react": "0.373.0",
18 | "class-variance-authority": "0.7.0",
19 | "tailwind-merge": "2.3.0",
20 | "clsx": "2.1.1",
21 | "react": "^18.2.0",
22 | "react-dom": "^18.2.0"
23 | },
24 | "devDependencies": {
25 | "tailwindcss": "3.4.3",
26 | "tailwindcss-animate": "^1.0.7",
27 | "postcss": "8.4.38",
28 | "autoprefixer": "10.4.19",
29 | "@types/react": "^18.2.61",
30 | "@types/react-dom": "^18.2.19",
31 | "typescript": "^5.3.3"
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/packages/generated/sheet/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/sheet/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/sheet/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/skeleton/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-skeleton",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/skeleton.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./skeleton.css": "./styles/skeleton.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-icons": "1.3.0",
16 | "lucide-react": "0.373.0",
17 | "class-variance-authority": "0.7.0",
18 | "tailwind-merge": "2.3.0",
19 | "clsx": "2.1.1",
20 | "react": "^18.2.0",
21 | "react-dom": "^18.2.0"
22 | },
23 | "devDependencies": {
24 | "tailwindcss": "3.4.3",
25 | "tailwindcss-animate": "^1.0.7",
26 | "postcss": "8.4.38",
27 | "autoprefixer": "10.4.19",
28 | "@types/react": "^18.2.61",
29 | "@types/react-dom": "^18.2.19",
30 | "typescript": "^5.3.3"
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/packages/generated/skeleton/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/skeleton/src/default/skeleton.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 | import { cn } from "../lib"
5 |
6 | function Skeleton({
7 | className,
8 | ...props
9 | }: React.HTMLAttributes) {
10 | return (
11 |
15 | )
16 | }
17 |
18 | export { Skeleton }
19 |
--------------------------------------------------------------------------------
/packages/generated/skeleton/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/skeleton/src/new-york/skeleton.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 | import { cn } from "../lib"
5 |
6 | function Skeleton({
7 | className,
8 | ...props
9 | }: React.HTMLAttributes) {
10 | return (
11 |
15 | )
16 | }
17 |
18 | export { Skeleton }
19 |
--------------------------------------------------------------------------------
/packages/generated/skeleton/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/slider/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-slider",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/slider.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./slider.css": "./styles/slider.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-slider": "1.1.2",
16 | "@radix-ui/react-icons": "1.3.0",
17 | "lucide-react": "0.373.0",
18 | "class-variance-authority": "0.7.0",
19 | "tailwind-merge": "2.3.0",
20 | "clsx": "2.1.1",
21 | "react": "^18.2.0",
22 | "react-dom": "^18.2.0"
23 | },
24 | "devDependencies": {
25 | "tailwindcss": "3.4.3",
26 | "tailwindcss-animate": "^1.0.7",
27 | "postcss": "8.4.38",
28 | "autoprefixer": "10.4.19",
29 | "@types/react": "^18.2.61",
30 | "@types/react-dom": "^18.2.19",
31 | "typescript": "^5.3.3"
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/packages/generated/slider/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/slider/src/default/slider.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 | import * as SliderPrimitive from "@radix-ui/react-slider"
5 |
6 | import { cn } from "../lib"
7 |
8 | const Slider = React.forwardRef<
9 | React.ElementRef,
10 | React.ComponentPropsWithoutRef
11 | >(({ className, ...props }, ref) => (
12 |
20 |
21 |
22 |
23 |
24 |
25 | ))
26 | Slider.displayName = SliderPrimitive.Root.displayName
27 |
28 | export { Slider }
29 |
--------------------------------------------------------------------------------
/packages/generated/slider/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/slider/src/new-york/slider.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 | import * as SliderPrimitive from "@radix-ui/react-slider"
5 |
6 | import { cn } from "../lib"
7 |
8 | const Slider = React.forwardRef<
9 | React.ElementRef,
10 | React.ComponentPropsWithoutRef
11 | >(({ className, ...props }, ref) => (
12 |
20 |
21 |
22 |
23 |
24 |
25 | ))
26 | Slider.displayName = SliderPrimitive.Root.displayName
27 |
28 | export { Slider }
29 |
--------------------------------------------------------------------------------
/packages/generated/slider/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/sonner/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-sonner",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/sonner.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./sonner.css": "./styles/sonner.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "sonner": "1.4.41",
16 | "next-themes": "0.3.0",
17 | "@radix-ui/react-icons": "1.3.0",
18 | "lucide-react": "0.373.0",
19 | "class-variance-authority": "0.7.0",
20 | "tailwind-merge": "2.3.0",
21 | "clsx": "2.1.1",
22 | "react": "^18.2.0",
23 | "react-dom": "^18.2.0"
24 | },
25 | "devDependencies": {
26 | "tailwindcss": "3.4.3",
27 | "tailwindcss-animate": "^1.0.7",
28 | "postcss": "8.4.38",
29 | "autoprefixer": "10.4.19",
30 | "@types/react": "^18.2.61",
31 | "@types/react-dom": "^18.2.19",
32 | "typescript": "^5.3.3"
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/packages/generated/sonner/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/sonner/src/default/sonner.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 |
5 | import { useTheme } from "next-themes"
6 | import { Toaster as Sonner } from "sonner"
7 |
8 | type ToasterProps = React.ComponentProps
9 |
10 | const Toaster = ({ ...props }: ToasterProps) => {
11 | const { theme = "system" } = useTheme()
12 |
13 | return (
14 |
30 | )
31 | }
32 |
33 | export { Toaster }
34 |
--------------------------------------------------------------------------------
/packages/generated/sonner/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/sonner/src/new-york/sonner.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 |
5 | import { useTheme } from "next-themes"
6 | import { Toaster as Sonner } from "sonner"
7 |
8 | type ToasterProps = React.ComponentProps
9 |
10 | const Toaster = ({ ...props }: ToasterProps) => {
11 | const { theme = "system" } = useTheme()
12 |
13 | return (
14 |
30 | )
31 | }
32 |
33 | export { Toaster }
34 |
--------------------------------------------------------------------------------
/packages/generated/sonner/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/switch/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-switch",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/switch.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./switch.css": "./styles/switch.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-switch": "1.0.3",
16 | "@radix-ui/react-icons": "1.3.0",
17 | "lucide-react": "0.373.0",
18 | "class-variance-authority": "0.7.0",
19 | "tailwind-merge": "2.3.0",
20 | "clsx": "2.1.1",
21 | "react": "^18.2.0",
22 | "react-dom": "^18.2.0"
23 | },
24 | "devDependencies": {
25 | "tailwindcss": "3.4.3",
26 | "tailwindcss-animate": "^1.0.7",
27 | "postcss": "8.4.38",
28 | "autoprefixer": "10.4.19",
29 | "@types/react": "^18.2.61",
30 | "@types/react-dom": "^18.2.19",
31 | "typescript": "^5.3.3"
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/packages/generated/switch/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/switch/src/default/switch.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 | import * as SwitchPrimitives from "@radix-ui/react-switch"
5 |
6 | import { cn } from "../lib"
7 |
8 | const Switch = React.forwardRef<
9 | React.ElementRef,
10 | React.ComponentPropsWithoutRef
11 | >(({ className, ...props }, ref) => (
12 |
20 |
25 |
26 | ))
27 | Switch.displayName = SwitchPrimitives.Root.displayName
28 |
29 | export { Switch }
30 |
--------------------------------------------------------------------------------
/packages/generated/switch/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/switch/src/new-york/switch.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 | import * as SwitchPrimitives from "@radix-ui/react-switch"
5 |
6 | import { cn } from "../lib"
7 |
8 | const Switch = React.forwardRef<
9 | React.ElementRef,
10 | React.ComponentPropsWithoutRef
11 | >(({ className, ...props }, ref) => (
12 |
20 |
25 |
26 | ))
27 | Switch.displayName = SwitchPrimitives.Root.displayName
28 |
29 | export { Switch }
30 |
--------------------------------------------------------------------------------
/packages/generated/switch/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/table/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-table",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/table.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./table.css": "./styles/table.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-icons": "1.3.0",
16 | "lucide-react": "0.373.0",
17 | "class-variance-authority": "0.7.0",
18 | "tailwind-merge": "2.3.0",
19 | "clsx": "2.1.1",
20 | "react": "^18.2.0",
21 | "react-dom": "^18.2.0"
22 | },
23 | "devDependencies": {
24 | "tailwindcss": "3.4.3",
25 | "tailwindcss-animate": "^1.0.7",
26 | "postcss": "8.4.38",
27 | "autoprefixer": "10.4.19",
28 | "@types/react": "^18.2.61",
29 | "@types/react-dom": "^18.2.19",
30 | "typescript": "^5.3.3"
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/packages/generated/table/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/table/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/table/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/tabs/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-tabs",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/tabs.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./tabs.css": "./styles/tabs.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-tabs": "1.0.4",
16 | "@radix-ui/react-icons": "1.3.0",
17 | "lucide-react": "0.373.0",
18 | "class-variance-authority": "0.7.0",
19 | "tailwind-merge": "2.3.0",
20 | "clsx": "2.1.1",
21 | "react": "^18.2.0",
22 | "react-dom": "^18.2.0"
23 | },
24 | "devDependencies": {
25 | "tailwindcss": "3.4.3",
26 | "tailwindcss-animate": "^1.0.7",
27 | "postcss": "8.4.38",
28 | "autoprefixer": "10.4.19",
29 | "@types/react": "^18.2.61",
30 | "@types/react-dom": "^18.2.19",
31 | "typescript": "^5.3.3"
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/packages/generated/tabs/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/tabs/src/default/tabs.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 | import * as TabsPrimitive from "@radix-ui/react-tabs"
5 |
6 | import { cn } from "../lib"
7 |
8 | const Tabs = TabsPrimitive.Root
9 |
10 | const TabsList = React.forwardRef<
11 | React.ElementRef,
12 | React.ComponentPropsWithoutRef
13 | >(({ className, ...props }, ref) => (
14 |
22 | ))
23 | TabsList.displayName = TabsPrimitive.List.displayName
24 |
25 | const TabsTrigger = React.forwardRef<
26 | React.ElementRef,
27 | React.ComponentPropsWithoutRef
28 | >(({ className, ...props }, ref) => (
29 |
37 | ))
38 | TabsTrigger.displayName = TabsPrimitive.Trigger.displayName
39 |
40 | const TabsContent = React.forwardRef<
41 | React.ElementRef,
42 | React.ComponentPropsWithoutRef
43 | >(({ className, ...props }, ref) => (
44 |
52 | ))
53 | TabsContent.displayName = TabsPrimitive.Content.displayName
54 |
55 | export { Tabs, TabsList, TabsTrigger, TabsContent }
56 |
--------------------------------------------------------------------------------
/packages/generated/tabs/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/tabs/src/new-york/tabs.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 | import * as TabsPrimitive from "@radix-ui/react-tabs"
5 |
6 | import { cn } from "../lib"
7 |
8 | const Tabs = TabsPrimitive.Root
9 |
10 | const TabsList = React.forwardRef<
11 | React.ElementRef,
12 | React.ComponentPropsWithoutRef
13 | >(({ className, ...props }, ref) => (
14 |
22 | ))
23 | TabsList.displayName = TabsPrimitive.List.displayName
24 |
25 | const TabsTrigger = React.forwardRef<
26 | React.ElementRef,
27 | React.ComponentPropsWithoutRef
28 | >(({ className, ...props }, ref) => (
29 |
37 | ))
38 | TabsTrigger.displayName = TabsPrimitive.Trigger.displayName
39 |
40 | const TabsContent = React.forwardRef<
41 | React.ElementRef,
42 | React.ComponentPropsWithoutRef
43 | >(({ className, ...props }, ref) => (
44 |
52 | ))
53 | TabsContent.displayName = TabsPrimitive.Content.displayName
54 |
55 | export { Tabs, TabsList, TabsTrigger, TabsContent }
56 |
--------------------------------------------------------------------------------
/packages/generated/tabs/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/textarea/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-textarea",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/textarea.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./textarea.css": "./styles/textarea.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-icons": "1.3.0",
16 | "lucide-react": "0.373.0",
17 | "class-variance-authority": "0.7.0",
18 | "tailwind-merge": "2.3.0",
19 | "clsx": "2.1.1",
20 | "react": "^18.2.0",
21 | "react-dom": "^18.2.0"
22 | },
23 | "devDependencies": {
24 | "tailwindcss": "3.4.3",
25 | "tailwindcss-animate": "^1.0.7",
26 | "postcss": "8.4.38",
27 | "autoprefixer": "10.4.19",
28 | "@types/react": "^18.2.61",
29 | "@types/react-dom": "^18.2.19",
30 | "typescript": "^5.3.3"
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/packages/generated/textarea/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/textarea/src/default/textarea.tsx:
--------------------------------------------------------------------------------
1 | import * as React from "react"
2 |
3 | import { cn } from "../lib"
4 |
5 | export interface TextareaProps
6 | extends React.TextareaHTMLAttributes {}
7 |
8 | const Textarea = React.forwardRef(
9 | ({ className, ...props }, ref) => {
10 | return (
11 |
19 | )
20 | }
21 | )
22 | Textarea.displayName = "Textarea"
23 |
24 | export { Textarea }
25 |
--------------------------------------------------------------------------------
/packages/generated/textarea/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/textarea/src/new-york/textarea.tsx:
--------------------------------------------------------------------------------
1 | import * as React from "react"
2 |
3 | import { cn } from "../lib"
4 |
5 | export interface TextareaProps
6 | extends React.TextareaHTMLAttributes {}
7 |
8 | const Textarea = React.forwardRef(
9 | ({ className, ...props }, ref) => {
10 | return (
11 |
19 | )
20 | }
21 | )
22 | Textarea.displayName = "Textarea"
23 |
24 | export { Textarea }
25 |
--------------------------------------------------------------------------------
/packages/generated/textarea/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/toast/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-toast",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/toast.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./toast.css": "./styles/toast.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-toast": "1.1.5",
16 | "@radix-ui/react-icons": "1.3.0",
17 | "lucide-react": "0.373.0",
18 | "class-variance-authority": "0.7.0",
19 | "tailwind-merge": "2.3.0",
20 | "clsx": "2.1.1",
21 | "react": "^18.2.0",
22 | "react-dom": "^18.2.0"
23 | },
24 | "devDependencies": {
25 | "tailwindcss": "3.4.3",
26 | "tailwindcss-animate": "^1.0.7",
27 | "postcss": "8.4.38",
28 | "autoprefixer": "10.4.19",
29 | "@types/react": "^18.2.61",
30 | "@types/react-dom": "^18.2.19",
31 | "typescript": "^5.3.3"
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/packages/generated/toast/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/toast/src/default/toaster.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 |
5 | import {
6 | Toast,
7 | ToastClose,
8 | ToastDescription,
9 | ToastProvider,
10 | ToastTitle,
11 | ToastViewport,
12 | } from "@teovilla/shadcn-ui-react-toast/default/toast"
13 | import { useToast } from "./use-toast"
14 |
15 | export function Toaster() {
16 | const { toasts } = useToast()
17 |
18 | return (
19 |
20 | {toasts.map(function ({ id, title, description, action, ...props }) {
21 | return (
22 |
23 |
24 | {title && {title}}
25 | {description && (
26 | {description}
27 | )}
28 |
29 | {action}
30 |
31 |
32 | )
33 | })}
34 |
35 |
36 | )
37 | }
38 |
--------------------------------------------------------------------------------
/packages/generated/toast/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/toast/src/new-york/toaster.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 |
5 | import {
6 | Toast,
7 | ToastClose,
8 | ToastDescription,
9 | ToastProvider,
10 | ToastTitle,
11 | ToastViewport,
12 | } from "@teovilla/shadcn-ui-react-toast/new-york/toast"
13 | import { useToast } from "./use-toast"
14 |
15 | export function Toaster() {
16 | const { toasts } = useToast()
17 |
18 | return (
19 |
20 | {toasts.map(function ({ id, title, description, action, ...props }) {
21 | return (
22 |
23 |
24 | {title && {title}}
25 | {description && (
26 | {description}
27 | )}
28 |
29 | {action}
30 |
31 |
32 | )
33 | })}
34 |
35 |
36 | )
37 | }
38 |
--------------------------------------------------------------------------------
/packages/generated/toast/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/toggle-group/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-toggle-group",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/toggle-group.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./toggle-group.css": "./styles/toggle-group.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-toggle-group": "1.0.4",
16 | "@radix-ui/react-toggle": "1.0.3",
17 | "@radix-ui/react-icons": "1.3.0",
18 | "lucide-react": "0.373.0",
19 | "class-variance-authority": "0.7.0",
20 | "tailwind-merge": "2.3.0",
21 | "clsx": "2.1.1",
22 | "react": "^18.2.0",
23 | "react-dom": "^18.2.0",
24 | "@teovilla/shadcn-ui-react-toggle": "workspace:*"
25 | },
26 | "devDependencies": {
27 | "tailwindcss": "3.4.3",
28 | "tailwindcss-animate": "^1.0.7",
29 | "postcss": "8.4.38",
30 | "autoprefixer": "10.4.19",
31 | "@types/react": "^18.2.61",
32 | "@types/react-dom": "^18.2.19",
33 | "typescript": "^5.3.3"
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/packages/generated/toggle-group/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/toggle-group/src/default/toggle-group.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 | import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group"
5 | import { VariantProps } from "class-variance-authority"
6 |
7 | import { cn } from "../lib"
8 | import { toggleVariants } from "@teovilla/shadcn-ui-react-toggle/default/toggle"
9 |
10 | const ToggleGroupContext = React.createContext<
11 | VariantProps
12 | >({
13 | size: "default",
14 | variant: "default",
15 | })
16 |
17 | const ToggleGroup = React.forwardRef<
18 | React.ElementRef,
19 | React.ComponentPropsWithoutRef &
20 | VariantProps
21 | >(({ className, variant, size, children, ...props }, ref) => (
22 |
27 |
28 | {children}
29 |
30 |
31 | ))
32 |
33 | ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName
34 |
35 | const ToggleGroupItem = React.forwardRef<
36 | React.ElementRef,
37 | React.ComponentPropsWithoutRef &
38 | VariantProps
39 | >(({ className, children, variant, size, ...props }, ref) => {
40 | const context = React.useContext(ToggleGroupContext)
41 |
42 | return (
43 |
54 | {children}
55 |
56 | )
57 | })
58 |
59 | ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName
60 |
61 | export { ToggleGroup, ToggleGroupItem }
62 |
--------------------------------------------------------------------------------
/packages/generated/toggle-group/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/toggle-group/src/new-york/toggle-group.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 | import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group"
5 | import { VariantProps } from "class-variance-authority"
6 |
7 | import { cn } from "../lib"
8 | import { toggleVariants } from "@teovilla/shadcn-ui-react-toggle/new-york/toggle"
9 |
10 | const ToggleGroupContext = React.createContext<
11 | VariantProps
12 | >({
13 | size: "default",
14 | variant: "default",
15 | })
16 |
17 | const ToggleGroup = React.forwardRef<
18 | React.ElementRef,
19 | React.ComponentPropsWithoutRef &
20 | VariantProps
21 | >(({ className, variant, size, children, ...props }, ref) => (
22 |
27 |
28 | {children}
29 |
30 |
31 | ))
32 |
33 | ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName
34 |
35 | const ToggleGroupItem = React.forwardRef<
36 | React.ElementRef,
37 | React.ComponentPropsWithoutRef &
38 | VariantProps
39 | >(({ className, children, variant, size, ...props }, ref) => {
40 | const context = React.useContext(ToggleGroupContext)
41 |
42 | return (
43 |
54 | {children}
55 |
56 | )
57 | })
58 |
59 | ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName
60 |
61 | export { ToggleGroup, ToggleGroupItem }
62 |
--------------------------------------------------------------------------------
/packages/generated/toggle-group/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/toggle/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-toggle",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/toggle.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./toggle.css": "./styles/toggle.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-toggle": "1.0.3",
16 | "@radix-ui/react-icons": "1.3.0",
17 | "lucide-react": "0.373.0",
18 | "class-variance-authority": "0.7.0",
19 | "tailwind-merge": "2.3.0",
20 | "clsx": "2.1.1",
21 | "react": "^18.2.0",
22 | "react-dom": "^18.2.0"
23 | },
24 | "devDependencies": {
25 | "tailwindcss": "3.4.3",
26 | "tailwindcss-animate": "^1.0.7",
27 | "postcss": "8.4.38",
28 | "autoprefixer": "10.4.19",
29 | "@types/react": "^18.2.61",
30 | "@types/react-dom": "^18.2.19",
31 | "typescript": "^5.3.3"
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/packages/generated/toggle/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/toggle/src/default/toggle.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 | import * as TogglePrimitive from "@radix-ui/react-toggle"
5 | import { cva, type VariantProps } from "class-variance-authority"
6 |
7 | import { cn } from "../lib"
8 |
9 | const toggleVariants = cva(
10 | "inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",
11 | {
12 | variants: {
13 | variant: {
14 | default: "bg-transparent",
15 | outline:
16 | "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground",
17 | },
18 | size: {
19 | default: "h-10 px-3",
20 | sm: "h-9 px-2.5",
21 | lg: "h-11 px-5",
22 | },
23 | },
24 | defaultVariants: {
25 | variant: "default",
26 | size: "default",
27 | },
28 | }
29 | )
30 |
31 | const Toggle = React.forwardRef<
32 | React.ElementRef,
33 | React.ComponentPropsWithoutRef &
34 | VariantProps
35 | >(({ className, variant, size, ...props }, ref) => (
36 |
41 | ))
42 |
43 | Toggle.displayName = TogglePrimitive.Root.displayName
44 |
45 | export { Toggle, toggleVariants }
46 |
--------------------------------------------------------------------------------
/packages/generated/toggle/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/toggle/src/new-york/toggle.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 | import * as TogglePrimitive from "@radix-ui/react-toggle"
5 | import { cva, type VariantProps } from "class-variance-authority"
6 |
7 | import { cn } from "../lib"
8 |
9 | const toggleVariants = cva(
10 | "inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",
11 | {
12 | variants: {
13 | variant: {
14 | default: "bg-transparent",
15 | outline:
16 | "border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground",
17 | },
18 | size: {
19 | default: "h-9 px-3",
20 | sm: "h-8 px-2",
21 | lg: "h-10 px-3",
22 | },
23 | },
24 | defaultVariants: {
25 | variant: "default",
26 | size: "default",
27 | },
28 | }
29 | )
30 |
31 | const Toggle = React.forwardRef<
32 | React.ElementRef,
33 | React.ComponentPropsWithoutRef &
34 | VariantProps
35 | >(({ className, variant, size, ...props }, ref) => (
36 |
41 | ))
42 |
43 | Toggle.displayName = TogglePrimitive.Root.displayName
44 |
45 | export { Toggle, toggleVariants }
46 |
--------------------------------------------------------------------------------
/packages/generated/toggle/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generated/tooltip/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@teovilla/shadcn-ui-react-tooltip",
3 | "author": "Teodoro Villanueva ",
4 | "scripts": {
5 | "build": "tsc && tailwindcss -o styles/tooltip.css --minify",
6 | "publish-package": "npm version patch --no-git-checks && pnpm publish --no-git-checks"
7 | },
8 | "exports": {
9 | "./tooltip.css": "./styles/tooltip.css",
10 | "./default/*": "./dist/default/*.js",
11 | "./new-york/*": "./dist/new-york/*.js"
12 | },
13 | "version": "1.0.17",
14 | "dependencies": {
15 | "@radix-ui/react-tooltip": "1.0.7",
16 | "@radix-ui/react-icons": "1.3.0",
17 | "lucide-react": "0.373.0",
18 | "class-variance-authority": "0.7.0",
19 | "tailwind-merge": "2.3.0",
20 | "clsx": "2.1.1",
21 | "react": "^18.2.0",
22 | "react-dom": "^18.2.0"
23 | },
24 | "devDependencies": {
25 | "tailwindcss": "3.4.3",
26 | "tailwindcss-animate": "^1.0.7",
27 | "postcss": "8.4.38",
28 | "autoprefixer": "10.4.19",
29 | "@types/react": "^18.2.61",
30 | "@types/react-dom": "^18.2.19",
31 | "typescript": "^5.3.3"
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/packages/generated/tooltip/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generated/tooltip/src/default/tooltip.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 | import * as TooltipPrimitive from "@radix-ui/react-tooltip"
5 |
6 | import { cn } from "../lib"
7 |
8 | const TooltipProvider = TooltipPrimitive.Provider
9 |
10 | const Tooltip = TooltipPrimitive.Root
11 |
12 | const TooltipTrigger = TooltipPrimitive.Trigger
13 |
14 | const TooltipContent = React.forwardRef<
15 | React.ElementRef,
16 | React.ComponentPropsWithoutRef
17 | >(({ className, sideOffset = 4, ...props }, ref) => (
18 |
27 | ))
28 | TooltipContent.displayName = TooltipPrimitive.Content.displayName
29 |
30 | export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }
31 |
--------------------------------------------------------------------------------
/packages/generated/tooltip/src/lib.ts:
--------------------------------------------------------------------------------
1 | import { clsx } from "clsx";
2 | import type { ClassValue } from "clsx";
3 | import { twMerge } from "tailwind-merge";
4 |
5 | export function cn(...inputs: ClassValue[]) {
6 | return twMerge(clsx(inputs));
7 | }
--------------------------------------------------------------------------------
/packages/generated/tooltip/src/new-york/tooltip.tsx:
--------------------------------------------------------------------------------
1 | "use client"
2 |
3 | import * as React from "react"
4 | import * as TooltipPrimitive from "@radix-ui/react-tooltip"
5 |
6 | import { cn } from "../lib"
7 |
8 | const TooltipProvider = TooltipPrimitive.Provider
9 |
10 | const Tooltip = TooltipPrimitive.Root
11 |
12 | const TooltipTrigger = TooltipPrimitive.Trigger
13 |
14 | const TooltipContent = React.forwardRef<
15 | React.ElementRef,
16 | React.ComponentPropsWithoutRef
17 | >(({ className, sideOffset = 4, ...props }, ref) => (
18 |
27 | ))
28 | TooltipContent.displayName = TooltipPrimitive.Content.displayName
29 |
30 | export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }
31 |
--------------------------------------------------------------------------------
/packages/generated/tooltip/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "baseUrl": ".",
4 | "outDir": "./dist",
5 | "rootDir": "./src",
6 | "skipLibCheck": true,
7 | "module": "NodeNext",
8 | "target": "es5",
9 | "lib": ["es6", "dom", "es2016", "es2017"],
10 | "jsx": "react",
11 | "moduleResolution": "nodenext",
12 | "allowSyntheticDefaultImports": true,
13 | "esModuleInterop": true
14 | },
15 | "include": ["src/**/*"],
16 | "exclude": [
17 | "node_modules",
18 | "dist"
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/packages/generator/.eslintrc.js:
--------------------------------------------------------------------------------
1 | /** @type {import("eslint").Linter.Config} */
2 | module.exports = {
3 | root: true,
4 | extends: ["@repo/eslint-config/library.js"],
5 | parser: "@typescript-eslint/parser",
6 | parserOptions: {
7 | project: "./tsconfig.lint.json",
8 | tsconfigRootDir: __dirname,
9 | },
10 | };
11 |
--------------------------------------------------------------------------------
/packages/generator/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@repo/generator",
3 | "version": "0.0.0",
4 | "private": true,
5 | "main": "index.ts",
6 | "scripts": {
7 | "generate": "tsx src/index.ts"
8 | },
9 | "devDependencies": {
10 | "@repo/eslint-config": "workspace:*",
11 | "@repo/typescript-config": "workspace:*",
12 | "@types/eslint": "^8.56.5",
13 | "@types/fs-extra": "^11.0.4",
14 | "@types/node": "^20.11.24",
15 | "@types/react-dom": "^18.2.19",
16 | "eslint": "^8.57.0",
17 | "tsx": "^4.7.3",
18 | "type-fest": "^4.17.0",
19 | "typescript": "^5.3.3"
20 | },
21 | "dependencies": {
22 | "@pnpm/find-workspace-dir": "^7.0.0",
23 | "fs-extra": "^11.2.0",
24 | "https-proxy-agent": "^7.0.4",
25 | "latest-version": "^9.0.0",
26 | "node-fetch": "^3.3.2",
27 | "outdent": "^0.8.0",
28 | "zod": "^3.23.4"
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/packages/generator/packageVersionCache.json:
--------------------------------------------------------------------------------
1 | {"@radix-ui/react-accordion":"1.1.2","@radix-ui/react-icons":"1.3.0","lucide-react":"0.373.0","class-variance-authority":"0.7.0","tailwind-merge":"2.3.0","clsx":"2.1.1","@types/react":"18.2.79","@types/react-dom":"18.2.25","@radix-ui/react-alert-dialog":"1.0.5","@radix-ui/react-slot":"1.0.2","@radix-ui/react-aspect-ratio":"1.0.3","@radix-ui/react-avatar":"1.0.4","react-day-picker":"8.10.1","date-fns":"3.6.0","embla-carousel-react":"8.0.2","@radix-ui/react-checkbox":"1.0.4","@radix-ui/react-collapsible":"1.0.3","cmdk":"1.0.0","@radix-ui/react-dialog":"1.0.5","@radix-ui/react-context-menu":"2.1.5","vaul":"0.9.0","@radix-ui/react-dropdown-menu":"2.0.6","@radix-ui/react-label":"2.0.2","@hookform/resolvers":"3.3.4","zod":"3.23.4","react-hook-form":"7.51.3","@radix-ui/react-hover-card":"1.0.7","input-otp":"1.2.4","@radix-ui/react-menubar":"1.0.4","@radix-ui/react-navigation-menu":"1.1.4","@radix-ui/react-popover":"1.0.7","@radix-ui/react-progress":"1.0.3","@radix-ui/react-radio-group":"1.1.3","react-resizable-panels":"2.0.18","@radix-ui/react-scroll-area":"1.0.5","@radix-ui/react-select":"2.0.0","@radix-ui/react-separator":"1.0.3","@radix-ui/react-slider":"1.1.2","sonner":"1.4.41","next-themes":"0.3.0","@radix-ui/react-switch":"1.0.3","@radix-ui/react-tabs":"1.0.4","@radix-ui/react-toast":"1.1.5","@radix-ui/react-toggle":"1.0.3","@radix-ui/react-toggle-group":"1.0.4","@radix-ui/react-tooltip":"1.0.7"}
--------------------------------------------------------------------------------
/packages/generator/postcss.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | tailwindcss: {},
4 | },
5 | };
6 |
--------------------------------------------------------------------------------
/packages/generator/src/index.ts:
--------------------------------------------------------------------------------
1 | import {
2 | fetchTree,
3 | getRegistryIndex,
4 | getRegistryStyles,
5 | resolveTree,
6 | } from "./registry";
7 | import fs from "fs-extra";
8 | import path from "path";
9 | import { getTemplatePackageFiles } from "./template";
10 |
11 | const workspaceRoot = path.resolve(__dirname, "../../..");
12 | const generatedPackagesPath = path.resolve(workspaceRoot, "packages/generated");
13 |
14 | async function main() {
15 | const registryStyles = await getRegistryStyles();
16 | const registryIndex = await getRegistryIndex();
17 | const tree = await resolveTree(
18 | registryIndex,
19 | registryIndex.map((c) => c.name)
20 | );
21 |
22 | for (const style of registryStyles) {
23 | const payload = await fetchTree(style.name, tree);
24 |
25 | for (const component of payload) {
26 | const files = await getTemplatePackageFiles(
27 | payload,
28 | registryStyles.map((s) => s.name),
29 | style.name,
30 | component
31 | );
32 | for (const file of files) {
33 | const filePath = path.resolve(
34 | generatedPackagesPath,
35 | component.name,
36 | file.name
37 | );
38 | fs.ensureFileSync(filePath);
39 | fs.writeFileSync(filePath, file.content);
40 | }
41 | }
42 | }
43 | }
44 |
45 | main();
46 |
--------------------------------------------------------------------------------
/packages/generator/src/schemas.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * This file is copied from
3 | * https://github.com/shadcn-ui/ui/blob/main/packages/cli/src/utils/registry/schema.ts
4 | */
5 |
6 | import { z } from "zod";
7 |
8 | export const registryItemSchema = z.object({
9 | name: z.string(),
10 | dependencies: z.array(z.string()).optional(),
11 | devDependencies: z.array(z.string()).optional(),
12 | registryDependencies: z.array(z.string()).optional(),
13 | files: z.array(z.string()),
14 | type: z.enum(["components:ui", "components:component", "components:example"]),
15 | });
16 |
17 | export const registryIndexSchema = z.array(registryItemSchema);
18 |
19 | export const registryItemWithContentSchema = registryItemSchema.extend({
20 | files: z.array(
21 | z.object({
22 | name: z.string(),
23 | content: z.string(),
24 | })
25 | ),
26 | });
27 |
28 | export const registryWithContentSchema = z.array(registryItemWithContentSchema);
29 |
30 | export const stylesSchema = z.array(
31 | z.object({
32 | name: z.string(),
33 | label: z.string(),
34 | })
35 | );
36 |
37 | export const registryBaseColorSchema = z.object({
38 | inlineColors: z.object({
39 | light: z.record(z.string(), z.string()),
40 | dark: z.record(z.string(), z.string()),
41 | }),
42 | cssVars: z.object({
43 | light: z.record(z.string(), z.string()),
44 | dark: z.record(z.string(), z.string()),
45 | }),
46 | inlineColorsTemplate: z.string(),
47 | cssVarsTemplate: z.string(),
48 | });
49 |
--------------------------------------------------------------------------------
/packages/generator/src/transform.ts:
--------------------------------------------------------------------------------
1 | import z from "zod";
2 | import { registryItemWithContentSchema } from "./schemas";
3 | import { getLocalRegistryPackageName } from "./template";
4 |
5 | export function transformRegistryFile(
6 | allComponents: string[],
7 | style: string,
8 | { registryDependencies = [] }: z.infer,
9 | {
10 | name,
11 | content,
12 | }: z.infer["files"][number]
13 | ): z.infer["files"][number] {
14 | let transformedContent = content;
15 |
16 | for (const dep of registryDependencies) {
17 | transformedContent = transformedContent.replace(
18 | `from "${dep}"`,
19 | `from "${getLocalRegistryPackageName(dep)}"/${style}/${dep}`
20 | );
21 | }
22 |
23 | for (const component of allComponents) {
24 | transformedContent = transformedContent.replaceAll(
25 | `from "@/registry/${style}/ui/${component}"`,
26 | `from "${getLocalRegistryPackageName(component)}/${style}/${component}"`
27 | );
28 | }
29 |
30 | transformedContent = transformedContent.replace(
31 | `from "@/lib/utils"`,
32 | `from "../lib"`
33 | );
34 |
35 | transformedContent = transformedContent.replaceAll(
36 | `@/registry/${style}/ui`,
37 | "."
38 | );
39 |
40 | if (!transformedContent.includes(`import * as React from "react"`)) {
41 | if (transformedContent.includes(`"use client"`)) {
42 | transformedContent = transformedContent.replace(
43 | `"use client"`,
44 | `"use client"\n\nimport * as React from "react"`
45 | );
46 | } else {
47 | transformedContent = `"use client"\n\nimport * as React from "react"\n${transformedContent}`;
48 | }
49 | }
50 |
51 | return {
52 | name: `src/${style}/${name.replace(".ts", ".tsx").replace(".tsxx", ".tsx")}`,
53 | content: transformedContent,
54 | };
55 | }
56 |
--------------------------------------------------------------------------------
/packages/generator/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "@repo/typescript-config/base.json",
3 | "compilerOptions": {
4 | "outDir": "dist"
5 | },
6 | "include": ["src"],
7 | "exclude": ["node_modules", "dist"]
8 | }
9 |
--------------------------------------------------------------------------------
/packages/generator/tsconfig.lint.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "@repo/typescript-config/react-library.json",
3 | "compilerOptions": {
4 | "outDir": "dist"
5 | },
6 | "include": ["src", "turbo"],
7 | "exclude": ["node_modules", "dist"]
8 | }
9 |
--------------------------------------------------------------------------------
/packages/typescript-config/base.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json.schemastore.org/tsconfig",
3 | "display": "Default",
4 | "compilerOptions": {
5 | "declaration": true,
6 | "declarationMap": true,
7 | "esModuleInterop": true,
8 | "incremental": false,
9 | "isolatedModules": true,
10 | "lib": ["es2022", "DOM", "DOM.Iterable"],
11 | "module": "NodeNext",
12 | "moduleDetection": "force",
13 | "moduleResolution": "NodeNext",
14 | "noUncheckedIndexedAccess": true,
15 | "resolveJsonModule": true,
16 | "skipLibCheck": true,
17 | "strict": true,
18 | "target": "ES2022"
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/packages/typescript-config/nextjs.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json.schemastore.org/tsconfig",
3 | "display": "Next.js",
4 | "extends": "./base.json",
5 | "compilerOptions": {
6 | "plugins": [{ "name": "next" }],
7 | "module": "ESNext",
8 | "moduleResolution": "Bundler",
9 | "allowJs": true,
10 | "jsx": "preserve",
11 | "noEmit": true
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/packages/typescript-config/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@repo/typescript-config",
3 | "version": "0.0.0",
4 | "private": true,
5 | "license": "MIT",
6 | "publishConfig": {
7 | "access": "public"
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/packages/typescript-config/react-library.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://json.schemastore.org/tsconfig",
3 | "display": "React Library",
4 | "extends": "./base.json",
5 | "compilerOptions": {
6 | "jsx": "react-jsx"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/pnpm-workspace.yaml:
--------------------------------------------------------------------------------
1 | packages:
2 | - "apps/*"
3 | - "packages/*"
4 | - "packages/generated/*"
5 |
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "@repo/typescript-config/base.json"
3 | }
4 |
--------------------------------------------------------------------------------
/turbo.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://turbo.build/schema.json",
3 | "globalDependencies": ["**/.env.*local"],
4 | "pipeline": {
5 | "build": {
6 | "dependsOn": ["^build"],
7 | "outputs": [".next/**", "!.next/cache/**"]
8 | },
9 | "lint": {
10 | "dependsOn": ["^lint"]
11 | },
12 | "publish-package": {
13 | "dependsOn": ["^build", "^publish-package"]
14 | },
15 | "dev": {
16 | "cache": false,
17 | "persistent": true
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------