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
@@ -7,4 +7,4 @@ export interface DisclosureProps {
7
7
  defaultOpen?: boolean;
8
8
  rounded?: boolean;
9
9
  }
10
- export declare const Disclosure: import("react").ForwardRefExoticComponent<DisclosureProps & import("react").RefAttributes<HTMLDivElement>>;
10
+ export declare const Disclosure: import('react').ForwardRefExoticComponent<DisclosureProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,8 +1,9 @@
1
- import { Story, Meta } from '@storybook/react';
2
- import { DisclosureProps } from './Disclosure';
3
- declare const _default: Meta;
4
- export default _default;
5
- export declare const Default: Story<DisclosureProps>;
6
- export declare const Rounded: Story<DisclosureProps>;
7
- export declare const Large: Story<DisclosureProps>;
8
- export declare const Open: Story<DisclosureProps>;
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Disclosure } from './Disclosure';
3
+ declare const meta: Meta<typeof Disclosure>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Disclosure>;
6
+ export declare const Default: Story;
7
+ export declare const Rounded: Story;
8
+ export declare const Large: Story;
9
+ export declare const Open: Story;
@@ -1,14 +1,14 @@
1
- import { HTMLProps } from 'react';
1
+ import { AnchorProps } from '@headlessui/react/dist/internal/floating';
2
2
  import { ButtonProps } from '../Button';
3
3
  import { MenuItemProps, MenuSize } from '../Menu';
4
4
  export interface DropdownItemProps extends Omit<MenuItemProps, 'disabled' | 'focus' | 'ref'> {
5
5
  id: string;
6
6
  }
