@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.
@@ -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" | "error">, never>;
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, useDropdownProps {
23
+ export interface GenericDropdownProps extends DropdownProps, Omit<useDropdownReturn, 'expand' | 'collapse'> {
24
24
  }
25
25
  export type DropdownTriggerProps = ButtonProps & {
26
26
  outlined?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- export interface LoadingDotsProps {
2
+ export interface LoadingDotsProps extends React.HTMLAttributes<HTMLDivElement> {
3
3
  readonly size?: number;
4
4
  readonly variant?: 'dark' | 'light';
5
5
  }
@@ -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 const _default: any;
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
- export interface SwitchProps extends InputHTMLAttributes<HTMLInputElement>, WithAdditionalProps {
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;
@@ -2,5 +2,5 @@ export interface WithDirectionProps {
2
2
  direction?: 'horizontal' | 'vertical';
3
3
  }
4
4
  export interface WithActiveProps {
5
- active?: boolean;
5
+ $active?: boolean;
6
6
  }
@@ -1,10 +1,11 @@
1
- import { PropsWithChildren } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  import { TypographyOptions, TypographyVariants } from '../../styles/typography';
3
3
  import { StyledComponent } from 'styled-components';
4
- export type TextProps = PropsWithChildren<{
5
- variant?: TypographyVariants;
6
- italic?: TypographyOptions['italic'];
7
- color?: TypographyOptions['color'];
8
- }>;
9
- declare const _default: StyledComponent<"span", any, TextProps, never>;
10
- export default _default;
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;