@common-origin/design-system 1.3.1 → 1.4.1

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';
@@ -1,7 +1,8 @@
1
1
  import { FC } from 'react';
2
- import iconsData from '@/styles/icons.json';
2
+ import { type IconName } from '@/types/icons';
3
+ export type { IconName };
3
4
  export interface IconProps {
4
- name: keyof typeof iconsData;
5
+ name: IconName;
5
6
  size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
6
7
  iconColor?: 'default' | 'emphasis' | 'subdued' | 'disabled' | 'inverse' | 'interactive' | 'error' | 'success' | 'warning' | 'inherit';
7
8
  'data-testid'?: string;
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
- import iconsData from '@/styles/icons.json';
2
+ import { type IconName } from '../Icon';
3
3
  export interface IconButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'onClick'> {
4
4
  variant: 'primary' | 'secondary' | 'naked';
5
5
  size?: 'small' | 'medium' | 'large';
6
- iconName: keyof typeof iconsData;
6
+ iconName: IconName;
7
7
  url?: string;
8
8
  onClick?: () => void;
9
9
  'aria-label': string;
@@ -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/dist/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './components';
2
2
  export { default as tokens } from './styles/tokens.json';
3
+ export { iconsData, type IconName } from './types/icons';
package/dist/index.esm.js CHANGED
@@ -2726,5 +2726,5 @@ var ResponsiveGrid = function ResponsiveGrid(_a) {
2726
2726
  };
2727
2727
  var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30, templateObject_31, templateObject_32, templateObject_33, templateObject_34, templateObject_35;
2728
2728
 
2729
- export { ArtCard, Avatar, Box, Breadcrumbs, Button, Chip, ChipGroup, CodeBlock, Container, DateFormatter, DesignCard, Dropdown, Grid, GridCol, Icon, IconButton, LegacyChip, PageTitle, Picture, ReleaseCard, ResponsiveGrid, SectionSeparator, Stack, Typography, tokens };
2729
+ export { ArtCard, Avatar, Box, Breadcrumbs, Button, Chip, ChipGroup, CodeBlock, Container, DateFormatter, DesignCard, Dropdown, Grid, GridCol, Icon, IconButton, LegacyChip, PageTitle, Picture, ReleaseCard, ResponsiveGrid, SectionSeparator, Stack, Typography, iconsData, tokens };
2730
2730
  //# sourceMappingURL=index.esm.js.map