@loadsmart/loadsmart-ui 8.0.0-beta.1 → 8.0.0-rc.1

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 (62) hide show
  1. package/dist/components/Banner/Banner.d.ts +2 -2
  2. package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +1 -1
  3. package/dist/components/Button/Button.d.ts +1 -1
  4. package/dist/components/Calendar/Calendar.stories.d.ts +1 -1
  5. package/dist/components/Calendar/Pickers/DayPicker.d.ts +1 -1
  6. package/dist/components/Calendar/Pickers/PickerButton.d.ts +2 -4
  7. package/dist/components/Card/Card.d.ts +4 -4
  8. package/dist/components/Card/Card.stories.d.ts +5 -5
  9. package/dist/components/Card/CardTitle.d.ts +2 -2
  10. package/dist/components/DatePicker/DatePicker.d.ts +1 -1
  11. package/dist/components/DatePicker/DatePicker.stories.d.ts +3 -3
  12. package/dist/components/DatePicker/DateRangePicker.stories.d.ts +3 -3
  13. package/dist/components/Dialog/Dialog.d.ts +5 -3
  14. package/dist/components/DragDropFile/styles.d.ts +7 -7
  15. package/dist/components/Drawer/Drawer.stories.d.ts +3 -3
  16. package/dist/components/Dropdown/Dropdown.d.ts +3 -3
  17. package/dist/components/Dropdown/Dropdown.stories.d.ts +5 -5
  18. package/dist/components/Dropdown/DropdownMenu.d.ts +3 -3
  19. package/dist/components/Dropdown/DropdownTrigger.d.ts +1 -1
  20. package/dist/components/HighlightMatch/HighlightMatch.stories.d.ts +2 -2
  21. package/dist/components/IconFactory/IconFactory.d.ts +1 -1
  22. package/dist/components/IconFactory/IconFactory.stories.d.ts +2 -2
  23. package/dist/components/Layout/Stack.d.ts +2 -2
  24. package/dist/components/Loaders/LoadingBar.d.ts +2 -2
  25. package/dist/components/Loaders/LoadingBar.stories.d.ts +2 -2
  26. package/dist/components/Loaders/LoadingDots.stories.d.ts +3 -3
  27. package/dist/components/Loaders/Spinner.stories.d.ts +2 -2
  28. package/dist/components/Modal/Modal.d.ts +3 -1
  29. package/dist/components/Pagination/Pagination.stories.d.ts +2 -2
  30. package/dist/components/Popover/Popover.stories.d.ts +2 -2
  31. package/dist/components/Select/Select.stories.d.ts +16 -16
  32. package/dist/components/SideNavigation/Logo/Logo.d.ts +2 -7
  33. package/dist/components/SideNavigation/Menu/Menu.d.ts +2 -7
  34. package/dist/components/SideNavigation/Menu/MenuLink.d.ts +1 -6
  35. package/dist/components/SideNavigation/SideNavigation.d.ts +4 -14
  36. package/dist/components/Steps/Steps.stories.d.ts +2 -2
  37. package/dist/components/Steps/StepsStep.d.ts +2 -2
  38. package/dist/components/Switch/Switch.stories.d.ts +2 -2
  39. package/dist/components/Table/Table.d.ts +5 -6
  40. package/dist/components/Table/Table.types.d.ts +1 -1
  41. package/dist/components/TablePagination/TablePagination.stories.d.ts +2 -2
  42. package/dist/components/TablePagination/TablePagination.styles.d.ts +4 -5
  43. package/dist/components/TablePagination/TablePaginationActions.d.ts +5 -2
  44. package/dist/components/Text/Text.d.ts +1 -1
  45. package/dist/components/Text/Text.stories.d.ts +2 -2
  46. package/dist/components/TextField/TextField.d.ts +2 -6
  47. package/dist/components/ToggleGroup/Toggle.d.ts +1 -2
  48. package/dist/components/ToggleGroup/ToggleGroup.d.ts +1 -2
  49. package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +3 -3
  50. package/dist/components/TopNavigation/Logo/Logo.d.ts +2 -7
  51. package/dist/components/TopNavigation/Menu/Menu.d.ts +2 -2
  52. package/dist/components/TopNavigation/Menu/MenuItemDropdown.d.ts +4 -4
  53. package/dist/components/TopNavigation/OpenSideNavButton/OpenSideNavButton.d.ts +1 -2
  54. package/dist/components/TopNavigation/TopNavigation.d.ts +3 -8
  55. package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +1 -1
  56. package/dist/components/VisuallyHidden/VisuallyHidden.stories.d.ts +2 -4
  57. package/dist/hooks/useFocusTrap/useFocusTrap.stories.d.ts +4 -4
  58. package/dist/index.js +4 -4
  59. package/dist/index.js.map +1 -1
  60. package/dist/styles/typography.d.ts +2 -4
  61. package/package.json +16 -15
  62. package/dist/addons/Theme/register.d.ts +0 -1
