@pantheon-systems/pds-toolkit-react 1.0.0-dev.9998 → 1.0.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 +10 -10
- package/_dist/components/navigation/DashboardSearch/SiteOptionDisplay.d.ts +7 -7
- 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-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 +4 -2
- package/_dist/index.js +8372 -8581
- 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/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
|
@@ -1,15 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { FuiPlacement } from '
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import { FuiPlacement } from '../../libs/types/custom-types';
|
|
3
3
|
import './popover.css';
|
|
4
|
-
interface PopoverProps extends Omit<ComponentPropsWithoutRef<'div'>, 'content'> {
|
|
4
|
+
export 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,19 @@ 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: ({
|
|
66
|
-
export {};
|
|
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;
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
import
|
|
1
|
+
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 {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import './refresh-checker.css';
|
|
3
3
|
/**
|
|
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 {};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { SitePlanLevel, SiteType } from '@libs/types/custom-types';
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import { SitePlanLevel, SiteType } from '../../libs/types/custom-types';
|
|
4
3
|
import './site-dashboard-heading.css';
|
|
5
4
|
/**
|
|
6
5
|
* Prop types for SiteDashboardHeading
|
|
7
6
|
*/
|
|
8
7
|
export interface SiteDashboardHeadingProps extends ComponentPropsWithoutRef<'div'> {
|
|
8
|
+
/**
|
|
9
|
+
* Additional class names
|
|
10
|
+
*/
|
|
11
|
+
className?: string;
|
|
9
12
|
/**
|
|
10
13
|
* Function to handle upgrade click.
|
|
11
14
|
*/
|
|
@@ -14,14 +17,14 @@ export interface SiteDashboardHeadingProps extends ComponentPropsWithoutRef<'div
|
|
|
14
17
|
* Function to handle popover content.
|
|
15
18
|
*/
|
|
16
19
|
popoverContent?: ReactNode;
|
|
17
|
-
/**
|
|
18
|
-
* Title for the popover.
|
|
19
|
-
*/
|
|
20
|
-
popoverTitle?: string;
|
|
21
20
|
/**
|
|
22
21
|
* Function to handle popover open state.
|
|
23
22
|
*/
|
|
24
23
|
popoverIsOpen?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Title for the popover.
|
|
26
|
+
*/
|
|
27
|
+
popoverTitle?: string;
|
|
25
28
|
/**
|
|
26
29
|
* Function to set popover open state.
|
|
27
30
|
*/
|
|
@@ -39,19 +42,21 @@ export interface SiteDashboardHeadingProps extends ComponentPropsWithoutRef<'div
|
|
|
39
42
|
*/
|
|
40
43
|
siteType?: SiteType;
|
|
41
44
|
/**
|
|
42
|
-
* Additional props to pass to the trigger component.
|
|
45
|
+
* Additional props to pass to the trigger component. Accepts any HTML div attributes.
|
|
43
46
|
*/
|
|
44
|
-
triggerProps?:
|
|
47
|
+
triggerProps?: ComponentPropsWithoutRef<'div'> & {
|
|
48
|
+
[key: `data-${string}`]: string | undefined;
|
|
49
|
+
};
|
|
45
50
|
/**
|
|
46
51
|
* Label for the upgrade button.
|
|
47
52
|
*/
|
|
48
53
|
upgradeLabel: string;
|
|
49
54
|
/**
|
|
50
|
-
*
|
|
55
|
+
* Name of the workspace.
|
|
51
56
|
*/
|
|
52
|
-
|
|
57
|
+
workspaceName?: string;
|
|
53
58
|
}
|
|
54
59
|
/**
|
|
55
60
|
* SiteDashboardHeading UI component
|
|
56
61
|
*/
|
|
57
|
-
export declare const SiteDashboardHeading: ({ popoverContent, popoverIsOpen, popoverTitle,
|
|
62
|
+
export declare const SiteDashboardHeading: ({ className, handleUpgradeClick, popoverContent, popoverIsOpen, popoverTitle, setPopoverIsOpen, siteName, sitePlanLevel, siteType, triggerProps, upgradeLabel, workspaceName, ...props }: SiteDashboardHeadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import './skiplink.css';
|
|
3
3
|
interface SkiplinkProps extends ComponentPropsWithoutRef<'a'> {
|
|
4
|
+
/**
|
|
5
|
+
* Additional class names
|
|
6
|
+
*/
|
|
7
|
+
className?: string;
|
|
4
8
|
/**
|
|
5
9
|
* The ID of the element to skip to.
|
|
6
10
|
*/
|
|
@@ -9,13 +13,9 @@ interface SkiplinkProps extends ComponentPropsWithoutRef<'a'> {
|
|
|
9
13
|
* The text of the skip link.
|
|
10
14
|
*/
|
|
11
15
|
text: string;
|
|
12
|
-
/**
|
|
13
|
-
* Additional class names
|
|
14
|
-
*/
|
|
15
|
-
className?: string;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
* Skiplink UI component
|
|
19
19
|
*/
|
|
20
|
-
export declare const Skiplink: ({ destination, text,
|
|
20
|
+
export declare const Skiplink: ({ className, destination, text, ...props }: SkiplinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
21
|
export {};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { PDSIcon } from '
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { PDSIcon } from '../icons/Icon/Icon';
|
|
3
3
|
import './social-links.css';
|
|
4
4
|
interface SocialLinksProps extends ComponentPropsWithoutRef<'ul'> {
|
|
5
|
-
/**
|
|
6
|
-
* Array of social media links
|
|
7
|
-
*/
|
|
8
|
-
linkItems?: (keyof typeof socialData)[];
|
|
9
5
|
/**
|
|
10
6
|
* Additional class names
|
|
11
7
|
*/
|
|
12
8
|
className?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Array of social media links
|
|
11
|
+
*/
|
|
12
|
+
linkItems?: (keyof typeof socialData)[];
|
|
13
13
|
}
|
|
14
14
|
declare const socialData: Record<string, {
|
|
15
15
|
icon: PDSIcon;
|
|
16
|
-
url: string;
|
|
17
16
|
label: string;
|
|
17
|
+
url: string;
|
|
18
18
|
}>;
|
|
19
19
|
/**
|
|
20
20
|
* SocialLinks UI component
|
|
21
21
|
*/
|
|
22
|
-
export declare const SocialLinks: ({
|
|
22
|
+
export declare const SocialLinks: ({ className, linkItems, ...props }: SocialLinksProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
23
|
export {};
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { StatusType } from '../../libs/types/custom-types';
|
|
2
3
|
import './status-indicator.css';
|
|
3
4
|
export interface StatusIndicatorProps extends ComponentPropsWithoutRef<'div'> {
|
|
5
|
+
/**
|
|
6
|
+
* Additional class names
|
|
7
|
+
*/
|
|
8
|
+
className?: string;
|
|
4
9
|
/**
|
|
5
10
|
* Status label text
|
|
6
11
|
*/
|
|
@@ -12,13 +17,9 @@ export interface StatusIndicatorProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
12
17
|
/**
|
|
13
18
|
* Sets status type
|
|
14
19
|
*/
|
|
15
|
-
type:
|
|
16
|
-
/**
|
|
17
|
-
* Additional class names
|
|
18
|
-
*/
|
|
19
|
-
className?: string;
|
|
20
|
+
type: Exclude<StatusType, 'discovery'> | 'neutral' | 'new' | 'working';
|
|
20
21
|
}
|
|
21
22
|
/**
|
|
22
23
|
* StatusIndicator UI component
|
|
23
24
|
*/
|
|
24
|
-
export declare const StatusIndicator: ({ label, size, type,
|
|
25
|
+
export declare const StatusIndicator: ({ className, label, size, type, ...props }: StatusIndicatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
import './table.css';
|
|
3
3
|
/**
|
|
4
4
|
* Prop types for Table
|
|
5
5
|
*/
|
|
6
6
|
interface TableProps extends ComponentPropsWithoutRef<'table'> {
|
|
7
|
+
/**
|
|
8
|
+
* Additional class names
|
|
9
|
+
*/
|
|
10
|
+
className?: string;
|
|
7
11
|
/**
|
|
8
12
|
* Table headers
|
|
9
13
|
*/
|
|
10
14
|
headers?: Array<{
|
|
11
|
-
title: string;
|
|
12
15
|
sortable?: boolean;
|
|
16
|
+
title: string;
|
|
13
17
|
}>;
|
|
14
18
|
/**
|
|
15
|
-
* Table row data
|
|
19
|
+
* Table row data - array of rows, where each row is an array of cell values
|
|
16
20
|
*/
|
|
17
|
-
rowData?: ReactNode
|
|
18
|
-
/**
|
|
19
|
-
* Additional class names
|
|
20
|
-
*/
|
|
21
|
-
className?: string;
|
|
21
|
+
rowData?: Array<Array<string | ReactNode>>;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* Table UI component
|
|
25
25
|
*/
|
|
26
|
-
export declare const Table: ({ headers, rowData,
|
|
26
|
+
export declare const Table: ({ className, headers, rowData, ...props }: TableProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
27
|
export {};
|
|
@@ -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 './table-of-contents.css';
|
|
4
4
|
/**
|
|
5
5
|
* Prop types for TableOfContents
|
|
@@ -14,9 +14,9 @@ interface TableOfContentsProps extends ComponentPropsWithoutRef<'nav'> {
|
|
|
14
14
|
*/
|
|
15
15
|
ariaLabel?: string;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Additional class names.
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
className?: string;
|
|
20
20
|
/**
|
|
21
21
|
* Heading level for TOC heading.
|
|
22
22
|
*/
|
|
@@ -30,16 +30,16 @@ interface TableOfContentsProps extends ComponentPropsWithoutRef<'nav'> {
|
|
|
30
30
|
*/
|
|
31
31
|
ignoreClass?: string;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Whether the heading should be visible or not. If not visible it will still be presented to screen readers.
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
showHeading?: boolean;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* ID name of content region to be indexed.
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
sourceID?: string;
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
42
|
* TableOfContents UI component
|
|
43
43
|
*/
|
|
44
|
-
export declare const TableOfContents: ({ appendIds, ariaLabel, headingLevel, headingText, ignoreClass, showHeading, sourceID,
|
|
44
|
+
export declare const TableOfContents: ({ appendIds, ariaLabel, className, headingLevel, headingText, ignoreClass, showHeading, sourceID, ...props }: TableOfContentsProps) => import("react/jsx-runtime").JSX.Element;
|
|
45
45
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { PDSIcon } from '
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import { PDSIcon } from '../icons/Icon/Icon';
|
|
3
3
|
import './tabs.css';
|
|
4
4
|
interface Tabs {
|
|
5
5
|
/**
|
|
@@ -14,14 +14,14 @@ interface Tabs {
|
|
|
14
14
|
* Sets content inside tab
|
|
15
15
|
*/
|
|
16
16
|
panelContent: ReactNode;
|
|
17
|
-
/**
|
|
18
|
-
* Sets tab label
|
|
19
|
-
*/
|
|
20
|
-
tabLabel: string | ReactNode;
|
|
21
17
|
/**
|
|
22
18
|
* Sets id for tab.
|
|
23
19
|
*/
|
|
24
20
|
tabId?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Sets tab label
|
|
23
|
+
*/
|
|
24
|
+
tabLabel: string | ReactNode;
|
|
25
25
|
/**
|
|
26
26
|
* Sets optional tab tally.
|
|
27
27
|
*/
|
|
@@ -31,18 +31,22 @@ interface Tabs {
|
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
interface TabsProps extends ComponentPropsWithoutRef<'div'> {
|
|
34
|
-
/**
|
|
35
|
-
* Function to call when the active tab changes
|
|
36
|
-
*/
|
|
37
|
-
onActiveTabChange?: (activeTabIndex: number) => void;
|
|
38
34
|
/**
|
|
39
35
|
* Sets tabset aria label
|
|
40
36
|
*/
|
|
41
37
|
ariaLabel: string;
|
|
38
|
+
/**
|
|
39
|
+
* Additional class names
|
|
40
|
+
*/
|
|
41
|
+
className?: string;
|
|
42
42
|
/**
|
|
43
43
|
* Sets default selected tab using a zero-based index, defaults to 0
|
|
44
44
|
*/
|
|
45
45
|
defaultSelected?: number;
|
|
46
|
+
/**
|
|
47
|
+
* Function to call when the active tab changes
|
|
48
|
+
*/
|
|
49
|
+
onActiveTabChange?: (activeTabIndex: number) => void;
|
|
46
50
|
/**
|
|
47
51
|
* Sets currently selected tab using a zero-based index
|
|
48
52
|
*/
|
|
@@ -51,13 +55,9 @@ interface TabsProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
51
55
|
* Array of objects for tab data
|
|
52
56
|
*/
|
|
53
57
|
tabs: Tabs[];
|
|
54
|
-
/**
|
|
55
|
-
* Additional class names
|
|
56
|
-
*/
|
|
57
|
-
className?: string;
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
60
|
* Tabs UI component
|
|
61
61
|
*/
|
|
62
|
-
export declare const Tabs: ({ ariaLabel, defaultSelected, onActiveTabChange, selectedTab, tabs,
|
|
62
|
+
export declare const Tabs: ({ ariaLabel, className, defaultSelected, onActiveTabChange, selectedTab, tabs, ...props }: TabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
63
63
|
export {};
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
import './tag.css';
|
|
3
3
|
export declare const tagColors: string[];
|
|
4
4
|
type TagColor = (typeof tagColors)[number];
|
|
5
5
|
interface TagProps extends ComponentPropsWithoutRef<'div'> {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Additional class names
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
className?: string;
|
|
10
10
|
/**
|
|
11
11
|
* Should the tag be removable?
|
|
12
12
|
*/
|
|
13
13
|
isRemovable?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Should the tag be a link? If yes, provide a link element.
|
|
16
|
+
*/
|
|
17
|
+
linkContent?: ReactNode;
|
|
14
18
|
/**
|
|
15
19
|
* Function to execute when the tag is removed.
|
|
16
20
|
*/
|
|
@@ -27,13 +31,9 @@ interface TagProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
27
31
|
* Tag text
|
|
28
32
|
*/
|
|
29
33
|
tagLabel: string;
|
|
30
|
-
/**
|
|
31
|
-
* Additional class names
|
|
32
|
-
*/
|
|
33
|
-
className?: string;
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
36
|
* Tag UI component
|
|
37
37
|
*/
|
|
38
|
-
export declare const Tag: ({
|
|
38
|
+
export declare const Tag: ({ className, isRemovable, linkContent, onRemove, removeLabel, tagColor, tagLabel, ...props }: TagProps) => import("react/jsx-runtime").JSX.Element;
|
|
39
39
|
export {};
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import './theme-switcher.css';
|
|
3
3
|
/**
|
|
4
4
|
* Prop types for ThemeSwitcher
|
|
5
5
|
*/
|
|
6
6
|
export interface ThemeSwitcherProps extends Omit<ComponentPropsWithoutRef<'div'>, 'onChange'> {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Additional class names
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
className?: string;
|
|
11
11
|
/**
|
|
12
12
|
* Callback triggered when the theme changes
|
|
13
13
|
*/
|
|
14
14
|
onChange?: (theme: 'light' | 'dark' | 'system') => void;
|
|
15
|
+
/**
|
|
16
|
+
* The current theme
|
|
17
|
+
*/
|
|
18
|
+
theme?: 'light' | 'dark' | 'system';
|
|
15
19
|
/**
|
|
16
20
|
* Translation strings for theme options
|
|
17
21
|
*/
|
|
18
22
|
translations?: {
|
|
19
|
-
light: string;
|
|
20
23
|
dark: string;
|
|
24
|
+
light: string;
|
|
21
25
|
system: string;
|
|
22
26
|
tooltip?: string;
|
|
23
27
|
};
|
|
24
|
-
/**
|
|
25
|
-
* Additional class names
|
|
26
|
-
*/
|
|
27
|
-
className?: string;
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
30
|
* ThemeSwitcher UI component
|
|
31
31
|
*/
|
|
32
|
-
export declare const ThemeSwitcher: ({
|
|
32
|
+
export declare const ThemeSwitcher: ({ className, onChange, theme, translations, ...props }: ThemeSwitcherProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
import { Placement } from '@floating-ui/react';
|
|
3
|
-
import { FuiOffset } from '
|
|
3
|
+
import { FuiOffset } from '../../libs/types/custom-types';
|
|
4
4
|
import './tooltip.css';
|
|
5
5
|
interface TooltipProps extends ComponentPropsWithoutRef<'div'> {
|
|
6
|
+
/**
|
|
7
|
+
* Additional class names
|
|
8
|
+
*/
|
|
9
|
+
className?: string;
|
|
6
10
|
/**
|
|
7
11
|
* Text to display in tooltip container.
|
|
8
12
|
*/
|
|
@@ -39,13 +43,9 @@ interface TooltipProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
39
43
|
* Z-index value for the tooltip container. In most cases, the default value should be retained.
|
|
40
44
|
*/
|
|
41
45
|
zIndex?: number;
|
|
42
|
-
/**
|
|
43
|
-
* Additional class names
|
|
44
|
-
*/
|
|
45
|
-
className?: string;
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
48
|
* Tooltip UI component
|
|
49
49
|
*/
|
|
50
|
-
export declare const Tooltip: ({ content, customTrigger, offsetValue, preferredPlacement, triggerAccessibleText, triggerIcon, triggerIconColor, triggerIconSize, zIndex,
|
|
50
|
+
export declare const Tooltip: ({ className, content, customTrigger, offsetValue, preferredPlacement, triggerAccessibleText, triggerIcon, triggerIconColor, triggerIconSize, zIndex, ...props }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
51
51
|
export {};
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import './video-embed.css';
|
|
3
3
|
/**
|
|
4
4
|
* Prop types for VideoEmbed
|
|
5
5
|
*/
|
|
6
6
|
export interface VideoEmbedProps extends ComponentPropsWithoutRef<'div'> {
|
|
7
|
+
/**
|
|
8
|
+
* Additional class names
|
|
9
|
+
*/
|
|
10
|
+
className?: string;
|
|
7
11
|
/**
|
|
8
12
|
* Video hosting platform.
|
|
9
13
|
*/
|
|
@@ -17,12 +21,8 @@ export interface VideoEmbedProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
17
21
|
* If none is provided it will default to `"[platform] video player"`
|
|
18
22
|
*/
|
|
19
23
|
videoTitle?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Additional class names
|
|
22
|
-
*/
|
|
23
|
-
className?: string;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* VideoEmbed UI component
|
|
27
27
|
*/
|
|
28
|
-
export declare const VideoEmbed: ({ platform, videoId, videoTitle,
|
|
28
|
+
export declare const VideoEmbed: ({ className, platform, videoId, videoTitle, ...props }: VideoEmbedProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import './indicator-badge.css';
|
|
3
3
|
/**
|
|
4
4
|
* IndicatorBadge component props
|
|
5
5
|
*/
|
|
6
6
|
export interface IndicatorBadgeProps extends ComponentPropsWithoutRef<'span'> {
|
|
7
|
+
/**
|
|
8
|
+
* Additional class names
|
|
9
|
+
*/
|
|
10
|
+
className?: string;
|
|
7
11
|
/**
|
|
8
12
|
* Badge color
|
|
9
13
|
*/
|
|
10
|
-
color: 'critical' | 'info' | 'success' | 'warning' | 'neutral' | 'brand' | 'silver' | 'gold' | 'platinum' | 'diamond';
|
|
14
|
+
color: 'critical' | 'info' | 'success' | 'warning' | 'neutral' | 'brand' | 'silver' | 'gold' | 'platinum' | 'diamond' | 'default';
|
|
11
15
|
/**
|
|
12
16
|
* Badge text.
|
|
13
17
|
*/
|
|
@@ -16,12 +20,8 @@ export interface IndicatorBadgeProps extends ComponentPropsWithoutRef<'span'> {
|
|
|
16
20
|
* Badge size
|
|
17
21
|
*/
|
|
18
22
|
size?: 'sm' | 'md';
|
|
19
|
-
/**
|
|
20
|
-
* Additional class names
|
|
21
|
-
*/
|
|
22
|
-
className?: string;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* IndicatorBadge UI component
|
|
26
26
|
*/
|
|
27
|
-
export declare const IndicatorBadge: ({
|
|
27
|
+
export declare const IndicatorBadge: ({ className, color, label, size, ...props }: IndicatorBadgeProps) => import("react/jsx-runtime").JSX.Element;
|