@pantheon-systems/pds-toolkit-react 1.0.0-alpha.9 → 1.0.0-beta.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/components/Avatar/Avatar.d.ts +5 -5
- package/_dist/components/BranchDiff/BranchDiff.d.ts +9 -9
- package/_dist/components/CTALink/CTALink.d.ts +5 -5
- package/_dist/components/CTASlice/CTASlice.d.ts +5 -5
- package/_dist/components/Callout/Callout.d.ts +7 -7
- package/_dist/components/CodeBlock/CodeBlock.d.ts +5 -5
- package/_dist/components/ComparisonList/ComparisonList.d.ts +6 -6
- package/_dist/components/DashboardStat/DashboardStat.d.ts +9 -9
- package/_dist/components/FileDiff/FileDiff.d.ts +10 -10
- package/_dist/components/FlowSteps/FlowSteps.d.ts +9 -9
- package/_dist/components/LinkNewWindow/LinkNewWindow.d.ts +5 -5
- package/_dist/components/Modal/Modal.d.ts +5 -5
- package/_dist/components/Pagination/Pagination.d.ts +6 -6
- package/_dist/components/PantheonLogo/PantheonLogo.d.ts +5 -5
- package/_dist/components/Picture/Picture.d.ts +14 -14
- package/_dist/components/Popover/Popover.d.ts +19 -19
- package/_dist/components/PullQuote/PullQuote.d.ts +6 -6
- package/_dist/components/RefreshChecker/RefreshChecker.d.ts +9 -9
- package/_dist/components/SiteDashboardHeading/SiteDashboardHeading.d.ts +12 -8
- package/_dist/components/Skiplink/Skiplink.d.ts +5 -5
- package/_dist/components/SocialLinks/SocialLinks.d.ts +6 -6
- package/_dist/components/StatusIndicator/StatusIndicator.d.ts +5 -5
- package/_dist/components/Table/Table.d.ts +8 -8
- package/_dist/components/TableOfContents/TableOfContents.d.ts +7 -7
- package/_dist/components/Tabs/Tabs.d.ts +13 -13
- package/_dist/components/Tag/Tag.d.ts +7 -7
- package/_dist/components/ThemeSwitcher/ThemeSwitcher.d.ts +8 -8
- package/_dist/components/Tooltip/Tooltip.d.ts +5 -5
- package/_dist/components/VideoEmbed/VideoEmbed.d.ts +5 -5
- package/_dist/components/badges/IndicatorBadge/IndicatorBadge.d.ts +6 -6
- package/_dist/components/badges/StatusBadge/StatusBadge.d.ts +5 -5
- package/_dist/components/badges/Tally/Tally.d.ts +7 -7
- package/_dist/components/buttons/Button/Button.d.ts +5 -5
- package/_dist/components/buttons/ButtonLink/ButtonLink.d.ts +6 -6
- package/_dist/components/buttons/ClipboardButton/ClipboardButton.d.ts +5 -5
- package/_dist/components/buttons/CloseButton/CloseButton.d.ts +5 -5
- package/_dist/components/buttons/IconButton/IconButton.d.ts +8 -8
- package/_dist/components/buttons/MenuButton/MenuButton.d.ts +5 -5
- package/_dist/components/buttons/SegmentedButton/SegmentedButton.d.ts +12 -12
- package/_dist/components/buttons/SplitButton/SplitButton.d.ts +5 -5
- package/_dist/components/buttons/UtilityButton/UtilityButton.d.ts +16 -10
- package/_dist/components/cards/Card/Card.d.ts +5 -5
- package/_dist/components/cards/CardHeading/CardHeading.d.ts +5 -5
- package/_dist/components/cards/CardSelectGroup/CardSelectGroup.d.ts +9 -9
- package/_dist/components/cards/EmptyStateCard/EmptyStateCard.d.ts +5 -5
- package/_dist/components/cards/LinksCard/LinksCard.d.ts +5 -5
- package/_dist/components/cards/NewSiteCard/NewSiteCard.d.ts +10 -10
- package/_dist/components/cards/PaymentCard/PaymentCard.d.ts +15 -15
- package/_dist/components/cards/PricingCard/PricingCard.d.ts +20 -20
- package/_dist/components/cards/SiteCard/SiteCard.d.ts +6 -7
- package/_dist/components/empty-states/CompactEmptyState/CompactEmptyState.d.ts +6 -6
- package/_dist/components/empty-states/HorizontalEmptyState/HorizontalEmptyState.d.ts +26 -26
- package/_dist/components/empty-states/VerticalEmptyState/VerticalEmptyState.d.ts +13 -13
- package/_dist/components/footer/FooterHeading/FooterHeading.d.ts +6 -6
- package/_dist/components/footer/FooterLinks/FooterLinks.d.ts +6 -6
- package/_dist/components/footer/SiteFooter/SiteFooter.d.ts +9 -9
- package/_dist/components/icons/Icon/Icon.d.ts +6 -6
- package/_dist/components/icons/PaymentIcon/PaymentIcon.d.ts +5 -5
- package/_dist/components/icons/PlatformIcon/PlatformIcon.d.ts +2 -2
- package/_dist/components/inputs/Checkbox/Checkbox.d.ts +6 -6
- package/_dist/components/inputs/CheckboxFieldset/CheckboxFieldset.d.ts +8 -8
- package/_dist/components/inputs/CheckboxGroup/CheckboxGroup.d.ts +6 -6
- package/_dist/components/inputs/Combobox/Combobox.d.ts +16 -16
- package/_dist/components/inputs/ComboboxMultiselect/ComboboxMultiselect.d.ts +11 -11
- package/_dist/components/inputs/Datepicker/Datepicker.d.ts +96 -0
- package/_dist/components/inputs/FileUpload/FileUpload.d.ts +5 -5
- package/_dist/components/inputs/RadioGroup/RadioGroup.d.ts +12 -12
- package/_dist/components/inputs/Select/Select.d.ts +12 -12
- package/_dist/components/inputs/Switch/Switch.d.ts +9 -7
- package/_dist/components/inputs/TextInput/TextInput.d.ts +6 -6
- package/_dist/components/inputs/Textarea/Textarea.d.ts +10 -10
- package/_dist/components/inputs/input-utilities.d.ts +29 -29
- package/_dist/components/loading-indicators/Skeleton/Skeleton.d.ts +5 -5
- package/_dist/components/loading-indicators/Spinner/Spinner.d.ts +5 -5
- package/_dist/components/navigation/Breadcrumb/Breadcrumb.d.ts +5 -5
- package/_dist/components/navigation/ButtonNav/ButtonNav.d.ts +5 -5
- package/_dist/components/navigation/DashboardNav/DashboardNav.d.ts +5 -5
- package/_dist/components/navigation/DashboardNav/DashboardNavItem.d.ts +1 -1
- package/_dist/components/navigation/DashboardSearch/DashboardSearch.d.ts +9 -9
- package/_dist/components/navigation/DashboardSearch/SiteOptionDisplay.d.ts +5 -5
- package/_dist/components/navigation/DropdownMenu/DropdownMenu.d.ts +5 -5
- package/_dist/components/navigation/NavMenu/NavMenu.d.ts +7 -17
- package/_dist/components/navigation/NavMenu/NavMenuDropdown.d.ts +1 -1
- package/_dist/components/navigation/Navbar/Navbar.d.ts +6 -6
- package/_dist/components/navigation/SideNav/SideNav.d.ts +5 -5
- package/_dist/components/navigation/SideNavCompact/SideNavCompact.d.ts +5 -5
- package/_dist/components/navigation/SideNavGlobal/SideNavGlobal.d.ts +5 -5
- package/_dist/components/navigation/SideNavGlobal/SideNavGlobalItem.d.ts +1 -1
- package/_dist/components/navigation/TabMenu/TabMenu.d.ts +6 -6
- package/_dist/components/navigation/UserMenu/UserMenu.d.ts +5 -5
- package/_dist/components/navigation/WorkspaceSelector/WorkspaceSelector.d.ts +9 -9
- package/_dist/components/navigation/navigation-types.d.ts +12 -4
- package/_dist/components/notifications/Banner/Banner.d.ts +8 -8
- package/_dist/components/notifications/InlineMessage/InlineMessage.d.ts +5 -5
- package/_dist/components/notifications/SectionMessage/SectionMessage.d.ts +5 -5
- package/_dist/components/notifications/Toaster/Toast.d.ts +5 -5
- package/_dist/components/notifications/Toaster/Toaster.d.ts +5 -5
- package/_dist/components/notifications/Toaster/useToast.d.ts +3 -3
- package/_dist/components/panels/ExpansionPanel/ExpansionPanel.d.ts +5 -5
- package/_dist/components/panels/ExpansionPanelGroup/ExpansionPanelGroup.d.ts +5 -5
- package/_dist/components/panels/Panel/Panel.d.ts +6 -6
- package/_dist/components/panels/PanelList/PanelList.d.ts +5 -5
- package/_dist/components/panels/PanelList/PanelRow.d.ts +5 -5
- package/_dist/components/progress-indicators/ProgressBar/ProgressBar.d.ts +5 -5
- package/_dist/components/progress-indicators/ProgressRing/ProgressRing.d.ts +5 -5
- package/_dist/components/steppers/Stepper/Stepper.d.ts +6 -6
- package/_dist/components/steppers/VerticalStepper/VerticalStep.d.ts +5 -5
- package/_dist/components/steppers/VerticalStepper/VerticalStepper.d.ts +5 -5
- package/_dist/components/tiles/AvatarTileList/AvatarTileList.d.ts +8 -8
- package/_dist/components/tiles/Tile/Tile.d.ts +5 -5
- package/_dist/components/tiles/TileGrid/TileGrid.d.ts +6 -6
- package/_dist/css/component-css/pds-avatar.css +1 -1
- package/_dist/css/component-css/pds-button.css +1 -1
- package/_dist/css/component-css/pds-checkbox.css +1 -1
- package/_dist/css/component-css/pds-code-block.css +1 -1
- package/_dist/css/component-css/pds-datepicker.css +3 -0
- package/_dist/css/component-css/pds-index.css +31 -11
- package/_dist/css/component-css/pds-indicator-badge.css +5 -3
- package/_dist/css/component-css/pds-input-utilities.css +1 -1
- package/_dist/css/component-css/pds-panel-list.css +1 -1
- package/_dist/css/component-css/pds-pantheon-logo.css +1 -1
- package/_dist/css/component-css/pds-popover.css +1 -1
- package/_dist/css/component-css/pds-radio-group.css +1 -1
- package/_dist/css/component-css/pds-section-message.css +1 -1
- package/_dist/css/component-css/pds-segmented-button.css +1 -1
- package/_dist/css/component-css/pds-side-nav-compact.css +1 -1
- package/_dist/css/component-css/pds-side-nav.css +1 -1
- package/_dist/css/component-css/pds-site-dashboard-heading.css +1 -1
- package/_dist/css/component-css/pds-switch.css +17 -1
- package/_dist/css/component-css/pds-tabs.css +1 -1
- package/_dist/css/component-css/pds-utility-button.css +1 -1
- package/_dist/css/design-tokens/pds-design-tokens-dark-mode.css +7 -0
- package/_dist/css/design-tokens/pds-design-tokens-light-mode.css +7 -0
- package/_dist/css/pds-components.css +31 -11
- package/_dist/css/pds-core.css +2 -2
- package/_dist/index.css +1 -1
- package/_dist/index.d.ts +1 -1
- package/_dist/index.js +6937 -6586
- package/_dist/index.js.map +1 -1
- package/_dist/layouts/AppLayout/AppLayout.d.ts +5 -5
- package/_dist/layouts/Container/Container.d.ts +5 -5
- package/_dist/layouts/DashboardGlobal/DashboardGlobal.d.ts +13 -13
- package/_dist/layouts/DashboardInner/DashboardInner.d.ts +5 -5
- package/_dist/layouts/DocsLayout/DocsLayout.d.ts +6 -6
- package/_dist/layouts/FlexContainer/FlexContainer.d.ts +9 -9
- package/_dist/layouts/GlobalWrapper/GlobalWrapper.d.ts +2 -2
- package/_dist/layouts/SidebarLayout/SidebarLayout.d.ts +5 -5
- package/_dist/layouts/ThreeItemLayout/ThreeItemLayout.d.ts +5 -5
- package/_dist/layouts/TwoItemLayout/TwoItemLayout.d.ts +5 -5
- package/_dist/libs/components/utility-components.d.ts +3 -3
- package/_dist/libs/types/custom-types.d.ts +7 -7
- package/_dist/utilities/color/color-preview-swatches.d.ts +1 -1
- package/package.json +16 -8
|
@@ -15,6 +15,10 @@ export interface SideNavCompactProps extends ComponentPropsWithoutRef<'nav'> {
|
|
|
15
15
|
* Aria label for the navigation.
|
|
16
16
|
*/
|
|
17
17
|
ariaLabel: string;
|
|
18
|
+
/**
|
|
19
|
+
* Additional class names
|
|
20
|
+
*/
|
|
21
|
+
className?: string;
|
|
18
22
|
/**
|
|
19
23
|
* Whether the menu should be rendered as a mobile menu when the viewport is at or below the mobileMenuMaxWidth.
|
|
20
24
|
*/
|
|
@@ -42,12 +46,8 @@ export interface SideNavCompactProps extends ComponentPropsWithoutRef<'nav'> {
|
|
|
42
46
|
* Text to display in the mobile menu trigger button when no active link is found.
|
|
43
47
|
*/
|
|
44
48
|
mobileMenuSelectTextFallback?: string;
|
|
45
|
-
/**
|
|
46
|
-
* Additional class names
|
|
47
|
-
*/
|
|
48
|
-
className?: string;
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
51
|
* SideNavCompact UI component
|
|
52
52
|
*/
|
|
53
|
-
export declare const SideNavCompact: ({ ariaLabel, hasMobileMenu, headingText, labels, menuItems, mobileMenuMaxWidth, mobileMenuSelectTextFallback,
|
|
53
|
+
export declare const SideNavCompact: ({ ariaLabel, className, hasMobileMenu, headingText, labels, menuItems, mobileMenuMaxWidth, mobileMenuSelectTextFallback, ...props }: SideNavCompactProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,6 +9,10 @@ export interface SideNavGlobalProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
9
9
|
* Aria label for the navigation.
|
|
10
10
|
*/
|
|
11
11
|
ariaLabel: string;
|
|
12
|
+
/**
|
|
13
|
+
* Additional class names
|
|
14
|
+
*/
|
|
15
|
+
className?: string;
|
|
12
16
|
/**
|
|
13
17
|
* Should the Pantheon logo be displayed above the menu items?
|
|
14
18
|
* It will not be displayed in the mobile view regardless of this value.
|
|
@@ -39,12 +43,8 @@ export interface SideNavGlobalProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
39
43
|
* Text to display in the mobile menu trigger button when no active link is found.
|
|
40
44
|
*/
|
|
41
45
|
mobileMenuSelectTextFallback?: string;
|
|
42
|
-
/**
|
|
43
|
-
* Additional class names
|
|
44
|
-
*/
|
|
45
|
-
className?: string;
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
48
|
* SideNavGlobal UI component
|
|
49
49
|
*/
|
|
50
|
-
export declare const SideNavGlobal: ({ ariaLabel, hasLogo, isSidebarCollapsed, labels, logoLinkContent, menuItems, mobileMenuSelectTextFallback,
|
|
50
|
+
export declare const SideNavGlobal: ({ ariaLabel, className, hasLogo, isSidebarCollapsed, labels, logoLinkContent, menuItems, mobileMenuSelectTextFallback, ...props }: SideNavGlobalProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NavigationItem } from '@components/navigation/navigation-types';
|
|
2
1
|
import { PDSIcon } from '@components/icons/Icon/Icon';
|
|
2
|
+
import { NavigationItem } from '@components/navigation/navigation-types';
|
|
3
3
|
import './side-nav-global.css';
|
|
4
4
|
export type SideNavGlobalItemProps = NavigationItem & {
|
|
5
5
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import { PDSIcon } from '@components/icons/Icon/Icon';
|
|
3
|
-
import { TabMenuDropdownProps } from './TabMenuDropdown';
|
|
4
3
|
import { NavigationItem } from '@components/navigation/navigation-types';
|
|
4
|
+
import { TabMenuDropdownProps } from './TabMenuDropdown';
|
|
5
5
|
import './tab-menu.css';
|
|
6
6
|
type DropdownSettings = Omit<TabMenuDropdownProps, 'links'>;
|
|
7
7
|
export type TabMenuItemProps = NavigationItem & {
|
|
@@ -27,17 +27,17 @@ export interface TabMenuProps extends ComponentPropsWithoutRef<'nav'> {
|
|
|
27
27
|
* Aria label for the navigation.
|
|
28
28
|
*/
|
|
29
29
|
ariaLabel: string;
|
|
30
|
-
/**
|
|
31
|
-
* Menu items to render.
|
|
32
|
-
*/
|
|
33
|
-
menuItems?: TabMenuItemProps[];
|
|
34
30
|
/**
|
|
35
31
|
* Additional class names
|
|
36
32
|
*/
|
|
37
33
|
className?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Menu items to render.
|
|
36
|
+
*/
|
|
37
|
+
menuItems?: TabMenuItemProps[];
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
40
|
* TabMenu UI component.
|
|
41
41
|
*/
|
|
42
|
-
export declare const TabMenu: ({ ariaLabel,
|
|
42
|
+
export declare const TabMenu: ({ ariaLabel, className, menuItems, ...props }: TabMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
43
43
|
export {};
|
|
@@ -38,6 +38,10 @@ export interface UserMenuProps extends ComponentPropsWithoutRef<'span'> {
|
|
|
38
38
|
* Aria label for the user menu.
|
|
39
39
|
*/
|
|
40
40
|
ariaLabel?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Additional class names.
|
|
43
|
+
*/
|
|
44
|
+
className?: string;
|
|
41
45
|
/**
|
|
42
46
|
* Array of menu items.
|
|
43
47
|
*/
|
|
@@ -58,12 +62,8 @@ export interface UserMenuProps extends ComponentPropsWithoutRef<'span'> {
|
|
|
58
62
|
* If true, the workspace selector will be styled and rendered to work with the mobile version of the navbar menu. Defaults to true.
|
|
59
63
|
*/
|
|
60
64
|
withinNavbar?: boolean;
|
|
61
|
-
/**
|
|
62
|
-
* Additional class names.
|
|
63
|
-
*/
|
|
64
|
-
className?: string;
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
67
|
* UserMenu UI component
|
|
68
68
|
*/
|
|
69
|
-
export declare const UserMenu: ({ ariaLabel, menuItems, userEmail, userImageSrc, userName, withinNavbar,
|
|
69
|
+
export declare const UserMenu: ({ ariaLabel, className, menuItems, userEmail, userImageSrc, userName, withinNavbar, ...props }: UserMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -46,17 +46,21 @@ export interface WorkspaceSelectorProps extends ComponentPropsWithoutRef<'span'>
|
|
|
46
46
|
*/
|
|
47
47
|
ariaLabel?: string;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Additional class names.
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
className?: string;
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* Link to create a new workspace. A link element using the router of your choice.
|
|
54
54
|
*/
|
|
55
|
-
|
|
55
|
+
createWorkspaceLink?: ReactNode;
|
|
56
56
|
/**
|
|
57
57
|
* Label for the filter input.
|
|
58
58
|
*/
|
|
59
59
|
filterLabel?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Placeholder text for the filter input.
|
|
62
|
+
*/
|
|
63
|
+
filterPlaceholder?: string;
|
|
60
64
|
/**
|
|
61
65
|
* Heading for the workspace dropdown menu.
|
|
62
66
|
*/
|
|
@@ -77,13 +81,9 @@ export interface WorkspaceSelectorProps extends ComponentPropsWithoutRef<'span'>
|
|
|
77
81
|
* List of all workspaces for a user.
|
|
78
82
|
*/
|
|
79
83
|
workspaceList?: WorkspaceSelectorItem[];
|
|
80
|
-
/**
|
|
81
|
-
* Additional class names.
|
|
82
|
-
*/
|
|
83
|
-
className?: string;
|
|
84
84
|
}
|
|
85
85
|
/**
|
|
86
86
|
* WorkspaceSelector UI component
|
|
87
87
|
*/
|
|
88
|
-
export declare const WorkspaceSelector: ({ ariaLabel,
|
|
88
|
+
export declare const WorkspaceSelector: ({ ariaLabel, className, createWorkspaceLink, filterLabel, filterPlaceholder, menuHeading, minFilterItems, noResultsText, withinNavbar, workspaceList, ...props }: WorkspaceSelectorProps) => import("react/jsx-runtime").JSX.Element;
|
|
89
89
|
export {};
|
|
@@ -18,12 +18,20 @@ export type FlattenedNavigationItem = {
|
|
|
18
18
|
* A boolean indicating whether the item is the active item.
|
|
19
19
|
*/
|
|
20
20
|
isActive?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Link content — a fully-formed link element using the router of your choice.
|
|
23
|
-
*/
|
|
24
|
-
linkContent: ReactElement;
|
|
25
21
|
/**
|
|
26
22
|
* Nesting level of the item.
|
|
27
23
|
*/
|
|
28
24
|
level: 'top-level' | 'second-level' | 'third-level' | 'fourth-level';
|
|
25
|
+
/**
|
|
26
|
+
* Link content — a fully-formed link element using the router of your choice.
|
|
27
|
+
*/
|
|
28
|
+
linkContent: ReactElement;
|
|
29
29
|
};
|
|
30
|
+
export interface MenuItem {
|
|
31
|
+
id?: string;
|
|
32
|
+
isActive?: boolean;
|
|
33
|
+
isSeparator?: boolean;
|
|
34
|
+
label: string;
|
|
35
|
+
linkContent?: ReactElement;
|
|
36
|
+
links?: MenuItem[];
|
|
37
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
import './banner.css';
|
|
3
3
|
type Banner = {
|
|
4
4
|
id: string;
|
|
5
5
|
isDismissible?: boolean;
|
|
6
|
-
message: string |
|
|
6
|
+
message: string | ReactNode;
|
|
7
7
|
onDismiss?: () => void;
|
|
8
8
|
type?: 'info' | 'warning' | 'critical';
|
|
9
9
|
};
|
|
@@ -15,6 +15,10 @@ export interface BannerProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
15
15
|
* Array of banner objects
|
|
16
16
|
*/
|
|
17
17
|
banners: Banner[];
|
|
18
|
+
/**
|
|
19
|
+
* Additional class names
|
|
20
|
+
*/
|
|
21
|
+
className?: string;
|
|
18
22
|
/**
|
|
19
23
|
* Label for the dismiss button
|
|
20
24
|
*/
|
|
@@ -31,17 +35,13 @@ export interface BannerProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
31
35
|
* Type labels
|
|
32
36
|
*/
|
|
33
37
|
typeLabels?: {
|
|
38
|
+
critical: string;
|
|
34
39
|
info: string;
|
|
35
40
|
warning: string;
|
|
36
|
-
critical: string;
|
|
37
41
|
};
|
|
38
|
-
/**
|
|
39
|
-
* Additional class names
|
|
40
|
-
*/
|
|
41
|
-
className?: string;
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
44
|
* Banner UI component
|
|
45
45
|
*/
|
|
46
|
-
export declare const Banner: ({ banners, dismissLabel, labelNext, labelPrevious, typeLabels,
|
|
46
|
+
export declare const Banner: ({ banners, className, dismissLabel, labelNext, labelPrevious, typeLabels, ...props }: BannerProps) => import("react/jsx-runtime").JSX.Element;
|
|
47
47
|
export {};
|
|
@@ -9,6 +9,10 @@ export type InlineMessageType = 'info' | 'success' | 'warning' | 'critical' | 'w
|
|
|
9
9
|
*/
|
|
10
10
|
type TypeLabels = Record<InlineMessageType, string>;
|
|
11
11
|
export interface InlineMessageProps extends Omit<ComponentPropsWithoutRef<'div'>, 'title'> {
|
|
12
|
+
/**
|
|
13
|
+
* Additional class names
|
|
14
|
+
*/
|
|
15
|
+
className?: string;
|
|
12
16
|
/**
|
|
13
17
|
* Message body.
|
|
14
18
|
*/
|
|
@@ -25,13 +29,9 @@ export interface InlineMessageProps extends Omit<ComponentPropsWithoutRef<'div'>
|
|
|
25
29
|
* Message type labels. Provide translation strings if needed.
|
|
26
30
|
*/
|
|
27
31
|
typeLabels?: TypeLabels;
|
|
28
|
-
/**
|
|
29
|
-
* Additional class names
|
|
30
|
-
*/
|
|
31
|
-
className?: string;
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
34
|
* InlineMessage UI component
|
|
35
35
|
*/
|
|
36
|
-
export declare const InlineMessage: ({
|
|
36
|
+
export declare const InlineMessage: ({ className, message, title, type, typeLabels, ...props }: InlineMessageProps) => import("react/jsx-runtime").JSX.Element;
|
|
37
37
|
export {};
|
|
@@ -4,6 +4,10 @@ import './section-message.css';
|
|
|
4
4
|
export type SectionMessageType = 'info' | 'success' | 'warning' | 'critical' | 'discovery';
|
|
5
5
|
type TypeLabels = Record<SectionMessageType, string>;
|
|
6
6
|
export interface SectionMessageProps extends ComponentPropsWithoutRef<'div'> {
|
|
7
|
+
/**
|
|
8
|
+
* Additional class names.
|
|
9
|
+
*/
|
|
10
|
+
className?: string;
|
|
7
11
|
/**
|
|
8
12
|
* Props for optional call to action button.
|
|
9
13
|
* Can include any Button props except for size and variant.
|
|
@@ -41,13 +45,9 @@ export interface SectionMessageProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
41
45
|
* Message type labels. Provide translation strings if needed.
|
|
42
46
|
*/
|
|
43
47
|
typeLabels?: TypeLabels;
|
|
44
|
-
/**
|
|
45
|
-
* Additional class names.
|
|
46
|
-
*/
|
|
47
|
-
className?: string;
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
50
|
* SectionMessage UI component
|
|
51
51
|
*/
|
|
52
|
-
export declare const SectionMessage: ({ ctaButton, dismissLabel, id, isDismissible,
|
|
52
|
+
export declare const SectionMessage: ({ className, ctaButton, dismissLabel, id, isDismissible, message, onDismiss, title, type, typeLabels, ...props }: SectionMessageProps) => import("react/jsx-runtime").JSX.Element;
|
|
53
53
|
export {};
|
|
@@ -22,6 +22,10 @@ interface ToastProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
22
22
|
* Toast message content.
|
|
23
23
|
*/
|
|
24
24
|
children?: ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* Additional class names
|
|
27
|
+
*/
|
|
28
|
+
className?: string;
|
|
25
29
|
/**
|
|
26
30
|
* ID of individual toast.
|
|
27
31
|
*/
|
|
@@ -34,13 +38,9 @@ interface ToastProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
34
38
|
* Toast type labels. Provide translation strings if needed.
|
|
35
39
|
*/
|
|
36
40
|
typeLabels?: Partial<typeof defaultTypeLabels>;
|
|
37
|
-
/**
|
|
38
|
-
* Additional class names
|
|
39
|
-
*/
|
|
40
|
-
className?: string;
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
43
|
* Toast UI component
|
|
44
44
|
*/
|
|
45
|
-
export declare const Toast: ({ children, id, type, typeLabels,
|
|
45
|
+
export declare const Toast: ({ children, className, id, type, typeLabels, }: ToastProps) => import("react/jsx-runtime").JSX.Element;
|
|
46
46
|
export {};
|
|
@@ -9,6 +9,10 @@ interface ToasterProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
9
9
|
* Duration in milliseconds before the toast will auto-close.
|
|
10
10
|
*/
|
|
11
11
|
autoCloseDuration?: number;
|
|
12
|
+
/**
|
|
13
|
+
* Additional class names
|
|
14
|
+
*/
|
|
15
|
+
className?: string;
|
|
12
16
|
/**
|
|
13
17
|
* Maximum number of toasts that can be displayed at once.
|
|
14
18
|
*/
|
|
@@ -17,13 +21,9 @@ interface ToasterProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
17
21
|
* Location toast objects will show in the UI.
|
|
18
22
|
*/
|
|
19
23
|
position?: 'bottom-right' | 'top-right';
|
|
20
|
-
/**
|
|
21
|
-
* Additional class names
|
|
22
|
-
*/
|
|
23
|
-
className?: string;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* Toaster UI component
|
|
27
27
|
*/
|
|
28
|
-
export declare const Toaster: ({ autoCloseDuration, limit, position,
|
|
28
|
+
export declare const Toaster: ({ autoCloseDuration, className, limit, position, }: ToasterProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
29
|
export {};
|
|
@@ -2,9 +2,9 @@ import { ReactElement } from 'react';
|
|
|
2
2
|
import { cssTransition, toast as toastApi, ToastOptions } from 'react-toastify';
|
|
3
3
|
export declare enum ToastType {
|
|
4
4
|
Critical = "critical",
|
|
5
|
-
|
|
6
|
-
Working = "working",
|
|
5
|
+
Info = "info",
|
|
7
6
|
Success = "success",
|
|
8
|
-
|
|
7
|
+
Warning = "warning",
|
|
8
|
+
Working = "working"
|
|
9
9
|
}
|
|
10
10
|
export declare const useToast: () => [(type: ToastType, message: string | ReactElement, options?: ToastOptions) => string | number, typeof toastApi, ReturnType<typeof cssTransition>];
|
|
@@ -8,6 +8,10 @@ interface ExpansionPanelProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
8
8
|
* The content of the expansion panel.
|
|
9
9
|
*/
|
|
10
10
|
children?: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Additional class names
|
|
13
|
+
*/
|
|
14
|
+
className?: string;
|
|
11
15
|
/**
|
|
12
16
|
* The ID of the expansion panel. If not provided, a unique ID will be generated.
|
|
13
17
|
*/
|
|
@@ -20,13 +24,9 @@ interface ExpansionPanelProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
20
24
|
* The summary label of the expansion panel.
|
|
21
25
|
*/
|
|
22
26
|
summary?: string | ReactNode;
|
|
23
|
-
/**
|
|
24
|
-
* Additional class names
|
|
25
|
-
*/
|
|
26
|
-
className?: string;
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
29
|
* ExpansionPanel UI component
|
|
30
30
|
*/
|
|
31
|
-
export declare const ExpansionPanel: ({ children, id, isOpen, summary,
|
|
31
|
+
export declare const ExpansionPanel: ({ children, className, id, isOpen, summary, ...props }: ExpansionPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
32
|
export {};
|
|
@@ -8,17 +8,17 @@ interface ExpansionPanelGroupProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
8
8
|
* The content of the expansion panel group. This should be a series of ExpansionPanel components.
|
|
9
9
|
*/
|
|
10
10
|
children?: ReactNode;
|
|
11
|
-
/**
|
|
12
|
-
* The display type of the expansion panel group.
|
|
13
|
-
*/
|
|
14
|
-
displayType?: 'standard' | 'no-border' | 'stacked';
|
|
15
11
|
/**
|
|
16
12
|
* Additional class names
|
|
17
13
|
*/
|
|
18
14
|
className?: string;
|
|
15
|
+
/**
|
|
16
|
+
* The display type of the expansion panel group.
|
|
17
|
+
*/
|
|
18
|
+
displayType?: 'standard' | 'no-border' | 'stacked';
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* ExpansionPanelGroup UI component
|
|
22
22
|
*/
|
|
23
|
-
export declare const ExpansionPanelGroup: ({ children,
|
|
23
|
+
export declare const ExpansionPanelGroup: ({ children, className, displayType, ...props }: ExpansionPanelGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
export {};
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import './panel.css';
|
|
3
2
|
import { GridGapOptions } from '@layouts/layout-types';
|
|
3
|
+
import './panel.css';
|
|
4
4
|
type StatusType = 'info' | 'success' | 'warning' | 'critical' | 'neutral';
|
|
5
5
|
export interface PanelProps extends ComponentPropsWithoutRef<'div'> {
|
|
6
6
|
/**
|
|
7
7
|
* Panel content.
|
|
8
8
|
*/
|
|
9
9
|
children: ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* Additional class names
|
|
12
|
+
*/
|
|
13
|
+
className?: string;
|
|
10
14
|
/**
|
|
11
15
|
* Should the panel show a status indicator.
|
|
12
16
|
*/
|
|
@@ -23,13 +27,9 @@ export interface PanelProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
23
27
|
* Which variant of panel to render
|
|
24
28
|
*/
|
|
25
29
|
variant?: 'default' | 'sunken' | 'raised' | 'overlay' | 'critical';
|
|
26
|
-
/**
|
|
27
|
-
* Additional class names
|
|
28
|
-
*/
|
|
29
|
-
className?: string;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Panel UI component
|
|
33
33
|
*/
|
|
34
|
-
export declare const Panel: ({ children, hasStatusIndicator, padding, statusType, variant,
|
|
34
|
+
export declare const Panel: ({ children, className, hasStatusIndicator, padding, statusType, variant, ...props }: PanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
35
35
|
export {};
|
|
@@ -13,16 +13,16 @@ export interface PanelListProps extends ComponentPropsWithoutRef<'ul'> {
|
|
|
13
13
|
* Children components. These should be PanelRow components.
|
|
14
14
|
*/
|
|
15
15
|
children?: ReactNode;
|
|
16
|
-
/**
|
|
17
|
-
* Whether to have an outside border. There will always be a border between rows.
|
|
18
|
-
*/
|
|
19
|
-
hasBorder?: boolean;
|
|
20
16
|
/**
|
|
21
17
|
* Additional class names.
|
|
22
18
|
*/
|
|
23
19
|
className?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Whether to have an outside border. There will always be a border between rows.
|
|
22
|
+
*/
|
|
23
|
+
hasBorder?: boolean;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* PanelList UI component
|
|
27
27
|
*/
|
|
28
|
-
export declare const PanelList: ({ background, children,
|
|
28
|
+
export declare const PanelList: ({ background, children, className, hasBorder, ...props }: PanelListProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -12,16 +12,16 @@ export interface PanelRowProps extends ComponentPropsWithoutRef<'li'> {
|
|
|
12
12
|
* Additional class names.
|
|
13
13
|
*/
|
|
14
14
|
className?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Whether the panel row is expandable.
|
|
17
|
-
*/
|
|
18
|
-
isExpandable?: boolean;
|
|
19
15
|
/**
|
|
20
16
|
* Aria-label for the expand button.
|
|
21
17
|
*/
|
|
22
18
|
expandButtonAriaLabel?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the panel row is expandable.
|
|
21
|
+
*/
|
|
22
|
+
isExpandable?: boolean;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* PanelRow UI component
|
|
26
26
|
*/
|
|
27
|
-
export declare const PanelRow: ({ children, className,
|
|
27
|
+
export declare const PanelRow: ({ children, className, expandButtonAriaLabel, isExpandable, ...props }: PanelRowProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,6 +5,10 @@ interface ProgressBarBreakpoint {
|
|
|
5
5
|
percentage: number;
|
|
6
6
|
}
|
|
7
7
|
interface ProgressBarProps extends ComponentPropsWithoutRef<'div'> {
|
|
8
|
+
/**
|
|
9
|
+
* Additional class names
|
|
10
|
+
*/
|
|
11
|
+
className?: string;
|
|
8
12
|
/**
|
|
9
13
|
* Array of color breakpoints. Each breakpoint should have a `colorType` and `percentage` value.
|
|
10
14
|
*/
|
|
@@ -41,13 +45,9 @@ interface ProgressBarProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
41
45
|
* Size of the progress bar.
|
|
42
46
|
*/
|
|
43
47
|
size?: 'sm' | 'md' | 'lg';
|
|
44
|
-
/**
|
|
45
|
-
* Additional class names
|
|
46
|
-
*/
|
|
47
|
-
className?: string;
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
50
|
* ProgressBar UI component
|
|
51
51
|
*/
|
|
52
|
-
export declare const ProgressBar: ({ colorBreakpoints, id, label, message, messagePosition, percentage, showLabel, showPercentage, size,
|
|
52
|
+
export declare const ProgressBar: ({ className, colorBreakpoints, id, label, message, messagePosition, percentage, showLabel, showPercentage, size, ...props }: ProgressBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
53
53
|
export {};
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
import './progress-ring.css';
|
|
3
3
|
interface ProgressRingProps extends ComponentPropsWithoutRef<'div'> {
|
|
4
|
+
/**
|
|
5
|
+
* Additional class names
|
|
6
|
+
*/
|
|
7
|
+
className?: string;
|
|
4
8
|
/**
|
|
5
9
|
* ID of the Progress Ring. If not provided, a unique ID will be generated.
|
|
6
10
|
*/
|
|
@@ -29,13 +33,9 @@ interface ProgressRingProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
29
33
|
* Size of the progress ring.
|
|
30
34
|
*/
|
|
31
35
|
size?: 'sm' | 'md' | 'lg';
|
|
32
|
-
/**
|
|
33
|
-
* Additional class names
|
|
34
|
-
*/
|
|
35
|
-
className?: string;
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* ProgressRing UI component
|
|
39
39
|
*/
|
|
40
|
-
export declare const ProgressRing: ({ id, innerLabel, label, percentage, showLabel, showPercentage, size,
|
|
40
|
+
export declare const ProgressRing: ({ className, id, innerLabel, label, percentage, showLabel, showPercentage, size, ...props }: ProgressRingProps) => import("react/jsx-runtime").JSX.Element;
|
|
41
41
|
export {};
|
|
@@ -28,12 +28,16 @@ interface Step {
|
|
|
28
28
|
label: string;
|
|
29
29
|
}
|
|
30
30
|
interface TranslatableLabels {
|
|
31
|
-
step: string;
|
|
32
31
|
completed: string;
|
|
33
32
|
hasError: string;
|
|
34
33
|
next: string;
|
|
34
|
+
step: string;
|
|
35
35
|
}
|
|
36
36
|
interface StepperProps extends ComponentPropsWithoutRef<'div'> {
|
|
37
|
+
/**
|
|
38
|
+
* Additional class names
|
|
39
|
+
*/
|
|
40
|
+
className?: string;
|
|
37
41
|
/**
|
|
38
42
|
* An array of step objects
|
|
39
43
|
*/
|
|
@@ -42,13 +46,9 @@ interface StepperProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
42
46
|
* Translatable strings for visually-hidden text.
|
|
43
47
|
*/
|
|
44
48
|
translatableLabels?: TranslatableLabels;
|
|
45
|
-
/**
|
|
46
|
-
* Additional class names
|
|
47
|
-
*/
|
|
48
|
-
className?: string;
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
51
|
* Stepper UI component
|
|
52
52
|
*/
|
|
53
|
-
export declare const Stepper: ({ steps, translatableLabels,
|
|
53
|
+
export declare const Stepper: ({ className, steps, translatableLabels, ...props }: StepperProps) => import("react/jsx-runtime").JSX.Element;
|
|
54
54
|
export {};
|
|
@@ -5,6 +5,10 @@ import './vertical-stepper.css';
|
|
|
5
5
|
* Prop types for VerticalStep
|
|
6
6
|
*/
|
|
7
7
|
export interface VerticalStepProps extends ComponentPropsWithoutRef<'li'> {
|
|
8
|
+
/**
|
|
9
|
+
* Is this the first step? Internal prop.
|
|
10
|
+
*/
|
|
11
|
+
_isFirstStep?: boolean;
|
|
8
12
|
/**
|
|
9
13
|
* Props for the back button.
|
|
10
14
|
* Can include any props except for size and variant.
|
|
@@ -41,12 +45,8 @@ export interface VerticalStepProps extends ComponentPropsWithoutRef<'li'> {
|
|
|
41
45
|
* The content for the step.
|
|
42
46
|
*/
|
|
43
47
|
stepContent?: ReactNode;
|
|
44
|
-
/**
|
|
45
|
-
* Is this the first step? Internal prop.
|
|
46
|
-
*/
|
|
47
|
-
_isFirstStep?: boolean;
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
50
|
* VerticalStepper UI component
|
|
51
51
|
*/
|
|
52
|
-
export declare const VerticalStep: ({ backButton, forwardButton, hasError, id, isCurrent, label, stepContent,
|
|
52
|
+
export declare const VerticalStep: ({ _isFirstStep, backButton, forwardButton, hasError, id, isComplete, isCurrent, label, stepContent, ...props }: VerticalStepProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,6 +5,10 @@ import './vertical-stepper.css';
|
|
|
5
5
|
* Prop types for VerticalStepper
|
|
6
6
|
*/
|
|
7
7
|
export interface VerticalStepperProps extends ComponentPropsWithoutRef<'div'> {
|
|
8
|
+
/**
|
|
9
|
+
* Additional class names
|
|
10
|
+
*/
|
|
11
|
+
className?: string;
|
|
8
12
|
/**
|
|
9
13
|
* Object with translatable strings.
|
|
10
14
|
*/
|
|
@@ -17,12 +21,8 @@ export interface VerticalStepperProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
17
21
|
* The steps to display in the stepper.
|
|
18
22
|
*/
|
|
19
23
|
steps?: VerticalStepProps[];
|
|
20
|
-
/**
|
|
21
|
-
* Additional class names
|
|
22
|
-
*/
|
|
23
|
-
className?: string;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* VerticalStepper UI component
|
|
27
27
|
*/
|
|
28
|
-
export declare const VerticalStepper: ({ labelStrings, steps,
|
|
28
|
+
export declare const VerticalStepper: ({ className, labelStrings, steps, ...props }: VerticalStepperProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,27 +2,27 @@ import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
|
2
2
|
import '../tiles-common.css';
|
|
3
3
|
import './avatar-tile-list.css';
|
|
4
4
|
export type AvatarTileListItem = {
|
|
5
|
-
image?: string;
|
|
6
5
|
alt?: string;
|
|
6
|
+
image?: string;
|
|
7
|
+
linkContent?: ReactNode;
|
|
7
8
|
name?: string;
|
|
8
|
-
title?: string;
|
|
9
9
|
org?: string;
|
|
10
|
-
|
|
10
|
+
title?: string;
|
|
11
11
|
};
|
|
12
12
|
/**
|
|
13
13
|
* Prop types for AvatarTileList
|
|
14
14
|
*/
|
|
15
15
|
export interface AvatarTileListProps extends ComponentPropsWithoutRef<'div'> {
|
|
16
|
-
/**
|
|
17
|
-
* List of items for each tile.
|
|
18
|
-
*/
|
|
19
|
-
listItems: AvatarTileListItem[];
|
|
20
16
|
/**
|
|
21
17
|
* Additional class names
|
|
22
18
|
*/
|
|
23
19
|
className?: string;
|
|
20
|
+
/**
|
|
21
|
+
* List of items for each tile.
|
|
22
|
+
*/
|
|
23
|
+
listItems: AvatarTileListItem[];
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* AvatarTileList UI component
|
|
27
27
|
*/
|
|
28
|
-
export declare const AvatarTileList: ({
|
|
28
|
+
export declare const AvatarTileList: ({ className, listItems, ...props }: AvatarTileListProps) => import("react/jsx-runtime").JSX.Element;
|