asma-core-ui 2.13.0 → 2.13.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/asma-core-ui.es.js +7 -7
- package/dist/src/providers/SnackbarProvider.d.ts +4 -0
- package/dist/src/providers/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/src/components/custom/widget/widget-title/StyledWidgetTitle.stories.d.ts +0 -16
- package/dist/src/components/data-display/badge/StyledBadge.stories.d.ts +0 -14
- package/dist/src/components/data-display/icons/Icons.stories.d.ts +0 -18
- package/dist/src/components/data-display/typography/Typography.stories.d.ts +0 -11
- package/dist/src/components/data-grid/StyledDataGrid.stories.d.ts +0 -72
- package/dist/src/components/feedback/alert/StyledAlert.stories.d.ts +0 -15
- package/dist/src/components/feedback/dialog/StyledDialog.stories.d.ts +0 -18
- package/dist/src/components/feedback/snack-bar/StyledSnackbar.stories.d.ts +0 -13
- package/dist/src/components/inputs/input-field/StyledInputField.stories.d.ts +0 -22
- package/dist/src/components/inputs/rich-input/RichInput.stories.d.ts +0 -22
- package/dist/src/components/inputs/select/StyledSelect.stories.d.ts +0 -22
- package/dist/src/components/inputs/slider/StyledSlider.stories.d.ts +0 -19
- package/dist/src/components/inputs/switch/StyledSwitch.stories.d.ts +0 -10
- package/dist/src/components/inputs/text-field/StyledTextField.stories.d.ts +0 -14
- package/dist/src/components/navigation/menu/StyledMenu.stories.d.ts +0 -14
- package/dist/src/components/surfaces/accordion/StyledAccordion.stories.d.ts +0 -13
- package/dist/src/stories/Button.d.ts +0 -26
- package/dist/src/stories/Button.stories.d.ts +0 -18
- package/dist/src/stories/Header.d.ts +0 -10
- package/dist/src/stories/Header.stories.d.ts +0 -14
- package/dist/src/stories/Page.d.ts +0 -2
- package/dist/src/stories/Page.stories.d.ts +0 -13
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type { AlertColor } from '@mui/material';
|
|
2
2
|
import { type SnackbarProviderProps } from 'notistack';
|
|
3
|
+
/**
|
|
4
|
+
* @ignore
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
3
7
|
export declare const SnackbarProvider: (props: SnackbarProviderProps) => JSX.Element;
|
|
4
8
|
declare module 'notistack' {
|
|
5
9
|
interface VariantOverrides {
|
package/package.json
CHANGED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { StoryObj } from '@storybook/react';
|
|
3
|
-
declare const meta: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: import("react").FC<{
|
|
6
|
-
children?: import("react").ReactNode;
|
|
7
|
-
}>;
|
|
8
|
-
tags: string[];
|
|
9
|
-
argTypes: {};
|
|
10
|
-
args: {
|
|
11
|
-
children: JSX.Element;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export default meta;
|
|
15
|
-
type Story = StoryObj<typeof meta>;
|
|
16
|
-
export declare const WidgetTitle: Story;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare const meta: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: ({ color, ...props }: import("@mui/material").BadgeProps) => JSX.Element;
|
|
5
|
-
tags: string[];
|
|
6
|
-
args: {};
|
|
7
|
-
argTypes: {
|
|
8
|
-
children: {
|
|
9
|
-
description: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
export default meta;
|
|
14
|
-
export declare const BasicBadge: () => JSX.Element;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { StoryObj } from '@storybook/react';
|
|
3
|
-
declare const meta: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: import("react").FC<{
|
|
6
|
-
height?: number | undefined;
|
|
7
|
-
width?: number | undefined;
|
|
8
|
-
}>;
|
|
9
|
-
tags: string[];
|
|
10
|
-
argTypes: {};
|
|
11
|
-
args: {
|
|
12
|
-
width: number;
|
|
13
|
-
height: number;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export default meta;
|
|
17
|
-
type Story = StoryObj<typeof meta>;
|
|
18
|
-
export declare const Primary: Story;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { StoryObj } from '@storybook/react';
|
|
3
|
-
declare const meta: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: (props: import("@mui/material").TypographyProps) => JSX.Element;
|
|
6
|
-
tags: string[];
|
|
7
|
-
argTypes: {};
|
|
8
|
-
};
|
|
9
|
-
export default meta;
|
|
10
|
-
type Story = StoryObj<typeof meta>;
|
|
11
|
-
export declare const Typography: Story;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { StoryObj } from '@storybook/react';
|
|
3
|
-
declare const meta: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: {
|
|
6
|
-
(props: import("./types").IBaseStyledDataGrid): JSX.Element;
|
|
7
|
-
defaultProps: {
|
|
8
|
-
disableHeaderPin: boolean;
|
|
9
|
-
disableRowActions: boolean;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
tags: string[];
|
|
13
|
-
argTypes: {
|
|
14
|
-
disableHeaderPin: {
|
|
15
|
-
control: string;
|
|
16
|
-
defaultValue: boolean;
|
|
17
|
-
};
|
|
18
|
-
disableRowActions: {
|
|
19
|
-
control: string;
|
|
20
|
-
defaultValue: boolean;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
args: {
|
|
24
|
-
rows: {
|
|
25
|
-
id: number;
|
|
26
|
-
title: string;
|
|
27
|
-
description: string;
|
|
28
|
-
context: string;
|
|
29
|
-
deadline: string;
|
|
30
|
-
}[];
|
|
31
|
-
columns: ({
|
|
32
|
-
field: string;
|
|
33
|
-
headerName: string;
|
|
34
|
-
renderCell: () => JSX.Element;
|
|
35
|
-
width: number;
|
|
36
|
-
sortable: false;
|
|
37
|
-
flex?: undefined;
|
|
38
|
-
renderHeader?: undefined;
|
|
39
|
-
} | {
|
|
40
|
-
field: string;
|
|
41
|
-
headerName: string;
|
|
42
|
-
flex: number;
|
|
43
|
-
renderCell?: undefined;
|
|
44
|
-
width?: undefined;
|
|
45
|
-
sortable?: undefined;
|
|
46
|
-
renderHeader?: undefined;
|
|
47
|
-
} | {
|
|
48
|
-
field: string;
|
|
49
|
-
headerName: string;
|
|
50
|
-
renderHeader: () => JSX.Element;
|
|
51
|
-
renderCell: () => JSX.Element;
|
|
52
|
-
sortable: false;
|
|
53
|
-
width?: undefined;
|
|
54
|
-
flex?: undefined;
|
|
55
|
-
})[];
|
|
56
|
-
fixedColumns: string[];
|
|
57
|
-
checkboxSelection: true;
|
|
58
|
-
disableColumnSelector: true;
|
|
59
|
-
disableColumnFilter: true;
|
|
60
|
-
disableDensitySelector: true;
|
|
61
|
-
rowActions: () => JSX.Element[];
|
|
62
|
-
slots: {
|
|
63
|
-
columnSortedAscendingIcon: () => JSX.Element;
|
|
64
|
-
columnSortedDescendingIcon: () => JSX.Element;
|
|
65
|
-
};
|
|
66
|
-
disableHeaderPin: false;
|
|
67
|
-
disableRowActions: false;
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
export default meta;
|
|
71
|
-
type Story = StoryObj<typeof meta>;
|
|
72
|
-
export declare const DataGrid: Story;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { StoryObj } from '@storybook/react';
|
|
3
|
-
declare const meta: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: (props: import("@mui/material").AlertProps) => JSX.Element;
|
|
6
|
-
tags: string[];
|
|
7
|
-
argTypes: {};
|
|
8
|
-
args: {
|
|
9
|
-
severity: "success";
|
|
10
|
-
variant: "filled";
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
export default meta;
|
|
14
|
-
type Story = StoryObj<typeof meta>;
|
|
15
|
-
export declare const Primary: Story;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { StoryObj } from '@storybook/react';
|
|
3
|
-
declare const meta: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: ({ onCloseText, children, onClose, showCloseIcon, ...rest }: import("./StyledDialog").IStyledDialogProps) => JSX.Element;
|
|
6
|
-
tags: string[];
|
|
7
|
-
argTypes: {};
|
|
8
|
-
args: {
|
|
9
|
-
title: string;
|
|
10
|
-
open: true;
|
|
11
|
-
fullScreen: false;
|
|
12
|
-
onClose: () => void;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
export default meta;
|
|
16
|
-
type Story = StoryObj<typeof meta>;
|
|
17
|
-
export declare const Dialog: Story;
|
|
18
|
-
export declare const DialogExample: () => JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { StoryObj } from '@storybook/react';
|
|
3
|
-
declare const meta: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: ({ children, ...props }: import("@mui/material").SnackbarProps) => JSX.Element;
|
|
6
|
-
tags: string[];
|
|
7
|
-
argTypes: {};
|
|
8
|
-
args: {};
|
|
9
|
-
};
|
|
10
|
-
export default meta;
|
|
11
|
-
type Story = StoryObj<typeof meta>;
|
|
12
|
-
export declare const SnackBar: Story;
|
|
13
|
-
export declare const SnackbarExample: () => JSX.Element;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const meta: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: React.ForwardRefExoticComponent<Omit<import("@mui/material").InputBaseProps & {
|
|
5
|
-
helperText?: React.ReactNode;
|
|
6
|
-
label?: string | undefined;
|
|
7
|
-
FormControlProps?: import("@mui/material").FormControlProps | undefined;
|
|
8
|
-
FormHelperTextProps?: import("@mui/material").FormHelperTextProps | undefined;
|
|
9
|
-
InputLabelProps?: import("@mui/material").InputLabelProps | undefined;
|
|
10
|
-
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
-
tags: string[];
|
|
12
|
-
argTypes: {};
|
|
13
|
-
args: {
|
|
14
|
-
label: string;
|
|
15
|
-
helperText: string;
|
|
16
|
-
placeholder: string;
|
|
17
|
-
startAdornment: JSX.Element;
|
|
18
|
-
endAdornment: JSX.Element;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
export default meta;
|
|
22
|
-
export declare const InputField: () => JSX.Element;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type IRichInput } from './RichInput';
|
|
3
|
-
import type { StoryObj } from '@storybook/react';
|
|
4
|
-
declare const meta: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: import("react").FC<IRichInput>;
|
|
7
|
-
tags: string[];
|
|
8
|
-
argTypes: {};
|
|
9
|
-
args: {
|
|
10
|
-
placeholder: string;
|
|
11
|
-
value: string;
|
|
12
|
-
isRequired: false;
|
|
13
|
-
disabled: false;
|
|
14
|
-
label: string;
|
|
15
|
-
error: string;
|
|
16
|
-
is_error: false;
|
|
17
|
-
is_warning: false;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
export default meta;
|
|
21
|
-
type Story = StoryObj<typeof meta>;
|
|
22
|
-
export declare const RichInputExample: Story;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { StoryObj } from '@storybook/react';
|
|
3
|
-
import { StyledSelect } from './StyledSelect';
|
|
4
|
-
import type { SelectProps } from '@mui/material';
|
|
5
|
-
declare const meta: {
|
|
6
|
-
title: string;
|
|
7
|
-
component: (props: SelectProps<unknown> & {
|
|
8
|
-
reflink?: import("react").RefObject<unknown> | ((instance: unknown) => void) | null | undefined;
|
|
9
|
-
}) => JSX.Element;
|
|
10
|
-
tags: string[];
|
|
11
|
-
argTypes: {
|
|
12
|
-
children: {
|
|
13
|
-
description: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
args: {
|
|
17
|
-
children: JSX.Element[];
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
export default meta;
|
|
21
|
-
type Story = StoryObj<typeof StyledSelect>;
|
|
22
|
-
export declare const Select: Story;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare const meta: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: (props: import("@mui/material").SliderProps) => JSX.Element;
|
|
5
|
-
tags: string[];
|
|
6
|
-
argTypes: {};
|
|
7
|
-
args: {
|
|
8
|
-
size: "medium";
|
|
9
|
-
max: number;
|
|
10
|
-
min: number;
|
|
11
|
-
step: number;
|
|
12
|
-
marks: {
|
|
13
|
-
value: number;
|
|
14
|
-
label: string;
|
|
15
|
-
}[];
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
export default meta;
|
|
19
|
-
export declare const Slider: () => JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare const meta: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: (props: import("@mui/material").SwitchProps) => JSX.Element;
|
|
5
|
-
tags: string[];
|
|
6
|
-
argTypes: {};
|
|
7
|
-
args: {};
|
|
8
|
-
};
|
|
9
|
-
export default meta;
|
|
10
|
-
export declare const Switch: () => JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare const meta: {
|
|
3
|
-
title: string;
|
|
4
|
-
component: ({ FormControlProps, InputLabelProps, label, size, ...props }: import("@mui/material").TextFieldProps & {
|
|
5
|
-
FormControlProps?: import("@mui/material").FormControlProps | undefined;
|
|
6
|
-
}) => JSX.Element;
|
|
7
|
-
tags: string[];
|
|
8
|
-
argTypes: {};
|
|
9
|
-
args: {
|
|
10
|
-
label: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
export default meta;
|
|
14
|
-
export declare const TextField: () => JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { StoryObj } from '@storybook/react';
|
|
2
|
-
import { type MenuProps } from '@mui/material';
|
|
3
|
-
declare const meta: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: (props: MenuProps) => JSX.Element;
|
|
6
|
-
tags: string[];
|
|
7
|
-
argTypes: {};
|
|
8
|
-
args: {
|
|
9
|
-
open: false;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export default meta;
|
|
13
|
-
type Story = StoryObj<typeof meta>;
|
|
14
|
-
export declare const Menu: Story;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { StoryObj } from '@storybook/react';
|
|
3
|
-
import { StyledAccordion } from './StyledAccordion';
|
|
4
|
-
declare const meta: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: (props: import("@mui/material").AccordionProps) => JSX.Element;
|
|
7
|
-
tags: string[];
|
|
8
|
-
argTypes: {};
|
|
9
|
-
args: {};
|
|
10
|
-
};
|
|
11
|
-
export default meta;
|
|
12
|
-
type Story = StoryObj<typeof StyledAccordion>;
|
|
13
|
-
export declare const Accordion: Story;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export interface ButtonProps {
|
|
2
|
-
/**
|
|
3
|
-
* Is this the principal call to action on the page?
|
|
4
|
-
*/
|
|
5
|
-
primary?: boolean;
|
|
6
|
-
/**
|
|
7
|
-
* What background color to use
|
|
8
|
-
*/
|
|
9
|
-
backgroundColor?: string;
|
|
10
|
-
/**
|
|
11
|
-
* How large should the button be?
|
|
12
|
-
*/
|
|
13
|
-
size?: 'small' | 'medium' | 'large';
|
|
14
|
-
/**
|
|
15
|
-
* Button contents
|
|
16
|
-
*/
|
|
17
|
-
label: string;
|
|
18
|
-
/**
|
|
19
|
-
* Optional click handler
|
|
20
|
-
*/
|
|
21
|
-
onClick?: () => void;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Primary UI component for user interaction
|
|
25
|
-
*/
|
|
26
|
-
export declare const Button: ({ primary, size, backgroundColor, label, ...props }: ButtonProps) => JSX.Element;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { StoryObj } from '@storybook/react';
|
|
3
|
-
declare const meta: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: ({ primary, size, backgroundColor, label, ...props }: import("./Button").ButtonProps) => JSX.Element;
|
|
6
|
-
tags: string[];
|
|
7
|
-
argTypes: {
|
|
8
|
-
backgroundColor: {
|
|
9
|
-
control: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
export default meta;
|
|
14
|
-
type Story = StoryObj<typeof meta>;
|
|
15
|
-
export declare const Primary: Story;
|
|
16
|
-
export declare const Secondary: Story;
|
|
17
|
-
export declare const Large: Story;
|
|
18
|
-
export declare const Small: Story;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export type User = {
|
|
2
|
-
name: string;
|
|
3
|
-
};
|
|
4
|
-
export interface HeaderProps {
|
|
5
|
-
user?: User;
|
|
6
|
-
onLogin: () => void;
|
|
7
|
-
onLogout: () => void;
|
|
8
|
-
onCreateAccount: () => void;
|
|
9
|
-
}
|
|
10
|
-
export declare const Header: ({ user, onLogin, onLogout, onCreateAccount }: HeaderProps) => JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { StoryObj } from '@storybook/react';
|
|
3
|
-
declare const meta: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: ({ user, onLogin, onLogout, onCreateAccount }: import("./Header").HeaderProps) => JSX.Element;
|
|
6
|
-
tags: string[];
|
|
7
|
-
parameters: {
|
|
8
|
-
layout: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export default meta;
|
|
12
|
-
type Story = StoryObj<typeof meta>;
|
|
13
|
-
export declare const LoggedIn: Story;
|
|
14
|
-
export declare const LoggedOut: Story;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { StoryObj } from '@storybook/react';
|
|
3
|
-
declare const meta: {
|
|
4
|
-
title: string;
|
|
5
|
-
component: import("react").FC<{}>;
|
|
6
|
-
parameters: {
|
|
7
|
-
layout: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export default meta;
|
|
11
|
-
type Story = StoryObj<typeof meta>;
|
|
12
|
-
export declare const LoggedOut: Story;
|
|
13
|
-
export declare const LoggedIn: Story;
|