@loadsmart/loadsmart-ui 8.0.0-beta.1 → 8.0.0
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 +2 -2
- package/dist/components/Breadcrumbs/Breadcrumbs.stories.d.ts +1 -1
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Calendar/Calendar.stories.d.ts +1 -1
- package/dist/components/Calendar/Pickers/DayPicker.d.ts +1 -1
- package/dist/components/Calendar/Pickers/PickerButton.d.ts +2 -4
- package/dist/components/Card/Card.d.ts +4 -4
- package/dist/components/Card/Card.stories.d.ts +5 -5
- package/dist/components/Card/CardTitle.d.ts +2 -2
- package/dist/components/DatePicker/DatePicker.d.ts +1 -1
- package/dist/components/DatePicker/DatePicker.stories.d.ts +3 -3
- package/dist/components/DatePicker/DateRangePicker.stories.d.ts +3 -3
- package/dist/components/Dialog/Dialog.d.ts +5 -3
- package/dist/components/DragDropFile/styles.d.ts +7 -7
- package/dist/components/Drawer/Drawer.stories.d.ts +3 -3
- package/dist/components/Dropdown/Dropdown.d.ts +3 -3
- package/dist/components/Dropdown/Dropdown.stories.d.ts +5 -5
- package/dist/components/Dropdown/DropdownMenu.d.ts +3 -3
- package/dist/components/Dropdown/DropdownTrigger.d.ts +1 -1
- package/dist/components/HighlightMatch/HighlightMatch.stories.d.ts +2 -2
- package/dist/components/IconFactory/IconFactory.d.ts +1 -1
- package/dist/components/IconFactory/IconFactory.stories.d.ts +2 -2
- package/dist/components/Layout/Stack.d.ts +2 -2
- package/dist/components/Loaders/LoadingBar.d.ts +2 -2
- package/dist/components/Loaders/LoadingBar.stories.d.ts +2 -2
- package/dist/components/Loaders/LoadingDots.stories.d.ts +3 -3
- package/dist/components/Loaders/Spinner.stories.d.ts +2 -2
- package/dist/components/Modal/Modal.d.ts +3 -1
- package/dist/components/Pagination/Pagination.stories.d.ts +2 -2
- package/dist/components/Popover/Popover.stories.d.ts +2 -2
- package/dist/components/Select/Select.stories.d.ts +16 -16
- package/dist/components/SideNavigation/Logo/Logo.d.ts +2 -7
- package/dist/components/SideNavigation/Menu/Menu.d.ts +2 -7
- package/dist/components/SideNavigation/Menu/MenuLink.d.ts +1 -6
- package/dist/components/SideNavigation/SideNavigation.d.ts +4 -14
- package/dist/components/Steps/Steps.stories.d.ts +2 -2
- package/dist/components/Steps/StepsStep.d.ts +2 -2
- package/dist/components/Switch/Switch.stories.d.ts +2 -2
- package/dist/components/Table/Table.d.ts +5 -6
- package/dist/components/Table/Table.types.d.ts +1 -1
- package/dist/components/TablePagination/TablePagination.stories.d.ts +2 -2
- package/dist/components/TablePagination/TablePagination.styles.d.ts +4 -5
- package/dist/components/TablePagination/TablePaginationActions.d.ts +5 -2
- package/dist/components/Tag/Tag.stories.d.ts +24 -3
- package/dist/components/Text/Text.d.ts +1 -1
- package/dist/components/Text/Text.stories.d.ts +2 -2
- package/dist/components/TextField/TextField.d.ts +2 -6
- package/dist/components/ToggleGroup/Toggle.d.ts +1 -2
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +1 -2
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +3 -3
- package/dist/components/TopNavigation/Logo/Logo.d.ts +2 -7
- package/dist/components/TopNavigation/Menu/Menu.d.ts +2 -2
- package/dist/components/TopNavigation/Menu/MenuItemDropdown.d.ts +4 -4
- package/dist/components/TopNavigation/OpenSideNavButton/OpenSideNavButton.d.ts +1 -2
- package/dist/components/TopNavigation/TopNavigation.d.ts +3 -8
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +1 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.stories.d.ts +2 -4
- package/dist/hooks/useFocusTrap/useFocusTrap.stories.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/styles/typography.d.ts +2 -4
- package/package.json +16 -15
- package/dist/addons/Theme/register.d.ts +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export declare const NoPaddingButton: import('styled-components
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}>, never>, never>> & string & Omit<import('react').ForwardRefExoticComponent<import('../Button').ButtonProps & import('react').RefAttributes<HTMLButtonElement>>, keyof import('react').Component<any, {}, any>>;
|
|
1
|
+
export declare const NoPaddingButton: import('styled-components').StyledComponent<import('react').ForwardRefExoticComponent<import('../Button').ButtonProps & import('react').RefAttributes<HTMLButtonElement>>, any, {
|
|
2
|
+
variant: "tertiary";
|
|
3
|
+
scale: "small";
|
|
4
|
+
}, "scale" | "variant">;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { TablePaginationActionsProps } from './TablePagination.types';
|
|
3
3
|
import { IconProps } from '../Icon';
|
|
4
|
-
export declare const ActionIcon: import('styled-components
|
|
4
|
+
export declare const ActionIcon: import('styled-components').StyledComponent<React.ComponentType<import('../IconFactory').IconProps<import('../IconFactory').IconMapping>>, any, {
|
|
5
|
+
color: "neutral-darker";
|
|
6
|
+
size: "16";
|
|
7
|
+
} & IconProps & {
|
|
5
8
|
rotate?: number;
|
|
6
|
-
}
|
|
9
|
+
}, "size" | "color">;
|
|
7
10
|
declare function TablePaginationActions({ variant, disabled, onPageChange, page, count, rowsPerPage, }: TablePaginationActionsProps): JSX.Element;
|
|
8
11
|
export default TablePaginationActions;
|
|
@@ -1,7 +1,28 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { TagProps } from './Tag';
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { default as Tag, TagProps } from './Tag';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: typeof Tag;
|
|
6
|
+
argTypes: {
|
|
7
|
+
variant: {
|
|
8
|
+
control: {
|
|
9
|
+
type: "select";
|
|
10
|
+
options: string[];
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
size: {
|
|
14
|
+
control: {
|
|
15
|
+
type: "select";
|
|
16
|
+
options: string[];
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
leading: {
|
|
20
|
+
control: {
|
|
21
|
+
type: "text";
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
5
26
|
export default _default;
|
|
6
27
|
export declare function Default(args: TagProps): JSX.Element;
|
|
7
28
|
export declare namespace Default {
|
|
@@ -5,5 +5,5 @@ export type TextProps = PropsWithChildren<{
|
|
|
5
5
|
italic?: TypographyOptions['italic'];
|
|
6
6
|
color?: TypographyOptions['color'];
|
|
7
7
|
}>;
|
|
8
|
-
declare const _default: import('styled-components
|
|
8
|
+
declare const _default: import('styled-components').StyledComponent<"span", any, TextProps, never>;
|
|
9
9
|
export default _default;
|
|
@@ -3,5 +3,5 @@ import { Text } from '.';
|
|
|
3
3
|
import { TextProps } from './Text';
|
|
4
4
|
declare const meta: Meta<typeof Text>;
|
|
5
5
|
export default meta;
|
|
6
|
-
type
|
|
7
|
-
export declare const Playground:
|
|
6
|
+
type StoryFn = StoryObj<TextProps>;
|
|
7
|
+
export declare const Playground: StoryFn;
|
|
@@ -12,11 +12,7 @@ export interface TextFieldProps extends InputHTMLAttributes<HTMLInputElement>, W
|
|
|
12
12
|
className?: string;
|
|
13
13
|
children?: ReactNode;
|
|
14
14
|
}
|
|
15
|
-
export declare const Leading: import('styled-components
|
|
16
|
-
|
|
17
|
-
}, WithAdditionalProps>> & string;
|
|
18
|
-
export declare const Trailing: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('styled-components').FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, keyof WithAdditionalProps> & WithAdditionalProps, "ref"> & {
|
|
19
|
-
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;
|
|
20
|
-
}, WithAdditionalProps>> & string;
|
|
15
|
+
export declare const Leading: import('styled-components').StyledComponent<"span", any, WithAdditionalProps, never>;
|
|
16
|
+
export declare const Trailing: import('styled-components').StyledComponent<"span", any, WithAdditionalProps, never>;
|
|
21
17
|
declare const TextField: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<HTMLInputElement>>;
|
|
22
18
|
export default TextField;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { ToggleGroupOptionProps } from './ToggleGroup.types';
|
|
3
2
|
declare function Toggle({ value, children, disabled, ...others }: ToggleGroupOptionProps): JSX.Element;
|
|
4
|
-
declare const _default: import('styled-components
|
|
3
|
+
declare const _default: import('styled-components').StyledComponent<typeof Toggle, any, {}, never>;
|
|
5
4
|
export default _default;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { ToggleGroupOptionProps, ToggleGroupProps } from './ToggleGroup.types';
|
|
3
2
|
declare function ToggleGroup(props: ToggleGroupProps): JSX.Element;
|
|
4
3
|
declare namespace ToggleGroup {
|
|
5
|
-
var Option: import("styled-components
|
|
4
|
+
var Option: import("styled-components").StyledComponent<({ value, children, disabled, ...others }: ToggleGroupOptionProps) => JSX.Element, any, {}, never>;
|
|
6
5
|
}
|
|
7
6
|
export default ToggleGroup;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StoryFn, Meta } from '@storybook/react';
|
|
2
2
|
import { ToggleGroupProps } from './ToggleGroup.types';
|
|
3
3
|
declare const _default: Meta;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Playground:
|
|
6
|
-
export declare const WithIcon:
|
|
5
|
+
export declare const Playground: StoryFn<ToggleGroupProps>;
|
|
6
|
+
export declare const WithIcon: StoryFn<ToggleGroupProps>;
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
2
|
export type LogoProps = PropsWithChildren<{
|
|
3
3
|
url: string;
|
|
4
4
|
className?: string;
|
|
5
5
|
}>;
|
|
6
6
|
declare function Logo({ url, className, children }: LogoProps): JSX.Element;
|
|
7
|
-
declare const _default: import('styled-components
|
|
8
|
-
url: string;
|
|
9
|
-
className?: string;
|
|
10
|
-
} & {
|
|
11
|
-
children?: React.ReactNode | undefined;
|
|
12
|
-
}, LogoProps>> & string & Omit<typeof Logo, keyof React.Component<any, {}, any>>;
|
|
7
|
+
declare const _default: import('styled-components').StyledComponent<typeof Logo, any, LogoProps, never>;
|
|
13
8
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropsWithChildren, ReactNode, HTMLAttributes } from 'react';
|
|
2
2
|
import { MenuDropdownSubItem } from './MenuItemDropdown';
|
|
3
3
|
type MenuItemProps = HTMLAttributes<HTMLElement> & PropsWithChildren<{
|
|
4
4
|
label: string;
|
|
@@ -13,6 +13,6 @@ declare function Menu(props: MenuProps): JSX.Element;
|
|
|
13
13
|
declare namespace Menu {
|
|
14
14
|
var Item: typeof MenuItem;
|
|
15
15
|
var SubItem: typeof MenuDropdownSubItem;
|
|
16
|
-
var Separator: import("styled-components
|
|
16
|
+
var Separator: import("styled-components").StyledComponent<"hr", any, {}, never>;
|
|
17
17
|
}
|
|
18
18
|
export default Menu;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropsWithChildren, ReactNode, HTMLAttributes } from 'react';
|
|
2
2
|
import { Dropdown } from '../../Dropdown';
|
|
3
|
-
export declare const MenuDropdown: import('styled-components
|
|
4
|
-
export declare const MenuDropdownSeparator: import('styled-components
|
|
5
|
-
export declare const MenuDropdownLabel: import('styled-components
|
|
3
|
+
export declare const MenuDropdown: import('styled-components').StyledComponent<typeof Dropdown, any, {}, never>;
|
|
4
|
+
export declare const MenuDropdownSeparator: import('styled-components').StyledComponent<"hr", any, {}, never>;
|
|
5
|
+
export declare const MenuDropdownLabel: import('styled-components').StyledComponent<"label", any, import('../../../theming').ThemedProps, never>;
|
|
6
6
|
type MenuDropdownSubItemProps = HTMLAttributes<HTMLElement> & {
|
|
7
7
|
label: string;
|
|
8
8
|
url?: string;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
export type OpenSideNavButtonProps = {
|
|
3
2
|
className?: string;
|
|
4
3
|
onClick: () => void;
|
|
5
4
|
};
|
|
6
5
|
declare function OpenSideNavButton({ className, onClick }: OpenSideNavButtonProps): JSX.Element;
|
|
7
|
-
declare const _default: import('styled-components
|
|
6
|
+
declare const _default: import('styled-components').StyledComponent<typeof OpenSideNavButton, any, OpenSideNavButtonProps, never>;
|
|
8
7
|
export default _default;
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
2
|
export interface TopNavigationProps {
|
|
3
3
|
children?: ReactNode;
|
|
4
4
|
}
|
|
5
5
|
declare function TopNavigation({ children }: TopNavigationProps): JSX.Element;
|
|
6
6
|
declare namespace TopNavigation {
|
|
7
|
-
var Logo: import("styled-components
|
|
8
|
-
url: string;
|
|
9
|
-
className?: string;
|
|
10
|
-
} & {
|
|
11
|
-
children?: ReactNode | undefined;
|
|
12
|
-
}, import("./Logo/Logo").LogoProps>> & string & Omit<({ url, className, children }: import("./Logo/Logo").LogoProps) => JSX.Element, keyof React.Component<any, {}, any>>;
|
|
7
|
+
var Logo: import("styled-components").StyledComponent<({ url, className, children }: import("./Logo/Logo").LogoProps) => JSX.Element, any, import("./Logo/Logo").LogoProps, never>;
|
|
13
8
|
var Menu: typeof import("./Menu").Menu;
|
|
14
|
-
var OpenSideNavButton: import("styled-components
|
|
9
|
+
var OpenSideNavButton: import("styled-components").StyledComponent<({ className, onClick }: import("./OpenSideNavButton/OpenSideNavButton").OpenSideNavButtonProps) => JSX.Element, any, import("./OpenSideNavButton/OpenSideNavButton").OpenSideNavButtonProps, never>;
|
|
15
10
|
}
|
|
16
11
|
export default TopNavigation;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VisuallyHidden: import('styled-components
|
|
1
|
+
export declare const VisuallyHidden: import('styled-components').StyledComponent<"span", any, {}, never>;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { default as Docs } from './VisuallyHidden.mdx';
|
|
3
1
|
declare const _default: {
|
|
4
2
|
title: string;
|
|
5
|
-
component: import('styled-components
|
|
3
|
+
component: import('styled-components').StyledComponent<"span", any, {}, never>;
|
|
6
4
|
parameters: {
|
|
7
5
|
docs: {
|
|
8
|
-
page:
|
|
6
|
+
page: any;
|
|
9
7
|
};
|
|
10
8
|
};
|
|
11
9
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StoryFn, Meta } from '@storybook/react';
|
|
2
2
|
import { useFocusTrapProps } from './useFocusTrap';
|
|
3
3
|
declare const _default: Meta;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Playground:
|
|
6
|
-
export declare const TabTrap:
|
|
7
|
-
export declare const ArrowTrap:
|
|
5
|
+
export declare const Playground: StoryFn<useFocusTrapProps>;
|
|
6
|
+
export declare const TabTrap: StoryFn<useFocusTrapProps>;
|
|
7
|
+
export declare const ArrowTrap: StoryFn<useFocusTrapProps>;
|
package/dist/index.js
CHANGED
|
@@ -6529,8 +6529,8 @@ function MenuExpandable({
|
|
|
6529
6529
|
toggle,
|
|
6530
6530
|
height
|
|
6531
6531
|
} = useHeightExpansionToggler(expandableItemsRef);
|
|
6532
|
-
return /* @__PURE__ */ React__default.createElement("div", { ...props, role: "none" }, /* @__PURE__ */ React__default.createElement(MenuBaseItem, { onClick: toggle, label, trailing: /* @__PURE__ */ React__default.createElement(IconWrapper$1, null, /* @__PURE__ */ React__default.createElement(StyledIcon, { $expanded: expanded, name: "chevron-down", size: 16 })), "aria-haspopup": "true", "aria-expanded": expanded }), /* @__PURE__ */ React__default.createElement(ExpandableItems, { $height: height, role: "menu" }, /* @__PURE__ */ React__default.createElement(ItemsWrapper, { $expanded: expanded, ref: expandableItemsRef, role: "presentation" }, React__default.Children.map(children, (child) => {
|
|
6533
|
-
if (!child) return
|
|
6532
|
+
return /* @__PURE__ */ React__default.createElement("div", { ...props, role: "none" }, /* @__PURE__ */ React__default.createElement(MenuBaseItem, { onClick: toggle, label, trailing: /* @__PURE__ */ React__default.createElement(IconWrapper$1, null, /* @__PURE__ */ React__default.createElement(StyledIcon, { $expanded: expanded, name: "chevron-down", size: 16 })), "aria-haspopup": "true", "aria-expanded": expanded }), /* @__PURE__ */ React__default.createElement(ExpandableItems, { $height: height, role: "menu" }, /* @__PURE__ */ React__default.createElement(ItemsWrapper, { $expanded: expanded, ref: expandableItemsRef, role: "presentation" }, /* @__PURE__ */ React__default.createElement(Fragment, null, React__default.Children.map(children, (child) => {
|
|
6533
|
+
if (!child) return null;
|
|
6534
6534
|
if (typeof child === "object" && "type" in child) {
|
|
6535
6535
|
return React__default.cloneElement(child, {
|
|
6536
6536
|
key: label,
|
|
@@ -6539,7 +6539,7 @@ function MenuExpandable({
|
|
|
6539
6539
|
});
|
|
6540
6540
|
}
|
|
6541
6541
|
return child;
|
|
6542
|
-
}))));
|
|
6542
|
+
})))));
|
|
6543
6543
|
}
|
|
6544
6544
|
function styledCompounds(Parent, compounds) {
|
|
6545
6545
|
Object.keys(compounds).forEach((key) => {
|
|
@@ -7150,7 +7150,7 @@ function TablePickerItem({
|
|
|
7150
7150
|
children,
|
|
7151
7151
|
...props
|
|
7152
7152
|
}) {
|
|
7153
|
-
return /* @__PURE__ */ React__default.createElement(Dropdown.Item, { leading: checked ? /* @__PURE__ */ React__default.createElement(Icon$2, { name: "check", size: "16", color: "neutral-darker" }) : /* @__PURE__ */ React__default.createElement(Layout.Box, { padding: "s" }), role: "option", "aria-selected": checked ? "true" : "false", ...props }, children || option && (option.option || option.title || option.key) || "Column");
|
|
7153
|
+
return /* @__PURE__ */ React__default.createElement(Dropdown.Item, { leading: checked ? /* @__PURE__ */ React__default.createElement(Icon$2, { name: "check", size: "16", color: "neutral-darker" }) : /* @__PURE__ */ React__default.createElement(Layout.Box, { padding: "s" }), role: "option", "aria-selected": checked ? "true" : "false", ...props }, children || option && (option.option || option.title || (typeof option.key !== "symbol" ? option.key : null)) || "Column");
|
|
7154
7154
|
}
|
|
7155
7155
|
const TriggerIcon = styled(Icon$2).attrs({
|
|
7156
7156
|
name: "dots-horizontal",
|