@pantheon-systems/pds-toolkit-react 2.0.0-alpha.3 → 2.0.0-alpha.31
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/SiteFooter/SiteFooter.d.ts +38 -0
- package/dist/components/{navigation/DashboardSearch/DashboardSearch.d.ts → SiteSearch/SiteSearch.d.ts} +6 -11
- 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/ActionCard/ActionCard.d.ts +64 -0
- package/dist/components/cards/Card/Card.d.ts +9 -2
- package/dist/components/cards/{CardSelectGroup/CardSelectGroup.d.ts → CardSelect/CardSelect.d.ts} +13 -8
- package/dist/components/charts/BarChart/BarChart.d.ts +21 -0
- package/dist/components/charts/LineChart/LineChart.d.ts +22 -0
- package/dist/components/charts/PieChart/PieChart.d.ts +59 -0
- package/dist/components/charts/ProportionBar/ProportionBar.d.ts +57 -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 +11 -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-action-card.css +1 -0
- 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.css +1 -0
- 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-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-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-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-icon.css +1 -1
- package/dist/css/component-css/pds-pie-chart.css +1 -0
- 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-progress-bar.css +1 -1
- package/dist/css/component-css/pds-progress-ring.css +1 -1
- package/dist/css/component-css/pds-proportion-bar.css +1 -0
- 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-footer.css +1 -1
- package/dist/css/component-css/pds-site-search.css +1 -0
- 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 +94 -6
- package/dist/index.js +12732 -1983
- package/dist/index.js.map +1 -1
- package/dist/index.source.d.ts +36 -39
- 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 -4
- 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/SiteDashboardHeading/SiteDashboardHeading.d.ts +0 -62
- package/dist/components/SocialLinks/SocialLinks.d.ts +0 -23
- package/dist/components/badges/IndicatorBadge/IndicatorBadge.d.ts +0 -27
- package/dist/components/cards/CardHeading/CardHeading.d.ts +0 -31
- package/dist/components/cards/EmptyStateCard/EmptyStateCard.d.ts +0 -36
- package/dist/components/cards/LinksCard/LinksCard.d.ts +0 -29
- package/dist/components/cards/LinksCard/links-card-sample-data.d.ts +0 -2
- package/dist/components/cards/NewSiteCard/NewSiteCard.d.ts +0 -61
- package/dist/components/cards/PaymentCard/PaymentCard.d.ts +0 -47
- package/dist/components/cards/PricingCard/PricingCard.d.ts +0 -90
- package/dist/components/cards/SiteCard/SiteCard.d.ts +0 -50
- 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-card-heading.css +0 -1
- package/dist/css/component-css/pds-card-select-group.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-search.css +0 -1
- package/dist/css/component-css/pds-dashboard-stat.css +0 -1
- package/dist/css/component-css/pds-empty-state-card.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-links-card.css +0 -1
- package/dist/css/component-css/pds-new-site-card.css +0 -1
- package/dist/css/component-css/pds-payment-card.css +0 -1
- package/dist/css/component-css/pds-pricing-card-local.css +0 -1
- package/dist/css/component-css/pds-pricing-card.css +0 -1
- 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-site-card.css +0 -1
- package/dist/css/component-css/pds-site-dashboard-heading.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
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import type { ColorPalette, LegendVariant } from '../shared/types';
|
|
3
|
+
import '../shared/chart-wrapper.css';
|
|
4
|
+
import './pie-chart.css';
|
|
5
|
+
export type PieChartVariant = 'donut' | 'pie';
|
|
6
|
+
export interface PieSlice {
|
|
7
|
+
/** Override default token color (CSS custom property or hex). Not theme-aware — use paletteIndex instead when possible. */
|
|
8
|
+
color?: string;
|
|
9
|
+
/** Display label for legend and tooltip */
|
|
10
|
+
label: string;
|
|
11
|
+
/** Pick a specific color from the selected palette by position (1-based). Theme-aware — automatically adjusts for light/dark mode. */
|
|
12
|
+
paletteIndex?: number;
|
|
13
|
+
/** Numeric value for this slice */
|
|
14
|
+
value: number;
|
|
15
|
+
}
|
|
16
|
+
export interface PieChartLabelStrings {
|
|
17
|
+
/** Accessible description for the hidden data table */
|
|
18
|
+
accessibleTableDescription?: string;
|
|
19
|
+
/** Heading for the empty state */
|
|
20
|
+
emptyStateHeading?: string;
|
|
21
|
+
/** Message body for the empty state */
|
|
22
|
+
emptyStateMessage?: string;
|
|
23
|
+
/** Loading label for screen readers */
|
|
24
|
+
loadingLabel?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface PieChartProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
27
|
+
/** Height of the chart area in pixels. Default: 300; 80 when isThumbnail. */
|
|
28
|
+
chartHeight?: number;
|
|
29
|
+
/** Maximum width of the component in pixels. Default: 80 when isThumbnail. */
|
|
30
|
+
chartWidth?: number;
|
|
31
|
+
/** Color palette to use for slice colors (default: 'categorical') */
|
|
32
|
+
colorPalette?: ColorPalette;
|
|
33
|
+
/** Slice data */
|
|
34
|
+
data: PieSlice[];
|
|
35
|
+
/** Show loading skeleton */
|
|
36
|
+
isLoading?: boolean;
|
|
37
|
+
/** Thumbnail mode — hides legend and tooltip, renders at a small fixed size. Individual show* props can override. */
|
|
38
|
+
isThumbnail?: boolean;
|
|
39
|
+
/** Translatable UI strings for i18n. Keys: accessibleTableDescription, emptyStateHeading, emptyStateMessage, loadingLabel. */
|
|
40
|
+
labelStrings?: PieChartLabelStrings;
|
|
41
|
+
/** Legend display style (default: 'inline') */
|
|
42
|
+
legendVariant?: LegendVariant;
|
|
43
|
+
/** Show accessible data table (visually hidden). Defaults to true. */
|
|
44
|
+
showAccessibleTable?: boolean;
|
|
45
|
+
/** Show legend below the chart. Defaults to true; false when isThumbnail is set. */
|
|
46
|
+
showLegend?: boolean;
|
|
47
|
+
/** Show tooltip on hover. Defaults to true; false when isThumbnail is set. */
|
|
48
|
+
showTooltip?: boolean;
|
|
49
|
+
/** Custom value formatter for legend items. Receives the slice value, total, and label. Defaults to showing percentage. */
|
|
50
|
+
valueFormatter?: (value: number, total: number, label: string) => string;
|
|
51
|
+
/** Chart variant (default: 'pie') */
|
|
52
|
+
variant?: PieChartVariant;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* PieChart UI component
|
|
56
|
+
*
|
|
57
|
+
* Renders a responsive pie or donut chart showing proportional data across categories.
|
|
58
|
+
*/
|
|
59
|
+
export declare const PieChart: ({ chartHeight, chartWidth, className, colorPalette, data, isLoading, isThumbnail, labelStrings, legendVariant, showAccessibleTable, showLegend, showTooltip, valueFormatter, variant, ...props }: PieChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import type { ColorPalette } from '../shared/types';
|
|
3
|
+
import '../shared/chart-wrapper.css';
|
|
4
|
+
import './proportion-bar.css';
|
|
5
|
+
export interface ProportionSegment {
|
|
6
|
+
/** Override default token color (CSS custom property or hex). Not theme-aware — use paletteIndex instead when possible. */
|
|
7
|
+
color?: string;
|
|
8
|
+
/** Display label for legend and tooltip */
|
|
9
|
+
label: string;
|
|
10
|
+
/** Pick a specific color from the selected palette by position (1-based). Theme-aware — automatically adjusts for light/dark mode. */
|
|
11
|
+
paletteIndex?: number;
|
|
12
|
+
/** Numeric value for this segment */
|
|
13
|
+
value: number;
|
|
14
|
+
}
|
|
15
|
+
export interface ProportionBarLabelStrings {
|
|
16
|
+
/** Accessible description for the hidden data table */
|
|
17
|
+
accessibleTableDescription?: string;
|
|
18
|
+
/** Heading for the empty state */
|
|
19
|
+
emptyStateHeading?: string;
|
|
20
|
+
/** Message body for the empty state */
|
|
21
|
+
emptyStateMessage?: string;
|
|
22
|
+
/** Loading label for screen readers */
|
|
23
|
+
loadingLabel?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface ProportionBarProps extends Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
26
|
+
/** Height of the bar track in pixels (default: 16) */
|
|
27
|
+
barHeight?: number;
|
|
28
|
+
/** Maximum width of the component in pixels. The component is responsive and will shrink within this constraint. */
|
|
29
|
+
chartWidth?: number;
|
|
30
|
+
/** Color palette to use for segment colors (default: 'categorical') */
|
|
31
|
+
colorPalette?: ColorPalette;
|
|
32
|
+
/** Segment data — each segment has a label, numeric value, and optional color override */
|
|
33
|
+
data: ProportionSegment[];
|
|
34
|
+
/** Show loading skeleton */
|
|
35
|
+
isLoading?: boolean;
|
|
36
|
+
/** Thumbnail mode — hides legend and tooltip. Individual show* props can override. */
|
|
37
|
+
isThumbnail?: boolean;
|
|
38
|
+
/** Translatable UI strings for i18n. Keys: accessibleTableDescription, emptyStateHeading, emptyStateMessage, loadingLabel. */
|
|
39
|
+
labelStrings?: ProportionBarLabelStrings;
|
|
40
|
+
/** Alignment of the legend (default: 'left') */
|
|
41
|
+
legendAlignment?: 'center' | 'left';
|
|
42
|
+
/** Show accessible data table (visually hidden). Defaults to true. */
|
|
43
|
+
showAccessibleTable?: boolean;
|
|
44
|
+
/** Show legend below the bar. Defaults to true; false when isThumbnail is set. */
|
|
45
|
+
showLegend?: boolean;
|
|
46
|
+
/** Show tooltip on hover. Defaults to true; false when isThumbnail is set. */
|
|
47
|
+
showTooltip?: boolean;
|
|
48
|
+
/** Custom value formatter for legend items. Receives the segment value, total, and label. Defaults to showing percentage. */
|
|
49
|
+
valueFormatter?: (value: number, total: number, label: string) => string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* ProportionBar UI component
|
|
53
|
+
*
|
|
54
|
+
* Renders a single horizontal bar divided into colored segments, showing
|
|
55
|
+
* the composition of a total. Functions as a linearized pie chart.
|
|
56
|
+
*/
|
|
57
|
+
export declare const ProportionBar: ({ barHeight, chartWidth, className, colorPalette, data, isLoading, isThumbnail, labelStrings, legendAlignment, showAccessibleTable, showLegend, showTooltip, valueFormatter, ...props }: ProportionBarProps) => 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,11 @@
|
|
|
1
|
+
import type { LegendVariant } from './types';
|
|
2
|
+
export interface ChartSkeletonProps {
|
|
3
|
+
/** Optional border radius for the skeleton bar area (e.g. 'var(--pds-border-radius-bar)'). When provided, a rectangular skeleton is clipped to this radius. */
|
|
4
|
+
borderRadius?: string;
|
|
5
|
+
height: number;
|
|
6
|
+
/** Alignment of the inline legend skeleton (default: 'center') */
|
|
7
|
+
legendAlignment?: 'center' | 'left';
|
|
8
|
+
legendVariant?: LegendVariant;
|
|
9
|
+
showLegend?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const ChartSkeleton: ({ borderRadius, height, legendAlignment, 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)";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Format a number with K/M/B suffixes for chart axis labels.
|
|
3
|
+
*/
|
|
4
|
+
export declare const formatCompactNumber: (value: number) => string;
|
|
5
|
+
/**
|
|
6
|
+
* Format a number with locale-aware thousand separators.
|
|
7
|
+
*/
|
|
8
|
+
export declare const formatLocaleNumber: (value: number) => string;
|
|
9
|
+
/**
|
|
10
|
+
* Format a number as a percentage.
|
|
11
|
+
*/
|
|
12
|
+
export declare const formatPercent: (value: number) => string;
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface ChartDataPoint {
|
|
3
|
+
/** One or more numeric series values, keyed by series name */
|
|
4
|
+
[key: string]: number | string;
|
|
5
|
+
/** X-axis label */
|
|
6
|
+
label: string;
|
|
7
|
+
}
|
|
8
|
+
export type StrokeStyle = 'dashed' | 'solid';
|
|
9
|
+
export interface SeriesConfig {
|
|
10
|
+
/** Override default token color (CSS custom property or hex). Not theme-aware — use paletteIndex for theme-aware overrides. */
|
|
11
|
+
color?: string;
|
|
12
|
+
/** Key matching a property in ChartDataPoint */
|
|
13
|
+
dataKey: string;
|
|
14
|
+
/** Display label for legend/tooltip */
|
|
15
|
+
label: string;
|
|
16
|
+
/** Pick a specific color from the selected palette by position (1-based). Theme-aware — automatically adjusts for light/dark mode. */
|
|
17
|
+
paletteIndex?: number;
|
|
18
|
+
/** Line style (LineChart only) */
|
|
19
|
+
strokeStyle?: StrokeStyle;
|
|
20
|
+
}
|
|
21
|
+
export interface ReferenceLineConfig {
|
|
22
|
+
/** Color override */
|
|
23
|
+
color?: string;
|
|
24
|
+
/** Display label */
|
|
25
|
+
label: string;
|
|
26
|
+
/** Line style */
|
|
27
|
+
strokeStyle?: StrokeStyle;
|
|
28
|
+
/** Y-axis value where line appears */
|
|
29
|
+
value: number;
|
|
30
|
+
}
|
|
31
|
+
export interface AnnotationConfig {
|
|
32
|
+
/** X-axis label value to annotate */
|
|
33
|
+
atLabel: string;
|
|
34
|
+
/** Color override */
|
|
35
|
+
color?: string;
|
|
36
|
+
/** Line style */
|
|
37
|
+
strokeStyle?: StrokeStyle;
|
|
38
|
+
/** Display text */
|
|
39
|
+
text: string;
|
|
40
|
+
}
|
|
41
|
+
export interface TimePeriodOption {
|
|
42
|
+
/** Display label ("Last 30 Days") */
|
|
43
|
+
label: string;
|
|
44
|
+
/** Value identifier */
|
|
45
|
+
value: string;
|
|
46
|
+
}
|
|
47
|
+
export type ColorPalette = 'categorical' | 'diverging-a' | 'diverging-b' | 'sequential-gray' | 'sequential-iris' | 'sequential-multi' | 'single' | 'status';
|
|
48
|
+
export type LegendVariant = 'inline' | 'table';
|
|
49
|
+
export interface TooltipEntry {
|
|
50
|
+
/** Series bar/line color */
|
|
51
|
+
color: string;
|
|
52
|
+
/** Series data key */
|
|
53
|
+
dataKey: string;
|
|
54
|
+
/** Series display name */
|
|
55
|
+
name: string;
|
|
56
|
+
/** Data value */
|
|
57
|
+
value: number;
|
|
58
|
+
}
|
|
59
|
+
export interface TooltipPayload {
|
|
60
|
+
/** All series entries for this x-axis position */
|
|
61
|
+
entries: TooltipEntry[];
|
|
62
|
+
/** X-axis label */
|
|
63
|
+
label: string;
|
|
64
|
+
}
|
|
65
|
+
export type YAxisDomainItem = number | string | ((dataMax: number) => number);
|
|
66
|
+
export type YAxisDomain = [YAxisDomainItem, YAxisDomainItem];
|
|
67
|
+
export interface ChartLabelStrings {
|
|
68
|
+
/** Accessible description for the hidden data table. */
|
|
69
|
+
accessibleTableDescription?: string;
|
|
70
|
+
/** Heading for the empty state. */
|
|
71
|
+
emptyStateHeading?: string;
|
|
72
|
+
/** Message body for the empty state. */
|
|
73
|
+
emptyStateMessage?: string;
|
|
74
|
+
/** Table header for the totals column when legendVariant is 'table'. */
|
|
75
|
+
legendTableHeader?: string;
|
|
76
|
+
/** Loading label for screen readers. */
|
|
77
|
+
loadingLabel?: string;
|
|
78
|
+
}
|
|
79
|
+
export interface BaseChartProps {
|
|
80
|
+
/** Height of the chart area in pixels. Does not include the legend, header, or accessible table. */
|
|
81
|
+
chartHeight?: number;
|
|
82
|
+
/** Maximum width of the chart component in pixels. The chart is responsive and will shrink within this constraint. */
|
|
83
|
+
chartWidth?: number;
|
|
84
|
+
/** Color palette to use for series colors (default: 'categorical') */
|
|
85
|
+
colorPalette?: ColorPalette;
|
|
86
|
+
/** Chart data points */
|
|
87
|
+
data: ChartDataPoint[];
|
|
88
|
+
/** Show loading state */
|
|
89
|
+
isLoading?: boolean;
|
|
90
|
+
/** Thumbnail mode — hides grid, axes, legend, tooltips, and reduces chart height. Individual show* props can override. */
|
|
91
|
+
isThumbnail?: boolean;
|
|
92
|
+
/** Translatable UI strings. Provide overrides for i18n. */
|
|
93
|
+
labelStrings?: ChartLabelStrings;
|
|
94
|
+
/** Legend display style (default: 'inline') */
|
|
95
|
+
legendVariant?: LegendVariant;
|
|
96
|
+
/** Callback when time period changes */
|
|
97
|
+
onTimePeriodChange?: (value: string) => void;
|
|
98
|
+
/** Currently selected time period */
|
|
99
|
+
selectedTimePeriod?: string;
|
|
100
|
+
/** Series definitions */
|
|
101
|
+
series: SeriesConfig[];
|
|
102
|
+
/** Show accessible data table (visually hidden). Defaults to true regardless of isThumbnail. */
|
|
103
|
+
showAccessibleTable?: boolean;
|
|
104
|
+
/** Show axis baseline lines. Defaults to true; false when isThumbnail is set. */
|
|
105
|
+
showAxisLines?: boolean;
|
|
106
|
+
/** Show grid lines. Defaults to true; false when isThumbnail is set. */
|
|
107
|
+
showGrid?: boolean;
|
|
108
|
+
/** Show legend. Defaults to true; false when isThumbnail is set. */
|
|
109
|
+
showLegend?: boolean;
|
|
110
|
+
/** Show tooltip on hover. Defaults to true; false when isThumbnail is set. */
|
|
111
|
+
showTooltip?: boolean;
|
|
112
|
+
/** Time period options for built-in selector */
|
|
113
|
+
timePeriodOptions?: TimePeriodOption[];
|
|
114
|
+
/** Custom tooltip renderer. Receives normalized payload and replaces the built-in tooltip. */
|
|
115
|
+
tooltipContent?: (payload: TooltipPayload) => ReactNode;
|
|
116
|
+
/** X-axis label */
|
|
117
|
+
xAxisLabel?: string;
|
|
118
|
+
/** How often to show x-axis ticks. A number n shows every nth tick (e.g. 1 = every other). Defaults to auto. */
|
|
119
|
+
xAxisTickInterval?: number | 'preserveStart' | 'preserveEnd' | 'preserveStartEnd';
|
|
120
|
+
/** Override the Y-axis scale bounds. Accepts a tuple of [min, max] where each can be a number, 'auto', 'dataMin', 'dataMax', or a function receiving the data max. */
|
|
121
|
+
yAxisDomain?: YAxisDomain;
|
|
122
|
+
/** Custom Y-axis tick formatter */
|
|
123
|
+
yAxisFormatter?: (value: number) => string;
|
|
124
|
+
/** Y-axis label */
|
|
125
|
+
yAxisLabel?: string;
|
|
126
|
+
/** How often to show y-axis ticks. A number n shows every nth tick (e.g. 1 = every other). Defaults to auto. */
|
|
127
|
+
yAxisTickInterval?: number | 'preserveStart' | 'preserveEnd' | 'preserveStartEnd';
|
|
128
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
import { HeadingLevel } from '../../../libs/types/custom-types';
|
|
3
|
-
import { VideoEmbedProps } from '../../VideoEmbed/VideoEmbed';
|
|
3
|
+
import { VideoEmbedProps } from '../../media/VideoEmbed/VideoEmbed';
|
|
4
4
|
import './horizontal-empty-state.css';
|
|
5
5
|
/**
|
|
6
6
|
* Prop types for HorizontalEmptyState
|