@loadsmart/loadsmart-ui 6.0.11 → 6.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Accordion/Accordion.stories.d.ts +1 -2
- package/dist/components/Banner/Banner.stories.d.ts +1 -2
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +2 -3
- package/dist/components/Button/Button.stories.d.ts +1 -2
- package/dist/components/Calendar/Calendar.stories.d.ts +2 -3
- package/dist/components/Card/Card.stories.d.ts +2 -2
- package/dist/components/Checkbox/Checkbox.stories.d.ts +1 -2
- package/dist/components/DatePicker/DatePicker.stories.d.ts +2 -2
- package/dist/components/DatePicker/DateRangePicker.stories.d.ts +2 -2
- package/dist/components/Dialog/Dialog.stories.d.ts +1 -2
- package/dist/components/DragDropFile/DragDropFile.stories.d.ts +1 -2
- package/dist/components/Drawer/Drawer.stories.d.ts +2 -2
- package/dist/components/Dropdown/Dropdown.stories.d.ts +1 -1
- package/dist/components/EmptyState/EmptyState.stories.d.ts +1 -2
- package/dist/components/ErrorMessage/ErrorMessage.stories.d.ts +1 -2
- package/dist/components/HighlightMatch/HighlightMatch.stories.d.ts +2 -2
- package/dist/components/IconFactory/IconFactory.stories.d.ts +2 -2
- package/dist/components/Label/Label.stories.d.ts +1 -2
- package/dist/components/Layout/Layout.stories.d.ts +1 -2
- package/dist/components/Link/Link.stories.d.ts +1 -2
- package/dist/components/Loaders/LoadingBar.stories.d.ts +2 -2
- package/dist/components/Loaders/LoadingDots.stories.d.ts +2 -2
- package/dist/components/Loaders/Spinner.stories.d.ts +2 -2
- package/dist/components/Modal/Modal.stories.d.ts +1 -2
- package/dist/components/Pagination/Pagination.stories.d.ts +2 -2
- package/dist/components/Popover/Popover.stories.d.ts +2 -2
- package/dist/components/ProgressBar/ProgressBar.stories.d.ts +1 -2
- package/dist/components/Radio/Radio.stories.d.ts +1 -2
- package/dist/components/Section/Sections.stories.d.ts +1 -2
- package/dist/components/Select/Select.stories.d.ts +2 -2
- package/dist/components/SideNavigation/SideNavigation.stories.d.ts +1 -2
- package/dist/components/Steps/Steps.stories.d.ts +2 -2
- package/dist/components/Switch/Switch.stories.d.ts +2 -2
- package/dist/components/Table/Table.stories.d.ts +1 -2
- package/dist/components/TablePagination/TablePagination.stories.d.ts +2 -2
- package/dist/components/Tabs/Tabs.stories.d.ts +1 -2
- package/dist/components/Tag/Tag.stories.d.ts +1 -2
- package/dist/components/Text/Text.stories.d.ts +2 -2
- package/dist/components/TextField/TextField.stories.d.ts +1 -2
- package/dist/components/Textarea/Textarea.stories.d.ts +1 -2
- package/dist/components/Toast/Toast.stories.d.ts +1 -2
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +2 -2
- package/dist/components/Tooltip/Tooltip.stories.d.ts +1 -2
- package/dist/hooks/useFocusTrap/useFocusTrap.stories.d.ts +2 -2
- package/package.json +15 -22
- package/src/components/Accordion/Accordion.stories.tsx +1 -1
- package/src/components/Banner/Banner.stories.tsx +1 -1
- package/src/components/Breadcrumbs/Breadcrumbs.stories.tsx +1 -1
- package/src/components/Button/Button.stories.tsx +1 -1
- package/src/components/Calendar/Calendar.stories.tsx +1 -1
- package/src/components/Card/Card.stories.tsx +1 -1
- package/src/components/Checkbox/Checkbox.stories.tsx +1 -1
- package/src/components/DatePicker/DatePicker.stories.tsx +1 -1
- package/src/components/DatePicker/DateRangePicker.stories.tsx +1 -1
- package/src/components/Dialog/Dialog.stories.tsx +1 -1
- package/src/components/DragDropFile/DragDropFile.stories.tsx +1 -1
- package/src/components/Drawer/Drawer.stories.tsx +1 -1
- package/src/components/Dropdown/Dropdown.stories.tsx +1 -1
- package/src/components/EmptyState/EmptyState.stories.tsx +1 -1
- package/src/components/ErrorMessage/ErrorMessage.stories.tsx +1 -1
- package/src/components/HighlightMatch/HighlightMatch.stories.tsx +1 -1
- package/src/components/IconFactory/IconFactory.stories.tsx +1 -1
- package/src/components/Label/Label.stories.tsx +1 -1
- package/src/components/Layout/Layout.stories.tsx +1 -1
- package/src/components/Link/Link.stories.tsx +1 -1
- package/src/components/Loaders/LoadingBar.stories.tsx +1 -1
- package/src/components/Loaders/LoadingDots.stories.tsx +1 -1
- package/src/components/Loaders/Spinner.stories.tsx +1 -1
- package/src/components/Modal/Modal.stories.tsx +1 -1
- package/src/components/Pagination/Pagination.stories.tsx +1 -1
- package/src/components/Popover/Popover.stories.tsx +1 -1
- package/src/components/ProgressBar/ProgressBar.stories.tsx +1 -1
- package/src/components/Radio/Radio.stories.tsx +1 -1
- package/src/components/Section/Sections.stories.tsx +1 -1
- package/src/components/Select/Select.stories.tsx +1 -1
- package/src/components/SideNavigation/SideNavigation.stories.tsx +1 -1
- package/src/components/Steps/Steps.stories.tsx +1 -1
- package/src/components/Switch/Switch.stories.tsx +1 -1
- package/src/components/Table/Table.stories.tsx +1 -1
- package/src/components/TablePagination/TablePagination.stories.tsx +1 -1
- package/src/components/Tabs/Tabs.stories.tsx +1 -1
- package/src/components/Tag/Tag.stories.tsx +1 -1
- package/src/components/Text/Text.stories.tsx +1 -1
- package/src/components/TextField/TextField.stories.tsx +1 -1
- package/src/components/Textarea/Textarea.stories.tsx +1 -1
- package/src/components/Toast/Toast.stories.tsx +1 -1
- package/src/components/ToggleGroup/ToggleGroup.stories.tsx +1 -1
- package/src/components/Tooltip/Tooltip.stories.tsx +1 -1
- package/src/docs/tools/DatePickerEvent.stories.mdx +2 -0
- package/src/docs/tools/DragDropFileEvent.stories.mdx +2 -0
- package/src/docs/tools/conditional.stories.mdx +1 -1
- package/src/docs/tools/selectEvent.stories.mdx +2 -0
- package/src/hooks/useFocusTrap/useFocusTrap.stories.tsx +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { Meta } from '@storybook/react/types-6-0';
|
|
2
1
|
import type { AccordionProps } from './Accordion';
|
|
3
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
3
|
export default _default;
|
|
5
4
|
export declare function Playground(args: AccordionProps): JSX.Element;
|
|
6
5
|
export declare function CustomIndicators(): JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { Meta } from '@storybook/react/types-6-0';
|
|
2
1
|
import type { BannerProps, BannerActionProps } from './Banner';
|
|
3
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
3
|
export default _default;
|
|
5
4
|
export declare function Playground(args: BannerProps): JSX.Element;
|
|
6
5
|
export declare namespace Playground {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { BreadcrumbsProps } from './Breadcrumbs';
|
|
2
|
-
|
|
3
|
-
declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
|
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
3
|
export default _default;
|
|
5
|
-
export declare const Playground:
|
|
4
|
+
export declare const Playground: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, BreadcrumbsProps>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import type { Meta } from '@storybook/react/types-6-0';
|
|
2
1
|
import type { BackButtonProps } from '../../common/BackButton';
|
|
3
2
|
import type { ButtonProps } from './Button';
|
|
4
3
|
import type { CloseButtonProps } from '../../common/CloseButton';
|
|
5
|
-
declare const _default:
|
|
4
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
6
5
|
export default _default;
|
|
7
6
|
export declare function Playground(args: ButtonProps): JSX.Element;
|
|
8
7
|
export declare namespace Playground {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type { Story, Meta } from '@storybook/react/types-6-0';
|
|
2
1
|
import type { CalendarDate } from './Date.helper';
|
|
3
2
|
import type { CalendarProps } from './Calendar.types';
|
|
4
|
-
declare const _default:
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
5
4
|
export default _default;
|
|
6
|
-
export declare const Playground:
|
|
5
|
+
export declare const Playground: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, CalendarProps>;
|
|
7
6
|
export declare function Selection(): JSX.Element;
|
|
8
7
|
declare function isWeekend(date: CalendarDate): boolean;
|
|
9
8
|
export declare function CalendarConstraints(args: CalendarProps): JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Story
|
|
1
|
+
import type { Story } from '@storybook/react';
|
|
2
2
|
import type { CardProps } from './Card';
|
|
3
|
-
declare const _default:
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Playground: Story<CardProps>;
|
|
6
6
|
export declare const Default: Story<CardProps>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CheckboxProps } from './Checkbox';
|
|
2
|
-
|
|
3
|
-
declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
|
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
3
|
export default _default;
|
|
5
4
|
export declare function Playground(args: CheckboxProps): JSX.Element;
|
|
6
5
|
export declare namespace Playground {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Story
|
|
1
|
+
import type { Story } from '@storybook/react';
|
|
2
2
|
import type { DatePickerProps } from './DatePicker.types';
|
|
3
|
-
declare const _default:
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Playground: Story<DatePickerProps>;
|
|
6
6
|
export declare const WithValue: Story<DatePickerProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Story
|
|
1
|
+
import type { Story } from '@storybook/react';
|
|
2
2
|
import type { DateRangePickerProps } from './DatePicker.types';
|
|
3
|
-
declare const _default:
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Playground: Story<DateRangePickerProps>;
|
|
6
6
|
export declare const WithValue: Story<DateRangePickerProps>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { Meta } from '@storybook/react/types-6-0';
|
|
2
1
|
import type { DialogProps } from './Dialog';
|
|
3
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
3
|
export default _default;
|
|
5
4
|
export declare function WithoutHeader(args: DialogProps): JSX.Element;
|
|
6
5
|
export declare namespace WithoutHeader {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { Meta } from '@storybook/react/types-6-0';
|
|
2
1
|
import type { DropZoneProps } from './types';
|
|
3
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
3
|
export default _default;
|
|
5
4
|
declare type PlaygroundProps = DropZoneProps & {
|
|
6
5
|
errorMessage?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Story } from '@storybook/react';
|
|
2
2
|
import type { DrawerProps } from './Drawer';
|
|
3
|
-
declare const _default:
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Playground: Story<DrawerProps>;
|
|
6
6
|
export declare const SmallerContentPlayground: Story<DrawerProps>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { Meta } from '@storybook/react/types-6-0';
|
|
2
1
|
import type { EmptyStateProps, EmptyStateWithIllustrationProps, EmptyStateWithIconProps } from './EmptyState.types';
|
|
3
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
3
|
export default _default;
|
|
5
4
|
export declare function Playground(args: EmptyStateProps): JSX.Element;
|
|
6
5
|
export declare namespace Playground {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { Meta } from '@storybook/react/types-6-0';
|
|
2
1
|
import { ErrorMessageProps } from './ErrorMessage';
|
|
3
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
3
|
export default _default;
|
|
5
4
|
declare type PlaygroundProps = ErrorMessageProps & {
|
|
6
5
|
errorMessage?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Story
|
|
1
|
+
import type { Story } from '@storybook/react';
|
|
2
2
|
import { HighlightMatchProps } from './HighlightMatch';
|
|
3
|
-
declare const _default:
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Playground: Story<HighlightMatchProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Story
|
|
1
|
+
import type { Story } from '@storybook/react';
|
|
2
2
|
import { icons } from './IconFactory.fixtures';
|
|
3
3
|
import type { IconProps } from './IconFactory';
|
|
4
|
-
declare const _default:
|
|
4
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const Playground: Story<IconProps<typeof icons>>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { LabelProps } from './Label';
|
|
2
|
-
|
|
3
|
-
declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
|
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
3
|
export default _default;
|
|
5
4
|
export declare function Playground(args: LabelProps): JSX.Element;
|
|
6
5
|
export declare namespace Playground {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import type { Meta } from '@storybook/react/types-6-0';
|
|
2
1
|
import type { BoxProps } from './Box';
|
|
3
2
|
import type { SidebarProps } from './Sidebar';
|
|
4
3
|
import type { StackProps } from './Stack';
|
|
5
4
|
import type { SwitcherProps } from './Switcher';
|
|
6
5
|
import type { GridProps } from './Grid';
|
|
7
|
-
declare const _default:
|
|
6
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
8
7
|
export default _default;
|
|
9
8
|
export declare function Playground(): JSX.Element;
|
|
10
9
|
export declare namespace Playground {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { LinkProps } from './Link';
|
|
2
|
-
|
|
3
|
-
declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
|
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
3
|
export default _default;
|
|
5
4
|
export declare function Playground(args: LinkProps): JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Story
|
|
1
|
+
import type { Story } from '@storybook/react';
|
|
2
2
|
import type { LoadingBarProps } from './LoadingBar';
|
|
3
|
-
declare const _default:
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Playground: Story<LoadingBarProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Story
|
|
1
|
+
import type { Story } from '@storybook/react';
|
|
2
2
|
import { LoadingDotsProps } from './LoadingDots';
|
|
3
|
-
declare const _default:
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Playground: Story<LoadingDotsProps>;
|
|
6
6
|
export declare const InsideButton: Story<LoadingDotsProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Story
|
|
1
|
+
import type { Story } from '@storybook/react';
|
|
2
2
|
import { SpinnerProps } from './Spinner';
|
|
3
|
-
declare const _default:
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Playground: Story<SpinnerProps>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { Meta } from '@storybook/react/types-6-0';
|
|
2
1
|
import type { ModalProps } from './Modal';
|
|
3
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
3
|
export default _default;
|
|
5
4
|
export declare function WithoutHeader(args: ModalProps): JSX.Element;
|
|
6
5
|
export declare namespace WithoutHeader {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Story
|
|
1
|
+
import type { Story } from '@storybook/react';
|
|
2
2
|
import type { PaginationProps } from './Pagination.types';
|
|
3
|
-
declare const _default:
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Playground: Story<PaginationProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Story
|
|
1
|
+
import type { Story } from '@storybook/react';
|
|
2
2
|
import type { PopoverProps } from './Popover.types';
|
|
3
|
-
declare const _default:
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Playground: Story<PopoverProps>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ProgressBarProps } from './ProgressBar';
|
|
2
|
-
import type { Meta } from '@storybook/react/types-6-0';
|
|
3
2
|
import Status from "../../utils/types/Status";
|
|
4
|
-
declare const _default:
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
5
4
|
export default _default;
|
|
6
5
|
export declare function Playground(args: ProgressBarProps): JSX.Element;
|
|
7
6
|
export declare namespace Playground {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { RadioProps } from './Radio';
|
|
2
|
-
|
|
3
|
-
declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
|
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
3
|
export default _default;
|
|
5
4
|
export declare function Playground(args: RadioProps): JSX.Element;
|
|
6
5
|
export declare namespace Playground {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { Meta } from '@storybook/react/types-6-0';
|
|
2
1
|
import type { SectionProps } from './Section';
|
|
3
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
3
|
export default _default;
|
|
5
4
|
export declare function Playground(args: SectionProps): JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Story
|
|
1
|
+
import type { Story } from '@storybook/react';
|
|
2
2
|
import type { SelectProps } from './Select.types';
|
|
3
|
-
declare const _default:
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Playground: Story<SelectProps>;
|
|
6
6
|
export declare const SingleSyncDatasource: Story<SelectProps>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { Meta } from '@storybook/react/types-6-0';
|
|
2
1
|
import type { SideNavigationProps } from './SideNavigation';
|
|
3
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
3
|
export default _default;
|
|
5
4
|
export declare function Playground(args: SideNavigationProps): JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Story
|
|
1
|
+
import type { Story } from '@storybook/react';
|
|
2
2
|
import type { StepsProps } from './Steps';
|
|
3
|
-
declare const _default:
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Playground: Story<StepsProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Story
|
|
1
|
+
import type { Story } from '@storybook/react';
|
|
2
2
|
import { SwitchProps } from './Switch';
|
|
3
|
-
declare const _default:
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Playground: Story<SwitchProps>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { Meta } from '@storybook/react/types-6-0';
|
|
2
1
|
import type { TableProps } from './Table.types';
|
|
3
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
3
|
export default _default;
|
|
5
4
|
export declare function Playground(args: TableProps): JSX.Element;
|
|
6
5
|
export declare namespace Playground {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Story } from '@storybook/react';
|
|
2
2
|
import type { TablePaginationProps } from './TablePagination.types';
|
|
3
|
-
declare const _default:
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Playground: Story<TablePaginationProps>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { Meta } from '@storybook/react/types-6-0';
|
|
2
1
|
import { TabsProps } from './Tabs';
|
|
3
|
-
declare const _default:
|
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
3
|
export default _default;
|
|
5
4
|
export declare function Playground(args: TabsProps): JSX.Element;
|
|
6
5
|
export declare namespace Playground {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { TagProps } from './Tag';
|
|
2
|
-
|
|
3
|
-
declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
|
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
3
|
export default _default;
|
|
5
4
|
export declare function Default(args: TagProps): JSX.Element;
|
|
6
5
|
export declare namespace Default {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Story
|
|
1
|
+
import type { Story } from '@storybook/react';
|
|
2
2
|
import type { TextProps } from './Text';
|
|
3
|
-
declare const _default:
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Playground: Story<TextProps>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { TextFieldProps } from './TextField';
|
|
2
|
-
|
|
3
|
-
declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
|
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
3
|
export default _default;
|
|
5
4
|
export declare function Playground(args: TextFieldProps): JSX.Element;
|
|
6
5
|
export declare namespace Playground {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { TextareaProps } from './Textarea';
|
|
2
|
-
|
|
3
|
-
declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
|
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
3
|
export default _default;
|
|
5
4
|
export declare function Playground(args: TextareaProps): JSX.Element;
|
|
6
5
|
export declare namespace Playground {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ToastProps } from './Toast';
|
|
2
|
-
import type { Meta } from '@storybook/react/types-6-0';
|
|
3
2
|
import Status from "../../utils/types/Status";
|
|
4
|
-
declare const _default:
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
5
4
|
export default _default;
|
|
6
5
|
export declare function Playground(args: ToastProps): JSX.Element;
|
|
7
6
|
export declare namespace Playground {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Story
|
|
1
|
+
import type { Story } from '@storybook/react';
|
|
2
2
|
import type { ToggleGroupProps } from './ToggleGroup.types';
|
|
3
|
-
declare const _default:
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Playground: Story<ToggleGroupProps>;
|
|
6
6
|
export declare const WithIcon: Story<ToggleGroupProps>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { TooltipAlign, TooltipPosition, TooltipProps } from './Tooltip';
|
|
2
|
-
|
|
3
|
-
declare const _default: Meta<import("@storybook/react/types-6-0").Args>;
|
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
3
|
export default _default;
|
|
5
4
|
export declare function Playground(args: TooltipProps): JSX.Element;
|
|
6
5
|
export declare namespace Playground {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Story
|
|
1
|
+
import type { Story } from '@storybook/react';
|
|
2
2
|
import type { useFocusTrapProps } from './useFocusTrap';
|
|
3
|
-
declare const _default:
|
|
3
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Playground: Story<useFocusTrapProps>;
|
|
6
6
|
export declare const TabTrap: Story<useFocusTrapProps>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loadsmart/loadsmart-ui",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.12",
|
|
4
4
|
"description": "Miranda UI, a React UI library",
|
|
5
5
|
"main": "dist",
|
|
6
6
|
"files": [
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
"lint": "eslint --ext .js,.ts,.tsx src/",
|
|
16
16
|
"test": "TZ=UTC jest --clearMocks",
|
|
17
17
|
"test-watch": "yarn test --watch",
|
|
18
|
-
"storybook": "
|
|
18
|
+
"storybook": "storybook dev -p 6006",
|
|
19
19
|
"build": "rollup -c --environment BUILD:prod",
|
|
20
20
|
"watch-tailwind": "postcss ./tailwind.css -o ./.storybook/globals.css --watch",
|
|
21
|
-
"build
|
|
22
|
-
"deploy
|
|
21
|
+
"storybook:build": "rm -rf docs && storybook build -o ./docs",
|
|
22
|
+
"storybook:deploy": "yarn storybook:build && storybook-to-ghpages --existing-output-dir=docs",
|
|
23
23
|
"release": "semantic-release",
|
|
24
24
|
"prepare": "husky install"
|
|
25
25
|
},
|
|
@@ -51,21 +51,15 @@
|
|
|
51
51
|
"@rollup/plugin-json": "^4.1.0",
|
|
52
52
|
"@rollup/plugin-node-resolve": "^13.0.0",
|
|
53
53
|
"@semantic-release/git": "^9.0.0",
|
|
54
|
-
"@storybook/addon-a11y": "^
|
|
55
|
-
"@storybook/addon-
|
|
56
|
-
"@storybook/addon-
|
|
57
|
-
"@storybook/
|
|
58
|
-
"@storybook/
|
|
59
|
-
"@storybook/
|
|
60
|
-
"@storybook/builder-webpack5": "^6.5.15",
|
|
61
|
-
"@storybook/cli": "^6.5.15",
|
|
62
|
-
"@storybook/client-api": "^6.5.15",
|
|
63
|
-
"@storybook/manager-webpack5": "^6.5.15",
|
|
64
|
-
"@storybook/preview-web": "^6.5.15",
|
|
65
|
-
"@storybook/react": "^6.5.15",
|
|
54
|
+
"@storybook/addon-a11y": "^7.0.4",
|
|
55
|
+
"@storybook/addon-essentials": "^7.0.4",
|
|
56
|
+
"@storybook/addon-links": "^7.0.4",
|
|
57
|
+
"@storybook/addons": "^7.0.4",
|
|
58
|
+
"@storybook/react": "^7.0.4",
|
|
59
|
+
"@storybook/react-webpack5": "^7.0.4",
|
|
66
60
|
"@storybook/storybook-deployer": "^2.8.16",
|
|
67
|
-
"@storybook/testing-react": "^
|
|
68
|
-
"@storybook/theming": "^
|
|
61
|
+
"@storybook/testing-react": "^2.0.0",
|
|
62
|
+
"@storybook/theming": "^7.0.4",
|
|
69
63
|
"@svgr/rollup": "^6.5.1",
|
|
70
64
|
"@svgr/webpack": "^6.5.1",
|
|
71
65
|
"@tailwindcss/postcss7-compat": "^2.1.2",
|
|
@@ -109,7 +103,7 @@
|
|
|
109
103
|
"eslint-plugin-prettier": "^3.4.0",
|
|
110
104
|
"eslint-plugin-react": "^7.23.2",
|
|
111
105
|
"eslint-plugin-react-hooks": "^4.2.0",
|
|
112
|
-
"eslint-plugin-storybook": "^0.6.
|
|
106
|
+
"eslint-plugin-storybook": "^0.6.11",
|
|
113
107
|
"eslint-plugin-testing-library": "^5.9.1",
|
|
114
108
|
"husky": "7.0.4",
|
|
115
109
|
"identity-obj-proxy": "^3.0.0",
|
|
@@ -124,7 +118,6 @@
|
|
|
124
118
|
"react-dom": "^17.0.2",
|
|
125
119
|
"react-is": "^17.0.2",
|
|
126
120
|
"react-syntax-highlighter": "^15.5.0",
|
|
127
|
-
"require-from-string": "^2.0.2",
|
|
128
121
|
"rollup": "^2.79.1",
|
|
129
122
|
"rollup-plugin-delete": "^2.0.0",
|
|
130
123
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
@@ -132,6 +125,7 @@
|
|
|
132
125
|
"rollup-plugin-typescript2": "^0.34.1",
|
|
133
126
|
"rollup-plugin-visualizer": "^5.5.2",
|
|
134
127
|
"semantic-release": "^17.4.2",
|
|
128
|
+
"storybook": "^7.0.4",
|
|
135
129
|
"styled-components": "^5.3.0",
|
|
136
130
|
"stylelint": "^13.13.1",
|
|
137
131
|
"stylelint-config-prettier": "^8.0.2",
|
|
@@ -145,8 +139,7 @@
|
|
|
145
139
|
"ts-toolbelt": "^9.6.0",
|
|
146
140
|
"ttypescript": "^1.5.13",
|
|
147
141
|
"typescript": "4.4.4",
|
|
148
|
-
"typescript-plugin-styled-components": "^1.5.0"
|
|
149
|
-
"webpack": "^5.75.0"
|
|
142
|
+
"typescript-plugin-styled-components": "^1.5.0"
|
|
150
143
|
},
|
|
151
144
|
"peerDependencies": {
|
|
152
145
|
"@loadsmart/miranda-tokens": ">=1.3.0",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { useState } from 'react'
|
|
2
|
-
import type { Meta } from '@storybook/react/types-6-0'
|
|
3
2
|
import Accordion from './Accordion'
|
|
4
3
|
import type { AccordionProps } from './Accordion'
|
|
5
4
|
|
|
6
5
|
import { Icon } from 'components/Icon'
|
|
7
6
|
|
|
8
7
|
import generator from '../../tests/generator'
|
|
8
|
+
import type { Meta } from '@storybook/react'
|
|
9
9
|
|
|
10
10
|
export default {
|
|
11
11
|
title: 'Components/Accordion',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import type { Meta } from '@storybook/react
|
|
2
|
+
import type { Meta } from '@storybook/react'
|
|
3
3
|
import Banner, { BannerLarge, BannerAction, BannerActionLarge } from './Banner'
|
|
4
4
|
import type { BannerProps, BannerActionProps } from './Banner'
|
|
5
5
|
import { Icon } from 'components/Icon'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import type { Meta } from '@storybook/react
|
|
2
|
+
import type { Meta } from '@storybook/react'
|
|
3
3
|
import BackButton from '../../common/BackButton'
|
|
4
4
|
import Button, { SelectorButton, IconButton, Caret, BaseButton } from './Button'
|
|
5
5
|
import CloseButton from '../../common/CloseButton'
|
|
@@ -4,7 +4,7 @@ import { Label } from 'components/Label'
|
|
|
4
4
|
import DateHelper, { TODAY } from '../Calendar/Date.helper'
|
|
5
5
|
import DatePicker from './DatePicker'
|
|
6
6
|
|
|
7
|
-
import type { Story, Meta } from '@storybook/react
|
|
7
|
+
import type { Story, Meta } from '@storybook/react'
|
|
8
8
|
import type { DatePickerProps } from './DatePicker.types'
|
|
9
9
|
|
|
10
10
|
export default {
|
|
@@ -4,7 +4,7 @@ import { Label } from 'components/Label'
|
|
|
4
4
|
import DateHelper, { TODAY } from '../Calendar/Date.helper'
|
|
5
5
|
import DateRangePicker from './DateRangePicker'
|
|
6
6
|
|
|
7
|
-
import type { Story, Meta } from '@storybook/react
|
|
7
|
+
import type { Story, Meta } from '@storybook/react'
|
|
8
8
|
import type { DateRangePickerProps } from './DatePicker.types'
|
|
9
9
|
import type { useCalendarProps } from 'components/Calendar'
|
|
10
10
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useState } from 'react'
|
|
2
|
-
import type { Story, Meta } from '@storybook/react
|
|
2
|
+
import type { Story, Meta } from '@storybook/react'
|
|
3
3
|
|
|
4
4
|
import { ACTIONS, PROFILE_ACTIONS, SUBSCRIPTION_ACTIONS } from './Dropdown.fixtures'
|
|
5
5
|
import { Icon } from 'components/Icon'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
|
2
2
|
import React from 'react'
|
|
3
|
-
import type { Meta } from '@storybook/react
|
|
3
|
+
import type { Meta } from '@storybook/react'
|
|
4
4
|
|
|
5
5
|
import { Icon } from 'components/Icon'
|
|
6
6
|
import { Stack } from 'components/Layout'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState } from 'react'
|
|
2
2
|
import TablePagination from './TablePagination'
|
|
3
|
-
import type { Meta, Story } from '@storybook/react
|
|
3
|
+
import type { Meta, Story } from '@storybook/react'
|
|
4
4
|
|
|
5
5
|
import type { TablePaginationProps } from './TablePagination.types'
|
|
6
6
|
import { Layout } from 'components/Layout'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import TextField, { TextFieldProps } from './TextField'
|
|
3
|
-
import type { Meta } from '@storybook/react
|
|
3
|
+
import type { Meta } from '@storybook/react'
|
|
4
4
|
|
|
5
5
|
import { Icon } from 'components/Icon'
|
|
6
6
|
import Status from 'utils/types/Status'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState, ChangeEvent } from 'react'
|
|
2
2
|
import Textarea, { TextareaProps } from './Textarea'
|
|
3
|
-
import type { Meta } from '@storybook/react
|
|
3
|
+
import type { Meta } from '@storybook/react'
|
|
4
4
|
|
|
5
5
|
import { Icon } from 'components/Icon'
|
|
6
6
|
import Status from 'utils/types/Status'
|
|
@@ -244,7 +244,7 @@ const Button = styled.button<ButtonProps>`
|
|
|
244
244
|
|
|
245
245
|
In the example above, we'll have `width: 36px;` as a result only if the button's `variant` prop is `'primary'`.
|
|
246
246
|
|
|
247
|
-
|
|
247
|
+
{/* The usage of this "Component" is intentional to enable react-syntax-highlighter's own highlighter */}
|
|
248
248
|
|
|
249
249
|
export const Component = () => {
|
|
250
250
|
return <SyntaxHighlighter />
|