@pantheon-systems/pds-toolkit-react 2.0.0-alpha.3 → 2.0.0-alpha.30
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 +3 -3
- package/dist/components/Avatar/Avatar.d.ts +6 -2
- package/dist/components/ComparisonList/ComparisonList.d.ts +10 -1
- package/dist/components/Dropdown/Dropdown.d.ts +140 -0
- package/dist/components/Dropdown/DropdownSelectedIcon.d.ts +7 -0
- package/dist/components/FileDiff/FileDiff.d.ts +2 -2
- package/dist/components/IdentityBlock/IdentityBlock.d.ts +37 -0
- package/dist/components/Popover/Popover.d.ts +5 -1
- package/dist/components/SiteDashboardHeading/SiteDashboardHeading.d.ts +1 -1
- package/dist/components/SiteFooter/SiteFooter.d.ts +38 -0
- package/dist/components/SortableList/SortableList.d.ts +8 -0
- package/dist/components/SortableList/SortableListHeader.d.ts +7 -0
- package/dist/components/SortableList/SortableRow.d.ts +16 -0
- package/dist/components/SortableList/sortable-utils.d.ts +19 -0
- package/dist/components/SortableList/types.d.ts +142 -0
- package/dist/components/SortableList/useSortableTree.d.ts +18 -0
- package/dist/components/{RefreshChecker/RefreshChecker.d.ts → StatusChecker/StatusChecker.d.ts} +5 -19
- package/dist/components/StatusIndicator/StatusIndicator.d.ts +2 -2
- package/dist/components/Table/Table.d.ts +141 -17
- package/dist/components/TableOfContents/TableOfContents.d.ts +1 -5
- package/dist/components/Tabs/Tabs.d.ts +6 -1
- package/dist/components/Tag/Tag.d.ts +13 -2
- package/dist/components/ThemeSwitcher/ThemeSwitcher.d.ts +14 -8
- package/dist/components/Tooltip/Tooltip.d.ts +7 -3
- package/dist/components/UtilityBar/UtilityBar.d.ts +27 -0
- package/dist/components/badges/Badge/Badge.d.ts +28 -0
- package/dist/components/buttons/CloseButton/CloseButton.d.ts +2 -2
- package/dist/components/buttons/IconButton/IconButton.d.ts +12 -0
- package/dist/components/buttons/MenuButton/MenuButton.d.ts +2 -7
- package/dist/components/cards/Card/Card.d.ts +1 -1
- package/dist/components/cards/NewSiteCard/NewSiteCard.d.ts +1 -1
- package/dist/components/cards/PricingCard/PricingCard.d.ts +6 -1
- package/dist/components/charts/BarChart/BarChart.d.ts +21 -0
- package/dist/components/charts/LineChart/LineChart.d.ts +22 -0
- package/dist/components/charts/shared/ChartAccessibleTable.d.ts +17 -0
- package/dist/components/charts/shared/ChartLegend.d.ts +25 -0
- package/dist/components/charts/shared/ChartSkeleton.d.ts +7 -0
- package/dist/components/charts/shared/chart-colors.d.ts +30 -0
- package/dist/components/charts/shared/chart-styles.d.ts +16 -0
- package/dist/components/charts/shared/formatters.d.ts +12 -0
- package/dist/components/charts/shared/types.d.ts +128 -0
- package/dist/components/empty-states/HorizontalEmptyState/HorizontalEmptyState.d.ts +1 -1
- package/dist/components/icons/Icon/Icon.d.ts +11 -731
- package/dist/components/icons/Icon/IconSearch.d.ts +1 -0
- package/dist/components/icons/Icon/custom-icons.d.ts +46 -0
- package/dist/components/icons/Icon/generated-icon-data.d.ts +1499 -0
- package/dist/components/icons/Icon/icon-registry.d.ts +34 -0
- package/dist/components/icons/PaymentIcon/PaymentIcon.d.ts +7 -3
- package/dist/components/icons/PlatformIcon/PlatformIcon.d.ts +6 -6
- package/dist/components/inputs/Checkbox/Checkbox.d.ts +3 -3
- package/dist/components/inputs/Combobox/Combobox.d.ts +17 -7
- package/dist/components/inputs/ComboboxMultiselect/ComboboxMultiselect.d.ts +33 -6
- package/dist/components/inputs/Datepicker/Datepicker.d.ts +16 -2
- package/dist/components/inputs/FileUpload/FileUpload.d.ts +6 -1
- package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/components/inputs/Select/Select.d.ts +11 -2
- package/dist/components/inputs/Select/select-sample-data.d.ts +1 -0
- package/dist/components/inputs/Switch/Switch.d.ts +1 -17
- package/dist/components/inputs/TagsInput/TagsInput.d.ts +105 -0
- package/dist/components/inputs/TextInput/TextInput.d.ts +5 -1
- package/dist/components/inputs/Textarea/Textarea.d.ts +5 -1
- package/dist/components/inputs/input-utilities.d.ts +5 -4
- package/dist/components/{CTALink → links/CTALink}/CTALink.d.ts +1 -1
- package/dist/components/{LinkNewWindow → links/LinkNewWindow}/LinkNewWindow.d.ts +1 -1
- package/dist/components/navigation/DropdownMenu/DropdownMenu.d.ts +1 -0
- package/dist/components/navigation/Navbar/Navbar.d.ts +1 -1
- package/dist/components/navigation/SideNavGlobal/SideNavGlobal.d.ts +5 -15
- package/dist/components/navigation/SideNavGlobal/SideNavGlobalItem.d.ts +5 -1
- package/dist/components/navigation/{NavMenu/NavMenu.d.ts → SiteMenu/SiteMenu.d.ts} +5 -8
- package/dist/components/navigation/SiteMenu/SiteMenuDropdown.d.ts +23 -0
- package/dist/components/navigation/TabMenu/TabMenu.d.ts +6 -1
- package/dist/components/navigation/UserMenu/UserMenu.d.ts +1 -5
- package/dist/components/navigation/WorkspaceSelector/WorkspaceSelector.d.ts +8 -12
- package/dist/components/notifications/Banner/Banner.d.ts +32 -12
- package/dist/components/notifications/NotificationsPopover/NotificationsPopover.d.ts +2 -7
- package/dist/components/notifications/SectionMessage/SectionMessage.d.ts +6 -2
- package/dist/components/notifications/Toaster/Toast.d.ts +13 -2
- package/dist/components/notifications/Toaster/Toaster.d.ts +16 -7
- package/dist/components/notifications/Toaster/useToast.d.ts +2 -0
- package/dist/components/overlays/Drawer/Drawer.d.ts +58 -0
- package/dist/components/overlays/FullScreenOverlay/FullScreenOverlay.d.ts +45 -0
- package/dist/components/{Modal → overlays/Modal}/Modal.d.ts +1 -1
- package/dist/components/{Pagination → pagination/Pagination}/Pagination.d.ts +7 -2
- package/dist/components/pagination/PaginationCompact/PaginationCompact.d.ts +49 -0
- package/dist/components/pagination/PaginationMini/PaginationMini.d.ts +55 -0
- package/dist/components/panels/ExpansionPanel/ExpansionPanel.d.ts +6 -3
- package/dist/components/panels/ExpansionPanelGroup/ExpansionPanelGroup.d.ts +1 -2
- package/dist/components/panels/Panel/Panel.d.ts +1 -18
- package/dist/components/panels/PanelList/PanelList.d.ts +1 -1
- package/dist/components/progress-indicators/ProgressBar/ProgressBar.d.ts +3 -4
- package/dist/components/progress-indicators/ProgressRing/ProgressRing.d.ts +2 -3
- package/dist/components/{FlowSteps/FlowSteps.d.ts → steppers/StepList/StepList.d.ts} +7 -7
- package/dist/css/component-css/pds-avatar.css +1 -1
- package/dist/css/component-css/pds-badge.css +1 -0
- package/dist/css/component-css/pds-banner.css +1 -1
- package/dist/css/component-css/pds-bar-chart.css +1 -0
- package/dist/css/component-css/pds-branch-diff.css +1 -1
- package/dist/css/component-css/pds-breadcrumb.css +1 -1
- package/dist/css/component-css/pds-button-link.css +1 -1
- package/dist/css/component-css/pds-button-nav.css +1 -1
- package/dist/css/component-css/pds-button.css +9 -3
- package/dist/css/component-css/pds-callout.css +1 -1
- package/dist/css/component-css/pds-card-select-group.css +1 -1
- package/dist/css/component-css/pds-card.css +1 -1
- package/dist/css/component-css/pds-chart-legend.css +1 -0
- package/dist/css/component-css/pds-chart-wrapper.css +1 -0
- package/dist/css/component-css/pds-checkbox.css +1 -1
- package/dist/css/component-css/pds-close-button.css +1 -1
- package/dist/css/component-css/pds-combobox-multiselect.css +4 -2
- package/dist/css/component-css/pds-combobox.css +1 -1
- package/dist/css/component-css/pds-compact-empty-state.css +1 -1
- package/dist/css/component-css/pds-comparison-list.css +1 -1
- package/dist/css/component-css/pds-cta-link.css +1 -1
- package/dist/css/component-css/pds-dashboard-search.css +1 -1
- package/dist/css/component-css/pds-datepicker.css +1 -1
- package/dist/css/component-css/pds-drawer.css +1 -0
- package/dist/css/component-css/pds-dropdown-menu.css +2 -2
- package/dist/css/component-css/pds-dropdown.css +2 -0
- package/dist/css/component-css/pds-empty-state-card.css +1 -1
- package/dist/css/component-css/pds-expansion-panel.css +1 -1
- package/dist/css/component-css/pds-file-diff.css +1 -1
- package/dist/css/component-css/pds-file-upload.css +2 -2
- package/dist/css/component-css/pds-full-screen-overlay.css +1 -0
- package/dist/css/component-css/pds-horizontal-empty-state.css +1 -1
- package/dist/css/component-css/pds-icon-button.css +4 -4
- package/dist/css/component-css/pds-icon-story-only.css +1 -1
- package/dist/css/component-css/pds-icon.css +1 -0
- package/dist/css/component-css/pds-identity-block.css +1 -0
- package/dist/css/component-css/pds-index.css +103 -57
- package/dist/css/component-css/pds-inline-message.css +1 -1
- package/dist/css/component-css/pds-input-group.css +1 -1
- package/dist/css/component-css/pds-input-utilities.css +1 -1
- package/dist/css/component-css/pds-line-chart.css +1 -0
- package/dist/css/component-css/pds-link-new-window.css +1 -1
- package/dist/css/component-css/pds-menu-button.css +4 -1
- package/dist/css/component-css/pds-modal.css +1 -1
- package/dist/css/component-css/pds-nav-menu.css +2 -2
- package/dist/css/component-css/pds-navbar.css +4 -1
- package/dist/css/component-css/pds-new-site-card.css +1 -1
- package/dist/css/component-css/pds-notification-hub-icon.css +1 -1
- package/dist/css/component-css/pds-notifications-popover.css +13 -1
- package/dist/css/component-css/pds-pagination-compact.css +1 -0
- package/dist/css/component-css/pds-pagination-mini.css +3 -0
- package/dist/css/component-css/pds-pagination.css +1 -1
- package/dist/css/component-css/pds-panel-list.css +1 -1
- package/dist/css/component-css/pds-panel.css +1 -1
- package/dist/css/component-css/pds-pantheon-logo.css +1 -1
- package/dist/css/component-css/pds-payment-card.css +1 -1
- package/dist/css/component-css/pds-payment-icon.css +1 -1
- package/dist/css/component-css/pds-platform-icon.css +1 -1
- package/dist/css/component-css/pds-popover.css +1 -1
- package/dist/css/component-css/pds-pricing-card.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 +6 -4
- package/dist/css/component-css/pds-side-nav.css +1 -1
- package/dist/css/component-css/pds-site-card.css +1 -1
- package/dist/css/component-css/pds-site-footer.css +1 -1
- package/dist/css/component-css/pds-skiplink.css +1 -1
- package/dist/css/component-css/pds-sortable-list.css +8 -0
- package/dist/css/component-css/pds-spinner.css +1 -1
- package/dist/css/component-css/pds-sso-button.css +1 -1
- package/dist/css/component-css/pds-status-badge.css +1 -1
- package/dist/css/component-css/pds-status-checker.css +1 -0
- package/dist/css/component-css/pds-status-indicator.css +1 -1
- package/dist/css/component-css/pds-step-list.css +1 -0
- package/dist/css/component-css/pds-stepper.css +1 -1
- package/dist/css/component-css/pds-switch.css +4 -11
- package/dist/css/component-css/pds-tab-menu.css +2 -2
- package/dist/css/component-css/pds-table-of-contents.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-tag.css +1 -1
- package/dist/css/component-css/pds-tags-input.css +1 -0
- package/dist/css/component-css/pds-text-input.css +1 -1
- package/dist/css/component-css/pds-textarea.css +1 -1
- package/dist/css/component-css/pds-theme-switcher.css +1 -1
- package/dist/css/component-css/pds-toaster.css +1 -1
- package/dist/css/component-css/pds-tooltip.css +1 -1
- package/dist/css/component-css/pds-user-menu.css +29 -1
- package/dist/css/component-css/pds-utility-bar.css +1 -0
- package/dist/css/component-css/pds-utility-button.css +1 -1
- package/dist/css/component-css/pds-vertical-empty-state.css +1 -1
- package/dist/css/component-css/pds-vertical-stepper.css +1 -1
- package/dist/css/component-css/pds-workspace-selector.css +16 -1
- package/dist/css/design-tokens/fonts.css +1 -1
- package/dist/css/design-tokens/variables.dark.css +301 -96
- package/dist/css/design-tokens/variables.global.css +9 -12
- package/dist/css/design-tokens/variables.light.css +276 -93
- package/dist/css/design-tokens/variables.typography.css +9 -6
- package/dist/css/layout-css/pds-app-layout.css +3 -0
- package/dist/css/layout-css/pds-docs-layout.css +1 -0
- package/dist/css/layout-css/pds-index.css +3 -0
- package/dist/css/layout-css/pds-sidebar-layout.css +5 -0
- package/dist/css/layout-css/pds-stepper-layout.css +1 -0
- package/dist/css/layout-css/pds-three-item-layout.css +1 -0
- package/dist/css/layout-css/pds-two-item-layout.css +1 -0
- package/dist/css/pds-components.css +103 -57
- package/dist/css/pds-core.css +3 -2
- package/dist/css/pds-layouts.css +3 -9
- package/dist/index.css +1 -1
- package/dist/index.d.ts +91 -6
- package/dist/index.js +12277 -1964
- package/dist/index.js.map +1 -1
- package/dist/index.source.d.ts +31 -29
- package/dist/layouts/AppLayout/AppLayout.d.ts +47 -6
- package/dist/layouts/DocsLayout/DocsLayout.d.ts +9 -7
- package/dist/layouts/SidebarLayout/SidebarLayout.d.ts +12 -3
- package/dist/libs/components/NavAccordion/NavAccordion.d.ts +27 -0
- package/dist/libs/components/utils.d.ts +0 -1
- package/dist/libs/types/custom-types.d.ts +10 -2
- package/dist/libs/types/navigation-types.d.ts +9 -1
- package/dist/svg/angleDown.svg +3 -0
- package/dist/svg/angleLeft.svg +3 -0
- package/dist/svg/angleRight.svg +3 -0
- package/dist/svg/angleUp.svg +3 -0
- package/dist/svg/anglesLeft.svg +3 -0
- package/dist/svg/anglesRight.svg +3 -0
- package/dist/svg/arrowDownLeftAndArrowUpRightToCenter.svg +3 -0
- package/dist/svg/arrowDownToLine.svg +3 -0
- package/dist/svg/arrowLeft.svg +3 -0
- package/dist/svg/arrowRight.svg +3 -0
- package/dist/svg/arrowsRetweet.svg +3 -0
- package/dist/svg/arrowsUpDownLeftRight.svg +3 -0
- package/dist/svg/asterisk.svg +3 -0
- package/dist/svg/banBug.svg +3 -0
- package/dist/svg/bars.svg +3 -0
- package/dist/svg/barsFilter.svg +3 -0
- package/dist/svg/barsStaggered.svg +3 -0
- package/dist/svg/bell.svg +3 -0
- package/dist/svg/billboard.svg +3 -0
- package/dist/svg/bitbucket.svg +3 -0
- package/dist/svg/bluesky.svg +3 -0
- package/dist/svg/bolt.svg +3 -0
- package/dist/svg/boltPantheon.svg +3 -0
- package/dist/svg/boltSolid.svg +3 -0
- package/dist/svg/book.svg +3 -0
- package/dist/svg/books.svg +3 -0
- package/dist/svg/bracketRight.svg +3 -0
- package/dist/svg/bracketsSquare.svg +3 -0
- package/dist/svg/brainCircuit.svg +3 -0
- package/dist/svg/broomWide.svg +3 -0
- package/dist/svg/building.svg +3 -0
- package/dist/svg/buildings.svg +3 -0
- package/dist/svg/bullhorn.svg +3 -0
- package/dist/svg/calendarDays.svg +3 -0
- package/dist/svg/caretDown.svg +3 -0
- package/dist/svg/caretLeft.svg +3 -0
- package/dist/svg/caretRight.svg +3 -0
- package/dist/svg/caretUp.svg +3 -0
- package/dist/svg/ccAmex.svg +3 -0
- package/dist/svg/ccApplePay.svg +3 -0
- package/dist/svg/ccDiscover.svg +3 -0
- package/dist/svg/ccGeneric.svg +3 -0
- package/dist/svg/ccMC.svg +3 -0
- package/dist/svg/ccPaypal.svg +3 -0
- package/dist/svg/ccVisa.svg +3 -0
- package/dist/svg/chartLine.svg +3 -0
- package/dist/svg/chartNetwork.svg +3 -0
- package/dist/svg/chartSimple.svg +3 -0
- package/dist/svg/check.svg +3 -0
- package/dist/svg/circle.svg +3 -0
- package/dist/svg/circleCheck.svg +3 -0
- package/dist/svg/circleExclamation.svg +3 -0
- package/dist/svg/circleExclamationSolid.svg +3 -0
- package/dist/svg/circleInfo.svg +3 -0
- package/dist/svg/circleInfoSolid.svg +3 -0
- package/dist/svg/circleMinus.svg +3 -0
- package/dist/svg/circleNotch.svg +3 -0
- package/dist/svg/circlePlus.svg +3 -0
- package/dist/svg/circleQuestion.svg +3 -0
- package/dist/svg/circleQuestionSolid.svg +3 -0
- package/dist/svg/circleUser.svg +3 -0
- package/dist/svg/circleXmark.svg +3 -0
- package/dist/svg/cloud.svg +3 -0
- package/dist/svg/cloudArrowDown.svg +3 -0
- package/dist/svg/cloudArrowUp.svg +3 -0
- package/dist/svg/cloudPlus.svg +3 -0
- package/dist/svg/code.svg +3 -0
- package/dist/svg/codeBranch.svg +3 -0
- package/dist/svg/codeMerge.svg +3 -0
- package/dist/svg/command.svg +3 -0
- package/dist/svg/comment.svg +3 -0
- package/dist/svg/compress.svg +3 -0
- package/dist/svg/copy.svg +3 -0
- package/dist/svg/desktop.svg +3 -0
- package/dist/svg/diamondExclamation.svg +3 -0
- package/dist/svg/diamonds4.svg +3 -0
- package/dist/svg/discourse.svg +3 -0
- package/dist/svg/display.svg +3 -0
- package/dist/svg/dollarSign.svg +3 -0
- package/dist/svg/download.svg +3 -0
- package/dist/svg/drupal.svg +3 -0
- package/dist/svg/ellipsis.svg +3 -0
- package/dist/svg/ellipsisVertical.svg +3 -0
- package/dist/svg/emptySet.svg +3 -0
- package/dist/svg/envelope.svg +3 -0
- package/dist/svg/envelopeOpen.svg +3 -0
- package/dist/svg/exclamation.svg +3 -0
- package/dist/svg/expand.svg +3 -0
- package/dist/svg/expandFromCenter.svg +3 -0
- package/dist/svg/externalLink.svg +3 -0
- package/dist/svg/eye.svg +3 -0
- package/dist/svg/eyeSlash.svg +3 -0
- package/dist/svg/facebook.svg +3 -0
- package/dist/svg/file.svg +3 -0
- package/dist/svg/fileCSV.svg +3 -0
- package/dist/svg/fileCheck.svg +3 -0
- package/dist/svg/fileContract.svg +3 -0
- package/dist/svg/fileDiff.svg +3 -0
- package/dist/svg/fileExport.svg +3 -0
- package/dist/svg/fileImport.svg +3 -0
- package/dist/svg/fileLines.svg +3 -0
- package/dist/svg/filePDF.svg +3 -0
- package/dist/svg/fileZip.svg +3 -0
- package/dist/svg/folder.svg +3 -0
- package/dist/svg/folderTree.svg +3 -0
- package/dist/svg/gear.svg +3 -0
- package/dist/svg/gem.svg +3 -0
- package/dist/svg/github.svg +3 -0
- package/dist/svg/gitlab.svg +3 -0
- package/dist/svg/globe.svg +3 -0
- package/dist/svg/graduationCap.svg +3 -0
- package/dist/svg/grid.svg +3 -0
- package/dist/svg/gripDots.svg +3 -0
- package/dist/svg/gripDotsVertical.svg +3 -0
- package/dist/svg/heart.svg +3 -0
- package/dist/svg/heartSolid.svg +3 -0
- package/dist/svg/house.svg +3 -0
- package/dist/svg/idCard.svg +3 -0
- package/dist/svg/image.svg +3 -0
- package/dist/svg/inputText.svg +3 -0
- package/dist/svg/instagram.svg +3 -0
- package/dist/svg/keySkeleton.svg +3 -0
- package/dist/svg/landmark.svg +3 -0
- package/dist/svg/laptop.svg +3 -0
- package/dist/svg/laptopCode.svg +3 -0
- package/dist/svg/leaf.svg +3 -0
- package/dist/svg/lifeRing.svg +3 -0
- package/dist/svg/linkSimple.svg +3 -0
- package/dist/svg/linkSimpleSlash.svg +3 -0
- package/dist/svg/linkedin.svg +3 -0
- package/dist/svg/listCheck.svg +3 -0
- package/dist/svg/locationCrosshairs.svg +3 -0
- package/dist/svg/lock.svg +3 -0
- package/dist/svg/lockOpen.svg +3 -0
- package/dist/svg/magnifyingGlass.svg +3 -0
- package/dist/svg/medal.svg +3 -0
- package/dist/svg/memo.svg +3 -0
- package/dist/svg/messages.svg +3 -0
- package/dist/svg/minus.svg +3 -0
- package/dist/svg/moon.svg +3 -0
- package/dist/svg/nextJs.svg +3 -0
- package/dist/svg/paperPlane.svg +3 -0
- package/dist/svg/paperclip.svg +3 -0
- package/dist/svg/pause.svg +3 -0
- package/dist/svg/pen.svg +3 -0
- package/dist/svg/penField.svg +3 -0
- package/dist/svg/phone.svg +3 -0
- package/dist/svg/play.svg +3 -0
- package/dist/svg/plus.svg +3 -0
- package/dist/svg/question.svg +3 -0
- package/dist/svg/quotesLeft.svg +3 -0
- package/dist/svg/quotesRight.svg +3 -0
- package/dist/svg/rectangleList.svg +3 -0
- package/dist/svg/reply.svg +3 -0
- package/dist/svg/robot.svg +3 -0
- package/dist/svg/rocketLaunch.svg +3 -0
- package/dist/svg/rotate.svg +3 -0
- package/dist/svg/rotateClock.svg +3 -0
- package/dist/svg/rotateLeft.svg +3 -0
- package/dist/svg/rotateRight.svg +3 -0
- package/dist/svg/rss.svg +3 -0
- package/dist/svg/save.svg +3 -0
- package/dist/svg/server.svg +3 -0
- package/dist/svg/shareNodes.svg +3 -0
- package/dist/svg/shield.svg +3 -0
- package/dist/svg/shieldQuartered.svg +3 -0
- package/dist/svg/shovel.svg +3 -0
- package/dist/svg/sidebar.svg +3 -0
- package/dist/svg/siren.svg +3 -0
- package/dist/svg/sirenOn.svg +3 -0
- package/dist/svg/sitemap.svg +3 -0
- package/dist/svg/slack.svg +3 -0
- package/dist/svg/slashForward.svg +3 -0
- package/dist/svg/slidersSimple.svg +3 -0
- package/dist/svg/snowflake.svg +3 -0
- package/dist/svg/sparkles.svg +3 -0
- package/dist/svg/squareCheck.svg +3 -0
- package/dist/svg/squareCode.svg +3 -0
- package/dist/svg/squareMinus.svg +3 -0
- package/dist/svg/squarePen.svg +3 -0
- package/dist/svg/squareQuestion.svg +3 -0
- package/dist/svg/squareTerminal.svg +3 -0
- package/dist/svg/star.svg +3 -0
- package/dist/svg/starSolid.svg +3 -0
- package/dist/svg/sun.svg +3 -0
- package/dist/svg/sunBright.svg +3 -0
- package/dist/svg/table.svg +3 -0
- package/dist/svg/tableRows.svg +3 -0
- package/dist/svg/terminal.svg +3 -0
- package/dist/svg/text.svg +3 -0
- package/dist/svg/threads.svg +3 -0
- package/dist/svg/thumbsDown.svg +3 -0
- package/dist/svg/thumbsUp.svg +3 -0
- package/dist/svg/trash.svg +3 -0
- package/dist/svg/triangleExclamation.svg +3 -0
- package/dist/svg/twitter.svg +3 -0
- package/dist/svg/upload.svg +3 -0
- package/dist/svg/user.svg +3 -0
- package/dist/svg/userAstronaut.svg +3 -0
- package/dist/svg/userGear.svg +3 -0
- package/dist/svg/userPlus.svg +3 -0
- package/dist/svg/users.svg +3 -0
- package/dist/svg/video.svg +3 -0
- package/dist/svg/wavePulse.svg +3 -0
- package/dist/svg/windowRestore.svg +3 -0
- package/dist/svg/wordpress.svg +3 -0
- package/dist/svg/wreathLaurel.svg +3 -0
- package/dist/svg/wrench.svg +3 -0
- package/dist/svg/xTwitter.svg +3 -0
- package/dist/svg/xmark.svg +3 -0
- package/dist/svg/xmarkLarge.svg +3 -0
- package/dist/svg/youtube.svg +3 -0
- package/dist/{layouts → utilities}/FlexContainer/FlexContainer.d.ts +1 -1
- package/dist/utilities/GlobalWrapper/GlobalWrapper.d.ts +21 -0
- package/dist/utilities/hooks/useDropdown/index.d.ts +1 -0
- package/dist/utilities/hooks/useDropdown/useDropdown.d.ts +121 -0
- package/package.json +70 -44
- package/tailwind/README.md +220 -0
- package/tailwind/TESTING.md +457 -0
- package/tailwind/v3/preset.cjs +258 -0
- package/tailwind/v4/theme.css +230 -0
- package/dist/components/CTASlice/CTASlice.d.ts +0 -43
- package/dist/components/DashboardStat/DashboardStat.d.ts +0 -28
- package/dist/components/PullQuote/PullQuote.d.ts +0 -34
- package/dist/components/SocialLinks/SocialLinks.d.ts +0 -23
- package/dist/components/badges/IndicatorBadge/IndicatorBadge.d.ts +0 -27
- package/dist/components/footer/FooterHeading/FooterHeading.d.ts +0 -22
- package/dist/components/footer/FooterLinks/FooterLinks.d.ts +0 -26
- package/dist/components/footer/SiteFooter/SiteFooter.d.ts +0 -30
- package/dist/components/footer/SiteFooter/footer-content.d.ts +0 -1
- package/dist/components/navigation/DashboardNav/DashboardNav.d.ts +0 -35
- package/dist/components/navigation/DashboardNav/DashboardNavItem.d.ts +0 -24
- package/dist/components/navigation/NavMenu/NavMenuDropdown.d.ts +0 -24
- package/dist/components/tiles/AvatarTileList/AvatarTileList.d.ts +0 -28
- package/dist/components/tiles/Tile/Tile.d.ts +0 -42
- package/dist/components/tiles/TileGrid/TileGrid.d.ts +0 -29
- package/dist/css/component-css/pds-avatar-tile-list.css +0 -1
- package/dist/css/component-css/pds-cta-slice.css +0 -1
- package/dist/css/component-css/pds-dashboard-nav.css +0 -5
- package/dist/css/component-css/pds-dashboard-stat.css +0 -1
- package/dist/css/component-css/pds-flow-steps.css +0 -1
- package/dist/css/component-css/pds-footer-heading.css +0 -1
- package/dist/css/component-css/pds-footer-links.css +0 -1
- package/dist/css/component-css/pds-indicator-badge.css +0 -25
- package/dist/css/component-css/pds-pull-quote.css +0 -1
- package/dist/css/component-css/pds-refresh-checker.css +0 -1
- package/dist/css/component-css/pds-social-links.css +0 -1
- package/dist/css/component-css/pds-tile.css +0 -1
- package/dist/css/component-css/pds-tiles-common.css +0 -1
- package/dist/layouts/DashboardGlobal/DashboardGlobal.d.ts +0 -57
- package/dist/layouts/DashboardInner/DashboardInner.d.ts +0 -30
- package/dist/layouts/GlobalWrapper/GlobalWrapper.d.ts +0 -19
- package/dist/utilities/context-providers/ResponsiveContext/ResponsiveContext.d.ts +0 -6
- /package/dist/components/{Skiplink → links/Skiplink}/Skiplink.d.ts +0 -0
- /package/dist/components/{Picture → media/Picture}/Picture.d.ts +0 -0
- /package/dist/components/{VideoEmbed → media/VideoEmbed}/VideoEmbed.d.ts +0 -0
- /package/dist/components/{Pagination → pagination/Pagination}/usePagination.d.ts +0 -0
- /package/dist/components/{FlowSteps → steppers/StepList}/example-steps.d.ts +0 -0
- /package/dist/{layouts → utilities}/Container/Container.d.ts +0 -0
|
@@ -1,27 +1,151 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
import './table.css';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*/
|
|
6
|
-
|
|
3
|
+
export type SortOrder = 'asc' | 'desc';
|
|
4
|
+
export interface TableColumn {
|
|
5
|
+
/** Content to display in the header cell. */
|
|
6
|
+
header: ReactNode;
|
|
7
|
+
/** Stable identifier used for rendering cell content from rowData. */
|
|
8
|
+
id: string;
|
|
9
|
+
/** When true, renders a sort button next to the header label. */
|
|
10
|
+
sortable?: boolean;
|
|
7
11
|
/**
|
|
8
|
-
*
|
|
12
|
+
* Key to use for sorting instead of `id`. Use when the cell renders a
|
|
13
|
+
* ReactNode but a separate plain-text field in rowData should drive the sort.
|
|
9
14
|
*/
|
|
15
|
+
sortKey?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface TableProps extends ComponentPropsWithoutRef<'table'> {
|
|
18
|
+
/** Additional class names */
|
|
10
19
|
className?: string;
|
|
20
|
+
/** Column definitions. Each column requires a stable `id`. */
|
|
21
|
+
columns: TableColumn[];
|
|
22
|
+
/**
|
|
23
|
+
* Current page number (1-based). Providing this alongside `onPageChange`
|
|
24
|
+
* enables controlled pagination mode.
|
|
25
|
+
*/
|
|
26
|
+
currentPage?: number;
|
|
27
|
+
/**
|
|
28
|
+
* Column id to sort by on initial render. Only applies in uncontrolled sort mode.
|
|
29
|
+
* Like `defaultValue` in HTML inputs, this is mount-only — changing it after mount
|
|
30
|
+
* has no effect. Use `sortKey` + `onSort` for controlled sort.
|
|
31
|
+
*/
|
|
32
|
+
defaultSortKey?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Initial sort direction when `defaultSortKey` is set. Defaults to `'asc'`.
|
|
35
|
+
* Only applies in uncontrolled sort mode.
|
|
36
|
+
*/
|
|
37
|
+
defaultSortOrder?: SortOrder;
|
|
38
|
+
/**
|
|
39
|
+
* Custom empty state rendered when `rowData` is empty and `isLoading` is false.
|
|
40
|
+
* When provided, takes precedence over `emptyStateHeading` and `emptyStateMessage`.
|
|
41
|
+
*/
|
|
42
|
+
emptyState?: ReactNode;
|
|
43
|
+
/**
|
|
44
|
+
* Heading text for the default empty state. Defaults to `"No results found."`
|
|
45
|
+
* Override for translation or context-specific messaging.
|
|
46
|
+
*/
|
|
47
|
+
emptyStateHeading?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Optional message displayed below the heading in the default empty state.
|
|
50
|
+
*/
|
|
51
|
+
emptyStateMessage?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Returns the accessible label for each option in the rows-per-page selector.
|
|
54
|
+
* Defaults to `(size) => \`Show ${size} rows per page\``.
|
|
55
|
+
* Override for translation.
|
|
56
|
+
*/
|
|
57
|
+
getPageSizeLabel?: (size: number) => string;
|
|
58
|
+
/**
|
|
59
|
+
* Derives a stable string ID from a row object for selection tracking.
|
|
60
|
+
* Defaults to the row's array index. Provide this when using pagination
|
|
61
|
+
* to preserve selection across page changes.
|
|
62
|
+
*/
|
|
63
|
+
getRowId?: (row: Record<string, ReactNode>) => string;
|
|
64
|
+
/**
|
|
65
|
+
* Returns the visually hidden accessible label for each row's checkbox.
|
|
66
|
+
* Receives the row object and its 1-based display index.
|
|
67
|
+
* Defaults to `(_row, index) => \`Select row ${index}\``.
|
|
68
|
+
* Override to include a meaningful identifier (e.g. the site name) for
|
|
69
|
+
* screen reader users who navigate through checkboxes.
|
|
70
|
+
*/
|
|
71
|
+
getSelectRowLabel?: (row: Record<string, ReactNode>, index: number) => string;
|
|
72
|
+
/**
|
|
73
|
+
* Returns the accessible label for a column's sort button.
|
|
74
|
+
* Defaults to `(columnHeader) => \`Sort by ${columnHeader}\``.
|
|
75
|
+
* Override for translation.
|
|
76
|
+
*/
|
|
77
|
+
getSortLabel?: (columnHeader: string) => string;
|
|
78
|
+
/**
|
|
79
|
+
* When true, renders skeleton rows instead of data. Use while data is loading.
|
|
80
|
+
*/
|
|
81
|
+
isLoading?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Number of items per page. Required to enable pagination.
|
|
84
|
+
* In uncontrolled pagination mode the Table slices `rowData` internally.
|
|
85
|
+
* In controlled mode the consumer passes the current page slice as `rowData`.
|
|
86
|
+
*/
|
|
87
|
+
itemsPerPage?: number;
|
|
88
|
+
/**
|
|
89
|
+
* Number of skeleton rows to render when `isLoading` is true. Defaults to 5.
|
|
90
|
+
*/
|
|
91
|
+
loadingRowCount?: number;
|
|
92
|
+
/**
|
|
93
|
+
* Callback fired when the user navigates to a new page. Receives the new
|
|
94
|
+
* 1-based page number. Providing this prop enables controlled pagination mode.
|
|
95
|
+
*/
|
|
96
|
+
onPageChange?: (page: number) => void;
|
|
97
|
+
/**
|
|
98
|
+
* Callback fired when the user changes the rows-per-page value.
|
|
99
|
+
* When provided alongside `pageSizeOptions`, enables controlled page size mode.
|
|
100
|
+
* In uncontrolled mode the Table manages page size internally.
|
|
101
|
+
*/
|
|
102
|
+
onPageSizeChange?: (size: number) => void;
|
|
103
|
+
/**
|
|
104
|
+
* Callback fired when row selection changes. Providing this prop enables
|
|
105
|
+
* the checkbox column. Receives the full array of currently selected row IDs.
|
|
106
|
+
* Note: in uncontrolled selection mode, IDs of rows removed from `rowData`
|
|
107
|
+
* (e.g. after filtering) remain in the internal selection set. Clear selection
|
|
108
|
+
* explicitly when filtering if stale IDs are a concern.
|
|
109
|
+
*/
|
|
110
|
+
onRowSelectionChange?: (ids: string[]) => void;
|
|
111
|
+
/**
|
|
112
|
+
* Callback fired when a sortable header is clicked. Providing this prop
|
|
113
|
+
* enables controlled sort mode — the component will not sort `rowData`
|
|
114
|
+
* internally and expects the parent to pass pre-sorted data.
|
|
115
|
+
*/
|
|
116
|
+
onSort?: (key: string, order: SortOrder) => void;
|
|
117
|
+
/**
|
|
118
|
+
* Available page size options rendered in the rows-per-page selector.
|
|
119
|
+
* When provided, the selector is shown to the left of the pagination controls.
|
|
120
|
+
*/
|
|
121
|
+
pageSizeOptions?: number[];
|
|
122
|
+
/**
|
|
123
|
+
* Row data as an array of records keyed by column id.
|
|
124
|
+
* In controlled pagination mode, pass only the current page's rows.
|
|
125
|
+
*/
|
|
126
|
+
rowData: Array<Record<string, ReactNode>>;
|
|
127
|
+
/**
|
|
128
|
+
* Visually hidden accessible label for the select-all header checkbox.
|
|
129
|
+
* Defaults to `'Select all rows'`. Override for translation.
|
|
130
|
+
*/
|
|
131
|
+
selectAllLabel?: string;
|
|
132
|
+
/**
|
|
133
|
+
* Controlled selected row IDs. When provided alongside `onRowSelectionChange`,
|
|
134
|
+
* enables controlled selection mode.
|
|
135
|
+
*/
|
|
136
|
+
selectedRows?: string[];
|
|
137
|
+
/**
|
|
138
|
+
* Controlled sort column id. Only used when `onSort` is provided.
|
|
139
|
+
*/
|
|
140
|
+
sortKey?: string;
|
|
11
141
|
/**
|
|
12
|
-
*
|
|
142
|
+
* Controlled sort direction. Only used when `onSort` is provided.
|
|
13
143
|
*/
|
|
14
|
-
|
|
15
|
-
sortable?: boolean;
|
|
16
|
-
title: string;
|
|
17
|
-
}>;
|
|
144
|
+
sortOrder?: SortOrder;
|
|
18
145
|
/**
|
|
19
|
-
*
|
|
146
|
+
* Total number of items across all pages. Required in controlled pagination
|
|
147
|
+
* mode so the Pagination component can compute the page count.
|
|
20
148
|
*/
|
|
21
|
-
|
|
149
|
+
totalItemCount?: number;
|
|
22
150
|
}
|
|
23
|
-
|
|
24
|
-
* Table UI component
|
|
25
|
-
*/
|
|
26
|
-
export declare const Table: ({ className, headers, rowData, ...props }: TableProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
export {};
|
|
151
|
+
export declare const Table: ({ className, columns, currentPage, defaultSortKey, defaultSortOrder, emptyState, emptyStateHeading, emptyStateMessage, getPageSizeLabel, getRowId, getSelectRowLabel, getSortLabel, isLoading, itemsPerPage, loadingRowCount, onPageChange, onPageSizeChange, onRowSelectionChange, onSort, pageSizeOptions, rowData, selectAllLabel, selectedRows, sortKey, sortOrder, totalItemCount, ...props }: TableProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import { HeadingLevelCommon } from '../../libs/types/custom-types';
|
|
3
3
|
import './table-of-contents.css';
|
|
4
|
-
|
|
5
|
-
* Prop types for TableOfContents
|
|
6
|
-
*/
|
|
7
|
-
interface TableOfContentsProps extends ComponentPropsWithoutRef<'nav'> {
|
|
4
|
+
export interface TableOfContentsProps extends ComponentPropsWithoutRef<'nav'> {
|
|
8
5
|
/**
|
|
9
6
|
* Whether to append the id to the URL when a link is clicked.
|
|
10
7
|
*/
|
|
@@ -42,4 +39,3 @@ interface TableOfContentsProps extends ComponentPropsWithoutRef<'nav'> {
|
|
|
42
39
|
* TableOfContents UI component
|
|
43
40
|
*/
|
|
44
41
|
export declare const TableOfContents: ({ appendIds, ariaLabel, className, headingLevel, headingText, ignoreClass, showHeading, sourceID, ...props }: TableOfContentsProps) => import("react/jsx-runtime").JSX.Element;
|
|
45
|
-
export {};
|
|
@@ -30,6 +30,7 @@ interface Tabs {
|
|
|
30
30
|
type: 'neutral' | 'critical' | 'warning' | 'info' | 'success';
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
+
export type TabsSize = 's' | 'm';
|
|
33
34
|
interface TabsProps extends ComponentPropsWithoutRef<'div'> {
|
|
34
35
|
/**
|
|
35
36
|
* Sets tabset aria label
|
|
@@ -51,6 +52,10 @@ interface TabsProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
51
52
|
* Sets currently selected tab using a zero-based index
|
|
52
53
|
*/
|
|
53
54
|
selectedTab?: number;
|
|
55
|
+
/**
|
|
56
|
+
* Size of the tabs.
|
|
57
|
+
*/
|
|
58
|
+
size?: TabsSize;
|
|
54
59
|
/**
|
|
55
60
|
* Array of objects for tab data
|
|
56
61
|
*/
|
|
@@ -59,5 +64,5 @@ interface TabsProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
59
64
|
/**
|
|
60
65
|
* Tabs UI component
|
|
61
66
|
*/
|
|
62
|
-
export declare const Tabs: ({ ariaLabel, className, defaultSelected, onActiveTabChange, selectedTab, tabs, ...props }: TabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
67
|
+
export declare const Tabs: ({ ariaLabel, className, defaultSelected, onActiveTabChange, selectedTab, size, tabs, ...props }: TabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
63
68
|
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
import './tag.css';
|
|
3
|
-
export declare const tagColors:
|
|
3
|
+
export declare const tagColors: readonly ["apollo", "iris", "hypnos", "gaia", "aether", "success", "warning", "critical", "info", "discovery", "amber", "orange", "lime", "teal", "sky", "indigo", "rose", "slate", "sand", "mint", "silver", "stone"];
|
|
4
4
|
type TagColor = (typeof tagColors)[number];
|
|
5
|
+
export type TagSize = 'xs' | 's' | 'm';
|
|
5
6
|
interface TagProps extends ComponentPropsWithoutRef<'div'> {
|
|
6
7
|
/**
|
|
7
8
|
* Additional class names
|
|
@@ -23,6 +24,10 @@ interface TagProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
23
24
|
* Label for the remove button. Tag text will be appended to this label.
|
|
24
25
|
*/
|
|
25
26
|
removeLabel?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Size of the tag.
|
|
29
|
+
*/
|
|
30
|
+
size?: TagSize;
|
|
26
31
|
/**
|
|
27
32
|
* Tag color. Will use random color if not selected.
|
|
28
33
|
*/
|
|
@@ -31,9 +36,15 @@ interface TagProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
31
36
|
* Tag text
|
|
32
37
|
*/
|
|
33
38
|
tagLabel: string;
|
|
39
|
+
/**
|
|
40
|
+
* Maximum number of characters before truncation. Set to 0 to disable
|
|
41
|
+
* truncation entirely. Defaults to 20. Most use cases should keep the
|
|
42
|
+
* default, especially in multi-tag contexts.
|
|
43
|
+
*/
|
|
44
|
+
truncationLength?: number;
|
|
34
45
|
}
|
|
35
46
|
/**
|
|
36
47
|
* Tag UI component
|
|
37
48
|
*/
|
|
38
|
-
export declare const Tag: ({ className, isRemovable, linkContent, onRemove, removeLabel, tagColor, tagLabel, ...props }: TagProps) => import("react/jsx-runtime").JSX.Element;
|
|
49
|
+
export declare const Tag: ({ className, isRemovable, linkContent, onRemove, removeLabel, size, tagColor, tagLabel, truncationLength, ...props }: TagProps) => import("react/jsx-runtime").JSX.Element;
|
|
39
50
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import './theme-switcher.css';
|
|
3
|
+
type Theme = 'light' | 'dark' | 'system';
|
|
3
4
|
/**
|
|
4
5
|
* Prop types for ThemeSwitcher
|
|
5
6
|
*/
|
|
@@ -9,24 +10,29 @@ export interface ThemeSwitcherProps extends Omit<ComponentPropsWithoutRef<'div'>
|
|
|
9
10
|
*/
|
|
10
11
|
className?: string;
|
|
11
12
|
/**
|
|
12
|
-
*
|
|
13
|
+
* ID for the menu button. Must be unique if multiple ThemeSwitchers are rendered.
|
|
13
14
|
*/
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* The current theme
|
|
17
|
-
*/
|
|
18
|
-
theme?: 'light' | 'dark' | 'system';
|
|
15
|
+
id?: string;
|
|
19
16
|
/**
|
|
20
17
|
* Translation strings for theme options
|
|
21
18
|
*/
|
|
22
|
-
|
|
19
|
+
labelStrings?: {
|
|
23
20
|
dark: string;
|
|
24
21
|
light: string;
|
|
25
22
|
system: string;
|
|
26
23
|
tooltip?: string;
|
|
27
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* Callback triggered when the theme changes
|
|
27
|
+
*/
|
|
28
|
+
onChange?: (theme: Theme) => void;
|
|
29
|
+
/**
|
|
30
|
+
* The current theme
|
|
31
|
+
*/
|
|
32
|
+
theme?: Theme;
|
|
28
33
|
}
|
|
29
34
|
/**
|
|
30
35
|
* ThemeSwitcher UI component
|
|
31
36
|
*/
|
|
32
|
-
export declare const ThemeSwitcher: ({ className, onChange, theme,
|
|
37
|
+
export declare const ThemeSwitcher: ({ className, id, labelStrings, onChange, theme, ...props }: ThemeSwitcherProps) => import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
export {};
|
|
@@ -15,6 +15,10 @@ interface TooltipProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
15
15
|
* String or HTML content to use as the trigger instead of an icon. Leave null to use the icon.
|
|
16
16
|
*/
|
|
17
17
|
customTrigger?: ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* When true, the tooltip will not show on focus — only on hover.
|
|
20
|
+
*/
|
|
21
|
+
disableFocusTrigger?: boolean;
|
|
18
22
|
/**
|
|
19
23
|
* The spacing between the trigger and the tooltip in pixels. Use the default value (in most cases) when using an icon trigger.
|
|
20
24
|
*/
|
|
@@ -30,7 +34,7 @@ interface TooltipProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
30
34
|
/**
|
|
31
35
|
* Icon to trigger tooltip
|
|
32
36
|
*/
|
|
33
|
-
triggerIcon?: 'circleInfo' | 'circleQuestion' | '
|
|
37
|
+
triggerIcon?: 'circleExclamation' | 'circleExclamationSolid' | 'circleInfo' | 'circleInfoSolid' | 'circleQuestion' | 'circleQuestionSolid';
|
|
34
38
|
/**
|
|
35
39
|
* Color of the trigger icon. Uses PDS default text color options.
|
|
36
40
|
*/
|
|
@@ -38,7 +42,7 @@ interface TooltipProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
38
42
|
/**
|
|
39
43
|
* Size of the trigger icon. Uses PDS Icon sizing.
|
|
40
44
|
*/
|
|
41
|
-
triggerIconSize?: 's' | 'm' | 'l';
|
|
45
|
+
triggerIconSize?: 'xs' | 's' | 'm' | 'l';
|
|
42
46
|
/**
|
|
43
47
|
* Z-index value for the tooltip container. In most cases, the default value should be retained.
|
|
44
48
|
*/
|
|
@@ -47,5 +51,5 @@ interface TooltipProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
47
51
|
/**
|
|
48
52
|
* Tooltip UI component
|
|
49
53
|
*/
|
|
50
|
-
export declare const Tooltip: ({ className, content, customTrigger, offsetValue, preferredPlacement, triggerAccessibleText, triggerIcon, triggerIconColor, triggerIconSize, zIndex, ...props }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
export declare const Tooltip: ({ className, content, customTrigger, disableFocusTrigger, offsetValue, preferredPlacement, triggerAccessibleText, triggerIcon, triggerIconColor, triggerIconSize, zIndex, ...props }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
51
55
|
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import { GridGapOptions } from '../../libs/types/layout-types';
|
|
3
|
+
import './utility-bar.css';
|
|
4
|
+
type UtilityBarBackground = 'default' | 'default-secondary' | 'transparent';
|
|
5
|
+
type UtilityBarPadding = GridGapOptions | 'none';
|
|
6
|
+
export interface UtilityBarProps extends ComponentPropsWithoutRef<'div'> {
|
|
7
|
+
/**
|
|
8
|
+
* Background color of the utility bar.
|
|
9
|
+
*/
|
|
10
|
+
backgroundColor?: UtilityBarBackground;
|
|
11
|
+
/**
|
|
12
|
+
* Child elements assigned to named slots.
|
|
13
|
+
* - `items-left` — left-side content (e.g. search input)
|
|
14
|
+
* - `items-right` — right-side controls (e.g. icon buttons)
|
|
15
|
+
*/
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* Additional class names.
|
|
19
|
+
*/
|
|
20
|
+
className?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Internal padding. Defaults to 'none'.
|
|
23
|
+
*/
|
|
24
|
+
padding?: UtilityBarPadding;
|
|
25
|
+
}
|
|
26
|
+
export declare const UtilityBar: ({ backgroundColor, children, className, padding, ...props }: UtilityBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import './badge.css';
|
|
3
|
+
export type BadgeColor = 'aether' | 'aether-secondary' | 'amber' | 'amber-secondary' | 'apollo' | 'apollo-secondary' | 'critical' | 'critical-secondary' | 'discovery' | 'discovery-secondary' | 'gaia' | 'gaia-secondary' | 'hypnos' | 'hypnos-secondary' | 'indigo' | 'indigo-secondary' | 'info' | 'info-secondary' | 'iris' | 'iris-secondary' | 'lime' | 'lime-secondary' | 'mint' | 'mint-secondary' | 'orange' | 'orange-secondary' | 'rose' | 'rose-secondary' | 'sand' | 'sand-secondary' | 'silver' | 'silver-secondary' | 'sky' | 'sky-secondary' | 'slate' | 'slate-secondary' | 'stone' | 'stone-secondary' | 'success' | 'success-secondary' | 'teal' | 'teal-secondary' | 'warning' | 'warning-secondary' | 'feature';
|
|
4
|
+
/**
|
|
5
|
+
* Badge component props
|
|
6
|
+
*/
|
|
7
|
+
export interface BadgeProps extends ComponentPropsWithoutRef<'span'> {
|
|
8
|
+
/**
|
|
9
|
+
* Additional class names
|
|
10
|
+
*/
|
|
11
|
+
className?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Badge color
|
|
14
|
+
*/
|
|
15
|
+
color: BadgeColor;
|
|
16
|
+
/**
|
|
17
|
+
* Badge text or content.
|
|
18
|
+
*/
|
|
19
|
+
label: ReactNode;
|
|
20
|
+
/**
|
|
21
|
+
* Badge size
|
|
22
|
+
*/
|
|
23
|
+
size?: 'xs' | 's' | 'm';
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Badge UI component
|
|
27
|
+
*/
|
|
28
|
+
export declare const Badge: ({ className, color, label, size, ...props }: BadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from 'react';
|
|
1
|
+
import React, { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import './close-button.css';
|
|
3
3
|
/**
|
|
4
4
|
* Prop types for CloseButton
|
|
@@ -15,7 +15,7 @@ export interface CloseButtonProps extends ComponentPropsWithoutRef<'button'> {
|
|
|
15
15
|
/**
|
|
16
16
|
* Click event callback function.
|
|
17
17
|
*/
|
|
18
|
-
onClick?: () => void;
|
|
18
|
+
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
19
19
|
/**
|
|
20
20
|
* Size of the icon.
|
|
21
21
|
*/
|
|
@@ -20,6 +20,10 @@ interface IconButtonProps extends ComponentPropsWithoutRef<'button'> {
|
|
|
20
20
|
* Is the button disabled?
|
|
21
21
|
*/
|
|
22
22
|
disabled?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Show a visible border around the button.
|
|
25
|
+
*/
|
|
26
|
+
hasBorder?: boolean;
|
|
23
27
|
/**
|
|
24
28
|
* Show tooltip on hover. If false, the title attribute will be used.
|
|
25
29
|
*/
|
|
@@ -32,10 +36,18 @@ interface IconButtonProps extends ComponentPropsWithoutRef<'button'> {
|
|
|
32
36
|
* Which icon to render.
|
|
33
37
|
*/
|
|
34
38
|
iconName: PDSIcon;
|
|
39
|
+
/**
|
|
40
|
+
* Whether the button is in a pressed/active toggle state. Maps to aria-pressed.
|
|
41
|
+
*/
|
|
42
|
+
isPressed?: boolean;
|
|
35
43
|
/**
|
|
36
44
|
* Click event handler callback.
|
|
37
45
|
*/
|
|
38
46
|
onClick?: (e: MouseEvent<HTMLElement>) => void;
|
|
47
|
+
/**
|
|
48
|
+
* Icon to display when isPressed is true. When not set, iconName is used in both states.
|
|
49
|
+
*/
|
|
50
|
+
pressedIconName?: PDSIcon;
|
|
39
51
|
/**
|
|
40
52
|
* Which size of button to render.
|
|
41
53
|
*/
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
2
|
import { ButtonVariant, HeadingItemType, LinkItemType, MenuItemType, NodeItemType, SeparatorItemType } from '../../../libs/types/custom-types';
|
|
3
3
|
import { PDSIcon } from '../../icons/Icon/Icon';
|
|
4
|
+
import '@components/Dropdown/dropdown.css';
|
|
4
5
|
import './menu-button.css';
|
|
5
6
|
type MenuButtonSize = 's' | 'm';
|
|
6
7
|
/**
|
|
@@ -63,15 +64,9 @@ export interface MenuButtonProps extends ComponentPropsWithRef<'span'> {
|
|
|
63
64
|
* Which variant of button to render — only valid for icon-end (default) display type.
|
|
64
65
|
*/
|
|
65
66
|
variant?: Extract<ButtonVariant, 'primary' | 'secondary' | 'navbar'>;
|
|
66
|
-
/**
|
|
67
|
-
* Is this button located with the Navbar component?
|
|
68
|
-
* This will adjust the styling and position of the dropdown.
|
|
69
|
-
* Omit this prop for the Dashboard application. It only applies to the standard Navbar component with a bottom border.
|
|
70
|
-
*/
|
|
71
|
-
withinNavbar?: boolean;
|
|
72
67
|
}
|
|
73
68
|
/**
|
|
74
69
|
* MenuButton UI component
|
|
75
70
|
*/
|
|
76
|
-
export declare const MenuButton: ({ className, disabled, displayType, iconName, id, isSplitButton, label, menuItems, menuPosition, onClick, size, testId, undefinedLabel, variant,
|
|
71
|
+
export declare const MenuButton: ({ className, disabled, displayType, iconName, id, isSplitButton, label, menuItems, menuPosition, onClick, size, testId, undefinedLabel, variant, ...props }: MenuButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
77
72
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
import { GridGapOptions } from '../../../libs/types/layout-types';
|
|
3
3
|
import './card.css';
|
|
4
|
-
export type CardBackground = 'default' | '
|
|
4
|
+
export type CardBackground = 'default' | 'transparent';
|
|
5
5
|
/**
|
|
6
6
|
* Prop types for Card
|
|
7
7
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { HeadingLevelCommon } from '../../../libs/types/custom-types';
|
|
2
3
|
import { ListItems } from '../../ComparisonList/ComparisonList';
|
|
3
4
|
import './pricing-card.css';
|
|
4
5
|
interface PrimaryCallToAction {
|
|
@@ -54,6 +55,10 @@ interface PricingCardProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
54
55
|
* Add corresponding `comparisonListId` to each planPricingData object.
|
|
55
56
|
*/
|
|
56
57
|
hasComparisonList?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Heading level for the plan name.
|
|
60
|
+
*/
|
|
61
|
+
headingLevel?: HeadingLevelCommon;
|
|
57
62
|
/**
|
|
58
63
|
* Optional function to handle the change event of the select input. Only valid when multiple tiers of planPricingData are present.
|
|
59
64
|
*/
|
|
@@ -86,5 +91,5 @@ interface PricingCardProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
86
91
|
/**
|
|
87
92
|
* PricingCard UI component
|
|
88
93
|
*/
|
|
89
|
-
export declare const PricingCard: ({ actionPrimary, actionSecondary, className, hasComparisonList, onTierChange, planDescription, planName, planPricingData, selectLabel, statusBadgeLabels, statusBadgeType, ...props }: PricingCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
94
|
+
export declare const PricingCard: ({ actionPrimary, actionSecondary, className, hasComparisonList, headingLevel, onTierChange, planDescription, planName, planPricingData, selectLabel, statusBadgeLabels, statusBadgeType, ...props }: PricingCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
90
95
|
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import type { BaseChartProps } from '../shared/types';
|
|
3
|
+
import '../shared/chart-wrapper.css';
|
|
4
|
+
import './bar-chart.css';
|
|
5
|
+
export type BarChartLayout = 'horizontal' | 'vertical';
|
|
6
|
+
export type BarChartVariant = 'grouped' | 'stacked';
|
|
7
|
+
export interface BarChartProps extends BaseChartProps, Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
8
|
+
/** Border radius on bars (default: 2) */
|
|
9
|
+
barRadius?: number;
|
|
10
|
+
/** Bar orientation — horizontal (default, bars go up) or vertical (bars go sideways) */
|
|
11
|
+
layout?: BarChartLayout;
|
|
12
|
+
/** Bar layout variant (default: 'stacked') */
|
|
13
|
+
variant?: BarChartVariant;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* BarChart UI component
|
|
17
|
+
*
|
|
18
|
+
* Renders a responsive bar chart with support for stacked or grouped layouts,
|
|
19
|
+
* multiple series, tooltips, and an accessible data table.
|
|
20
|
+
*/
|
|
21
|
+
export declare const BarChart: ({ barRadius, chartHeight, chartWidth, className, colorPalette, data, isLoading, isThumbnail, labelStrings, layout, legendVariant, onTimePeriodChange, selectedTimePeriod, series, showAccessibleTable, showAxisLines, showGrid, showLegend, showTooltip, timePeriodOptions, tooltipContent, variant, xAxisLabel, xAxisTickInterval, yAxisDomain, yAxisFormatter, yAxisLabel, yAxisTickInterval, ...props }: BarChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import type { AnnotationConfig, BaseChartProps, ReferenceLineConfig } from '../shared/types';
|
|
3
|
+
import '../shared/chart-wrapper.css';
|
|
4
|
+
import './line-chart.css';
|
|
5
|
+
export type LineStyle = 'smooth' | 'straight';
|
|
6
|
+
export interface LineChartProps extends BaseChartProps, Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
7
|
+
/** Annotation markers (e.g., "TODAY") */
|
|
8
|
+
annotations?: AnnotationConfig[];
|
|
9
|
+
/** Line curve style (default: 'smooth') */
|
|
10
|
+
lineStyle?: LineStyle;
|
|
11
|
+
/** Reference lines (e.g., contract limit) */
|
|
12
|
+
referenceLines?: ReferenceLineConfig[];
|
|
13
|
+
/** Show data points on lines (default: true) */
|
|
14
|
+
showDataPoints?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* LineChart UI component
|
|
18
|
+
*
|
|
19
|
+
* Renders a responsive line chart with support for multiple series,
|
|
20
|
+
* reference lines, annotations, tooltips, and an accessible data table.
|
|
21
|
+
*/
|
|
22
|
+
export declare const LineChart: ({ annotations, chartHeight, chartWidth, className, colorPalette, data, isLoading, isThumbnail, labelStrings, legendVariant, lineStyle, onTimePeriodChange, referenceLines, selectedTimePeriod, series, showAccessibleTable, showAxisLines, showDataPoints, showGrid, showLegend, showTooltip, timePeriodOptions, tooltipContent, xAxisLabel, xAxisTickInterval, yAxisDomain, yAxisFormatter, yAxisLabel, yAxisTickInterval, ...props }: LineChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ChartDataPoint, SeriesConfig } from './types';
|
|
2
|
+
interface ChartAccessibleTableProps {
|
|
3
|
+
/** Chart data points */
|
|
4
|
+
data: ChartDataPoint[];
|
|
5
|
+
/** Accessible description for the table */
|
|
6
|
+
description: string;
|
|
7
|
+
/** Series definitions */
|
|
8
|
+
series: SeriesConfig[];
|
|
9
|
+
/** Optional value formatter */
|
|
10
|
+
valueFormatter?: (value: number) => string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Renders a visually-hidden HTML table containing chart data
|
|
14
|
+
* for screen reader accessibility.
|
|
15
|
+
*/
|
|
16
|
+
export declare const ChartAccessibleTable: ({ data, description, series, valueFormatter, }: ChartAccessibleTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ChartDataPoint, SeriesConfig } from './types';
|
|
2
|
+
import './chart-legend.css';
|
|
3
|
+
export type LegendVariant = 'inline' | 'table';
|
|
4
|
+
interface ChartLegendProps {
|
|
5
|
+
/** Chart data — used to calculate totals for table variant */
|
|
6
|
+
data?: ChartDataPoint[];
|
|
7
|
+
/** Series definitions */
|
|
8
|
+
series: SeriesConfig[];
|
|
9
|
+
/** Colors resolved from tokens */
|
|
10
|
+
seriesColors: string[];
|
|
11
|
+
/** Table header for the totals column */
|
|
12
|
+
tableHeader?: string;
|
|
13
|
+
/** Formatter for total values in table variant */
|
|
14
|
+
valueFormatter?: (value: number) => string;
|
|
15
|
+
/** Legend display style (default: 'inline') */
|
|
16
|
+
variant?: LegendVariant;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* ChartLegend component
|
|
20
|
+
*
|
|
21
|
+
* Renders a chart legend in either inline (horizontal list) or
|
|
22
|
+
* table (rows with totals) format.
|
|
23
|
+
*/
|
|
24
|
+
export declare const ChartLegend: ({ data, series, seriesColors, tableHeader, valueFormatter, variant, }: ChartLegendProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { LegendVariant } from './types';
|
|
2
|
+
export interface ChartSkeletonProps {
|
|
3
|
+
height: number;
|
|
4
|
+
legendVariant?: LegendVariant;
|
|
5
|
+
showLegend?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const ChartSkeleton: ({ height, legendVariant, showLegend, }: ChartSkeletonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import type { ColorPalette } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Strips fill-only steps from palettes that have them, returning only standalone-safe colors.
|
|
5
|
+
* Bar and line charts should always use this before rendering series colors.
|
|
6
|
+
*/
|
|
7
|
+
export declare const toStandaloneColors: (palette: ColorPalette, colors: string[]) => string[];
|
|
8
|
+
/**
|
|
9
|
+
* Normalizes a paletteIndex for palettes that have fill-only steps.
|
|
10
|
+
* Clamps fill-only step numbers (e.g. 1–2 on sequential-iris/multi) to the first safe step,
|
|
11
|
+
* then adjusts for the slice offset so the number still maps correctly into the sliced array.
|
|
12
|
+
* Non-restricted palettes pass through unchanged.
|
|
13
|
+
*/
|
|
14
|
+
export declare const clampPaletteIndex: (palette: ColorPalette, paletteIndex: number | undefined) => number | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Get color for a series by index, cycling through palette if needed.
|
|
17
|
+
* Priority: customColor (hex) > paletteIndex (theme-aware) > auto-assigned.
|
|
18
|
+
*/
|
|
19
|
+
export declare const getSeriesColor: (index: number, palette: string[], customColor?: string, paletteIndex?: number) => string;
|
|
20
|
+
/**
|
|
21
|
+
* Resolve palette token colors from computed styles on an element.
|
|
22
|
+
* Falls back to hex values if tokens are not available.
|
|
23
|
+
*/
|
|
24
|
+
export declare const resolveTokenColors: (element: HTMLElement | null, paletteName: ColorPalette) => string[];
|
|
25
|
+
/**
|
|
26
|
+
* Hook to resolve chart colors from design tokens at runtime.
|
|
27
|
+
* Falls back to hex values when tokens are not loaded (e.g., SSR).
|
|
28
|
+
* Re-resolves when the theme changes (via data-theme attribute).
|
|
29
|
+
*/
|
|
30
|
+
export declare const useChartColors: (containerRef: RefObject<HTMLElement | null>, paletteName?: ColorPalette) => string[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared Recharts style configuration using PDS design tokens.
|
|
3
|
+
* Keeps all chart styling in one place rather than split between CSS and JS.
|
|
4
|
+
*/
|
|
5
|
+
export declare const axisTickStyle: {
|
|
6
|
+
fill: string;
|
|
7
|
+
fontFamily: string;
|
|
8
|
+
fontSize: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const axisLabelStyle: {
|
|
11
|
+
fill: string;
|
|
12
|
+
fontFamily: string;
|
|
13
|
+
fontSize: string;
|
|
14
|
+
fontWeight: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const gridStroke = "var(--pds-color-border-default)";
|