@common-origin/design-system 1.3.1 → 1.4.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.
package/README.md CHANGED
@@ -72,7 +72,13 @@ npm run typecheck # Type checking
72
72
  npm run docs:generate # Generate component docs
73
73
  ```
74
74
 
75
- ## 📦 Package Usage
75
+ ## Requirements
76
+
77
+ This design system supports:
78
+ - **React**: 18.x or 19.x
79
+ - **TypeScript**: 4.x or higher (recommended)
80
+
81
+ ## �📦 Package Usage
76
82
 
77
83
  Install the design system in your project:
78
84
 
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ type CoverImageProps = {
3
+ title: string;
4
+ src: string;
5
+ slug?: string;
6
+ width?: number;
7
+ height?: number;
8
+ 'data-testid'?: string;
9
+ };
10
+ export declare const CoverImage: React.FC<CoverImageProps>;
11
+ export {};
@@ -0,0 +1 @@
1
+ export * from './CoverImage';
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ type DateFormatterProps = {
3
+ dateString: string;
4
+ formatString?: string;
5
+ };
6
+ export declare const DateFormatter: React.FC<DateFormatterProps>;
7
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@common-origin/design-system",
3
- "version": "1.3.1",
3
+ "version": "1.4.0",
4
4
  "description": "Common Origin Design System - Atomic design components with comprehensive WCAG 2.2 AA testing",
5
5
  "private": false,
6
6
  "type": "module",
@@ -40,8 +40,8 @@
40
40
  "release": "npm publish --provenance --access public"
41
41
  },
42
42
  "peerDependencies": {
43
- "react": "^18.0.0",
44
- "react-dom": "^18.0.0",
43
+ "react": "^18.0.0 || ^19.0.0",
44
+ "react-dom": "^18.0.0 || ^19.0.0",
45
45
  "styled-components": "^6.0.0"
46
46
  },
47
47
  "dependencies": {
@@ -70,15 +70,15 @@
70
70
  "@types/jest": "^30.0.0",
71
71
  "@types/jest-axe": "^3.5.9",
72
72
  "@types/node": "^18.0.3",
73
- "@types/react": "^18.0.15",
74
- "@types/react-dom": "^18.0.6",
73
+ "@types/react": "^19.2.2",
74
+ "@types/react-dom": "^19.2.2",
75
75
  "babel-jest": "^30.0.2",
76
76
  "babel-plugin-styled-components": "^2.1.4",
77
77
  "jest": "^30.0.2",
78
78
  "jest-axe": "^9.0.0",
79
79
  "jest-environment-jsdom": "^30.0.2",
80
- "react": "^18.2.0",
81
- "react-dom": "^18.2.0",
80
+ "react": "^19.2.0",
81
+ "react-dom": "^19.2.0",
82
82
  "rollup": "^3.20.0",
83
83
  "rollup-plugin-peer-deps-external": "^2.2.4",
84
84
  "style-dictionary": "^3.8.0",