7
- export interface DropdownMenuProps extends Omit<HTMLProps<HTMLDivElement>, 'as' | 'children' | 'className' | 'ref'> {
7
+ export interface DropdownMenuProps {
8
+ anchor?: AnchorProps;
8
9
  buttonProps?: ButtonProps;
9
- className?: string;
10
10
  items: DropdownItemProps[];
11
11
  menuClassName?: string;
12
12
  menuSize?: MenuSize;
13
13
  }
14
- export declare const DropdownMenu: import("react").ForwardRefExoticComponent<DropdownMenuProps & import("react").RefAttributes<HTMLDivElement>>;
14
+ export declare const DropdownMenu: import('react').ForwardRefExoticComponent<DropdownMenuProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,7 +1,8 @@
1
- import { Story, Meta } from '@storybook/react';
2
- import { DropdownMenuProps } from './DropdownMenu';
3
- declare const _default: Meta;
4
- export default _default;
5
- export declare const Default: Story<DropdownMenuProps>;
6
- export declare const Rounded: Story<DropdownMenuProps>;
7
- export declare const RoundedWithPadding: Story<DropdownMenuProps>;
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { DropdownMenu } from './DropdownMenu';
3
+ declare const meta: Meta<typeof DropdownMenu>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof DropdownMenu>;
6
+ export declare const Default: Story;
7
+ export declare const Rounded: Story;
8
+ export declare const RoundedWithPadding: Story;
@@ -1,8 +1,8 @@
1
1
  import { HTMLProps } from 'react';
2
2
  import { FieldValues } from 'react-hook-form';
3
3
  import { FormFieldProps } from './types';
4
- export declare const CHECKBOX_COLORS: readonly ["primary", "secondary", "accent", "success", "warning", "info", "error"];
5
- export declare const CHECKBOX_SIZES: readonly ["lg", "md", "sm", "xs"];
4
+ export declare const CHECKBOX_COLORS: readonly ["neutral", "primary", "secondary", "accent", "success", "warning", "info", "error"];
5
+ export declare const CHECKBOX_SIZES: readonly ["xl", "lg", "md", "sm", "xs"];
6
6
  export type CheckboxColor = (typeof CHECKBOX_COLORS)[number];
7
7
  export type CheckboxSize = (typeof CHECKBOX_SIZES)[number];
8
8
  export interface FormCheckboxProps<Values extends FieldValues> extends Omit<FormFieldProps<Values>, 'placeholder'>, Omit<HTMLProps<HTMLInputElement>, 'name' | 'size'> {
@@ -1,9 +1,7 @@
1
- import { Story, Meta } from '@storybook/react';
2
- import { FormCheckboxProps } from './FormCheckbox';
3
- declare const _default: Meta;
4
- export default _default;
5
- interface FormValues {
6
- field1: boolean;
7
- }
8
- export declare const Default: Story<FormCheckboxProps<FormValues>>;
9
- export declare const WithDefaultValue: Story<FormCheckboxProps<FormValues>>;
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { FormCheckbox } from './FormCheckbox';
3
+ declare const meta: Meta<typeof FormCheckbox>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof FormCheckbox>;
6
+ export declare const Default: Story;
7
+ export declare const WithDefaultValue: Story;
@@ -1,9 +1,9 @@
1
1
  import { HTMLProps, ReactNode } from 'react';
2
2
  import { FieldValues } from 'react-hook-form';
3
- import { FormFieldProps } from './types';
4
3
  import { Transform } from '../../common';
5
- export declare const INPUT_COLORS: readonly ["ghost", "primary", "secondary", "accent", "info", "success", "warning", "error"];
6
- export declare const INPUT_SIZES: readonly ["lg", "md", "sm", "xs"];
4
+ import { FormFieldProps } from './types';
5
+ export declare const INPUT_COLORS: readonly ["ghost", "neutral", "primary", "secondary", "accent", "info", "success", "warning", "error"];
6
+ export declare const INPUT_SIZES: readonly ["xl", "lg", "md", "sm", "xs"];
7
7
  export type InputColor = (typeof INPUT_COLORS)[number];
8
8
  export type InputSize = (typeof INPUT_SIZES)[number];
9
9
  export interface FormControlProps<Values extends FieldValues, TOutput> extends FormFieldProps<Values>, Omit<HTMLProps<HTMLInputElement>, 'name' | 'size'> {
@@ -1,14 +1,12 @@
1
- import { Story, Meta } from '@storybook/react';
2
- import { FormControlProps } from './FormControl';
3
- declare const _default: Meta;
4
- export default _default;
5
- interface FormValues {
6
- field1: string;
7
- }
8
- export declare const Default: Story<FormControlProps<FormValues, string>>;
9
- export declare const WithLabel: Story<FormControlProps<FormValues, string>>;
10
- export declare const Required: Story<FormControlProps<FormValues, string>>;
11
- export declare const WithPlaceholder: Story<FormControlProps<FormValues, string>>;
12
- export declare const WithError: Story<FormControlProps<FormValues, string>>;
13
- export declare const WithElementOnLeft: Story<FormControlProps<FormValues, string>>;
14
- export declare const WithElementOnRight: Story<FormControlProps<FormValues, string>>;
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { FormControl } from './FormControl';
3
+ declare const meta: Meta<typeof FormControl>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof FormControl>;
6
+ export declare const Default: Story;
7
+ export declare const WithLabel: Story;
8
+ export declare const Required: Story;
9
+ export declare const WithPlaceholder: Story;
10
+ export declare const WithError: Story;
11
+ export declare const WithElementOnLeft: Story;
12
+ export declare const WithElementOnRight: Story;
@@ -1,3 +1,3 @@
1
1
  import { HTMLProps } from 'react';
2
2
  export type FormErrorProps = HTMLProps<HTMLLabelElement>;
3
- export declare const FormError: import("react").ForwardRefExoticComponent<Omit<FormErrorProps, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
3
+ export declare const FormError: import('react').ForwardRefExoticComponent<Omit<FormErrorProps, "ref"> & import('react').RefAttributes<HTMLLabelElement>>;
@@ -1,8 +1,8 @@
1
1
  import { HTMLProps } from 'react';
2
2
  import { FieldValues } from 'react-hook-form';
3
3
  import { FormFieldProps } from './types';
4
- export declare const FILE_INPUT_COLORS: readonly ["ghost", "primary", "secondary", "accent", "info", "warning", "success", "error"];
5
- export declare const FILE_INPUT_SIZES: readonly ["lg", "md", "sm", "xs"];
4
+ export declare const FILE_INPUT_COLORS: readonly ["ghost", "neutral", "primary", "secondary", "accent", "info", "warning", "success", "error"];
5
+ export declare const FILE_INPUT_SIZES: readonly ["xl", "lg", "md", "sm", "xs"];
6
6
  export type FileInputColor = (typeof FILE_INPUT_COLORS)[number];
7
7
  export type FileInputSize = (typeof FILE_INPUT_SIZES)[number];
8
8
  export interface FormFileInputProps<Values extends FieldValues> extends FormFieldProps<Values>, Omit<HTMLProps<HTMLInputElement>, 'name' | 'size'> {
@@ -1,8 +1,6 @@
1
- import { Story, Meta } from '@storybook/react';
2
- import { FormFileInputProps } from './FormFileInput';
3
- declare const _default: Meta;
4
- export default _default;
5
- interface FormValues {
6
- field1: string;
7
- }
8
- export declare const Default: Story<FormFileInputProps<FormValues>>;
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { FormFileInput } from './FormFileInput';
3
+ declare const meta: Meta<typeof FormFileInput>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof FormFileInput>;
6
+ export declare const Default: Story;
@@ -2,4 +2,4 @@ import { HTMLProps } from 'react';
2
2
  export interface FormLabelTextProps extends HTMLProps<HTMLSpanElement> {
3
3
  isRequired?: boolean;
4
4
  }
5
- export declare const FormLabelText: import("react").ForwardRefExoticComponent<Omit<FormLabelTextProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
5
+ export declare const FormLabelText: import('react').ForwardRefExoticComponent<Omit<FormLabelTextProps, "ref"> & import('react').RefAttributes<HTMLSpanElement>>;
@@ -2,12 +2,13 @@ import { HTMLProps } from 'react';
2
2
  import { FieldValues } from 'react-hook-form';
3
3
  import { FormFieldProps } from './types';
4
4
  export interface RadioOption {
5
+ className?: string;
5
6
  id: string | number;
6
7
  label: string;
7
8
  value: string;
8
9
  }
9
- export declare const RADIO_COLORS: readonly ["primary", "secondary", "accent", "success", "warning", "info", "error"];
10
- export declare const RADIO_SIZES: readonly ["lg", "md", "sm", "xs"];
10
+ export declare const RADIO_COLORS: readonly ["neutral", "primary", "secondary", "accent", "success", "warning", "info", "error"];
11
+ export declare const RADIO_SIZES: readonly ["xl", "lg", "md", "sm", "xs"];
11
12
  export type RadioColor = (typeof RADIO_COLORS)[number];
12
13
  export type RadioSize = (typeof RADIO_SIZES)[number];
13
14
  export interface FormRadioProps<Values extends FieldValues> extends Omit<FormFieldProps<Values>, 'placeholder'>, Omit<HTMLProps<HTMLInputElement>, 'name' | 'size'> {
@@ -1,10 +1,8 @@
1
- import { Story, Meta } from '@storybook/react';
2
- import { FormRadioProps } from './FormRadio';
3
- declare const _default: Meta;
4
- export default _default;
5
- interface FormValues {
6
- field1: string;
7
- }
8
- export declare const Default: Story<FormRadioProps<FormValues>>;
9
- export declare const Required: Story<FormRadioProps<FormValues>>;
10
- export declare const WithError: Story<FormRadioProps<FormValues>>;
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { FormRadio } from './FormRadio';
3
+ declare const meta: Meta<typeof FormRadio>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof FormRadio>;
6
+ export declare const Default: Story;
7
+ export declare const Required: Story;
8
+ export declare const WithError: Story;
@@ -1,8 +1,6 @@
1
- import { Story, Meta } from '@storybook/react';
2
- import { FormRadioGroupProps } from './FormRadioGroup';
3
- declare const _default: Meta;
4
- export default _default;
5
- interface FormValues {
6
- field1: string;
7
- }
8
- export declare const Default: Story<FormRadioGroupProps<FormValues>>;
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { FormRadioGroup } from './FormRadioGroup';
3
+ declare const meta: Meta<typeof FormRadioGroup>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof FormRadioGroup>;
6
+ export declare const Default: Story;
@@ -21,4 +21,4 @@ export interface FormRangeSliderProps<Values> {
21
21
  thumbLeftColor?: string;
22
22
  thumbRightColor?: string;
23
23
  }
24
- export declare const FormRangeSlider: import("react").ForwardRefExoticComponent<FormRangeSliderProps<FieldValues> & import("react").RefAttributes<HTMLDivElement>>;
24
+ export declare const FormRangeSlider: import('react').ForwardRefExoticComponent<FormRangeSliderProps<FieldValues> & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,8 +1,6 @@
1
- import { Story, Meta } from '@storybook/react';
2
- import { FormRangeSliderProps } from './FormRangeSlider';
3
- declare const _default: Meta;
4
- export default _default;
5
- interface FormValues {
6
- field1: [number, number];
7
- }
8
- export declare const Default: Story<FormRangeSliderProps<FormValues>>;
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { FormRangeSlider } from './FormRangeSlider';
3
+ declare const meta: Meta<typeof FormRangeSlider>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof FormRangeSlider>;
6
+ export declare const Default: Story;
@@ -2,8 +2,8 @@ import { HTMLProps } from 'react';
2
2
  import { FieldValues } from 'react-hook-form';
3
3
  import { Transform } from '../../common';
4
4
  import { FormFieldProps } from './types';
5
- export declare const TEXTAREA_COLORS: readonly ["ghost", "primary", "secondary", "accent", "info", "success", "warning", "error"];
6
- export declare const TEXTAREA_SIZES: readonly ["lg", "md", "sm", "xs"];
5
+ export declare const TEXTAREA_COLORS: readonly ["ghost", "neutral", "primary", "secondary", "accent", "info", "success", "warning", "error"];
6
+ export declare const TEXTAREA_SIZES: readonly ["xl", "lg", "md", "sm", "xs"];
7
7
  export type TextareaColor = (typeof TEXTAREA_COLORS)[number];
8
8
  export type TextareaSize = (typeof TEXTAREA_SIZES)[number];
9
9
  export interface FormTextareaProps<Values extends FieldValues, TOutput> extends FormFieldProps<Values>, Omit<HTMLProps<HTMLTextAreaElement>, 'name' | 'size'> {
@@ -1,12 +1,10 @@
1
- import { Story, Meta } from '@storybook/react';
2
- import { FormTextareaProps } from './FormTextarea';
3
- declare const _default: Meta;
4
- export default _default;
5
- interface FormValues {
6
- field1: string;
7
- }
8
- export declare const Default: Story<FormTextareaProps<FormValues, string>>;
9
- export declare const WithLabel: Story<FormTextareaProps<FormValues, string>>;
10
- export declare const Required: Story<FormTextareaProps<FormValues, string>>;
11
- export declare const WithPlaceholder: Story<FormTextareaProps<FormValues, string>>;
12
- export declare const WithError: Story<FormTextareaProps<FormValues, string>>;
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { FormTextarea } from './FormTextarea';
3
+ declare const meta: Meta<typeof FormTextarea>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof FormTextarea>;
6
+ export declare const Default: Story;
7
+ export declare const WithLabel: Story;
8
+ export declare const Required: Story;
9
+ export declare const WithPlaceholder: Story;
10
+ export declare const WithError: Story;
@@ -2,7 +2,7 @@ import { HTMLProps } from 'react';
2
2
  import { FieldValues } from 'react-hook-form';
3
3
  import { FormFieldProps } from './types';
4
4
  export declare const TOGGLE_COLORS: readonly ["primary", "secondary", "accent", "success", "warning", "info", "error"];
5
- export declare const TOGGLE_SIZES: readonly ["lg", "md", "sm", "xs"];
5
+ export declare const TOGGLE_SIZES: readonly ["xl", "lg", "md", "sm", "xs"];
6
6
  export type ToggleColor = (typeof TOGGLE_COLORS)[number];
7
7
  export type ToggleSize = (typeof TOGGLE_SIZES)[number];
8
8
  export interface FormToggleSwitchProps<Values extends FieldValues> extends Omit<FormFieldProps<Values>, 'placeholder'>, Omit<HTMLProps<HTMLInputElement>, 'name' | 'size'> {
@@ -1,8 +1,6 @@
1
- import { Story, Meta } from '@storybook/react';
2
- import { FormToggleSwitchProps } from './FormToggleSwitch';
3
- declare const _default: Meta;
4
- export default _default;
5
- interface FormValues {
6
- field1: boolean;
7
- }
8
- export declare const Default: Story<FormToggleSwitchProps<FormValues>>;
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { FormToggleSwitch } from './FormToggleSwitch';
3
+ declare const meta: Meta<typeof FormToggleSwitch>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof FormToggleSwitch>;
6
+ export declare const Default: Story;
@@ -1,4 +1,6 @@
1
- import { Story, Meta } from '@storybook/react';
2
- declare const _default: Meta;
3
- export default _default;
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { FullScreenLoader } from './FullScreenLoader';
3
+ declare const meta: Meta<typeof FullScreenLoader>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof FullScreenLoader>;
4
6
  export declare const Default: Story;
@@ -7,6 +7,7 @@ export declare const EllipsisVerticalIcon: (props: SVGProps<SVGSVGElement>) => J
7
7
  export declare const ErrorIcon: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
8
8
  export declare const EyeIcon: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
9
9
  export declare const EyeSlashIcon: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const HomeIcon: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
10
11
  export declare const InfoIcon: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
11
12
  export declare const SortAscendingIcon: () => import("react/jsx-runtime").JSX.Element;
12
13
  export declare const SortDescendingIcon: () => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,8 @@
1
- import { Story, Meta } from '@storybook/react';
2
- declare const _default: Meta;
3
- export default _default;
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Link } from './Link';
3
+ declare const meta: Meta<typeof Link>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Link>;
4
6
  export declare const Default: Story;
5
7
  export declare const WithHover: Story;
6
8
  export declare const WithColor: Story;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,7 +1,7 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
  export declare const LOADING_SHAPES: readonly ["spinner", "dots", "ring", "ball", "bars", "infinity"];
3
3
  export type LoadingShape = (typeof LOADING_SHAPES)[number];
4
- export declare const LOADING_SIZES: readonly ["xs", "sm", "md", "lg"];
4
+ export declare const LOADING_SIZES: readonly ["xs", "sm", "md", "lg", "xl"];
5
5
  export type LoadingSize = (typeof LOADING_SIZES)[number];
6
6
  export interface LoadingProps extends HTMLAttributes<HTMLSpanElement> {
7
7
  shape?: LoadingShape;
@@ -1,6 +1,8 @@
1
- import { Story, Meta } from '@storybook/react';
2
- declare const _default: Meta;
3
- export default _default;
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Loading } from './Loading';
3
+ declare const meta: Meta<typeof Loading>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Loading>;
4
6
  export declare const Default: Story;
5
- export declare const CustomSize: Story;
7
+ export declare const AllSizesTemplate: Story;
6
8
  export declare const CustomShape: Story;
@@ -1,5 +1,5 @@
1
- import { HTMLProps } from 'react';
2
- export interface LoadingCardProps extends HTMLProps<HTMLDivElement> {
1
+ import { CardProps } from '../Card';
2
+ export interface LoadingCardProps extends CardProps {
3
3
  isLoading?: boolean;
4
4
  }
5
- export declare const LoadingCard: ({ children, className, isLoading, ...props }: LoadingCardProps) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const LoadingCard: ({ children, isLoading, ...props }: LoadingCardProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,6 @@
1
- import { Story, Meta } from '@storybook/react';
2
- import { LoadingCardProps } from './LoadingCard';
3
- declare const _default: Meta;
4
- export default _default;
5
- export declare const Default: Story<LoadingCardProps>;
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { LoadingCard } from './LoadingCard';
3
+ declare const meta: Meta<typeof LoadingCard>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof LoadingCard>;
6
+ export declare const Default: Story;
@@ -1,5 +1,5 @@
1
1
  import { HTMLProps } from 'react';
2
- export declare const MENU_SIZES: readonly ["xs", "sm", "md", "lg"];
2
+ export declare const MENU_SIZES: readonly ["xs", "sm", "md", "lg", "xl"];
3
3
  export declare const MENU_LAYOUTS: readonly ["horizontal", "vertical"];
4
4
  export type MenuSize = (typeof MENU_SIZES)[number];
5
5
  export type MenuLayout = (typeof MENU_LAYOUTS)[number];
@@ -7,4 +7,4 @@ export interface MenuProps extends Omit<HTMLProps<HTMLUListElement>, 'size'> {
7
7
  layout?: MenuLayout;
8
8
  size?: MenuSize;
9
9
  }
10
- export declare const Menu: import("react").ForwardRefExoticComponent<Omit<MenuProps, "ref"> & import("react").RefAttributes<HTMLUListElement>>;
10
+ export declare const Menu: import('react').ForwardRefExoticComponent<Omit<MenuProps, "ref"> & import('react').RefAttributes<HTMLUListElement>>;
@@ -1,11 +1,10 @@
1
1
  import { HTMLProps, ReactNode } from 'react';
2
- export interface MenuItemProps extends HTMLProps<HTMLAnchorElement> {
2
+ export interface MenuItemProps extends Omit<HTMLProps<HTMLAnchorElement>, 'title'> {
3
3
  active?: boolean;
4
- bordered?: boolean;
5
- borderOnHover?: boolean;
6
4
  disabled?: boolean;
7
5
  focus?: boolean;
8
6
  selected?: boolean;
9
7
  subMenu?: ReactNode;
8
+ title?: boolean;
10
9
  }
11
- export declare const MenuItem: import("react").ForwardRefExoticComponent<Omit<MenuItemProps, "ref"> & import("react").RefAttributes<HTMLAnchorElement>>;
10
+ export declare const MenuItem: import('react').ForwardRefExoticComponent<Omit<MenuItemProps, "ref"> & import('react').RefAttributes<HTMLAnchorElement>>;
@@ -1,5 +1,6 @@
1
- import { Story, Meta } from '@storybook/react';
2
- import { MenuItemProps } from './MenuItem';
3
- declare const _default: Meta;
4
- export default _default;
5
- export declare const Default: Story<MenuItemProps>;
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { MenuItem } from './MenuItem';
3
+ declare const meta: Meta<typeof MenuItem>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof MenuItem>;
6
+ export declare const Default: Story;
@@ -9,4 +9,4 @@ export interface ModalProps extends HTMLProps<HTMLDialogElement> {
9
9
  responsivePosition?: ModalPosition;
10
10
  title?: string;
11
11
  }
12
- export declare const Modal: import("react").ForwardRefExoticComponent<Omit<ModalProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
12
+ export declare const Modal: import('react').ForwardRefExoticComponent<Omit<ModalProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,6 +1,7 @@
1
- import { Story, Meta } from '@storybook/react';
2
- import { ModalProps } from './Modal';
3
- declare const _default: Meta;
4
- export default _default;
5
- export declare const Default: Story<ModalProps>;
6
- export declare const WithActionButtons: Story<ModalProps>;
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Modal } from './Modal';
3
+ declare const meta: Meta<typeof Modal>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Modal>;
6
+ export declare const Default: Story;
7
+ export declare const WithActionButtons: Story;
@@ -1,8 +1,6 @@
1
- import { Story, Meta } from '@storybook/react';
2
- import { PasswordInputProps } from './PasswordInput';
3
- declare const _default: Meta;
4
- export default _default;
5
- interface FormValues {
6
- field1: string;
7
- }
8
- export declare const Default: Story<PasswordInputProps<FormValues, string>>;
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { PasswordInput } from './PasswordInput';
3
+ declare const meta: Meta<typeof PasswordInput>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof PasswordInput>;
6
+ export declare const Default: Story;
@@ -1,4 +1,5 @@
1
1
  import { PopoverProps as HeadlessUIPopoverProps } from '@headlessui/react';
2
+ import { AnchorProps } from '@headlessui/react/dist/internal/floating';
2
3
  import { MutableRefObject } from 'react';
3
4
  import { ButtonProps } from '../Button';
4
5
  export interface PopoverPanelRenderProps {
@@ -6,10 +7,10 @@ export interface PopoverPanelRenderProps {
6
7
  close: (focusableElement?: HTMLElement | MutableRefObject<HTMLElement | null>) => void;
7
8
  }
8
9
  export interface PopoverProps extends Omit<HeadlessUIPopoverProps<'div'>, 'as' | 'className'> {
10
+ anchor?: AnchorProps;
9
11
  buttonProps: ButtonProps;
10
12
  className?: string;
11
13
  popoverClassName?: string;
12
14
  popoverComponent: ({ open, close }: PopoverPanelRenderProps) => JSX.Element;
13
- withBackdrop?: boolean;
14
15
  }
15
- export declare const Popover: import("react").ForwardRefExoticComponent<PopoverProps & import("react").RefAttributes<HTMLDivElement>>;
16
+ export declare const Popover: import('react').ForwardRefExoticComponent<PopoverProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,6 +1,6 @@
1
- import { Story, Meta } from '@storybook/react';
2
- import { PopoverProps } from './Popover';
3
- declare const _default: Meta;
4
- export default _default;
5
- export declare const Default: Story<PopoverProps>;
6
- export declare const WithBackdrop: Story<PopoverProps>;
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Popover } from './Popover';
3
+ declare const meta: Meta<typeof Popover>;
4
+ export default meta;
5
+ export declare const Default: Story;
6
+ type Story = StoryObj<typeof Popover>;
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export declare const PROGRESS_COLORS: readonly ["primary", "secondary", "accent", "info", "success", "warning", "error"];
2
+ export declare const PROGRESS_COLORS: readonly ["neutral", "primary", "secondary", "accent", "info", "success", "warning", "error"];
3
3
  export type ProgressColor = (typeof PROGRESS_COLORS)[number];
4
4
  export interface ProgressProps extends HTMLAttributes<HTMLProgressElement> {
5
5
  color?: ProgressColor;
@@ -1,6 +1,7 @@
1
- import { Story, Meta } from '@storybook/react';
2
- import { ProgressProps } from './Progress';
3
- declare const _default: Meta;
4
- export default _default;
5
- export declare const Default: Story<ProgressProps>;
6
- export declare const CustomColor: Story<ProgressProps>;
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Progress } from './Progress';
3
+ declare const meta: Meta<typeof Progress>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Progress>;
6
+ export declare const Default: Story;
7
+ export declare const CustomColor: Story;
@@ -2,6 +2,6 @@ import { HTMLAttributes } from 'react';
2
2
  export interface RadialProgressProps extends HTMLAttributes<HTMLDivElement> {
3
3
  size?: string;
4
4
  thickness?: string;
5
- value: number;
5
+ value: string | number;
6
6
  }
7
7
  export declare const RadialProgress: ({ className, size, style, thickness, value, ...props }: RadialProgressProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,7 @@
1
- import { Story, Meta } from '@storybook/react';
2
- import { RadialProgressProps } from './RadialProgress';
3
- declare const _default: Meta;
4
- export default _default;
5
- export declare const Default: Story<RadialProgressProps>;
6
- export declare const CustomValue: Story<RadialProgressProps>;
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { RadialProgress } from './RadialProgress';
3
+ declare const meta: Meta<typeof RadialProgress>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof RadialProgress>;
6
+ export declare const Default: Story;
7
+ export declare const CustomValue: Story;