@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.
Files changed (96) hide show
  1. package/dist/ds.js +17009 -17986
  2. package/dist/ds.umd.cjs +119 -119
  3. package/dist/src/export.d.ts +6 -19
  4. package/dist/src/v1/components/data-display/Chip/Chip.d.ts +6 -0
  5. package/dist/src/v1/components/data-display/FontAwesomeIcons/DownArrowIcon.d.ts +6 -0
  6. package/dist/src/v1/components/data-display/FontAwesomeIcons/SearchIcon.d.ts +6 -0
  7. package/dist/src/v1/components/data-display/FontAwesomeIcons/index.d.ts +2 -0
  8. package/dist/src/v1/components/data-display/Icons/DataServiceIcon.d.ts +5 -0
  9. package/dist/src/v1/components/data-display/Icons/DataSetIcon.d.ts +5 -0
  10. package/dist/src/v1/components/data-display/Icons/TelicentMark.d.ts +9 -0
  11. package/dist/src/v1/components/data-display/Icons/UserIcon.d.ts +5 -0
  12. package/dist/src/v1/components/data-display/Icons/index.d.ts +3 -0
  13. package/dist/src/v1/components/data-display/Text/Heading.stories.d.ts +26 -0
  14. package/dist/src/v1/components/data-display/Text/Text.d.ts +42 -0
  15. package/dist/src/v1/components/data-display/Text/Text.stories.d.ts +19 -0
  16. package/dist/src/v1/components/data-display/TreeView/TreeView.d.ts +102 -0
  17. package/dist/src/v1/components/data-display/TreeView/TreeView.stories.d.ts +21 -0
  18. package/dist/src/v1/components/data-display/UserProfile/UserProfile.d.ts +7 -0
  19. package/dist/src/v1/components/data-display/UserStatus/UserStatus.d.ts +7 -0
  20. package/dist/src/v1/components/data-display/index.d.ts +12 -0
  21. package/dist/src/{v2/components → v1/components/feedback}/LinearProgress/LinearProgress.d.ts +1 -5
  22. package/dist/src/{v2/components → v1/components/feedback}/LinearProgress/LinearProgress.stories.d.ts +1 -4
  23. package/dist/src/v1/components/feedback/index.d.ts +2 -0
  24. package/dist/src/v1/components/inputs/Button/Button.d.ts +8 -0
  25. package/dist/src/v1/components/inputs/Button/PrimaryButton.d.ts +6 -0
  26. package/dist/src/v1/components/inputs/Button/SecondaryButton.d.ts +6 -0
  27. package/dist/src/v1/components/inputs/SearchBox/SearchBox.d.ts +46 -0
  28. package/dist/src/v1/components/inputs/SearchBox/SearchBox.stories.d.ts +22 -0
  29. package/dist/src/v1/components/inputs/index.d.ts +4 -0
  30. package/dist/src/v1/components/layout/AppChrome.d.ts +6 -0
  31. package/dist/src/v1/components/layout/Container/Container.d.ts +15 -0
  32. package/dist/src/v1/components/layout/Container/Container.stories.d.ts +15 -0
  33. package/dist/src/v1/components/layout/FlexBox.d.ts +5 -0
  34. package/dist/src/v1/components/layout/FlexGrid.d.ts +7 -0
  35. package/dist/src/v1/components/layout/index.d.ts +4 -0
  36. package/dist/src/v1/components/surfaces/AppBar/AppBar.d.ts +11 -0
  37. package/dist/src/v1/components/surfaces/AppBar/AppBar.stories.d.ts +9 -0
  38. package/dist/src/v1/components/surfaces/Card/Card.d.ts +11 -0
  39. package/dist/src/v1/components/surfaces/Card/Card.stories.d.ts +7 -0
  40. package/dist/src/v1/components/surfaces/Card/CardActions.d.ts +4 -0
  41. package/dist/src/v1/components/surfaces/Card/CardContent.d.ts +4 -0
  42. package/dist/src/v1/components/surfaces/Card/index.d.ts +4 -0
  43. package/dist/src/v1/components/surfaces/index.d.ts +2 -0
  44. package/dist/src/v1/theme/UIThemeProvider.d.ts +8 -0
  45. package/dist/src/v1/theme/colors/data-navy.d.ts +9 -0
  46. package/dist/src/v1/theme/colors/theme-colors.d.ts +12 -0
  47. package/dist/src/v1/theme/light-palette.d.ts +5 -0
  48. package/dist/src/v1/theme/style-overrides/component-overrides/avatar-overrides.d.ts +9 -0
  49. package/dist/src/v1/theme/style-overrides/component-overrides/button-overrides.d.ts +4 -0
  50. package/dist/src/v1/theme/style-overrides/component-overrides/card-overrides.d.ts +4 -0
  51. package/dist/src/v1/theme/style-overrides/component-overrides/index.d.ts +3 -0
  52. package/dist/src/v1/theme/style-overrides/components.d.ts +1400 -0
  53. package/dist/src/v1/theme/style-overrides/typography.d.ts +4 -0
  54. package/dist/src/v1/theme/theme.d.ts +5 -0
  55. package/dist/style.css +1 -1
  56. package/package.json +6 -3
  57. package/dist/src/v2/components/Button/Button.d.ts +0 -7
  58. package/dist/src/v2/components/Button/Button.stories.d.ts +0 -10
  59. package/dist/src/v2/components/ButtonBase/ButtonBase.d.ts +0 -3
  60. package/dist/src/v2/components/ButtonBase/ButtonBase.stories.d.ts +0 -8
  61. package/dist/src/v2/components/Chip/Chip.d.ts +0 -1
  62. package/dist/src/v2/components/Chip/Chip.stories.d.ts +0 -8
  63. package/dist/src/v2/components/Input/Input.d.ts +0 -3
  64. package/dist/src/v2/components/Input/Input.stories.d.ts +0 -9
  65. package/dist/src/v2/components/Input/stories/Simple.d.ts +0 -4
  66. package/dist/src/v2/components/Input/stories/index.d.ts +0 -1
  67. package/dist/src/v2/components/Text/Text.d.ts +0 -10
  68. package/dist/src/v2/components/Text/Text.stories.d.ts +0 -8
  69. package/dist/src/v2/components/TreeView/TopExpandedTreeView.d.ts +0 -7
  70. package/dist/src/v2/components/TreeView/TreeView.d.ts +0 -6
  71. package/dist/src/v2/components/TreeView/TreeView.stories.d.ts +0 -8
  72. package/dist/src/v2/icons/AccountIcon/AccountIcon.d.ts +0 -8
  73. package/dist/src/v2/icons/AccountIcon/AccountIcon.stories.d.ts +0 -10
  74. package/dist/src/v2/icons/SearchIcon/SearchIcon.d.ts +0 -8
  75. package/dist/src/v2/icons/SearchIcon/SearchIcon.stories.d.ts +0 -10
  76. package/dist/src/v2/layout/Box/Box.d.ts +0 -3
  77. package/dist/src/v2/layout/Box/Box.stories.d.ts +0 -8
  78. package/dist/src/v2/layout/Card/Card.d.ts +0 -3
  79. package/dist/src/v2/layout/Card/Card.stories.d.ts +0 -8
  80. package/dist/src/v2/layout/Container/Container.d.ts +0 -3
  81. package/dist/src/v2/layout/Container/Container.stories.d.ts +0 -9
  82. package/dist/src/v2/layout/Grid/Grid.d.ts +0 -3
  83. package/dist/src/v2/layout/Grid/Grid.stories.d.ts +0 -8
  84. package/dist/src/v2/layout/Paper/Paper.d.ts +0 -3
  85. package/dist/src/v2/layout/Paper/Paper.stories.d.ts +0 -8
  86. package/dist/src/v2/layout/Stack/Stack.d.ts +0 -3
  87. package/dist/src/v2/layout/Stack/Stack.stories.d.ts +0 -8
  88. package/dist/src/v2/layout/StandardAppChrome/StandardAppChrome.d.ts +0 -3
  89. package/dist/src/v2/layout/StandardAppChrome/StandardAppChrome.stories.d.ts +0 -8
  90. package/dist/src/v2/layout/examples.d.ts +0 -5
  91. package/dist/src/v2/utils/Popover/Popover.d.ts +0 -3
  92. package/dist/src/v2/utils/Popover/Popover.stories.d.ts +0 -9
  93. /package/dist/src/{v2/components → v1/components/data-display}/Divider/Divider.d.ts +0 -0
  94. /package/dist/src/{v2/components → v1/components/data-display}/Divider/Divider.stories.d.ts +0 -0
  95. /package/dist/src/{v2/components → v1/components/feedback}/Skeleton/Skeleton.d.ts +0 -0
  96. /package/dist/src/{v2/components → v1/components/feedback}/Skeleton/Skeleton.stories.d.ts +0 -0
