@loadsmart/loadsmart-ui 8.0.2 → 8.0.3
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/DragDropFile/styles.d.ts +3 -1
- package/dist/components/Dropdown/Dropdown.types.d.ts +1 -1
- package/dist/components/Loaders/LoadingDots.d.ts +1 -1
- package/dist/components/SideNavigation/Menu/Menu.d.ts +14 -2
- package/dist/components/SideNavigation/SideNavigation.d.ts +15 -1
- package/dist/components/Switch/Switch.d.ts +5 -2
- package/dist/components/Tabs/Tabs.types.d.ts +1 -1
- package/dist/components/Text/Text.d.ts +9 -8
- package/dist/index.js +135 -128
- package/dist/index.js.map +1 -1
- package/dist/testing/getInterpolatedStyles/getInterpolatedStyles.d.ts +4 -2
- package/dist/testing/index.js.map +1 -1
- package/dist/theming/index.d.ts +3 -2
- package/dist/theming/index.js.map +1 -1
- package/package.json +1 -2
- package/dist/utils/toolset/styledCompounds.d.ts +0 -12
|
@@ -3,7 +3,9 @@ import { StackProps } from '../Layout/Stack';
|
|
|
3
3
|
import { DropZoneProps } from './types';
|
|
4
4
|
import { StyledComponent } from 'styled-components';
|
|
5
5
|
export declare const DragDropFileWrapper: StyledComponent<any, any, any, any>;
|
|
6
|
-
export declare const DropZoneWrapper: StyledComponent<(props: StackProps) => React.JSX.Element, any, Pick<DropZoneProps, "disabled"
|
|
6
|
+
export declare const DropZoneWrapper: StyledComponent<(props: StackProps) => React.JSX.Element, any, Pick<DropZoneProps, "disabled"> & {
|
|
7
|
+
$error?: boolean;
|
|
8
|
+
}, never>;
|
|
7
9
|
export declare const HiddenInput: StyledComponent<"input", any, {}, never>;
|
|
8
10
|
export declare const UploadIcon: StyledComponent<any, any, any, any>;
|
|
9
11
|
export declare const FileListUL: StyledComponent<(props: StackProps) => React.JSX.Element, any, {}, never>;
|
|
@@ -20,7 +20,7 @@ export interface DropdownProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onC
|
|
|
20
20
|
expandDisabled?: boolean;
|
|
21
21
|
onBlur?: (event?: MouseEvent | TouchEvent | KeyboardEvent) => void;
|
|
22
22
|
}
|
|
23
|
-
export interface GenericDropdownProps extends DropdownProps,
|
|
23
|
+
export interface GenericDropdownProps extends DropdownProps, Omit<useDropdownReturn, 'expand' | 'collapse'> {
|
|
24
24
|
}
|
|
25
25
|
export type DropdownTriggerProps = ButtonProps & {
|
|
26
26
|
outlined?: boolean;
|
|
@@ -1,6 +1,18 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
1
|
+
import { PropsWithChildren, default as React } from 'react';
|
|
2
|
+
import { MenuExpandableProps } from './MenuExpandable';
|
|
3
|
+
import { MenuLinkProps } from './MenuLink';
|
|
4
|
+
import { StyledComponentBase, StyledComponent } from 'styled-components';
|
|
5
|
+
import { NonReactStatics } from 'hoist-non-react-statics';
|
|
2
6
|
export interface MenuProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
7
|
readonly label?: string;
|
|
4
8
|
}
|
|
5
|
-
declare
|
|
9
|
+
declare function Menu({ label, children, ...props }: MenuProps): React.JSX.Element;
|
|
10
|
+
type MenuItemProps = {
|
|
11
|
+
readonly active?: boolean;
|
|
12
|
+
} & PropsWithChildren<MenuLinkProps & MenuExpandableProps>;
|
|
13
|
+
declare function MenuItem(props: MenuItemProps): React.JSX.Element;
|
|
14
|
+
declare const _default: string & StyledComponentBase<typeof Menu, any, {}, never> & NonReactStatics<typeof Menu, {}> & {
|
|
15
|
+
Item: typeof MenuItem;
|
|
16
|
+
SubItem: StyledComponent<({ url, ...props }: MenuLinkProps) => React.JSX.Element, any, {}, never>;
|
|
17
|
+
};
|
|
6
18
|
export default _default;
|
|
@@ -6,7 +6,21 @@ export interface SideNavigationProps {
|
|
|
6
6
|
declare function SideNavigation({ className, children }: SideNavigationProps): React.JSX.Element;
|
|
7
7
|
declare namespace SideNavigation {
|
|
8
8
|
var Logo: import("styled-components").StyledComponent<({ className, url, children }: import("./Logo/Logo").LogoProps) => React.JSX.Element, any, import("./Logo/Logo").LogoProps, never>;
|
|
9
|
-
var Menu: any
|
|
9
|
+
var Menu: string & import("styled-components").StyledComponentBase<({ label, children, ...props }: import("./Menu/Menu").MenuProps) => React.JSX.Element, any, {}, never> & import("hoist-non-react-statics").NonReactStatics<({ label, children, ...props }: import("./Menu/Menu").MenuProps) => React.JSX.Element, {}> & {
|
|
10
|
+
Item: (props: {
|
|
11
|
+
readonly active?: boolean;
|
|
12
|
+
} & React.HTMLAttributes<HTMLAnchorElement> & {
|
|
13
|
+
readonly label: string;
|
|
14
|
+
readonly leading?: ReactNode;
|
|
15
|
+
readonly trailing?: ReactNode;
|
|
16
|
+
readonly url?: string;
|
|
17
|
+
} & React.HTMLAttributes<HTMLDivElement> & {
|
|
18
|
+
readonly label: string;
|
|
19
|
+
} & {
|
|
20
|
+
children?: ReactNode | undefined;
|
|
21
|
+
}) => React.JSX.Element;
|
|
22
|
+
SubItem: import("styled-components").StyledComponent<({ url, ...props }: import("./Menu/MenuLink").MenuLinkProps) => React.JSX.Element, any, {}, never>;
|
|
23
|
+
};
|
|
10
24
|
var Separator: typeof import("./Separator").Separator;
|
|
11
25
|
var CloseButton: import("styled-components").StyledComponent<any, any, any, any>;
|
|
12
26
|
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { ChangeEvent, InputHTMLAttributes, default as React } from 'react';
|
|
2
2
|
interface WithAdditionalProps {
|
|
3
|
-
readonly active?: boolean;
|
|
3
|
+
readonly $active?: boolean;
|
|
4
4
|
readonly onToggle?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
5
5
|
readonly scale?: 'default' | 'large';
|
|
6
6
|
}
|
|
7
|
-
|
|
7
|
+
interface SwitchInternalProps extends WithAdditionalProps {
|
|
8
|
+
readonly active?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface SwitchProps extends InputHTMLAttributes<HTMLInputElement>, SwitchInternalProps {
|
|
8
11
|
readonly className?: string;
|
|
9
12
|
}
|
|
10
13
|
declare function Switch({ active, className, disabled, name, onToggle, scale, ...others }: SwitchProps): React.JSX.Element;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
2
|
import { TypographyOptions, TypographyVariants } from '../../styles/typography';
|
|
3
3
|
import { StyledComponent } from 'styled-components';
|
|
4
|
-
export
|
|
5
|
-
variant?: TypographyVariants;
|
|
6
|
-
italic?: TypographyOptions['italic'];
|
|
7
|
-
color?: TypographyOptions['color'];
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
export interface TextProps {
|
|
5
|
+
readonly variant?: TypographyVariants;
|
|
6
|
+
readonly italic?: TypographyOptions['italic'];
|
|
7
|
+
readonly color?: TypographyOptions['color'];
|
|
8
|
+
readonly children?: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
declare const Text: StyledComponent<"span", any, TextProps, never>;
|
|
11
|
+
export default Text;
|