@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
|
@@ -4,20 +4,28 @@ import './segmented-button.css';
|
|
|
4
4
|
* Structure for each option in the SegmentedButton component.
|
|
5
5
|
*/
|
|
6
6
|
interface OptionType {
|
|
7
|
-
id?: string;
|
|
8
|
-
value: string;
|
|
9
|
-
label: string;
|
|
10
7
|
disabled?: boolean;
|
|
11
8
|
iconName?: PDSIcon;
|
|
9
|
+
id?: string;
|
|
10
|
+
label: string;
|
|
12
11
|
tally?: {
|
|
13
12
|
label: string | number;
|
|
14
13
|
type: 'neutral' | 'critical' | 'warning' | 'info' | 'success';
|
|
15
14
|
};
|
|
15
|
+
value: string;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
* Prop types for SegmentedButton
|
|
19
19
|
*/
|
|
20
20
|
export interface SegmentedButtonProps {
|
|
21
|
+
/**
|
|
22
|
+
* Additional class names
|
|
23
|
+
*/
|
|
24
|
+
className?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Optional initial selected option value.
|
|
27
|
+
*/
|
|
28
|
+
defaultValue?: string;
|
|
21
29
|
/**
|
|
22
30
|
* Is the SegmentedButton disabled?
|
|
23
31
|
*/
|
|
@@ -26,10 +34,6 @@ export interface SegmentedButtonProps {
|
|
|
26
34
|
* Unique ID for the SegmentedButton.
|
|
27
35
|
*/
|
|
28
36
|
id: string;
|
|
29
|
-
/**
|
|
30
|
-
* Optional initial selected option value.
|
|
31
|
-
*/
|
|
32
|
-
defaultValue?: string;
|
|
33
37
|
/**
|
|
34
38
|
* Label for the SegmentedButton — visually hidden, used for screen readers only.
|
|
35
39
|
*/
|
|
@@ -50,13 +54,9 @@ export interface SegmentedButtonProps {
|
|
|
50
54
|
* Value of the Segmented Button. Used to set the value of the field when controlled. Cannot be used in conjunction with the `defaultValue` prop.
|
|
51
55
|
*/
|
|
52
56
|
value?: string;
|
|
53
|
-
/**
|
|
54
|
-
* Additional class names
|
|
55
|
-
*/
|
|
56
|
-
className?: string;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
59
|
* SegmentedButton UI component
|
|
60
60
|
*/
|
|
61
|
-
export declare const SegmentedButton: ({ disabled, id,
|
|
61
|
+
export declare const SegmentedButton: ({ className, defaultValue, disabled, id, label, onChange, options, size, value, ...props }: SegmentedButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
62
62
|
export {};
|
|
@@ -9,6 +9,10 @@ interface SplitButtonProps extends ComponentPropsWithoutRef<'span'> {
|
|
|
9
9
|
* Array of menu items
|
|
10
10
|
*/
|
|
11
11
|
actionItems: Array<LinkItemType | MenuItemType>;
|
|
12
|
+
/**
|
|
13
|
+
* Additional class names
|
|
14
|
+
*/
|
|
15
|
+
className?: string;
|
|
12
16
|
/**
|
|
13
17
|
* Is the button disabled?
|
|
14
18
|
*/
|
|
@@ -29,13 +33,9 @@ interface SplitButtonProps extends ComponentPropsWithoutRef<'span'> {
|
|
|
29
33
|
* Which variant of button to render
|
|
30
34
|
*/
|
|
31
35
|
variant?: 'primary' | 'secondary';
|
|
32
|
-
/**
|
|
33
|
-
* Additional class names
|
|
34
|
-
*/
|
|
35
|
-
className?: string;
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* A component used to render a button with a primary action and a menu of additional options
|
|
39
39
|
*/
|
|
40
|
-
export declare const SplitButton: ({ actionItems, disabled, id, moreActionsLabel, size, variant,
|
|
40
|
+
export declare const SplitButton: ({ actionItems, className, disabled, id, moreActionsLabel, size, variant, ...props }: SplitButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
41
41
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from 'react';
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
import { PDSIcon } from '@components/icons/Icon/Icon';
|
|
3
3
|
import './utility-button.css';
|
|
4
4
|
/**
|
|
@@ -9,6 +9,10 @@ export interface UtilityButtonProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
9
9
|
* Additional props for the button element.
|
|
10
10
|
*/
|
|
11
11
|
buttonProps?: ComponentPropsWithoutRef<'button'>;
|
|
12
|
+
/**
|
|
13
|
+
* Additional class names
|
|
14
|
+
*/
|
|
15
|
+
className?: string;
|
|
12
16
|
/**
|
|
13
17
|
* Is the button disabled?
|
|
14
18
|
*/
|
|
@@ -33,18 +37,24 @@ export interface UtilityButtonProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
33
37
|
* Is the button in the process of an initial load?
|
|
34
38
|
*/
|
|
35
39
|
isLoading?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Should the button label use the monospace font?
|
|
42
|
+
*/
|
|
43
|
+
isMonospace?: boolean;
|
|
36
44
|
/**
|
|
37
45
|
* Is the button in the process of performing a task and should be disabled?
|
|
38
46
|
*/
|
|
39
47
|
isWorking?: boolean;
|
|
40
48
|
/**
|
|
41
|
-
*
|
|
49
|
+
* The text of the button.
|
|
42
50
|
*/
|
|
43
|
-
|
|
51
|
+
label?: string;
|
|
44
52
|
/**
|
|
45
|
-
*
|
|
53
|
+
* A link element using the router of your choice.
|
|
54
|
+
* Use `linkContent` to render a link instead of text.
|
|
55
|
+
* In this case, the `buttonProps`, `label`, and `onClick` props will be ignored.
|
|
46
56
|
*/
|
|
47
|
-
|
|
57
|
+
linkContent?: ReactNode;
|
|
48
58
|
/**
|
|
49
59
|
* Click event handler callback.
|
|
50
60
|
*/
|
|
@@ -53,12 +63,8 @@ export interface UtilityButtonProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
53
63
|
* Tooltip text.
|
|
54
64
|
*/
|
|
55
65
|
tooltipText?: string;
|
|
56
|
-
/**
|
|
57
|
-
* Additional class names
|
|
58
|
-
*/
|
|
59
|
-
className?: string;
|
|
60
66
|
}
|
|
61
67
|
/**
|
|
62
68
|
* UtilityButton UI component
|
|
63
69
|
*/
|
|
64
|
-
export declare const UtilityButton: ({ buttonProps, disabled, hasBorder, iconName, iconPosition, isCritical, isLoading,
|
|
70
|
+
export declare const UtilityButton: ({ buttonProps, className, disabled, hasBorder, iconName, iconPosition, isCritical, isLoading, isMonospace, isWorking, label, linkContent, onClick, tooltipText, ...props }: UtilityButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -14,16 +14,16 @@ export interface CardProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
14
14
|
* Child elements to be assigned to named slots.
|
|
15
15
|
*/
|
|
16
16
|
children: ReactNode;
|
|
17
|
-
/**
|
|
18
|
-
* Relative padding for the `main` slot.
|
|
19
|
-
*/
|
|
20
|
-
padding?: GridGapOptions;
|
|
21
17
|
/**
|
|
22
18
|
* Additional class names
|
|
23
19
|
*/
|
|
24
20
|
className?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Relative padding for the `main` slot.
|
|
23
|
+
*/
|
|
24
|
+
padding?: GridGapOptions;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Card UI component
|
|
28
28
|
*/
|
|
29
|
-
export declare const Card: ({ background, children,
|
|
29
|
+
export declare const Card: ({ background, children, className, padding, ...props }: CardProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,6 +4,10 @@ import './card-heading.css';
|
|
|
4
4
|
* Prop types for CardHeading
|
|
5
5
|
*/
|
|
6
6
|
export interface CardHeadingProps {
|
|
7
|
+
/**
|
|
8
|
+
* Additional class names
|
|
9
|
+
*/
|
|
10
|
+
className?: string;
|
|
7
11
|
/**
|
|
8
12
|
* Font size of the heading. Default is `XL`.
|
|
9
13
|
*/
|
|
@@ -20,12 +24,8 @@ export interface CardHeadingProps {
|
|
|
20
24
|
* Heading text.
|
|
21
25
|
*/
|
|
22
26
|
text?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Additional class names
|
|
25
|
-
*/
|
|
26
|
-
className?: string;
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
29
|
* CardHeading UI component
|
|
30
30
|
*/
|
|
31
|
-
export declare const CardHeading: ({ fontSize, fontWeight, level, text,
|
|
31
|
+
export declare const CardHeading: ({ className, fontSize, fontWeight, level, text, ...props }: CardHeadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
import './card-select-group.css';
|
|
3
3
|
export interface CardOption {
|
|
4
|
+
/**
|
|
5
|
+
* Option description
|
|
6
|
+
*/
|
|
7
|
+
description?: string | ReactNode;
|
|
4
8
|
/**
|
|
5
9
|
* Unique ID for the option
|
|
6
10
|
* @default ''
|
|
@@ -10,16 +14,16 @@ export interface CardOption {
|
|
|
10
14
|
* Option label
|
|
11
15
|
*/
|
|
12
16
|
label: string | ReactNode;
|
|
13
|
-
/**
|
|
14
|
-
* Option description
|
|
15
|
-
*/
|
|
16
|
-
description?: string | ReactNode;
|
|
17
17
|
/**
|
|
18
18
|
* Option value
|
|
19
19
|
*/
|
|
20
20
|
value: string;
|
|
21
21
|
}
|
|
22
22
|
export interface CardSelectGroupProps extends Omit<ComponentPropsWithoutRef<'fieldset'>, 'onChange'> {
|
|
23
|
+
/**
|
|
24
|
+
* Additional class names
|
|
25
|
+
*/
|
|
26
|
+
className?: string;
|
|
23
27
|
/**
|
|
24
28
|
* Optional initial selected option value
|
|
25
29
|
*/
|
|
@@ -49,12 +53,8 @@ export interface CardSelectGroupProps extends Omit<ComponentPropsWithoutRef<'fie
|
|
|
49
53
|
* Array of card options
|
|
50
54
|
*/
|
|
51
55
|
options?: CardOption[];
|
|
52
|
-
/**
|
|
53
|
-
* Additional class names
|
|
54
|
-
*/
|
|
55
|
-
className?: string;
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
58
|
* CardSelectGroup UI component
|
|
59
59
|
*/
|
|
60
|
-
export declare const CardSelectGroup: ({
|
|
60
|
+
export declare const CardSelectGroup: ({ className, defaultValue, id, label, labelDisplay, layout, onChange, options, ...props }: CardSelectGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,6 +5,10 @@ import './empty-state-card.css';
|
|
|
5
5
|
* Prop types for EmptyStateCard
|
|
6
6
|
*/
|
|
7
7
|
export interface EmptyStateCardProps extends ComponentPropsWithoutRef<'div'> {
|
|
8
|
+
/**
|
|
9
|
+
* Additional class names
|
|
10
|
+
*/
|
|
11
|
+
className?: string;
|
|
8
12
|
/**
|
|
9
13
|
* Heading level or `span`.
|
|
10
14
|
*/
|
|
@@ -25,12 +29,8 @@ export interface EmptyStateCardProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
25
29
|
* Summary paragraph.
|
|
26
30
|
*/
|
|
27
31
|
summary: string;
|
|
28
|
-
/**
|
|
29
|
-
* Additional class names
|
|
30
|
-
*/
|
|
31
|
-
className?: string;
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
34
|
* EmptyStateCard UI component
|
|
35
35
|
*/
|
|
36
|
-
export declare const EmptyStateCard: ({ headingLevel, headingText, isLinkExternal, linkContent, summary,
|
|
36
|
+
export declare const EmptyStateCard: ({ className, headingLevel, headingText, isLinkExternal, linkContent, summary, ...props }: EmptyStateCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,6 +5,10 @@ import './links-card.css';
|
|
|
5
5
|
* Prop types for LinksCard
|
|
6
6
|
*/
|
|
7
7
|
interface LinksCardProps extends ComponentPropsWithoutRef<'div'> {
|
|
8
|
+
/**
|
|
9
|
+
* Additional class names
|
|
10
|
+
*/
|
|
11
|
+
className?: string;
|
|
8
12
|
/**
|
|
9
13
|
* Heading level
|
|
10
14
|
*/
|
|
@@ -17,13 +21,9 @@ interface LinksCardProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
17
21
|
* Array of links
|
|
18
22
|
*/
|
|
19
23
|
linkItems?: ReactNode[];
|
|
20
|
-
/**
|
|
21
|
-
* Additional class names
|
|
22
|
-
*/
|
|
23
|
-
className?: string;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* Links Card UI component
|
|
27
27
|
*/
|
|
28
|
-
export declare const LinksCard: ({
|
|
28
|
+
export declare const LinksCard: ({ className, headingLevel, headingText, linkItems, ...props }: LinksCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
29
|
export {};
|
|
@@ -2,8 +2,8 @@ import { ComponentPropsWithoutRef, ReactElement } from 'react';
|
|
|
2
2
|
import { BadgeColor } from '@libs/types/custom-types';
|
|
3
3
|
import './new-site-card.css';
|
|
4
4
|
interface BadgeValueType {
|
|
5
|
-
label: string;
|
|
6
5
|
color: BadgeColor;
|
|
6
|
+
label: string;
|
|
7
7
|
}
|
|
8
8
|
export declare const badgeTypes: {
|
|
9
9
|
[key: string]: BadgeValueType;
|
|
@@ -17,6 +17,10 @@ interface NewSiteCardProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
17
17
|
* Optional indicator badge type. Choose from only early-access at this time.
|
|
18
18
|
*/
|
|
19
19
|
badge?: 'early-access';
|
|
20
|
+
/**
|
|
21
|
+
* Additional class names
|
|
22
|
+
*/
|
|
23
|
+
className?: string;
|
|
20
24
|
/**
|
|
21
25
|
* Icon. Choose from only Platform Icons at this time.
|
|
22
26
|
*/
|
|
@@ -26,9 +30,9 @@ interface NewSiteCardProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
26
30
|
*/
|
|
27
31
|
newWindowString?: string;
|
|
28
32
|
/**
|
|
29
|
-
*
|
|
33
|
+
* The primary link for the selection card.
|
|
30
34
|
*/
|
|
31
|
-
|
|
35
|
+
selectionLink: ReactElement;
|
|
32
36
|
/**
|
|
33
37
|
* Card subtitle
|
|
34
38
|
*/
|
|
@@ -37,21 +41,17 @@ interface NewSiteCardProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
37
41
|
* Card summary
|
|
38
42
|
*/
|
|
39
43
|
summary?: string;
|
|
40
|
-
/**
|
|
41
|
-
* The primary link for the selection card.
|
|
42
|
-
*/
|
|
43
|
-
selectionLink: ReactElement;
|
|
44
44
|
/**
|
|
45
45
|
* Array of supplemental links. Maximum of 2.
|
|
46
46
|
*/
|
|
47
47
|
supplementalLinks?: ReactElement[];
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Card title
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
title: string;
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
54
|
* NewSiteCard UI component
|
|
55
55
|
*/
|
|
56
|
-
export declare const NewSiteCard: ({ badge, icon, newWindowString,
|
|
56
|
+
export declare const NewSiteCard: ({ badge, className, icon, newWindowString, selectionLink, subtitle, summary, supplementalLinks, title, ...props }: NewSiteCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
57
57
|
export {};
|
|
@@ -5,43 +5,43 @@ import './payment-card.css';
|
|
|
5
5
|
*/
|
|
6
6
|
export interface PaymentCardProps extends ComponentPropsWithoutRef<'div'> {
|
|
7
7
|
/**
|
|
8
|
-
* The
|
|
8
|
+
* The name of the cardholder.
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
cardholderName?: string;
|
|
11
11
|
/**
|
|
12
12
|
* The last four digits of the card number.
|
|
13
13
|
*/
|
|
14
14
|
cardNumber?: number;
|
|
15
15
|
/**
|
|
16
|
-
* The
|
|
17
|
-
*/
|
|
18
|
-
cardholderName?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Expiration date of the card in MM/YY format.
|
|
16
|
+
* The type of payment icon to display.
|
|
21
17
|
*/
|
|
22
|
-
|
|
18
|
+
cardType?: 'visa' | 'mastercard' | 'amex' | 'discover';
|
|
23
19
|
/**
|
|
24
20
|
* A string for the lower left corner.
|
|
25
21
|
*/
|
|
26
22
|
cardUsage?: string;
|
|
27
23
|
/**
|
|
28
|
-
*
|
|
24
|
+
* Additional class names
|
|
29
25
|
*/
|
|
30
|
-
|
|
26
|
+
className?: string;
|
|
31
27
|
/**
|
|
32
28
|
* Function for when “view details” is clicked
|
|
33
29
|
*/
|
|
34
30
|
detailsCallback?: () => void;
|
|
35
31
|
/**
|
|
36
|
-
*
|
|
32
|
+
* Translation string for “view details”
|
|
37
33
|
*/
|
|
38
|
-
|
|
34
|
+
detailsLabel?: string;
|
|
39
35
|
/**
|
|
40
|
-
*
|
|
36
|
+
* Expiration date of the card in MM/YY format.
|
|
41
37
|
*/
|
|
42
|
-
|
|
38
|
+
expDate?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Function for when this card is selected
|
|
41
|
+
*/
|
|
42
|
+
selectionCallback?: () => void;
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
45
45
|
* PaymentCard UI component
|
|
46
46
|
*/
|
|
47
|
-
export declare const PaymentCard: ({
|
|
47
|
+
export declare const PaymentCard: ({ cardholderName, cardNumber, cardType, cardUsage, className, detailsCallback, detailsLabel, expDate, selectionCallback, ...props }: PaymentCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,31 +2,31 @@ import { ComponentPropsWithoutRef } from 'react';
|
|
|
2
2
|
import { ListItems } from '@components/ComparisonList/ComparisonList';
|
|
3
3
|
import './pricing-card.css';
|
|
4
4
|
interface PrimaryCallToAction {
|
|
5
|
-
type?: 'button' | 'link';
|
|
6
|
-
variant?: 'primary' | 'secondary';
|
|
7
|
-
label?: string;
|
|
8
5
|
buttonAction?: () => void;
|
|
9
|
-
linkUrl?: string;
|
|
10
|
-
linkTarget?: string;
|
|
11
6
|
disabled?: boolean;
|
|
7
|
+
label?: string;
|
|
8
|
+
linkTarget?: string;
|
|
9
|
+
linkUrl?: string;
|
|
10
|
+
type?: 'button' | 'link';
|
|
11
|
+
variant?: 'primary' | 'secondary';
|
|
12
12
|
}
|
|
13
13
|
interface SecondaryCallToAction {
|
|
14
|
-
type?: 'button' | 'link';
|
|
15
|
-
label?: string;
|
|
16
14
|
buttonAction?: () => void;
|
|
17
|
-
|
|
15
|
+
label?: string;
|
|
18
16
|
linkTarget?: string;
|
|
17
|
+
linkUrl?: string;
|
|
18
|
+
type?: 'button' | 'link';
|
|
19
19
|
}
|
|
20
20
|
interface PlanPricingData {
|
|
21
21
|
customActionLabel?: string;
|
|
22
22
|
label?: string;
|
|
23
|
-
|
|
23
|
+
listItems?: ListItems[];
|
|
24
|
+
listLabel?: string;
|
|
24
25
|
price?: string;
|
|
25
26
|
priceDetails?: string;
|
|
27
|
+
pricePrefix?: string;
|
|
26
28
|
savingsBadgeLabel?: string;
|
|
27
29
|
savingsDetails?: string;
|
|
28
|
-
listLabel?: string;
|
|
29
|
-
listItems?: ListItems[];
|
|
30
30
|
}
|
|
31
31
|
interface StatusBadgeLabels {
|
|
32
32
|
currentPlan?: string;
|
|
@@ -41,6 +41,14 @@ interface PricingCardProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
41
41
|
* An optional secondary call to action.
|
|
42
42
|
*/
|
|
43
43
|
actionSecondary?: SecondaryCallToAction;
|
|
44
|
+
/**
|
|
45
|
+
* Additional class names for the card item.
|
|
46
|
+
*/
|
|
47
|
+
className?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Additional class names for the card container.
|
|
50
|
+
*/
|
|
51
|
+
containerClassName?: string;
|
|
44
52
|
/**
|
|
45
53
|
* Has comparison list. Will be rendered below the card if true.
|
|
46
54
|
* Add corresponding `comparisonListId` to each planPricingData object.
|
|
@@ -74,17 +82,9 @@ interface PricingCardProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
74
82
|
* Status badge type. Leave empty for no badge. Only one badge of each type should be used in a group of Pricing Cards.
|
|
75
83
|
*/
|
|
76
84
|
statusBadgeType?: 'currentPlan' | 'mostPopular';
|
|
77
|
-
/**
|
|
78
|
-
* Additional class names for the card item.
|
|
79
|
-
*/
|
|
80
|
-
className?: string;
|
|
81
|
-
/**
|
|
82
|
-
* Additional class names for the card container.
|
|
83
|
-
*/
|
|
84
|
-
containerClassName?: string;
|
|
85
85
|
}
|
|
86
86
|
/**
|
|
87
87
|
* PricingCard UI component
|
|
88
88
|
*/
|
|
89
|
-
export declare const PricingCard: ({ actionPrimary, actionSecondary, hasComparisonList, onTierChange, planDescription, planName, planPricingData,
|
|
89
|
+
export declare const PricingCard: ({ actionPrimary, actionSecondary, className, hasComparisonList, onTierChange, planDescription, planName, planPricingData, selectLabel, statusBadgeLabels, statusBadgeType, ...props }: PricingCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
90
90
|
export {};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { HeadingLevelCommon } from '@libs/types/custom-types';
|
|
3
|
-
import { SiteStatus } from '@libs/types/custom-types';
|
|
2
|
+
import { HeadingLevelCommon, SiteStatus } from '@libs/types/custom-types';
|
|
4
3
|
import './site-card.css';
|
|
5
4
|
/**
|
|
6
5
|
* Prop types for SiteCard
|
|
7
6
|
*/
|
|
8
7
|
export interface SiteCardProps extends ComponentPropsWithoutRef<'div'> {
|
|
8
|
+
/**
|
|
9
|
+
* Additional class names
|
|
10
|
+
*/
|
|
11
|
+
className?: string;
|
|
9
12
|
/**
|
|
10
13
|
* Translatable text for the "Go to" link.
|
|
11
14
|
*/
|
|
@@ -34,12 +37,8 @@ export interface SiteCardProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
34
37
|
* Status of the site.
|
|
35
38
|
*/
|
|
36
39
|
siteStatus?: SiteStatus;
|
|
37
|
-
/**
|
|
38
|
-
* Additional class names
|
|
39
|
-
*/
|
|
40
|
-
className?: string;
|
|
41
40
|
}
|
|
42
41
|
/**
|
|
43
42
|
* SiteCard UI component
|
|
44
43
|
*/
|
|
45
|
-
export declare const SiteCard: ({ gotoText, headingLevel, siteImage, siteLink, siteName, sitePlan, siteStatus,
|
|
44
|
+
export declare const SiteCard: ({ className, gotoText, headingLevel, siteImage, siteLink, siteName, sitePlan, siteStatus, ...props }: SiteCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { PDSIcon } from '@components/icons/Icon/Icon';
|
|
3
2
|
import { HeadingLevelCommon } from '@libs/types/custom-types';
|
|
3
|
+
import { PDSIcon } from '@components/icons/Icon/Icon';
|
|
4
4
|
import './compact-empty-state.css';
|
|
5
5
|
/**
|
|
6
6
|
* Prop types for CompactEmptyState
|
|
7
7
|
*/
|
|
8
8
|
export interface CompactEmptyStateProps extends ComponentPropsWithoutRef<'div'> {
|
|
9
|
+
/**
|
|
10
|
+
* Additional class names
|
|
11
|
+
*/
|
|
12
|
+
className?: string;
|
|
9
13
|
/**
|
|
10
14
|
* heading to explain the empty state.
|
|
11
15
|
*/
|
|
@@ -26,12 +30,8 @@ export interface CompactEmptyStateProps extends ComponentPropsWithoutRef<'div'>
|
|
|
26
30
|
* Message to display below the heading.
|
|
27
31
|
*/
|
|
28
32
|
message?: string;
|
|
29
|
-
/**
|
|
30
|
-
* Additional class names
|
|
31
|
-
*/
|
|
32
|
-
className?: string;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* CompactEmptyState UI component
|
|
36
36
|
*/
|
|
37
|
-
export declare const CompactEmptyState: ({
|
|
37
|
+
export declare const CompactEmptyState: ({ className, heading, headingLevel, iconName, linkContent, message, ...props }: CompactEmptyStateProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { VideoEmbedProps } from '@components/VideoEmbed/VideoEmbed';
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
3
2
|
import { HeadingLevel } from '@libs/types/custom-types';
|
|
3
|
+
import { VideoEmbedProps } from '@components/VideoEmbed/VideoEmbed';
|
|
4
4
|
import './horizontal-empty-state.css';
|
|
5
5
|
/**
|
|
6
6
|
* Prop types for HorizontalEmptyState
|
|
@@ -10,30 +10,44 @@ export interface HorizontalEmptyStateProps extends ComponentPropsWithoutRef<'div
|
|
|
10
10
|
* Vertical alignment of the content.
|
|
11
11
|
*/
|
|
12
12
|
alignment?: 'top' | 'center';
|
|
13
|
+
/**
|
|
14
|
+
* Additional class names
|
|
15
|
+
*/
|
|
16
|
+
className?: string;
|
|
13
17
|
/**
|
|
14
18
|
* A call-to-action region.
|
|
15
19
|
* This should be a Button, ButtonLink, or two items wrapped in a `pds-button-group` div.
|
|
16
20
|
*/
|
|
17
21
|
ctaRegion?: ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* heading to explain the empty state.
|
|
24
|
+
*/
|
|
25
|
+
heading: string;
|
|
26
|
+
/**
|
|
27
|
+
* Heading level.
|
|
28
|
+
*/
|
|
29
|
+
headingLevel?: HeadingLevel;
|
|
18
30
|
/**
|
|
19
31
|
* Pantheon collage image to display next to the main content.
|
|
20
|
-
* Can be a string (image path/URL) or a React node (e.g.,
|
|
32
|
+
* Can be a string (image path/URL) or a React node (e.g., the Picture component).
|
|
21
33
|
* If a video is provided, this will be ignored.
|
|
22
34
|
*/
|
|
23
|
-
image?: string |
|
|
35
|
+
image?: string | ReactNode;
|
|
24
36
|
/**
|
|
25
|
-
*
|
|
26
|
-
*
|
|
37
|
+
* Margin left of the image container (CSS value, e.g., '0', '10px', '20%').
|
|
38
|
+
* Default is '0'.
|
|
27
39
|
*/
|
|
28
|
-
|
|
40
|
+
imageMarginLeft?: string;
|
|
29
41
|
/**
|
|
30
|
-
*
|
|
42
|
+
* Width of the image container (CSS value, e.g., '40%', '30%', '300px').
|
|
43
|
+
* Default is '40%'.
|
|
31
44
|
*/
|
|
32
|
-
|
|
45
|
+
imageWidth?: string;
|
|
33
46
|
/**
|
|
34
|
-
*
|
|
47
|
+
* Will this be rendered within a panel?
|
|
48
|
+
* If true, the image and heading will be scaled down to fit within the panel.
|
|
35
49
|
*/
|
|
36
|
-
|
|
50
|
+
isWithinPanel?: boolean;
|
|
37
51
|
/**
|
|
38
52
|
* Message to display below the heading.
|
|
39
53
|
*/
|
|
@@ -48,22 +62,8 @@ export interface HorizontalEmptyStateProps extends ComponentPropsWithoutRef<'div
|
|
|
48
62
|
* If a video is provided, the image will be ignored.
|
|
49
63
|
*/
|
|
50
64
|
video?: VideoEmbedProps;
|
|
51
|
-
/**
|
|
52
|
-
* Width of the image container (CSS value, e.g., '40%', '30%', '300px').
|
|
53
|
-
* Default is '40%'.
|
|
54
|
-
*/
|
|
55
|
-
imageWidth?: string;
|
|
56
|
-
/**
|
|
57
|
-
* Margin left of the image container (CSS value, e.g., '0', '10px', '20%').
|
|
58
|
-
* Default is '0'.
|
|
59
|
-
*/
|
|
60
|
-
imageMarginLeft?: string;
|
|
61
|
-
/**
|
|
62
|
-
* Additional class names
|
|
63
|
-
*/
|
|
64
|
-
className?: string;
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
67
|
* HorizontalEmptyState UI component
|
|
68
68
|
*/
|
|
69
|
-
export declare const HorizontalEmptyState: ({ alignment,
|
|
69
|
+
export declare const HorizontalEmptyState: ({ alignment, className, ctaRegion, heading, headingLevel, image, imageMarginLeft, imageWidth, isWithinPanel, message, video, ...props }: HorizontalEmptyStateProps) => import("react/jsx-runtime").JSX.Element;
|