@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 +1 -1
- package/dist/components/atoms/DateFormatter/DateFormatter.d.ts +10 -0
- package/dist/components/atoms/DateFormatter/index.d.ts +1 -0
- package/dist/components/atoms/{CoverImage/CoverImage.d.ts → Picture/Picture.d.ts} +4 -3
- package/dist/components/atoms/Picture/index.d.ts +1 -0
- package/dist/components/atoms/index.d.ts +2 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/molecules/ArtCard/ArtCard.d.ts +3 -2
- package/dist/components/molecules/DesignCard/DesignCard.d.ts +3 -1
- package/dist/index.esm.js +869 -166
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +876 -165
- package/dist/index.js.map +1 -1
- package/dist/tokens/index.esm.js +623 -0
- package/dist/tokens/index.esm.js.map +1 -0
- package/dist/tokens/index.js +628 -0
- package/dist/tokens/index.js.map +1 -0
- package/dist/tokens/tokens.d.ts +616 -0
- package/package.json +3 -3
- package/dist/components/atoms/CoverImage/index.d.ts +0 -1
- package/dist/components/dateFormatter.d.ts +0 -7
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
|
-
-
|
|
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
|
|
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
|
|
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 './
|
|
6
|
+
export * from './Picture';
|
|
7
|
+
export * from './DateFormatter';
|
|
7
8
|
export * from './Icon';
|
|
8
9
|
export * from './IconButton';
|
|
9
10
|
export * from './SectionSeparator';
|
|
@@ -5,6 +5,7 @@ export type ArtCardProps = {
|
|
|
5
5
|
artist: string;
|
|
6
6
|
labels: string[];
|
|
7
7
|
coverImage: string;
|
|
8
|
-
|
|
8
|
+
onImageClick?: () => void;
|
|
9
|
+
imageHref?: string;
|
|
9
10
|
};
|
|
10
|
-
export declare const ArtCard: ({ title, excerpt, tag, artist, labels, coverImage,
|
|
11
|
+
export declare const ArtCard: ({ title, excerpt, tag, artist, labels, coverImage, onImageClick, imageHref, }: ArtCardProps) => import("react").JSX.Element | null;
|