@common-origin/design-system 1.1.0 → 1.3.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
@@ -103,7 +103,7 @@ function MyApp() {
103
103
 
104
104
  **✅ Atoms (12 components)**:
105
105
  - Alert, Avatar, Box, Button, Chip, Container
106
- - CoverImage, Icon, IconButton, SectionSeparator
106
+ - Picture, Icon, IconButton, SectionSeparator
107
107
  - Stack, Typography
108
108
 
109
109
  **✅ Molecules (8 components)**:
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ export interface DateFormatterProps {
3
+ /** ISO date string to format */
4
+ dateString: string;
5
+ /** Format pattern (defaults to 'yyyy') */
6
+ formatString?: string;
7
+ /** Optional data-testid for testing */
8
+ 'data-testid'?: string;
9
+ }
10
+ export declare const DateFormatter: React.FC<DateFormatterProps>;
@@ -0,0 +1 @@
1
+ export * from './DateFormatter';
@@ -1,11 +1,12 @@
1
1
  import React from 'react';
2
- type CoverImageProps = {
2
+ type PictureProps = {
3
3
  title: string;
4
4
  src: string;
5
- slug?: string;
6
5
  width?: number;
7
6
  height?: number;
7
+ onClick?: () => void;
8
+ href?: string;
8
9
  'data-testid'?: string;
9
10
  };
10
- export declare const CoverImage: React.FC<CoverImageProps>;
11
+ export declare const Picture: React.FC<PictureProps>;
11
12
  export {};
@@ -0,0 +1 @@
1
+ export * from './Picture';
@@ -3,7 +3,8 @@ export * from './Box';
3
3
  export * from './Button';
4
4
  export * from './Chip';
5
5
  export * from './Container';
6
- export * from './CoverImage';
6
+ export * from './Picture';
7
+ export * from './DateFormatter';
7
8
  export * from './Icon';
8
9
  export * from './IconButton';
9
10
  export * from './SectionSeparator';
@@ -1,4 +1,4 @@
1
1
  export * from './atoms/';
2
+ export * from './molecules/';
2
3
  export * from './layout/';
3
- export * from './dateFormatter';
4
4
  export { ResponsiveGrid, GridCol, Grid } from './layout/GridSystem';
@@ -5,6 +5,7 @@ export type ArtCardProps = {
5
5
  artist: string;
6
6
  labels: string[];
7
7
  coverImage: string;
8
- slug?: string;
8
+ onImageClick?: () => void;
9
+ imageHref?: string;
9
10
  };
10
- export declare const ArtCard: ({ title, excerpt, tag, artist, labels, coverImage, slug, }: ArtCardProps) => import("react").JSX.Element | null;
11
+ export declare const ArtCard: ({ title, excerpt, tag, artist, labels, coverImage, onImageClick, imageHref, }: ArtCardProps) => import("react").JSX.Element | null;
@@ -6,6 +6,8 @@ export type DesignCardProps = {
6
6
  tag: string;
7
7
  coverImage: string;
8
8
  date: string;
9
- slug?: string;
9
+ onReadMore?: () => void;
10
+ readMoreHref?: string;
11
+ readMoreText?: string;
10
12
  };
11
13
  export declare const DesignCard: React.FC<DesignCardProps>;