@@ -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 './v2/components/Input/Input';
10
- export { default as ButtonBase } from './v2/components/ButtonBase/ButtonBase';
11
- export { default as Divider } from './v2/components/Divider/Divider';
12
- export { default as Text, H1, H2, H3, H4, H5, H6 } from './v2/components/Text/Text';
13
- export * from './v2/components/TreeView/TreeView';
14
- export * from './v2/components/Button/Button';
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,6 @@
1
+ import { default as React } from 'react';
2
+ import { FontAwesomeIconProps } from '@fortawesome/react-fontawesome';
3
+
4
+ type DownArrowIconProps = Omit<FontAwesomeIconProps, "icon">;
5
+ declare const DownArrow: React.FC<DownArrowIconProps>;
6
+ export default DownArrow;
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ import { FontAwesomeIconProps } from '@fortawesome/react-fontawesome';
3
+
4
+ type SearchIconProps = Omit<FontAwesomeIconProps, "icon">;
5
+ declare const SearchIcon: React.FC<SearchIconProps>;
6
+ export default SearchIcon;
@@ -0,0 +1,2 @@
1
+ export { default as DownArrowIcon } from './DownArrowIcon';
2
+ export { default as SearchIcon } from './SearchIcon';
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ import { SvgIconProps } from '@mui/material';
3
+
4
+ declare const DataServiceIcon: React.FC<SvgIconProps>;
5
+ export default DataServiceIcon;
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ import { SvgIconProps } from '@mui/material';
3
+
4
+ declare const DataSetIcon: React.FC<SvgIconProps>;
5
+ export default DataSetIcon;
@@ -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,5 @@
1
+ import { default as React } from 'react';
2
+ import { SvgIconProps } from '@mui/material';
3
+
4
+ declare const UserIcon: React.FC<SvgIconProps>;
5
+ export default UserIcon;
@@ -0,0 +1,3 @@
1
+ export { default as DataServiceIcon } from './DataServiceIcon';
2
+ export { default as DataSetIcon } from './DataSetIcon';
3
+ export { default as UserIcon } from './UserIcon';
@@ -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,7 @@
1
+ import { default as React, PropsWithChildren } from 'react';
2
+
3
+ export type UserProfileProps = PropsWithChildren & {
4
+ fullName: string;
5
+ };
6
+ declare const UserProfile: React.FC<UserProfileProps>;
7
+ export default UserProfile;
@@ -0,0 +1,7 @@
1
+ import { default as React, PropsWithChildren } from 'react';
2
+
3
+ export type UserStatusProps = PropsWithChildren & {
4
+ fullName: string;
5
+ };
6
+ declare const UserStatus: React.FC<UserStatusProps>;
7
+ export default UserStatus;
@@ -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';
@@ -1,9 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  import { LinearProgressProps } from '@mui/material/LinearProgress';
3
3
 
