@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.
- package/dist/Components/Atoms/Badge/Badge.d.ts +3 -0
- package/dist/Components/Atoms/Badge/Badge.stories.d.ts +6 -0
- package/dist/Components/Atoms/Badge/index.d.ts +2 -0
- package/dist/Components/Atoms/Radio/Radio.d.ts +3 -0
- package/dist/Components/Atoms/Radio/Radio.stories.d.ts +7 -0
- package/dist/Components/Atoms/Radio/Radio.types.d.ts +10 -0
- package/dist/Components/Atoms/Radio/index.d.ts +2 -0
- package/dist/Components/Atoms/index.d.ts +2 -0
- package/dist/Components/Molecules/WithBadge/WithBadge.d.ts +7 -0
- package/dist/Components/Molecules/WithBadge/WithBadge.stories.d.ts +6 -0
- package/dist/Components/Molecules/WithBadge/index.d.ts +2 -0
- package/dist/Components/Molecules/index.d.ts +1 -0
- package/dist/index.es.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types/badge.types.d.ts +8 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/radio.types.d.ts +6 -0
- package/package.json +1 -1
|
@@ -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
|
+
}
|
|
@@ -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;
|