@khanhminh/design-system 1.14.2 → 1.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  import type * as React from 'react';
2
- import { Button as ShadButton } from '@/components/ui/button';
2
+ import { Button as ShadButton } from '../../../components/ui/button';
3
3
  export type ButtonProps = React.ComponentProps<typeof ShadButton>;
@@ -1,3 +1,3 @@
1
1
  import type * as React from 'react';
2
- import { Checkbox as ShadCheckbox } from '@/components/ui/checkbox';
2
+ import { Checkbox as ShadCheckbox } from '../../../components/ui/checkbox';
3
3
  export type CheckboxProps = React.ComponentProps<typeof ShadCheckbox>;
@@ -1,3 +1,3 @@
1
1
  import type * as React from 'react';
2
- import { Input as ShadInput } from '@/components/ui/input';
2
+ import { Input as ShadInput } from '../../../components/ui/input';
3
3
  export type InputProps = React.ComponentProps<typeof ShadInput>;
@@ -1,3 +1,3 @@
1
1
  import type * as React from 'react';
2
- import { Label as ShadLabel } from '@/components/ui/label';
2
+ import { Label as ShadLabel } from '../../../components/ui/label';
3
3
  export type LabelProps = React.ComponentProps<typeof ShadLabel>;
@@ -1,3 +1,3 @@
1
1
  import type * as React from 'react';
2
- import { Separator as ShadSeparator } from '@/components/ui/separator';
2
+ import { Separator as ShadSeparator } from '../../../components/ui/separator';
3
3
  export type SeparatorProps = React.ComponentProps<typeof ShadSeparator>;
@@ -1,3 +1,3 @@
1
1
  import type * as React from 'react';
2
- import { Spinner as ShadSpinner } from '@/components/ui/spinner';
2
+ import { Spinner as ShadSpinner } from '../../../components/ui/spinner';
3
3
  export type SpinnerProps = React.ComponentProps<typeof ShadSpinner>;
@@ -1,8 +1,8 @@
1
- export { Button, type ButtonProps } from './base/Button';
2
- export { Input, type InputProps } from './base/Input';
3
- export { Spinner, type SpinnerProps } from './base/Spinner';
4
- export { Checkbox, type CheckboxProps } from './base/Checkbox';
5
- export { Label, type LabelProps } from './base/Label';
6
- export { Separator, type SeparatorProps } from './base/Separator';
7
- export { Switch, type SwitchProps } from './base/Switch';
8
- export { ScrollArea, type ScrollAreaProps } from './base/ScrollArea';
1
+ export * from './base/Button';
2
+ export * from './base/Input';
3
+ export * from './base/Spinner';
4
+ export * from './base/Checkbox';
5
+ export * from './base/Label';
6
+ export * from './base/Separator';
7
+ export * from './base/Switch';
8
+ export * from './base/ScrollArea';
@@ -1,4 +1,4 @@
1
- import { Theme } from '@/types';
1
+ import { Theme } from '../types';
2
2
  type ThemeState = {
3
3
  theme: Theme;
4
4
  setTheme: (theme: Theme) => void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@khanhminh/design-system",
3
3
  "description": "A reusable React component library built with TypeScript, Tailwind CSS, and Radix UI",
4
- "version": "1.14.2",
4
+ "version": "1.15.0",
5
5
  "type": "module",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs",
@@ -32,9 +32,9 @@
32
32
  ],
33
33
  "scripts": {
34
34
  "dev": "vite",
35
- "build": "tsc -b && rollup -c",
35
+ "build": "tsc -b && rollup -c && tsc-alias -p tsconfig.json --outDir dist",
36
36
  "build:vite": "tsc -b && vite build",
37
- "build:lib": "rollup -c",
37
+ "build:lib": "rollup -c && tsc-alias -p tsconfig.json --outDir dist",
38
38
  "lint": "eslint .",
39
39
  "preview": "vite preview",
40
40
  "pre-commit": "lint-staged",
@@ -86,6 +86,7 @@
86
86
  "rollup-plugin-postcss": "^4.0.2",
87
87
  "shadcn": "^3.8.5",
88
88
  "tailwindcss": "^4.1.7",
89
+ "tsc-alias": "^1.8.16",
89
90
  "tw-animate-css": "^1.4.0",
90
91
  "typescript": "^5.9.3",
91
92
  "typescript-eslint": "^8.11.0",
@@ -96,6 +97,16 @@
96
97
  "react": "^18 || ^19",
97
98
  "react-dom": "^18 || ^19"
98
99
  },
100
+ "typesVersions": {
101
+ "*": {
102
+ "components": [
103
+ "dist/components/index.d.ts"
104
+ ],
105
+ "components/*": [
106
+ "dist/components/*/index.d.ts"
107
+ ]
108
+ }
109
+ },
99
110
  "lint-staged": {
100
111
  "src/**/*.{js,jsx,ts,tsx,json,css,scss,md}": [
101
112
  "prettier --write",