@pantheon-systems/pds-toolkit-react 1.0.0-dev.23 → 1.0.0-dev.231
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 +37 -0
- package/_dist/components/BranchDiff/BranchDiff.d.ts +35 -0
- package/_dist/components/CTALink/CTALink.d.ts +20 -0
- package/_dist/components/CTASlice/CTASlice.d.ts +43 -0
- package/_dist/components/Callout/Callout.d.ts +31 -0
- package/_dist/components/Callout/sample-callout-content.d.ts +2 -0
- package/_dist/components/CodeBlock/CodeBlock.d.ts +61 -0
- package/_dist/components/CodeBlock/code-examples.d.ts +5 -0
- package/_dist/components/CodeBlock/themes/index.d.ts +2 -0
- package/_dist/components/CodeBlock/themes/pdsDark.d.ts +2 -0
- package/_dist/components/CodeBlock/themes/pdsLight.d.ts +2 -0
- package/_dist/components/ComparisonList/ComparisonList.d.ts +42 -0
- package/_dist/components/DashboardStat/DashboardStat.d.ts +28 -0
- package/_dist/components/FileDiff/FileDiff.d.ts +35 -0
- package/_dist/components/FlowSteps/FlowSteps.d.ts +33 -0
- package/_dist/components/FlowSteps/example-steps.d.ts +15 -0
- package/_dist/components/Icon/Icon.d.ts +686 -0
- package/_dist/components/LinkNewWindow/LinkNewWindow.d.ts +31 -0
- package/_dist/components/Modal/Modal.d.ts +40 -0
- package/_dist/components/Pagination/Pagination.d.ts +54 -0
- package/_dist/components/Pagination/usePagination.d.ts +7 -0
- package/_dist/components/PantheonLogo/PantheonLogo.d.ts +32 -0
- package/_dist/components/PantheonLogo/pantheon-logo-data.d.ts +4 -0
- package/_dist/components/PlatformIcon/PlatformIcon.d.ts +12 -0
- package/_dist/components/Popover/Popover.d.ts +58 -0
- package/_dist/components/PullQuote/PullQuote.d.ts +34 -0
- package/_dist/components/RefreshChecker/RefreshChecker.d.ts +54 -0
- package/_dist/components/SiteDashboardHeading/SiteDashboardHeading.d.ts +28 -0
- package/_dist/components/Skiplink/Skiplink.d.ts +21 -0
- package/_dist/components/SocialLinks/SocialLinks.d.ts +23 -0
- package/_dist/components/StatusIndicator/StatusIndicator.d.ts +24 -0
- package/_dist/components/Stepper/Stepper.d.ts +49 -0
- package/_dist/components/Table/Table.d.ts +27 -0
- package/_dist/components/TableOfContents/TableOfContents.d.ts +45 -0
- package/_dist/components/Tabs/Tabs.d.ts +63 -0
- package/_dist/components/Tag/Tag.d.ts +39 -0
- package/_dist/components/Tooltip/Tooltip.d.ts +51 -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 +38 -0
- package/_dist/components/buttons/Button/Button.d.ts +62 -0
- package/_dist/components/buttons/ButtonLink/ButtonLink.d.ts +44 -0
- package/_dist/components/buttons/ClipboardButton/ClipboardButton.d.ts +31 -0
- package/_dist/components/buttons/IconButton/IconButton.d.ts +50 -0
- package/_dist/components/buttons/MenuButton/MenuButton.d.ts +75 -0
- package/_dist/components/buttons/SegmentedButton/SegmentedButton.d.ts +62 -0
- package/_dist/components/buttons/SplitButton/SplitButton.d.ts +37 -0
- package/_dist/components/buttons/UtilityButton/UtilityButton.d.ts +48 -0
- package/_dist/components/cards/Card/Card.d.ts +29 -0
- package/_dist/components/cards/CardHeading/CardHeading.d.ts +32 -0
- package/_dist/components/cards/CardSelectGroup/CardSelectGroup.d.ts +60 -0
- package/_dist/components/cards/LinksCard/LinksCard.d.ts +29 -0
- package/_dist/components/cards/LinksCard/links-card-sample-data.d.ts +2 -0
- package/_dist/components/cards/NewSiteCard/NewSiteCard.d.ts +57 -0
- package/_dist/components/cards/PricingCard/PricingCard.d.ts +90 -0
- package/_dist/components/cards/SiteCard/SiteCard.d.ts +45 -0
- package/_dist/components/footer/FooterHeading/FooterHeading.d.ts +22 -0
- package/_dist/components/footer/FooterLinks/FooterLinks.d.ts +26 -0
- package/_dist/components/footer/SiteFooter/SiteFooter.d.ts +26 -0
- package/_dist/components/footer/SiteFooter/footer-content.d.ts +2 -0
- package/_dist/components/inputs/Checkbox/Checkbox.d.ts +96 -0
- package/_dist/components/inputs/CheckboxFieldset/CheckboxFieldset.d.ts +64 -0
- package/_dist/components/inputs/CheckboxGroup/CheckboxGroup.d.ts +80 -0
- package/_dist/components/inputs/Combobox/Combobox.d.ts +138 -0
- package/_dist/components/inputs/FileUpload/FileUpload.d.ts +93 -0
- package/_dist/components/inputs/InputGroup/InputGroup.d.ts +19 -0
- package/_dist/components/inputs/RadioGroup/RadioGroup.d.ts +104 -0
- package/_dist/components/inputs/Select/Select.d.ts +122 -0
- package/_dist/components/inputs/Switch/Switch.d.ts +74 -0
- package/_dist/components/inputs/TextInput/TextInput.d.ts +135 -0
- package/_dist/components/inputs/Textarea/Textarea.d.ts +110 -0
- package/_dist/components/inputs/input-types.d.ts +1 -0
- package/_dist/components/inputs/input-utilities.d.ts +94 -0
- package/_dist/components/navigation/Breadcrumb/Breadcrumb.d.ts +23 -0
- package/_dist/components/navigation/DashboardNav/DashboardNav.d.ts +35 -0
- package/_dist/components/navigation/DashboardNav/DashboardNavItem.d.ts +25 -0
- package/_dist/components/navigation/DashboardNav/dashboard-nav-utilities.d.ts +4 -0
- package/_dist/components/navigation/DashboardSearch/DashboardSearch.d.ts +70 -0
- package/_dist/components/navigation/DashboardSearch/SiteOptionDisplay.d.ts +39 -0
- package/_dist/components/navigation/DropdownMenu/DropdownMenu.d.ts +28 -0
- package/_dist/components/navigation/NavMenu/NavMenu.d.ts +43 -0
- package/_dist/components/navigation/NavMenu/NavMenuDropdown.d.ts +24 -0
- package/_dist/components/navigation/Navbar/Navbar.d.ts +60 -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/TabMenu/TabMenu.d.ts +43 -0
- package/_dist/components/navigation/TabMenu/TabMenuDropdown.d.ts +33 -0
- package/_dist/components/navigation/UserMenu/UserMenu.d.ts +69 -0
- package/_dist/components/navigation/WorkspaceSelector/WorkspaceSelector.d.ts +80 -0
- package/_dist/components/navigation/navigation-types.d.ts +29 -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 +46 -0
- package/_dist/components/notifications/Toaster/Toaster.d.ts +29 -0
- package/_dist/components/notifications/Toaster/useToast.d.ts +14 -0
- package/_dist/components/panels/ExpansionPanel/ExpansionPanel.d.ts +32 -0
- package/_dist/components/panels/ExpansionPanelGroup/ExpansionPanelGroup.d.ts +24 -0
- package/_dist/components/panels/Panel/Panel.d.ts +35 -0
- package/_dist/components/panels/PanelList/PanelList.d.ts +28 -0
- package/_dist/components/panels/PanelList/PanelRow.d.ts +19 -0
- package/_dist/components/progress-indicators/ProgressBar/ProgressBar.d.ts +53 -0
- package/_dist/components/progress-indicators/ProgressRing/ProgressRing.d.ts +41 -0
- package/_dist/components/progress-indicators/Spinner/Spinner.d.ts +32 -0
- package/_dist/components/tiles/AvatarTileList/AvatarTileList.d.ts +28 -0
- package/_dist/components/tiles/Tile/Tile.d.ts +42 -0
- package/_dist/components/tiles/TileGrid/TileGrid.d.ts +29 -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-branch-diff.css +1 -0
- package/_dist/css/component-css/pds-breadcrumb.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-heading.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-clipboard-button.css +0 -0
- package/_dist/css/component-css/pds-code-block.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-dashboard-stat.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-diff.css +1 -0
- package/_dist/css/component-css/pds-file-upload.css +7 -0
- package/_dist/css/component-css/pds-flow-steps.css +1 -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-icon-button.css +13 -0
- package/_dist/css/component-css/pds-icon-story-only.css +1 -0
- package/_dist/css/component-css/pds-index.css +150 -0
- package/_dist/css/component-css/pds-indicator-badge.css +39 -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-utilities.css +1 -0
- package/_dist/css/component-css/pds-link-new-window.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 +5 -0
- package/_dist/css/component-css/pds-navbar.css +1 -0
- package/_dist/css/component-css/pds-new-site-card.css +1 -0
- package/_dist/css/component-css/pds-pagination.css +1 -0
- package/_dist/css/component-css/pds-panel-list.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-refresh-checker.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-dashboard-heading.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-status-badge.css +1 -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-tab-menu.css +2 -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-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-utility-button.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 +206 -0
- package/_dist/css/design-tokens/pds-design-tokens-light-mode.css +306 -0
- package/_dist/css/design-tokens/pds-design-tokens.css +131 -0
- package/_dist/css/pds-components.css +150 -0
- package/_dist/css/pds-core.css +6 -2
- package/_dist/css/pds-layouts.css +8 -0
- package/_dist/index.css +1 -0
- package/_dist/index.d.ts +103 -0
- package/_dist/index.js +10353 -0
- package/_dist/index.js.map +1 -0
- package/_dist/layouts/Container/Container.d.ts +25 -0
- package/_dist/layouts/DashboardGlobal/DashboardGlobal.d.ts +57 -0
- package/_dist/layouts/DashboardInner/DashboardInner.d.ts +20 -0
- package/_dist/layouts/FlexContainer/FlexContainer.d.ts +72 -0
- package/_dist/layouts/GlobalWrapper/GlobalWrapper.d.ts +19 -0
- package/_dist/layouts/SidebarLayout/SidebarLayout.d.ts +36 -0
- package/_dist/layouts/StepperLayout/StepperLayout.d.ts +20 -0
- package/_dist/layouts/ThreeItemLayout/ThreeItemLayout.d.ts +30 -0
- package/_dist/layouts/TwoItemLayout/TwoItemLayout.d.ts +34 -0
- package/_dist/layouts/layout-types.d.ts +2 -0
- package/_dist/libs/components/utility-components.d.ts +15 -0
- package/_dist/libs/components/utils.d.ts +4 -0
- package/_dist/libs/types/custom-types.d.ts +103 -0
- package/_dist/mocks/data/navigation-items.d.ts +382 -0
- package/_dist/mocks/data/pagination-items.d.ts +16 -0
- package/_dist/mocks/markup/dashboard-main-content.d.ts +10 -0
- package/_dist/mocks/markup/dashboard-navigation.d.ts +11 -0
- package/_dist/mocks/markup/inputs.d.ts +2 -0
- package/_dist/mocks/markup/modal.d.ts +2 -0
- package/_dist/mocks/markup/panel-row-content.d.ts +7 -0
- package/_dist/utilities/context-providers/ResponsiveContext/ResponsiveContext.d.ts +6 -0
- package/_dist/utilities/hooks/useClipboard.d.ts +6 -0
- package/_dist/utilities/hooks/useWindowWidth.d.ts +1 -0
- package/_dist/vars/animation.d.ts +5 -0
- package/_dist/vars/spacing.d.ts +17 -0
- package/_dist/vars/z-index.d.ts +5 -0
- package/package.json +92 -44
- 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,31 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import './link-new-window.css';
|
|
3
|
+
/**
|
|
4
|
+
* Prop types for LinkNewWindow
|
|
5
|
+
*/
|
|
6
|
+
export interface LinkNewWindowProps extends ComponentPropsWithoutRef<'a'> {
|
|
7
|
+
/**
|
|
8
|
+
* Content for the LinkNewWindow.
|
|
9
|
+
*/
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Optional font size for the LinkNewWindow. If not provided, the font size will be inherited from the parent element.
|
|
13
|
+
*/
|
|
14
|
+
fontSize?: 'sm' | 'md' | 'lg';
|
|
15
|
+
/**
|
|
16
|
+
* Translation string for the "opens in a new window" message.
|
|
17
|
+
*/
|
|
18
|
+
newWindowText?: string;
|
|
19
|
+
/**
|
|
20
|
+
* URL where the component should link to.
|
|
21
|
+
*/
|
|
22
|
+
url: string;
|
|
23
|
+
/**
|
|
24
|
+
* Additional class names
|
|
25
|
+
*/
|
|
26
|
+
className?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* LinkNewWindow UI component
|
|
30
|
+
*/
|
|
31
|
+
export declare const LinkNewWindow: ({ children, fontSize, newWindowText, url, className, ...props }: LinkNewWindowProps) => React.JSX.Element;
|
|
@@ -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' | 'xl';
|
|
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,54 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { HeadingLevel } from '@libs/types/custom-types';
|
|
3
|
+
import './pagination.css';
|
|
4
|
+
/**
|
|
5
|
+
* Prop types for Pagination
|
|
6
|
+
*/
|
|
7
|
+
export interface PaginationProps extends ComponentPropsWithoutRef<'nav'> {
|
|
8
|
+
/**
|
|
9
|
+
* Minimum number of page buttons to buffer on either side of the current page.
|
|
10
|
+
* This will change the number of page buttons shown in total.
|
|
11
|
+
*/
|
|
12
|
+
bufferCount?: number;
|
|
13
|
+
/**
|
|
14
|
+
* Current page number.
|
|
15
|
+
*/
|
|
16
|
+
currentPage: number;
|
|
17
|
+
/**
|
|
18
|
+
* Heading level. Defaults to `h2`.
|
|
19
|
+
*/
|
|
20
|
+
headingLevel?: HeadingLevel;
|
|
21
|
+
/**
|
|
22
|
+
* Heading text for the pagination component. Will only be accessible to screen readers.
|
|
23
|
+
*/
|
|
24
|
+
headingText?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Number of items per page.
|
|
27
|
+
*/
|
|
28
|
+
itemsPerPage?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Label strings for previous and next buttons.
|
|
31
|
+
*/
|
|
32
|
+
labelStrings?: {
|
|
33
|
+
previous: string;
|
|
34
|
+
next: string;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Callback to handle page change.
|
|
38
|
+
* Use a state hook to update the current page in a parent component.
|
|
39
|
+
* For example: `onPageChange={(page) => setCurrentPage(page)}`
|
|
40
|
+
*/
|
|
41
|
+
onPageChange?: (page: number) => void;
|
|
42
|
+
/**
|
|
43
|
+
* Total number of items to paginate.
|
|
44
|
+
*/
|
|
45
|
+
totalItemCount: number;
|
|
46
|
+
/**
|
|
47
|
+
* Additional class names.
|
|
48
|
+
*/
|
|
49
|
+
className?: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Pagination UI component
|
|
53
|
+
*/
|
|
54
|
+
export declare const Pagination: ({ bufferCount, currentPage, headingLevel, headingText, itemsPerPage, labelStrings, onPageChange, totalItemCount, className, ...props }: PaginationProps) => React.JSX.Element;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import './pantheon-logo.css';
|
|
3
|
+
export type PantheonLogoDisplayType = 'full' | 'icon' | 'wordmark' | 'sub-brand' | 'sub-brand-small';
|
|
4
|
+
/**
|
|
5
|
+
* Prop types for PantheonLogo
|
|
6
|
+
*/
|
|
7
|
+
export interface PantheonLogoProps extends ComponentPropsWithoutRef<'div'> {
|
|
8
|
+
/**
|
|
9
|
+
* Color type. Use 'default' unless the logo is used on an approved dark background.
|
|
10
|
+
*/
|
|
11
|
+
colorType?: 'default' | 'reverse';
|
|
12
|
+
/**
|
|
13
|
+
* Display type
|
|
14
|
+
*/
|
|
15
|
+
displayType?: PantheonLogoDisplayType;
|
|
16
|
+
/**
|
|
17
|
+
* A fully-formed link element using the router of your choice. The link text will be used as the aria-label. If the logo should not be a link, set to `null`.
|
|
18
|
+
*/
|
|
19
|
+
linkContent?: ReactNode;
|
|
20
|
+
/**
|
|
21
|
+
* Accepts a fully-formed link or a string (if a static site name is desired). Will only render if the `display-type` is set to 'sub-brand'.
|
|
22
|
+
*/
|
|
23
|
+
subBrand?: ReactNode | string;
|
|
24
|
+
/**
|
|
25
|
+
* Additional class names
|
|
26
|
+
*/
|
|
27
|
+
className?: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* PantheonLogo UI component
|
|
31
|
+
*/
|
|
32
|
+
export declare const PantheonLogo: ({ colorType, displayType, linkContent, subBrand, className, ...props }: PantheonLogoProps) => React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import './platform-icon.css';
|
|
3
|
+
type PlatformType = 'drupal' | 'drupal7' | 'front-end-sites' | 'gatsby' | 'gatsby-wp' | 'import-custom' | 'next' | 'next-drupal' | 'next-wp' | 'wordpress';
|
|
4
|
+
interface PlatformIconProps extends ComponentPropsWithoutRef<'div'> {
|
|
5
|
+
platformType: PlatformType;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* PlatformIcon UI component
|
|
10
|
+
*/
|
|
11
|
+
export declare const PlatformIcon: ({ platformType, className, ...props }: PlatformIconProps) => React.JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import { FuiPlacement } from '@libs/types/custom-types';
|
|
3
|
+
import './popover.css';
|
|
4
|
+
interface PopoverProps extends Omit<ComponentPropsWithoutRef<'div'>, 'content'> {
|
|
5
|
+
/**
|
|
6
|
+
* Content to display in the popover.
|
|
7
|
+
*/
|
|
8
|
+
content?: ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* 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.
|
|
11
|
+
*/
|
|
12
|
+
customTrigger?: ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Indicates if close button will be shown.
|
|
15
|
+
*/
|
|
16
|
+
hasCloseButton?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Additional spacing between the trigger and the popover. Only applies to popovers with a custom trigger. Icon triggers have a fixed spacing.
|
|
19
|
+
*/
|
|
20
|
+
offsetValue?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Callback function that triggers when closing Popover.
|
|
23
|
+
*/
|
|
24
|
+
onClose?: () => void;
|
|
25
|
+
/**
|
|
26
|
+
* Preferred placement of the popover in relation to the trigger. Will be modified if there is not enough space.
|
|
27
|
+
*/
|
|
28
|
+
placement?: FuiPlacement;
|
|
29
|
+
/**
|
|
30
|
+
* Text for popover title.
|
|
31
|
+
*/
|
|
32
|
+
title?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The accessible text for the trigger. Only necessary when the trigger is an icon.
|
|
35
|
+
*/
|
|
36
|
+
triggerAccessibleText?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The icon to use as the trigger.
|
|
39
|
+
*/
|
|
40
|
+
triggerIcon?: 'circleInfo' | 'circleQuestion';
|
|
41
|
+
/**
|
|
42
|
+
* Boolean to determine if the Popover is open by default.
|
|
43
|
+
*/
|
|
44
|
+
popoverIsOpen?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Function to set Popover open state.
|
|
47
|
+
*/
|
|
48
|
+
setPopoverIsOpen?: (isOpen: boolean) => void;
|
|
49
|
+
/**
|
|
50
|
+
* Additional class names.
|
|
51
|
+
*/
|
|
52
|
+
className?: string;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Popover UI component
|
|
56
|
+
*/
|
|
57
|
+
export declare const Popover: ({ content, customTrigger, hasCloseButton, offsetValue, onClose, placement, title, triggerIcon, triggerAccessibleText, popoverIsOpen, setPopoverIsOpen, className, ...props }: PopoverProps) => React.JSX.Element;
|
|
58
|
+
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,54 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import './refresh-checker.css';
|
|
3
|
+
/**
|
|
4
|
+
* Enum for RefreshChecker states
|
|
5
|
+
*/
|
|
6
|
+
export declare enum RefreshCheckerState {
|
|
7
|
+
DEFAULT = "default",
|
|
8
|
+
WORKING = "working",
|
|
9
|
+
CHECKED = "checked"
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Prop types for RefreshChecker
|
|
13
|
+
*/
|
|
14
|
+
interface RefreshCheckerProps extends ComponentPropsWithoutRef<'div'> {
|
|
15
|
+
/**
|
|
16
|
+
* Alignment of the component. Default is left.
|
|
17
|
+
*/
|
|
18
|
+
alignment?: 'left' | 'right';
|
|
19
|
+
/**
|
|
20
|
+
* Custom width in rems for the component. This will override the default.
|
|
21
|
+
*/
|
|
22
|
+
componentWidth?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Initial state of the component.
|
|
25
|
+
*/
|
|
26
|
+
initialState?: `${RefreshCheckerState}`;
|
|
27
|
+
/**
|
|
28
|
+
* Internationalization props for labels.
|
|
29
|
+
*/
|
|
30
|
+
labelStrings?: {
|
|
31
|
+
checkForUpdates?: string;
|
|
32
|
+
checking?: string;
|
|
33
|
+
checked?: string;
|
|
34
|
+
tooltipContent?: string;
|
|
35
|
+
ariaLabel?: string;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Last checked timestamp
|
|
39
|
+
*/
|
|
40
|
+
lastChecked?: Date;
|
|
41
|
+
/**
|
|
42
|
+
* Callback function when check is triggered
|
|
43
|
+
*/
|
|
44
|
+
onCheck?: () => Promise<void>;
|
|
45
|
+
/**
|
|
46
|
+
* Additional class names
|
|
47
|
+
*/
|
|
48
|
+
className?: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* RefreshChecker UI component
|
|
52
|
+
*/
|
|
53
|
+
export declare const RefreshChecker: ({ alignment, componentWidth, initialState, labelStrings, lastChecked, onCheck, className, ...props }: RefreshCheckerProps) => React.JSX.Element;
|
|
54
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { SitePlanLevel, SiteType } from '@libs/types/custom-types';
|
|
3
|
+
import './site-dashboard-heading.css';
|
|
4
|
+
/**
|
|
5
|
+
* Prop types for SiteDashboardHeading
|
|
6
|
+
*/
|
|
7
|
+
export interface SiteDashboardHeadingProps extends ComponentPropsWithoutRef<'div'> {
|
|
8
|
+
/**
|
|
9
|
+
* Name of the site.
|
|
10
|
+
*/
|
|
11
|
+
siteName: string;
|
|
12
|
+
/**
|
|
13
|
+
* Site plan level.
|
|
14
|
+
*/
|
|
15
|
+
sitePlanLevel?: SitePlanLevel;
|
|
16
|
+
/**
|
|
17
|
+
* Site type.
|
|
18
|
+
*/
|
|
19
|
+
siteType?: SiteType;
|
|
20
|
+
/**
|
|
21
|
+
* Additional class names
|
|
22
|
+
*/
|
|
23
|
+
className?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* SiteDashboardHeading UI component
|
|
27
|
+
*/
|
|
28
|
+
export declare const SiteDashboardHeading: ({ siteName, sitePlanLevel, siteType, className, ...props }: SiteDashboardHeadingProps) => React.JSX.Element;
|
|
@@ -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,23 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { PDSIcon } from '@components/Icon/Icon';
|
|
3
|
+
import './social-links.css';
|
|
4
|
+
interface SocialLinksProps extends ComponentPropsWithoutRef<'ul'> {
|
|
5
|
+
/**
|
|
6
|
+
* Array of social media links
|
|
7
|
+
*/
|
|
8
|
+
linkItems?: (keyof typeof socialData)[];
|
|
9
|
+
/**
|
|
10
|
+
* Additional class names
|
|
11
|
+
*/
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
declare const socialData: Record<string, {
|
|
15
|
+
icon: PDSIcon;
|
|
16
|
+
url: string;
|
|
17
|
+
label: string;
|
|
18
|
+
}>;
|
|
19
|
+
/**
|
|
20
|
+
* SocialLinks UI component
|
|
21
|
+
*/
|
|
22
|
+
export declare const SocialLinks: ({ linkItems, className, ...props }: SocialLinksProps) => React.JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
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 the size
|
|
10
|
+
*/
|
|
11
|
+
size?: 'sm' | 'md';
|
|
12
|
+
/**
|
|
13
|
+
* Sets status type
|
|
14
|
+
*/
|
|
15
|
+
type: 'critical' | 'info' | 'neutral' | 'new' | 'success' | 'warning' | 'working';
|
|
16
|
+
/**
|
|
17
|
+
* Additional class names
|
|
18
|
+
*/
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* StatusIndicator UI component
|
|
23
|
+
*/
|
|
24
|
+
export declare const StatusIndicator: ({ label, size, type, className, ...props }: StatusIndicatorProps) => React.JSX.Element;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import './stepper.css';
|
|
3
|
+
interface Step {
|
|
4
|
+
/**
|
|
5
|
+
* Callback function to return to a previously completed step.
|
|
6
|
+
*/
|
|
7
|
+
callback?: (step: Step) => void;
|
|
8
|
+
/**
|
|
9
|
+
* If the step has an error.
|
|
10
|
+
*/
|
|
11
|
+
hasError?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Id for the step.
|
|
14
|
+
*/
|
|
15
|
+
id?: string;
|
|
16
|
+
/**
|
|
17
|
+
* If the step is the current active step.
|
|
18
|
+
*/
|
|
19
|
+
isCurrent?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* The label for the step.
|
|
22
|
+
*/
|
|
23
|
+
label: string;
|
|
24
|
+
}
|
|
25
|
+
interface TranslatableLabels {
|
|
26
|
+
step: string;
|
|
27
|
+
completed: string;
|
|
28
|
+
hasError: string;
|
|
29
|
+
next: string;
|
|
30
|
+
}
|
|
31
|
+
interface StepperProps extends ComponentPropsWithoutRef<'div'> {
|
|
32
|
+
/**
|
|
33
|
+
* An array of step objects
|
|
34
|
+
*/
|
|
35
|
+
steps: Step[];
|
|
36
|
+
/**
|
|
37
|
+
* Translatable strings for visually-hidden text.
|
|
38
|
+
*/
|
|
39
|
+
translatableLabels?: TranslatableLabels;
|
|
40
|
+
/**
|
|
41
|
+
* Additional class names
|
|
42
|
+
*/
|
|
43
|
+
className?: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Stepper UI component
|
|
47
|
+
*/
|
|
48
|
+
export declare const Stepper: ({ steps, translatableLabels, className, ...props }: StepperProps) => React.JSX.Element;
|
|
49
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import './table.css';
|
|
3
|
+
/**
|
|
4
|
+
* Prop types for Table
|
|
5
|
+
*/
|
|
6
|
+
interface TableProps extends ComponentPropsWithoutRef<'table'> {
|
|
7
|
+
/**
|
|
8
|
+
* Table headers
|
|
9
|
+
*/
|
|
10
|
+
headers?: Array<{
|
|
11
|
+
title: string;
|
|
12
|
+
sortable?: boolean;
|
|
13
|
+
}>;
|
|
14
|
+
/**
|
|
15
|
+
* Table row data
|
|
16
|
+
*/
|
|
17
|
+
rowData?: ReactNode[];
|
|
18
|
+
/**
|
|
19
|
+
* Additional class names
|
|
20
|
+
*/
|
|
21
|
+
className?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Table UI component
|
|
25
|
+
*/
|
|
26
|
+
export declare const Table: ({ headers, rowData, className, ...props }: TableProps) => React.JSX.Element;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { HeadingLevel } from '@libs/types/custom-types';
|
|
3
|
+
import './table-of-contents.css';
|
|
4
|
+
/**
|
|
5
|
+
* Prop types for TableOfContents
|
|
6
|
+
*/
|
|
7
|
+
interface TableOfContentsProps extends ComponentPropsWithoutRef<'nav'> {
|
|
8
|
+
/**
|
|
9
|
+
* Whether to append the id to the URL when a link is clicked.
|
|
10
|
+
*/
|
|
11
|
+
appendIds?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* aria-label for the TOC.
|
|
14
|
+
*/
|
|
15
|
+
ariaLabel?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Whether the heading should be visible or not. If not visible it will still be presented to screen readers.
|
|
18
|
+
*/
|
|
19
|
+
showHeading?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Heading level for TOC heading.
|
|
22
|
+
*/
|
|
23
|
+
headingLevel?: HeadingLevel;
|
|
24
|
+
/**
|
|
25
|
+
* Text for the TOC heading.
|
|
26
|
+
*/
|
|
27
|
+
headingText?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Class name for designating headers to ignore.
|
|
30
|
+
*/
|
|
31
|
+
ignoreClass?: string;
|
|
32
|
+
/**
|
|
33
|
+
* ID name of content region to be indexed.
|
|
34
|
+
*/
|
|
35
|
+
sourceID?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Additional class names.
|
|
38
|
+
*/
|
|
39
|
+
className?: string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* TableOfContents UI component
|
|
43
|
+
*/
|
|
44
|
+
export declare const TableOfContents: ({ appendIds, ariaLabel, headingLevel, headingText, ignoreClass, showHeading, sourceID, className, ...props }: TableOfContentsProps) => React.JSX.Element;
|
|
45
|
+
export {};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import { PDSIcon } from '@components/Icon/Icon';
|
|
3
|
+
import './tabs.css';
|
|
4
|
+
interface Tabs {
|
|
5
|
+
/**
|
|
6
|
+
* Is the tab disabled?
|
|
7
|
+
*/
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Sets optional tab icon.
|
|
11
|
+
*/
|
|
12
|
+
icon?: PDSIcon;
|
|
13
|
+
/**
|
|
14
|
+
* Sets content inside tab
|
|
15
|
+
*/
|
|
16
|
+
panelContent: ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* Sets tab label
|
|
19
|
+
*/
|
|
20
|
+
tabLabel: string | ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* Sets id for tab.
|
|
23
|
+
*/
|
|
24
|
+
tabId?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Sets optional tab tally.
|
|
27
|
+
*/
|
|
28
|
+
tally?: {
|
|
29
|
+
label: string | number;
|
|
30
|
+
type: 'neutral' | 'critical' | 'warning' | 'info' | 'success';
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
interface TabsProps extends ComponentPropsWithoutRef<'div'> {
|
|
34
|
+
/**
|
|
35
|
+
* Function to call when the active tab changes
|
|
36
|
+
*/
|
|
37
|
+
onActiveTabChange?: (activeTabIndex: number) => void;
|
|
38
|
+
/**
|
|
39
|
+
* Sets tabset aria label
|
|
40
|
+
*/
|
|
41
|
+
ariaLabel: string;
|
|
42
|
+
/**
|
|
43
|
+
* Sets default selected tab using a zero-based index, defaults to 0
|
|
44
|
+
*/
|
|
45
|
+
defaultSelected?: number;
|
|
46
|
+
/**
|
|
47
|
+
* Sets currently selected tab using a zero-based index
|
|
48
|
+
*/
|
|
49
|
+
selectedTab?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Array of objects for tab data
|
|
52
|
+
*/
|
|
53
|
+
tabs: Tabs[];
|
|
54
|
+
/**
|
|
55
|
+
* Additional class names
|
|
56
|
+
*/
|
|
57
|
+
className?: string;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Tabs UI component
|
|
61
|
+
*/
|
|
62
|
+
export declare const Tabs: ({ ariaLabel, defaultSelected, onActiveTabChange, selectedTab, tabs, className, ...props }: TabsProps) => React.JSX.Element;
|
|
63
|
+
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 {};
|