@beydesign/storybook 0.0.15 → 0.0.17

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
@@ -7,6 +7,7 @@ export { ToggleButtonGroup } from './stories/ToggleButtonGroup';
7
7
  export { ProgressIndicator } from './stories/ProgressIndicator';
8
8
  export { Logo } from './stories/Logo';
9
9
  export { Toggle } from './stories/Toggle';
10
+ export { Header } from './stories/Header';
10
11
  export { ButtonSize, ButtonHierarchy, ButtonState, ButtonShape, ButtonDisplayMode, ButtonType, type MainButtonProps, } from './stories/types/button';
11
12
  export { BadgeColor, BadgeSize, type BadgeProps } from './stories/types/badge';
12
13
  export { AvatarStyle, AvatarSize, type AvatarProps, } from './stories/types/avatar';
@@ -16,3 +17,4 @@ export { ToggleButtonGroupSize, type ToggleButtonGroupProps, } from './stories/t
16
17
  export { ProgressIndicatorMode, type ProgressIndicatorProps, } from './stories/types/progress-indicator';
17
18
  export { LogoVariant, type LogoProps } from './stories/types/logo';
18
19
  export { TogglePosition, type ToggleProps } from './stories/types/toggle';
20
+ export { type HeaderProps } from './stories/types/header';
package/dist/index.js CHANGED
@@ -8,6 +8,7 @@ export { ToggleButtonGroup } from './stories/ToggleButtonGroup';
8
8
  export { ProgressIndicator } from './stories/ProgressIndicator';
9
9
  export { Logo } from './stories/Logo';
10
10
  export { Toggle } from './stories/Toggle';
11
+ export { Header } from './stories/Header';
11
12
  // Button Types
12
13
  export { ButtonSize, ButtonHierarchy, ButtonState, ButtonShape, ButtonDisplayMode, ButtonType, } from './stories/types/button';
13
14
  // Badge Types
@@ -6,7 +6,6 @@ import { Typography } from './Typography';
6
6
  import { TypographySize, TypographyWeight } from './types/typography';
7
7
  import { Avatar } from './Avatar';
8
8
  import { AvatarSize } from './types/avatar';
9
- import styles from './Header.module.css';
10
9
  export const Header = ({ title = 'Beyond Presence', email, avatarProps, backButtonText = 'Back', onBackClick, onLogoutClick, className, }) => {
11
- return (_jsxs(Box, { className: className, display: 'flex', flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', border: '1px solid var(--primitives-desktop-primary-gray-200)', bgcolor: 'var(--colors-light-background-bg-white)', paddingX: 'var(--spacing-tokens-size-in-px-spacing-spacing-4xl)', height: 'var( --spacing-tokens-size-in-px-spacing-spacing-7xl)', children: [onBackClick ? (_jsx(MainButton, { text: backButtonText, hierarchy: ButtonHierarchy.Tetriary, showLeadingIcon: true, leadingIcon: 'ArrowLeft', onClick: onBackClick })) : (_jsx(Typography, { text: title, size: TypographySize.HeadingS, weight: TypographyWeight.SemiBold })), _jsxs(Box, { display: 'flex', flexDirection: 'row', alignItems: 'center', gap: '8px', children: [_jsxs(Box, { display: 'flex', flexDirection: 'column', alignItems: 'flex-end', justifyContent: 'space-between', children: [_jsx(Typography, { text: email, size: TypographySize.TextS, weight: TypographyWeight.SemiBold, className: styles['header-email'] }), _jsx(MainButton, { text: 'Log Out', size: ButtonSize.sm, hierarchy: ButtonHierarchy.Tetriary, onClick: onLogoutClick, style: { paddingInline: '0px', paddingBlock: '0.1rem' } })] }), _jsx(Avatar, { ...avatarProps, size: AvatarSize.md })] })] }));
10
+ return (_jsxs(Box, { className: className, display: 'flex', flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', border: '1px solid var(--primitives-desktop-primary-gray-200)', bgcolor: 'var(--colors-light-background-bg-white)', paddingX: 'var(--spacing-tokens-size-in-px-spacing-spacing-4xl)', height: 'var( --spacing-tokens-size-in-px-spacing-spacing-7xl)', children: [onBackClick ? (_jsx(MainButton, { text: backButtonText, hierarchy: ButtonHierarchy.Tetriary, showLeadingIcon: true, leadingIcon: 'ArrowLeft', onClick: onBackClick })) : (_jsx(Typography, { text: title, size: TypographySize.HeadingS, weight: TypographyWeight.SemiBold })), _jsxs(Box, { display: 'flex', flexDirection: 'row', alignItems: 'center', gap: '8px', children: [_jsxs(Box, { display: 'flex', flexDirection: 'column', alignItems: 'flex-end', justifyContent: 'space-between', children: [_jsx(Typography, { text: email, size: TypographySize.TextS, weight: TypographyWeight.SemiBold }), _jsx(MainButton, { text: 'Log Out', size: ButtonSize.sm, hierarchy: ButtonHierarchy.Tetriary, onClick: onLogoutClick, style: { paddingInline: '0px', paddingBlock: '0.1rem' } })] }), _jsx(Avatar, { ...avatarProps, size: AvatarSize.md })] })] }));
12
11
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@beydesign/storybook",
3
3
  "private": false,
4
- "version": "0.0.15",
4
+ "version": "0.0.17",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",