jy-headless 0.0.2 → 0.0.4
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 +105 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.es.js +1226 -410
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +12 -12
- package/dist/index.umd.js.map +1 -1
- package/dist/src/components/buttons/BaseButton.d.ts +3 -0
- package/dist/src/components/buttons/BaseButton.stories.d.ts +10 -0
- package/dist/src/components/icons/AddCartIcon.d.ts +3 -0
- package/dist/src/components/icons/BellIcon.d.ts +3 -0
- package/dist/src/components/icons/CameraIcon.d.ts +3 -0
- package/dist/src/components/icons/CartIcon.d.ts +3 -0
- package/dist/src/components/icons/CloseIcon.d.ts +3 -0
- package/dist/src/components/icons/CloudIcon.d.ts +3 -0
- package/dist/src/components/icons/CreditCardIcon.d.ts +3 -0
- package/dist/src/components/icons/DownloadIcon.d.ts +3 -0
- package/dist/src/components/icons/EditIcon.d.ts +3 -0
- package/dist/src/components/icons/FileIcon.d.ts +3 -0
- package/dist/src/components/icons/FolderIcon.d.ts +3 -0
- package/dist/src/components/icons/GearIcon.d.ts +3 -0
- package/dist/src/components/icons/GlobeIcon.d.ts +3 -0
- package/dist/src/components/icons/HeartIcon.d.ts +3 -0
- package/dist/src/components/icons/HomeIcon.d.ts +3 -0
- package/dist/src/components/icons/Icons.stories.d.ts +14 -0
- package/dist/src/components/icons/ImageIcon.d.ts +3 -0
- package/dist/src/components/icons/LockIcon.d.ts +3 -0
- package/dist/src/components/icons/MinusIcon.d.ts +3 -0
- package/dist/src/components/icons/PlusIcon.d.ts +3 -0
- package/dist/src/components/icons/RefreshIcon.d.ts +3 -0
- package/dist/src/components/icons/RemoveCartIcon.d.ts +3 -0
- package/dist/src/components/icons/SaveIcon.d.ts +3 -0
- package/dist/src/components/icons/SearchIcon.d.ts +3 -0
- package/dist/src/components/icons/SettingIcon.d.ts +3 -0
- package/dist/src/components/icons/SpinnerIcon.d.ts +3 -0
- package/dist/src/components/icons/StarIcon.d.ts +3 -0
- package/dist/src/components/icons/UnLockIcon.d.ts +3 -0
- package/dist/src/components/icons/UploadIcon.d.ts +3 -0
- package/dist/src/components/icons/UserIcon.d.ts +3 -0
- package/dist/src/components/icons/VideoIcon.d.ts +3 -0
- package/dist/src/components/icons/index.d.ts +29 -0
- package/dist/src/components/types.d.ts +16 -1
- package/dist/src/utils/ArrayUtils.d.ts +5 -2
- package/package.json +1 -1
- package/dist/src/components/buttons/CommonButton.d.ts +0 -6
- package/dist/src/components/buttons/CommonButton.stories.d.ts +0 -9
- package/dist/src/components/buttons/iconButton/IconButton.d.ts +0 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: Meta;
|
|
3
|
+
export default meta;
|
|
4
|
+
type Story = StoryObj;
|
|
5
|
+
export declare const Example: {
|
|
6
|
+
args: {
|
|
7
|
+
color: string;
|
|
8
|
+
size: string;
|
|
9
|
+
width: string;
|
|
10
|
+
height: string;
|
|
11
|
+
fill: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export declare const Icons: Story;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export { default as AddCartIcon } from './AddCartIcon.tsx';
|
|
2
|
+
export { default as BellIcon } from './BellIcon.tsx';
|
|
3
|
+
export { default as CameraIcon } from './CameraIcon.tsx';
|
|
4
|
+
export { default as CartIcon } from './CartIcon.tsx';
|
|
5
|
+
export { default as CloseIcon } from './CloseIcon.tsx';
|
|
6
|
+
export { default as CloudIcon } from './CloudIcon.tsx';
|
|
7
|
+
export { default as CreditCardIcon } from './CreditCardIcon.tsx';
|
|
8
|
+
export { default as DownloadIcon } from './DownloadIcon.tsx';
|
|
9
|
+
export { default as EditIcon } from './EditIcon.tsx';
|
|
10
|
+
export { default as FileIcon } from './FileIcon.tsx';
|
|
11
|
+
export { default as FolderIcon } from './FolderIcon.tsx';
|
|
12
|
+
export { default as GearIcon } from './GearIcon.tsx';
|
|
13
|
+
export { default as GlobeIcon } from './GearIcon.tsx';
|
|
14
|
+
export { default as HeartIcon } from './HeartIcon.tsx';
|
|
15
|
+
export { default as HomeIcon } from './HomeIcon.tsx';
|
|
16
|
+
export { default as ImageIcon } from './ImageIcon.tsx';
|
|
17
|
+
export { default as LockIcon } from './LockIcon.tsx';
|
|
18
|
+
export { default as MinusIcon } from './MinusIcon.tsx';
|
|
19
|
+
export { default as PlusIcon } from './PlusIcon.tsx';
|
|
20
|
+
export { default as RefreshIcon } from './RefreshIcon.tsx';
|
|
21
|
+
export { default as RemoveCartIcon } from './RemoveCartIcon.tsx';
|
|
22
|
+
export { default as SaveIcon } from './SaveIcon.tsx';
|
|
23
|
+
export { default as SearchIcon } from './SearchIcon.tsx';
|
|
24
|
+
export { default as SettingIcon } from './SettingIcon.tsx';
|
|
25
|
+
export { default as StarIcon } from './StarIcon.tsx';
|
|
26
|
+
export { default as UnLockIcon } from './UnLockIcon.tsx';
|
|
27
|
+
export { default as UploadIcon } from './UploadIcon.tsx';
|
|
28
|
+
export { default as UserIcon } from './UserIcon.tsx';
|
|
29
|
+
export { default as VideoIcon } from './VideoIcon.tsx';
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
1
2
|
export type Size = 'sm' | 'md' | 'lg';
|
|
3
|
+
export type Variants = 'primary' | 'secondary' | 'tertiary';
|
|
2
4
|
export interface BaseProps {
|
|
3
|
-
additionalClass?: string;
|
|
4
5
|
size?: Size;
|
|
6
|
+
variant: Variants;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
spinColor?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, BaseProps {
|
|
11
|
+
isCircular?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface IconProps {
|
|
14
|
+
color?: string;
|
|
15
|
+
size?: string;
|
|
16
|
+
width?: string;
|
|
17
|
+
height?: string;
|
|
18
|
+
fill?: string;
|
|
19
|
+
className?: string;
|
|
5
20
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ButtonHTMLAttributes } from 'react';
|
|
2
|
-
import { BaseProps } from '../types.ts';
|
|
3
|
-
export interface CommonButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, BaseProps {
|
|
4
|
-
}
|
|
5
|
-
declare const CommonButton: ({ children, additionalClass, className, size, ...rest }: CommonButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export default CommonButton;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { default as CommonButton } from './CommonButton.tsx';
|
|
3
|
-
declare const meta: Meta<typeof CommonButton>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof CommonButton>;
|
|
6
|
-
export declare const Common: Story;
|
|
7
|
-
export declare const Disabled: Story;
|
|
8
|
-
export declare const AdditionalClass: Story;
|
|
9
|
-
export declare const CustomClass: Story;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
declare const IconButton: () => void;
|