@galaxy-ds/core 2.0.20 → 2.0.22
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/Accordion/Accordion.stories.d.ts +225 -319
- package/dist/Accordion/Accordion.styled.d.ts +7 -4
- package/dist/AccordionDetails/AccordionDetails.stories.d.ts +30 -28
- package/dist/AccordionPanel/AccordionPanel.stories.d.ts +25 -21
- package/dist/AccordionSummary/AccordionSummary.stories.d.ts +73 -52
- package/dist/ActivityLog/ActivityLog.stories.d.ts +6 -4
- package/dist/ActivityLog/ActivityLog.styled.d.ts +2 -3
- package/dist/AppBar/AppBar.stories.d.ts +35 -38
- package/dist/AppBar/AppBar.styled.d.ts +3 -4
- package/dist/AttachmentIcon/AttachmentIcon.stories.d.ts +6 -5
- package/dist/Autocomplete/Autocomplete.stories.d.ts +309 -303
- package/dist/Autocomplete/Autocomplete.styled.d.ts +5 -6
- package/dist/Autocomplete/createFilterOptions.d.ts +1 -1
- package/dist/Avatar/Avatar.stories.d.ts +201 -178
- package/dist/Avatar/Avatar.styled.d.ts +3 -4
- package/dist/AvatarGroup/AvatarGroup.stories.d.ts +156 -199
- package/dist/BottomListButton/BottomListButton.stories.d.ts +48 -40
- package/dist/BottomListButton/BottomListButton.styled.d.ts +2 -3
- package/dist/Box/Box.stories.d.ts +71 -74
- package/dist/Breadcrumbs/Breadcrumbs.stories.d.ts +72 -74
- package/dist/Breadcrumbs/Breadcrumbs.styled.d.ts +2 -3
- package/dist/Button/Button.stories.d.ts +384 -355
- package/dist/Button/Button.styled.d.ts +2 -3
- package/dist/Card/Card.stories.d.ts +40 -32
- package/dist/Card/Card.styled.d.ts +1 -2
- package/dist/Checkbox/Checkbox.stories.d.ts +229 -508
- package/dist/Chip/Chip.stories.d.ts +135 -113
- package/dist/Chip/Chip.styled.d.ts +2 -3
- package/dist/CssBaseline/CssBaseline.stories.d.ts +0 -1
- package/dist/DatePicker/DatePicker.stories.d.ts +9 -1
- package/dist/DatePicker/DatePicker.styled.d.ts +0 -1
- package/dist/DateRangePicker/DateRangePicker.stories.d.ts +43 -38
- package/dist/DateRangePicker/DateRangePicker.styled.d.ts +0 -1
- package/dist/Dialog/Dialog.stories.d.ts +188 -216
- package/dist/Divider/Divider.stories.d.ts +371 -365
- package/dist/Drawer/Drawer.stories.d.ts +402 -101
- package/dist/DrawerMenu/DrawerMenu.stories.d.ts +64 -73
- package/dist/DrawerMenu/DrawerMenu.styled.d.ts +2 -3
- package/dist/Dropdown/Dropdown.stories.d.ts +524 -471
- package/dist/Dropdown/Dropdown.types.d.ts +8 -0
- package/dist/EmptyState/EmptyState.stories.d.ts +14 -6
- package/dist/EmptyState/EmptyState.styled.d.ts +3 -4
- package/dist/FooterActions/FooterActions.stories.d.ts +13 -10
- package/dist/FooterActions/FooterActions.styled.d.ts +2 -3
- package/dist/FormBody/FormBody.stories.d.ts +5 -4
- package/dist/FormBody/FormBody.styled.d.ts +0 -1
- package/dist/FormContainer/FormContainer.stories.d.ts +1 -4
- package/dist/FormContainer/FormContainer.styled.d.ts +1 -2
- package/dist/FormGroup/FormGroup.stories.d.ts +60 -346
- package/dist/FormHeader/FormHeader.stories.d.ts +5 -6
- package/dist/FormHeader/FormHeader.styled.d.ts +5 -6
- package/dist/FormHeader/FormHeader.types.d.ts +1 -0
- package/dist/Grid/Grid.stories.d.ts +15 -0
- package/dist/HeaderToolbar/HeaderToolbar.stories.d.ts +114 -127
- package/dist/HeaderToolbar/HeaderToolbar.styled.d.ts +6 -7
- package/dist/Icon/Icon.stories.d.ts +639 -618
- package/dist/IconButton/IconButton.d.ts +0 -1
- package/dist/IconButton/IconButton.stories.d.ts +68 -51
- package/dist/Icons/doctype-icons.stories.d.ts +812 -823
- package/dist/Icons/leap-icons.stories.d.ts +1015 -1028
- package/dist/ImageUpload/ImageUpload.stories.d.ts +11 -1
- package/dist/ImageUpload/ImageUpload.styled.d.ts +0 -1
- package/dist/Input/Input.stories.d.ts +961 -941
- package/dist/Input/Input.styled.d.ts +3 -4
- package/dist/InputLabel/InputLabel.stories.d.ts +17 -0
- package/dist/List/List.stories.d.ts +5 -0
- package/dist/ListItem/ListItem.stories.d.ts +6 -0
- package/dist/ListItemAvatar/ListItemAvatar.stories.d.ts +6 -0
- package/dist/ListItemHoverContent/ListItemHoverContent.stories.d.ts +5 -1
- package/dist/ListItemHoverContent/ListItemHoverContent.styled.d.ts +0 -1
- package/dist/ListItemIcon/ListItemIcon.stories.d.ts +6 -0
- package/dist/ListItemText/ListItemText.stories.d.ts +6 -0
- package/dist/ListSubheader/ListSubheader.stories.d.ts +1 -1
- package/dist/Loader/Loader.stories.d.ts +5 -0
- package/dist/Loader/Loader.styled.d.ts +2 -3
- package/dist/Menu/Menu.d.ts +0 -1
- package/dist/Menu/Menu.stories.d.ts +5 -0
- package/dist/Menu/Menu.types.d.ts +0 -1
- package/dist/MenuHeader/MenuHeader.stories.d.ts +5 -0
- package/dist/MenuHeader/MenuHeader.styled.d.ts +3 -1
- package/dist/MenuItem/MenuItem.stories.d.ts +5 -0
- package/dist/Modal/Modal.stories.d.ts +5 -0
- package/dist/ModalActions/ModalActions.stories.d.ts +5 -0
- package/dist/ModalContent/ModalContent.stories.d.ts +5 -0
- package/dist/ModalTitle/ModalTitle.stories.d.ts +5 -0
- package/dist/Pagination/Pagination.stories.d.ts +7 -3
- package/dist/Popover/Popover.stories.d.ts +5 -0
- package/dist/ProgressBar/ProgressBar.stories.d.ts +5 -0
- package/dist/Radio/Radio.stories.d.ts +5 -0
- package/dist/RadioGroup/RadioGroup.stories.d.ts +6 -0
- package/dist/RibbonButton/RibbonButton.d.ts +0 -1
- package/dist/RibbonButton/RibbonButton.stories.d.ts +5 -0
- package/dist/RibbonButton/RibbonButton.styled.d.ts +3 -4
- package/dist/RibbonButtonGroup/RibbonButtonGroup.d.ts +0 -1
- package/dist/RibbonButtonGroup/RibbonButtonGroup.stories.d.ts +5 -0
- package/dist/RibbonButtonGroup/RibbonButtonGroup.styled.d.ts +4 -5
- package/dist/SidebarLayout/SidebarLayout.stories.d.ts +9 -3
- package/dist/StepNavigation/StepNavigation.stories.d.ts +5 -0
- package/dist/StepNavigation/StepNavigation.styled.d.ts +0 -1
- package/dist/Switch/Switch.stories.d.ts +6 -0
- package/dist/Tab/Tab.stories.d.ts +5 -0
- package/dist/Tab/Tab.styled.d.ts +2 -3
- package/dist/TabListItem/TabListItem.stories.d.ts +9 -0
- package/dist/TabListItem/TabListItem.styled.d.ts +3 -4
- package/dist/Table/Table.stories.d.ts +5 -0
- package/dist/TableBody/TableBody.stories.d.ts +1 -1
- package/dist/TableCell/TableCell.stories.d.ts +4 -0
- package/dist/TableCellIcon/TableCellIcon.stories.d.ts +5 -0
- package/dist/TableContainer/TableContainer.stories.d.ts +5 -0
- package/dist/TableFooter/TableFooter.stories.d.ts +4 -0
- package/dist/TableHead/TableHead.stories.d.ts +7 -3
- package/dist/TableRow/TableRow.stories.d.ts +7 -3
- package/dist/Tabs/Tabs.stories.d.ts +5 -0
- package/dist/Tabs/Tabs.styled.d.ts +2 -3
- package/dist/Tag/Tag.stories.d.ts +5 -0
- package/dist/Tag/Tag.styled.d.ts +9 -5
- package/dist/Tag/Tag.types.d.ts +9 -0
- package/dist/TextareaAutosize/TextareaAutosize.stories.d.ts +5 -0
- package/dist/Theme/custom-types/component-chip.d.ts +2 -0
- package/dist/Theme/leap/web/design-tokens/components/chip.d.ts +8 -0
- package/dist/ThemeProvider/ThemeProvider.stories.d.ts +20 -7
- package/dist/Toolbar/Toolbar.stories.d.ts +5 -0
- package/dist/ToolbarButton/ToolbarButton.stories.d.ts +5 -0
- package/dist/ToolbarButton/ToolbarButton.styled.d.ts +1 -4
- package/dist/Tooltip/Tooltip.stories.d.ts +5 -0
- package/dist/TwoColumnLayout/TwoColumnLayout.stories.d.ts +5 -5
- package/dist/Typography/Typography.stories.d.ts +5 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.esm.js +452 -352
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +449 -350
- package/dist/index.js.map +1 -1
- package/dist/stories/Typography.stories.d.ts +29 -0
- package/dist/stories/resources/tokensColorsLeap.d.ts +4 -5
- package/dist/stories/resources/{typographyLawconnect.d.ts → typographyLeapDesktop.d.ts} +4 -5
- package/dist/stories/resources/typographyLeapWeb.d.ts +9 -0
- package/package.json +7 -3
- package/dist/Badge/Badge.d.ts +0 -3
- package/dist/Badge/Badge.styled.d.ts +0 -4
- package/dist/Badge/Badge.types.d.ts +0 -3
- package/dist/Badge/index.d.ts +0 -2
- package/dist/Select/Select.d.ts +0 -3
- package/dist/Select/Select.styled.d.ts +0 -1
- package/dist/Select/Select.types.d.ts +0 -3
- package/dist/Select/index.d.ts +0 -2
- package/dist/Theme/lawconnect/baseline.d.ts +0 -44
- package/dist/Theme/lawconnect/design-tokens/components/avatars.d.ts +0 -46
- package/dist/Theme/lawconnect/design-tokens/components/buttons.d.ts +0 -93
- package/dist/Theme/lawconnect/design-tokens/components/chip.d.ts +0 -54
- package/dist/Theme/lawconnect/design-tokens/effect.d.ts +0 -2
- package/dist/Theme/lawconnect/design-tokens/palette.d.ts +0 -116
- package/dist/Theme/lawconnect/design-tokens/shapes.d.ts +0 -13
- package/dist/Theme/lawconnect/design-tokens/spacers.d.ts +0 -12
- package/dist/Theme/lawconnect/design-tokens/typography.d.ts +0 -133
- package/dist/Theme/lawconnect/overrides/Dialog/dialog.d.ts +0 -2
- package/dist/Theme/lawconnect/overrides/Dialog/dialogActions.d.ts +0 -2
- package/dist/Theme/lawconnect/overrides/Dialog/dialogContent.d.ts +0 -2
- package/dist/Theme/lawconnect/overrides/Dialog/dialogTitle.d.ts +0 -2
- package/dist/Theme/lawconnect/overrides/accordion.d.ts +0 -4
- package/dist/Theme/lawconnect/overrides/autocomplete.d.ts +0 -2
- package/dist/Theme/lawconnect/overrides/checkbox.d.ts +0 -2
- package/dist/Theme/lawconnect/overrides/divider.d.ts +0 -2
- package/dist/Theme/lawconnect/overrides/dropdown.d.ts +0 -2
- package/dist/Theme/lawconnect/overrides/formControlLabel.d.ts +0 -2
- package/dist/Theme/lawconnect/overrides/formGroup.d.ts +0 -2
- package/dist/Theme/lawconnect/overrides/iconButton.d.ts +0 -2
- package/dist/Theme/lawconnect/overrides/index.d.ts +0 -23
- package/dist/Theme/lawconnect/overrides/inputBase.d.ts +0 -2
- package/dist/Theme/lawconnect/overrides/inputLabel.d.ts +0 -2
- package/dist/Theme/lawconnect/overrides/list.d.ts +0 -2
- package/dist/Theme/lawconnect/overrides/listItemIcon.d.ts +0 -2
- package/dist/Theme/lawconnect/overrides/listItemText.d.ts +0 -2
- package/dist/Theme/lawconnect/overrides/menu.d.ts +0 -2
- package/dist/Theme/lawconnect/overrides/menuItem.d.ts +0 -2
- package/dist/Theme/lawconnect/overrides/outlinedInput.d.ts +0 -2
- package/dist/Theme/lawconnect/overrides/radio.d.ts +0 -2
- package/dist/Theme/lawconnect/overrides/svgIcon.d.ts +0 -2
- package/dist/Theme/lawconnect/overrides/tooltip.d.ts +0 -2
- package/dist/Theme/lawconnect/theme.d.ts +0 -2
- /package/dist/Icons/{lawconnect-icons.stories-temp-removed.d.ts → lawconnect-icons.stories.d.ts} +0 -0
|
@@ -6,5 +6,9 @@ type Story = StoryObj<typeof TableFooter>;
|
|
|
6
6
|
/**
|
|
7
7
|
* All Table components (Table, TableBody, TableHead, TableFooter, TableRow, TableCell) have the option to be rendered as another HTML element type for more flexible structure.
|
|
8
8
|
For example, `component='div'`.
|
|
9
|
+
*
|
|
10
|
+
* ```js
|
|
11
|
+
* import { TableFooter } from "@galaxy-ds/core";
|
|
12
|
+
* ```
|
|
9
13
|
*/
|
|
10
14
|
export declare const Default: Story;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
2
|
import { TableHead } from './TableHead';
|
|
3
|
-
declare const meta: Meta<typeof TableHead>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof TableHead>;
|
|
6
3
|
/**
|
|
7
4
|
* All Table components (Table, TableBody, TableHead, TableFooter, TableRow, TableCell) have the option to be rendered as another HTML element type for more flexible structure.
|
|
8
5
|
For example, `component='div'`.
|
|
6
|
+
*
|
|
7
|
+
* ```js
|
|
8
|
+
* import { TableHead } from "@galaxy-ds/core";
|
|
9
|
+
* ```
|
|
9
10
|
*/
|
|
11
|
+
declare const meta: Meta<typeof TableHead>;
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof TableHead>;
|
|
10
14
|
export declare const Default: Story;
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
2
|
import { TableRow } from './TableRow';
|
|
3
|
-
declare const meta: Meta<typeof TableRow>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof TableRow>;
|
|
6
3
|
/**
|
|
7
4
|
* All Table components (Table, TableBody, TableHead, TableFooter, TableRow, TableCell) have the option to be rendered as another HTML element type for more flexible structure.
|
|
8
5
|
For example, `component='div'`.
|
|
6
|
+
*
|
|
7
|
+
* ```js
|
|
8
|
+
* import { TableRow } from "@galaxy-ds/core";
|
|
9
|
+
* ```
|
|
9
10
|
*/
|
|
11
|
+
declare const meta: Meta<typeof TableRow>;
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof TableRow>;
|
|
10
14
|
export declare const Default: Story;
|
|
11
15
|
export declare const HoverState: Story;
|
|
12
16
|
export declare const SelectedHoverState: Story;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
2
|
import { Tabs } from './Tabs';
|
|
3
|
+
/**
|
|
4
|
+
* ```js
|
|
5
|
+
* import { Tabs } from "@galaxy-ds/core";
|
|
6
|
+
* ```
|
|
7
|
+
*/
|
|
3
8
|
declare const meta: Meta<typeof Tabs>;
|
|
4
9
|
export default meta;
|
|
5
10
|
type Story = StoryObj<typeof Tabs>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const StyledTabs: import("@emotion/styled").StyledComponent<import("@mui/material").TabsOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
4
|
-
}, "children" | "className" | "style" | "classes" | "sx" | "orientation" | "aria-label" | "aria-labelledby" | "onChange" | "
|
|
2
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
3
|
+
}, "children" | "className" | "style" | "classes" | "sx" | "orientation" | "aria-label" | "aria-labelledby" | "onChange" | "variant" | "slots" | "slotProps" | "action" | "value" | "allowScrollButtonsMobile" | "centered" | "indicatorColor" | "ScrollButtonComponent" | "scrollButtons" | "selectionFollowsFocus" | "TabIndicatorProps" | "TabScrollButtonProps" | "textColor" | "visibleScrollbar"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
package/dist/Tag/Tag.styled.d.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import { CSSObject } from '@mui/material';
|
|
2
2
|
export declare const TagWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
3
3
|
export declare const TagLabel: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
4
|
-
export declare const TagStartIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme
|
|
5
|
-
|
|
4
|
+
export declare const TagStartIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
5
|
+
startIconStyles?: CSSObject;
|
|
6
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
7
|
+
export declare const TagEndIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
8
|
+
endIconStyles?: CSSObject;
|
|
9
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
10
|
export declare const TagDelete: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
7
11
|
export declare const MuiIconButton: import("@emotion/styled").StyledComponent<import("@mui/material").IconButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
8
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
9
|
-
}, "children" | "className" | "style" | "classes" | "color" | "sx" | "tabIndex" | "disabled" | "
|
|
12
|
+
ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
13
|
+
}, "children" | "className" | "style" | "classes" | "color" | "sx" | "tabIndex" | "disabled" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "size"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
package/dist/Tag/Tag.types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { CSSObject } from '@mui/material';
|
|
2
3
|
export interface TagProps {
|
|
3
4
|
label: string;
|
|
4
5
|
variant?: 'default';
|
|
@@ -14,5 +15,13 @@ export interface TagProps {
|
|
|
14
15
|
disabled?: boolean;
|
|
15
16
|
onClick?: () => void;
|
|
16
17
|
onDelete?: (event: React.MouseEvent) => void;
|
|
18
|
+
/**
|
|
19
|
+
* EdgeCase:
|
|
20
|
+
* Passing a styles object to override styles for start and endIcons
|
|
21
|
+
* Given the alignment of the end icon will vary depending
|
|
22
|
+
* on the icon provided and container is a div wrapper
|
|
23
|
+
*/
|
|
24
|
+
startIconStyles?: CSSObject;
|
|
25
|
+
endIconStyles?: CSSObject;
|
|
17
26
|
}
|
|
18
27
|
export type TOOLTIP_PLACEMENT = 'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top';
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
2
|
import { TextareaAutosize } from './TextareaAutosize';
|
|
3
|
+
/**
|
|
4
|
+
* ```js
|
|
5
|
+
* import { TextareaAutosize } from "@galaxy-ds/core";
|
|
6
|
+
* ```
|
|
7
|
+
*/
|
|
3
8
|
declare const meta: Meta<typeof TextareaAutosize>;
|
|
4
9
|
export default meta;
|
|
5
10
|
type Story = StoryObj<typeof TextareaAutosize>;
|
|
@@ -9,30 +9,38 @@ declare const chip: {
|
|
|
9
9
|
default: {
|
|
10
10
|
color: any;
|
|
11
11
|
background: string;
|
|
12
|
+
contrastText: string;
|
|
12
13
|
};
|
|
13
14
|
primary: {
|
|
14
15
|
color: any;
|
|
15
16
|
background: string;
|
|
17
|
+
contrastText: string;
|
|
18
|
+
light: any;
|
|
16
19
|
};
|
|
17
20
|
secondary: {
|
|
18
21
|
color: any;
|
|
19
22
|
background: string;
|
|
23
|
+
contrastText: string;
|
|
20
24
|
};
|
|
21
25
|
info: {
|
|
22
26
|
color: string;
|
|
23
27
|
background: string;
|
|
28
|
+
contrastText: string;
|
|
24
29
|
};
|
|
25
30
|
success: {
|
|
26
31
|
color: any;
|
|
27
32
|
background: string;
|
|
33
|
+
contrastText: any;
|
|
28
34
|
};
|
|
29
35
|
warning: {
|
|
30
36
|
color: any;
|
|
31
37
|
background: string;
|
|
38
|
+
contrastText: any;
|
|
32
39
|
};
|
|
33
40
|
error: {
|
|
34
41
|
color: any;
|
|
35
42
|
background: string;
|
|
43
|
+
contrastText: any;
|
|
36
44
|
};
|
|
37
45
|
};
|
|
38
46
|
outlined: {
|
|
@@ -1,14 +1,27 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
2
|
import { ThemeProvider } from './ThemeProvider';
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
ThemeProvider is a wrapper of Material UI's ThemeProvider.
|
|
6
|
+
|
|
7
|
+
Wrap it around the root of your application to provide the theme settings to all the components underneath.
|
|
8
|
+
|
|
9
|
+
```javascript
|
|
10
|
+
import { ThemeProvider, CssBaseline, themeWeb, themeDesktop } from '@galaxy-ds/core';
|
|
11
|
+
import { StylesProvider } from '@material-ui/core/styles'
|
|
12
|
+
```
|
|
13
|
+
```html
|
|
14
|
+
<ThemeProvider theme={themeDesktop}>
|
|
15
|
+
<CssBaseline />
|
|
16
|
+
<App />
|
|
17
|
+
</ThemeProvider>
|
|
18
|
+
```
|
|
19
|
+
*/
|
|
3
20
|
declare const meta: Meta<typeof ThemeProvider>;
|
|
4
21
|
export default meta;
|
|
5
22
|
type Story = StoryObj<typeof ThemeProvider>;
|
|
23
|
+
export declare const Desktop: Story;
|
|
6
24
|
/**
|
|
7
|
-
|
|
8
|
-
* <ThemeProvider theme={themeDesktop}>
|
|
9
|
-
* <CssBaseline />
|
|
10
|
-
* <App />
|
|
11
|
-
* </ThemeProvider>
|
|
12
|
-
```
|
|
25
|
+
* Application now get the styles of web theme when `theme` argument set to `themeWeb`.
|
|
13
26
|
*/
|
|
14
|
-
export declare const
|
|
27
|
+
export declare const Web: Story;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
2
|
import { Toolbar } from './Toolbar';
|
|
3
|
+
/**
|
|
4
|
+
* ```js
|
|
5
|
+
* import { Toolbar } from "@galaxy-ds/core";
|
|
6
|
+
* ```
|
|
7
|
+
*/
|
|
3
8
|
declare const meta: Meta<typeof Toolbar>;
|
|
4
9
|
export default meta;
|
|
5
10
|
type Story = StoryObj<typeof Toolbar>;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
2
|
import { ToolbarButton } from './ToolbarButton';
|
|
3
|
+
/**
|
|
4
|
+
* ```js
|
|
5
|
+
* import { ToolbarButton } from "@galaxy-ds/core";
|
|
6
|
+
* ```
|
|
7
|
+
*/
|
|
3
8
|
declare const meta: Meta<typeof ToolbarButton>;
|
|
4
9
|
export default meta;
|
|
5
10
|
type Story = StoryObj<typeof ToolbarButton>;
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const StyledToolbarButton: import("@emotion/styled").StyledComponent<import("@mui/material/Button").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
3
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
4
|
-
}, "children" | "className" | "style" | "classes" | "color" | "sx" | "tabIndex" | "href" | "disabled" | "fullWidth" | "size" | "action" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "startIcon"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
1
|
+
export declare const StyledToolbarButton: import("@emotion/styled").StyledComponent<import("../Button").GDSButtonProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
2
|
import { Tooltip } from './Tooltip';
|
|
3
|
+
/**
|
|
4
|
+
* ```js
|
|
5
|
+
* import { Tooltip } from "@galaxy-ds/core";
|
|
6
|
+
* ```
|
|
7
|
+
*/
|
|
3
8
|
declare const meta: Meta<typeof Tooltip>;
|
|
4
9
|
export default meta;
|
|
5
10
|
type Story = StoryObj<typeof Tooltip>;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
2
|
import { TwoColumnLayout } from './TwoColumnLayout';
|
|
3
|
-
declare const meta: Meta<typeof TwoColumnLayout>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof TwoColumnLayout>;
|
|
6
3
|
/**
|
|
7
4
|
* Display the contents in two column layout.
|
|
8
5
|
Specify height of the direct parent frame (eg. `div`, `iframe`) so it can span to parent's 100% height.
|
|
@@ -11,8 +8,11 @@ Each column is a flexbox with `flex-direction='column'`.
|
|
|
11
8
|
Give the direct child item `flex='1'` for it to span to available space.
|
|
12
9
|
|
|
13
10
|
```javascript
|
|
14
|
-
import TwoColumnLayout from "@galaxy-ds/core";
|
|
11
|
+
import { TwoColumnLayout } from "@galaxy-ds/core";
|
|
15
12
|
```
|
|
16
13
|
*/
|
|
14
|
+
declare const meta: Meta<typeof TwoColumnLayout>;
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<typeof TwoColumnLayout>;
|
|
17
17
|
export declare const Default: Story;
|
|
18
|
-
export declare const
|
|
18
|
+
export declare const WithGutter: Story;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
2
|
import { Typography } from './Typography';
|
|
3
|
+
/**
|
|
4
|
+
* ```js
|
|
5
|
+
* import { Typography } from "@galaxy-ds/core";
|
|
6
|
+
* ```
|
|
7
|
+
*/
|
|
3
8
|
declare const meta: Meta<typeof Typography>;
|
|
4
9
|
export default meta;
|
|
5
10
|
type Story = StoryObj<typeof Typography>;
|
package/dist/index.d.ts
CHANGED
|
@@ -59,7 +59,6 @@ export * from './Radio';
|
|
|
59
59
|
export * from './RadioGroup';
|
|
60
60
|
export * from './RibbonButton';
|
|
61
61
|
export * from './RibbonButtonGroup';
|
|
62
|
-
export * from './Select';
|
|
63
62
|
export * from './SidebarLayout';
|
|
64
63
|
export * from './StepNavigation';
|
|
65
64
|
export * from './Switch';
|