@loadsmart/loadsmart-ui 6.0.14 → 6.0.15
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/Banner/Banner.d.ts +4 -4
- package/dist/components/Banner/Banner.stories.d.ts +2 -1
- package/dist/components/Button/Button.stories.d.ts +3 -2
- package/dist/components/DatePicker/useDatePicker.d.ts +8 -2
- package/dist/components/DatePicker/useDateRangePicker.d.ts +12 -3
- package/dist/components/Dialog/Dialog.d.ts +4 -4
- package/dist/components/DragDropFile/DragDropFile.d.ts +2 -1
- package/dist/components/DragDropFile/components/Wrapper.d.ts +2 -1
- package/dist/components/DragDropFile/styles.d.ts +3 -2
- package/dist/components/ErrorMessage/ErrorMessage.d.ts +2 -1
- package/dist/components/Modal/Modal.d.ts +1 -1
- package/dist/components/Popover/Popover.types.d.ts +6 -8
- package/dist/components/Section/Section.d.ts +2 -2
- package/dist/components/SideNavigation/Menu/Menu.d.ts +1 -1
- package/dist/components/SideNavigation/SideNavigation.d.ts +1 -1
- package/dist/components/Tabs/Tabs.d.ts +5 -5
- package/dist/components/Tag/Tag.stories.d.ts +2 -1
- package/dist/index.js +189 -186
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
- package/src/components/Dropdown/Dropdown.test.tsx +1 -1
- package/src/components/Dropdown/DropdownMenu.tsx +3 -0
- package/src/components/Popover/Popover.test.tsx +1 -2
- package/src/components/Popover/Popover.tsx +25 -68
- package/src/components/Popover/Popover.types.ts +6 -8
- package/src/components/Select/SelectTrigger.tsx +1 -8
- package/src/components/Tooltip/Tooltip.tsx +1 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
1
|
+
import React, { ReactElement } from 'react';
|
|
2
2
|
import DefaultCloseButton from "../../common/CloseButton";
|
|
3
3
|
export interface BannerProps {
|
|
4
4
|
className?: string;
|
|
@@ -18,8 +18,8 @@ export interface BannerActionProps extends BannerProps {
|
|
|
18
18
|
}
|
|
19
19
|
export declare const CloseButton: import("styled-components").StyledComponent<typeof DefaultCloseButton, any, {}, never>;
|
|
20
20
|
export declare const Icon: import("styled-components").StyledComponent<(props: import("../IconFactory").IconProps<import("../IconFactory").IconMapping>) => JSX.Element, any, {}, never>;
|
|
21
|
-
declare function Banner({ scale, variant, icon, title, description, onClose, dismissible, ...others }: BannerProps): JSX.Element | null;
|
|
22
|
-
export declare function BannerLarge({ scale, variant, icon, title, description, onClose, dismissible, ...others }: BannerProps): JSX.Element | null;
|
|
21
|
+
declare function Banner({ scale, variant, icon, title, description, onClose, dismissible, ...others }: BannerProps): React.JSX.Element | null;
|
|
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;
|
|
24
|
-
export declare function BannerActionLarge({ scale, variant, icon, title, description, action, secondaryAction, onActionButtonClick, onSecondaryActionButtonClick, onClose, dismissible, ...others }: BannerActionProps): JSX.Element | null;
|
|
24
|
+
export declare function BannerActionLarge({ scale, variant, icon, title, description, action, secondaryAction, onActionButtonClick, onSecondaryActionButtonClick, onClose, dismissible, ...others }: BannerActionProps): React.JSX.Element | null;
|
|
25
25
|
export default Banner;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { BannerProps, BannerActionProps } from './Banner';
|
|
2
3
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
3
4
|
export default _default;
|
|
@@ -39,7 +40,7 @@ export declare namespace CustomIcon {
|
|
|
39
40
|
scale: string;
|
|
40
41
|
variant: string;
|
|
41
42
|
title: string;
|
|
42
|
-
icon: JSX.Element;
|
|
43
|
+
icon: React.JSX.Element;
|
|
43
44
|
};
|
|
44
45
|
}
|
|
45
46
|
export declare function Large(args: BannerProps): JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { BackButtonProps } from '../../common/BackButton';
|
|
2
3
|
import type { ButtonProps } from './Button';
|
|
3
4
|
import type { CloseButtonProps } from '../../common/CloseButton';
|
|
@@ -8,8 +9,8 @@ export declare namespace Playground {
|
|
|
8
9
|
var args: {
|
|
9
10
|
scale: string;
|
|
10
11
|
variant: string;
|
|
11
|
-
leading: JSX.Element;
|
|
12
|
-
trailing: JSX.Element;
|
|
12
|
+
leading: React.JSX.Element;
|
|
13
|
+
trailing: React.JSX.Element;
|
|
13
14
|
};
|
|
14
15
|
}
|
|
15
16
|
export declare function Base(args: ButtonProps): JSX.Element;
|
|
@@ -78,11 +78,14 @@ declare function useDatePicker(props: DatePickerProps): {
|
|
|
78
78
|
radioGroup?: string | undefined;
|
|
79
79
|
role?: import("react").AriaRole | undefined;
|
|
80
80
|
about?: string | undefined;
|
|
81
|
+
content?: string | undefined;
|
|
81
82
|
datatype?: string | undefined;
|
|
82
83
|
inlist?: any;
|
|
83
84
|
prefix?: string | undefined;
|
|
84
85
|
property?: string | undefined;
|
|
86
|
+
rel?: string | undefined;
|
|
85
87
|
resource?: string | undefined;
|
|
88
|
+
rev?: string | undefined;
|
|
86
89
|
typeof?: string | undefined;
|
|
87
90
|
vocab?: string | undefined;
|
|
88
91
|
autoCapitalize?: string | undefined;
|
|
@@ -148,7 +151,7 @@ declare function useDatePicker(props: DatePickerProps): {
|
|
|
148
151
|
'aria-valuenow'?: number | undefined;
|
|
149
152
|
'aria-valuetext'?: string | undefined;
|
|
150
153
|
dangerouslySetInnerHTML?: {
|
|
151
|
-
__html: string;
|
|
154
|
+
__html: string | TrustedHTML;
|
|
152
155
|
} | undefined;
|
|
153
156
|
onCopy?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
154
157
|
onCopyCapture?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
@@ -347,11 +350,14 @@ declare function useDatePicker(props: DatePickerProps): {
|
|
|
347
350
|
radioGroup?: string | undefined;
|
|
348
351
|
role?: import("react").AriaRole | undefined;
|
|
349
352
|
about?: string | undefined;
|
|
353
|
+
content?: string | undefined;
|
|
350
354
|
datatype?: string | undefined;
|
|
351
355
|
inlist?: any;
|
|
352
356
|
prefix?: string | undefined;
|
|
353
357
|
property?: string | undefined;
|
|
358
|
+
rel?: string | undefined;
|
|
354
359
|
resource?: string | undefined;
|
|
360
|
+
rev?: string | undefined;
|
|
355
361
|
typeof?: string | undefined;
|
|
356
362
|
vocab?: string | undefined;
|
|
357
363
|
autoCapitalize?: string | undefined;
|
|
@@ -418,7 +424,7 @@ declare function useDatePicker(props: DatePickerProps): {
|
|
|
418
424
|
'aria-valuetext'?: string | undefined;
|
|
419
425
|
children?: import("react").ReactNode;
|
|
420
426
|
dangerouslySetInnerHTML?: {
|
|
421
|
-
__html: string;
|
|
427
|
+
__html: string | TrustedHTML;
|
|
422
428
|
} | undefined;
|
|
423
429
|
onCopy?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
424
430
|
onCopyCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
@@ -71,11 +71,14 @@ declare function useDateRangePicker(props: DateRangePickerProps): {
|
|
|
71
71
|
radioGroup?: string | undefined;
|
|
72
72
|
role?: import("react").AriaRole | undefined;
|
|
73
73
|
about?: string | undefined;
|
|
74
|
+
content?: string | undefined;
|
|
74
75
|
datatype?: string | undefined;
|
|
75
76
|
inlist?: any;
|
|
76
77
|
prefix?: string | undefined;
|
|
77
78
|
property?: string | undefined;
|
|
79
|
+
rel?: string | undefined;
|
|
78
80
|
resource?: string | undefined;
|
|
81
|
+
rev?: string | undefined;
|
|
79
82
|
typeof?: string | undefined;
|
|
80
83
|
vocab?: string | undefined;
|
|
81
84
|
autoCapitalize?: string | undefined;
|
|
@@ -141,7 +144,7 @@ declare function useDateRangePicker(props: DateRangePickerProps): {
|
|
|
141
144
|
'aria-valuenow'?: number | undefined;
|
|
142
145
|
'aria-valuetext'?: string | undefined;
|
|
143
146
|
dangerouslySetInnerHTML?: {
|
|
144
|
-
__html: string;
|
|
147
|
+
__html: string | TrustedHTML;
|
|
145
148
|
} | undefined;
|
|
146
149
|
onCopy?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
147
150
|
onCopyCapture?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
@@ -368,11 +371,14 @@ declare function useDateRangePicker(props: DateRangePickerProps): {
|
|
|
368
371
|
radioGroup?: string | undefined;
|
|
369
372
|
role?: import("react").AriaRole | undefined;
|
|
370
373
|
about?: string | undefined;
|
|
374
|
+
content?: string | undefined;
|
|
371
375
|
datatype?: string | undefined;
|
|
372
376
|
inlist?: any;
|
|
373
377
|
prefix?: string | undefined;
|
|
374
378
|
property?: string | undefined;
|
|
379
|
+
rel?: string | undefined;
|
|
375
380
|
resource?: string | undefined;
|
|
381
|
+
rev?: string | undefined;
|
|
376
382
|
typeof?: string | undefined;
|
|
377
383
|
vocab?: string | undefined;
|
|
378
384
|
autoCapitalize?: string | undefined;
|
|
@@ -438,7 +444,7 @@ declare function useDateRangePicker(props: DateRangePickerProps): {
|
|
|
438
444
|
'aria-valuenow'?: number | undefined;
|
|
439
445
|
'aria-valuetext'?: string | undefined;
|
|
440
446
|
dangerouslySetInnerHTML?: {
|
|
441
|
-
__html: string;
|
|
447
|
+
__html: string | TrustedHTML;
|
|
442
448
|
} | undefined;
|
|
443
449
|
onCopy?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
444
450
|
onCopyCapture?: import("react").ClipboardEventHandler<HTMLInputElement> | undefined;
|
|
@@ -636,11 +642,14 @@ declare function useDateRangePicker(props: DateRangePickerProps): {
|
|
|
636
642
|
radioGroup?: string | undefined;
|
|
637
643
|
role?: import("react").AriaRole | undefined;
|
|
638
644
|
about?: string | undefined;
|
|
645
|
+
content?: string | undefined;
|
|
639
646
|
datatype?: string | undefined;
|
|
640
647
|
inlist?: any;
|
|
641
648
|
prefix?: string | undefined;
|
|
642
649
|
property?: string | undefined;
|
|
650
|
+
rel?: string | undefined;
|
|
643
651
|
resource?: string | undefined;
|
|
652
|
+
rev?: string | undefined;
|
|
644
653
|
typeof?: string | undefined;
|
|
645
654
|
vocab?: string | undefined;
|
|
646
655
|
autoCapitalize?: string | undefined;
|
|
@@ -707,7 +716,7 @@ declare function useDateRangePicker(props: DateRangePickerProps): {
|
|
|
707
716
|
'aria-valuetext'?: string | undefined;
|
|
708
717
|
children?: import("react").ReactNode;
|
|
709
718
|
dangerouslySetInnerHTML?: {
|
|
710
|
-
__html: string;
|
|
719
|
+
__html: string | TrustedHTML;
|
|
711
720
|
} | undefined;
|
|
712
721
|
onCopy?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
713
722
|
onCopyCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import type { ButtonProps } from '../Button';
|
|
3
3
|
interface WithScaleProps {
|
|
4
4
|
scale?: 'small' | 'default' | 'large';
|
|
@@ -14,15 +14,15 @@ declare function DialogActions({ scale, direction, children, }: {
|
|
|
14
14
|
scale?: 'small' | 'default' | 'large';
|
|
15
15
|
direction?: 'vertical' | 'horizontal';
|
|
16
16
|
children: ReactNode;
|
|
17
|
-
}): JSX.Element;
|
|
17
|
+
}): React.JSX.Element;
|
|
18
18
|
export interface DialogActionConfirmProps extends Omit<ButtonProps, 'onClick' | 'variant'> {
|
|
19
19
|
onConfirm: () => void;
|
|
20
20
|
}
|
|
21
|
-
declare function DialogActionConfirm({ onConfirm, children, ...others }: DialogActionConfirmProps): JSX.Element;
|
|
21
|
+
declare function DialogActionConfirm({ onConfirm, children, ...others }: DialogActionConfirmProps): React.JSX.Element;
|
|
22
22
|
export interface DialogActionCancelProps extends Omit<ButtonProps, 'onClick' | 'variant'> {
|
|
23
23
|
onCancel: () => void;
|
|
24
24
|
}
|
|
25
|
-
declare function DialogActionCancel({ onCancel, children, ...others }: DialogActionCancelProps): JSX.Element;
|
|
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
28
|
var Header: import("styled-components").StyledComponent<"h1", any, {}, never>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
declare const DragDropFile: {
|
|
2
3
|
(): null;
|
|
3
|
-
Wrapper: ({ children, ...props }: Partial<import("../..").StackProps>) => JSX.Element;
|
|
4
|
+
Wrapper: ({ children, ...props }: Partial<import("../..").StackProps>) => import("react").JSX.Element;
|
|
4
5
|
DropZone: ({ className, hint, multiple, accept, disabled, error, renderCustomContent, ...props }: import("./types").DropZoneProps) => JSX.Element;
|
|
5
6
|
FileList: ({ disabled, ...props }: import("./types").FileListProps) => JSX.Element | null;
|
|
6
7
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { WrapperProps } from '../types';
|
|
2
3
|
/**
|
|
3
4
|
* This is a `Stack` component customized with the needed spacing between the DragDropFile inner components
|
|
4
5
|
*/
|
|
5
|
-
declare const Wrapper: ({ children, ...props }: WrapperProps) => JSX.Element;
|
|
6
|
+
declare const Wrapper: ({ children, ...props }: WrapperProps) => React.JSX.Element;
|
|
6
7
|
export default Wrapper;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { StackProps, Stack } from "../Layout/Stack";
|
|
2
3
|
import type { DropZoneProps } from './types';
|
|
3
4
|
export declare const DragDropFileWrapper: import("styled-components").StyledComponent<typeof Stack, any, {
|
|
4
5
|
withFileList: boolean;
|
|
5
6
|
}, never>;
|
|
6
|
-
export declare const DropZoneWrapper: import("styled-components").StyledComponent<(props: StackProps) => JSX.Element, any, Pick<DropZoneProps, "disabled" | "error">, never>;
|
|
7
|
+
export declare const DropZoneWrapper: import("styled-components").StyledComponent<(props: StackProps) => React.JSX.Element, any, Pick<DropZoneProps, "disabled" | "error">, never>;
|
|
7
8
|
export declare const HiddenInput: import("styled-components").StyledComponent<"input", any, {}, never>;
|
|
8
9
|
export declare const UploadIcon: import("styled-components").StyledComponent<(props: import("../IconFactory").IconProps<import("../IconFactory").IconMapping>) => JSX.Element, any, {}, never>;
|
|
9
|
-
export declare const FileListUL: import("styled-components").StyledComponent<(props: StackProps) => JSX.Element, any, {}, never>;
|
|
10
|
+
export declare const FileListUL: import("styled-components").StyledComponent<(props: StackProps) => React.JSX.Element, any, {}, never>;
|
|
10
11
|
export declare const Divider: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { TextProps } from "../Text";
|
|
2
3
|
export declare type ErrorMessageProps = Partial<TextProps>;
|
|
3
|
-
declare const ErrorMessage: ({ children, ...props }: ErrorMessageProps) => JSX.Element | null;
|
|
4
|
+
declare const ErrorMessage: ({ children, ...props }: ErrorMessageProps) => React.JSX.Element | null;
|
|
4
5
|
export default ErrorMessage;
|
|
@@ -14,7 +14,7 @@ declare function Modal({ scale, children, open, fullscreen, onOverlayClick, ...o
|
|
|
14
14
|
declare namespace Modal {
|
|
15
15
|
var Header: ({ title, children }: React.PropsWithChildren<{
|
|
16
16
|
title: string;
|
|
17
|
-
}>) => JSX.Element;
|
|
17
|
+
}>) => React.JSX.Element;
|
|
18
18
|
var Close: import("styled-components").StyledComponent<typeof CloseButton, any, {
|
|
19
19
|
size: 16;
|
|
20
20
|
}, "size">;
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { UseFloatingReturn } from '@floating-ui/react-dom';
|
|
2
|
+
import type { CSSProperties, HTMLAttributes, MutableRefObject, PropsWithChildren } from 'react';
|
|
2
3
|
export interface UsePopoverReturn {
|
|
3
4
|
register: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
setReference: UseFloatingReturn['refs']['setReference'];
|
|
6
|
+
setFloating: UseFloatingReturn['refs']['setFloating'];
|
|
7
|
+
setArrow: MutableRefObject<Element | null>;
|
|
7
8
|
};
|
|
8
9
|
result: {
|
|
9
|
-
|
|
10
|
-
top: number;
|
|
11
|
-
left: number;
|
|
12
|
-
};
|
|
10
|
+
floatingStyles: CSSProperties;
|
|
13
11
|
arrow: {
|
|
14
12
|
top: number | undefined;
|
|
15
13
|
left: number | undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { HTMLAttributes, ReactNode } from 'react';
|
|
1
|
+
import React, { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
export declare type SectionProps = HTMLAttributes<HTMLElement>;
|
|
3
3
|
export interface SectionTitleProps extends HTMLAttributes<HTMLElement> {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
leading?: ReactNode;
|
|
6
6
|
}
|
|
7
|
-
declare function SectionTitle({ children, leading, ...others }: SectionTitleProps): JSX.Element;
|
|
7
|
+
declare function SectionTitle({ children, leading, ...others }: SectionTitleProps): React.JSX.Element;
|
|
8
8
|
declare function Section({ children, ...others }: SectionProps): JSX.Element;
|
|
9
9
|
declare namespace Section {
|
|
10
10
|
var Title: typeof SectionTitle;
|
|
@@ -9,7 +9,7 @@ declare function Menu({ label, children, ...props }: MenuProps): JSX.Element;
|
|
|
9
9
|
declare type MenuItemProps = {
|
|
10
10
|
active?: boolean;
|
|
11
11
|
} & PropsWithChildren<MenuLinkProps & MenuExpandableProps>;
|
|
12
|
-
declare function MenuItem(props: MenuItemProps): JSX.Element;
|
|
12
|
+
declare function MenuItem(props: MenuItemProps): React.JSX.Element;
|
|
13
13
|
declare const _default: string & import("styled-components").StyledComponentBase<typeof Menu, any, {}, never> & import("hoist-non-react-statics").NonReactStatics<typeof Menu, {}> & {
|
|
14
14
|
Item: typeof MenuItem;
|
|
15
15
|
SubItem: import("styled-components").StyledComponent<({ url, ...props }: MenuLinkProps) => JSX.Element, any, {}, never>;
|
|
@@ -25,7 +25,7 @@ declare namespace SideNavigation {
|
|
|
25
25
|
label: string;
|
|
26
26
|
} & {
|
|
27
27
|
children?: React.ReactNode;
|
|
28
|
-
}) => JSX.Element;
|
|
28
|
+
}) => React.JSX.Element;
|
|
29
29
|
SubItem: import("styled-components").StyledComponent<({ url, ...props }: import("./Menu/MenuLink").MenuLinkProps) => JSX.Element, any, {}, never>;
|
|
30
30
|
};
|
|
31
31
|
var Separator: typeof import("./Separator/Separator").default;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { HTMLAttributes, ReactNode } from 'react';
|
|
1
|
+
import React, { HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import type { WithDirectionProps } from './Tabs.types';
|
|
3
3
|
declare type TabsItemsProps = HTMLAttributes<HTMLUListElement>;
|
|
4
|
-
declare function TabsItems({ children, ...props }: TabsItemsProps): JSX.Element;
|
|
4
|
+
declare function TabsItems({ children, ...props }: TabsItemsProps): React.JSX.Element;
|
|
5
5
|
interface TabsItemProps extends HTMLAttributes<HTMLInputElement> {
|
|
6
6
|
name: string;
|
|
7
7
|
default?: boolean;
|
|
8
8
|
leading?: ReactNode;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
}
|
|
11
|
-
declare function TabsItem({ children, name, default: isDefault, className, onChange, leading, disabled, ...props }: TabsItemProps): JSX.Element;
|
|
11
|
+
declare function TabsItem({ children, name, default: isDefault, className, onChange, leading, disabled, ...props }: TabsItemProps): React.JSX.Element;
|
|
12
12
|
declare type PanelsItemsProps = HTMLAttributes<HTMLDivElement>;
|
|
13
|
-
declare function PanelsItems({ children, ...props }: PanelsItemsProps): JSX.Element;
|
|
13
|
+
declare function PanelsItems({ children, ...props }: PanelsItemsProps): React.JSX.Element;
|
|
14
14
|
interface PanelsItemProps extends HTMLAttributes<HTMLElement> {
|
|
15
15
|
name: string;
|
|
16
16
|
/**
|
|
@@ -19,7 +19,7 @@ interface PanelsItemProps extends HTMLAttributes<HTMLElement> {
|
|
|
19
19
|
*/
|
|
20
20
|
lazy?: boolean;
|
|
21
21
|
}
|
|
22
|
-
declare function PanelsItem({ children, name, lazy, ...props }: PanelsItemProps): JSX.Element;
|
|
22
|
+
declare function PanelsItem({ children, name, lazy, ...props }: PanelsItemProps): React.JSX.Element;
|
|
23
23
|
declare namespace PanelsItem {
|
|
24
24
|
var defaultProps: {
|
|
25
25
|
lazy: boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { TagProps } from './Tag';
|
|
2
3
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
|
|
3
4
|
export default _default;
|
|
@@ -15,7 +16,7 @@ export declare namespace Icon {
|
|
|
15
16
|
var args: {
|
|
16
17
|
size: string;
|
|
17
18
|
variant: string;
|
|
18
|
-
leading: JSX.Element;
|
|
19
|
+
leading: React.JSX.Element;
|
|
19
20
|
removable: boolean;
|
|
20
21
|
};
|
|
21
22
|
}
|