4
- type LinearProgressPropsNew = LinearProgressProps & {
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;
@@ -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,2 @@
1
+ export { default as LinearProgress } from './LinearProgress/LinearProgress';
2
+ export { Skeleton } from './Skeleton/Skeleton';
@@ -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,6 @@
1
+ import { default as React } from 'react';
2
+ import { ButtonProps } from '@mui/material';
3
+
4
+ type PrimaryButtonProps = Omit<ButtonProps, "variant" | "color">;
5
+ declare const PrimaryButton: React.FC<PrimaryButtonProps>;
6
+ export default PrimaryButton;
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ import { ButtonProps } from '@mui/material';
3
+
4
+ type SecondaryButtonProps = Omit<ButtonProps, "variant" | "color">;
5
+ declare const SecondaryButton: React.FC<SecondaryButtonProps>;
6
+ export default SecondaryButton;
@@ -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,4 @@
1
+ export { default as Button } from './Button/Button';
2
+ export type { ButtonProps } from './Button/Button';
3
+ export { default as SearchBox } from './SearchBox/SearchBox';
4
+ export type { SearchBoxProps } from './SearchBox/SearchBox';
@@ -0,0 +1,6 @@
1
+ import { default as React, PropsWithChildren } from 'react';
2
+ import { AppBarProps } from '../surfaces/AppBar/AppBar';
3
+
4
+ type AppChromeProps = AppBarProps & PropsWithChildren;
5
+ declare const AppChrome: React.FC<AppChromeProps>;
6
+ export default AppChrome;
@@ -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,5 @@
1
+ import { default as React } from 'react';
2
+ import { StackProps } from '@mui/material/Stack';
3
+
4
+ declare const FlexBox: React.FC<StackProps>;
5
+ export default FlexBox;
@@ -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,4 @@
1
+ export * from './FlexGrid';
2
+ export { default as AppChrome } from './AppChrome';
3
+ export { default as Container } from './Container/Container';
4
+ export { default as FlexBox } from './FlexBox';
@@ -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,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as Card } from './Card';
3
+
4
+ declare const meta: Meta<typeof Card>;
5
+ export default meta;
6
+ type Story = StoryObj<typeof Card>;
7
+ export declare const OutlinedCard: Story;
@@ -0,0 +1,4 @@
1
+ import { default as React, PropsWithChildren } from 'react';
2
+
3
+ declare const CardActions: React.FC<PropsWithChildren>;
4
+ export default CardActions;
@@ -0,0 +1,4 @@
1
+ import { default as React, PropsWithChildren } from 'react';
2
+
3
+ declare const CardContent: React.FC<PropsWithChildren>;
4
+ export default CardContent;
@@ -0,0 +1,4 @@
1
+ export { default as Card } from './Card';
2
+ export { default as CardContent } from './CardContent';
3
+ export { default as CardActions } from './CardActions';
4
+ export * from './Card';
@@ -0,0 +1,2 @@
1
+ export * from './Card';
2
+ export { default as AppBar } from './AppBar/AppBar';
@@ -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;
@@ -0,0 +1,9 @@
1
+ declare const DATA_NAVY: {
2
+ 50: string;
3
+ 100: string;
4
+ 200: string;
5
+ 400: string;
6
+ 500: string;
7
+ 600: string;
8
+ };
9
+ export default DATA_NAVY;
@@ -0,0 +1,12 @@
1
+ export type UITheme = "DataNavy";
2
+ declare const THEME_COLORS: {
3
+ DataNavy: {
4
+ 50: string;
5
+ 100: string;
6
+ 200: string;
7
+ 400: string;
8
+ 500: string;
9
+ 600: string;
10
+ };
11
+ };
12
+ export default THEME_COLORS;