@pantheon-systems/pds-toolkit-react 1.0.0-dev.9999 → 1.1.0
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/README.md +1 -1
- package/_dist/components/Avatar/Avatar.d.ts +6 -6
- package/_dist/components/BranchDiff/BranchDiff.d.ts +10 -10
- package/_dist/components/CTALink/CTALink.d.ts +6 -6
- package/_dist/components/CTASlice/CTASlice.d.ts +7 -7
- package/_dist/components/Callout/Callout.d.ts +9 -8
- package/_dist/components/Callout/sample-callout-content.d.ts +1 -2
- package/_dist/components/CodeBlock/CodeBlock.d.ts +6 -6
- package/_dist/components/ComparisonList/ComparisonList.d.ts +7 -7
- package/_dist/components/DashboardStat/DashboardStat.d.ts +11 -11
- package/_dist/components/FileDiff/FileDiff.d.ts +11 -11
- package/_dist/components/FlowSteps/FlowSteps.d.ts +10 -10
- package/_dist/components/FlowSteps/example-steps.d.ts +3 -4
- package/_dist/components/LinkNewWindow/LinkNewWindow.d.ts +6 -6
- package/_dist/components/Modal/Modal.d.ts +6 -6
- package/_dist/components/Pagination/Pagination.d.ts +8 -8
- package/_dist/components/PantheonLogo/PantheonLogo.d.ts +6 -6
- package/_dist/components/PantheonLogo/pantheon-logo-data.d.ts +3 -4
- package/_dist/components/Picture/Picture.d.ts +15 -15
- package/_dist/components/Popover/Popover.d.ts +22 -23
- package/_dist/components/PullQuote/PullQuote.d.ts +7 -7
- package/_dist/components/RefreshChecker/RefreshChecker.d.ts +10 -10
- package/_dist/components/SiteDashboardHeading/SiteDashboardHeading.d.ts +17 -12
- package/_dist/components/Skiplink/Skiplink.d.ts +6 -6
- package/_dist/components/SocialLinks/SocialLinks.d.ts +8 -8
- package/_dist/components/StatusIndicator/StatusIndicator.d.ts +8 -7
- package/_dist/components/Table/Table.d.ts +9 -9
- package/_dist/components/TableOfContents/TableOfContents.d.ts +9 -9
- package/_dist/components/Tabs/Tabs.d.ts +15 -15
- package/_dist/components/Tag/Tag.d.ts +8 -8
- package/_dist/components/ThemeSwitcher/ThemeSwitcher.d.ts +9 -9
- package/_dist/components/Tooltip/Tooltip.d.ts +7 -7
- package/_dist/components/VideoEmbed/VideoEmbed.d.ts +6 -6
- package/_dist/components/badges/IndicatorBadge/IndicatorBadge.d.ts +7 -7
- package/_dist/components/badges/StatusBadge/StatusBadge.d.ts +8 -7
- package/_dist/components/badges/Tally/Tally.d.ts +8 -8
- package/_dist/components/buttons/Button/Button.d.ts +11 -10
- package/_dist/components/buttons/ButtonLink/ButtonLink.d.ts +8 -8
- package/_dist/components/buttons/ClipboardButton/ClipboardButton.d.ts +6 -6
- package/_dist/components/buttons/CloseButton/CloseButton.d.ts +6 -6
- package/_dist/components/buttons/IconButton/IconButton.d.ts +12 -11
- package/_dist/components/buttons/MenuButton/MenuButton.d.ts +11 -11
- package/_dist/components/buttons/SegmentedButton/SegmentedButton.d.ts +13 -14
- package/_dist/components/buttons/SplitButton/SplitButton.d.ts +9 -9
- package/_dist/components/buttons/SplitButton/split-button-sample-data.d.ts +1 -2
- package/_dist/components/buttons/UtilityButton/UtilityButton.d.ts +25 -11
- package/_dist/components/cards/Card/Card.d.ts +7 -7
- package/_dist/components/cards/CardHeading/CardHeading.d.ts +6 -7
- package/_dist/components/cards/CardSelectGroup/CardSelectGroup.d.ts +10 -10
- package/_dist/components/cards/EmptyStateCard/EmptyStateCard.d.ts +7 -7
- package/_dist/components/cards/LinksCard/LinksCard.d.ts +7 -7
- package/_dist/components/cards/NewSiteCard/NewSiteCard.d.ts +12 -12
- package/_dist/components/cards/PaymentCard/PaymentCard.d.ts +16 -16
- package/_dist/components/cards/PricingCard/PricingCard.d.ts +22 -22
- package/_dist/components/cards/SiteCard/SiteCard.d.ts +13 -8
- package/_dist/components/empty-states/CompactEmptyState/CompactEmptyState.d.ts +9 -9
- package/_dist/components/empty-states/HorizontalEmptyState/HorizontalEmptyState.d.ts +27 -27
- package/_dist/components/empty-states/VerticalEmptyState/VerticalEmptyState.d.ts +15 -15
- package/_dist/components/footer/FooterHeading/FooterHeading.d.ts +7 -7
- package/_dist/components/footer/FooterLinks/FooterLinks.d.ts +7 -7
- package/_dist/components/footer/SiteFooter/SiteFooter.d.ts +11 -11
- package/_dist/components/footer/SiteFooter/footer-content.d.ts +1 -2
- package/_dist/components/icons/Icon/Icon.d.ts +19 -8
- package/_dist/components/icons/PaymentIcon/PaymentIcon.d.ts +6 -6
- package/_dist/components/icons/PaymentIcon/svgData.d.ts +5 -6
- package/_dist/components/icons/PlatformIcon/PlatformIcon.d.ts +3 -3
- package/_dist/components/inputs/Checkbox/Checkbox.d.ts +7 -7
- package/_dist/components/inputs/CheckboxFieldset/CheckboxFieldset.d.ts +9 -9
- package/_dist/components/inputs/CheckboxGroup/CheckboxGroup.d.ts +8 -8
- package/_dist/components/inputs/Combobox/Combobox.d.ts +22 -17
- package/_dist/components/inputs/ComboboxMultiselect/ComboboxMultiselect.d.ts +12 -12
- package/_dist/components/inputs/Datepicker/Datepicker.d.ts +96 -0
- package/_dist/components/inputs/FileUpload/FileUpload.d.ts +6 -6
- package/_dist/components/inputs/InputGroup/InputGroup.d.ts +2 -2
- package/_dist/components/inputs/RadioGroup/RadioGroup.d.ts +13 -13
- package/_dist/components/inputs/Select/Select.d.ts +23 -14
- package/_dist/components/inputs/Select/select-sample-data.d.ts +6 -0
- package/_dist/components/inputs/Switch/Switch.d.ts +9 -7
- package/_dist/components/inputs/TextInput/TextInput.d.ts +9 -9
- package/_dist/components/inputs/Textarea/Textarea.d.ts +14 -13
- package/_dist/components/inputs/input-utilities.d.ts +35 -35
- package/_dist/components/loading-indicators/Skeleton/Skeleton.d.ts +7 -7
- package/_dist/components/loading-indicators/Spinner/Spinner.d.ts +6 -6
- package/_dist/components/navigation/Breadcrumb/Breadcrumb.d.ts +6 -6
- package/_dist/components/navigation/ButtonNav/ButtonNav.d.ts +7 -7
- package/_dist/components/navigation/DashboardNav/DashboardNav.d.ts +6 -6
- package/_dist/components/navigation/DashboardNav/DashboardNavItem.d.ts +5 -6
- package/_dist/components/navigation/DashboardSearch/DashboardSearch.d.ts +12 -12
- package/_dist/components/navigation/DropdownMenu/DropdownMenu.d.ts +7 -7
- package/_dist/components/navigation/NavMenu/NavMenu.d.ts +8 -18
- package/_dist/components/navigation/NavMenu/NavMenuDropdown.d.ts +4 -4
- package/_dist/components/navigation/Navbar/Navbar.d.ts +8 -8
- package/_dist/components/navigation/SideNav/SideNav.d.ts +7 -7
- package/_dist/components/navigation/SideNavCompact/SideNavCompact.d.ts +7 -7
- package/_dist/components/navigation/SideNavGlobal/SideNavGlobal.d.ts +6 -6
- package/_dist/components/navigation/SideNavGlobal/SideNavGlobalItem.d.ts +5 -6
- package/_dist/components/navigation/TabMenu/TabMenu.d.ts +10 -10
- package/_dist/components/navigation/TabMenu/TabMenuDropdown.d.ts +4 -5
- package/_dist/components/navigation/UserMenu/UserMenu.d.ts +7 -7
- package/_dist/components/navigation/WorkspaceSelector/WorkspaceSelector.d.ts +24 -10
- package/_dist/components/navigation/navigation-utilities.d.ts +3 -3
- package/_dist/components/notifications/Banner/Banner.d.ts +11 -9
- package/_dist/components/notifications/InlineMessage/InlineMessage.d.ts +8 -7
- package/_dist/components/notifications/SectionMessage/SectionMessage.d.ts +9 -8
- package/_dist/components/notifications/Toaster/Toast.d.ts +6 -6
- package/_dist/components/notifications/Toaster/Toaster.d.ts +6 -6
- package/_dist/components/notifications/Toaster/useToast.d.ts +3 -3
- package/_dist/components/panels/ExpansionPanel/ExpansionPanel.d.ts +6 -6
- package/_dist/components/panels/ExpansionPanelGroup/ExpansionPanelGroup.d.ts +6 -6
- package/_dist/components/panels/Panel/Panel.d.ts +16 -9
- package/_dist/components/panels/PanelList/PanelList.d.ts +8 -4
- package/_dist/components/panels/PanelList/PanelRow.d.ts +6 -6
- package/_dist/components/progress-indicators/ProgressBar/ProgressBar.d.ts +8 -7
- package/_dist/components/progress-indicators/ProgressRing/ProgressRing.d.ts +6 -6
- package/_dist/components/steppers/Stepper/Stepper.d.ts +7 -7
- package/_dist/components/steppers/VerticalStepper/VerticalStep.d.ts +7 -7
- package/_dist/components/steppers/VerticalStepper/VerticalStepper.d.ts +6 -6
- package/_dist/components/steppers/VerticalStepper/vertical-stepper-sample-data.d.ts +3 -4
- package/_dist/components/tiles/AvatarTileList/AvatarTileList.d.ts +9 -9
- package/_dist/components/tiles/Tile/Tile.d.ts +7 -7
- package/_dist/components/tiles/TileGrid/TileGrid.d.ts +8 -8
- 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-combobox-multiselect.css +1 -1
- package/_dist/css/component-css/pds-combobox.css +1 -1
- package/_dist/css/component-css/pds-dashboard-nav.css +1 -1
- package/_dist/css/component-css/pds-dashboard-search.css +1 -1
- package/_dist/css/component-css/pds-datepicker.css +3 -0
- package/_dist/css/component-css/pds-index.css +34 -16
- 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-menu-button.css +1 -2
- package/_dist/css/component-css/pds-navbar.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-progress-bar.css +1 -1
- package/_dist/css/component-css/pds-progress-ring.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-select.css +1 -1
- package/_dist/css/component-css/pds-side-nav-compact.css +1 -1
- package/_dist/css/component-css/pds-side-nav-global.css +1 -1
- package/_dist/css/component-css/pds-side-nav.css +1 -2
- package/_dist/css/component-css/pds-site-card.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-tab-menu.css +1 -1
- package/_dist/css/component-css/pds-table.css +1 -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/component-css/pds-workspace-selector.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 +34 -16
- package/_dist/css/pds-core.css +2 -2
- package/_dist/css/pds-layouts.css +1 -1
- package/_dist/index.css +1 -1
- package/_dist/index.d.ts +5 -2
- package/_dist/index.js +8309 -8595
- package/_dist/index.js.map +1 -1
- package/_dist/layouts/AppLayout/AppLayout.d.ts +7 -7
- package/_dist/layouts/Container/Container.d.ts +7 -7
- package/_dist/layouts/DashboardGlobal/DashboardGlobal.d.ts +13 -13
- package/_dist/layouts/DashboardInner/DashboardInner.d.ts +8 -7
- package/_dist/layouts/DocsLayout/DocsLayout.d.ts +7 -7
- package/_dist/layouts/FlexContainer/FlexContainer.d.ts +11 -11
- package/_dist/layouts/GlobalWrapper/GlobalWrapper.d.ts +3 -3
- package/_dist/layouts/SidebarLayout/SidebarLayout.d.ts +9 -8
- package/_dist/layouts/StepperLayout/StepperLayout.d.ts +2 -2
- package/_dist/layouts/ThreeItemLayout/ThreeItemLayout.d.ts +7 -7
- package/_dist/layouts/TwoItemLayout/TwoItemLayout.d.ts +7 -7
- package/_dist/{components/navigation/DashboardSearch → libs/components/SiteOptionDisplay}/SiteOptionDisplay.d.ts +11 -7
- package/_dist/libs/components/sb-docs-toc-layout.d.ts +2 -2
- package/_dist/libs/components/utility-components.d.ts +4 -4
- package/_dist/libs/types/custom-types.d.ts +46 -10
- package/_dist/{components/navigation → libs/types}/navigation-types.d.ts +15 -7
- package/_dist/mocks/data/navigation-items.d.ts +58 -147
- package/_dist/mocks/markup/dashboard-main-content.d.ts +3 -4
- package/_dist/mocks/markup/dashboard-navigation.d.ts +3 -4
- package/_dist/mocks/markup/inputs.d.ts +1 -2
- package/_dist/mocks/markup/modal.d.ts +1 -2
- package/_dist/mocks/markup/panel-row-content.d.ts +5 -6
- package/_dist/utilities/color/color-preview-swatches.d.ts +3 -4
- package/_dist/utilities/context-providers/OverlayContext/OverlayContext.d.ts +12 -0
- package/_dist/utilities/context-providers/ResponsiveContext/ResponsiveContext.d.ts +1 -1
- package/_dist/vars/animation.d.ts +2 -2
- package/package.json +50 -43
- /package/_dist/{components/inputs → libs/types}/input-types.d.ts +0 -0
- /package/_dist/{layouts → libs/types}/layout-types.d.ts +0 -0
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
This toolkit provides assets for use within a React project and a Storybook instance to preview the components.
|
|
6
6
|
|
|
7
|
-
[Published Storybook](https://
|
|
7
|
+
[Published Storybook](https://pds-react.pantheon.io/)
|
|
8
8
|
|
|
9
9
|
## Toolkit philosophy and scope
|
|
10
10
|
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
import './avatar.css';
|
|
3
3
|
export interface AvatarProps extends ComponentPropsWithoutRef<'div'> {
|
|
4
4
|
/**
|
|
5
5
|
* Aria label for the avatar when used as a link. This is required if using a link.
|
|
6
6
|
*/
|
|
7
7
|
ariaLabel?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Additional class names
|
|
10
|
+
*/
|
|
11
|
+
className?: string;
|
|
8
12
|
/**
|
|
9
13
|
* If true, a user icon will be displayed with the fallback gradient when an image is not provided.
|
|
10
14
|
*/
|
|
@@ -25,12 +29,8 @@ export interface AvatarProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
25
29
|
* Unique ID associated with the avatar. Can be workspace ID, user ID, email, etc.
|
|
26
30
|
*/
|
|
27
31
|
uniqueId?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Additional class names
|
|
30
|
-
*/
|
|
31
|
-
className?: string;
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
34
|
* Avatar UI component
|
|
35
35
|
*/
|
|
36
|
-
export declare const Avatar: ({ ariaLabel, hasUserFallback, imageSrc, linkContent, size, uniqueId,
|
|
36
|
+
export declare const Avatar: ({ ariaLabel, className, hasUserFallback, imageSrc, linkContent, size, uniqueId, ...props }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,17 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import './branch-diff.css';
|
|
3
3
|
/**
|
|
4
4
|
* Prop types for BranchDiff
|
|
5
5
|
*/
|
|
6
6
|
export interface BranchDiffProps extends ComponentPropsWithoutRef<'div'> {
|
|
7
|
+
/**
|
|
8
|
+
* Additional class names
|
|
9
|
+
*/
|
|
10
|
+
className?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Custom width in rems for the component. This will override the default.
|
|
13
|
+
*/
|
|
14
|
+
componentWidth?: number;
|
|
7
15
|
/**
|
|
8
16
|
* Is the component in the process of loading?
|
|
9
17
|
*/
|
|
@@ -28,16 +36,8 @@ export interface BranchDiffProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
28
36
|
* A description for the `numberBehind` value.
|
|
29
37
|
*/
|
|
30
38
|
numberBehindDescription?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Custom width in rems for the component. This will override the default.
|
|
33
|
-
*/
|
|
34
|
-
componentWidth?: number;
|
|
35
|
-
/**
|
|
36
|
-
* Additional class names
|
|
37
|
-
*/
|
|
38
|
-
className?: string;
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
41
|
* BranchDiff UI component
|
|
42
42
|
*/
|
|
43
|
-
export declare const BranchDiff: ({ isLoading, loadingText, numberAhead, numberAheadDescription, numberBehind, numberBehindDescription,
|
|
43
|
+
export declare const BranchDiff: ({ className, componentWidth, isLoading, loadingText, numberAhead, numberAheadDescription, numberBehind, numberBehindDescription, ...props }: BranchDiffProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
import './cta-link.css';
|
|
3
3
|
export interface CTALinkProps extends ComponentPropsWithoutRef<'div'> {
|
|
4
|
+
/**
|
|
5
|
+
* Additional class names
|
|
6
|
+
*/
|
|
7
|
+
className?: string;
|
|
4
8
|
/**
|
|
5
9
|
* A link element using the router of your choice.
|
|
6
10
|
*/
|
|
@@ -9,12 +13,8 @@ export interface CTALinkProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
9
13
|
* Size of link
|
|
10
14
|
*/
|
|
11
15
|
size?: 'sm' | 'md';
|
|
12
|
-
/**
|
|
13
|
-
* Additional class names
|
|
14
|
-
*/
|
|
15
|
-
className?: string;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
* CTA Link UI component
|
|
19
19
|
*/
|
|
20
|
-
export declare const CTALink: ({ linkContent, size,
|
|
20
|
+
export declare const CTALink: ({ className, linkContent, size, ...props }: CTALinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ContainerWidth, HeadingLevel } from '
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import { ContainerWidth, HeadingLevel } from '../../libs/types/custom-types';
|
|
3
3
|
import './../buttons/Button/button.css';
|
|
4
4
|
import './cta-slice.css';
|
|
5
5
|
interface CTASliceProps extends ComponentPropsWithoutRef<'div'> {
|
|
@@ -7,6 +7,10 @@ interface CTASliceProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
7
7
|
* Background color of slice
|
|
8
8
|
*/
|
|
9
9
|
backgroundColor?: 'default' | 'secondary';
|
|
10
|
+
/**
|
|
11
|
+
* Additional class names
|
|
12
|
+
*/
|
|
13
|
+
className?: string;
|
|
10
14
|
/**
|
|
11
15
|
* PDS container width.
|
|
12
16
|
*/
|
|
@@ -31,13 +35,9 @@ interface CTASliceProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
31
35
|
* Optional secondary link content
|
|
32
36
|
*/
|
|
33
37
|
secondaryLinkContent?: ReactNode;
|
|
34
|
-
/**
|
|
35
|
-
* Additional class names
|
|
36
|
-
*/
|
|
37
|
-
className?: string;
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
40
|
* CTA Slice UI component
|
|
41
41
|
*/
|
|
42
|
-
export declare const CTASlice: ({ backgroundColor, containerWidth, headingLevel, headingText, leadText, primaryLinkContent, secondaryLinkContent,
|
|
42
|
+
export declare const CTASlice: ({ backgroundColor, className, containerWidth, headingLevel, headingText, leadText, primaryLinkContent, secondaryLinkContent, ...props }: CTASliceProps) => import("react/jsx-runtime").JSX.Element;
|
|
43
43
|
export {};
|
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import { StatusType } from '../../libs/types/custom-types';
|
|
2
3
|
import './callout.css';
|
|
3
|
-
type CalloutType =
|
|
4
|
+
type CalloutType = StatusType | 'code' | 'earlyAccess';
|
|
4
5
|
type TypeLabels = Record<CalloutType, string>;
|
|
5
6
|
export interface CalloutProps extends ComponentPropsWithoutRef<'div'> {
|
|
6
7
|
/**
|
|
7
8
|
* Callout main content.
|
|
8
9
|
*/
|
|
9
|
-
children:
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Additional class names
|
|
13
|
+
*/
|
|
14
|
+
className?: string;
|
|
10
15
|
/**
|
|
11
16
|
* Callout title.
|
|
12
17
|
*/
|
|
@@ -19,13 +24,9 @@ export interface CalloutProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
19
24
|
* Callout type labels. Provide translation strings if necessary.
|
|
20
25
|
*/
|
|
21
26
|
typeLabels?: TypeLabels;
|
|
22
|
-
/**
|
|
23
|
-
* Additional class names
|
|
24
|
-
*/
|
|
25
|
-
className?: string;
|
|
26
27
|
}
|
|
27
28
|
/**
|
|
28
29
|
* Callout UI component
|
|
29
30
|
*/
|
|
30
|
-
export declare const Callout: ({ children, title, type, typeLabels,
|
|
31
|
+
export declare const Callout: ({ children, className, title, type, typeLabels, ...props }: CalloutProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
32
|
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const infoCalloutSample: React.JSX.Element;
|
|
1
|
+
export declare const infoCalloutSample: import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import 'prismjs/components/prism-bash';
|
|
3
3
|
import 'prismjs/components/prism-diff';
|
|
4
4
|
import './code-block.css';
|
|
@@ -8,6 +8,10 @@ type SupportedLanguages = 'bash' | 'css' | 'diff' | 'html' | 'js' | 'json' | 'js
|
|
|
8
8
|
* Prop types for CodeBlock
|
|
9
9
|
*/
|
|
10
10
|
export interface CodeBlockProps extends ComponentPropsWithoutRef<'div'> {
|
|
11
|
+
/**
|
|
12
|
+
* Additional class names
|
|
13
|
+
*/
|
|
14
|
+
className?: string;
|
|
11
15
|
/**
|
|
12
16
|
* Code to display.
|
|
13
17
|
*/
|
|
@@ -73,13 +77,9 @@ export interface CodeBlockProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
73
77
|
* Default is false
|
|
74
78
|
*/
|
|
75
79
|
shouldWrap?: boolean;
|
|
76
|
-
/**
|
|
77
|
-
* Additional class names
|
|
78
|
-
*/
|
|
79
|
-
className?: string;
|
|
80
80
|
}
|
|
81
81
|
/**
|
|
82
82
|
* CodeBlock UI component
|
|
83
83
|
*/
|
|
84
|
-
export declare const CodeBlock: ({ code, colorType, copyButtonLabel, hasCopyButton, hasLineNumbers, hasPrompt, height, isLoading, language, loadingLineCount, maxHeight, promptSymbol, renderAsLegacy, shouldWrap,
|
|
84
|
+
export declare const CodeBlock: ({ className, code, colorType, copyButtonLabel, hasCopyButton, hasLineNumbers, hasPrompt, height, isLoading, language, loadingLineCount, maxHeight, promptSymbol, renderAsLegacy, shouldWrap, ...props }: CodeBlockProps) => import("react/jsx-runtime").JSX.Element;
|
|
85
85
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
import './comparison-list.css';
|
|
3
3
|
interface TypeLabels {
|
|
4
|
+
addon: string;
|
|
4
5
|
included: string;
|
|
5
6
|
notIncluded: string;
|
|
6
|
-
addon: string;
|
|
7
7
|
}
|
|
8
8
|
export interface ListItems {
|
|
9
9
|
text: string;
|
|
@@ -11,9 +11,9 @@ export interface ListItems {
|
|
|
11
11
|
}
|
|
12
12
|
export interface ComparisonListProps extends ComponentPropsWithoutRef<'div'> {
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Additional class names
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
className?: string;
|
|
17
17
|
/**
|
|
18
18
|
* List items
|
|
19
19
|
*/
|
|
@@ -31,12 +31,12 @@ export interface ComparisonListProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
31
31
|
*/
|
|
32
32
|
renderTypeLabels?: boolean;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Icon labels
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
typeLabels?: TypeLabels;
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
39
|
* ComparisonList UI component
|
|
40
40
|
*/
|
|
41
|
-
export declare const ComparisonList: ({ listItems, listLabel, moreLink, renderTypeLabels, typeLabels,
|
|
41
|
+
export declare const ComparisonList: ({ className, listItems, listLabel, moreLink, renderTypeLabels, typeLabels, ...props }: ComparisonListProps) => import("react/jsx-runtime").JSX.Element;
|
|
42
42
|
export {};
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import './dashboard-stat.css';
|
|
3
|
-
export type
|
|
3
|
+
export type DashboardStatStatus = 'success' | 'warning' | 'launch' | 'error' | 'ready' | 'notReady';
|
|
4
4
|
/**
|
|
5
5
|
* Prop types for DashboardStat
|
|
6
6
|
*/
|
|
7
7
|
export interface DashboardStatProps extends ComponentPropsWithoutRef<'div'> {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*/
|
|
11
|
-
title?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Status of the stat, which determines the icon and icon color.
|
|
9
|
+
* Additional class names.
|
|
14
10
|
*/
|
|
15
|
-
|
|
11
|
+
className?: string;
|
|
16
12
|
/**
|
|
17
13
|
* Value of the stat, displayed next to the status icon.
|
|
18
14
|
*/
|
|
19
15
|
stat?: string | number;
|
|
20
16
|
/**
|
|
21
|
-
*
|
|
17
|
+
* Status of the stat, which determines the icon and icon color.
|
|
22
18
|
*/
|
|
23
|
-
|
|
19
|
+
status?: DashboardStatStatus;
|
|
20
|
+
/**
|
|
21
|
+
* Title of the stat, displayed as the main heading of the component.
|
|
22
|
+
*/
|
|
23
|
+
title?: string;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* DashboardStat UI component
|
|
27
27
|
*/
|
|
28
|
-
export declare const DashboardStat: ({
|
|
28
|
+
export declare const DashboardStat: ({ className, stat, status, title, ...props }: DashboardStatProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import './file-diff.css';
|
|
3
3
|
/**
|
|
4
4
|
* Prop types for FileDiff
|
|
@@ -8,6 +8,14 @@ export interface FileDiffProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
8
8
|
* Number of added lines (green bar).
|
|
9
9
|
*/
|
|
10
10
|
additions: number;
|
|
11
|
+
/**
|
|
12
|
+
* Additional class names
|
|
13
|
+
*/
|
|
14
|
+
className?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Custom width in rems for the component. This will override the default.
|
|
17
|
+
*/
|
|
18
|
+
componentWidth?: number;
|
|
11
19
|
/**
|
|
12
20
|
* Number of removed lines (red bar).
|
|
13
21
|
*/
|
|
@@ -16,20 +24,12 @@ export interface FileDiffProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
16
24
|
* Object with strings for tooltips and screen reader labels.
|
|
17
25
|
*/
|
|
18
26
|
labelStrings?: {
|
|
19
|
-
linesChanged?: string;
|
|
20
27
|
additions?: string;
|
|
21
28
|
deletions?: string;
|
|
29
|
+
linesChanged?: string;
|
|
22
30
|
};
|
|
23
|
-
/**
|
|
24
|
-
* Custom width in rems for the component. This will override the default.
|
|
25
|
-
*/
|
|
26
|
-
componentWidth?: number;
|
|
27
|
-
/**
|
|
28
|
-
* Additional class names
|
|
29
|
-
*/
|
|
30
|
-
className?: string;
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
33
|
* FileDiff UI component
|
|
34
34
|
*/
|
|
35
|
-
export declare const FileDiff: ({ additions,
|
|
35
|
+
export declare const FileDiff: ({ additions, className, componentWidth, deletions, labelStrings, ...props }: FileDiffProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
import './flow-steps.css';
|
|
3
3
|
export type FlowStep = {
|
|
4
|
-
/**
|
|
5
|
-
* The header text of the step
|
|
6
|
-
*/
|
|
7
|
-
header: string | ReactNode;
|
|
8
4
|
/**
|
|
9
5
|
* The content of the step
|
|
10
6
|
*/
|
|
11
7
|
content?: string | ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* The header text of the step
|
|
10
|
+
*/
|
|
11
|
+
header: string | ReactNode;
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
14
14
|
* Prop types for FlowSteps
|
|
15
15
|
*/
|
|
16
16
|
export interface FlowStepsProps extends ComponentPropsWithoutRef<'ol'> {
|
|
17
|
+
/**
|
|
18
|
+
* Additional class names
|
|
19
|
+
*/
|
|
20
|
+
className?: string;
|
|
17
21
|
/**
|
|
18
22
|
* Alignment of the step content.
|
|
19
23
|
*/
|
|
@@ -26,12 +30,8 @@ export interface FlowStepsProps extends ComponentPropsWithoutRef<'ol'> {
|
|
|
26
30
|
* The list of steps to display.
|
|
27
31
|
*/
|
|
28
32
|
steps: FlowStep[];
|
|
29
|
-
/**
|
|
30
|
-
* Additional class names
|
|
31
|
-
*/
|
|
32
|
-
className?: string;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* FlowSteps UI component
|
|
36
36
|
*/
|
|
37
|
-
export declare const FlowSteps: ({ contentAlignment, layoutDirection, steps,
|
|
37
|
+
export declare const FlowSteps: ({ className, contentAlignment, layoutDirection, steps, ...props }: FlowStepsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
export declare const stepsWithoutExtraContent: {
|
|
3
2
|
header: string;
|
|
4
3
|
}[];
|
|
5
4
|
export declare const stepsWithCode: ({
|
|
6
5
|
header: string;
|
|
7
|
-
content:
|
|
6
|
+
content: import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
} | {
|
|
9
|
-
header:
|
|
10
|
-
content:
|
|
8
|
+
header: import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
content: import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
})[];
|
|
12
11
|
export declare const stepsWithText: {
|
|
13
12
|
header: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
import './link-new-window.css';
|
|
3
3
|
/**
|
|
4
4
|
* Prop types for LinkNewWindow
|
|
@@ -8,6 +8,10 @@ export interface LinkNewWindowProps extends ComponentPropsWithoutRef<'a'> {
|
|
|
8
8
|
* Content for the LinkNewWindow.
|
|
9
9
|
*/
|
|
10
10
|
children?: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Additional class names
|
|
13
|
+
*/
|
|
14
|
+
className?: string;
|
|
11
15
|
/**
|
|
12
16
|
* Optional font size for the LinkNewWindow. If not provided, the font size will be inherited from the parent element.
|
|
13
17
|
*/
|
|
@@ -24,12 +28,8 @@ export interface LinkNewWindowProps extends ComponentPropsWithoutRef<'a'> {
|
|
|
24
28
|
* URL where the component should link to.
|
|
25
29
|
*/
|
|
26
30
|
url: string;
|
|
27
|
-
/**
|
|
28
|
-
* Additional class names
|
|
29
|
-
*/
|
|
30
|
-
className?: string;
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
33
|
* LinkNewWindow UI component
|
|
34
34
|
*/
|
|
35
|
-
export declare const LinkNewWindow: ({ children, fontSize, isLoading, newWindowText, url,
|
|
35
|
+
export declare const LinkNewWindow: ({ children, className, fontSize, isLoading, newWindowText, url, ...props }: LinkNewWindowProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
import './modal.css';
|
|
3
3
|
export interface ModalProps extends ComponentPropsWithoutRef<'div'> {
|
|
4
4
|
/**
|
|
@@ -9,6 +9,10 @@ export interface ModalProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
9
9
|
* Main content for modal.
|
|
10
10
|
*/
|
|
11
11
|
children?: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Additional class names
|
|
14
|
+
*/
|
|
15
|
+
className?: string;
|
|
12
16
|
/**
|
|
13
17
|
* Text for close button aria-label attribute. Only used if hasCloseButton is true.
|
|
14
18
|
*/
|
|
@@ -43,12 +47,8 @@ export interface ModalProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
43
47
|
* Text for modal title
|
|
44
48
|
*/
|
|
45
49
|
title: string;
|
|
46
|
-
/**
|
|
47
|
-
* Additional class names
|
|
48
|
-
*/
|
|
49
|
-
className?: string;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
52
|
* Modal UI component
|
|
53
53
|
*/
|
|
54
|
-
export declare const Modal: ({ ariaLabel, children, closeButtonLabel, contentMaxHeight, disableOutsideClick, hasCloseButton, modalIsOpen, setModalIsOpen, size, title,
|
|
54
|
+
export declare const Modal: ({ ariaLabel, children, className, closeButtonLabel, contentMaxHeight, disableOutsideClick, hasCloseButton, modalIsOpen, setModalIsOpen, size, title, ...props }: ModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { HeadingLevelCommon } from '
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { HeadingLevelCommon } from '../../libs/types/custom-types';
|
|
3
3
|
import './pagination.css';
|
|
4
4
|
/**
|
|
5
5
|
* Prop types for Pagination
|
|
@@ -10,6 +10,10 @@ export interface PaginationProps extends ComponentPropsWithoutRef<'nav'> {
|
|
|
10
10
|
* This will change the number of page buttons shown in total.
|
|
11
11
|
*/
|
|
12
12
|
bufferCount?: number;
|
|
13
|
+
/**
|
|
14
|
+
* Additional class names.
|
|
15
|
+
*/
|
|
16
|
+
className?: string;
|
|
13
17
|
/**
|
|
14
18
|
* Current page number.
|
|
15
19
|
*/
|
|
@@ -30,8 +34,8 @@ export interface PaginationProps extends ComponentPropsWithoutRef<'nav'> {
|
|
|
30
34
|
* Label strings for previous and next buttons.
|
|
31
35
|
*/
|
|
32
36
|
labelStrings?: {
|
|
33
|
-
previous: string;
|
|
34
37
|
next: string;
|
|
38
|
+
previous: string;
|
|
35
39
|
};
|
|
36
40
|
/**
|
|
37
41
|
* Callback to handle page change.
|
|
@@ -43,12 +47,8 @@ export interface PaginationProps extends ComponentPropsWithoutRef<'nav'> {
|
|
|
43
47
|
* Total number of items to paginate.
|
|
44
48
|
*/
|
|
45
49
|
totalItemCount: number;
|
|
46
|
-
/**
|
|
47
|
-
* Additional class names.
|
|
48
|
-
*/
|
|
49
|
-
className?: string;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
52
|
* Pagination UI component
|
|
53
53
|
*/
|
|
54
|
-
export declare const Pagination: ({ bufferCount, currentPage, headingLevel, headingText, itemsPerPage, labelStrings, onPageChange, totalItemCount,
|
|
54
|
+
export declare const Pagination: ({ bufferCount, className, currentPage, headingLevel, headingText, itemsPerPage, labelStrings, onPageChange, totalItemCount, ...props }: PaginationProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
import './pantheon-logo.css';
|
|
3
3
|
export type PantheonLogoDisplayType = 'full' | 'icon' | 'wordmark' | 'sub-brand' | 'sub-brand-small';
|
|
4
4
|
/**
|
|
5
5
|
* Prop types for PantheonLogo
|
|
6
6
|
*/
|
|
7
7
|
export interface PantheonLogoProps extends ComponentPropsWithoutRef<'div'> {
|
|
8
|
+
/**
|
|
9
|
+
* Additional class names
|
|
10
|
+
*/
|
|
11
|
+
className?: string;
|
|
8
12
|
/**
|
|
9
13
|
* Color type. Use 'default' unless the logo is used on an approved dark background.
|
|
10
14
|
*/
|
|
@@ -21,12 +25,8 @@ export interface PantheonLogoProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
21
25
|
* Accepts a fully-formed link or a string (if a static site name is desired). Will only render if the `display-type` is set to 'sub-brand'.
|
|
22
26
|
*/
|
|
23
27
|
subBrand?: ReactNode | string;
|
|
24
|
-
/**
|
|
25
|
-
* Additional class names
|
|
26
|
-
*/
|
|
27
|
-
className?: string;
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
30
|
* PantheonLogo UI component
|
|
31
31
|
*/
|
|
32
|
-
export declare const PantheonLogo: ({ colorType, displayType, linkContent, subBrand,
|
|
32
|
+
export declare const PantheonLogo: ({ className, colorType, displayType, linkContent, subBrand, ...props }: PantheonLogoProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const logoWordmark: React.JSX.Element;
|
|
1
|
+
export declare const logoFull: import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const logoIcon: import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const logoWordmark: import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import './picture.css';
|
|
3
3
|
/**
|
|
4
4
|
* Prop types for Picture
|
|
5
5
|
*/
|
|
6
6
|
export interface PictureProps extends ComponentPropsWithoutRef<'img'> {
|
|
7
|
-
/**
|
|
8
|
-
* The WebP image source (preferred for modern browsers)
|
|
9
|
-
*/
|
|
10
|
-
srcWebp: string;
|
|
11
|
-
/**
|
|
12
|
-
* The fallback image source (e.g., PNG or JPG)
|
|
13
|
-
*/
|
|
14
|
-
srcFallback: string;
|
|
15
7
|
/**
|
|
16
8
|
* Alt text for the image. Defaults to empty string for decorative images.
|
|
17
9
|
*/
|
|
18
10
|
alt?: string;
|
|
19
11
|
/**
|
|
20
|
-
*
|
|
21
|
-
* If not provided, the image will be sized responsively by its container.
|
|
12
|
+
* Additional class names
|
|
22
13
|
*/
|
|
23
|
-
|
|
14
|
+
className?: string;
|
|
24
15
|
/**
|
|
25
16
|
* Optional height for the image (CSS value, e.g., '100px', '50%', 'auto').
|
|
26
17
|
* If not provided, the image will be sized responsively by its container.
|
|
27
18
|
*/
|
|
28
19
|
height?: string | number;
|
|
29
20
|
/**
|
|
30
|
-
*
|
|
21
|
+
* The fallback image source (e.g., PNG or JPG)
|
|
31
22
|
*/
|
|
32
|
-
|
|
23
|
+
srcFallback: string;
|
|
24
|
+
/**
|
|
25
|
+
* The WebP image source (preferred for modern browsers)
|
|
26
|
+
*/
|
|
27
|
+
srcWebp: string;
|
|
28
|
+
/**
|
|
29
|
+
* Optional width for the image (CSS value, e.g., '100px', '50%', 'auto').
|
|
30
|
+
* If not provided, the image will be sized responsively by its container.
|
|
31
|
+
*/
|
|
32
|
+
width?: string | number;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* Picture UI component
|
|
36
36
|
*/
|
|
37
|
-
export declare const Picture: ({
|
|
37
|
+
export declare const Picture: ({ alt, className, height, srcFallback, srcWebp, width, ...props }: PictureProps) => import("react/jsx-runtime").JSX.Element;
|