@beydesign/storybook 0.0.4 → 0.0.6
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/index.d.ts
CHANGED
|
@@ -1,2 +1,10 @@
|
|
|
1
1
|
export { MainButton } from './stories/Button';
|
|
2
|
+
export { Avatar } from './stories/Avatar';
|
|
3
|
+
export { Typography } from './stories/Typography';
|
|
4
|
+
export { Badge } from './stories/Bagde';
|
|
5
|
+
export { Checkbox } from './stories/Checkbox';
|
|
2
6
|
export { ButtonSize, ButtonHierarchy, ButtonState, ButtonShape, ButtonDisplayMode, ButtonType, type MainButtonProps, } from './stories/types/button';
|
|
7
|
+
export { BadgeColor, BadgeSize, type BadgeProps } from './stories/types/badge';
|
|
8
|
+
export { AvatarStyle, AvatarSize, type AvatarProps, } from './stories/types/avatar';
|
|
9
|
+
export { TypographySize, TypographyWeight, type TypographyProps, } from './stories/types/typography';
|
|
10
|
+
export { CheckboxType, type CheckboxProps } from './stories/types/checkbox';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
// Components
|
|
2
2
|
export { MainButton } from './stories/Button';
|
|
3
|
+
export { Avatar } from './stories/Avatar';
|
|
4
|
+
export { Typography } from './stories/Typography';
|
|
5
|
+
export { Badge } from './stories/Bagde';
|
|
6
|
+
export { Checkbox } from './stories/Checkbox';
|
|
3
7
|
// Types
|
|
4
8
|
export { ButtonSize, ButtonHierarchy, ButtonState, ButtonShape, ButtonDisplayMode, ButtonType, } from './stories/types/button';
|
|
9
|
+
export { BadgeColor, BadgeSize } from './stories/types/badge';
|
|
10
|
+
export { AvatarStyle, AvatarSize, } from './stories/types/avatar';
|
|
11
|
+
export { TypographySize, TypographyWeight, } from './stories/types/typography';
|
|
12
|
+
export { CheckboxType } from './stories/types/checkbox';
|
package/dist/stories/Button.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { CircularProgress } from '@mui/material';
|
|
3
3
|
import * as PhosphorIcons from '@phosphor-icons/react';
|
|
4
4
|
import { ButtonSize, ButtonHierarchy, ButtonState, ButtonShape, ButtonDisplayMode, ButtonType, } from './types/button';
|
|
5
5
|
import { Typography } from './Typography';
|
|
@@ -258,7 +258,7 @@ export const MainButton = ({ onClick, text, disabled = false, loading = false, t
|
|
|
258
258
|
trailingIcon &&
|
|
259
259
|
getIconComponent(trailingIcon, iconProps)] }));
|
|
260
260
|
};
|
|
261
|
-
return (_jsx(
|
|
261
|
+
return (_jsx("button", { onClick: onClick ? onClick : () => { }, type: type, disabled: state === ButtonState.Disabled || disabled, style: {
|
|
262
262
|
textTransform: 'none',
|
|
263
263
|
...sizeStyles,
|
|
264
264
|
borderRadius: getButtonShape(),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
2
|
import * as PhosphorIcons from '@phosphor-icons/react';
|
|
3
3
|
/**
|
|
4
4
|
* Button size variants
|
|
@@ -77,7 +77,7 @@ export interface MainButtonProps {
|
|
|
77
77
|
/** HTML button type */
|
|
78
78
|
type?: ButtonType;
|
|
79
79
|
/** Custom styles for the button */
|
|
80
|
-
style?:
|
|
80
|
+
style?: CSSProperties;
|
|
81
81
|
/** Size variant of the button */
|
|
82
82
|
size?: ButtonSize;
|
|
83
83
|
/** Visual hierarchy of the button */
|