@telicent-oss/ds 0.0.4-rc.12 → 0.1.0-rc3
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/ds.js +17009 -17986
- package/dist/ds.umd.cjs +119 -119
- package/dist/src/export.d.ts +6 -19
- package/dist/src/v1/components/data-display/Chip/Chip.d.ts +6 -0
- package/dist/src/v1/components/data-display/FontAwesomeIcons/DownArrowIcon.d.ts +6 -0
- package/dist/src/v1/components/data-display/FontAwesomeIcons/SearchIcon.d.ts +6 -0
- package/dist/src/v1/components/data-display/FontAwesomeIcons/index.d.ts +2 -0
- package/dist/src/v1/components/data-display/Icons/DataServiceIcon.d.ts +5 -0
- package/dist/src/v1/components/data-display/Icons/DataSetIcon.d.ts +5 -0
- package/dist/src/v1/components/data-display/Icons/TelicentMark.d.ts +9 -0
- package/dist/src/v1/components/data-display/Icons/UserIcon.d.ts +5 -0
- package/dist/src/v1/components/data-display/Icons/index.d.ts +3 -0
- package/dist/src/v1/components/data-display/Text/Heading.stories.d.ts +26 -0
- package/dist/src/v1/components/data-display/Text/Text.d.ts +42 -0
- package/dist/src/v1/components/data-display/Text/Text.stories.d.ts +19 -0
- package/dist/src/v1/components/data-display/TreeView/TreeView.d.ts +102 -0
- package/dist/src/v1/components/data-display/TreeView/TreeView.stories.d.ts +21 -0
- package/dist/src/v1/components/data-display/UserProfile/UserProfile.d.ts +7 -0
- package/dist/src/v1/components/data-display/UserStatus/UserStatus.d.ts +7 -0
- package/dist/src/v1/components/data-display/index.d.ts +12 -0
- package/dist/src/{v2/components → v1/components/feedback}/LinearProgress/LinearProgress.d.ts +1 -5
- package/dist/src/{v2/components → v1/components/feedback}/LinearProgress/LinearProgress.stories.d.ts +1 -4
- package/dist/src/v1/components/feedback/index.d.ts +2 -0
- package/dist/src/v1/components/inputs/Button/Button.d.ts +8 -0
- package/dist/src/v1/components/inputs/Button/PrimaryButton.d.ts +6 -0
- package/dist/src/v1/components/inputs/Button/SecondaryButton.d.ts +6 -0
- package/dist/src/v1/components/inputs/SearchBox/SearchBox.d.ts +46 -0
- package/dist/src/v1/components/inputs/SearchBox/SearchBox.stories.d.ts +22 -0
- package/dist/src/v1/components/inputs/index.d.ts +4 -0
- package/dist/src/v1/components/layout/AppChrome.d.ts +6 -0
- package/dist/src/v1/components/layout/Container/Container.d.ts +15 -0
- package/dist/src/v1/components/layout/Container/Container.stories.d.ts +15 -0
- package/dist/src/v1/components/layout/FlexBox.d.ts +5 -0
- package/dist/src/v1/components/layout/FlexGrid.d.ts +7 -0
- package/dist/src/v1/components/layout/index.d.ts +4 -0
- package/dist/src/v1/components/surfaces/AppBar/AppBar.d.ts +11 -0
- package/dist/src/v1/components/surfaces/AppBar/AppBar.stories.d.ts +9 -0
- package/dist/src/v1/components/surfaces/Card/Card.d.ts +11 -0
- package/dist/src/v1/components/surfaces/Card/Card.stories.d.ts +7 -0
- package/dist/src/v1/components/surfaces/Card/CardActions.d.ts +4 -0
- package/dist/src/v1/components/surfaces/Card/CardContent.d.ts +4 -0
- package/dist/src/v1/components/surfaces/Card/index.d.ts +4 -0
- package/dist/src/v1/components/surfaces/index.d.ts +2 -0
- package/dist/src/v1/theme/UIThemeProvider.d.ts +8 -0
- package/dist/src/v1/theme/colors/data-navy.d.ts +9 -0
- package/dist/src/v1/theme/colors/theme-colors.d.ts +12 -0
- package/dist/src/v1/theme/light-palette.d.ts +5 -0
- package/dist/src/v1/theme/style-overrides/component-overrides/avatar-overrides.d.ts +9 -0
- package/dist/src/v1/theme/style-overrides/component-overrides/button-overrides.d.ts +4 -0
- package/dist/src/v1/theme/style-overrides/component-overrides/card-overrides.d.ts +4 -0
- package/dist/src/v1/theme/style-overrides/component-overrides/index.d.ts +3 -0
- package/dist/src/v1/theme/style-overrides/components.d.ts +1400 -0
- package/dist/src/v1/theme/style-overrides/typography.d.ts +4 -0
- package/dist/src/v1/theme/theme.d.ts +5 -0
- package/dist/style.css +1 -1
- package/package.json +6 -3
- package/dist/src/v2/components/Button/Button.d.ts +0 -7
- package/dist/src/v2/components/Button/Button.stories.d.ts +0 -10
- package/dist/src/v2/components/ButtonBase/ButtonBase.d.ts +0 -3
- package/dist/src/v2/components/ButtonBase/ButtonBase.stories.d.ts +0 -8
- package/dist/src/v2/components/Chip/Chip.d.ts +0 -1
- package/dist/src/v2/components/Chip/Chip.stories.d.ts +0 -8
- package/dist/src/v2/components/Input/Input.d.ts +0 -3
- package/dist/src/v2/components/Input/Input.stories.d.ts +0 -9
- package/dist/src/v2/components/Input/stories/Simple.d.ts +0 -4
- package/dist/src/v2/components/Input/stories/index.d.ts +0 -1
- package/dist/src/v2/components/Text/Text.d.ts +0 -10
- package/dist/src/v2/components/Text/Text.stories.d.ts +0 -8
- package/dist/src/v2/components/TreeView/TopExpandedTreeView.d.ts +0 -7
- package/dist/src/v2/components/TreeView/TreeView.d.ts +0 -6
- package/dist/src/v2/components/TreeView/TreeView.stories.d.ts +0 -8
- package/dist/src/v2/icons/AccountIcon/AccountIcon.d.ts +0 -8
- package/dist/src/v2/icons/AccountIcon/AccountIcon.stories.d.ts +0 -10
- package/dist/src/v2/icons/SearchIcon/SearchIcon.d.ts +0 -8
- package/dist/src/v2/icons/SearchIcon/SearchIcon.stories.d.ts +0 -10
- package/dist/src/v2/layout/Box/Box.d.ts +0 -3
- package/dist/src/v2/layout/Box/Box.stories.d.ts +0 -8
- package/dist/src/v2/layout/Card/Card.d.ts +0 -3
- package/dist/src/v2/layout/Card/Card.stories.d.ts +0 -8
- package/dist/src/v2/layout/Container/Container.d.ts +0 -3
- package/dist/src/v2/layout/Container/Container.stories.d.ts +0 -9
- package/dist/src/v2/layout/Grid/Grid.d.ts +0 -3
- package/dist/src/v2/layout/Grid/Grid.stories.d.ts +0 -8
- package/dist/src/v2/layout/Paper/Paper.d.ts +0 -3
- package/dist/src/v2/layout/Paper/Paper.stories.d.ts +0 -8
- package/dist/src/v2/layout/Stack/Stack.d.ts +0 -3
- package/dist/src/v2/layout/Stack/Stack.stories.d.ts +0 -8
- package/dist/src/v2/layout/StandardAppChrome/StandardAppChrome.d.ts +0 -3
- package/dist/src/v2/layout/StandardAppChrome/StandardAppChrome.stories.d.ts +0 -8
- package/dist/src/v2/layout/examples.d.ts +0 -5
- package/dist/src/v2/utils/Popover/Popover.d.ts +0 -3
- package/dist/src/v2/utils/Popover/Popover.stories.d.ts +0 -9
- /package/dist/src/{v2/components → v1/components/data-display}/Divider/Divider.d.ts +0 -0
- /package/dist/src/{v2/components → v1/components/data-display}/Divider/Divider.stories.d.ts +0 -0
- /package/dist/src/{v2/components → v1/components/feedback}/Skeleton/Skeleton.d.ts +0 -0
- /package/dist/src/{v2/components → v1/components/feedback}/Skeleton/Skeleton.stories.d.ts +0 -0
package/dist/src/export.d.ts
CHANGED
|
@@ -6,22 +6,9 @@ export { useOntologyStyles } from './contexts/OntologyStyles';
|
|
|
6
6
|
export type { IconStyle } from './contexts/OntologyStyles';
|
|
7
7
|
export * from './components';
|
|
8
8
|
export { default as useDebounce } from './hooks/useDebounce';
|
|
9
|
-
export * from './
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export * from './
|
|
14
|
-
export
|
|
15
|
-
export * from './v2/components/Skeleton/Skeleton';
|
|
16
|
-
export * from './v2/components/LinearProgress/LinearProgress';
|
|
17
|
-
export * from './v2/components/Chip/Chip';
|
|
18
|
-
export { default as Grid } from './v2/layout/Grid/Grid';
|
|
19
|
-
export { default as Card } from './v2/layout/Card/Card';
|
|
20
|
-
export { default as Container } from './v2/layout/Container/Container';
|
|
21
|
-
export { default as Box } from './v2/layout/Box/Box';
|
|
22
|
-
export { default as Stack } from './v2/layout/Stack/Stack';
|
|
23
|
-
export { default as StandardAppChrome } from './v2/layout/StandardAppChrome/StandardAppChrome';
|
|
24
|
-
export * from './v2/layout/Paper/Paper';
|
|
25
|
-
export { default as Popover } from './v2/utils/Popover/Popover';
|
|
26
|
-
export { default as AccountIcon } from './v2/icons/AccountIcon/AccountIcon';
|
|
27
|
-
export { default as SearchIcon } from './v2/icons/SearchIcon/SearchIcon';
|
|
9
|
+
export * from './v1/components/data-display';
|
|
10
|
+
export * from './v1/components/feedback';
|
|
11
|
+
export * from './v1/components/inputs';
|
|
12
|
+
export * from './v1/components/layout';
|
|
13
|
+
export * from './v1/components/surfaces';
|
|
14
|
+
export { default as UIThemeProvider } from './v1/theme/UIThemeProvider';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ChipProps as MUIChipProps } from '@mui/material/Chip';
|
|
3
|
+
|
|
4
|
+
export type ChipProps = Omit<MUIChipProps, "avatar" | "children" | "classes" | "clickable" | "color" | "component" | "deleteIcon" | "icon" | "skipFocusWhenDisabled" | "sx">;
|
|
5
|
+
declare const Chip: React.FC<ChipProps>;
|
|
6
|
+
export default Chip;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SvgIconProps } from '@mui/material';
|
|
3
|
+
|
|
4
|
+
type TelicentMarkProps = Omit<SvgIconProps, "color"> & Partial<{
|
|
5
|
+
backgroundColor: SvgIconProps["color"];
|
|
6
|
+
color: "black" | "white";
|
|
7
|
+
}>;
|
|
8
|
+
declare const TelicentMark: React.FC<TelicentMarkProps>;
|
|
9
|
+
export default TelicentMark;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { H1 } from './Text';
|
|
3
|
+
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: import('react').FC<import('./Text').HeadingProps>;
|
|
7
|
+
parameters: {
|
|
8
|
+
docs: {
|
|
9
|
+
description: {
|
|
10
|
+
component: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
tags: string[];
|
|
15
|
+
args: {
|
|
16
|
+
align: "inherit";
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default meta;
|
|
20
|
+
type Story = StoryObj<typeof H1>;
|
|
21
|
+
export declare const Heading1: Story;
|
|
22
|
+
export declare const Heading2: Story;
|
|
23
|
+
export declare const Heading3: Story;
|
|
24
|
+
export declare const Heading4: Story;
|
|
25
|
+
export declare const Heading5: Story;
|
|
26
|
+
export declare const Heading6: Story;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
import { TypographyProps } from '@mui/material/Typography';
|
|
3
|
+
|
|
4
|
+
export type BaseProps = Partial<{
|
|
5
|
+
/** Set the text-align on the component. */
|
|
6
|
+
align: TypographyProps["align"];
|
|
7
|
+
/** The content of the component. */
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
/** Text color */
|
|
10
|
+
color: "primary";
|
|
11
|
+
/** If true, the text will not wrap, but instead will truncate
|
|
12
|
+
with a text overflow ellipsis.Note that text overflow can only happen with
|
|
13
|
+
block or inline-block level elements (the element needs to have a width in
|
|
14
|
+
order to overflow).
|
|
15
|
+
*/
|
|
16
|
+
noWrap: boolean;
|
|
17
|
+
}>;
|
|
18
|
+
export type HeadingProps = BaseProps & Partial<{
|
|
19
|
+
/**
|
|
20
|
+
* The type of text style to use.
|
|
21
|
+
*/
|
|
22
|
+
variant: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
23
|
+
}>;
|
|
24
|
+
export type TextProps = BaseProps & Partial<{
|
|
25
|
+
/**
|
|
26
|
+
* If true, the element will be a paragraph element.
|
|
27
|
+
*/
|
|
28
|
+
paragraph: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* The type of text style to use.
|
|
31
|
+
*/
|
|
32
|
+
variant: "subtitle1" | "subtitle2" | "body1" | "body2" | "overline" | "caption";
|
|
33
|
+
}>;
|
|
34
|
+
declare const Text: React.FC<TextProps>;
|
|
35
|
+
declare const H1: React.FC<HeadingProps>;
|
|
36
|
+
declare const H2: React.FC<HeadingProps>;
|
|
37
|
+
declare const H3: React.FC<HeadingProps>;
|
|
38
|
+
declare const H4: React.FC<HeadingProps>;
|
|
39
|
+
declare const H5: React.FC<HeadingProps>;
|
|
40
|
+
declare const H6: React.FC<HeadingProps>;
|
|
41
|
+
export default Text;
|
|
42
|
+
export { H1, H2, H3, H4, H5, H6, Text };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { default as Text } from './Text';
|
|
3
|
+
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: import('react').FC<import('./Text').TextProps>;
|
|
7
|
+
tags: string[];
|
|
8
|
+
args: {
|
|
9
|
+
align: "inherit";
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof Text>;
|
|
14
|
+
export declare const Subtitle1: Story;
|
|
15
|
+
export declare const Subtitle2: Story;
|
|
16
|
+
export declare const Body1: Story;
|
|
17
|
+
export declare const Body2: Story;
|
|
18
|
+
export declare const Caption: Story;
|
|
19
|
+
export declare const Overline: Story;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TreeViewBaseItem } from '@mui/x-tree-view';
|
|
3
|
+
|
|
4
|
+
type TreeViewProps<Item extends object = TreeViewBaseItem> = {
|
|
5
|
+
items: Item[];
|
|
6
|
+
} & Partial<{
|
|
7
|
+
/**
|
|
8
|
+
* Force children to always be expanded
|
|
9
|
+
*/
|
|
10
|
+
alwaysExpandedIds: string[];
|
|
11
|
+
/**
|
|
12
|
+
* Expanded item ids. Used when the item's expansion is not controlled.
|
|
13
|
+
*/
|
|
14
|
+
defaultExpandedItems: string[];
|
|
15
|
+
/**
|
|
16
|
+
* Selected item ids. (Uncontrolled) When multiSelect is true this takes an
|
|
17
|
+
* array of strings; when false (default) a string.
|
|
18
|
+
*/
|
|
19
|
+
defaultSelectedItems: string | string[];
|
|
20
|
+
/**
|
|
21
|
+
* Expanded item ids. Used when the item's expansion is controlled.
|
|
22
|
+
*/
|
|
23
|
+
expandedItems: string[];
|
|
24
|
+
/**
|
|
25
|
+
* Used to determine the id of a given item.
|
|
26
|
+
* @param item The item to check.
|
|
27
|
+
* @returns The id of the item.
|
|
28
|
+
* @default (item) => item.id
|
|
29
|
+
*/
|
|
30
|
+
getItemId: (item: Item) => string;
|
|
31
|
+
/**
|
|
32
|
+
* Used to determine the string label for a given item.
|
|
33
|
+
* @param item The item to check.
|
|
34
|
+
* @returns The label of the item.
|
|
35
|
+
* @default (item) => item.label
|
|
36
|
+
*/
|
|
37
|
+
getItemLabel: (item: Item) => string;
|
|
38
|
+
/**
|
|
39
|
+
* This prop is used to help implement the accessibility logic. If you don't
|
|
40
|
+
* provide this prop, it falls back to a randomly generated id.
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* Used to determine if a given item should be disabled.
|
|
45
|
+
* @param item The item to check.
|
|
46
|
+
* @returns true if the item should be disabled.
|
|
47
|
+
*/
|
|
48
|
+
isItemDisabled: (item: Item) => boolean;
|
|
49
|
+
/**
|
|
50
|
+
* If true ctrl and shift will trigger multiselect.
|
|
51
|
+
* @default false
|
|
52
|
+
*/
|
|
53
|
+
multiSelect: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Callback fired when tree items are expanded/collapsed.
|
|
56
|
+
* @param event The event source of the callback.
|
|
57
|
+
* @param itemIds The ids of the expanded items.
|
|
58
|
+
* @returns void
|
|
59
|
+
*/
|
|
60
|
+
onExpandedItemsChange: (event: React.SyntheticEvent, itemIds: string[]) => void;
|
|
61
|
+
/**
|
|
62
|
+
* Callback fired when a tree item is expanded or collapsed.
|
|
63
|
+
* @param event The event source of the callback.
|
|
64
|
+
* @param itemId The itemId of the modified item.
|
|
65
|
+
* @param isExpanded true if the item has just been expanded, false if it has
|
|
66
|
+
* just been collapsed.
|
|
67
|
+
* @returns void
|
|
68
|
+
*/
|
|
69
|
+
onItemExpansionToggle: (event: React.SyntheticEvent, itemId: string, isExpanded: boolean) => void;
|
|
70
|
+
/**
|
|
71
|
+
* Callback fired when tree items are focused.
|
|
72
|
+
* @param event The event source of the callback Warning: This is a generic event not a focus event.
|
|
73
|
+
* @param itemId The id of the focused item.
|
|
74
|
+
* @returns void
|
|
75
|
+
*/
|
|
76
|
+
onItemFocus: (event: React.SyntheticEvent | null, itemId: string) => void;
|
|
77
|
+
/**
|
|
78
|
+
* Callback fired when a tree item is selected or deselected.
|
|
79
|
+
* @param event The event source of the callback.
|
|
80
|
+
* @param itemId The itemId of the modified item.
|
|
81
|
+
* @param isSelected true if the item has just been selected, false if it has
|
|
82
|
+
* just been deselected.
|
|
83
|
+
* @returns void
|
|
84
|
+
*/
|
|
85
|
+
onItemSelectionToggle: (event: React.SyntheticEvent, itemId: string, isSelected: boolean) => void;
|
|
86
|
+
/**
|
|
87
|
+
* Callback fired when tree items are selected/deselected.
|
|
88
|
+
* @param event The event source of the callback
|
|
89
|
+
* @param itemIds The ids of the selected items. When multiSelect is true,
|
|
90
|
+
* this is an array of strings; when false (default) a string.
|
|
91
|
+
* @returns void
|
|
92
|
+
*/
|
|
93
|
+
onSelectedItemsChange: (event: React.SyntheticEvent, itemIds: string[] | string | null) => void;
|
|
94
|
+
/**
|
|
95
|
+
* Selected item ids. (Controlled) When multiSelect is true this takes an
|
|
96
|
+
* array of strings; when false (default) a string.
|
|
97
|
+
*/
|
|
98
|
+
selectedItems: string | string[];
|
|
99
|
+
}>;
|
|
100
|
+
declare const TreeView: React.FC<TreeViewProps>;
|
|
101
|
+
export default TreeView;
|
|
102
|
+
export type { TreeViewProps, TreeViewBaseItem };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { TreeViewBaseItem } from './TreeView';
|
|
3
|
+
|
|
4
|
+
declare const meta: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: import('react').FC<import('./TreeView').TreeViewProps<TreeViewBaseItem>>;
|
|
7
|
+
parameters: {
|
|
8
|
+
docs: {
|
|
9
|
+
description: {
|
|
10
|
+
component: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
tags: string[];
|
|
15
|
+
args: {
|
|
16
|
+
items: TreeViewBaseItem[];
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default meta;
|
|
20
|
+
type Story = StoryObj<typeof meta>;
|
|
21
|
+
export declare const Example: Story;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './Icons';
|
|
2
|
+
export * from './FontAwesomeIcons';
|
|
3
|
+
export * from './Text/Text';
|
|
4
|
+
export { default as Chip } from './Chip/Chip';
|
|
5
|
+
export type { ChipProps } from './Chip/Chip';
|
|
6
|
+
export { default as Divider } from './Divider/Divider';
|
|
7
|
+
export { default as TreeView } from './TreeView/TreeView';
|
|
8
|
+
export type { TreeViewProps, TreeViewBaseItem } from './TreeView/TreeView';
|
|
9
|
+
export { default as UserProfile } from './UserProfile/UserProfile';
|
|
10
|
+
export type { UserProfileProps } from './UserProfile/UserProfile';
|
|
11
|
+
export { default as UserStatus } from './UserStatus/UserStatus';
|
|
12
|
+
export type { UserStatusProps } from './UserStatus/UserStatus';
|
package/dist/src/{v2/components → v1/components/feedback}/LinearProgress/LinearProgress.d.ts
RENAMED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { LinearProgressProps } from '@mui/material/LinearProgress';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
isActive: boolean;
|
|
6
|
-
transition?: number;
|
|
7
|
-
};
|
|
8
|
-
export declare const LinearProgress: React.FC<LinearProgressPropsNew>;
|
|
4
|
+
export declare const LinearProgress: React.FC<LinearProgressProps>;
|
|
9
5
|
export default LinearProgress;
|
package/dist/src/{v2/components → v1/components/feedback}/LinearProgress/LinearProgress.stories.d.ts
RENAMED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
|
2
2
|
|
|
3
3
|
declare const meta: {
|
|
4
|
-
component: import('react').FC<import('@mui/material').LinearProgressProps
|
|
5
|
-
isActive: boolean;
|
|
6
|
-
transition?: number | undefined;
|
|
7
|
-
}>;
|
|
4
|
+
component: import('react').FC<import('@mui/material').LinearProgressProps>;
|
|
8
5
|
};
|
|
9
6
|
export default meta;
|
|
10
7
|
export type LinearProgressStory = StoryObj<typeof meta>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ButtonProps as MUIButtonProps } from '@mui/material/Button';
|
|
3
|
+
|
|
4
|
+
export type ButtonProps = Omit<MUIButtonProps, "color" | "classes" | "component" | "disableFocusRipple" | "disableRipple" | "href" | "sx" | "variant"> & Partial<{
|
|
5
|
+
variant: "primary" | "secondary" | "tertiary";
|
|
6
|
+
}>;
|
|
7
|
+
declare const Button: React.FC<ButtonProps>;
|
|
8
|
+
export default Button;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { InputBaseProps } from '@mui/material/InputBase';
|
|
3
|
+
|
|
4
|
+
export type SearchBoxProps<Value = string> = Partial<{
|
|
5
|
+
/**
|
|
6
|
+
* If true, the input element is focused during the first mount.
|
|
7
|
+
*/
|
|
8
|
+
autoFocus: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Pass a ref to the input element.
|
|
11
|
+
*/
|
|
12
|
+
inputRef: React.ForwardedRef<HTMLInputElement> | React.RefObject<HTMLInputElement>;
|
|
13
|
+
/**
|
|
14
|
+
* Callback fired when the input looses focus (i.e. blurred).
|
|
15
|
+
* Notice that the first argument (event) might be undefined.
|
|
16
|
+
* @param event
|
|
17
|
+
* @returns void
|
|
18
|
+
*/
|
|
19
|
+
onBlur: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
20
|
+
/**
|
|
21
|
+
* Callback fired when the value is changed.
|
|
22
|
+
* @param event The event source of the callback. You can pull out the new value by accessing event.target.value (string).
|
|
23
|
+
* @returns void
|
|
24
|
+
*/
|
|
25
|
+
onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
26
|
+
/**
|
|
27
|
+
* Callback fired when the search button is clicked.
|
|
28
|
+
* @param event
|
|
29
|
+
* @returns
|
|
30
|
+
*/
|
|
31
|
+
onSearch: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
32
|
+
/**
|
|
33
|
+
* Name attribute of the input element.
|
|
34
|
+
*/
|
|
35
|
+
name: InputBaseProps["name"];
|
|
36
|
+
/**
|
|
37
|
+
* The short hint displayed in the input before the user enters a value.
|
|
38
|
+
*/
|
|
39
|
+
placeholder: InputBaseProps["placeholder"];
|
|
40
|
+
/**
|
|
41
|
+
* The value of the input element, required for a controlled component.
|
|
42
|
+
*/
|
|
43
|
+
value: Value;
|
|
44
|
+
}>;
|
|
45
|
+
declare const SearchBox: React.FC<SearchBoxProps>;
|
|
46
|
+
export default SearchBox;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import('react').FC<Partial<{
|
|
6
|
+
autoFocus: boolean;
|
|
7
|
+
inputRef: import('react').RefObject<HTMLInputElement> | import('react').ForwardedRef<HTMLInputElement>;
|
|
8
|
+
onBlur: (event: import('react').FocusEvent<HTMLInputElement, Element>) => void;
|
|
9
|
+
onChange: (event: import('react').ChangeEvent<HTMLInputElement>) => void;
|
|
10
|
+
onSearch: (event: import('react').MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
11
|
+
name: string | undefined;
|
|
12
|
+
placeholder: string | undefined;
|
|
13
|
+
value: string;
|
|
14
|
+
}>>;
|
|
15
|
+
tags: string[];
|
|
16
|
+
args: {
|
|
17
|
+
onSearch: import('@vitest/spy').Mock<[event: import('react').MouseEvent<HTMLButtonElement, MouseEvent>], void>;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export default meta;
|
|
21
|
+
type Story = StoryObj<typeof meta>;
|
|
22
|
+
export declare const Example: Story;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React, PropsWithChildren } from 'react';
|
|
2
|
+
|
|
3
|
+
type ContainerProps = React.HTMLAttributes<HTMLDivElement> & PropsWithChildren & Partial<{
|
|
4
|
+
/** If true, the left and right padding is removed. */
|
|
5
|
+
disablePadding: boolean;
|
|
6
|
+
/** Set the maxWidth to match the minWidth of the current breakpoint. Useful
|
|
7
|
+
* when the design is set for fixed sizes instead of trying to accommodate a
|
|
8
|
+
* fluid viewport. It's fluid by default */
|
|
9
|
+
fixed: boolean;
|
|
10
|
+
/** Sets the maxWidth of the container. The container will grow with the size
|
|
11
|
+
* of the screen. Set to false to disable maxWidth */
|
|
12
|
+
maxWidth: "xs" | "sm" | "md" | "lg" | "xl" | false;
|
|
13
|
+
}>;
|
|
14
|
+
declare const Container: React.FC<ContainerProps>;
|
|
15
|
+
export default Container;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { default as Container } from './Container';
|
|
3
|
+
|
|
4
|
+
declare const meta: {
|
|
5
|
+
component: import('react').FC<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
6
|
+
children?: import('react').ReactNode;
|
|
7
|
+
} & Partial<{
|
|
8
|
+
disablePadding: boolean;
|
|
9
|
+
fixed: boolean;
|
|
10
|
+
maxWidth: false | "xs" | "sm" | "lg" | "xl" | "md";
|
|
11
|
+
}>>;
|
|
12
|
+
};
|
|
13
|
+
export default meta;
|
|
14
|
+
export type ContainerStory = StoryObj<typeof meta>;
|
|
15
|
+
export declare const Basic: StoryObj<typeof Container>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Grid2Props } from '@mui/material/Unstable_Grid2';
|
|
3
|
+
|
|
4
|
+
type FlexGridProps = Omit<Grid2Props, "container" | "sx" | "classes" | "spacing">;
|
|
5
|
+
export declare const FlexGrid: React.FC<FlexGridProps>;
|
|
6
|
+
export declare const FlexGridItem: React.FC<FlexGridProps>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { AppBarProps as MUIAppBarProps } from '@mui/material/AppBar';
|
|
3
|
+
|
|
4
|
+
export type AppBarProps = Partial<{
|
|
5
|
+
appName: string;
|
|
6
|
+
beta: boolean;
|
|
7
|
+
userProfile: React.ReactNode;
|
|
8
|
+
position: MUIAppBarProps["position"];
|
|
9
|
+
}>;
|
|
10
|
+
declare const AppBar: React.FC<AppBarProps>;
|
|
11
|
+
export default AppBar;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { default as AppBar } from './AppBar';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<typeof AppBar>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof AppBar>;
|
|
7
|
+
export declare const Example: Story;
|
|
8
|
+
export declare const WithAppName: Story;
|
|
9
|
+
export declare const WithUserProfile: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { CardProps as MUICardProps } from '@mui/material/Card';
|
|
3
|
+
import { CardHeaderProps as MUICardHeaderProps } from '@mui/material/CardHeader';
|
|
4
|
+
|
|
5
|
+
type CardProps = Omit<MUICardProps, "classes" | "raised" | "sx"> & Partial<{
|
|
6
|
+
maxWidth: React.CSSProperties["maxWidth"];
|
|
7
|
+
}>;
|
|
8
|
+
declare const Card: React.FC<CardProps>;
|
|
9
|
+
declare const CardHeader: React.FC<MUICardHeaderProps>;
|
|
10
|
+
export default Card;
|
|
11
|
+
export { CardHeader };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { UITheme } from './colors/theme-colors';
|
|
3
|
+
|
|
4
|
+
type UIThemeProviderProps = React.PropsWithChildren & {
|
|
5
|
+
theme: UITheme;
|
|
6
|
+
};
|
|
7
|
+
declare const UIThemeProvider: React.FC<UIThemeProviderProps>;
|
|
8
|
+
export default UIThemeProvider;
|