@craftzbay/ui 0.7.1 → 0.8.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.
@@ -0,0 +1,7 @@
1
+ import { PropGroup } from './types';
2
+ export declare const generatedProps: Record<string, PropGroup[]>;
3
+ /**
4
+ * Lookup helper: returns auto-generated props for a component, or undefined
5
+ * if the parser couldn't extract any (consumer should hand-write `api` then).
6
+ */
7
+ export declare function getGeneratedProps(name: string): PropGroup[] | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@craftzbay/ui",
3
- "version": "0.7.1",
3
+ "version": "0.8.0",
4
4
  "description": "Refined-minimal Tailwind v4 + React design system — 40+ accessible primitives and ready-made page patterns.",
5
5
  "license": "MIT",
6
6
  "author": "craftzbay",
@@ -46,20 +46,6 @@
46
46
  "publishConfig": {
47
47
  "access": "public"
48
48
  },
49
- "scripts": {
50
- "dev": "vite",
51
- "build": "vite build",
52
- "build:lib": "BUILD_TARGET=lib vite build",
53
- "typecheck": "tsc --noEmit",
54
- "lint": "eslint . --ext .ts,.tsx",
55
- "format": "prettier --write .",
56
- "test": "vitest run",
57
- "test:watch": "vitest",
58
- "changeset": "changeset",
59
- "changeset:version": "changeset version",
60
- "changeset:release": "pnpm build:lib && changeset publish",
61
- "prepublishOnly": "pnpm build:lib"
62
- },
63
49
  "dependencies": {
64
50
  "@radix-ui/react-accordion": "^1.2.2",
65
51
  "@radix-ui/react-avatar": "^1.1.2",
@@ -113,8 +99,10 @@
113
99
  "prettier": "^3.4.2",
114
100
  "prettier-plugin-tailwindcss": "^0.6.9",
115
101
  "react": "^18.3.1",
102
+ "react-docgen-typescript": "^2.4.0",
116
103
  "react-dom": "^18.3.1",
117
104
  "tailwindcss": "^4.0.0",
105
+ "tsx": "^4.22.1",
118
106
  "tw-animate-css": "^1.4.0",
119
107
  "typescript": "^5.7.2",
120
108
  "vite": "^6.0.3",
@@ -124,5 +112,20 @@
124
112
  "peerDependencies": {
125
113
  "react": ">=18",
126
114
  "react-dom": ">=18"
115
+ },
116
+ "scripts": {
117
+ "dev": "vite",
118
+ "build": "pnpm gen:props && vite build",
119
+ "build:lib": "BUILD_TARGET=lib vite build",
120
+ "prebuild:lib": "pnpm gen:props",
121
+ "typecheck": "tsc --noEmit",
122
+ "lint": "eslint . --ext .ts,.tsx",
123
+ "format": "prettier --write .",
124
+ "test": "vitest run",
125
+ "test:watch": "vitest",
126
+ "gen:props": "tsx scripts/generate-props.ts",
127
+ "changeset": "changeset",
128
+ "changeset:version": "changeset version",
129
+ "changeset:release": "pnpm build:lib && changeset publish"
127
130
  }
128
- }
131
+ }