stratosphere-ui 1.8.4 → 2.0.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.
Files changed (102) hide show
  1. package/dist/.storybook/constants.d.ts +36 -0
  2. package/dist/.storybook/main.d.ts +3 -0
  3. package/dist/.storybook/manager.d.ts +1 -0
  4. package/dist/.storybook/preview.d.ts +3 -0
  5. package/dist/.storybook/theme.d.ts +2 -0
  6. package/dist/src/common/constants.d.ts +1 -0
  7. package/dist/src/common/types.d.ts +2 -0
  8. package/dist/src/components/Alert/Alert.d.ts +8 -2
  9. package/dist/src/components/Alert/Alert.stories.d.ts +12 -7
  10. package/dist/src/components/Alert/__tests__/Alert.spec.d.ts +1 -0
  11. package/dist/src/components/AlertMessages/constants.d.ts +4 -5
  12. package/dist/src/components/Avatar/Avatar.d.ts +12 -3
  13. package/dist/src/components/Avatar/Avatar.stories.d.ts +13 -9
  14. package/dist/src/components/Avatar/AvatarGroup.d.ts +7 -2
  15. package/dist/src/components/Avatar/__tests__/Avatar.spec.d.ts +1 -0
  16. package/dist/src/components/Avatar/__tests__/AvatarGroup.spec.d.ts +1 -0
  17. package/dist/src/components/Badge/Badge.d.ts +5 -3
  18. package/dist/src/components/Badge/Badge.stories.d.ts +16 -7
  19. package/dist/src/components/Badge/__tests__/Badge.spec.d.ts +1 -0
  20. package/dist/src/components/Breadcrumbs/Breadcrumbs.d.ts +13 -0
  21. package/dist/src/components/Breadcrumbs/Breadcrumbs.stories.d.ts +9 -0
  22. package/dist/src/components/Breadcrumbs/__tests__/Breadcrumbs.spec.d.ts +1 -0
  23. package/dist/src/components/Breadcrumbs/index.d.ts +1 -0
  24. package/dist/src/components/Browser/Browser.d.ts +7 -0
  25. package/dist/src/components/Browser/Browser.stories.d.ts +8 -0
  26. package/dist/src/components/Browser/__tests__/Browser.spec.d.ts +1 -0
  27. package/dist/src/components/Browser/index.d.ts +1 -0
  28. package/dist/src/components/Button/Button.d.ts +4 -2
  29. package/dist/src/components/Button/Button.stories.d.ts +13 -8
  30. package/dist/src/components/Button/__tests__/Button.test.d.ts +1 -0
  31. package/dist/src/components/ButtonArray/ButtonArray.d.ts +1 -1
  32. package/dist/src/components/ButtonArray/ButtonArray.stories.d.ts +8 -7
  33. package/dist/src/components/Card/Card.d.ts +6 -4
  34. package/dist/src/components/Card/Card.stories.d.ts +1132 -10
  35. package/dist/src/components/Card/__tests__/Card.test.d.ts +0 -0
  36. package/dist/src/components/Card/__tests__/CardActions.test.d.ts +1 -0
  37. package/dist/src/components/Card/__tests__/CardBody.test.d.ts +1 -0
  38. package/dist/src/components/Card/__tests__/CardTitle.test.d.ts +1 -0
  39. package/dist/src/components/Disclosure/Disclosure.d.ts +1 -1
  40. package/dist/src/components/Disclosure/Disclosure.stories.d.ts +9 -8
  41. package/dist/src/components/DropdownMenu/DropdownMenu.d.ts +4 -4
  42. package/dist/src/components/DropdownMenu/DropdownMenu.stories.d.ts +8 -7
  43. package/dist/src/components/Form/FormCheckbox.d.ts +2 -2
  44. package/dist/src/components/Form/FormCheckbox.stories.d.ts +7 -9
  45. package/dist/src/components/Form/FormControl.d.ts +3 -3
  46. package/dist/src/components/Form/FormControl.stories.d.ts +12 -14
  47. package/dist/src/components/Form/FormError.d.ts +1 -1
  48. package/dist/src/components/Form/FormFileInput.d.ts +2 -2
  49. package/dist/src/components/Form/FormFileInput.stories.d.ts +6 -8
  50. package/dist/src/components/Form/FormLabelText.d.ts +1 -1
  51. package/dist/src/components/Form/FormRadio.d.ts +3 -2
  52. package/dist/src/components/Form/FormRadio.stories.d.ts +8 -10
  53. package/dist/src/components/Form/FormRadioGroup.stories.d.ts +6 -8
  54. package/dist/src/components/Form/FormRangeSlider.d.ts +1 -1
  55. package/dist/src/components/Form/FormRangeSlider.stories.d.ts +6 -8
  56. package/dist/src/components/Form/FormTextarea.d.ts +2 -2
  57. package/dist/src/components/Form/FormTextarea.stories.d.ts +10 -12
  58. package/dist/src/components/Form/FormToggleSwitch.d.ts +1 -1
  59. package/dist/src/components/Form/FormToggleSwitch.stories.d.ts +6 -8
  60. package/dist/src/components/FullScreenLoader/FullScreenLoader.stories.d.ts +5 -3
  61. package/dist/src/components/Icons.d.ts +1 -0
  62. package/dist/src/components/Link/Link.stories.d.ts +5 -3
  63. package/dist/src/components/Link/__tests__/Link.spec.d.ts +1 -0
  64. package/dist/src/components/Loading/Loading.d.ts +1 -1
  65. package/dist/src/components/Loading/Loading.stories.d.ts +6 -4
  66. package/dist/src/components/Loading/__tests__/Loading.spec.d.ts +1 -0
  67. package/dist/src/components/LoadingCard/LoadingCard.d.ts +3 -3
  68. package/dist/src/components/LoadingCard/LoadingCard.stories.d.ts +6 -5
  69. package/dist/src/components/Menu/Menu.d.ts +2 -2
  70. package/dist/src/components/Menu/MenuItem.d.ts +3 -4
  71. package/dist/src/components/Menu/MenuItem.stories.d.ts +6 -5
  72. package/dist/src/components/Modal/Modal.d.ts +1 -1
  73. package/dist/src/components/Modal/Modal.stories.d.ts +7 -6
  74. package/dist/src/components/PasswordInput/PasswordInput.stories.d.ts +6 -8
  75. package/dist/src/components/Popover/Popover.d.ts +3 -2
  76. package/dist/src/components/Popover/Popover.stories.d.ts +6 -6
  77. package/dist/src/components/Progress/Progress.d.ts +1 -1
  78. package/dist/src/components/Progress/Progress.stories.d.ts +7 -6
  79. package/dist/src/components/Progress/RadialProgress.d.ts +1 -1
  80. package/dist/src/components/Progress/RadialProgress.stories.d.ts +7 -6
  81. package/dist/src/components/Select/Select.d.ts +3 -1
  82. package/dist/src/components/Select/Select.stories.d.ts +11 -13
  83. package/dist/src/components/Steps/Step.d.ts +3 -2
  84. package/dist/src/components/Table/Table.d.ts +3 -3
  85. package/dist/src/components/Table/Table.stories.d.ts +6 -8
  86. package/dist/src/components/Tabs/Tabs.d.ts +5 -5
  87. package/dist/src/components/Tabs/Tabs.stories.d.ts +12 -11
  88. package/dist/src/components/Tooltip/Tooltip.d.ts +2 -2
  89. package/dist/src/components/Tooltip/Tooltip.stories.d.ts +9 -7
  90. package/dist/src/components/Tooltip/TooltipContent.d.ts +4 -0
  91. package/dist/src/components/Tooltip/index.d.ts +1 -0
  92. package/dist/src/components/TypeaheadSelect/TypeaheadSelect.stories.d.ts +10 -9
  93. package/dist/src/components/TypeaheadSelect/useTypeaheadSelect.d.ts +5 -6
  94. package/dist/src/components/index.d.ts +2 -0
  95. package/dist/src/hooks/useFormWithQueryParams.d.ts +1 -1
  96. package/dist/src/hooks/useOutsideClick.d.ts +1 -1
  97. package/dist/src/hooks/useTypeaheadQuery.d.ts +1 -1
  98. package/dist/stratosphere-ui.d.ts +1 -0
  99. package/dist/stratosphere-ui.js +22775 -20742
  100. package/dist/vite.config.d.ts +1 -1
  101. package/package.json +55 -52
  102. package/dist/src/components/AlertMessages/AlertMessages.stories.d.ts +0 -9
