@pantheon-systems/pds-toolkit-react 1.0.0-dev.16 → 1.0.0-dev.160
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 +31 -1
- package/_dist/components/Avatar/Avatar.d.ts +29 -0
- package/_dist/components/Breadcrumbs/Breadcrumbs.d.ts +9 -0
- package/_dist/components/Breadcrumbs/BreadcrumbsContent.d.ts +12 -0
- package/_dist/components/Breadcrumbs/BreadcrumbsContext.d.ts +17 -0
- package/_dist/components/Breadcrumbs/ListItem.d.ts +14 -0
- package/_dist/components/Breadcrumbs/MobileCrumbs.d.ts +2 -0
- package/_dist/components/CTALink/CTALink.d.ts +20 -0
- package/_dist/components/CTASlice/CTASlice.d.ts +34 -0
- package/_dist/components/Callout/Callout.d.ts +24 -0
- package/_dist/components/Callout/sample-callout-content.d.ts +2 -0
- package/_dist/components/ComparisonList/ComparisonList.d.ts +42 -0
- package/_dist/components/Heading/Heading.d.ts +15 -0
- package/_dist/components/Icon/Icon.d.ts +624 -0
- package/_dist/components/Icon/iconList.d.ts +1 -0
- package/_dist/components/Modal/Modal.d.ts +40 -0
- package/_dist/components/Pager/AdvancedPagination.d.ts +4 -0
- package/_dist/components/Pager/BasicPagination.d.ts +4 -0
- package/_dist/components/Pager/MiniPagination.d.ts +4 -0
- package/_dist/components/Pager/NavigationButton.d.ts +13 -0
- package/_dist/components/Pager/Pager.d.ts +24 -0
- package/_dist/components/Pager/PagerContext.d.ts +23 -0
- package/_dist/components/Pager/PagerItem.d.ts +14 -0
- package/_dist/components/Pager/usePaginationUI.d.ts +1 -0
- package/_dist/components/Panel/Panel.d.ts +30 -0
- package/_dist/components/PantheonLogo/PantheonLogo.d.ts +25 -0
- package/_dist/components/PlatformIcon/PlatformIcon.d.ts +13 -0
- package/_dist/components/Popover/Popover.d.ts +57 -0
- package/_dist/components/PullQuote/PullQuote.d.ts +34 -0
- package/_dist/components/Skiplink/Skiplink.d.ts +21 -0
- package/_dist/components/SocialLinks/SocialLinks.d.ts +13 -0
- package/_dist/components/StatusIndicator/StatusIndicator.d.ts +20 -0
- package/_dist/components/Stepper/Stepper.d.ts +46 -0
- package/_dist/components/Table/Table.d.ts +15 -0
- package/_dist/components/TableOfContents/TableOfContents.d.ts +25 -0
- package/_dist/components/Tabs/Tabs.d.ts +60 -0
- package/_dist/components/Tag/Tag.d.ts +39 -0
- package/_dist/components/Tooltip/Tooltip.d.ts +43 -0
- package/_dist/components/badges/IndicatorBadge/IndicatorBadge.d.ts +27 -0
- package/_dist/components/badges/StatusBadge/StatusBadge.d.ts +35 -0
- package/_dist/components/badges/Tally/Tally.d.ts +35 -0
- package/_dist/components/buttons/Button/Button.d.ts +5 -0
- package/_dist/components/buttons/ButtonLink/ButtonLink.d.ts +24 -0
- package/_dist/components/buttons/IconButton/IconButton.d.ts +50 -0
- package/_dist/components/buttons/MenuButton/MenuButton.d.ts +63 -0
- package/_dist/components/buttons/SegmentedButton/SegmentedButton.d.ts +45 -0
- package/_dist/components/buttons/SplitButton/SplitButton.d.ts +36 -0
- package/_dist/components/buttons/ToggleButton/ToggleButton.d.ts +35 -0
- package/_dist/components/cards/Card/Card.d.ts +30 -0
- package/_dist/components/cards/CardSelectGroup/CardSelectGroup.d.ts +38 -0
- package/_dist/components/cards/LinksCard/LinksCard.d.ts +17 -0
- package/_dist/components/cards/NewSiteCard/NewSiteCard.d.ts +25 -0
- package/_dist/components/cards/PricingCard/PricingCard.d.ts +64 -0
- package/_dist/components/cards/SiteCard/SiteCard.d.ts +25 -0
- package/_dist/components/expansion-panels/ExpansionPanel/ExpansionPanel.d.ts +19 -0
- package/_dist/components/expansion-panels/ExpansionPanelGroup/ExpansionPanelGroup.d.ts +15 -0
- package/_dist/components/footer/FooterHeading/FooterHeading.d.ts +15 -0
- package/_dist/components/footer/FooterLinks/FooterLinks.d.ts +17 -0
- package/_dist/components/footer/SiteFooter/SiteFooter.d.ts +18 -0
- package/_dist/components/inputs/Checkbox/Checkbox.d.ts +92 -0
- package/_dist/components/inputs/CheckboxFieldset/CheckboxFieldset.d.ts +60 -0
- package/_dist/components/inputs/CheckboxGroup/CheckboxGroup.d.ts +76 -0
- package/_dist/components/inputs/Combobox/Combobox.d.ts +5 -0
- package/_dist/components/inputs/FileUpload/FileUpload.d.ts +37 -0
- package/_dist/components/inputs/InputFormatted/InputFormatted.d.ts +35 -0
- package/_dist/components/inputs/InputGroup/InputGroup.d.ts +19 -0
- package/_dist/components/inputs/InputObscured/InputObscured.d.ts +33 -0
- package/_dist/components/inputs/InputText/InputText.d.ts +75 -0
- package/_dist/components/inputs/InputWrapper/InputWrapper.d.ts +5 -0
- package/_dist/components/inputs/RadioGroup/RadioGroup.d.ts +46 -0
- package/_dist/components/inputs/Select/Select.d.ts +45 -0
- package/_dist/components/inputs/Switch/Switch.d.ts +74 -0
- package/_dist/components/inputs/TextInput/TextInput.d.ts +127 -0
- package/_dist/components/inputs/Textarea/Textarea.d.ts +39 -0
- package/_dist/components/inputs/ToggleSwitch/ToggleSwitch.d.ts +33 -0
- package/_dist/components/inputs/input-types.d.ts +1 -0
- package/_dist/components/inputs/input-utilities.d.ts +55 -0
- package/_dist/components/inputs/inputs-common.d.ts +40 -0
- package/_dist/components/navigation/DashboardNav/DashboardNav.d.ts +43 -0
- package/_dist/components/navigation/DashboardSearch/DashboardSearch.d.ts +69 -0
- package/_dist/components/navigation/DashboardSearch/SiteOptionDisplay.d.ts +10 -0
- package/_dist/components/navigation/DropdownMenu/DropdownMenu.d.ts +28 -0
- package/_dist/components/navigation/NavMenu/NavMenu.d.ts +19 -0
- package/_dist/components/navigation/NavMenu/NavMenuDropdown.d.ts +14 -0
- package/_dist/components/navigation/Navbar/Navbar.d.ts +35 -0
- package/_dist/components/navigation/SideNav/SideNav.d.ts +47 -0
- package/_dist/components/navigation/SideNavCompact/SideNavCompact.d.ts +47 -0
- package/_dist/components/navigation/UserMenu/UserMenu.d.ts +44 -0
- package/_dist/components/navigation/WorkspaceSelector/WorkspaceSelector.d.ts +58 -0
- package/_dist/components/navigation/navigation-types.d.ts +39 -0
- package/_dist/components/navigation/navigation-utilities.d.ts +7 -0
- package/_dist/components/notifications/Banner/Banner.d.ts +47 -0
- package/_dist/components/notifications/InlineMessage/InlineMessage.d.ts +37 -0
- package/_dist/components/notifications/SectionMessage/SectionMessage.d.ts +47 -0
- package/_dist/components/notifications/Toaster/Toast.d.ts +30 -0
- package/_dist/components/notifications/Toaster/Toaster.d.ts +16 -0
- package/_dist/components/notifications/Toaster/useToast.d.ts +2 -0
- package/_dist/components/progress-indicators/ProgressBar/ProgressBar.d.ts +35 -0
- package/_dist/components/progress-indicators/ProgressRing/ProgressRing.d.ts +25 -0
- package/_dist/components/progress-indicators/Spinner/Spinner.d.ts +33 -0
- package/_dist/components/tiles/AvatarTileList/AvatarTileList.d.ts +22 -0
- package/_dist/components/tiles/StatsTileList/StatsTileList.d.ts +26 -0
- package/_dist/components/tiles/Tile/Tile.d.ts +23 -0
- package/_dist/components/tiles/TileGrid/TileGrid.d.ts +38 -0
- package/_dist/css/component-css/pds-avatar-tile-list.css +1 -0
- package/_dist/css/component-css/pds-avatar.css +1 -0
- package/_dist/css/component-css/pds-banner.css +1 -0
- package/_dist/css/component-css/pds-breadcrumbs.css +1 -0
- package/_dist/css/component-css/pds-button-link.css +1 -0
- package/_dist/css/component-css/pds-button.css +81 -0
- package/_dist/css/component-css/pds-callout.css +1 -0
- package/_dist/css/component-css/pds-card-select-group.css +1 -0
- package/_dist/css/component-css/pds-card.css +1 -0
- package/_dist/css/component-css/pds-checkbox-group.css +1 -0
- package/_dist/css/component-css/pds-checkbox.css +1 -0
- package/_dist/css/component-css/pds-combobox.css +1 -0
- package/_dist/css/component-css/pds-comparison-list.css +1 -0
- package/_dist/css/component-css/pds-cta-link.css +1 -0
- package/_dist/css/component-css/pds-cta-slice.css +1 -0
- package/_dist/css/component-css/pds-dashboard-nav.css +5 -0
- package/_dist/css/component-css/pds-dashboard-search.css +1 -0
- package/_dist/css/component-css/pds-dropdown-menu.css +2 -0
- package/_dist/css/component-css/pds-expansion-panel-group.css +1 -0
- package/_dist/css/component-css/pds-expansion-panel.css +1 -0
- package/_dist/css/component-css/pds-file-upload.css +5 -0
- package/_dist/css/component-css/pds-footer-heading.css +1 -0
- package/_dist/css/component-css/pds-footer-links.css +1 -0
- package/_dist/css/component-css/pds-heading.css +1 -0
- package/_dist/css/component-css/pds-icon-button.css +17 -0
- package/_dist/css/component-css/pds-icon-story-only.css +1 -0
- package/_dist/css/component-css/pds-index.css +157 -0
- package/_dist/css/component-css/pds-indicator-badge.css +37 -0
- package/_dist/css/component-css/pds-inline-message.css +1 -0
- package/_dist/css/component-css/pds-input-group.css +1 -0
- package/_dist/css/component-css/pds-input-text.css +1 -0
- package/_dist/css/component-css/pds-input-utilities.css +1 -0
- package/_dist/css/component-css/pds-input-wrapper.css +1 -0
- package/_dist/css/component-css/pds-inputs-common-deprecated.css +1 -0
- package/_dist/css/component-css/pds-inputs-common.css +1 -0
- package/_dist/css/component-css/pds-links-card.css +1 -0
- package/_dist/css/component-css/pds-menu-button.css +1 -0
- package/_dist/css/component-css/pds-modal.css +1 -0
- package/_dist/css/component-css/pds-nav-menu.css +1 -0
- package/_dist/css/component-css/pds-navbar.css +3 -0
- package/_dist/css/component-css/pds-new-site-card.css +1 -0
- package/_dist/css/component-css/pds-pager.css +1 -0
- package/_dist/css/component-css/pds-panel.css +1 -0
- package/_dist/css/component-css/pds-pantheon-logo.css +1 -0
- package/_dist/css/component-css/pds-platform-icon.css +1 -0
- package/_dist/css/component-css/pds-popover.css +1 -0
- package/_dist/css/component-css/pds-pricing-card-local.css +1 -0
- package/_dist/css/component-css/pds-pricing-card.css +1 -0
- package/_dist/css/component-css/pds-progress-bar.css +1 -0
- package/_dist/css/component-css/pds-progress-ring.css +1 -0
- package/_dist/css/component-css/pds-pull-quote.css +1 -0
- package/_dist/css/component-css/pds-radio-group.css +1 -0
- package/_dist/css/component-css/pds-section-message.css +1 -0
- package/_dist/css/component-css/pds-segmented-button.css +1 -0
- package/_dist/css/component-css/pds-select.css +1 -0
- package/_dist/css/component-css/pds-side-nav-compact.css +1 -0
- package/_dist/css/component-css/pds-side-nav.css +1 -0
- package/_dist/css/component-css/pds-site-card.css +1 -0
- package/_dist/css/component-css/pds-site-footer.css +1 -0
- package/_dist/css/component-css/pds-skiplink.css +1 -0
- package/_dist/css/component-css/pds-social-links.css +1 -0
- package/_dist/css/component-css/pds-spinner.css +1 -0
- package/_dist/css/component-css/pds-split-button.css +2 -0
- package/_dist/css/component-css/pds-stats-tile-list.css +1 -0
- package/_dist/css/component-css/pds-status-badge.css +9 -0
- package/_dist/css/component-css/pds-status-indicator.css +1 -0
- package/_dist/css/component-css/pds-stepper.css +1 -0
- package/_dist/css/component-css/pds-switch.css +3 -0
- package/_dist/css/component-css/pds-table-of-contents.css +1 -0
- package/_dist/css/component-css/pds-table.css +1 -0
- package/_dist/css/component-css/pds-tabs.css +1 -0
- package/_dist/css/component-css/pds-tag.css +1 -0
- package/_dist/css/component-css/pds-tally.css +1 -0
- package/_dist/css/component-css/pds-text-input.css +1 -0
- package/_dist/css/component-css/pds-textarea.css +1 -0
- package/_dist/css/component-css/pds-tile.css +1 -0
- package/_dist/css/component-css/pds-tiles-common.css +1 -0
- package/_dist/css/component-css/pds-toaster.css +1 -0
- package/_dist/css/component-css/pds-toggle-button.css +1 -0
- package/_dist/css/component-css/pds-toggle-switch.css +3 -0
- package/_dist/css/component-css/pds-tooltip.css +1 -0
- package/_dist/css/component-css/pds-user-menu-story-only.css +1 -0
- package/_dist/css/component-css/pds-user-menu.css +1 -0
- package/_dist/css/component-css/pds-workspace-selector.css +1 -0
- package/_dist/css/design-tokens/pds-design-tokens-dark-mode.css +272 -0
- package/_dist/css/design-tokens/pds-design-tokens-light-mode.css +333 -0
- package/_dist/css/design-tokens/pds-design-tokens.css +105 -0
- package/_dist/css/pds-components.css +120 -70
- package/_dist/css/pds-core.css +6 -2
- package/_dist/css/pds-layouts.css +2 -1
- package/_dist/index.css +1 -0
- package/_dist/index.d.ts +92 -0
- package/_dist/index.js +11518 -0
- package/_dist/index.js.map +1 -0
- package/_dist/layouts/Container/Container.d.ts +16 -0
- package/_dist/layouts/DashboardLayout/DashboardLayout.d.ts +44 -0
- package/_dist/layouts/DashboardLayout/DemoContent.d.ts +2 -0
- package/_dist/layouts/FlexContainer/FlexContainer.d.ts +27 -0
- package/_dist/layouts/GlobalWrapper/GlobalWrapper.d.ts +19 -0
- package/_dist/layouts/SidebarLayout/SidebarLayout.d.ts +21 -0
- package/_dist/layouts/StepperLayout/StepperLayout.d.ts +13 -0
- package/_dist/layouts/ThreeItemLayout/ThreeItemLayout.d.ts +15 -0
- package/_dist/layouts/TwoItemLayout/TwoItemLayout.d.ts +17 -0
- package/_dist/libs/components/custom-types.d.ts +5 -0
- package/_dist/libs/components/customPropTypes.d.ts +85 -0
- package/_dist/libs/components/utils.d.ts +3 -0
- package/_dist/utilities/context-providers/ResponsiveContext/ResponsiveContext.d.ts +6 -0
- package/_dist/vars/spacing.d.ts +17 -0
- package/_dist/vars/z-index.d.ts +5 -0
- package/package.json +85 -43
- package/_dist/cjs/index.js +0 -98
- package/_dist/cjs/index.js.map +0 -1
- package/_dist/esm/index.js +0 -98
- package/_dist/esm/index.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const iconList: string[];
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import './modal.css';
|
|
3
|
+
export interface ModalProps extends ComponentPropsWithoutRef<'div'> {
|
|
4
|
+
/**
|
|
5
|
+
* Aria label that describes the modal. Will default to the title if not provided.
|
|
6
|
+
*/
|
|
7
|
+
ariaLabel?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Main content for modal.
|
|
10
|
+
*/
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Indicates if the built-in close button will be shown.
|
|
14
|
+
*/
|
|
15
|
+
hasCloseButton?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Is the modal open?
|
|
18
|
+
*/
|
|
19
|
+
modalIsOpen?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Function to set the modal open state.
|
|
22
|
+
*/
|
|
23
|
+
setModalIsOpen?: (isOpen: boolean) => void;
|
|
24
|
+
/**
|
|
25
|
+
* The width of the modal.
|
|
26
|
+
*/
|
|
27
|
+
size?: 'sm' | 'md' | 'lg';
|
|
28
|
+
/**
|
|
29
|
+
* Text for modal title
|
|
30
|
+
*/
|
|
31
|
+
title: string;
|
|
32
|
+
/**
|
|
33
|
+
* Additional class names
|
|
34
|
+
*/
|
|
35
|
+
className?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Modal UI component
|
|
39
|
+
*/
|
|
40
|
+
export declare const Modal: ({ ariaLabel, children, hasCloseButton, modalIsOpen, setModalIsOpen, size, title, className, ...props }: ModalProps) => React.JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export function NavigationButton({ arrowText, direction, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
arrowText?: any;
|
|
4
|
+
direction: any;
|
|
5
|
+
}): React.JSX.Element;
|
|
6
|
+
export namespace NavigationButton {
|
|
7
|
+
namespace propTypes {
|
|
8
|
+
let arrowText: PropTypes.Requireable<string>;
|
|
9
|
+
let direction: PropTypes.Requireable<string>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export function Pager({ buttonCallback, headingId, pages, paginationItemClickHandler, render, type, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
buttonCallback?: any;
|
|
4
|
+
headingId?: string;
|
|
5
|
+
pages: any;
|
|
6
|
+
paginationItemClickHandler?: any;
|
|
7
|
+
render?: any;
|
|
8
|
+
type?: string;
|
|
9
|
+
}): React.JSX.Element;
|
|
10
|
+
export namespace Pager {
|
|
11
|
+
namespace propTypes {
|
|
12
|
+
let buttonCallback: PropTypes.Requireable<(...args: any[]) => any>;
|
|
13
|
+
let headingId: PropTypes.Requireable<string>;
|
|
14
|
+
let pages: PropTypes.Validator<PropTypes.InferProps<{
|
|
15
|
+
href: PropTypes.Requireable<string>;
|
|
16
|
+
}>[]>;
|
|
17
|
+
let paginationItemClickHandler: PropTypes.Requireable<(...args: any[]) => any>;
|
|
18
|
+
let render: PropTypes.Requireable<(...args: any[]) => any>;
|
|
19
|
+
let type: PropTypes.Requireable<string>;
|
|
20
|
+
let className: PropTypes.Requireable<string>;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
import React from 'react';
|
|
24
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export const PagerContext: React.Context<{}>;
|
|
2
|
+
export function ContextProvider({ pages, render, paginationItemClickHandler, headingId, buttonCallback, children, }: {
|
|
3
|
+
pages: any;
|
|
4
|
+
render?: any;
|
|
5
|
+
paginationItemClickHandler?: any;
|
|
6
|
+
headingId?: string;
|
|
7
|
+
buttonCallback?: any;
|
|
8
|
+
children: any;
|
|
9
|
+
}): React.JSX.Element;
|
|
10
|
+
export namespace ContextProvider {
|
|
11
|
+
namespace propTypes {
|
|
12
|
+
let children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
13
|
+
let render: PropTypes.Requireable<(...args: any[]) => any>;
|
|
14
|
+
let paginationItemClickHandler: PropTypes.Requireable<(...args: any[]) => any>;
|
|
15
|
+
let buttonCallback: PropTypes.Requireable<(...args: any[]) => any>;
|
|
16
|
+
let pages: PropTypes.Validator<PropTypes.InferProps<{
|
|
17
|
+
link: PropTypes.Requireable<string>;
|
|
18
|
+
}>[]>;
|
|
19
|
+
let headingId: PropTypes.Requireable<string>;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
import React from 'react';
|
|
23
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export function PagerItem({ index, page, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
index: any;
|
|
4
|
+
page: any;
|
|
5
|
+
}): React.JSX.Element;
|
|
6
|
+
export namespace PagerItem {
|
|
7
|
+
namespace propTypes {
|
|
8
|
+
let index: PropTypes.Validator<number>;
|
|
9
|
+
let page: PropTypes.Validator<NonNullable<NonNullable<string | object>>>;
|
|
10
|
+
let render: PropTypes.Requireable<(...args: any[]) => any>;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
import React from 'react';
|
|
14
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function usePaginationUI(pages: any, currentPages: any, setCurrentPages: any, currentKey: any, itemLength: any, pageDirection: any): void;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import './panel.css';
|
|
3
|
+
type StatusType = 'info' | 'success' | 'warning' | 'critical';
|
|
4
|
+
export interface PanelProps extends ComponentPropsWithoutRef<'div'> {
|
|
5
|
+
/**
|
|
6
|
+
* Panel content.
|
|
7
|
+
*/
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* Should the panel show a status indicator.
|
|
11
|
+
*/
|
|
12
|
+
hasStatusIndicator?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Status type for panel. Only renders if `hasStatusIndicator` is true.
|
|
15
|
+
*/
|
|
16
|
+
statusType: StatusType;
|
|
17
|
+
/**
|
|
18
|
+
* Which variant of panel to render
|
|
19
|
+
*/
|
|
20
|
+
variant?: 'default' | 'sunken' | 'raised' | 'overlay' | 'critical';
|
|
21
|
+
/**
|
|
22
|
+
* Additional class names
|
|
23
|
+
*/
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Panel UI component
|
|
28
|
+
*/
|
|
29
|
+
export declare const Panel: ({ children, hasStatusIndicator, statusType, variant, className, ...props }: PanelProps) => React.JSX.Element;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export function PantheonLogo({ colorType, displayType, isLink, subBrand, className, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
colorType?: string;
|
|
4
|
+
displayType?: string;
|
|
5
|
+
isLink: any;
|
|
6
|
+
subBrand: any;
|
|
7
|
+
className: any;
|
|
8
|
+
}): React.JSX.Element;
|
|
9
|
+
export namespace PantheonLogo {
|
|
10
|
+
namespace propTypes {
|
|
11
|
+
let colorType: PropTypes.Requireable<string>;
|
|
12
|
+
let displayType: PropTypes.Requireable<string>;
|
|
13
|
+
let isLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
14
|
+
ariaLabel: PropTypes.Requireable<string>;
|
|
15
|
+
link: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
16
|
+
}>>;
|
|
17
|
+
let subBrand: PropTypes.Requireable<PropTypes.InferProps<{
|
|
18
|
+
link: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
19
|
+
text: PropTypes.Requireable<string>;
|
|
20
|
+
}>>;
|
|
21
|
+
let className: PropTypes.Requireable<string>;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
import React from 'react';
|
|
25
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export function PlatformIcon({ platformType, className, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
platformType: any;
|
|
4
|
+
className: any;
|
|
5
|
+
}): React.JSX.Element;
|
|
6
|
+
export namespace PlatformIcon {
|
|
7
|
+
namespace propTypes {
|
|
8
|
+
let platformType: PropTypes.Requireable<string>;
|
|
9
|
+
let className: PropTypes.Requireable<string>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import './popover.css';
|
|
3
|
+
interface PopoverProps extends Omit<ComponentPropsWithoutRef<'div'>, 'content'> {
|
|
4
|
+
/**
|
|
5
|
+
* Content to display in the popover.
|
|
6
|
+
*/
|
|
7
|
+
content?: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* 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.
|
|
10
|
+
*/
|
|
11
|
+
customTrigger?: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Indicates if close button will be shown.
|
|
14
|
+
*/
|
|
15
|
+
hasCloseButton?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Additional spacing between the trigger and the popover. Only applies to popovers with a custom trigger. Icon triggers have a fixed spacing.
|
|
18
|
+
*/
|
|
19
|
+
offsetValue?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Callback function that triggers when closing Popover.
|
|
22
|
+
*/
|
|
23
|
+
onClose?: () => void;
|
|
24
|
+
/**
|
|
25
|
+
* Preferred placement of the popover in relation to the trigger. Will be modified if there is not enough space.
|
|
26
|
+
*/
|
|
27
|
+
placement?: 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end';
|
|
28
|
+
/**
|
|
29
|
+
* Text for popover title
|
|
30
|
+
*/
|
|
31
|
+
title?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The accessible text for the trigger. Only necessary when the trigger is an icon.
|
|
34
|
+
*/
|
|
35
|
+
triggerAccessibleText?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Icon to trigger Popover.
|
|
38
|
+
*/
|
|
39
|
+
triggerIcon?: 'circleInfo' | 'circleQuestion';
|
|
40
|
+
/**
|
|
41
|
+
* Is the Popover open?
|
|
42
|
+
*/
|
|
43
|
+
popoverIsOpen?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Function to set Popover open state
|
|
46
|
+
*/
|
|
47
|
+
setPopoverIsOpen?: (isOpen: boolean) => void;
|
|
48
|
+
/**
|
|
49
|
+
* Additional class names.
|
|
50
|
+
*/
|
|
51
|
+
className?: string;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Popover UI component
|
|
55
|
+
*/
|
|
56
|
+
export declare const Popover: ({ content, customTrigger, hasCloseButton, offsetValue, onClose, placement, title, triggerIcon, triggerAccessibleText, popoverIsOpen, setPopoverIsOpen, className, ...props }: PopoverProps) => React.JSX.Element;
|
|
57
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import './pull-quote.css';
|
|
3
|
+
interface Attribution {
|
|
4
|
+
name: string;
|
|
5
|
+
title: string;
|
|
6
|
+
org: string;
|
|
7
|
+
}
|
|
8
|
+
interface PullQuoteProps extends ComponentPropsWithoutRef<'div'> {
|
|
9
|
+
/**
|
|
10
|
+
* Attribution for the quote
|
|
11
|
+
*/
|
|
12
|
+
attribution?: Attribution;
|
|
13
|
+
/**
|
|
14
|
+
* Image src. For stand-alone layout only, will not render for inline layout.
|
|
15
|
+
*/
|
|
16
|
+
image?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The layout type for the pull quote
|
|
19
|
+
*/
|
|
20
|
+
layoutType?: 'stand-alone' | 'inline';
|
|
21
|
+
/**
|
|
22
|
+
* The quote text
|
|
23
|
+
*/
|
|
24
|
+
quote: string;
|
|
25
|
+
/**
|
|
26
|
+
* Additional class names
|
|
27
|
+
*/
|
|
28
|
+
className?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* PullQuote UI component
|
|
32
|
+
*/
|
|
33
|
+
export declare const PullQuote: ({ attribution, image, layoutType, quote, className, ...props }: PullQuoteProps) => React.JSX.Element;
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import './skiplink.css';
|
|
3
|
+
interface SkiplinkProps extends ComponentPropsWithoutRef<'a'> {
|
|
4
|
+
/**
|
|
5
|
+
* The ID of the element to skip to.
|
|
6
|
+
*/
|
|
7
|
+
destination: string;
|
|
8
|
+
/**
|
|
9
|
+
* The text of the skip link.
|
|
10
|
+
*/
|
|
11
|
+
text: string;
|
|
12
|
+
/**
|
|
13
|
+
* Additional class names
|
|
14
|
+
*/
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Skiplink UI component
|
|
19
|
+
*/
|
|
20
|
+
export declare const Skiplink: ({ destination, text, className, ...props }: SkiplinkProps) => React.JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export function SocialLinks({ linkItems, className, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
linkItems?: string[];
|
|
4
|
+
className: any;
|
|
5
|
+
}): React.JSX.Element;
|
|
6
|
+
export namespace SocialLinks {
|
|
7
|
+
namespace propTypes {
|
|
8
|
+
let linkItems: PropTypes.Requireable<any[]>;
|
|
9
|
+
let className: PropTypes.Requireable<string>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import './status-indicator.css';
|
|
3
|
+
export interface StatusIndicatorProps extends ComponentPropsWithoutRef<'div'> {
|
|
4
|
+
/**
|
|
5
|
+
* Status label text
|
|
6
|
+
*/
|
|
7
|
+
label: string;
|
|
8
|
+
/**
|
|
9
|
+
* Sets status type
|
|
10
|
+
*/
|
|
11
|
+
type: 'critical' | 'info' | 'neutral' | 'new' | 'success' | 'warning' | 'working';
|
|
12
|
+
/**
|
|
13
|
+
* Additional class names
|
|
14
|
+
*/
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* StatusIndicator UI component
|
|
19
|
+
*/
|
|
20
|
+
export declare const StatusIndicator: ({ label, type, className, ...props }: StatusIndicatorProps) => React.JSX.Element;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export function Stepper({ steps, translatableLabels, className, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
steps: any;
|
|
4
|
+
translatableLabels?: {
|
|
5
|
+
step: string;
|
|
6
|
+
completed: string;
|
|
7
|
+
hasError: string;
|
|
8
|
+
next: string;
|
|
9
|
+
};
|
|
10
|
+
className: any;
|
|
11
|
+
}): React.JSX.Element;
|
|
12
|
+
export namespace Stepper {
|
|
13
|
+
namespace propTypes {
|
|
14
|
+
let steps: PropTypes.Requireable<PropTypes.InferProps<{
|
|
15
|
+
/**
|
|
16
|
+
* Callback function to return to a previously completed step.
|
|
17
|
+
*/
|
|
18
|
+
callback: PropTypes.Requireable<(...args: any[]) => any>;
|
|
19
|
+
/**
|
|
20
|
+
* If the step has an error.
|
|
21
|
+
*/
|
|
22
|
+
hasError: PropTypes.Requireable<boolean>;
|
|
23
|
+
/**
|
|
24
|
+
* Id for the step.
|
|
25
|
+
*/
|
|
26
|
+
id: PropTypes.Requireable<string>;
|
|
27
|
+
/**
|
|
28
|
+
* If the step is the current active step.
|
|
29
|
+
*/
|
|
30
|
+
isCurrent: PropTypes.Requireable<boolean>;
|
|
31
|
+
/**
|
|
32
|
+
* The label for the step.
|
|
33
|
+
*/
|
|
34
|
+
label: PropTypes.Validator<string>;
|
|
35
|
+
}>[]>;
|
|
36
|
+
let translatableLabels: PropTypes.Requireable<PropTypes.InferProps<{
|
|
37
|
+
step: PropTypes.Requireable<string>;
|
|
38
|
+
completed: PropTypes.Requireable<string>;
|
|
39
|
+
hasError: PropTypes.Requireable<string>;
|
|
40
|
+
next: PropTypes.Requireable<string>;
|
|
41
|
+
}>>;
|
|
42
|
+
let className: PropTypes.Requireable<string>;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
import React from 'react';
|
|
46
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export function Table({ headers, rowData, className, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
headers: any;
|
|
4
|
+
rowData: any;
|
|
5
|
+
className: any;
|
|
6
|
+
}): React.JSX.Element;
|
|
7
|
+
export namespace Table {
|
|
8
|
+
namespace propTypes {
|
|
9
|
+
let headers: PropTypes.Requireable<object[]>;
|
|
10
|
+
let rowData: PropTypes.Requireable<PropTypes.ReactNodeLike[]>;
|
|
11
|
+
let className: PropTypes.Requireable<string>;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
import React from 'react';
|
|
15
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export function TableOfContents({ appendIds, ariaLabel, headingLevel, headingText, ignoreClass, showHeading, sourceID, className, ...props }: {
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
appendIds?: boolean;
|
|
4
|
+
ariaLabel?: string;
|
|
5
|
+
headingLevel?: string;
|
|
6
|
+
headingText?: string;
|
|
7
|
+
ignoreClass?: string;
|
|
8
|
+
showHeading?: boolean;
|
|
9
|
+
sourceID?: string;
|
|
10
|
+
className: any;
|
|
11
|
+
}): React.JSX.Element;
|
|
12
|
+
export namespace TableOfContents {
|
|
13
|
+
namespace propTypes {
|
|
14
|
+
let appendIds: PropTypes.Requireable<boolean>;
|
|
15
|
+
let ariaLabel: PropTypes.Requireable<string>;
|
|
16
|
+
let showHeading: PropTypes.Requireable<boolean>;
|
|
17
|
+
let headingLevel: PropTypes.Requireable<string>;
|
|
18
|
+
let headingText: PropTypes.Requireable<string>;
|
|
19
|
+
let ignoreClass: PropTypes.Requireable<string>;
|
|
20
|
+
let sourceID: PropTypes.Requireable<string>;
|
|
21
|
+
let className: PropTypes.Requireable<string>;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
import React from 'react';
|
|
25
|
+
import PropTypes from 'prop-types';
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import { PDSIcon } from '@components/Icon/Icon';
|
|
3
|
+
import './tabs.css';
|
|
4
|
+
interface Tabs {
|
|
5
|
+
/**
|
|
6
|
+
* Sets if tab disabled (optional)
|
|
7
|
+
*/
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Adds tab icon (optional)
|
|
11
|
+
*/
|
|
12
|
+
icon?: PDSIcon;
|
|
13
|
+
/**
|
|
14
|
+
* Sets tab label
|
|
15
|
+
*/
|
|
16
|
+
tabLabel: string;
|
|
17
|
+
/**
|
|
18
|
+
* Sets id for tab (optional)
|
|
19
|
+
*/
|
|
20
|
+
tabId?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Sets content inside tab
|
|
23
|
+
*/
|
|
24
|
+
panelContent: ReactNode;
|
|
25
|
+
}
|
|
26
|
+
interface TabsProps extends ComponentPropsWithoutRef<'div'> {
|
|
27
|
+
/**
|
|
28
|
+
* Function to call when the active tab changes
|
|
29
|
+
*/
|
|
30
|
+
onActiveTabChange?: (activeTabIndex: number) => void;
|
|
31
|
+
/**
|
|
32
|
+
* Sets tabset aria label
|
|
33
|
+
*/
|
|
34
|
+
ariaLabel: string;
|
|
35
|
+
/**
|
|
36
|
+
* Sets default selected tab using a zero-based index, defaults to 0
|
|
37
|
+
*/
|
|
38
|
+
defaultSelected?: number;
|
|
39
|
+
/**
|
|
40
|
+
* Sets currently selected tab using a zero-based index
|
|
41
|
+
*/
|
|
42
|
+
selectedTab?: number;
|
|
43
|
+
/**
|
|
44
|
+
* Sets size of tab
|
|
45
|
+
*/
|
|
46
|
+
size?: 'sm' | 'md';
|
|
47
|
+
/**
|
|
48
|
+
* Array of objects for tab data
|
|
49
|
+
*/
|
|
50
|
+
tabs: Tabs[];
|
|
51
|
+
/**
|
|
52
|
+
* Additional class names
|
|
53
|
+
*/
|
|
54
|
+
className?: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Tabs UI component
|
|
58
|
+
*/
|
|
59
|
+
export declare const Tabs: ({ onActiveTabChange, ariaLabel, defaultSelected, selectedTab, size, tabs, className, ...props }: TabsProps) => React.JSX.Element;
|
|
60
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import './tag.css';
|
|
3
|
+
export declare let tagColors: string[];
|
|
4
|
+
type TagColor = (typeof tagColors)[number];
|
|
5
|
+
interface TagProps extends ComponentPropsWithoutRef<'div'> {
|
|
6
|
+
/**
|
|
7
|
+
* Should the tag be a link? If yes, provide a link element.
|
|
8
|
+
*/
|
|
9
|
+
linkContent?: ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* Should the tag be removable?
|
|
12
|
+
*/
|
|
13
|
+
isRemovable?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Function to execute when the tag is removed.
|
|
16
|
+
*/
|
|
17
|
+
onRemove?: () => void;
|
|
18
|
+
/**
|
|
19
|
+
* Label for the remove button. Tag text will be appended to this label.
|
|
20
|
+
*/
|
|
21
|
+
removeLabel?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Tag color. Will use random color if not selected.
|
|
24
|
+
*/
|
|
25
|
+
tagColor?: TagColor;
|
|
26
|
+
/**
|
|
27
|
+
* Tag text
|
|
28
|
+
*/
|
|
29
|
+
tagLabel: string;
|
|
30
|
+
/**
|
|
31
|
+
* Additional class names
|
|
32
|
+
*/
|
|
33
|
+
className?: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Tag UI component
|
|
37
|
+
*/
|
|
38
|
+
export declare const Tag: ({ linkContent, isRemovable, onRemove, removeLabel, tagColor, tagLabel, className, ...props }: TagProps) => React.JSX.Element;
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import { Placement } from '@floating-ui/react';
|
|
3
|
+
import { FuiOffset } from '@libs/components/custom-types';
|
|
4
|
+
import './tooltip.css';
|
|
5
|
+
interface TooltipProps extends ComponentPropsWithoutRef<'div'> {
|
|
6
|
+
/**
|
|
7
|
+
* Text to display in tooltip
|
|
8
|
+
*/
|
|
9
|
+
content: string;
|
|
10
|
+
/**
|
|
11
|
+
* 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.
|
|
12
|
+
*/
|
|
13
|
+
customTrigger?: ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Number to provide custom z-index value for the tooltip container
|
|
16
|
+
*/
|
|
17
|
+
customZIndex?: number;
|
|
18
|
+
/**
|
|
19
|
+
* The spacing between the trigger and the tooltip in pixels. Only applies to tooltips with a custom trigger. Icon triggers have a fixed spacing.
|
|
20
|
+
*/
|
|
21
|
+
offsetValue?: FuiOffset;
|
|
22
|
+
/**
|
|
23
|
+
* The preferred placement of the tooltip relative to the trigger.
|
|
24
|
+
*/
|
|
25
|
+
preferredPlacement?: Placement;
|
|
26
|
+
/**
|
|
27
|
+
* The accessible text for the trigger. Only necessary when the trigger is an icon.
|
|
28
|
+
*/
|
|
29
|
+
triggerAccessibleText?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Icon to trigger tooltip
|
|
32
|
+
*/
|
|
33
|
+
triggerIcon?: 'circleInfo' | 'circleQuestion' | 'circleExclamation';
|
|
34
|
+
/**
|
|
35
|
+
* Additional class names
|
|
36
|
+
*/
|
|
37
|
+
className?: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Tooltip UI component
|
|
41
|
+
*/
|
|
42
|
+
export declare const Tooltip: ({ content, customTrigger, customZIndex, offsetValue, preferredPlacement, triggerAccessibleText, triggerIcon, className, ...props }: TooltipProps) => React.JSX.Element;
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import './indicator-badge.css';
|
|
3
|
+
/**
|
|
4
|
+
* IndicatorBadge component props
|
|
5
|
+
*/
|
|
6
|
+
export interface IndicatorBadgeProps extends ComponentPropsWithoutRef<'span'> {
|
|
7
|
+
/**
|
|
8
|
+
* Badge color
|
|
9
|
+
*/
|
|
10
|
+
color: 'critical' | 'info' | 'success' | 'neutral' | 'warning' | 'silver' | 'gold' | 'platinum' | 'diamond';
|
|
11
|
+
/**
|
|
12
|
+
* Badge text.
|
|
13
|
+
*/
|
|
14
|
+
label: string;
|
|
15
|
+
/**
|
|
16
|
+
* Badge size
|
|
17
|
+
*/
|
|
18
|
+
size: 'sm' | 'md';
|
|
19
|
+
/**
|
|
20
|
+
* Additional class names
|
|
21
|
+
*/
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* IndicatorBadge UI component
|
|
26
|
+
*/
|
|
27
|
+
export declare const IndicatorBadge: ({ label, size, color, className, ...props }: IndicatorBadgeProps) => React.JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import './status-badge.css';
|
|
3
|
+
/**
|
|
4
|
+
* StatusBadge component props
|
|
5
|
+
*/
|
|
6
|
+
export interface StatusBadgeProps extends ComponentPropsWithoutRef<'div'> {
|
|
7
|
+
/**
|
|
8
|
+
* Background color for badge
|
|
9
|
+
*/
|
|
10
|
+
color?: 'transparent' | 'neutral' | 'reverse';
|
|
11
|
+
/**
|
|
12
|
+
* Should the badge show a status indicator.
|
|
13
|
+
*/
|
|
14
|
+
hasStatusIndicator?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Text for badge.
|
|
17
|
+
*/
|
|
18
|
+
label: string;
|
|
19
|
+
/**
|
|
20
|
+
* Translatable text for status indicator — for screen readers.
|
|
21
|
+
*/
|
|
22
|
+
statusIndicatorText?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Status type for badge. Only renders if `hasStatusIndicator` is true.
|
|
25
|
+
*/
|
|
26
|
+
statusType: 'success' | 'info' | 'frozen' | 'critical' | 'warning' | 'discovery' | 'disabled';
|
|
27
|
+
/**
|
|
28
|
+
* Additional class names
|
|
29
|
+
*/
|
|
30
|
+
className?: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* StatusBadge UI component
|
|
34
|
+
*/
|
|
35
|
+
export declare const StatusBadge: ({ color, hasStatusIndicator, label, statusIndicatorText, statusType, className, ...props }: StatusBadgeProps) => React.JSX.Element;
|