@wishket/design-system 0.2.0 → 0.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.
@@ -0,0 +1,3 @@
1
+ import { BadgeType as BadgeProps } from '../../../types/badge.types';
2
+ declare const Badge: ({ text, className, variant, showZero, disabled, }: BadgeProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Badge;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import Badge from './Badge';
3
+ declare const meta: Meta<typeof Badge>;
4
+ export default meta;
5
+ type Story = StoryObj;
6
+ export declare const Default: Story;
@@ -0,0 +1,2 @@
1
+ import Badge from './Badge';
2
+ export default Badge;
@@ -0,0 +1,3 @@
1
+ import { RadioProps } from './Radio.types';
2
+ declare const Radio: ({ value, checked, onChange, disabled, isError, isHover, className, ...rest }: RadioProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Radio;
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Radio from './Radio';
3
+ import { RadioProps } from './Radio.types';
4
+ declare const meta: Meta<typeof Radio>;
5
+ export default meta;
6
+ type Story = StoryObj<RadioProps>;
7
+ export declare const Default: Story;
@@ -0,0 +1,10 @@
1
+ import { ChangeEvent } from 'react';
2
+ import { RadioStatus } from '../../../types';
3
+ export interface RadioButtonProps extends RadioStatus {
4
+ className?: string;
5
+ }
6
+ export interface RadioProps extends RadioButtonProps {
7
+ value?: string;
8
+ onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
9
+ [key: string]: any;
10
+ }
@@ -0,0 +1,2 @@
1
+ import Radio from './Radio';
2
+ export default Radio;
@@ -1,5 +1,7 @@
1
1
  export { default as Typography } from './Typography';
2
2
  export { default as Checkbox } from './Checkbox';
3
+ export { default as Badge } from './Badge';
3
4
  export { default as Box } from './Box';
4
5
  export { default as ProductIcon } from './ProductIcon';
6
+ export { default as Radio } from './Radio';
5
7
  export { default as Button } from './Button';
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ import { BadgeType } from '../../../types/badge.types';
3
+ interface WithBadgeProps extends BadgeType {
4
+ children: ReactNode;
5
+ }
6
+ declare const WithBadge: ({ text, children, className, variant, showZero, disabled, }: WithBadgeProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default WithBadge;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import WithBadge from './WithBadge';
3
+ declare const meta: Meta<typeof WithBadge>;
4
+ export default meta;
5
+ type Story = StoryObj;
6
+ export declare const Default: Story;
@@ -0,0 +1,2 @@
1
+ import WithBadge from './WithBadge';
2
+ export default WithBadge;
@@ -1,3 +1,4 @@
1
+ export { default as WithBadge } from './WithBadge';
1
2
  export { default as GridLayout } from './GridLayout';
2
3
  export { default as CheckboxList } from './CheckboxList';
3
4
  export { default as CheckboxCard } from './CheckboxCard';