@@ -16,8 +16,8 @@ export interface BannerActionProps extends BannerProps {
16
16
  onActionButtonClick?: () => void;
17
17
  onSecondaryActionButtonClick?: () => void;
18
18
  }
19
- export declare const CloseButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('../../common/CloseButton').CloseButtonProps, never>> & string & Omit<typeof DefaultCloseButton, keyof React.Component<any, {}, any>>;
20
- export declare const Icon: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../IconFactory').IconProps<import('../IconFactory').IconMapping> | (import('../IconFactory').IconProps<import('../IconFactory').IconMapping> & React.RefAttributes<React.Component<import('../IconFactory').IconProps<import('../IconFactory').IconMapping>, any, any>>), import('styled-components/dist/types').BaseObject>> & (string & (Omit<React.ComponentClass<import('../IconFactory').IconProps<import('../IconFactory').IconMapping>, any>, keyof React.Component<any, {}, any>> | Omit<React.FunctionComponent<import('../IconFactory').IconProps<import('../IconFactory').IconMapping>>, keyof React.Component<any, {}, any>>));
19
+ export declare const CloseButton: import('styled-components').StyledComponent<typeof DefaultCloseButton, any, {}, never>;
20
+ export declare const Icon: import('styled-components').StyledComponent<React.ComponentType<import('../IconFactory').IconProps<import('../IconFactory').IconMapping>>, any, {}, never>;
21
21
  declare function Banner({ scale, variant, icon, title, description, onClose, dismissible, ...others }: BannerProps): React.JSX.Element | null;
22
22
  export declare function BannerLarge({ scale, variant, icon, title, description, onClose, dismissible, ...others }: BannerProps): React.JSX.Element | null;
23
23
  export declare function BannerAction({ scale, variant, icon, title, action, secondaryAction, onActionButtonClick, onSecondaryActionButtonClick, ...others }: BannerActionProps): JSX.Element;
@@ -2,4 +2,4 @@ import { BreadcrumbsProps } from './Breadcrumbs';
2
2
  import { Meta } from '@storybook/react';
3
3
  declare const _default: Meta;
4
4
  export default _default;
5
- export declare const Playground: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, BreadcrumbsProps>;
5
+ export declare const Playground: import('@storybook/core/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, BreadcrumbsProps>;
@@ -11,7 +11,7 @@ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
11
11
  scale?: 'small' | 'default' | 'large';
12
12
  loading?: boolean;
13
13
  }
14
- export declare const Children: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, ButtonProps>> & string;
14
+ export declare const Children: import('styled-components').StyledComponent<"span", any, ButtonProps, never>;
15
15
  export declare const BaseButton: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
16
16
  declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
17
17
  export declare function Caret(props: Omit<IconProps, 'name'>): JSX.Element;
@@ -3,7 +3,7 @@ import { CalendarDate } from './Date.helper';
3
3
  import { CalendarProps } from './Calendar.types';
4
4
  declare const _default: Meta;
5
5
  export default _default;
