@loadsmart/loadsmart-ui 8.0.0 → 8.0.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.
- package/dist/DragDropFile.context-oKnUu6d3.js.map +1 -1
- package/dist/common/BackButton/BackButton.d.ts +2 -1
- package/dist/common/CloseButton/CloseButton.d.ts +3 -2
- package/dist/common/SelectionWrapper.d.ts +8 -8
- package/dist/components/Accordion/Accordion.context.d.ts +6 -6
- package/dist/components/Accordion/Accordion.d.ts +11 -11
- package/dist/components/Accordion/Accordion.stories.d.ts +5 -4
- package/dist/components/Banner/Banner.d.ts +14 -14
- package/dist/components/Banner/Banner.stories.d.ts +11 -11
- package/dist/components/Breadcrumbs/Breadcrumb.d.ts +5 -5
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +6 -6
- package/dist/components/Button/Button.d.ts +8 -8
- package/dist/components/Button/Button.stories.d.ts +7 -7
- package/dist/components/Calendar/Calendar.d.ts +3 -2
- package/dist/components/Calendar/Calendar.stories.d.ts +3 -2
- package/dist/components/Calendar/Calendar.types.d.ts +4 -4
- package/dist/components/Calendar/Date.helper.d.ts +27 -54
- package/dist/components/Calendar/DateFormat.helper.d.ts +1 -3
- package/dist/components/Calendar/Month.helper.d.ts +5 -5
- package/dist/components/Calendar/PickerModeToggle.d.ts +2 -1
- package/dist/components/Calendar/Pickers/DayPicker.d.ts +2 -1
- package/dist/components/Calendar/Pickers/MonthPicker.d.ts +2 -1
- package/dist/components/Calendar/Pickers/YearPicker.d.ts +2 -1
- package/dist/components/Calendar/useCalendar.d.ts +4 -9
- package/dist/components/Card/Card.d.ts +5 -5
- package/dist/components/Card/CardTitle.d.ts +3 -3
- package/dist/components/Checkbox/Checkbox.d.ts +6 -6
- package/dist/components/Checkbox/Checkbox.stories.d.ts +2 -1
- package/dist/components/DatePicker/DatePicker.d.ts +2 -2
- package/dist/components/DatePicker/DatePicker.stories.d.ts +2 -1
- package/dist/components/DatePicker/DateRangePicker.d.ts +2 -1
- package/dist/components/DatePicker/DateRangePicker.stories.d.ts +2 -1
- package/dist/components/Dialog/Dialog.d.ts +13 -13
- package/dist/components/Dialog/Dialog.stories.d.ts +10 -9
- package/dist/components/DragDropFile/DragDropFile.context.d.ts +1 -1
- package/dist/components/DragDropFile/DragDropFile.d.ts +2 -2
- package/dist/components/DragDropFile/DragDropFile.stories.d.ts +5 -4
- package/dist/components/DragDropFile/components/DropZone.d.ts +2 -1
- package/dist/components/DragDropFile/components/FileItem.d.ts +2 -1
- package/dist/components/DragDropFile/components/FileList.d.ts +2 -1
- package/dist/components/DragDropFile/types.d.ts +4 -4
- package/dist/components/Drawer/Drawer.d.ts +7 -7
- package/dist/components/Dropdown/Dropdown.d.ts +2 -5
- package/dist/components/Dropdown/Dropdown.types.d.ts +1 -1
- package/dist/components/Dropdown/DropdownMenu.d.ts +2 -2
- package/dist/components/Dropdown/DropdownTrigger.d.ts +9 -9
- package/dist/components/EmptyState/EmptyState.d.ts +1 -1
- package/dist/components/EmptyState/EmptyState.stories.d.ts +8 -7
- package/dist/components/EmptyState/EmptyState.types.d.ts +2 -2
- package/dist/components/EmptyState/index.d.ts +1 -1
- package/dist/components/ErrorMessage/ErrorMessage.stories.d.ts +3 -2
- package/dist/components/HighlightMatch/HighlightMatch.d.ts +4 -4
- package/dist/components/IconFactory/IconFactory.d.ts +8 -8
- package/dist/components/IconFactory/IconFactory.fixtures.d.ts +6 -6
- package/dist/components/Label/Label.d.ts +9 -9
- package/dist/components/Label/Label.stories.d.ts +2 -1
- package/dist/components/Layout/Box.d.ts +8 -9
- package/dist/components/Layout/Grid.d.ts +4 -5
- package/dist/components/Layout/Group.d.ts +5 -6
- package/dist/components/Layout/Layout.stories.d.ts +8 -7
- package/dist/components/Layout/Sidebar.d.ts +6 -7
- package/dist/components/Layout/Stack.d.ts +5 -6
- package/dist/components/Layout/Switcher.d.ts +5 -6
- package/dist/components/Link/Link.d.ts +3 -3
- package/dist/components/Link/Link.stories.d.ts +2 -1
- package/dist/components/Loaders/LoadingBar.d.ts +6 -6
- package/dist/components/Loaders/LoadingDots.d.ts +4 -3
- package/dist/components/Loaders/Spinner.d.ts +4 -3
- package/dist/components/Modal/Modal.d.ts +3 -3
- package/dist/components/Modal/Modal.stories.d.ts +4 -3
- package/dist/components/Pagination/Pagination.d.ts +2 -1
- package/dist/components/Pagination/Pagination.types.d.ts +4 -4
- package/dist/components/Pagination/PaginationItem.d.ts +2 -1
- package/dist/components/Popover/Popover.d.ts +4 -3
- package/dist/components/ProgressBar/ProgressBar.d.ts +6 -6
- package/dist/components/ProgressBar/ProgressBar.stories.d.ts +2 -1
- package/dist/components/Radio/Radio.d.ts +6 -6
- package/dist/components/Radio/Radio.stories.d.ts +2 -1
- package/dist/components/Section/Section.d.ts +4 -4
- package/dist/components/Section/Sections.stories.d.ts +2 -1
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/Select/Select.fixtures.d.ts +4 -4
- package/dist/components/Select/Select.types.d.ts +14 -14
- package/dist/components/Select/SelectCreatableOption.d.ts +2 -1
- package/dist/components/Select/SelectEmpty.d.ts +2 -1
- package/dist/components/Select/SelectOption.d.ts +2 -1
- package/dist/components/Select/useSelect.d.ts +0 -2
- package/dist/components/SideNavigation/Logo/Logo.d.ts +4 -4
- package/dist/components/SideNavigation/Menu/Menu.d.ts +5 -5
- package/dist/components/SideNavigation/Menu/MenuBaseItem.d.ts +7 -7
- package/dist/components/SideNavigation/Menu/MenuExpandable.d.ts +3 -3
- package/dist/components/SideNavigation/Menu/MenuLink.d.ts +5 -5
- package/dist/components/SideNavigation/Separator/Separator.d.ts +3 -2
- package/dist/components/SideNavigation/SideNavigation.d.ts +13 -13
- package/dist/components/SideNavigation/SideNavigation.stories.d.ts +2 -1
- package/dist/components/Steps/ProgressSteps/ProgressStep.d.ts +5 -5
- package/dist/components/Steps/ProgressSteps/ProgressSteps.d.ts +4 -3
- package/dist/components/Steps/Steps.d.ts +7 -7
- package/dist/components/Steps/Steps.types.d.ts +2 -2
- package/dist/components/Steps/StepsStep.d.ts +4 -4
- package/dist/components/Steps/useSteps.d.ts +2 -2
- package/dist/components/Switch/Switch.d.ts +6 -6
- package/dist/components/Table/Selection.d.ts +5 -5
- package/dist/components/Table/Table.d.ts +14 -13
- package/dist/components/Table/Table.stories.d.ts +7 -6
- package/dist/components/Table/Table.types.d.ts +5 -5
- package/dist/components/Table/TableSortHandle.d.ts +3 -2
- package/dist/components/Table/useSortBy.d.ts +3 -3
- package/dist/components/TablePagination/RowsPerPage.d.ts +2 -1
- package/dist/components/TablePagination/TablePagination.d.ts +2 -1
- package/dist/components/TablePagination/TablePaginationActions.d.ts +1 -1
- package/dist/components/Tabs/Tabs.d.ts +10 -10
- package/dist/components/Tabs/Tabs.stories.d.ts +3 -2
- package/dist/components/Tag/Tag.d.ts +11 -11
- package/dist/components/Tag/Tag.stories.d.ts +5 -5
- package/dist/components/TextField/TextField.d.ts +7 -7
- package/dist/components/TextField/TextField.stories.d.ts +2 -1
- package/dist/components/Textarea/Textarea.d.ts +7 -7
- package/dist/components/Textarea/Textarea.stories.d.ts +2 -1
- package/dist/components/Toast/Toast.d.ts +7 -7
- package/dist/components/Toast/Toast.stories.d.ts +2 -1
- package/dist/components/ToggleGroup/Toggle.d.ts +2 -1
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +3 -2
- package/dist/components/Tooltip/Tooltip.d.ts +6 -6
- package/dist/components/Tooltip/Tooltip.stories.d.ts +4 -3
- package/dist/components/TopNavigation/Logo/Logo.d.ts +4 -4
- package/dist/components/TopNavigation/Menu/Menu.d.ts +7 -7
- package/dist/components/TopNavigation/Menu/MenuItemDropdown.d.ts +8 -8
- package/dist/components/TopNavigation/Menu/MenuItemIcon.d.ts +7 -7
- package/dist/components/TopNavigation/OpenSideNavButton/OpenSideNavButton.d.ts +6 -5
- package/dist/components/TopNavigation/TopNavigation.d.ts +5 -5
- package/dist/components/TopNavigation/TopNavigation.stories.d.ts +2 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.stories.d.ts +2 -1
- package/dist/hooks/useDidMount/useDidMount.d.ts +1 -1
- package/dist/hooks/useFingerprint/useFingerprint.d.ts +0 -1
- package/dist/hooks/useFocusTrap/useFocusTrap.d.ts +7 -8
- package/dist/hooks/useFocusWithin/useFocusWithin.d.ts +1 -1
- package/dist/hooks/useHeightExpansionToggler/useHeightExpansionToggler.d.ts +3 -3
- package/dist/hooks/useSelectable/SelectableStrategy.d.ts +4 -4
- package/dist/hooks/useSelectable/useSelectable.types.d.ts +2 -2
- package/dist/index.js +316 -257
- package/dist/index.js.map +1 -1
- package/dist/{miranda-compatibility.theme-kYNEZ7mW.js → miranda-compatibility.theme-CIu9fa89.js} +2 -2
- package/dist/miranda-compatibility.theme-CIu9fa89.js.map +1 -0
- package/dist/{prop-K2Z3EsyG.js → prop-Fs2axl9W.js} +12 -18
- package/dist/prop-Fs2axl9W.js.map +1 -0
- package/dist/styles/activatable.d.ts +2 -3
- package/dist/styles/disableable.d.ts +3 -3
- package/dist/styles/ellipsizable.d.ts +1 -2
- package/dist/styles/focusable.d.ts +3 -3
- package/dist/styles/font.d.ts +0 -1
- package/dist/styles/hidden.d.ts +1 -2
- package/dist/styles/hoverable.d.ts +3 -3
- package/dist/styles/transition.d.ts +0 -1
- package/dist/styles/typography.d.ts +6 -7
- package/dist/testing/DatePickerEvent/DatePickerEvent.d.ts +7 -12
- package/dist/testing/DatePickerEvent/DateRangePickerEvent.d.ts +7 -12
- package/dist/testing/SelectEvent/SelectEvent.d.ts +11 -19
- package/dist/testing/getInterpolatedStyles/getInterpolatedStyles.d.ts +2 -2
- package/dist/testing/index.js +7 -9
- package/dist/testing/index.js.map +1 -1
- package/dist/tests/generator.d.ts +2 -2
- package/dist/tests/renderer.d.ts +5 -4
- package/dist/theming/index.d.ts +3 -3
- package/dist/theming/index.js +2 -2
- package/dist/theming/index.js.map +1 -1
- package/dist/theming/theming.helpers.d.ts +2 -2
- package/dist/toArray-BJJzFRD1.js +13 -0
- package/dist/toArray-BJJzFRD1.js.map +1 -0
- package/dist/tools/conditional.d.ts +3 -3
- package/dist/tools/index.js +1 -1
- package/dist/tools/prop.d.ts +1 -1
- package/dist/utils/toolset/getID.d.ts +0 -6
- package/dist/utils/toolset/highlightMatch.d.ts +5 -6
- package/dist/utils/toolset/keyboard.d.ts +3 -4
- package/dist/utils/toolset/toArray.d.ts +7 -1
- package/package.json +53 -56
- package/dist/miranda-compatibility.theme-kYNEZ7mW.js.map +0 -1
- package/dist/prop-K2Z3EsyG.js.map +0 -1
- package/dist/toArray-Dxb1kUxx.js +0 -14
- package/dist/toArray-Dxb1kUxx.js.map +0 -1
- package/dist/utils/toolset/flatten.d.ts +0 -2
- package/dist/utils/toolset/isThenable.d.ts +0 -5
- package/dist/utils/toolset/isThenable.test.d.ts +0 -1
|
@@ -37,20 +37,20 @@ export declare const MONTH_BY_ALIAS: {
|
|
|
37
37
|
december: string;
|
|
38
38
|
};
|
|
39
39
|
export type CalendarMonthAlias = keyof typeof MONTH_BY_ALIAS;
|
|
40
|
-
export
|
|
40
|
+
export interface CalendarMonth {
|
|
41
41
|
name: string;
|
|
42
42
|
/**
|
|
43
43
|
* Integer value representing the month, beginning with 0 for January to 11 for December.
|
|
44
44
|
* Based on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/Date
|
|
45
45
|
*/
|
|
46
46
|
index: number;
|
|
47
|
-
}
|
|
47
|
+
}
|
|
48
48
|
export declare const MONTH_BY_NAME: Record<string, CalendarMonth>;
|
|
49
49
|
declare function getAllMonths(): CalendarMonth[];
|
|
50
50
|
declare function MonthHelper(alias: CalendarMonthAlias): {
|
|
51
|
-
get()
|
|
52
|
-
format(representation?: 'numeric' | '2-digit' | 'long' | 'short' | 'narrow')
|
|
53
|
-
is(other: CalendarMonthAlias)
|
|
51
|
+
get: () => CalendarMonth;
|
|
52
|
+
format: (representation?: 'numeric' | '2-digit' | 'long' | 'short' | 'narrow') => string;
|
|
53
|
+
is: (other: CalendarMonthAlias) => boolean;
|
|
54
54
|
};
|
|
55
55
|
declare namespace MonthHelper {
|
|
56
56
|
var getAll: typeof getAllMonths;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { ButtonProps } from '../Button';
|
|
2
3
|
declare function PickerModeToggle(props: Omit<ButtonProps & {
|
|
3
4
|
expanded: boolean;
|
|
4
|
-
}, 'trailing'>): JSX.Element;
|
|
5
|
+
}, 'trailing'>): React.JSX.Element;
|
|
5
6
|
export default PickerModeToggle;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { CalendarPickerProps } from '../Calendar.types';
|
|
2
3
|
export declare const WEEKDAYS: string[];
|
|
3
4
|
export declare const formatter: import('..').DateFormat;
|
|
@@ -5,5 +6,5 @@ export declare const formatter: import('..').DateFormat;
|
|
|
5
6
|
* filling days of previous month
|
|
6
7
|
* TODO: supress this for range selection
|
|
7
8
|
*/
|
|
8
|
-
declare function CalendarDayPicker({ calendar, onDayClick }: CalendarPickerProps): JSX.Element;
|
|
9
|
+
declare function CalendarDayPicker({ calendar, onDayClick }: CalendarPickerProps): React.JSX.Element;
|
|
9
10
|
export default CalendarDayPicker;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { CalendarPickerProps } from '../Calendar.types';
|
|
2
|
-
declare function CalendarMonthPicker({ calendar, mode }: CalendarPickerProps): JSX.Element;
|
|
3
|
+
declare function CalendarMonthPicker({ calendar, mode }: CalendarPickerProps): React.JSX.Element;
|
|
3
4
|
export default CalendarMonthPicker;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { CalendarPickerProps } from '../Calendar.types';
|
|
2
|
-
declare function CalendarYearPicker({ calendar, mode }: CalendarPickerProps): JSX.Element;
|
|
3
|
+
declare function CalendarYearPicker({ calendar, mode }: CalendarPickerProps): React.JSX.Element;
|
|
3
4
|
export default CalendarYearPicker;
|
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
import { useCalendarProps, useCalendarReturn, RenderableMonth } from './Calendar.types';
|
|
2
2
|
declare function useCalendar(props: useCalendarProps): useCalendarReturn;
|
|
3
3
|
/**
|
|
4
|
-
* Generate the whole grid of days
|
|
5
|
-
* @param {number} year
|
|
6
|
-
* @param {number }month
|
|
7
|
-
* @returns {RenderableMonth}
|
|
4
|
+
* Generate the whole grid of days
|
|
8
5
|
*/
|
|
9
6
|
export declare function getRenderableMonth(year: number, month: number): RenderableMonth;
|
|
10
7
|
/**
|
|
11
|
-
*
|
|
12
|
-
* @param
|
|
13
|
-
* @param
|
|
14
|
-
* @param {number?} amount - number of months to be generated. Default value is 1.
|
|
15
|
-
* @returns
|
|
8
|
+
* @param year - year number, e.g., 2022
|
|
9
|
+
* @param month - month index, where 0 is January and 11 is December
|
|
10
|
+
* @param amount - number of months to be generated. Default value is 1.
|
|
16
11
|
*/
|
|
17
12
|
export declare function getRenderableMonths(year: number, month: number, amount?: number): ReturnType<typeof getRenderableMonth>[];
|
|
18
13
|
export declare function getSelectionPair(selected?: null | [string | number | null, string | number | null]): [number | null, number | null];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { HTMLAttributes, ReactNode } from 'react';
|
|
1
|
+
import { HTMLAttributes, ReactNode, default as React } 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> {
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
status?: Status;
|
|
7
|
-
flagged?: boolean;
|
|
5
|
+
readonly children: ReactNode;
|
|
6
|
+
readonly status?: Status;
|
|
7
|
+
readonly flagged?: boolean;
|
|
8
8
|
}
|
|
9
|
-
declare function Card({ flagged, status, children, ...others }: CardProps): JSX.Element;
|
|
9
|
+
declare function Card({ flagged, status, children, ...others }: CardProps): React.JSX.Element;
|
|
10
10
|
declare namespace Card {
|
|
11
11
|
var Title: typeof CardTitle;
|
|
12
12
|
var Subtitle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ReactNode, HTMLAttributes } from 'react';
|
|
1
|
+
import { ReactNode, HTMLAttributes, default as React } from 'react';
|
|
2
2
|
export interface CardTitleProps extends HTMLAttributes<HTMLElement> {
|
|
3
|
-
leading?: ReactNode;
|
|
3
|
+
readonly leading?: ReactNode;
|
|
4
4
|
}
|
|
5
5
|
declare const Wrapper: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
6
|
-
declare function CardTitle({ children, leading, ...others }: CardTitleProps): JSX.Element;
|
|
6
|
+
declare function CardTitle({ children, leading, ...others }: CardTitleProps): React.JSX.Element;
|
|
7
7
|
export { Wrapper as CardTitleWrapper };
|
|
8
8
|
export default CardTitle;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { InputHTMLAttributes, ReactNode } from 'react';
|
|
1
|
+
import { InputHTMLAttributes, ReactNode, default as React } from 'react';
|
|
2
2
|
import { default as ColorScheme } from '../../utils/types/ColorScheme';
|
|
3
3
|
import { SelectionStyleProps } from '../../common/SelectionWrapper';
|
|
4
|
-
export interface CheckboxProps extends InputHTMLAttributes<HTMLInputElement>, SelectionStyleProps {
|
|
5
|
-
leading?: ReactNode;
|
|
6
|
-
scheme?: ColorScheme;
|
|
7
|
-
trailing?: ReactNode;
|
|
4
|
+
export interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'disabled'>, SelectionStyleProps {
|
|
5
|
+
readonly leading?: ReactNode;
|
|
6
|
+
readonly scheme?: ColorScheme;
|
|
7
|
+
readonly trailing?: ReactNode;
|
|
8
8
|
}
|
|
9
|
-
declare function Checkbox({ className, disabled, children, leading, trailing, scheme, scale, ...others }: CheckboxProps): JSX.Element;
|
|
9
|
+
declare function Checkbox({ className, disabled, children, leading, trailing, scheme, scale, ...others }: CheckboxProps): React.JSX.Element;
|
|
10
10
|
export default Checkbox;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { CheckboxProps } from './Checkbox';
|
|
2
3
|
import { Meta } from '@storybook/react';
|
|
3
4
|
declare const _default: Meta;
|
|
4
5
|
export default _default;
|
|
5
|
-
export declare function Playground(args: CheckboxProps): JSX.Element;
|
|
6
|
+
export declare function Playground(args: CheckboxProps): React.JSX.Element;
|
|
6
7
|
export declare namespace Playground {
|
|
7
8
|
var args: {};
|
|
8
9
|
}
|
|
@@ -6,8 +6,8 @@ import { TextFieldProps } from '../TextField';
|
|
|
6
6
|
export declare const formatter: import('../Calendar').DateFormat;
|
|
7
7
|
export declare const ClearButton: import('styled-components').StyledComponent<typeof CloseButton, any, {}, never>;
|
|
8
8
|
interface DateInputProps extends Omit<TextFieldProps, 'onChange'> {
|
|
9
|
-
onChange: (date: CalendarDate) => void;
|
|
9
|
+
readonly onChange: (date: CalendarDate) => void;
|
|
10
10
|
}
|
|
11
11
|
export declare const DateInput: React.ForwardRefExoticComponent<DateInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
12
|
-
declare function DatePicker(props: DatePickerProps): JSX.Element;
|
|
12
|
+
declare function DatePicker(props: DatePickerProps): React.JSX.Element;
|
|
13
13
|
export default DatePicker;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { StoryFn, Meta } from '@storybook/react';
|
|
2
3
|
import { DatePickerProps } from './DatePicker.types';
|
|
3
4
|
declare const _default: Meta;
|
|
4
5
|
export default _default;
|
|
5
6
|
export declare const Playground: StoryFn<DatePickerProps>;
|
|
6
7
|
export declare const WithValue: StoryFn<DatePickerProps>;
|
|
7
|
-
export declare function DatePickerConstraints(args: DatePickerProps): JSX.Element;
|
|
8
|
+
export declare function DatePickerConstraints(args: DatePickerProps): React.JSX.Element;
|
|
8
9
|
export declare namespace DatePickerConstraints {
|
|
9
10
|
var args: {
|
|
10
11
|
id: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { DateRangePickerProps } from './DatePicker.types';
|
|
2
3
|
export declare const formatter: import('../Calendar').DateFormat;
|
|
3
|
-
declare function DateRangePicker(props: DateRangePickerProps): JSX.Element;
|
|
4
|
+
declare function DateRangePicker(props: DateRangePickerProps): React.JSX.Element;
|
|
4
5
|
export default DateRangePicker;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { StoryFn, Meta } from '@storybook/react';
|
|
2
3
|
import { DateRangePickerProps } from './DatePicker.types';
|
|
3
4
|
declare const _default: Meta;
|
|
4
5
|
export default _default;
|
|
5
6
|
export declare const Playground: StoryFn<DateRangePickerProps>;
|
|
6
7
|
export declare const WithValue: StoryFn<DateRangePickerProps>;
|
|
7
|
-
export declare function DateRangePickerConstraints(args: DateRangePickerProps): JSX.Element;
|
|
8
|
+
export declare function DateRangePickerConstraints(args: DateRangePickerProps): React.JSX.Element;
|
|
8
9
|
export declare namespace DateRangePickerConstraints {
|
|
9
10
|
var args: {
|
|
10
11
|
id: string;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { default as React
|
|
1
|
+
import { ReactNode, default as React } from 'react';
|
|
2
2
|
import { ButtonProps } from '../Button';
|
|
3
3
|
interface WithScaleProps {
|
|
4
|
-
scale?: 'small' | 'default' | 'large';
|
|
4
|
+
readonly scale?: 'small' | 'default' | 'large';
|
|
5
5
|
}
|
|
6
6
|
export interface DialogProps extends WithScaleProps {
|
|
7
|
-
className?: string;
|
|
8
|
-
id?: string;
|
|
9
|
-
open: boolean;
|
|
10
|
-
children: ReactNode;
|
|
11
|
-
onOverlayClick?: () => void;
|
|
7
|
+
readonly className?: string;
|
|
8
|
+
readonly id?: string;
|
|
9
|
+
readonly open: boolean;
|
|
10
|
+
readonly children: ReactNode;
|
|
11
|
+
readonly onOverlayClick?: () => void;
|
|
12
12
|
}
|
|
13
13
|
declare function DialogActions({ scale, direction, children, }: {
|
|
14
|
-
scale?: 'small' | 'default' | 'large';
|
|
15
|
-
direction?: 'vertical' | 'horizontal';
|
|
16
|
-
children: ReactNode;
|
|
14
|
+
readonly scale?: 'small' | 'default' | 'large';
|
|
15
|
+
readonly direction?: 'vertical' | 'horizontal';
|
|
16
|
+
readonly children: ReactNode;
|
|
17
17
|
}): React.JSX.Element;
|
|
18
18
|
export interface DialogActionConfirmProps extends Omit<ButtonProps, 'onClick' | 'variant'> {
|
|
19
|
-
onConfirm: () => void;
|
|
19
|
+
readonly onConfirm: () => void;
|
|
20
20
|
}
|
|
21
21
|
declare function DialogActionConfirm({ onConfirm, children, ...others }: DialogActionConfirmProps): React.JSX.Element;
|
|
22
22
|
export interface DialogActionCancelProps extends Omit<ButtonProps, 'onClick' | 'variant'> {
|
|
23
|
-
onCancel: () => void;
|
|
23
|
+
readonly onCancel: () => void;
|
|
24
24
|
}
|
|
25
25
|
declare function DialogActionCancel({ onCancel, children, ...others }: DialogActionCancelProps): React.JSX.Element;
|
|
26
|
-
declare function Dialog({ scale, open, ...others }: DialogProps): JSX.Element;
|
|
26
|
+
declare function Dialog({ scale, open, ...others }: DialogProps): React.JSX.Element;
|
|
27
27
|
declare namespace Dialog {
|
|
28
28
|
var Header: import("styled-components").StyledComponent<"h1", any, {}, never>;
|
|
29
29
|
var Body: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,64 +1,65 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { Meta } from '@storybook/react';
|
|
2
3
|
import { DialogProps } from './Dialog';
|
|
3
4
|
declare const _default: Meta;
|
|
4
5
|
export default _default;
|
|
5
|
-
export declare function WithoutHeader(args: DialogProps): JSX.Element;
|
|
6
|
+
export declare function WithoutHeader(args: DialogProps): React.JSX.Element;
|
|
6
7
|
export declare namespace WithoutHeader {
|
|
7
8
|
var args: {
|
|
8
9
|
scale: string;
|
|
9
10
|
open: boolean;
|
|
10
11
|
};
|
|
11
12
|
}
|
|
12
|
-
export declare function WithHeader(args: DialogProps): JSX.Element;
|
|
13
|
+
export declare function WithHeader(args: DialogProps): React.JSX.Element;
|
|
13
14
|
export declare namespace WithHeader {
|
|
14
15
|
var args: {
|
|
15
16
|
scale: string;
|
|
16
17
|
open: boolean;
|
|
17
18
|
};
|
|
18
19
|
}
|
|
19
|
-
export declare function WithHeaderAndBody(args: DialogProps): JSX.Element;
|
|
20
|
+
export declare function WithHeaderAndBody(args: DialogProps): React.JSX.Element;
|
|
20
21
|
export declare namespace WithHeaderAndBody {
|
|
21
22
|
var args: {
|
|
22
23
|
scale: string;
|
|
23
24
|
open: boolean;
|
|
24
25
|
};
|
|
25
26
|
}
|
|
26
|
-
export declare function WithCloseButton(args: DialogProps): JSX.Element;
|
|
27
|
+
export declare function WithCloseButton(args: DialogProps): React.JSX.Element;
|
|
27
28
|
export declare namespace WithCloseButton {
|
|
28
29
|
var args: {
|
|
29
30
|
scale: string;
|
|
30
31
|
open: boolean;
|
|
31
32
|
};
|
|
32
33
|
}
|
|
33
|
-
export declare function WithActionConfirm(args: DialogProps): JSX.Element;
|
|
34
|
+
export declare function WithActionConfirm(args: DialogProps): React.JSX.Element;
|
|
34
35
|
export declare namespace WithActionConfirm {
|
|
35
36
|
var args: {
|
|
36
37
|
scale: string;
|
|
37
38
|
open: boolean;
|
|
38
39
|
};
|
|
39
40
|
}
|
|
40
|
-
export declare function WithCustomActionConfirmLabel(args: DialogProps): JSX.Element;
|
|
41
|
+
export declare function WithCustomActionConfirmLabel(args: DialogProps): React.JSX.Element;
|
|
41
42
|
export declare namespace WithCustomActionConfirmLabel {
|
|
42
43
|
var args: {
|
|
43
44
|
scale: string;
|
|
44
45
|
open: boolean;
|
|
45
46
|
};
|
|
46
47
|
}
|
|
47
|
-
export declare function WithCustomActionCancelLabel(args: DialogProps): JSX.Element;
|
|
48
|
+
export declare function WithCustomActionCancelLabel(args: DialogProps): React.JSX.Element;
|
|
48
49
|
export declare namespace WithCustomActionCancelLabel {
|
|
49
50
|
var args: {
|
|
50
51
|
scale: string;
|
|
51
52
|
open: boolean;
|
|
52
53
|
};
|
|
53
54
|
}
|
|
54
|
-
export declare function WithActionConfirmAndCancel(args: DialogProps): JSX.Element;
|
|
55
|
+
export declare function WithActionConfirmAndCancel(args: DialogProps): React.JSX.Element;
|
|
55
56
|
export declare namespace WithActionConfirmAndCancel {
|
|
56
57
|
var args: {
|
|
57
58
|
scale: string;
|
|
58
59
|
open: boolean;
|
|
59
60
|
};
|
|
60
61
|
}
|
|
61
|
-
export declare function WithInlineActions(args: DialogProps): JSX.Element;
|
|
62
|
+
export declare function WithInlineActions(args: DialogProps): React.JSX.Element;
|
|
62
63
|
export declare namespace WithInlineActions {
|
|
63
64
|
var args: {
|
|
64
65
|
scale: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { DragDropFileContextValue, DragDropFileProviderProps } from './types';
|
|
3
3
|
export declare const DragDropFileContext: React.Context<DragDropFileContextValue | undefined>;
|
|
4
|
-
export declare const DragDropFileProvider: ({ fileList, onFilesAdded, onFileRemoved, onRetryUpload, children, }: DragDropFileProviderProps) => JSX.Element;
|
|
4
|
+
export declare const DragDropFileProvider: ({ fileList, onFilesAdded, onFileRemoved, onRetryUpload, children, }: DragDropFileProviderProps) => React.JSX.Element;
|
|
5
5
|
export declare const useDragDropFileContext: () => DragDropFileContextValue;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const DragDropFile: {
|
|
2
2
|
(): null;
|
|
3
3
|
Wrapper: ({ children, ...props }: import('./types').WrapperProps) => import("react").JSX.Element;
|
|
4
|
-
DropZone: ({ className, hint, multiple, accept, disabled, error, renderCustomContent, ...props }: import('./types').DropZoneProps) => JSX.Element;
|
|
5
|
-
FileList: ({ disabled, ...props }: import('./types').FileListProps) => JSX.Element | null;
|
|
4
|
+
DropZone: ({ className, hint, multiple, accept, disabled, error, renderCustomContent, ...props }: import('./types').DropZoneProps) => import("react").JSX.Element;
|
|
5
|
+
FileList: ({ disabled, ...props }: import('./types').FileListProps) => import("react").JSX.Element | null;
|
|
6
6
|
};
|
|
7
7
|
export default DragDropFile;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { Meta } from '@storybook/react';
|
|
2
3
|
import { DropZoneProps } from './types';
|
|
3
4
|
declare const _default: Meta;
|
|
4
5
|
export default _default;
|
|
5
6
|
type PlaygroundProps = DropZoneProps & {
|
|
6
|
-
errorMessage?: string;
|
|
7
|
+
readonly errorMessage?: string;
|
|
7
8
|
};
|
|
8
|
-
export declare function Playground({ errorMessage, ...args }: PlaygroundProps): JSX.Element;
|
|
9
|
+
export declare function Playground({ errorMessage, ...args }: PlaygroundProps): React.JSX.Element;
|
|
9
10
|
export declare namespace Playground {
|
|
10
11
|
var args: {
|
|
11
12
|
hint: string;
|
|
@@ -13,7 +14,7 @@ export declare namespace Playground {
|
|
|
13
14
|
multiple: boolean;
|
|
14
15
|
};
|
|
15
16
|
}
|
|
16
|
-
export declare function WithInitialFileList({ errorMessage, ...args }: PlaygroundProps): JSX.Element;
|
|
17
|
+
export declare function WithInitialFileList({ errorMessage, ...args }: PlaygroundProps): React.JSX.Element;
|
|
17
18
|
export declare namespace WithInitialFileList {
|
|
18
19
|
var args: {
|
|
19
20
|
hint: string;
|
|
@@ -21,7 +22,7 @@ export declare namespace WithInitialFileList {
|
|
|
21
22
|
multiple: boolean;
|
|
22
23
|
};
|
|
23
24
|
}
|
|
24
|
-
export declare function GeneralError({ errorMessage, ...args }: PlaygroundProps): JSX.Element;
|
|
25
|
+
export declare function GeneralError({ errorMessage, ...args }: PlaygroundProps): React.JSX.Element;
|
|
25
26
|
export declare namespace GeneralError {
|
|
26
27
|
var args: {
|
|
27
28
|
hint: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { DropZoneProps } from '../types';
|
|
2
|
-
declare const DropZone: ({ className, hint, multiple, accept, disabled, error, renderCustomContent, ...props }: DropZoneProps) => JSX.Element;
|
|
3
|
+
declare const DropZone: ({ className, hint, multiple, accept, disabled, error, renderCustomContent, ...props }: DropZoneProps) => React.JSX.Element;
|
|
3
4
|
export default DropZone;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { FileListProps } from '../types';
|
|
2
|
-
declare const FileList: ({ disabled, ...props }: FileListProps) => JSX.Element | null;
|
|
3
|
+
declare const FileList: ({ disabled, ...props }: FileListProps) => React.JSX.Element | null;
|
|
3
4
|
export default FileList;
|
|
@@ -31,11 +31,11 @@ export type DropZoneProps = Omit<HTMLAttributes<HTMLInputElement>, 'onChange'> &
|
|
|
31
31
|
}) => JSX.Element;
|
|
32
32
|
};
|
|
33
33
|
export type FileStatus = 'loading' | 'error' | 'success';
|
|
34
|
-
export
|
|
34
|
+
export interface FileWithStatus {
|
|
35
35
|
file: File;
|
|
36
36
|
status: FileStatus;
|
|
37
37
|
errorMessage?: string;
|
|
38
|
-
}
|
|
38
|
+
}
|
|
39
39
|
export type FileItemProps = FileWithStatus & {
|
|
40
40
|
onRemove: () => void;
|
|
41
41
|
onRetry?: () => void;
|
|
@@ -47,7 +47,7 @@ export type FileListProps = Partial<StackProps> & {
|
|
|
47
47
|
*/
|
|
48
48
|
disabled?: boolean;
|
|
49
49
|
};
|
|
50
|
-
export
|
|
50
|
+
export interface DragDropFileProviderProps {
|
|
51
51
|
/**
|
|
52
52
|
* List of items including the file and its status.
|
|
53
53
|
*/
|
|
@@ -65,7 +65,7 @@ export type DragDropFileProviderProps = {
|
|
|
65
65
|
*/
|
|
66
66
|
onRetryUpload?: (item: FileWithStatus, removedItemIndex: number) => void;
|
|
67
67
|
children: ReactNode;
|
|
68
|
-
}
|
|
68
|
+
}
|
|
69
69
|
export type DragDropFileContextValue = Pick<DragDropFileProviderProps, 'fileList' | 'onFilesAdded' | 'onRetryUpload'> & {
|
|
70
70
|
onRemoveFile: (removedItem: FileWithStatus, removedItemIndex: number) => void;
|
|
71
71
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropsWithChildren, ReactNode } from 'react';
|
|
1
|
+
import { PropsWithChildren, ReactNode, default as React } from 'react';
|
|
2
2
|
export interface DrawerProps {
|
|
3
3
|
children?: ReactNode;
|
|
4
4
|
className?: string;
|
|
@@ -7,18 +7,18 @@ export interface DrawerProps {
|
|
|
7
7
|
onClickOutside?: () => void;
|
|
8
8
|
}
|
|
9
9
|
export interface DrawerHeaderProps {
|
|
10
|
-
className?: string;
|
|
10
|
+
readonly className?: string;
|
|
11
11
|
}
|
|
12
|
-
declare function DrawerHeader({ children, className, ...others }: PropsWithChildren<DrawerHeaderProps>): JSX.Element;
|
|
12
|
+
declare function DrawerHeader({ children, className, ...others }: PropsWithChildren<DrawerHeaderProps>): React.JSX.Element;
|
|
13
13
|
export interface DrawerBodyProps {
|
|
14
14
|
className?: string;
|
|
15
15
|
}
|
|
16
|
-
declare function DrawerBody({ children, className, ...others }: PropsWithChildren<DrawerHeaderProps>): JSX.Element;
|
|
16
|
+
declare function DrawerBody({ children, className, ...others }: PropsWithChildren<DrawerHeaderProps>): React.JSX.Element;
|
|
17
17
|
export interface DrawerFooterProps {
|
|
18
|
-
className?: string;
|
|
18
|
+
readonly className?: string;
|
|
19
19
|
}
|
|
20
|
-
declare function DrawerFooter({ children, className, ...others }: PropsWithChildren<DrawerFooterProps>): JSX.Element;
|
|
21
|
-
declare function Drawer({ className, children, open, onClose, onClickOutside, ...others }: DrawerProps):
|
|
20
|
+
declare function DrawerFooter({ children, className, ...others }: PropsWithChildren<DrawerFooterProps>): React.JSX.Element;
|
|
21
|
+
declare function Drawer({ className, children, open, onClose, onClickOutside, ...others }: DrawerProps): React.ReactPortal;
|
|
22
22
|
declare namespace Drawer {
|
|
23
23
|
var Header: typeof DrawerHeader;
|
|
24
24
|
var Body: typeof DrawerBody;
|
|
@@ -8,11 +8,8 @@ import { DropdownProps, GenericDropdownProps, DropdownMenuProps } from './Dropdo
|
|
|
8
8
|
* Based on:
|
|
9
9
|
* - https://www.w3.org/TR/2017/REC-wai-aria-1.1-20171214/#menu
|
|
10
10
|
* - https://www.w3.org/WAI/tutorials/menus/application-menus/
|
|
11
|
-
*
|
|
12
|
-
* @param props
|
|
13
|
-
* @returns
|
|
14
11
|
*/
|
|
15
|
-
export declare function GenericDropdown(props: GenericDropdownProps): JSX.Element;
|
|
12
|
+
export declare function GenericDropdown(props: GenericDropdownProps): React.JSX.Element;
|
|
16
13
|
/**
|
|
17
14
|
* @example
|
|
18
15
|
<Dropdown>
|
|
@@ -34,7 +31,7 @@ export declare function GenericDropdown(props: GenericDropdownProps): JSX.Elemen
|
|
|
34
31
|
</Dropdown.Menu>
|
|
35
32
|
</Dropdown>
|
|
36
33
|
*/
|
|
37
|
-
declare function Dropdown(props: DropdownProps): JSX.Element;
|
|
34
|
+
declare function Dropdown(props: DropdownProps): React.JSX.Element;
|
|
38
35
|
declare namespace Dropdown {
|
|
39
36
|
var Trigger: typeof DropdownTrigger;
|
|
40
37
|
var Menu: React.ForwardRefExoticComponent<DropdownMenuProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -36,7 +36,7 @@ export interface DropdownMenuProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
36
36
|
export interface DropdownMenuItemProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
37
37
|
leading?: ReactNode;
|
|
38
38
|
trailing?: ReactNode;
|
|
39
|
-
onClick?: (event: React.MouseEvent<HTMLButtonElement
|
|
39
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => boolean | undefined | void;
|
|
40
40
|
}
|
|
41
41
|
export interface DropdownMenuSectionProps extends HTMLAttributes<HTMLDivElement> {
|
|
42
42
|
header: ReactNode;
|
|
@@ -4,5 +4,5 @@ export declare const DropdownSeparator: import('styled-components').StyledCompon
|
|
|
4
4
|
'aria-hidden': true;
|
|
5
5
|
}, "aria-hidden">;
|
|
6
6
|
export declare const DropdownMenu: React.ForwardRefExoticComponent<DropdownMenuProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
-
export declare function DropdownMenuItem(props: DropdownMenuItemProps): JSX.Element;
|
|
8
|
-
export declare function DropdownMenuSection(props: DropdownMenuSectionProps): JSX.Element;
|
|
7
|
+
export declare function DropdownMenuItem(props: DropdownMenuItemProps): React.JSX.Element;
|
|
8
|
+
export declare function DropdownMenuSection(props: DropdownMenuSectionProps): React.JSX.Element;
|
|
@@ -2,18 +2,18 @@ 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
4
|
export interface DropdownTriggerButtonProps extends Omit<DropdownTriggerProps, 'children'> {
|
|
5
|
-
children: DropdownTriggerProps['children'] | ((args: DropdownContextReturn) => React.ReactNode);
|
|
5
|
+
readonly children: DropdownTriggerProps['children'] | ((args: DropdownContextReturn) => React.ReactNode);
|
|
6
6
|
}
|
|
7
|
-
declare function DropdownTriggerButton(props: DropdownTriggerButtonProps): JSX.Element;
|
|
8
|
-
declare function DropdownTriggerHandle(props: ButtonHTMLAttributes<HTMLButtonElement>): JSX.Element;
|
|
7
|
+
declare function DropdownTriggerButton(props: DropdownTriggerButtonProps): React.JSX.Element;
|
|
8
|
+
declare function DropdownTriggerHandle(props: ButtonHTMLAttributes<HTMLButtonElement>): React.JSX.Element;
|
|
9
9
|
export interface GenericDropdownTriggerProps extends HTMLAttributes<HTMLDivElement> {
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
scheme?: ColorScheme;
|
|
12
|
-
outlined?: boolean;
|
|
13
|
-
scale?: DropdownTriggerProps['scale'];
|
|
10
|
+
readonly disabled?: boolean;
|
|
11
|
+
readonly scheme?: ColorScheme;
|
|
12
|
+
readonly outlined?: boolean;
|
|
13
|
+
readonly scale?: DropdownTriggerProps['scale'];
|
|
14
14
|
}
|
|
15
|
-
export declare function GenericDropdownTrigger(props: GenericDropdownTriggerProps): JSX.Element;
|
|
16
|
-
declare function DropdownTrigger(props: DropdownTriggerProps): JSX.Element;
|
|
15
|
+
export declare function GenericDropdownTrigger(props: GenericDropdownTriggerProps): React.JSX.Element;
|
|
16
|
+
declare function DropdownTrigger(props: DropdownTriggerProps): React.JSX.Element;
|
|
17
17
|
declare namespace DropdownTrigger {
|
|
18
18
|
var Button: typeof DropdownTriggerButton;
|
|
19
19
|
var Handle: typeof DropdownTriggerHandle;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { EmptyStateProps } from './EmptyState.types';
|
|
3
3
|
declare const EmptyState: {
|
|
4
|
-
(props: EmptyStateProps): JSX.Element;
|
|
4
|
+
(props: EmptyStateProps): React.JSX.Element;
|
|
5
5
|
Illustration: React.FC<import('./EmptyState.types').IllustrationProps>;
|
|
6
6
|
};
|
|
7
7
|
export default EmptyState;
|
|
@@ -1,32 +1,33 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { Meta } from '@storybook/react';
|
|
2
3
|
import { EmptyStateProps, EmptyStateWithIllustrationProps, EmptyStateWithIconProps } from './EmptyState.types';
|
|
3
4
|
declare const _default: Meta;
|
|
4
5
|
export default _default;
|
|
5
|
-
export declare function Playground(args: EmptyStateProps): JSX.Element;
|
|
6
|
+
export declare function Playground(args: EmptyStateProps): React.JSX.Element;
|
|
6
7
|
export declare namespace Playground {
|
|
7
8
|
var args: EmptyStateWithIllustrationProps;
|
|
8
9
|
}
|
|
9
|
-
export declare function PlacedOnPage(args: EmptyStateWithIllustrationProps): JSX.Element;
|
|
10
|
+
export declare function PlacedOnPage(args: EmptyStateWithIllustrationProps): React.JSX.Element;
|
|
10
11
|
export declare namespace PlacedOnPage {
|
|
11
12
|
var args: EmptyStateWithIllustrationProps;
|
|
12
13
|
}
|
|
13
|
-
export declare function PlacedOnPageWithIllustrationElement(args: EmptyStateWithIllustrationProps): JSX.Element;
|
|
14
|
+
export declare function PlacedOnPageWithIllustrationElement(args: EmptyStateWithIllustrationProps): React.JSX.Element;
|
|
14
15
|
export declare namespace PlacedOnPageWithIllustrationElement {
|
|
15
16
|
var args: EmptyStateWithIllustrationProps;
|
|
16
17
|
}
|
|
17
|
-
export declare function PlacedOnPanel(args: EmptyStateWithIllustrationProps): JSX.Element;
|
|
18
|
+
export declare function PlacedOnPanel(args: EmptyStateWithIllustrationProps): React.JSX.Element;
|
|
18
19
|
export declare namespace PlacedOnPanel {
|
|
19
20
|
var args: EmptyStateWithIllustrationProps;
|
|
20
21
|
}
|
|
21
|
-
export declare function PlacedOnPanelWithIllustrationElement(args: EmptyStateWithIllustrationProps): JSX.Element;
|
|
22
|
+
export declare function PlacedOnPanelWithIllustrationElement(args: EmptyStateWithIllustrationProps): React.JSX.Element;
|
|
22
23
|
export declare namespace PlacedOnPanelWithIllustrationElement {
|
|
23
24
|
var args: EmptyStateWithIllustrationProps;
|
|
24
25
|
}
|
|
25
|
-
export declare function PlacedOnCard(args: EmptyStateWithIconProps): JSX.Element;
|
|
26
|
+
export declare function PlacedOnCard(args: EmptyStateWithIconProps): React.JSX.Element;
|
|
26
27
|
export declare namespace PlacedOnCard {
|
|
27
28
|
var args: EmptyStateWithIconProps;
|
|
28
29
|
}
|
|
29
|
-
export declare function PlacedOnHorizontalCard(args: EmptyStateProps): JSX.Element;
|
|
30
|
+
export declare function PlacedOnHorizontalCard(args: EmptyStateProps): React.JSX.Element;
|
|
30
31
|
export declare namespace PlacedOnHorizontalCard {
|
|
31
32
|
var args: EmptyStateWithIconProps;
|
|
32
33
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { ButtonProps } from '../Button';
|
|
3
3
|
export type EmptyStateCommonProps = HTMLAttributes<HTMLDivElement> & {
|
|
4
4
|
title?: string;
|
|
@@ -8,7 +8,7 @@ export type EmptyStateCommonProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
8
8
|
};
|
|
9
9
|
export type EmptyStateWithIconProps = EmptyStateCommonProps & {
|
|
10
10
|
variant: 'card' | 'horizontal-card';
|
|
11
|
-
icon?:
|
|
11
|
+
icon?: ReactNode;
|
|
12
12
|
};
|
|
13
13
|
export type EmptyStateWithIllustrationProps = EmptyStateCommonProps & {
|
|
14
14
|
variant: 'page' | 'panel';
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { Meta } from '@storybook/react';
|
|
2
3
|
import { ErrorMessageProps } from './ErrorMessage';
|
|
3
4
|
declare const _default: Meta;
|
|
4
5
|
export default _default;
|
|
5
6
|
type PlaygroundProps = ErrorMessageProps & {
|
|
6
|
-
errorMessage?: string;
|
|
7
|
+
readonly errorMessage?: string;
|
|
7
8
|
};
|
|
8
|
-
export declare function Playground({ errorMessage
|
|
9
|
+
export declare function Playground({ errorMessage }: PlaygroundProps): React.JSX.Element;
|
|
9
10
|
export declare namespace Playground {
|
|
10
11
|
var args: {
|
|
11
12
|
errorMessage: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
1
|
+
import { HTMLAttributes, default as React } from 'react';
|
|
2
2
|
export type HighlightMatchProps = {
|
|
3
|
-
text: string;
|
|
4
|
-
match: string;
|
|
3
|
+
readonly text: string;
|
|
4
|
+
readonly match: string;
|
|
5
5
|
} & HTMLAttributes<HTMLSpanElement>;
|
|
6
|
-
declare const HighlightMatch: ({ text, match, ...props }: HighlightMatchProps) => JSX.Element;
|
|
6
|
+
declare const HighlightMatch: ({ text, match, ...props }: HighlightMatchProps) => React.JSX.Element;
|
|
7
7
|
export default HighlightMatch;
|