@loadsmart/loadsmart-ui 8.0.6 → 8.1.0-beta.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.js +29 -0
- package/dist/DragDropFile.context.js.map +1 -0
- package/dist/components/Banner/Banner.d.ts +2 -3
- package/dist/components/Button/Button.d.ts +2 -2
- package/dist/components/Calendar/Pickers/PickerButton.d.ts +1 -2
- package/dist/components/Card/Card.d.ts +3 -3
- package/dist/components/Card/CardTitle.d.ts +3 -2
- package/dist/components/DatePicker/DatePicker.d.ts +1 -2
- package/dist/components/Dialog/Dialog.d.ts +3 -3
- package/dist/components/DragDropFile/styles.d.ts +8 -10
- package/dist/components/Dropdown/Dropdown.d.ts +3 -3
- package/dist/components/Dropdown/DropdownMenu.d.ts +5 -4
- package/dist/components/Layout/Layout.utils.d.ts +2 -3
- package/dist/components/Layout/Stack.d.ts +3 -3
- package/dist/components/Loaders/LoadingBar.d.ts +3 -3
- package/dist/components/Modal/Modal.d.ts +1 -1
- package/dist/components/SideNavigation/Logo/Logo.d.ts +2 -2
- package/dist/components/SideNavigation/Menu/Menu.d.ts +4 -4
- package/dist/components/SideNavigation/Menu/MenuLink.d.ts +3 -2
- package/dist/components/SideNavigation/SideNavigation.d.ts +4 -4
- package/dist/components/Steps/StepsStep.d.ts +3 -2
- package/dist/components/Table/Table.d.ts +1 -1
- package/dist/components/TablePagination/TablePagination.styles.d.ts +1 -2
- package/dist/components/TablePagination/TablePaginationActions.d.ts +1 -2
- package/dist/components/Text/Text.d.ts +3 -3
- package/dist/components/TextField/TextField.d.ts +8 -3
- package/dist/components/ToggleGroup/Toggle.d.ts +3 -2
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +1 -1
- package/dist/components/TopNavigation/Logo/Logo.d.ts +2 -2
- package/dist/components/TopNavigation/Menu/Menu.d.ts +1 -1
- package/dist/components/TopNavigation/Menu/MenuItemDropdown.d.ts +5 -4
- package/dist/components/TopNavigation/OpenSideNavButton/OpenSideNavButton.d.ts +2 -2
- package/dist/components/TopNavigation/TopNavigation.d.ts +2 -2
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +4 -2
- package/dist/index.js +7545 -8177
- package/dist/index.js.map +1 -1
- package/dist/styles/font.d.ts +3 -3
- package/dist/styles/typography.d.ts +2 -2
- package/dist/testing/index.js +318 -219
- package/dist/testing/index.js.map +1 -1
- package/dist/themes.js +2322 -0
- package/dist/themes.js.map +1 -0
- package/dist/theming/index.js +10 -18
- package/dist/theming/index.js.map +1 -1
- package/dist/toArray.js +16 -0
- package/dist/toArray.js.map +1 -0
- package/dist/tools/index.js +2 -7
- package/dist/tools/vite-plugin-replace-jsx-runtime.d.ts +7 -0
- package/dist/tools.js +98 -0
- package/dist/tools.js.map +1 -0
- package/package.json +20 -6
- package/dist/DragDropFile.context-oKnUu6d3.js +0 -33
- package/dist/DragDropFile.context-oKnUu6d3.js.map +0 -1
- package/dist/miranda-compatibility.theme-CIu9fa89.js +0 -2528
- package/dist/miranda-compatibility.theme-CIu9fa89.js.map +0 -1
- package/dist/prop-Fs2axl9W.js +0 -75
- package/dist/prop-Fs2axl9W.js.map +0 -1
- package/dist/toArray-BJJzFRD1.js +0 -13
- package/dist/toArray-BJJzFRD1.js.map +0 -1
- package/dist/tools/index.js.map +0 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React, { createContext, useCallback, useContext, useMemo } from "react";
|
|
2
|
+
//#region src/components/DragDropFile/DragDropFile.context.tsx
|
|
3
|
+
var DragDropFileContext = createContext(void 0);
|
|
4
|
+
var DragDropFileProvider = ({ fileList, onFilesAdded, onFileRemoved, onRetryUpload, children }) => {
|
|
5
|
+
const onRemoveFile = useCallback((removedItem, index) => {
|
|
6
|
+
onFileRemoved([...fileList.slice(0, index), ...fileList.slice(index + 1)], removedItem, index);
|
|
7
|
+
}, [fileList]);
|
|
8
|
+
const contextValue = useMemo(() => ({
|
|
9
|
+
fileList,
|
|
10
|
+
onFilesAdded,
|
|
11
|
+
onRemoveFile,
|
|
12
|
+
onRetryUpload
|
|
13
|
+
}), [
|
|
14
|
+
fileList,
|
|
15
|
+
onFilesAdded,
|
|
16
|
+
onRemoveFile,
|
|
17
|
+
onRetryUpload
|
|
18
|
+
]);
|
|
19
|
+
return /* @__PURE__ */ React.createElement(DragDropFileContext.Provider, { value: contextValue }, children);
|
|
20
|
+
};
|
|
21
|
+
var useDragDropFileContext = () => {
|
|
22
|
+
const context = useContext(DragDropFileContext);
|
|
23
|
+
if (!context) throw new Error("useDragDropFileContext must be used within an DragDropFileProvider");
|
|
24
|
+
return context;
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
27
|
+
export { DragDropFileContext, DragDropFileProvider, useDragDropFileContext };
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=DragDropFile.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DragDropFile.context.js","names":["React","createContext","useContext","useCallback","useMemo","DragDropFileContextValue","DragDropFileProviderProps","FileWithStatus","DragDropFileContext","undefined","DragDropFileProvider","fileList","onFilesAdded","onFileRemoved","onRetryUpload","children","onRemoveFile","removedItem","index","slice","contextValue","useDragDropFileContext","context","Error"],"sources":["../src/components/DragDropFile/DragDropFile.context.tsx"],"sourcesContent":["import React, { createContext, useContext, useCallback, useMemo } from 'react'\n\nimport type { DragDropFileContextValue, DragDropFileProviderProps, FileWithStatus } from './types'\n\nexport const DragDropFileContext = createContext<DragDropFileContextValue | undefined>(undefined)\n\nexport const DragDropFileProvider = ({\n fileList,\n onFilesAdded,\n onFileRemoved,\n onRetryUpload,\n children,\n}: DragDropFileProviderProps) => {\n const onRemoveFile = useCallback(\n (removedItem: FileWithStatus, index: number) => {\n onFileRemoved([...fileList.slice(0, index), ...fileList.slice(index + 1)], removedItem, index)\n },\n [fileList]\n )\n\n const contextValue = useMemo(\n () => ({ fileList, onFilesAdded, onRemoveFile, onRetryUpload }),\n [fileList, onFilesAdded, onRemoveFile, onRetryUpload]\n )\n\n return (\n <DragDropFileContext.Provider value={contextValue}>{children}</DragDropFileContext.Provider>\n )\n}\n\nexport const useDragDropFileContext = (): DragDropFileContextValue => {\n const context = useContext(DragDropFileContext)\n\n if (!context) {\n throw new Error('useDragDropFileContext must be used within an DragDropFileProvider')\n }\n\n return context\n}\n"],"mappings":";;AAIA,IAAaQ,sBAAsBP,cAAoDQ,KAAAA,EAAU;AAEjG,IAAaC,wBAAwB,EACnCC,UACAC,cACAC,eACAC,eACAC,eAC+B;CAC/B,MAAMC,eAAeb,aAClBc,aAA6BC,UAAkB;AAC9CL,gBAAc,CAAC,GAAGF,SAASQ,MAAM,GAAGD,MAAM,EAAE,GAAGP,SAASQ,MAAMD,QAAQ,EAAE,CAAC,EAAED,aAAaC,MAAM;IAEhG,CAACP,SACH,CAAC;CAED,MAAMS,eAAehB,eACZ;EAAEO;EAAUC;EAAcI;EAAcF;EAAe,GAC9D;EAACH;EAAUC;EAAcI;EAAcF;EACzC,CAAC;AAED,QACE,sBAAA,cAAC,oBAAoB,UAArB,EAA8B,OAAOM,cAAuD,EAAxCL,SAAwC;;AAIhG,IAAaM,+BAAyD;CACpE,MAAMC,UAAUpB,WAAWM,oBAAoB;AAE/C,KAAI,CAACc,QACH,OAAM,IAAIC,MAAM,qEAAqE;AAGvF,QAAOD"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReactNode, default as React } from 'react';
|
|
2
|
-
import { StyledComponent } from 'styled-components';
|
|
3
2
|
export interface BannerProps {
|
|
4
3
|
readonly className?: string;
|
|
5
4
|
readonly variant?: 'success' | 'danger' | 'warning' | 'neutral';
|
|
@@ -16,8 +15,8 @@ export interface BannerActionProps extends BannerProps {
|
|
|
16
15
|
readonly onActionButtonClick?: () => void;
|
|
17
16
|
readonly onSecondaryActionButtonClick?: () => void;
|
|
18
17
|
}
|
|
19
|
-
export declare const CloseButton:
|
|
20
|
-
export declare const Icon:
|
|
18
|
+
export declare const CloseButton: any;
|
|
19
|
+
export declare const Icon: any;
|
|
21
20
|
declare function Banner({ scale, variant, icon, title, description, onClose, dismissible, ...others }: BannerProps): React.JSX.Element | null;
|
|
22
21
|
export declare function BannerLarge({ scale, variant, icon, title, description, onClose, dismissible, ...others }: BannerProps): React.JSX.Element | null;
|
|
23
22
|
export declare function BannerAction({ scale, variant, icon, title, action, secondaryAction, onActionButtonClick, onSecondaryActionButtonClick, ...others }: BannerActionProps): React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React, ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { IconProps } from '../Icon';
|
|
3
3
|
import { ColorScheme } from '../../utils/types/ColorScheme';
|
|
4
|
-
import {
|
|
4
|
+
import { IStyledComponentBase, Substitute } from 'styled-components/dist/types';
|
|
5
5
|
export type ButtonVariants = 'primary' | 'secondary' | 'warning' | 'icon' | 'tertiary';
|
|
6
6
|
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
7
7
|
readonly className?: string;
|
|
@@ -12,7 +12,7 @@ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
12
12
|
readonly scale?: 'small' | 'default' | 'large';
|
|
13
13
|
readonly loading?: boolean;
|
|
14
14
|
}
|
|
15
|
-
export declare const Children:
|
|
15
|
+
export declare const Children: IStyledComponentBase<"web", Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, ButtonProps>> & string;
|
|
16
16
|
export declare const BaseButton: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
17
17
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
18
18
|
export declare function Caret(props: Omit<IconProps, 'name'>): React.JSX.Element;
|
|
@@ -9,8 +9,8 @@ export interface CardProps extends HTMLAttributes<HTMLElement> {
|
|
|
9
9
|
declare function Card({ flagged, status, children, ...others }: CardProps): React.JSX.Element;
|
|
10
10
|
declare namespace Card {
|
|
11
11
|
var Title: typeof CardTitle;
|
|
12
|
-
var Subtitle: import("styled-components").
|
|
13
|
-
var Separator: import("styled-components").
|
|
14
|
-
var Body: import("styled-components").
|
|
12
|
+
var Subtitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
13
|
+
var Separator: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<HTMLAttributes<HTMLHRElement>, HTMLHRElement>, never>> & string;
|
|
14
|
+
var Body: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
15
15
|
}
|
|
16
16
|
export default Card;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ReactNode, HTMLAttributes, default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IStyledComponentBase } from 'styled-components/dist/types';
|
|
3
|
+
import { FastOmit } from 'styled-components';
|
|
3
4
|
export interface CardTitleProps extends HTMLAttributes<HTMLElement> {
|
|
4
5
|
readonly leading?: ReactNode;
|
|
5
6
|
}
|
|
6
|
-
declare const Wrapper:
|
|
7
|
+
declare const Wrapper: IStyledComponentBase<"web", FastOmit<React.DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
8
|
declare function CardTitle({ children, leading, ...others }: CardTitleProps): React.JSX.Element;
|
|
8
9
|
export { Wrapper as CardTitleWrapper };
|
|
9
10
|
export default CardTitle;
|
|
@@ -2,9 +2,8 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { CalendarDate } from '../Calendar';
|
|
3
3
|
import { DatePickerProps } from './DatePicker.types';
|
|
4
4
|
import { TextFieldProps } from '../TextField';
|
|
5
|
-
import { StyledComponent } from 'styled-components';
|
|
6
5
|
export declare const formatter: any;
|
|
7
|
-
export declare const ClearButton:
|
|
6
|
+
export declare const ClearButton: any;
|
|
8
7
|
interface DateInputProps extends Omit<TextFieldProps, 'onChange'> {
|
|
9
8
|
readonly onChange: (date: CalendarDate) => void;
|
|
10
9
|
}
|
|
@@ -25,11 +25,11 @@ export interface DialogActionCancelProps extends Omit<ButtonProps, 'onClick' | '
|
|
|
25
25
|
declare function DialogActionCancel({ onCancel, children, ...others }: DialogActionCancelProps): React.JSX.Element;
|
|
26
26
|
declare function Dialog({ scale, open, ...others }: DialogProps): React.JSX.Element;
|
|
27
27
|
declare namespace Dialog {
|
|
28
|
-
var Header: import("styled-components").
|
|
29
|
-
var Body: import("styled-components").
|
|
28
|
+
var Header: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
|
|
29
|
+
var Body: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
30
30
|
var ActionConfirm: typeof DialogActionConfirm;
|
|
31
31
|
var ActionCancel: typeof DialogActionCancel;
|
|
32
32
|
var Actions: typeof DialogActions;
|
|
33
|
-
var Close:
|
|
33
|
+
var Close: any;
|
|
34
34
|
}
|
|
35
35
|
export default Dialog;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { StackProps } from '../Layout/Stack';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
export declare const DragDropFileWrapper:
|
|
6
|
-
export declare const DropZoneWrapper:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const FileListUL: StyledComponent<(props: StackProps) => React.JSX.Element, any, {}, never>;
|
|
12
|
-
export declare const Divider: StyledComponent<"div", any, {}, never>;
|
|
3
|
+
import { IStyledComponentBase } from 'styled-components/dist/types';
|
|
4
|
+
import { FastOmit } from 'styled-components';
|
|
5
|
+
export declare const DragDropFileWrapper: any;
|
|
6
|
+
export declare const DropZoneWrapper: IStyledComponentBase<"web", any> & string & Omit<(props: StackProps) => React.JSX.Element, keyof React.Component<any, {}, any>>;
|
|
7
|
+
export declare const HiddenInput: IStyledComponentBase<"web", FastOmit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
|
|
8
|
+
export declare const UploadIcon: any;
|
|
9
|
+
export declare const FileListUL: IStyledComponentBase<"web", any> & string & Omit<(props: StackProps) => React.JSX.Element, keyof React.Component<any, {}, any>>;
|
|
10
|
+
export declare const Divider: IStyledComponentBase<"web", FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -37,8 +37,8 @@ declare namespace Dropdown {
|
|
|
37
37
|
var Menu: React.ForwardRefExoticComponent<DropdownMenuProps & React.RefAttributes<HTMLDivElement>>;
|
|
38
38
|
var Section: typeof DropdownMenuSection;
|
|
39
39
|
var Item: typeof DropdownMenuItem;
|
|
40
|
-
var Separator: import("styled-components").
|
|
41
|
-
|
|
42
|
-
}
|
|
40
|
+
var Separator: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHRElement>, HTMLHRElement>, Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHRElement>, HTMLHRElement>, "ref"> & {
|
|
41
|
+
ref?: ((instance: HTMLHRElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLHRElement> | null | undefined;
|
|
42
|
+
}>, never>, never>> & string;
|
|
43
43
|
}
|
|
44
44
|
export default Dropdown;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { DropdownMenuItemProps, DropdownMenuProps, DropdownMenuSectionProps } from './Dropdown.types';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import { IStyledComponentBase, Substitute } from 'styled-components/dist/types';
|
|
4
|
+
import { FastOmit } from 'styled-components';
|
|
5
|
+
export declare const DropdownSeparator: IStyledComponentBase<"web", FastOmit<FastOmit<Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHRElement>, HTMLHRElement>, Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHRElement>, HTMLHRElement>, "ref"> & {
|
|
6
|
+
ref?: ((instance: HTMLHRElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLHRElement> | null | undefined;
|
|
7
|
+
}>, never>, never>> & string;
|
|
7
8
|
export declare const DropdownMenu: React.ForwardRefExoticComponent<DropdownMenuProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
9
|
export declare function DropdownMenuItem(props: DropdownMenuItemProps): React.JSX.Element;
|
|
9
10
|
export declare function DropdownMenuSection(props: DropdownMenuSectionProps): React.JSX.Element;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export declare const getSpace: (prop: string) => FlattenInterpolation<ThemedProps>;
|
|
1
|
+
import { RuleSet } from 'styled-components';
|
|
2
|
+
export declare const getSpace: (prop: string) => RuleSet;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { default as React, HTMLAttributes } from 'react';
|
|
2
2
|
import { Spacing, JustifyValue, AlignValue } from './Layout.types';
|
|
3
|
-
import {
|
|
3
|
+
import { IStyledComponentBase, Substitute } from 'styled-components/dist/types';
|
|
4
4
|
export interface StackProps extends HTMLAttributes<HTMLElement> {
|
|
5
5
|
readonly space?: Spacing;
|
|
6
6
|
readonly justify?: JustifyValue;
|
|
7
7
|
readonly align?: AlignValue;
|
|
8
8
|
readonly as?: string | React.ComponentType<any>;
|
|
9
9
|
}
|
|
10
|
-
export declare const StackContainer:
|
|
10
|
+
export declare const StackContainer: IStyledComponentBase<"web", Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
11
11
|
$space: StackProps["space"];
|
|
12
12
|
$justify: StackProps["justify"];
|
|
13
13
|
$align: StackProps["align"];
|
|
14
|
-
}
|
|
14
|
+
}>> & string;
|
|
15
15
|
/**
|
|
16
16
|
* Stack layout component.
|
|
17
17
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const Bar:
|
|
2
|
+
import { IStyledComponentBase, Substitute } from 'styled-components/dist/types';
|
|
3
|
+
export declare const Bar: IStyledComponentBase<"web", Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
4
4
|
width?: number;
|
|
5
5
|
velocity?: number;
|
|
6
|
-
}
|
|
6
|
+
}>> & string;
|
|
7
7
|
export interface LoadingBarProps {
|
|
8
8
|
readonly alignment?: 'left' | 'center' | 'right';
|
|
9
9
|
readonly title?: React.ReactNode;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { default as React, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IStyledComponentBase, Substitute } from 'styled-components/dist/types';
|
|
3
3
|
export interface LogoProps {
|
|
4
4
|
readonly url: string;
|
|
5
5
|
readonly className?: string;
|
|
6
6
|
readonly children?: ReactNode;
|
|
7
7
|
}
|
|
8
8
|
declare function Logo({ className, url, children }: LogoProps): React.JSX.Element;
|
|
9
|
-
declare const _default:
|
|
9
|
+
declare const _default: IStyledComponentBase<"web", Substitute<LogoProps, LogoProps>> & string & Omit<typeof Logo, keyof React.Component<any, {}, any>>;
|
|
10
10
|
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { default as React, ReactNode } from 'react';
|
|
2
2
|
import { MenuExpandableProps } from './MenuExpandable';
|
|
3
3
|
import { MenuLinkProps } from './MenuLink';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { IStyledComponentBase } from 'styled-components/dist/types';
|
|
5
|
+
import { FastOmit } from 'styled-components';
|
|
6
6
|
export interface MenuProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
7
7
|
readonly label?: string;
|
|
8
8
|
}
|
|
@@ -12,8 +12,8 @@ type MenuItemProps = {
|
|
|
12
12
|
readonly children?: ReactNode;
|
|
13
13
|
} & MenuLinkProps & MenuExpandableProps;
|
|
14
14
|
declare function MenuItem(props: MenuItemProps): React.JSX.Element;
|
|
15
|
-
declare const _default: string &
|
|
15
|
+
declare const _default: IStyledComponentBase<"web", FastOmit<MenuProps, never>> & string & Omit<typeof Menu, keyof React.Component<any, {}, any>> & {
|
|
16
16
|
Item: typeof MenuItem;
|
|
17
|
-
SubItem:
|
|
17
|
+
SubItem: IStyledComponentBase<"web", FastOmit<MenuLinkProps, never>> & string & Omit<({ url, ...props }: MenuLinkProps) => React.JSX.Element, keyof React.Component<any, {}, any>>;
|
|
18
18
|
};
|
|
19
19
|
export default _default;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { default as React, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IStyledComponentBase } from 'styled-components/dist/types';
|
|
3
|
+
import { FastOmit } from 'styled-components';
|
|
3
4
|
export interface MenuLinkProps extends React.HTMLAttributes<HTMLAnchorElement> {
|
|
4
5
|
readonly label: string;
|
|
5
6
|
readonly leading?: ReactNode;
|
|
@@ -7,5 +8,5 @@ export interface MenuLinkProps extends React.HTMLAttributes<HTMLAnchorElement> {
|
|
|
7
8
|
readonly url?: string;
|
|
8
9
|
}
|
|
9
10
|
declare function MenuLink({ url, ...props }: MenuLinkProps): React.JSX.Element;
|
|
10
|
-
declare const _default:
|
|
11
|
+
declare const _default: IStyledComponentBase<"web", FastOmit<MenuLinkProps, never>> & string & Omit<typeof MenuLink, keyof React.Component<any, {}, any>>;
|
|
11
12
|
export default _default;
|
|
@@ -5,15 +5,15 @@ export interface SideNavigationProps {
|
|
|
5
5
|
}
|
|
6
6
|
declare function SideNavigation({ className, children }: SideNavigationProps): React.JSX.Element;
|
|
7
7
|
declare namespace SideNavigation {
|
|
8
|
-
var Logo: import("styled-components").
|
|
9
|
-
var Menu:
|
|
8
|
+
var Logo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("./Logo/Logo").LogoProps, import("./Logo/Logo").LogoProps>> & string & Omit<({ className, url, children }: import("./Logo/Logo").LogoProps) => React.JSX.Element, keyof React.Component<any, {}, any>>;
|
|
9
|
+
var Menu: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("./Menu/Menu").MenuProps, never>> & string & Omit<({ label, children, ...props }: import("./Menu/Menu").MenuProps) => React.JSX.Element, keyof React.Component<any, {}, any>> & {
|
|
10
10
|
Item: (props: {
|
|
11
11
|
readonly active?: boolean;
|
|
12
12
|
readonly children?: ReactNode;
|
|
13
13
|
} & import("./Menu/MenuLink").MenuLinkProps & import("./Menu/MenuExpandable").MenuExpandableProps) => React.JSX.Element;
|
|
14
|
-
SubItem: import("styled-components").
|
|
14
|
+
SubItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("./Menu/MenuLink").MenuLinkProps, never>> & string & Omit<({ url, ...props }: import("./Menu/MenuLink").MenuLinkProps) => React.JSX.Element, keyof React.Component<any, {}, any>>;
|
|
15
15
|
};
|
|
16
16
|
var Separator: typeof import("./Separator").Separator;
|
|
17
|
-
var CloseButton:
|
|
17
|
+
var CloseButton: any;
|
|
18
18
|
}
|
|
19
19
|
export default SideNavigation;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { default as React, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IStyledComponentBase } from 'styled-components/dist/types';
|
|
3
|
+
import { FastOmit } from 'styled-components';
|
|
3
4
|
export interface StepsStepProps {
|
|
4
5
|
readonly id: number | string;
|
|
5
6
|
readonly className?: string;
|
|
6
7
|
readonly children?: ReactNode;
|
|
7
8
|
}
|
|
8
|
-
export declare const StepWrapper:
|
|
9
|
+
export declare const StepWrapper: IStyledComponentBase<"web", FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, never>> & string;
|
|
9
10
|
declare function StepsStep({ children, id, ...others }: StepsStepProps): React.JSX.Element;
|
|
10
11
|
export default StepsStep;
|
|
@@ -9,7 +9,7 @@ declare namespace Table {
|
|
|
9
9
|
var Row: typeof TableRow;
|
|
10
10
|
var Cell: typeof TableCell;
|
|
11
11
|
var HeadCell: typeof TableHeadCell;
|
|
12
|
-
var Foot: import("styled-components").
|
|
12
|
+
var Foot: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, never>> & string;
|
|
13
13
|
var Caption: typeof TableCaption;
|
|
14
14
|
var Selection: {
|
|
15
15
|
Actions: typeof TableSelectionActions;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const NoPaddingButton: StyledComponent<any, any, any, any>;
|
|
1
|
+
export declare const NoPaddingButton: any;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { TablePaginationActionsProps } from './TablePagination.types';
|
|
3
|
-
|
|
4
|
-
export declare const ActionIcon: StyledComponent<any, any, any, any>;
|
|
3
|
+
export declare const ActionIcon: any;
|
|
5
4
|
declare function TablePaginationActions({ variant, disabled, onPageChange, page, count, rowsPerPage, }: TablePaginationActionsProps): React.JSX.Element;
|
|
6
5
|
export default TablePaginationActions;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { ReactNode, DetailedHTMLProps, HTMLAttributes } from 'react';
|
|
2
2
|
import { TypographyOptions, TypographyVariants } from '../../styles/typography';
|
|
3
|
-
import {
|
|
3
|
+
import { IStyledComponentBase, Substitute } from 'styled-components/dist/types';
|
|
4
4
|
export interface TextProps {
|
|
5
5
|
readonly variant?: TypographyVariants;
|
|
6
6
|
readonly italic?: TypographyOptions['italic'];
|
|
7
7
|
readonly color?: TypographyOptions['color'];
|
|
8
8
|
readonly children?: ReactNode;
|
|
9
9
|
}
|
|
10
|
-
declare const Text:
|
|
10
|
+
declare const Text: IStyledComponentBase<"web", Substitute<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, TextProps>> & string;
|
|
11
11
|
export default Text;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { default as React, InputHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { ColorScheme } from '../../utils/types/ColorScheme';
|
|
3
3
|
import { default as Status } from '../../utils/types/Status';
|
|
4
|
-
import {
|
|
4
|
+
import { IStyledComponentBase, Substitute } from 'styled-components/dist/types';
|
|
5
|
+
import { FastOmit } from 'styled-components';
|
|
5
6
|
interface WithAdditionalProps {
|
|
6
7
|
readonly scale?: 'small' | 'default' | 'large';
|
|
7
8
|
readonly status?: Status;
|
|
@@ -13,7 +14,11 @@ export interface TextFieldProps extends InputHTMLAttributes<HTMLInputElement>, W
|
|
|
13
14
|
readonly className?: string;
|
|
14
15
|
readonly children?: ReactNode;
|
|
15
16
|
}
|
|
16
|
-
export declare const Leading:
|
|
17
|
-
|
|
17
|
+
export declare const Leading: IStyledComponentBase<"web", Substitute<Omit< FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, keyof WithAdditionalProps> & WithAdditionalProps, "ref"> & {
|
|
18
|
+
ref?: ((instance: HTMLSpanElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLSpanElement> | null | undefined;
|
|
19
|
+
}, WithAdditionalProps>> & string;
|
|
20
|
+
export declare const Trailing: IStyledComponentBase<"web", Substitute<Omit< FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, keyof WithAdditionalProps> & WithAdditionalProps, "ref"> & {
|
|
21
|
+
ref?: ((instance: HTMLSpanElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLSpanElement> | null | undefined;
|
|
22
|
+
}, WithAdditionalProps>> & string;
|
|
18
23
|
declare const TextField: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<HTMLInputElement>>;
|
|
19
24
|
export default TextField;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ToggleGroupOptionProps } from './ToggleGroup.types';
|
|
3
|
-
import {
|
|
3
|
+
import { IStyledComponentBase } from 'styled-components/dist/types';
|
|
4
|
+
import { FastOmit } from 'styled-components';
|
|
4
5
|
declare function Toggle({ value, children, disabled, ...others }: ToggleGroupOptionProps): React.JSX.Element;
|
|
5
|
-
declare const _default:
|
|
6
|
+
declare const _default: IStyledComponentBase<"web", FastOmit<ToggleGroupOptionProps, never>> & string & Omit<typeof Toggle, keyof React.Component<any, {}, any>>;
|
|
6
7
|
export default _default;
|
|
@@ -2,6 +2,6 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { ToggleGroupOptionProps, ToggleGroupProps } from './ToggleGroup.types';
|
|
3
3
|
declare function ToggleGroup(props: ToggleGroupProps): React.JSX.Element;
|
|
4
4
|
declare namespace ToggleGroup {
|
|
5
|
-
var Option: import("styled-components").
|
|
5
|
+
var Option: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<ToggleGroupOptionProps, never>> & string & Omit<({ value, children, disabled, ...others }: ToggleGroupOptionProps) => React.JSX.Element, keyof React.Component<any, {}, any>>;
|
|
6
6
|
}
|
|
7
7
|
export default ToggleGroup;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { default as React, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IStyledComponentBase, Substitute } from 'styled-components/dist/types';
|
|
3
3
|
export interface LogoProps {
|
|
4
4
|
readonly url: string;
|
|
5
5
|
readonly className?: string;
|
|
6
6
|
readonly children?: ReactNode;
|
|
7
7
|
}
|
|
8
8
|
declare function Logo({ url, className, children }: LogoProps): React.JSX.Element;
|
|
9
|
-
declare const _default:
|
|
9
|
+
declare const _default: IStyledComponentBase<"web", Substitute<LogoProps, LogoProps>> & string & Omit<typeof Logo, keyof React.Component<any, {}, any>>;
|
|
10
10
|
export default _default;
|
|
@@ -15,6 +15,6 @@ declare function Menu({ align, children }: MenuProps): React.JSX.Element;
|
|
|
15
15
|
declare namespace Menu {
|
|
16
16
|
var Item: typeof MenuItem;
|
|
17
17
|
var SubItem: typeof MenuDropdownSubItem;
|
|
18
|
-
var Separator: import("styled-components").
|
|
18
|
+
var Separator: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHRElement>, HTMLHRElement>, never>> & string;
|
|
19
19
|
}
|
|
20
20
|
export default Menu;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { default as React, ReactNode, HTMLAttributes } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
2
|
+
import { IStyledComponentBase } from 'styled-components/dist/types';
|
|
3
|
+
import { FastOmit } from 'styled-components';
|
|
4
|
+
export declare const MenuDropdown: any;
|
|
5
|
+
export declare const MenuDropdownSeparator: IStyledComponentBase<"web", FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHRElement>, HTMLHRElement>, never>> & string;
|
|
6
|
+
export declare const MenuDropdownLabel: IStyledComponentBase<"web", FastOmit<React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never>> & string;
|
|
6
7
|
interface MenuDropdownSubItemProps extends HTMLAttributes<HTMLElement> {
|
|
7
8
|
readonly label: string;
|
|
8
9
|
readonly url?: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IStyledComponentBase, Substitute } from 'styled-components/dist/types';
|
|
3
3
|
export interface OpenSideNavButtonProps {
|
|
4
4
|
readonly className?: string;
|
|
5
5
|
readonly onClick: () => void;
|
|
6
6
|
}
|
|
7
7
|
declare function OpenSideNavButton({ className, onClick }: OpenSideNavButtonProps): React.JSX.Element;
|
|
8
|
-
declare const _default:
|
|
8
|
+
declare const _default: IStyledComponentBase<"web", Substitute<OpenSideNavButtonProps, OpenSideNavButtonProps>> & string & Omit<typeof OpenSideNavButton, keyof React.Component<any, {}, any>>;
|
|
9
9
|
export default _default;
|
|
@@ -4,8 +4,8 @@ export interface TopNavigationProps {
|
|
|
4
4
|
}
|
|
5
5
|
declare function TopNavigation({ children }: TopNavigationProps): React.JSX.Element;
|
|
6
6
|
declare namespace TopNavigation {
|
|
7
|
-
var Logo: import("styled-components").
|
|
7
|
+
var Logo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("./Logo/Logo").LogoProps, import("./Logo/Logo").LogoProps>> & string & Omit<({ url, className, children }: import("./Logo/Logo").LogoProps) => React.JSX.Element, keyof React.Component<any, {}, any>>;
|
|
8
8
|
var Menu: typeof import("./Menu").Menu;
|
|
9
|
-
var OpenSideNavButton: import("styled-components").
|
|
9
|
+
var OpenSideNavButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("./OpenSideNavButton/OpenSideNavButton").OpenSideNavButtonProps, import("./OpenSideNavButton/OpenSideNavButton").OpenSideNavButtonProps>> & string & Omit<({ className, onClick }: import("./OpenSideNavButton/OpenSideNavButton").OpenSideNavButtonProps) => React.JSX.Element, keyof React.Component<any, {}, any>>;
|
|
10
10
|
}
|
|
11
11
|
export default TopNavigation;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { IStyledComponentBase } from 'styled-components/dist/types';
|
|
2
|
+
import { FastOmit } from 'styled-components';
|
|
3
|
+
import { DetailedHTMLProps, HTMLAttributes } from 'react';
|
|
4
|
+
export declare const VisuallyHidden: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|