@pantheon-systems/pds-toolkit-react 1.0.0-alpha.9 → 1.0.0-beta.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/_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 +6952 -6604
- 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 +6 -6
- package/_dist/utilities/color/color-preview-swatches.d.ts +1 -1
- package/package.json +16 -8
|
@@ -5,6 +5,10 @@ export interface AvatarProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
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;
|
|
@@ -4,6 +4,14 @@ import './branch-diff.css';
|
|
|
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
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;
|
|
@@ -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,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
import './callout.css';
|
|
3
3
|
type CalloutType = 'info' | 'success' | 'warning' | 'critical' | 'discovery' | 'code' | 'earlyAccess';
|
|
4
4
|
type TypeLabels = Record<CalloutType, string>;
|
|
@@ -6,7 +6,11 @@ export interface CalloutProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
6
6
|
/**
|
|
7
7
|
* Callout main content.
|
|
8
8
|
*/
|
|
9
|
-
children:
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* Additional class names
|
|
12
|
+
*/
|
|
13
|
+
className?: string;
|
|
10
14
|
/**
|
|
11
15
|
* Callout title.
|
|
12
16
|
*/
|
|
@@ -19,13 +23,9 @@ export interface CalloutProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
19
23
|
* Callout type labels. Provide translation strings if necessary.
|
|
20
24
|
*/
|
|
21
25
|
typeLabels?: TypeLabels;
|
|
22
|
-
/**
|
|
23
|
-
* Additional class names
|
|
24
|
-
*/
|
|
25
|
-
className?: string;
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
* Callout UI component
|
|
29
29
|
*/
|
|
30
|
-
export declare const Callout: ({ children, title, type, typeLabels,
|
|
30
|
+
export declare const Callout: ({ children, className, title, type, typeLabels, ...props }: CalloutProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
31
|
export {};
|
|
@@ -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
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 {};
|
|
@@ -6,23 +6,23 @@ export type DashBoardStatStatus = 'success' | 'warning' | 'launch' | 'error' | '
|
|
|
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;
|
|
@@ -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
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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -5,6 +5,10 @@ export type PantheonLogoDisplayType = 'full' | 'icon' | 'wordmark' | 'sub-brand'
|
|
|
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;
|
|
@@ -4,34 +4,34 @@ import './picture.css';
|
|
|
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;
|
|
@@ -3,13 +3,21 @@ import { FuiPlacement } from '@libs/types/custom-types';
|
|
|
3
3
|
import './popover.css';
|
|
4
4
|
interface PopoverProps extends Omit<ComponentPropsWithoutRef<'div'>, 'content'> {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Additional class names.
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
className?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Additional class names for the Popover Container.
|
|
11
|
+
*/
|
|
12
|
+
classNameContainer?: string;
|
|
9
13
|
/**
|
|
10
14
|
* Text for close button aria-label attribute. Only used if hasCloseButton is true.
|
|
11
15
|
*/
|
|
12
16
|
closeButtonLabel?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Content to display in the popover.
|
|
19
|
+
*/
|
|
20
|
+
content?: ReactNode;
|
|
13
21
|
/**
|
|
14
22
|
* Text or HTML content to use as the trigger instead of an icon. Leave null to use the icon. This allows passing HTML content to customize the trigger appearance or functionality.
|
|
15
23
|
*/
|
|
@@ -30,18 +38,6 @@ interface PopoverProps extends Omit<ComponentPropsWithoutRef<'div'>, 'content'>
|
|
|
30
38
|
* Preferred placement of the popover in relation to the trigger. Will be modified if there is not enough space.
|
|
31
39
|
*/
|
|
32
40
|
placement?: FuiPlacement;
|
|
33
|
-
/**
|
|
34
|
-
* Text for popover title.
|
|
35
|
-
*/
|
|
36
|
-
title?: string;
|
|
37
|
-
/**
|
|
38
|
-
* The accessible text for the trigger. Only necessary when the trigger is an icon.
|
|
39
|
-
*/
|
|
40
|
-
triggerAccessibleText?: string;
|
|
41
|
-
/**
|
|
42
|
-
* The icon to use as the trigger.
|
|
43
|
-
*/
|
|
44
|
-
triggerIcon?: 'circleInfo' | 'circleQuestion';
|
|
45
41
|
/**
|
|
46
42
|
* Boolean to determine if the Popover is open by default.
|
|
47
43
|
*/
|
|
@@ -51,16 +47,20 @@ interface PopoverProps extends Omit<ComponentPropsWithoutRef<'div'>, 'content'>
|
|
|
51
47
|
*/
|
|
52
48
|
setPopoverIsOpen?: (isOpen: boolean) => void;
|
|
53
49
|
/**
|
|
54
|
-
*
|
|
50
|
+
* Text for popover title.
|
|
55
51
|
*/
|
|
56
|
-
|
|
52
|
+
title?: string;
|
|
57
53
|
/**
|
|
58
|
-
*
|
|
54
|
+
* The accessible text for the trigger. Only necessary when the trigger is an icon.
|
|
59
55
|
*/
|
|
60
|
-
|
|
56
|
+
triggerAccessibleText?: string;
|
|
57
|
+
/**
|
|
58
|
+
* The icon to use as the trigger.
|
|
59
|
+
*/
|
|
60
|
+
triggerIcon?: 'circleInfo' | 'circleQuestion';
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
63
63
|
* Popover UI component
|
|
64
64
|
*/
|
|
65
|
-
export declare const Popover: ({
|
|
65
|
+
export declare const Popover: ({ className, classNameContainer, closeButtonLabel, content, customTrigger, hasCloseButton, offsetValue, onClose, placement, popoverIsOpen, setPopoverIsOpen, title, triggerAccessibleText, triggerIcon, ...props }: PopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
66
66
|
export {};
|
|
@@ -2,14 +2,18 @@ import { ComponentPropsWithoutRef } from 'react';
|
|
|
2
2
|
import './pull-quote.css';
|
|
3
3
|
interface Attribution {
|
|
4
4
|
name: string;
|
|
5
|
-
title: string;
|
|
6
5
|
org: string;
|
|
6
|
+
title: string;
|
|
7
7
|
}
|
|
8
8
|
interface PullQuoteProps extends ComponentPropsWithoutRef<'div'> {
|
|
9
9
|
/**
|
|
10
10
|
* Attribution for the quote
|
|
11
11
|
*/
|
|
12
12
|
attribution?: Attribution;
|
|
13
|
+
/**
|
|
14
|
+
* Additional class names
|
|
15
|
+
*/
|
|
16
|
+
className?: string;
|
|
13
17
|
/**
|
|
14
18
|
* Image src. For stand-alone layout only, will not render for inline layout.
|
|
15
19
|
*/
|
|
@@ -22,13 +26,9 @@ interface PullQuoteProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
22
26
|
* The quote text
|
|
23
27
|
*/
|
|
24
28
|
quote: string;
|
|
25
|
-
/**
|
|
26
|
-
* Additional class names
|
|
27
|
-
*/
|
|
28
|
-
className?: string;
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
31
|
* PullQuote UI component
|
|
32
32
|
*/
|
|
33
|
-
export declare const PullQuote: ({ attribution, image, layoutType, quote,
|
|
33
|
+
export declare const PullQuote: ({ attribution, className, image, layoutType, quote, ...props }: PullQuoteProps) => import("react/jsx-runtime").JSX.Element;
|
|
34
34
|
export {};
|
|
@@ -4,9 +4,9 @@ import './refresh-checker.css';
|
|
|
4
4
|
* Enum for RefreshChecker states
|
|
5
5
|
*/
|
|
6
6
|
export declare enum RefreshCheckerState {
|
|
7
|
+
CHECKED = "checked",
|
|
7
8
|
DEFAULT = "default",
|
|
8
|
-
WORKING = "working"
|
|
9
|
-
CHECKED = "checked"
|
|
9
|
+
WORKING = "working"
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Prop types for RefreshChecker
|
|
@@ -16,6 +16,10 @@ interface RefreshCheckerProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
16
16
|
* Alignment of the component. Default is left.
|
|
17
17
|
*/
|
|
18
18
|
alignment?: 'left' | 'right';
|
|
19
|
+
/**
|
|
20
|
+
* Additional class names
|
|
21
|
+
*/
|
|
22
|
+
className?: string;
|
|
19
23
|
/**
|
|
20
24
|
* Custom width in rems for the component. This will override the default.
|
|
21
25
|
*/
|
|
@@ -24,11 +28,11 @@ interface RefreshCheckerProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
24
28
|
* Internationalization props for labels.
|
|
25
29
|
*/
|
|
26
30
|
labelStrings?: {
|
|
31
|
+
ariaLabel?: string;
|
|
32
|
+
checked?: string;
|
|
27
33
|
checkForUpdates?: string;
|
|
28
34
|
checking?: string;
|
|
29
|
-
checked?: string;
|
|
30
35
|
tooltipContent?: string;
|
|
31
|
-
ariaLabel?: string;
|
|
32
36
|
};
|
|
33
37
|
/**
|
|
34
38
|
* Last checked timestamp
|
|
@@ -42,13 +46,9 @@ interface RefreshCheckerProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
42
46
|
* State of the component
|
|
43
47
|
*/
|
|
44
48
|
state?: `${RefreshCheckerState}`;
|
|
45
|
-
/**
|
|
46
|
-
* Additional class names
|
|
47
|
-
*/
|
|
48
|
-
className?: string;
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
51
|
* RefreshChecker UI component
|
|
52
52
|
*/
|
|
53
|
-
export declare const RefreshChecker: ({ alignment, componentWidth, labelStrings, lastChecked, onCheck, state,
|
|
53
|
+
export declare const RefreshChecker: ({ alignment, className, componentWidth, labelStrings, lastChecked, onCheck, state, ...props }: RefreshCheckerProps) => import("react/jsx-runtime").JSX.Element;
|
|
54
54
|
export {};
|