6
- export declare const Playground: import('@storybook/types').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, CalendarProps>;
6
+ export declare const Playground: import('@storybook/core/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, CalendarProps>;
7
7
  export declare function Selection(): JSX.Element;
8
8
  declare function isWeekend(date: CalendarDate): boolean;
9
9
  export declare function CalendarConstraints(args: CalendarProps): JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { CalendarPickerProps } from '../Calendar.types';
2
2
  export declare const WEEKDAYS: string[];
3
- export declare const formatter: import('../DateFormat.helper').DateFormat;
3
+ export declare const formatter: import('..').DateFormat;
4
4
  /**
5
5
  * filling days of previous month
6
6
  * TODO: supress this for range selection
@@ -1,6 +1,4 @@
1
- declare const _default: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<Omit<import('../../Button').ButtonProps & import('react').RefAttributes<HTMLButtonElement>, "ref"> & {
2
- ref?: ((instance: HTMLButtonElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLButtonElement> | null | undefined;
3
- }, "$status"> & {
1
+ declare const _default: import('styled-components').StyledComponent<import('react').ForwardRefExoticComponent<import('../../Button').ButtonProps & import('react').RefAttributes<HTMLButtonElement>>, any, {
4
2
  $status: "default" | "current-day" | "faded" | "selection-start" | "selection-end" | "selection" | "next-month-day";
5
- }, never>> & string;
3
+ }, never>;
6
4
  export default _default;
@@ -1,4 +1,4 @@
1
- import { default as React, HTMLAttributes, ReactNode } from 'react';
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
2
  import { default as CardTitle } from './CardTitle';
3
3
  import { default as Status } from '../../utils/types/Status';
4
4
  export interface CardProps extends HTMLAttributes<HTMLElement> {
@@ -9,8 +9,8 @@ export interface CardProps extends HTMLAttributes<HTMLElement> {
9
9
  declare function Card({ flagged, status, children, ...others }: CardProps): JSX.Element;
10
10
  declare namespace Card {
11
11
  var Title: typeof CardTitle;
12
- var Subtitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
13
- var Separator: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHRElement>, HTMLHRElement>, never>> & string;
14
- var Body: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
12
+ var Subtitle: import("styled-components").StyledComponent<"div", any, {}, never>;
13
+ var Separator: import("styled-components").StyledComponent<"hr", any, {}, never>;
14
+ var Body: import("styled-components").StyledComponent<"div", any, {}, never>;
15
15
  }
16
16
  export default Card;
@@ -1,8 +1,8 @@
1
- import { Story, Meta } from '@storybook/react';
1
+ import { StoryFn, Meta } from '@storybook/react';
2
2
  import { CardProps } from './Card';
3
3
  declare const _default: Meta;
4
4
  export default _default;
5
- export declare const Playground: Story<CardProps>;
6
- export declare const Default: Story<CardProps>;
7
- export declare const TitleOnly: Story<CardProps>;
8
- export declare const Flagged: Story<CardProps>;
5
+ export declare const Playground: StoryFn<CardProps>;
6
+ export declare const Default: StoryFn<CardProps>;
7
+ export declare const TitleOnly: StoryFn<CardProps>;
8
+ export declare const Flagged: StoryFn<CardProps>;
@@ -1,8 +1,8 @@
1
- import { default as React, ReactNode, HTMLAttributes } from 'react';
1
+ import { ReactNode, HTMLAttributes } from 'react';
2
2
  export interface CardTitleProps extends HTMLAttributes<HTMLElement> {
3
3
  leading?: ReactNode;
4
4
  }
5
- declare const Wrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
5
+ declare const Wrapper: import('styled-components').StyledComponent<"div", any, {}, never>;
6
6
  declare function CardTitle({ children, leading, ...others }: CardTitleProps): JSX.Element;
7
7
  export { Wrapper as CardTitleWrapper };
8
8
  export default CardTitle;
@@ -4,7 +4,7 @@ import { CalendarDate } from '../Calendar';
4
4
  import { DatePickerProps } from './DatePicker.types';
5
5
  import { TextFieldProps } from '../TextField';
6
6
  export declare const formatter: import('../Calendar').DateFormat;
7
- export declare const ClearButton: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('../../common/CloseButton').CloseButtonProps, never>> & string & Omit<typeof CloseButton, keyof React.Component<any, {}, any>>;
7
+ export declare const ClearButton: import('styled-components').StyledComponent<typeof CloseButton, any, {}, never>;
8
8
  interface DateInputProps extends Omit<TextFieldProps, 'onChange'> {
9
9
  onChange: (date: CalendarDate) => void;
10
10
  }
@@ -1,9 +1,9 @@
1
- import { Story, Meta } from '@storybook/react';
1
+ import { StoryFn, Meta } from '@storybook/react';
2
2
  import { DatePickerProps } from './DatePicker.types';
3
3
  declare const _default: Meta;
4
4
  export default _default;
5
- export declare const Playground: Story<DatePickerProps>;
6
- export declare const WithValue: Story<DatePickerProps>;
5
+ export declare const Playground: StoryFn<DatePickerProps>;
6
+ export declare const WithValue: StoryFn<DatePickerProps>;
7
7
  export declare function DatePickerConstraints(args: DatePickerProps): JSX.Element;
8
8
  export declare namespace DatePickerConstraints {
9
9
  var args: {
@@ -1,9 +1,9 @@
1
- import { Story, Meta } from '@storybook/react';
1
+ import { StoryFn, Meta } from '@storybook/react';
2
2
  import { DateRangePickerProps } from './DatePicker.types';
3
3
  declare const _default: Meta;
4
4
  export default _default;
5
- export declare const Playground: Story<DateRangePickerProps>;
6
- export declare const WithValue: Story<DateRangePickerProps>;
5
+ export declare const Playground: StoryFn<DateRangePickerProps>;
6
+ export declare const WithValue: StoryFn<DateRangePickerProps>;
7
7
  export declare function DateRangePickerConstraints(args: DateRangePickerProps): JSX.Element;
8
8
  export declare namespace DateRangePickerConstraints {
9
9
  var args: {
@@ -25,11 +25,13 @@ export interface DialogActionCancelProps extends Omit<ButtonProps, 'onClick' | '
25
25
  declare function DialogActionCancel({ onCancel, children, ...others }: DialogActionCancelProps): React.JSX.Element;
26
26
  declare function Dialog({ scale, open, ...others }: DialogProps): JSX.Element;
27
27
  declare namespace Dialog {
28
- var Header: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
29
- var Body: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
28
+ var Header: import("styled-components").StyledComponent<"h1", any, {}, never>;
29
+ var Body: import("styled-components").StyledComponent<"div", any, {}, never>;
30
30
  var ActionConfirm: typeof DialogActionConfirm;
31
31
  var ActionCancel: typeof DialogActionCancel;
32
32
  var Actions: typeof DialogActions;
33
- var Close: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("../..").CloseButtonProps, import("../..").CloseButtonProps>, never>, never>, never>> & string;
33
+ var Close: import("styled-components").StyledComponent<typeof import("../..").CloseButton, any, {
34
+ size: 16;
35
+ }, "size">;
34
36
  }
35
37
  export default Dialog;
@@ -1,11 +1,11 @@
1
1
  import { default as React } from 'react';
2
2
  import { StackProps, Stack } from '../Layout/Stack';
3
3
  import { DropZoneProps } from './types';
4
- export declare const DragDropFileWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<StackProps, {
4
+ export declare const DragDropFileWrapper: import('styled-components').StyledComponent<typeof Stack, any, {
5
5
  withFileList: boolean;
6
- }>> & string & Omit<typeof Stack, keyof React.Component<any, {}, any>>;
7
- export declare const DropZoneWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<StackProps, Pick<DropZoneProps, "disabled" | "error">>> & string & Omit<(props: StackProps) => React.JSX.Element, keyof React.Component<any, {}, any>>;
8
- export declare const HiddenInput: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
9
- export declare const UploadIcon: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../IconFactory').IconProps<import('../IconFactory').IconMapping> | (import('../IconFactory').IconProps<import('../IconFactory').IconMapping> & React.RefAttributes<React.Component<import('../IconFactory').IconProps<import('../IconFactory').IconMapping>, any, any>>), import('styled-components/dist/types').BaseObject>> & (string & (Omit<React.ComponentClass<import('../IconFactory').IconProps<import('../IconFactory').IconMapping>, any>, keyof React.Component<any, {}, any>> | Omit<React.FunctionComponent<import('../IconFactory').IconProps<import('../IconFactory').IconMapping>>, keyof React.Component<any, {}, any>>));
10
- export declare const FileListUL: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<StackProps, never>> & string & Omit<(props: StackProps) => React.JSX.Element, keyof React.Component<any, {}, any>>;
11
- export declare const Divider: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
6
+ }, never>;
7
+ export declare const DropZoneWrapper: import('styled-components').StyledComponent<(props: StackProps) => React.JSX.Element, any, Pick<DropZoneProps, "disabled" | "error">, never>;
8
+ export declare const HiddenInput: import('styled-components').StyledComponent<"input", any, {}, never>;
9
+ export declare const UploadIcon: import('styled-components').StyledComponent<React.ComponentType<import('../IconFactory').IconProps<import('../IconFactory').IconMapping>>, any, {}, never>;
10
+ export declare const FileListUL: import('styled-components').StyledComponent<(props: StackProps) => React.JSX.Element, any, {}, never>;
11
+ export declare const Divider: import('styled-components').StyledComponent<"div", any, {}, never>;
@@ -1,6 +1,6 @@
1
- import { Meta, Story } from '@storybook/react';
1
+ import { Meta, StoryFn } from '@storybook/react';
2
2
  import { DrawerProps } from './Drawer';
3
3
  declare const _default: Meta;
4
4
  export default _default;
5
- export declare const Playground: Story<DrawerProps>;
6
- export declare const SmallerContentPlayground: Story<DrawerProps>;
5
+ export declare const Playground: StoryFn<DrawerProps>;
6
+ export declare const SmallerContentPlayground: StoryFn<DrawerProps>;
@@ -40,8 +40,8 @@ declare namespace Dropdown {
40
40
  var Menu: React.ForwardRefExoticComponent<DropdownMenuProps & React.RefAttributes<HTMLDivElement>>;
41
41
  var Section: typeof DropdownMenuSection;
42
42
  var Item: typeof DropdownMenuItem;
43
- var Separator: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHRElement>, HTMLHRElement>, Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHRElement>, HTMLHRElement>, "ref"> & {
44
- ref?: ((instance: HTMLHRElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLHRElement> | null | undefined;
45
- }>, never>, never>> & string;
43
+ var Separator: import("styled-components").StyledComponent<"hr", any, {
44
+ 'aria-hidden': true;
45
+ }, "aria-hidden">;
46
46
  }
47
47
  export default Dropdown;
@@ -1,4 +1,4 @@
1
- import { Story, Meta } from '@storybook/react';
1
+ import { StoryFn, Meta } from '@storybook/react';
2
2
  import { DropdownProps, DropdownTriggerProps } from './Dropdown.types';
3
3
  declare const meta: Meta;
4
4
  export default meta;
@@ -6,7 +6,7 @@ export type DropdownStoryProps = DropdownProps & {
6
6
  scale: DropdownTriggerProps['scale'];
7
7
  outlined?: DropdownTriggerProps['outlined'];
8
8
  };
9
- export declare const Playground: Story<DropdownStoryProps>;
10
- export declare const WithSections: Story<DropdownStoryProps>;
11
- export declare const Extended: Story<DropdownStoryProps>;
12
- export declare const CustomTrigger: Story<DropdownStoryProps>;
9
+ export declare const Playground: StoryFn<DropdownStoryProps>;
10
+ export declare const WithSections: StoryFn<DropdownStoryProps>;
11
+ export declare const Extended: StoryFn<DropdownStoryProps>;
12
+ export declare const CustomTrigger: StoryFn<DropdownStoryProps>;
@@ -1,8 +1,8 @@
1
1
  import { default as React } from 'react';
2
2
  import { DropdownMenuItemProps, DropdownMenuProps, DropdownMenuSectionProps } from './Dropdown.types';
3
- export declare const DropdownSeparator: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('styled-components').FastOmit<import('styled-components/dist/types').Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHRElement>, HTMLHRElement>, Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHRElement>, HTMLHRElement>, "ref"> & {
4
- ref?: ((instance: HTMLHRElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLHRElement> | null | undefined;
5
- }>, never>, never>> & string;
3
+ export declare const DropdownSeparator: import('styled-components').StyledComponent<"hr", any, {
4
+ 'aria-hidden': true;
5
+ }, "aria-hidden">;
6
6
  export declare const DropdownMenu: React.ForwardRefExoticComponent<DropdownMenuProps & React.RefAttributes<HTMLDivElement>>;
7
7
  export declare function DropdownMenuItem(props: DropdownMenuItemProps): JSX.Element;
8
8
  export declare function DropdownMenuSection(props: DropdownMenuSectionProps): JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { default as React, ButtonHTMLAttributes, HTMLAttributes } from 'react';
2
2
  import { DropdownTriggerProps, DropdownContextReturn } from './Dropdown.types';
3
3
  import { default as ColorScheme } from '../../utils/types/ColorScheme';
4
- export interface DropdownTriggerButtonProps extends DropdownTriggerProps {
4
+ export interface DropdownTriggerButtonProps extends Omit<DropdownTriggerProps, 'children'> {
5
5
  children: DropdownTriggerProps['children'] | ((args: DropdownContextReturn) => React.ReactNode);
6
6
  }
7
7
  declare function DropdownTriggerButton(props: DropdownTriggerButtonProps): JSX.Element;
@@ -1,5 +1,5 @@
1
- import { Story, Meta } from '@storybook/react';
1
+ import { StoryFn, Meta } from '@storybook/react';
2
2
  import { HighlightMatchProps } from './HighlightMatch';
3
3
  declare const _default: Meta;
4
4
  export default _default;
5
- export declare const Playground: Story<HighlightMatchProps>;
5
+ export declare const Playground: StoryFn<HighlightMatchProps>;
@@ -11,7 +11,7 @@ export interface IconProps<T> {
11
11
  className?: string;
12
12
  color?: ThemeColors;
13
13
  }
14
- export type IconMapping = Record<string, ReactElement | ((props: never) => ReactElement)>;
14
+ export type IconMapping = Record<string, ComponentType<Omit<IconProps<string>, 'name'>>>;
15
15
  export declare function UnknownIcon(): ReactElement;
16
16
  declare function IconFactory(map: IconMapping): ComponentType<IconProps<typeof map>>;
17
17
  export default IconFactory;
@@ -1,6 +1,6 @@
1
- import { Story, Meta } from '@storybook/react';
1
+ import { Meta, StoryFn } from '@storybook/react';
2
2
  import { icons } from './IconFactory.fixtures';
3
3
  import { IconProps } from './IconFactory';
4
4
  declare const _default: Meta;
5
5
  export default _default;
6
- export declare const Playground: Story<IconProps<typeof icons>>;
6
+ export declare const Playground: StoryFn<IconProps<typeof icons>>;
@@ -6,11 +6,11 @@ export interface StackProps extends HTMLAttributes<HTMLElement> {
6
6
  align?: AlignValue;
7
7
  as?: string | React.ComponentType<any>;
8
8
  }
9
- export declare const StackContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
9
+ export declare const StackContainer: import('styled-components').StyledComponent<"div", any, {
10
10
  $space: StackProps["space"];
11
11
  $justify: StackProps["justify"];
12
12
  $align: StackProps["align"];
13
- }>> & string;
13
+ }, never>;
14
14
  /**
15
15
  * Stack layout component.
16
16
  * @param {StackProps} props
@@ -1,8 +1,8 @@
1
1
  import { default as React } from 'react';
2
- export declare const Bar: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
2
+ export declare const Bar: import('styled-components').StyledComponent<"div", any, {
3
3
  width?: number;
4
4
  velocity?: number;
5
- }>> & string;
5
+ }, never>;
6
6
  export interface LoadingBarProps {
7
7
  alignment?: 'left' | 'center' | 'right';
8
8
  title?: React.ReactNode;
@@ -1,5 +1,5 @@
1
- import { Story, Meta } from '@storybook/react';
1
+ import { StoryFn, Meta } from '@storybook/react';
2
2
  import { LoadingBarProps } from './LoadingBar';
3
3
  declare const _default: Meta;
4
4
  export default _default;
5
- export declare const Playground: Story<LoadingBarProps>;
5
+ export declare const Playground: StoryFn<LoadingBarProps>;
@@ -1,6 +1,6 @@
1
- import { Story, Meta } from '@storybook/react';
1
+ import { StoryFn, Meta } from '@storybook/react';
2
2
  import { LoadingDotsProps } from './LoadingDots';
3
3
  declare const _default: Meta;
4
4
  export default _default;
5
- export declare const Playground: Story<LoadingDotsProps>;
6
- export declare const InsideButton: Story<LoadingDotsProps>;
5
+ export declare const Playground: StoryFn<LoadingDotsProps>;
6
+ export declare const InsideButton: StoryFn<LoadingDotsProps>;
@@ -1,5 +1,5 @@
1
- import { Story, Meta } from '@storybook/react';
1
+ import { StoryFn, Meta } from '@storybook/react';
2
2
  import { SpinnerProps } from './Spinner';
3
3
  declare const _default: Meta;
4
4
  export default _default;
5
- export declare const Playground: Story<SpinnerProps>;
5
+ export declare const Playground: StoryFn<SpinnerProps>;
@@ -15,6 +15,8 @@ declare namespace Modal {
15
15
  var Header: ({ title, children }: PropsWithChildren<{
16
16
  title: string;
17
17
  }>) => React.JSX.Element;
18
- var Close: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<import("common/CloseButton").CloseButtonProps, import("common/CloseButton").CloseButtonProps>, never>, never>> & string & Omit<typeof CloseButton, keyof React.Component<any, {}, any>>;
18
+ var Close: import("styled-components").StyledComponent<typeof CloseButton, any, {
19
+ size: 16;
20
+ }, "size">;
19
21
  }
20
22
  export default Modal;
@@ -1,5 +1,5 @@
1
- import { Story, Meta } from '@storybook/react';
1
+ import { StoryFn, Meta } from '@storybook/react';
2
2
  import { PaginationProps } from './Pagination.types';
3
3
  declare const _default: Meta;
4
4
  export default _default;
5
- export declare const Playground: Story<PaginationProps>;
5
+ export declare const Playground: StoryFn<PaginationProps>;
@@ -1,5 +1,5 @@
1
- import { Story, Meta } from '@storybook/react';
1
+ import { StoryFn, Meta } from '@storybook/react';
2
2
  import { PopoverProps } from './Popover.types';
3
3
  declare const _default: Meta;
4
4
  export default _default;
5
- export declare const Playground: Story<PopoverProps>;
5
+ export declare const Playground: StoryFn<PopoverProps>;
@@ -1,19 +1,19 @@
1
- import { Story, Meta } from '@storybook/react';
1
+ import { StoryFn, Meta } from '@storybook/react';
2
2
  import { SelectProps } from './Select.types';
3
3
  declare const _default: Meta;
4
4
  export default _default;
5
- export declare const Playground: Story<SelectProps>;
6
- export declare const SingleSyncDatasource: Story<SelectProps>;
7
- export declare const SingleCustomOptionRendering: Story<SelectProps>;
8
- export declare const SingleCustomEmptyRendering: Story<SelectProps>;
9
- export declare const SingleAsyncDatasource: Story<SelectProps>;
10
- export declare const SingleMixedDatasources: Story<SelectProps>;
11
- export declare const MultiSyncDatasource: Story<SelectProps>;
12
- export declare const MultiAsyncDatasource: Story<SelectProps>;
13
- export declare const MultiMixedDatasource: Story<SelectProps>;
14
- export declare const VariousAsyncDatasources: Story<SelectProps>;
15
- export declare const MultiCustomOptionRendering: Story<SelectProps>;
16
- export declare const CreatableSync: Story<SelectProps>;
17
- export declare const CreatableAsync: Story<SelectProps>;
18
- export declare const CustomCreatableOption: Story<SelectProps>;
19
- export declare const SelectWithFixedCreatableOption: Story<SelectProps>;
5
+ export declare const Playground: StoryFn<SelectProps>;
6
+ export declare const SingleSyncDatasource: StoryFn<SelectProps>;
7
+ export declare const SingleCustomOptionRendering: StoryFn<SelectProps>;
8
+ export declare const SingleCustomEmptyRendering: StoryFn<SelectProps>;
9
+ export declare const SingleAsyncDatasource: StoryFn<SelectProps>;
10
+ export declare const SingleMixedDatasources: StoryFn<SelectProps>;
11
+ export declare const MultiSyncDatasource: StoryFn<SelectProps>;
12
+ export declare const MultiAsyncDatasource: StoryFn<SelectProps>;
13
+ export declare const MultiMixedDatasource: StoryFn<SelectProps>;
14
+ export declare const VariousAsyncDatasources: StoryFn<SelectProps>;
15
+ export declare const MultiCustomOptionRendering: StoryFn<SelectProps>;
16
+ export declare const CreatableSync: StoryFn<SelectProps>;
17
+ export declare const CreatableAsync: StoryFn<SelectProps>;
18
+ export declare const CustomCreatableOption: StoryFn<SelectProps>;
19
+ export declare const SelectWithFixedCreatableOption: StoryFn<SelectProps>;
@@ -1,13 +1,8 @@
1
- import { default as React, PropsWithChildren } from 'react';
1
+ import { PropsWithChildren } from 'react';
2
2
  export type LogoProps = PropsWithChildren<{
3
3
  url: string;
4
4
  className?: string;
5
5
  }>;
6
6
  declare function Logo({ className, url, children }: LogoProps): JSX.Element;
7
- declare const _default: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<{
8
- url: string;
9
- className?: string;
10
- } & {
11
- children?: React.ReactNode | undefined;
12
- }, LogoProps>> & string & Omit<typeof Logo, keyof React.Component<any, {}, any>>;
7
+ declare const _default: import('styled-components').StyledComponent<typeof Logo, any, LogoProps, never>;
13
8
  export default _default;
@@ -9,13 +9,8 @@ type MenuItemProps = {
9
9
  active?: boolean;
10
10
  } & PropsWithChildren<MenuLinkProps & MenuExpandableProps>;
11
11
  declare function MenuItem(props: MenuItemProps): React.JSX.Element;
12
- declare const _default: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<MenuProps, never>> & string & Omit<typeof Menu, keyof React.Component<any, {}, any>> & {
12
+ declare const _default: string & import('styled-components').StyledComponentBase<typeof Menu, any, {}, never> & import('hoist-non-react-statics').NonReactStatics<typeof Menu, {}> & {
13
13
  Item: typeof MenuItem;
14
- SubItem: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<React.HTMLAttributes<HTMLAnchorElement> & {
15
- label: string;
16
- leading?: React.ReactNode;
17
- trailing?: React.ReactNode;
18
- url?: string;
19
- }, never>> & string & Omit<({ url, ...props }: MenuLinkProps) => JSX.Element, keyof React.Component<any, {}, any>>;
14
+ SubItem: import('styled-components').StyledComponent<({ url, ...props }: MenuLinkProps) => JSX.Element, any, {}, never>;
20
15
  };
21
16
  export default _default;
@@ -6,10 +6,5 @@ export type MenuLinkProps = React.HTMLAttributes<HTMLAnchorElement> & {
6
6
  url?: string;
7
7
  };
8
8
  declare function MenuLink({ url, ...props }: MenuLinkProps): JSX.Element;
9
- declare const _default: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<React.HTMLAttributes<HTMLAnchorElement> & {
10
- label: string;
11
- leading?: ReactNode;
12
- trailing?: ReactNode;
13
- url?: string;
14
- }, never>> & string & Omit<typeof MenuLink, keyof React.Component<any, {}, any>>;
9
+ declare const _default: import('styled-components').StyledComponent<typeof MenuLink, any, {}, never>;
15
10
  export default _default;
@@ -6,13 +6,8 @@ export interface SideNavigationProps {
6
6
  }
7
7
  declare function SideNavigation({ className, children }: SideNavigationProps): JSX.Element;
8
8
  declare namespace SideNavigation {
9
- var Logo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<{
10
- url: string;
11
- className?: string;
12
- } & {
13
- children?: ReactNode | undefined;
14
- }, import("./Logo/Logo").LogoProps>> & string & Omit<({ className, url, children }: import("./Logo/Logo").LogoProps) => JSX.Element, keyof React.Component<any, {}, any>>;
15
- var Menu: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("./Menu/Menu").MenuProps, never>> & string & Omit<({ label, children, ...props }: import("./Menu/Menu").MenuProps) => JSX.Element, keyof React.Component<any, {}, any>> & {
9
+ var Logo: import("styled-components").StyledComponent<({ className, url, children }: import("./Logo/Logo").LogoProps) => JSX.Element, any, import("./Logo/Logo").LogoProps, never>;
10
+ var Menu: string & import("styled-components").StyledComponentBase<({ label, children, ...props }: import("./Menu/Menu").MenuProps) => JSX.Element, any, {}, never> & import("hoist-non-react-statics").NonReactStatics<({ label, children, ...props }: import("./Menu/Menu").MenuProps) => JSX.Element, {}> & {
16
11
  Item: (props: {
17
12
  active?: boolean;
18
13
  } & React.HTMLAttributes<HTMLAnchorElement> & {
@@ -25,14 +20,9 @@ declare namespace SideNavigation {
25
20
  } & {
26
21
  children?: ReactNode | undefined;
27
22
  }) => React.JSX.Element;
28
- SubItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.HTMLAttributes<HTMLAnchorElement> & {
29
- label: string;
30
- leading?: ReactNode;
31
- trailing?: ReactNode;
32
- url?: string;
33
- }, never>> & string & Omit<({ url, ...props }: import("./Menu/MenuLink").MenuLinkProps) => JSX.Element, keyof React.Component<any, {}, any>>;
23
+ SubItem: import("styled-components").StyledComponent<({ url, ...props }: import("./Menu/MenuLink").MenuLinkProps) => JSX.Element, any, {}, never>;
34
24
  };
35
25
  var Separator: typeof import("./Separator").Separator;
36
- var CloseButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<CloseButtonProps, CloseButtonProps>> & string & Omit<typeof import("common/CloseButton").default, keyof React.Component<any, {}, any>>;
26
+ var CloseButton: import("styled-components").StyledComponent<typeof import("common/CloseButton").default, any, CloseButtonProps, never>;
37
27
  }
38
28
  export default SideNavigation;
@@ -1,5 +1,5 @@
1
- import { Story, Meta } from '@storybook/react';
1
+ import { StoryFn, Meta } from '@storybook/react';
2
2
  import { StepsProps } from './Steps';
3
3
  declare const _default: Meta;
4
4
  export default _default;
5
- export declare const Playground: Story<StepsProps>;
5
+ export declare const Playground: StoryFn<StepsProps>;
@@ -1,8 +1,8 @@
1
- import { default as React, PropsWithChildren } from 'react';
1
+ import { PropsWithChildren } from 'react';
2
2
  export interface StepsStepProps {
3
3
  id: number | string;
4
4
  className?: string;
5
5
  }
6
- export declare const StepWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
6
+ export declare const StepWrapper: import('styled-components').StyledComponent<"article", any, import('../../theming').ThemedProps, never>;
7
7
  declare function StepsStep({ children, id, ...others }: PropsWithChildren<StepsStepProps>): JSX.Element;
8
8
  export default StepsStep;
@@ -1,5 +1,5 @@
1
- import { Story, Meta } from '@storybook/react';
1
+ import { StoryFn, Meta } from '@storybook/react';
2
2
  import { SwitchProps } from './Switch';
3
3
  declare const _default: Meta;
4
4
  export default _default;
5
- export declare const Playground: Story<SwitchProps>;
5
+ export declare const Playground: StoryFn<SwitchProps>;
@@ -1,15 +1,14 @@
1
- import { default as React } from 'react';
2
- import { useSelection } from './Selection';
1
+ import { useSelection, TableSelectableRow } from './Selection';
3
2
  import { default as TableSortHandle } from './TableSortHandle';
4
3
  import { TableProps, TableSectionProps, TableRowProps, TableCellProps, TableCaptionProps, TableSelectionProps, SelectionCellProps, TablePickerItemProps, TablePickerProps, ExpandableTableRowProps } from './Table.types';
5
- declare function Table<T>({ children, selection, scale, ...others }: TableProps<T>): JSX.Element;
4
+ declare function Table<T extends TableSelectableRow>({ children, selection, scale, ...others }: TableProps<T>): JSX.Element;
6
5
  declare namespace Table {
7
6
  var Head: typeof TableHead;
8
7
  var Body: typeof TableBody;
9
8
  var Row: typeof TableRow;
10
9
  var Cell: typeof TableCell;
11
10
  var HeadCell: typeof TableHeadCell;
12
- var Foot: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, never>> & string;
11
+ var Foot: import("styled-components").StyledComponent<"tfoot", any, {}, never>;
13
12
  var Caption: typeof TableCaption;
14
13
  var Selection: {
15
14
  Actions: typeof TableSelectionActions;
@@ -24,8 +23,8 @@ declare function TableCaption({ children, position, height }: TableCaptionProps)
24
23
  declare function TableHead({ children, ...others }: TableSectionProps): JSX.Element;
25
24
  declare function TableBody({ children, ...others }: TableSectionProps): JSX.Element;
26
25
  declare function TableCell({ children, alignment, format, ...others }: TableCellProps): JSX.Element;
27
- declare function SelectionCell<T>({ value, ...props }: SelectionCellProps<T>): JSX.Element;
28
- declare function SelectionHeadCell<T>(props: SelectionCellProps<T>): JSX.Element;
26
+ declare function SelectionCell<T extends TableSelectableRow>({ value, ...props }: SelectionCellProps<T>): JSX.Element;
27
+ declare function SelectionHeadCell<T extends TableSelectableRow>(props: SelectionCellProps<T>): JSX.Element;
29
28
  declare function TableRow({ children, ...others }: TableRowProps): JSX.Element;
30
29
  declare function ExpandableTableRow({ expandableContent, expanded, leading: propsLeading, children, onExpandedChange, initialExpanded, ...others }: ExpandableTableRowProps): JSX.Element;
31
30
  declare function TableHeadCell({ alignment, children, onClick, ...others }: TableCellProps): JSX.Element;
@@ -17,7 +17,7 @@ export interface TableSelectionProps extends HTMLAttributes<HTMLDivElement> {
17
17
  values: TableSelectableRow[];
18
18
  }>[];
19
19
  }
20
- export interface SelectionCellProps<T extends Selectable = TableSelectableRow> extends HTMLAttributes<HTMLTableCellElement> {
20
+ export interface SelectionCellProps<T extends TableSelectableRow = TableSelectableRow> extends Omit<HTMLAttributes<HTMLTableCellElement>, 'children'> {
21
21
  value?: T;
22
22
  children?: (props: {
23
23
  selected: boolean;
@@ -1,5 +1,5 @@
1
- import { Meta, Story } from '@storybook/react';
1
+ import { Meta, StoryFn } from '@storybook/react';
2
2
  import { TablePaginationProps } from './TablePagination.types';
3
3
  declare const _default: Meta;
4
4
  export default _default;
5
- export declare const Playground: Story<TablePaginationProps>;
5
+ export declare const Playground: StoryFn<TablePaginationProps>;