@canonical/maas-react-components 1.28.0 → 1.29.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/@canonical/maas-react-components.es.js +2577 -1600
- package/dist/@canonical/maas-react-components.umd.js +14 -14
- package/dist/index.d.ts +1 -0
- package/dist/maas-react-components.css +1 -0
- package/dist/src/lib/components/DynamicTable/DynamicTable.d.ts +6 -7
- package/dist/src/lib/components/DynamicTable/DynamicTable.stories.d.ts +1 -1
- package/dist/src/lib/components/DynamicTable/index.d.ts +1 -1
- package/dist/src/lib/components/FadeInDown/FadeInDown.d.ts +1 -2
- package/dist/src/lib/components/FadeInDown/index.d.ts +1 -1
- package/dist/src/lib/components/FileUpload/FileUpload.d.ts +2 -3
- package/dist/src/lib/components/FileUpload/FileUpload.stories.d.ts +1 -1
- package/dist/src/lib/components/FileUpload/hooks.d.ts +2 -2
- package/dist/src/lib/components/FileUpload/index.d.ts +1 -1
- package/dist/src/lib/components/GenericTable/ColumnHeader/ColumnHeader.d.ts +7 -0
- package/dist/src/lib/components/GenericTable/ColumnHeader/index.d.ts +1 -0
- package/dist/src/lib/components/GenericTable/GenericTable.d.ts +77 -0
- package/dist/src/lib/components/GenericTable/GenericTable.stories.d.ts +14 -0
- package/dist/src/lib/components/GenericTable/GenericTable.test.d.ts +1 -0
- package/dist/src/lib/components/GenericTable/GroupRowActions/GroupRowActions.d.ts +7 -0
- package/dist/src/lib/components/GenericTable/GroupRowActions/GroupRowActions.test.d.ts +1 -0
- package/dist/src/lib/components/GenericTable/GroupRowActions/index.d.ts +1 -0
- package/dist/src/lib/components/GenericTable/PaginationBar/ControlsBar/ControlsBar.d.ts +7 -0
- package/dist/src/lib/components/GenericTable/PaginationBar/ControlsBar/index.d.ts +1 -0
- package/dist/src/lib/components/GenericTable/PaginationBar/PaginationBar.d.ts +13 -0
- package/dist/src/lib/components/GenericTable/PaginationBar/index.d.ts +2 -0
- package/dist/src/lib/components/GenericTable/SortingIndicator/SortingIndicator.d.ts +7 -0
- package/dist/src/lib/components/GenericTable/SortingIndicator/index.d.ts +1 -0
- package/dist/src/lib/components/GenericTable/TableCheckbox/TableCheckbox.d.ts +12 -0
- package/dist/src/lib/components/GenericTable/TableCheckbox/TableCheckbox.test.d.ts +1 -0
- package/dist/src/lib/components/GenericTable/TableCheckbox/index.d.ts +1 -0
- package/dist/src/lib/components/GenericTable/index.d.ts +1 -0
- package/dist/src/lib/components/MultiSelect/MultiSelect.d.ts +1 -2
- package/dist/src/lib/components/MultiSelect/MultiSelect.stories.d.ts +1 -1
- package/dist/src/lib/components/MultiSelect/index.d.ts +1 -1
- package/dist/src/lib/components/NestedFormGroup/NestedFormGroup.d.ts +1 -2
- package/dist/src/lib/components/NestedFormGroup/NestedFormGroup.stories.d.ts +2 -2
- package/dist/src/lib/components/NestedFormGroup/index.d.ts +1 -1
- package/dist/src/lib/components/Pagination/Pagination.d.ts +1 -2
- package/dist/src/lib/components/Pagination/Pagination.stories.d.ts +2 -2
- package/dist/src/lib/components/Pagination/index.d.ts +1 -1
- package/dist/src/lib/components/Stepper/Stepper.d.ts +2 -1
- package/dist/src/lib/components/Stepper/Stepper.stories.d.ts +1 -1
- package/dist/src/lib/components/Stepper/index.d.ts +1 -1
- package/dist/src/lib/components/TableCaption/TableCaption.d.ts +1 -1
- package/dist/src/lib/components/TableCaption/TableCaption.stories.d.ts +1 -1
- package/dist/src/lib/components/TableCaption/index.d.ts +1 -1
- package/dist/src/lib/components/index.d.ts +7 -7
- package/dist/src/lib/elements/ExternalLink/ExternalLink.d.ts +2 -2
- package/dist/src/lib/elements/ExternalLink/ExternalLink.stories.d.ts +2 -2
- package/dist/src/lib/elements/ExternalLink/index.d.ts +1 -1
- package/dist/src/lib/elements/Meter/Meter.d.ts +0 -1
- package/dist/src/lib/elements/Meter/Meter.stories.d.ts +2 -2
- package/dist/src/lib/elements/Meter/index.d.ts +1 -1
- package/dist/src/lib/elements/Placeholder/Placeholder.d.ts +1 -2
- package/dist/src/lib/elements/Placeholder/Placeholder.stories.d.ts +1 -1
- package/dist/src/lib/elements/Placeholder/index.d.ts +1 -1
- package/dist/src/lib/elements/ProgressIndicator/ProgressIndicator.d.ts +0 -2
- package/dist/src/lib/elements/ProgressIndicator/index.d.ts +1 -1
- package/dist/src/lib/elements/index.d.ts +4 -4
- package/dist/src/lib/index.d.ts +4 -4
- package/dist/src/lib/sections/ContentSection/ContentSection.d.ts +2 -3
- package/dist/src/lib/sections/ContentSection/ContentSection.stories.d.ts +1 -1
- package/dist/src/lib/sections/ContentSection/index.d.ts +1 -1
- package/dist/src/lib/sections/FormSection/FormSection.d.ts +0 -1
- package/dist/src/lib/sections/FormSection/FormSection.stories.d.ts +4 -4
- package/dist/src/lib/sections/FormSection/index.d.ts +1 -1
- package/dist/src/lib/sections/InputGroup/InputGroup.stories.d.ts +2 -2
- package/dist/src/lib/sections/InputGroup/index.d.ts +1 -1
- package/dist/src/lib/sections/MainToolbar/MainToolbar.d.ts +1 -2
- package/dist/src/lib/sections/MainToolbar/MainToolbar.stories.d.ts +1 -1
- package/dist/src/lib/sections/MainToolbar/index.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/Banner/Banner.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/Banner/Banner.stories.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/CollapseToggle/CollapseToggle.d.ts +2 -1
- package/dist/src/lib/sections/Navigation/CollapseToggle/CollapseToggle.stories.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/Content/Content.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/Content/Content.stories.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/Controls/Controls.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/Controls/Controls.stories.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/Drawer/Drawer.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/Drawer/Drawer.stories.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/Footer/Footer.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/Footer/Footer.stories.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/Header/Header.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/Header/Header.stories.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/Icon/Icon.stories.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/Item/Item.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/Item/Item.stories.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/Label/Label.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/Label/Label.stories.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/Link/Link.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/List/List.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/List/List.stories.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/Logo/Logo.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/Logo/Logo.stories.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/LogoIcon/LogoIcon.d.ts +3 -3
- package/dist/src/lib/sections/Navigation/LogoIcon/LogoIcon.stories.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/LogoName/LogoName.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/LogoName/LogoName.stories.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/LogoTag/LogoTag.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/LogoTag/LogoTag.stories.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/LogoText/LogoText.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/MenuButton/MenuButton.d.ts +2 -2
- package/dist/src/lib/sections/Navigation/MenuButton/MenuButton.stories.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/Navigation.d.ts +20 -21
- package/dist/src/lib/sections/Navigation/Navigation.stories.d.ts +2 -2
- package/dist/src/lib/sections/Navigation/Text/Text.d.ts +1 -1
- package/dist/src/lib/sections/Navigation/index.d.ts +1 -1
- package/dist/src/lib/sections/index.d.ts +5 -5
- package/dist/src/lib/utils/formatBytes/formatBytes.stories.d.ts +1 -1
- package/dist/src/lib/utils/formatBytes/index.d.ts +1 -1
- package/dist/src/lib/utils/index.d.ts +1 -1
- package/dist/src/types.d.ts +1 -1
- package/package.json +41 -51
- package/dist/src/lib/sections/Navigation/Link/Link.stories.d.ts +0 -19
- package/dist/style.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './MultiSelect';
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { AriaAttributes, PropsWithChildren } from
|
|
2
|
-
import "./NestedFormGroup.scss";
|
|
1
|
+
import { AriaAttributes, PropsWithChildren } from 'react';
|
|
3
2
|
export declare const NestedFormGroup: ({ children, ...props }: PropsWithChildren & Pick<AriaAttributes, "aria-hidden">) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { NestedFormGroup } from
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { NestedFormGroup } from '.';
|
|
3
3
|
declare const meta: Meta<typeof NestedFormGroup>;
|
|
4
4
|
export default meta;
|
|
5
5
|
export declare const Example: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './NestedFormGroup';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Meta } from
|
|
2
|
-
import { Pagination } from
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { Pagination } from './Pagination';
|
|
3
3
|
declare const meta: Meta<typeof Pagination>;
|
|
4
4
|
export default meta;
|
|
5
5
|
export declare const Example: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './Pagination';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
type Props = {
|
|
2
3
|
/**
|
|
3
4
|
* A zero-based index of the currently active step
|
|
@@ -8,5 +9,5 @@ type Props = {
|
|
|
8
9
|
*/
|
|
9
10
|
items: string[];
|
|
10
11
|
};
|
|
11
|
-
export declare const Stepper: ({ activeStep, items }: Props) =>
|
|
12
|
+
export declare const Stepper: ({ activeStep, items }: Props) => ReactNode;
|
|
12
13
|
export default Stepper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './Stepper';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './TableCaption';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
1
|
+
export * from './NestedFormGroup';
|
|
2
|
+
export * from './Pagination';
|
|
3
|
+
export * from './Stepper';
|
|
4
|
+
export * from './FileUpload';
|
|
5
|
+
export * from './MultiSelect';
|
|
6
|
+
export * from './DynamicTable';
|
|
7
|
+
export * from './TableCaption';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LinkProps } from
|
|
2
|
-
import
|
|
1
|
+
import { LinkProps } from '@canonical/react-components';
|
|
2
|
+
import { LinkProps as RouterLinkProps } from 'react-router-dom';
|
|
3
3
|
type ExternalLinkProps = Pick<LinkProps, "children"> & Omit<RouterLinkProps, "children"> & {
|
|
4
4
|
to: string;
|
|
5
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './ExternalLink';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './Meter';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './Placeholder';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './ProgressIndicator';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
1
|
+
export * from './Meter';
|
|
2
|
+
export * from './ExternalLink';
|
|
3
|
+
export * from './ProgressIndicator';
|
|
4
|
+
export * from './Placeholder';
|
package/dist/src/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
1
|
+
export * from './elements';
|
|
2
|
+
export * from './sections';
|
|
3
|
+
export * from './components';
|
|
4
|
+
export * from './utils';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import "./ContentSection.scss";
|
|
3
1
|
import { AsProp } from '../../../types';
|
|
2
|
+
import * as React from "react";
|
|
4
3
|
interface CommonContentSectionProps extends React.PropsWithChildren {
|
|
5
4
|
className?: string;
|
|
6
5
|
}
|
|
@@ -18,7 +17,7 @@ export interface ContentSectionProps extends CommonContentSectionProps, React.HT
|
|
|
18
17
|
*/
|
|
19
18
|
export declare const ContentSection: {
|
|
20
19
|
({ children, className, as, variant, ...props }: ContentSectionProps & {
|
|
21
|
-
variant?: "narrow" | "wide"
|
|
20
|
+
variant?: "narrow" | "wide";
|
|
22
21
|
}): import("react/jsx-runtime").JSX.Element;
|
|
23
22
|
Title: ({ children, className, as, ...props }: ContentSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
23
|
Header: ({ children, className }: CommonContentSectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './ContentSection';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export interface FormSectionProps {
|
|
2
2
|
}
|
|
3
|
-
import "./FormSection.scss";
|
|
4
3
|
export declare const FormSection: {
|
|
5
4
|
({ children }: React.PropsWithChildren): import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
Title: ({ children }: React.PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { FormSection } from
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { FormSection } from '.';
|
|
3
3
|
export declare const Example: ({ children, }: {
|
|
4
|
-
label?: string
|
|
5
|
-
description?: string
|
|
4
|
+
label?: string;
|
|
5
|
+
description?: string;
|
|
6
6
|
children: React.ReactNode;
|
|
7
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
declare const meta: Meta<typeof FormSection>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './FormSection';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { InputGroup } from
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { InputGroup } from '.';
|
|
3
3
|
export declare const Example: () => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare const meta: Meta<typeof InputGroup>;
|
|
5
5
|
export default meta;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './InputGroup';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './MainToolbar';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
export interface NavigationCollapseToggleProps {
|
|
2
3
|
isCollapsed: boolean;
|
|
3
4
|
setIsCollapsed: (isCollapsed: boolean) => void;
|
|
4
5
|
className?: string;
|
|
5
6
|
}
|
|
6
|
-
export declare const CollapseToggle: ({ isCollapsed, setIsCollapsed, className, }: NavigationCollapseToggleProps) =>
|
|
7
|
+
export declare const CollapseToggle: ({ isCollapsed, setIsCollapsed, className, }: NavigationCollapseToggleProps) => ReactNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentProps, ElementType, ReactNode } from
|
|
1
|
+
import { ComponentProps, ElementType, ReactNode } from 'react';
|
|
2
2
|
import { AsProp } from '../../../../types';
|
|
3
3
|
export interface NavigationLogoProps extends ComponentProps<typeof Logo> {
|
|
4
4
|
children: ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactElement } from
|
|
1
|
+
import { ReactElement, SVGAttributes, HTMLAttributes } from 'react';
|
|
2
2
|
export interface NavigationLogoIconProps {
|
|
3
|
-
children: ReactElement
|
|
3
|
+
children: ReactElement<SVGAttributes<SVGElement> & HTMLAttributes<HTMLElement>>;
|
|
4
4
|
}
|
|
5
|
-
export declare const LogoIcon: ({ children }: NavigationLogoIconProps) => ReactElement<
|
|
5
|
+
export declare const LogoIcon: ({ children }: NavigationLogoIconProps) => ReactElement<SVGAttributes<SVGElement> & HTMLAttributes<HTMLElement>, string | import('react').JSXElementConstructor<any>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { ButtonProps } from
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ButtonProps } from '@canonical/react-components';
|
|
3
3
|
export interface NavigationMenuButtonProps {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
className?: string;
|