@@ -0,0 +1,36 @@
1
+ export declare const DEFAULT_THEME = "dark";
2
+ export declare const STORAGE_KEY = "sb-stratosphere-ui-theme";
3
+ export declare const THEMES: {
4
+ light: string;
5
+ dark: string;
6
+ cupcake: string;
7
+ bumblebee: string;
8
+ emerald: string;
9
+ corporate: string;
10
+ synthwave: string;
11
+ retro: string;
12
+ cyberpunk: string;
13
+ valentine: string;
14
+ halloween: string;
15
+ garden: string;
16
+ forest: string;
17
+ aqua: string;
18
+ lofi: string;
19
+ pastel: string;
20
+ fantasy: string;
21
+ wireframe: string;
22
+ black: string;
23
+ luxury: string;
24
+ dracula: string;
25
+ cmyk: string;
26
+ autumn: string;
27
+ business: string;
28
+ acid: string;
29
+ lemonade: string;
30
+ night: string;
31
+ coffee: string;
32
+ winter: string;
33
+ dim: string;
34
+ nord: string;
35
+ sunset: string;
36
+ };
@@ -0,0 +1,3 @@
1
+ import { StorybookConfig } from '@storybook/react-vite';
2
+ declare const config: StorybookConfig;
3
+ export default config;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import { Preview } from '@storybook/react';
2
+ declare const preview: Preview;
3
+ export default preview;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('@storybook/theming').ThemeVars;
2
+ export default _default;
@@ -0,0 +1 @@
1
+ export declare const COLORS: readonly ["base-100", "base-200", "base-300", "base-content", "primary", "primary-content", "secondary", "secondary-content", "accent", "accent-content", "neutral", "neutral-content", "info", "info-content", "success", "success-content", "warning", "warning-content", "error", "error-content"];
@@ -1,7 +1,9 @@
1
+ import { COLORS } from './constants';
1
2
  export type GenericDataType = {
2
3
  id: string | number;
3
4
  } & Record<string, unknown>;
