@fabio.caffarello/react-design-system 2.0.1 → 3.0.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,9 +1,9 @@
1
1
  /**
2
- * AIppin Design System - Color Token Types
2
+ * Design System - Color Token Types
3
3
  *
4
4
  * TypeScript types for the color system.
5
5
  *
6
- * @brand AIppin
6
+ * @brand brasil-a-vera (default, overridable)
7
7
  * @version 1.0.0
8
8
  */
9
9
  /**
@@ -17,8 +17,15 @@ export type ColorScale = 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 90
17
17
  export declare const COLOR_SCALES: ColorScale[];
18
18
  /**
19
19
  * Primitive color names (raw color palettes)
20
- */
21
- export type PrimitiveColorName = "indigo" | "violet" | "cyan" | "slate" | "gray" | "emerald" | "green" | "amber" | "yellow" | "orange" | "rose" | "red" | "sky" | "blue" | "fuchsia" | "pink" | "purple" | "teal" | "lime";
20
+ *
21
+ * Two families coexist:
22
+ * - Tailwind tones (indigo, violet, ..., lime) — honest to Tailwind v4 HEX.
23
+ * - Brand primitives (brand-primary, brand-secondary) — the design system's
24
+ * own scales, declared in src/styles/primitives/brand.css and mirrored
25
+ * in src/ui/tokens/colors/brand.ts. These are the reskin surface;
26
+ * semantic tokens reference them, not Tailwind tones.
27
+ */
28
+ export type PrimitiveColorName = "brand-primary" | "brand-secondary" | "indigo" | "violet" | "cyan" | "slate" | "gray" | "emerald" | "green" | "amber" | "yellow" | "orange" | "rose" | "red" | "sky" | "blue" | "fuchsia" | "pink" | "purple" | "teal" | "lime";
22
29
  /**
23
30
  * Semantic color names (meaningful colors)
24
31
  */
@@ -1,9 +1,9 @@
1
1
  /**
2
- * AIppin Design System - Color Utilities
2
+ * Design System - Color Utilities
3
3
  *
4
4
  * Helper functions for working with colors.
5
5
  *
6
- * @brand AIppin
6
+ * @brand brasil-a-vera (default, overridable)
7
7
  * @version 1.0.0
8
8
  */
9
9
  import type { ColorToken, ColorScale, PrimitiveColorName, SemanticColorName, GetColorOptions, GetColorClassOptions } from "./types";
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Centralized exports for all design tokens.
5
5
  *
6
- * @brand AIppin
6
+ * @brand brasil-a-vera (default, overridable)
7
7
  * @version 2.0.0
8
8
  */
9
9
  export * from "./colors/index";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fabio.caffarello/react-design-system",
3
3
  "private": false,
4
- "version": "2.0.1",
4
+ "version": "3.0.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -14,6 +14,11 @@
14
14
  "import": "./dist/index.js",
15
15
  "require": "./dist/index.cjs"
16
16
  },
17
+ "./server": {
18
+ "types": "./dist/ui/server.d.ts",
19
+ "import": "./dist/server/index.js",
20
+ "require": "./dist/server/index.cjs"
21
+ },
17
22
  "./styles": "./dist/react-design-system.css",
18
23
  "./styles.css": "./dist/react-design-system.css"
19
24
  },
@@ -26,8 +31,8 @@
26
31
  "access": "public"
27
32
  },
28
33
  "scripts": {
29
- "build": "npx tsc --project tsconfig.app.json --declaration --emitDeclarationOnly --outDir dist && vite build && npm run build:validate",
30
- "build:validate": "tsx scripts/validate-build-exports.ts && node scripts/validate-use-client-in-dist.mjs",
34
+ "build": "npx tsc --project tsconfig.app.json --declaration --emitDeclarationOnly --outDir dist && vite build && vite build --config vite.config.server.ts && npm run build:validate",
35
+ "build:validate": "tsx scripts/validate-build-exports.ts && node scripts/validate-use-client-in-dist.mjs && node scripts/validate-server-entry.mjs",
31
36
  "lint": "eslint .",
32
37
  "typecheck": "tsc --build --force tsconfig.json",
33
38
  "storybook": "storybook dev -p 6006",
@@ -106,6 +111,7 @@
106
111
  "@vitest/coverage-v8": "^4.1.8",
107
112
  "autoprefixer": "^10.4.21",
108
113
  "baseline-browser-mapping": "^2.10.32",
114
+ "culori": "^4.0.2",
109
115
  "dependency-cruiser": "^17.3.6",
110
116
  "eslint": "^10.4.1",
111
117
  "eslint-plugin-react-hooks": "^5.2.0",