4
5
  export type Breakpoint = 'sm' | 'md' | 'lg' | 'xl';
6
+ export type Color = (typeof COLORS)[number];
5
7
  export interface Transform<TOutput> {
6
8
  output: (val: string) => TOutput | undefined;
7
9
  input: (val: TOutput) => string;
@@ -5,10 +5,16 @@ export type AlertColor = (typeof ALERT_COLORS)[number];
5
5
  export interface AlertProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
6
6
  actionButtons?: ({
7
7
  id: string;
8
+ label: string;
8
9
  } & ButtonProps)[];
9
10
  color?: AlertColor;
11
+ dash?: boolean;
10
12
  description?: string;
11
- icon: FC<ComponentProps<'svg'>>;
13
+ icon?: FC<ComponentProps<'svg'>>;
14
+ iconClassName?: string;
15
+ onDismiss?: () => void;
16
+ outline?: boolean;
17
+ soft?: boolean;
12
18
  title: string;
13
19
  }
14
- export declare const Alert: ({ actionButtons, className, color, description, icon: Icon, title, ...props }: AlertProps) => import("react/jsx-runtime").JSX.Element;
20
+ export declare const Alert: ({ actionButtons, className, color, dash, description, icon: Icon, iconClassName, onDismiss, outline, soft, title, ...props }: AlertProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,12 @@
1
- import { Story, Meta } from '@storybook/react';
2
- import { AlertProps } from './Alert';
3
- declare const _default: Meta;
4
- export default _default;
5
- export declare const Default: Story<AlertProps>;
6
- export declare const WithDescription: Story<AlertProps>;
7
- export declare const WithCloseButton: Story<AlertProps>;
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Alert } from './Alert';
3
+ declare const meta: Meta<typeof Alert>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Alert>;
6
+ export declare const Default: Story;
7
+ export declare const WithColors: Story;
8
+ export declare const WithDescription: Story;
9
+ export declare const WithActionButtons: Story;
10
+ export declare const Soft: Story;
11
+ export declare const Outline: Story;
12
+ export declare const Dash: Story;
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
1
  export declare const statusToIconMap: {
3
- info: (props: import("react").SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
4
- success: (props: import("react").SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
5
- warning: (props: import("react").SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
6
- error: (props: import("react").SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
2
+ info: (props: import('react').SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
+ success: (props: import('react').SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
4
+ warning: (props: import('react').SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
5
+ error: (props: import('react').SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
7
6
  };
@@ -1,8 +1,17 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export interface AvatarProps extends HTMLAttributes<HTMLDivElement> {
2
+ import { Color } from '../../common';
3
+ export declare const AvatarSizes: readonly ["sm", "md", "lg", "xl"];
4
+ export type AvatarSize = (typeof AvatarSizes)[number];
5
+ export declare const AVATAR_SIZE_MAP: Record<AvatarSize, string>;
6
+ export interface AvatarProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
7
+ alt?: string;
3
8
  isOffline?: boolean;
4
9
  isOnline?: boolean;
5
- isPlaceholder?: boolean;
10
+ placeholderClassName?: string;
11
+ placeholderText?: string;
12
+ ringColor?: Color;
6
13
  shapeClassName?: string;
14
+ size?: AvatarSize;
15
+ src?: string;
7
16
  }
8
- export declare const Avatar: ({ children, className, isOffline, isOnline, isPlaceholder, shapeClassName, ...props }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
17
+ export declare const Avatar: ({ alt, className, isOffline, isOnline, placeholderClassName, placeholderText, ringColor, shapeClassName, size, src, ...props }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,13 @@
1
- import { Story, Meta } from '@storybook/react';
2
- import { AvatarProps } from './Avatar';
3
- declare const _default: Meta;
4
- export default _default;
5
- export declare const Default: Story<AvatarProps>;
6
- export declare const Rounded: Story<AvatarProps>;
7
- export declare const WithOnlineStatus: Story<AvatarProps>;
8
- export declare const WithOfflineStatus: Story<AvatarProps>;
9
- export declare const AvatarGroup: Story<AvatarProps>;
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Avatar } from './Avatar';
3
+ declare const meta: Meta<typeof Avatar>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Avatar>;
6
+ export declare const Default: Story;
7
+ export declare const Rounded: Story;
8
+ export declare const Sizes: Story;
9
+ export declare const WithRing: Story;
10
+ export declare const WithOnlineStatus: Story;
11
+ export declare const WithOfflineStatus: Story;
12
+ export declare const WithPlaceholderText: Story;
13
+ export declare const WithAvatarGroup: Story;
@@ -1,3 +1,8 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export type AvatarGroupProps = HTMLAttributes<HTMLDivElement>;
3
- export declare const AvatarGroup: ({ className, ...props }: AvatarGroupProps) => import("react/jsx-runtime").JSX.Element;
2
+ import { AvatarSize } from './Avatar';
3
+ export type AvatarGroupProps = HTMLAttributes<HTMLDivElement> & {
4
+ countSize?: AvatarSize;
5
+ remainingCount?: number;
6
+ space?: number;
7
+ };
8
+ export declare const AvatarGroup: ({ children, className, countSize, remainingCount, space, ...props }: AvatarGroupProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,14 +1,16 @@
1
1
  import { ComponentProps, FC, HTMLProps, MouseEvent } from 'react';
2
- export declare const BADGE_COLORS: readonly ["neutral", "primary", "secondary", "accent", "ghost", "info", "success", "warning", "error"];
3
- export declare const BADGE_SIZES: readonly ["lg", "md", "sm", "xs"];
2
+ export declare const BADGE_COLORS: readonly ["primary", "secondary", "accent", "neutral", "info", "success", "warning", "error", "ghost"];
3
+ export declare const BADGE_SIZES: readonly ["xl", "lg", "md", "sm", "xs"];
4
4
  export type BadgeColor = (typeof BADGE_COLORS)[number];
5
5
  export type BadgeSize = (typeof BADGE_SIZES)[number];
6
6
  export interface BadgeProps extends Omit<HTMLProps<HTMLDivElement>, 'size'> {
7
7
  color?: BadgeColor;
8
+ dash?: boolean;
8
9
  dismissable?: boolean;
9
10
  icon?: FC<ComponentProps<'svg'>>;
10
11
  onDismiss?: (event: MouseEvent<HTMLButtonElement>) => void;
11
12
  outline?: boolean;
12
13
  size?: BadgeSize;
14
+ soft?: boolean;
13
15
  }
14
- export declare const Badge: ({ children, className, color, dismissable, icon: Icon, onDismiss, outline, size, ...props }: BadgeProps) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const Badge: ({ children, className, color, dash, dismissable, icon: Icon, onDismiss, outline, size, soft, ...props }: BadgeProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,16 @@
1
- import { Story, Meta } from '@storybook/react';
2
- import { BadgeProps } from './Badge';
3
- declare const _default: Meta;
4
- export default _default;
5
- export declare const Default: Story<BadgeProps>;
6
- export declare const WithIcon: Story<BadgeProps>;
7
- export declare const Dismissable: Story<BadgeProps>;
1
+ import { StoryObj } from '@storybook/react';
2
+ import { Badge, BadgeProps } from './Badge';
3
+ declare const meta: {
4
+ title: string;
5
+ component: ({ children, className, color, dash, dismissable, icon: Icon, onDismiss, outline, size, soft, ...props }: BadgeProps) => import("react/jsx-runtime").JSX.Element;
6
+ };
7
+ export default meta;
8
+ type Story = StoryObj<typeof Badge>;
9
+ export declare const Default: Story;
10
+ export declare const Colors: Story;
11
+ export declare const Sizes: Story;
12
+ export declare const Outline: Story;
13
+ export declare const Dash: Story;
14
+ export declare const Soft: Story;
15
+ export declare const WithIcon: Story;
16
+ export declare const Dismissable: Story;
@@ -0,0 +1,13 @@
1
+ import { ComponentProps, FC, HTMLProps, ReactNode } from 'react';
2
+ export interface BreadcrumbsItem {
3
+ children: ReactNode;
4
+ className?: string;
5
+ href?: string;
6
+ icon?: FC<ComponentProps<'svg'>>;
7
+ id: string;
8
+ onClick?: () => void;
9
+ }
10
+ export interface BreadcrumbsProps extends HTMLProps<HTMLDivElement> {
11
+ items: BreadcrumbsItem[];
12
+ }
13
+ export declare const Breadcrumbs: ({ className, items, ...props }: BreadcrumbsProps) => JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Breadcrumbs } from './Breadcrumbs';
3
+ declare const meta: Meta<typeof Breadcrumbs>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Breadcrumbs>;
6
+ export declare const Default: Story;
7
+ export declare const WithLinks: Story;
8
+ export declare const WithIconsAndLinks: Story;
9
+ export declare const WithSizes: Story;
@@ -0,0 +1 @@
1
+ export * from './Breadcrumbs';
@@ -0,0 +1,7 @@
1
+ import { HTMLProps } from 'react';
2
+ export interface BrowserProps extends HTMLProps<HTMLDivElement> {
3
+ browserUrl?: string;
4
+ contentClassName?: string;
5
+ searchInputClassName?: string;
6
+ }
7
+ export declare const Browser: ({ browserUrl, children, className, contentClassName, searchInputClassName, ...props }: BrowserProps) => JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Browser } from './Browser';
3
+ declare const meta: Meta<typeof Browser>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Browser>;
6
+ export declare const Default: Story;
7
+ export declare const WithBorder: Story;
8
+ export declare const WithBackgroundColor: Story;
@@ -0,0 +1 @@
1
+ export * from './Browser';
@@ -1,7 +1,7 @@
1
1
  import { ButtonHTMLAttributes } from 'react';
2
2
  export declare const BUTTON_COLORS: readonly ["neutral", "primary", "secondary", "accent", "info", "success", "warning", "error", "ghost"];
3
3
  export declare const BUTTON_SHAPES: readonly ["circle", "square"];
4
- export declare const BUTTON_SIZES: readonly ["lg", "md", "sm", "xs"];
4
+ export declare const BUTTON_SIZES: readonly ["xl", "lg", "md", "sm", "xs"];
5
5
  export type ButtonColor = (typeof BUTTON_COLORS)[number];
6
6
  export type ButtonShape = (typeof BUTTON_SHAPES)[number];
7
7
  export type ButtonSize = (typeof BUTTON_SIZES)[number];
@@ -10,6 +10,7 @@ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
10
10
  as?: 'a' | 'button';
11
11
  block?: boolean;
12
12
  color?: ButtonColor;
13
+ dash?: boolean;
13
14
  disabled?: boolean;
14
15
  glass?: boolean;
15
16
  link?: boolean;
@@ -18,6 +19,7 @@ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
18
19
  outline?: boolean;
19
20
  shape?: ButtonShape;
20
21
  size?: ButtonSize;
22
+ soft?: boolean;
21
23
  wide?: boolean;
22
24
  }
23
- export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
25
+ export declare const Button: import('react').ForwardRefExoticComponent<ButtonProps & import('react').RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
@@ -1,8 +1,13 @@
1
- import { Story, Meta } from '@storybook/react';
2
- import { ButtonProps } from './Button';
3
- declare const _default: Meta;
4
- export default _default;
5
- export declare const Default: Story<ButtonProps>;
6
- export declare const Loading: Story<ButtonProps>;
7
- export declare const CustomColor: Story<ButtonProps>;
8
- export declare const CustomSize: Story<ButtonProps>;
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Button } from './Button';
3
+ declare const meta: Meta<typeof Button>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Button>;
6
+ export declare const Default: Story;
7
+ export declare const Loading: Story;
8
+ export declare const CustomColor: Story;
9
+ export declare const CustomSize: Story;
10
+ export declare const Outline: Story;
11
+ export declare const Soft: Story;
12
+ export declare const Dash: Story;
13
+ export declare const Shapes: Story;
@@ -1,4 +1,4 @@
1
- import { type Key, type ComponentProps, type FC, HTMLProps, ReactNode } from 'react';
1
+ import { ComponentProps, FC, HTMLProps, Key, ReactNode } from 'react';
2
2
  import { Breakpoint } from '../../common';
3
3
  import { ButtonProps } from '../Button';
4
4
  import { DropdownMenuProps } from '../DropdownMenu';
@@ -1,7 +1,8 @@
1
- import { Story, Meta } from '@storybook/react';
2
- import { ButtonArrayProps } from './ButtonArray';
3
- declare const _default: Meta;
4
- export default _default;
5
- export declare const Default: Story<ButtonArrayProps>;
6
- export declare const WithTooltips: Story<ButtonArrayProps>;
7
- export declare const Collapsable: Story<ButtonArrayProps>;
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { ButtonArray } from './ButtonArray';
3
+ declare const meta: Meta<typeof ButtonArray>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof ButtonArray>;
6
+ export declare const Primary: Story;
7
+ export declare const WithTooltips: Story;
8
+ export declare const Collapsable: Story;
@@ -1,9 +1,11 @@
1
1
  import { HTMLAttributes } from 'react';
2
+ export declare const CARD_SIZES: readonly ["xs", "sm", "md", "lg", "xl"];
3
+ export type CardSize = (typeof CARD_SIZES)[number];
2
4
  export interface CardProps extends HTMLAttributes<HTMLDivElement> {
3
- bordered?: boolean;
4
- compact?: boolean;
5
+ border?: boolean;
6
+ dash?: boolean;
5
7
  imageFull?: boolean;
6
- normal?: boolean;
7
8
  side?: boolean;
9
+ size?: CardSize;
8
10
  }
9
- export declare const Card: ({ bordered, className, compact, imageFull, normal, side, ...props }: CardProps) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const Card: ({ border, className, dash, imageFull, side, size, ...props }: CardProps) => import("react/jsx-runtime").JSX.Element;