@pantheon-systems/pds-toolkit-react 2.0.0-beta.14 → 2.0.0-beta.16
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/codemods/v1-to-v2/css-token-renames.js +4 -4
- package/codemods/v1-to-v2/transforms/__testfixtures__/prop-value-standardization/basic.output.tsx +1 -1
- package/codemods/v1-to-v2/transforms/__testfixtures__/removed-prop-values/basic.output.tsx +7 -2
- package/codemods/v1-to-v2/transforms/component-renames.js +2 -1
- package/codemods/v1-to-v2/transforms/icon-name-updates.js +1 -0
- package/codemods/v1-to-v2/transforms/prop-renames.js +1 -0
- package/codemods/v1-to-v2/transforms/prop-value-standardization.js +2 -1
- package/codemods/v1-to-v2/transforms/removed-prop-values.js +2 -1
- package/dist/components/Callout/Callout.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.d.ts +2 -2
- package/dist/components/Popover/Popover.d.ts +1 -1
- package/dist/components/RowActionsMenu/RowActionsMenu.d.ts +1 -1
- package/dist/components/SiteFooter/SiteFooter.d.ts +1 -1
- package/dist/components/SiteSearch/SiteSearch.d.ts +1 -1
- package/dist/components/StatPanel/StatPanel.d.ts +12 -3
- package/dist/components/StatusIndicator/StatusIndicator.d.ts +1 -1
- package/dist/components/Table/Table.d.ts +1 -1
- package/dist/components/TableOfContents/TableOfContents.d.ts +1 -1
- package/dist/components/Tabs/Tabs.d.ts +1 -1
- package/dist/components/ThemeSwitcher/ThemeSwitcher.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/UtilityBar/UtilityBar.d.ts +1 -1
- package/dist/components/badges/Badge/Badge.d.ts +1 -1
- package/dist/components/badges/StatusBadge/StatusBadge.d.ts +1 -1
- package/dist/components/buttons/Button/Button.d.ts +4 -4
- package/dist/components/buttons/ButtonLink/ButtonLink.d.ts +2 -2
- package/dist/components/buttons/ClipboardButton/ClipboardButton.d.ts +1 -1
- package/dist/components/buttons/IconButton/IconButton.d.ts +2 -2
- package/dist/components/buttons/MenuButton/MenuButton.d.ts +4 -4
- package/dist/components/buttons/MenuButton/menu-button-sample-data.d.ts +1 -1
- package/dist/components/buttons/SSOButton/SSOButton.d.ts +1 -1
- package/dist/components/buttons/SegmentedButton/SegmentedButton.d.ts +1 -1
- package/dist/components/buttons/SplitButton/SplitButton.d.ts +2 -2
- package/dist/components/buttons/UtilityButton/UtilityButton.d.ts +1 -1
- package/dist/components/cards/ActionCard/ActionCard.d.ts +2 -2
- package/dist/components/cards/Card/Card.d.ts +1 -1
- package/dist/components/cards/CardSelect/CardSelect.d.ts +1 -1
- package/dist/components/charts/AreaChart/AreaChart.d.ts +19 -0
- package/dist/components/charts/ScatterPlot/ScatterAccessibleTable.d.ts +32 -0
- package/dist/components/charts/ScatterPlot/ScatterPlot.d.ts +59 -0
- package/dist/components/charts/shared/ChartActiveDot.d.ts +17 -0
- package/dist/components/charts/shared/ChartLegend.d.ts +4 -2
- package/dist/components/empty-states/CompactEmptyState/CompactEmptyState.d.ts +2 -2
- package/dist/components/empty-states/HorizontalEmptyState/HorizontalEmptyState.d.ts +2 -2
- package/dist/components/empty-states/VerticalEmptyState/VerticalEmptyState.d.ts +2 -2
- package/dist/components/icons/Icon/Icon.d.ts +1 -1
- package/dist/components/icons/Icon/generated-icon-data.d.ts +9 -2
- package/dist/components/identity/AgentAvatar/AgentAvatar.d.ts +44 -0
- package/dist/components/identity/Avatar/Avatar.d.ts +9 -1
- package/dist/components/identity/AvatarLabel/AvatarLabel.d.ts +32 -5
- package/dist/components/identity/IdentityBlock/IdentityBlock.d.ts +18 -4
- package/dist/components/inputs/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/inputs/CheckboxFieldset/CheckboxFieldset.d.ts +1 -1
- package/dist/components/inputs/CheckboxGroup/CheckboxGroup.d.ts +1 -1
- package/dist/components/inputs/Combobox/Combobox.d.ts +1 -1
- package/dist/components/inputs/Datepicker/Datepicker.d.ts +1 -1
- package/dist/components/inputs/FileUpload/FileUpload.d.ts +1 -1
- package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/components/inputs/Select/Select.d.ts +2 -2
- package/dist/components/inputs/TagsInput/TagsInput.d.ts +1 -1
- package/dist/components/inputs/TextInput/TextInput.d.ts +1 -1
- package/dist/components/inputs/Textarea/Textarea.d.ts +1 -1
- package/dist/components/inputs/Timepicker/Timepicker.d.ts +1 -1
- package/dist/components/inputs/WorkspacePicker/WorkspacePicker.d.ts +1 -1
- package/dist/components/loading-indicators/Skeleton/Skeleton.d.ts +1 -1
- package/dist/components/loading-indicators/ThinkingState/ThinkingState.d.ts +49 -0
- package/dist/components/media/Illustration/generated-illustration-data.d.ts +1 -1
- package/dist/components/navigation/BASwitcher/BASwitcher.d.ts +104 -0
- package/dist/components/navigation/BookmarksMenu/BookmarksMenu.d.ts +1 -1
- package/dist/components/navigation/ButtonNav/ButtonNav.d.ts +1 -1
- package/dist/components/navigation/DropdownMenu/DropdownMenu.d.ts +1 -1
- package/dist/components/navigation/Navbar/Navbar.d.ts +2 -2
- package/dist/components/navigation/SideNav/SideNav.d.ts +1 -1
- package/dist/components/navigation/SideNavGlobal/SideNavGlobalItem.d.ts +2 -2
- package/dist/components/navigation/SiteMenu/SiteMenu.d.ts +1 -1
- package/dist/components/navigation/SiteMenu/SiteMenuDropdown.d.ts +1 -1
- package/dist/components/navigation/TabMenu/TabMenu.d.ts +2 -2
- package/dist/components/navigation/TabMenu/TabMenuDropdown.d.ts +1 -1
- package/dist/components/navigation/TreeNav/TreeNav.d.ts +1 -1
- package/dist/components/navigation/UserMenu/UserMenu.d.ts +2 -2
- package/dist/components/navigation/navigation-utilities.d.ts +2 -2
- package/dist/components/notifications/Banner/Banner.d.ts +2 -2
- package/dist/components/notifications/InlineMessage/InlineMessage.d.ts +1 -1
- package/dist/components/notifications/SectionMessage/SectionMessage.d.ts +3 -3
- package/dist/components/overlays/FullScreenOverlay/FullScreenOverlay.d.ts +1 -1
- package/dist/components/pagination/Pagination/Pagination.d.ts +1 -1
- package/dist/components/pagination/PaginationChapter/PaginationChapter.d.ts +1 -1
- package/dist/components/pagination/PaginationCompact/PaginationCompact.d.ts +1 -1
- package/dist/components/panels/BASelectorPanel/BASelectorPanel.d.ts +39 -0
- package/dist/components/panels/BookmarksPanel/BookmarksPanel.d.ts +1 -1
- package/dist/components/panels/FeaturePanel/FeaturePanel.d.ts +3 -3
- package/dist/components/panels/Panel/Panel.d.ts +1 -1
- package/dist/components/panels/PanelList/PanelRow.d.ts +1 -1
- package/dist/components/panels/WidgetPanel/WidgetPanel.d.ts +1 -1
- package/dist/components/panels/WorkspaceSelectorPanel/WorkspaceSelectorPanel.d.ts +1 -1
- package/dist/components/progress-indicators/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/components/progress-indicators/ProgressRing/ProgressRing.d.ts +1 -1
- package/dist/components/steppers/VerticalStepper/VerticalStep.d.ts +1 -1
- package/dist/css/component-css/pds-agent-avatar.css +1 -0
- package/dist/css/component-css/pds-area-chart.css +1 -0
- package/dist/css/component-css/pds-avatar-label.css +1 -1
- package/dist/css/component-css/pds-avatar.css +1 -1
- package/dist/css/component-css/pds-ba-selector-panel.css +1 -0
- package/dist/css/component-css/pds-ba-switcher.css +1 -0
- package/dist/css/component-css/pds-badge.css +1 -1
- package/dist/css/component-css/pds-banner.css +1 -1
- package/dist/css/component-css/pds-bookmarks-menu.css +1 -1
- package/dist/css/component-css/pds-bookmarks-panel.css +1 -1
- package/dist/css/component-css/pds-bottom-sheet.css +1 -1
- package/dist/css/component-css/pds-branch-diff.css +1 -1
- package/dist/css/component-css/pds-bulk-action-bar.css +1 -1
- package/dist/css/component-css/pds-button-link.css +1 -1
- package/dist/css/component-css/pds-button.css +5 -5
- package/dist/css/component-css/pds-callout.css +1 -1
- package/dist/css/component-css/pds-card-select.css +1 -2
- package/dist/css/component-css/pds-checkbox.css +1 -1
- package/dist/css/component-css/pds-combobox-multiselect.css +1 -3
- package/dist/css/component-css/pds-compact-empty-state.css +1 -1
- package/dist/css/component-css/pds-datepicker.css +1 -1
- package/dist/css/component-css/pds-drawer.css +1 -1
- package/dist/css/component-css/pds-dropdown-menu.css +1 -2
- package/dist/css/component-css/pds-dropdown.css +1 -3
- package/dist/css/component-css/pds-expansion-panel.css +1 -2
- package/dist/css/component-css/pds-feature-panel.css +1 -15
- package/dist/css/component-css/pds-file-diff.css +1 -1
- package/dist/css/component-css/pds-filter-button.css +1 -1
- package/dist/css/component-css/pds-icon-button.css +2 -4
- package/dist/css/component-css/pds-identity-block.css +1 -1
- package/dist/css/component-css/pds-index.css +19 -138
- package/dist/css/component-css/pds-inline-message.css +1 -1
- package/dist/css/component-css/pds-input-utilities.css +1 -1
- package/dist/css/component-css/pds-menu-button.css +1 -11
- package/dist/css/component-css/pds-modal.css +1 -1
- package/dist/css/component-css/pds-nav-menu.css +1 -1
- package/dist/css/component-css/pds-navbar.css +1 -4
- package/dist/css/component-css/pds-pagination-chapter.css +1 -3
- package/dist/css/component-css/pds-panel-list.css +1 -1
- package/dist/css/component-css/pds-panel.css +1 -2
- package/dist/css/component-css/pds-pantheon-logo.css +1 -1
- package/dist/css/component-css/pds-pie-chart.css +1 -1
- package/dist/css/component-css/pds-popover.css +1 -1
- package/dist/css/component-css/pds-proportion-bar.css +1 -1
- package/dist/css/component-css/pds-radio-group.css +1 -1
- package/dist/css/component-css/pds-row-actions-menu.css +1 -2
- package/dist/css/component-css/pds-scatter-plot.css +1 -0
- package/dist/css/component-css/pds-section-message.css +5 -1
- package/dist/css/component-css/pds-segmented-button.css +1 -2
- package/dist/css/component-css/pds-select-button.css +1 -1
- package/dist/css/component-css/pds-side-nav-global.css +1 -1
- package/dist/css/component-css/pds-side-nav.css +1 -3
- package/dist/css/component-css/pds-site-footer.css +1 -1
- package/dist/css/component-css/pds-site-search.css +1 -1
- package/dist/css/component-css/pds-sortable-list.css +1 -8
- package/dist/css/component-css/pds-spinner.css +1 -1
- package/dist/css/component-css/pds-split-button.css +1 -1
- package/dist/css/component-css/pds-sso-button.css +1 -1
- package/dist/css/component-css/pds-stat-panel.css +1 -1
- package/dist/css/component-css/pds-status-badge.css +1 -1
- package/dist/css/component-css/pds-status-checker.css +1 -1
- package/dist/css/component-css/pds-status-scrim.css +1 -1
- package/dist/css/component-css/pds-stepper.css +2 -4
- package/dist/css/component-css/pds-switch.css +2 -12
- package/dist/css/component-css/pds-tab-menu.css +1 -2
- package/dist/css/component-css/pds-table-of-contents.css +1 -1
- package/dist/css/component-css/pds-table.css +1 -7
- 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 +2 -1
- package/dist/css/component-css/pds-tally.css +1 -1
- package/dist/css/component-css/pds-thinking-state.css +1 -0
- 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-story-only.css +1 -1
- package/dist/css/component-css/pds-user-menu.css +1 -32
- package/dist/css/component-css/pds-utility-button.css +1 -3
- 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-picker.css +1 -1
- package/dist/css/component-css/pds-workspace-selector-panel.css +1 -1
- package/dist/css/component-css/pds-workspace-selector.css +1 -23
- package/dist/css/layout-css/pds-app-layout.css +1 -3
- package/dist/css/layout-css/pds-docs-layout.css +1 -1
- package/dist/css/layout-css/pds-index.css +1 -3
- package/dist/css/layout-css/pds-sidebar-layout.css +1 -13
- package/dist/css/layout-css/pds-stat-panel-group.css +1 -1
- package/dist/css/layout-css/pds-stepper-layout.css +1 -1
- package/dist/css/pds-components.css +19 -138
- package/dist/css/pds-core.css +2 -2
- package/dist/css/pds-layouts.css +1 -3
- package/dist/index.css +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.js +2905 -2084
- package/dist/index.js.map +1 -1
- package/dist/index.source.d.ts +6 -0
- package/dist/layouts/AppLayout/AppLayout.d.ts +1 -1
- package/dist/layouts/DocsLayout/DocsLayout.d.ts +9 -1
- package/dist/layouts/SidebarLayout/SidebarLayout.d.ts +1 -1
- package/dist/layouts/ThreeItemLayout/ThreeItemLayout.d.ts +1 -1
- package/dist/layouts/TwoItemLayout/TwoItemLayout.d.ts +1 -1
- package/dist/libs/components/SelectorPanel/SelectorPanel.d.ts +52 -0
- package/dist/libs/components/SiteOptionDisplay/SiteOptionDisplay.d.ts +1 -1
- package/dist/libs/components/StatusDot/StatusDot.d.ts +1 -1
- package/dist/libs/components/WorkspaceListItem/WorkspaceListItem.d.ts +2 -2
- package/dist/libs/components/utility-components.d.ts +1 -1
- package/dist/libs/components/utils.d.ts +1 -0
- package/dist/libs/types/custom-types.d.ts +2 -1
- package/dist/libs/types/layout-types.d.ts +1 -1
- package/dist/svg/arrowRightArrowLeft.svg +3 -0
- package/dist/utilities/Container/Container.d.ts +1 -1
- package/dist/utilities/FlexContainer/FlexContainer.d.ts +1 -1
- package/dist/utilities/GlobalWrapper/GlobalWrapper.d.ts +1 -1
- package/dist/utilities/auto-grid/AutoGrid.d.ts +1 -1
- package/dist/utilities/grid/Grid.d.ts +1 -1
- package/dist/utilities/hooks/useDropdown/useDropdown.d.ts +7 -1
- package/package.json +17 -15
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
28
|
import fs from 'fs';
|
|
29
|
-
import path from 'path';
|
|
30
|
-
import { createRequire } from 'module';
|
|
31
29
|
import { globSync } from 'glob';
|
|
30
|
+
import { createRequire } from 'module';
|
|
31
|
+
import path from 'path';
|
|
32
32
|
|
|
33
33
|
// JSON imports via createRequire — works in both CJS and ESM contexts
|
|
34
34
|
const require = createRequire(import.meta.url);
|
|
@@ -136,7 +136,7 @@ function applyRenames(content) {
|
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
// Wildcard patterns
|
|
139
|
-
for (const { regex, replacement
|
|
139
|
+
for (const { from, regex, replacement } of PATTERNS) {
|
|
140
140
|
regex.lastIndex = 0;
|
|
141
141
|
const next = result.replace(regex, replacement);
|
|
142
142
|
if (next !== result) {
|
|
@@ -164,7 +164,7 @@ if (allFiles.length === 0) {
|
|
|
164
164
|
|
|
165
165
|
for (const filePath of allFiles) {
|
|
166
166
|
const content = fs.readFileSync(filePath, 'utf8');
|
|
167
|
-
const {
|
|
167
|
+
const { appliedRenames, changed, result } = applyRenames(content);
|
|
168
168
|
|
|
169
169
|
totalFiles++;
|
|
170
170
|
if (!changed) continue;
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
const A = () => <Button variant="secondary">Click</Button>;
|
|
16
16
|
const B = () => <Button variant="subtle">Click</Button>;
|
|
17
17
|
const C = () => (
|
|
18
|
-
<MenuButton variant=
|
|
18
|
+
<MenuButton variant='navbar' id='menu' label='Menu' menuItems={[]} />
|
|
19
19
|
);
|
|
20
20
|
const D = () => (
|
|
21
21
|
<IconButton variant="critical" iconName='x' label='Close' />
|
|
@@ -32,7 +32,12 @@ const I = () => (
|
|
|
32
32
|
<Panel />
|
|
33
33
|
);
|
|
34
34
|
const J = () => (
|
|
35
|
-
<Switch
|
|
35
|
+
<Switch
|
|
36
|
+
showStatusLabel
|
|
37
|
+
statusLabelPlacement='end'
|
|
38
|
+
onLabel='On'
|
|
39
|
+
offLabel='Off'
|
|
40
|
+
/>
|
|
36
41
|
);
|
|
37
42
|
|
|
38
43
|
// Conditional removal — remove only deprecated gradient values, leave valid values alone
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
33
|
const path = require('path');
|
|
34
|
+
|
|
34
35
|
const mappings = require(path.join(__dirname, '../mappings.json'));
|
|
35
36
|
|
|
36
37
|
// Build lookup for root package imports: { 'OldName': 'NewName' }
|
|
@@ -116,7 +117,7 @@ module.exports = function transform(file, api, options) {
|
|
|
116
117
|
}
|
|
117
118
|
|
|
118
119
|
// 1b. Deep path imports
|
|
119
|
-
for (const { from,
|
|
120
|
+
for (const { from, newName, oldName, to } of pathChanges) {
|
|
120
121
|
if (!source.includes(from)) continue;
|
|
121
122
|
|
|
122
123
|
nodePath.node.source = j.stringLiteral(source.replace(from, to));
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
*/
|
|
28
28
|
|
|
29
29
|
const path = require('path');
|
|
30
|
+
|
|
30
31
|
const mappings = require(path.join(__dirname, '../mappings.json'));
|
|
31
32
|
|
|
32
33
|
// Build lookup: { 'ComponentName.propName': { oldValue: newValue } }
|
|
@@ -35,7 +36,7 @@ function buildMigrationLookup() {
|
|
|
35
36
|
const lookup = {};
|
|
36
37
|
|
|
37
38
|
for (const entry of mappings.props.typeChanges) {
|
|
38
|
-
const { component,
|
|
39
|
+
const { component, migration, prop } = entry;
|
|
39
40
|
if (!migration || typeof migration !== 'object' || Array.isArray(migration))
|
|
40
41
|
continue;
|
|
41
42
|
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
*/
|
|
40
40
|
|
|
41
41
|
const path = require('path');
|
|
42
|
+
|
|
42
43
|
const mappings = require(path.join(__dirname, '../mappings.json'));
|
|
43
44
|
|
|
44
45
|
// Entries that are too complex to automate
|
|
@@ -81,7 +82,7 @@ function buildLookups() {
|
|
|
81
82
|
return { valueRewrites, propRemovals };
|
|
82
83
|
}
|
|
83
84
|
|
|
84
|
-
const {
|
|
85
|
+
const { propRemovals: ALL_PROP_REMOVALS, valueRewrites: ALL_VALUE_REWRITES } =
|
|
85
86
|
buildLookups();
|
|
86
87
|
|
|
87
88
|
module.exports = function transform(file, api, options) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { HeadingLevelCommon, StatusType } from '../../libs/types/custom-types';
|
|
2
|
+
import { HeadingLevelCommon, StatusType } from '../../libs/types/custom-types.js';
|
|
3
3
|
import './callout.css';
|
|
4
4
|
type CalloutType = StatusType | 'code' | 'earlyAccess';
|
|
5
5
|
type TypeLabels = Record<CalloutType, string>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { UseDropdownOptions } from '../../utilities/hooks/useDropdown';
|
|
3
|
-
import { MenuButtonProps } from '../buttons/MenuButton/MenuButton';
|
|
2
|
+
import { UseDropdownOptions } from '../../utilities/hooks/useDropdown/index.js';
|
|
3
|
+
import { MenuButtonProps } from '../buttons/MenuButton/MenuButton.js';
|
|
4
4
|
import './dropdown.css';
|
|
5
5
|
export interface DropdownProps extends UseDropdownOptions {
|
|
6
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { FuiPlacement, IconSize } from '../../libs/types/custom-types';
|
|
2
|
+
import { FuiPlacement, IconSize } from '../../libs/types/custom-types.js';
|
|
3
3
|
import './popover.css';
|
|
4
4
|
export interface PopoverProps extends Omit<ComponentPropsWithoutRef<'div'>, 'content'> {
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactElement, ReactNode } from 'react';
|
|
2
|
-
import { ContainerWidth } from '../../libs/types/custom-types';
|
|
2
|
+
import { ContainerWidth } from '../../libs/types/custom-types.js';
|
|
3
3
|
import './site-footer.css';
|
|
4
4
|
type LegalLinkKey = 'privacy' | 'dataSubjectRequest' | 'cookiePolicy' | 'termsOfUse' | 'acceptableUse' | 'accessibilityStatement';
|
|
5
5
|
export interface SiteFooterProps extends ComponentPropsWithoutRef<'footer'> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
import { SiteOption } from '../../libs/components/SiteOptionDisplay/SiteOptionDisplay';
|
|
2
|
+
import { SiteOption } from '../../libs/components/SiteOptionDisplay/SiteOptionDisplay.js';
|
|
3
3
|
import './site-search.css';
|
|
4
4
|
type LabelStrings = {
|
|
5
5
|
clearButton?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
import { StatusType } from '../../libs/types/custom-types';
|
|
3
|
-
import { PDSIcon } from '../icons/Icon/Icon';
|
|
2
|
+
import { StatusType } from '../../libs/types/custom-types.js';
|
|
3
|
+
import { PDSIcon } from '../icons/Icon/Icon.js';
|
|
4
4
|
import './stat-panel.css';
|
|
5
5
|
/**
|
|
6
6
|
* Color options for the icon, from the toolkit's standard status vocabulary
|
|
@@ -8,6 +8,10 @@ import './stat-panel.css';
|
|
|
8
8
|
* the default foreground color.
|
|
9
9
|
*/
|
|
10
10
|
export type StatPanelIconColor = StatusType | 'neutral';
|
|
11
|
+
/**
|
|
12
|
+
* Background options for the panel.
|
|
13
|
+
*/
|
|
14
|
+
export type StatPanelBackground = 'default' | 'secondary' | 'transparent';
|
|
11
15
|
/**
|
|
12
16
|
* Prop types for StatPanel
|
|
13
17
|
*/
|
|
@@ -26,6 +30,11 @@ export interface StatPanelProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
26
30
|
* Accessible name for the action, also shown as its tooltip.
|
|
27
31
|
*/
|
|
28
32
|
actionLabel?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Background of the panel. `transparent` lets the panel sit directly on its
|
|
35
|
+
* container.
|
|
36
|
+
*/
|
|
37
|
+
background?: StatPanelBackground;
|
|
29
38
|
/**
|
|
30
39
|
* Additional class names
|
|
31
40
|
*/
|
|
@@ -67,4 +76,4 @@ export interface StatPanelProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
67
76
|
/**
|
|
68
77
|
* StatPanel UI component
|
|
69
78
|
*/
|
|
70
|
-
export declare const StatPanel: ({ actionCallback, actionIcon, actionLabel, className, description, icon, iconColor, isActive, isLoading, stat, title, ...props }: StatPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
79
|
+
export declare const StatPanel: ({ actionCallback, actionIcon, actionLabel, background, className, description, icon, iconColor, isActive, isLoading, stat, title, ...props }: StatPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { StatusType } from '../../libs/types/custom-types';
|
|
2
|
+
import { StatusType } from '../../libs/types/custom-types.js';
|
|
3
3
|
import './status-indicator.css';
|
|
4
4
|
export interface StatusIndicatorProps extends ComponentPropsWithoutRef<'div'> {
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { PaginationCompactProps } from '../pagination/PaginationCompact/PaginationCompact';
|
|
2
|
+
import { PaginationCompactProps } from '../pagination/PaginationCompact/PaginationCompact.js';
|
|
3
3
|
import './table.css';
|
|
4
4
|
export type SortOrder = 'asc' | 'desc';
|
|
5
5
|
export type DetailPanelContext = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
import { HeadingLevelCommon } from '../../libs/types/custom-types';
|
|
2
|
+
import { HeadingLevelCommon } from '../../libs/types/custom-types.js';
|
|
3
3
|
import './table-of-contents.css';
|
|
4
4
|
export interface TableOfContentsProps extends ComponentPropsWithoutRef<'nav'> {
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
import { SegmentedButtonSize } from '../buttons/SegmentedButton/SegmentedButton';
|
|
2
|
+
import { SegmentedButtonSize } from '../buttons/SegmentedButton/SegmentedButton.js';
|
|
3
3
|
import './theme-switcher.css';
|
|
4
4
|
type Theme = 'light' | 'dark' | 'system';
|
|
5
5
|
type ThemeSwitcherVariant = 'dropdown' | 'toggle';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
import { Placement } from '@floating-ui/react';
|
|
3
|
-
import { FuiOffset, IconSize } from '../../libs/types/custom-types';
|
|
3
|
+
import { FuiOffset, IconSize } from '../../libs/types/custom-types.js';
|
|
4
4
|
import './tooltip.css';
|
|
5
5
|
interface TooltipProps extends ComponentPropsWithoutRef<'div'> {
|
|
6
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { PaddingScale } from '../../libs/types/layout-types';
|
|
2
|
+
import { PaddingScale } from '../../libs/types/layout-types.js';
|
|
3
3
|
import './utility-bar.css';
|
|
4
4
|
type UtilityBarBackground = 'default' | 'default-secondary' | 'transparent';
|
|
5
5
|
export interface UtilityBarProps extends ComponentPropsWithoutRef<'div'> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { PDSIcon } from '../../icons/Icon/Icon';
|
|
2
|
+
import { PDSIcon } from '../../icons/Icon/Icon.js';
|
|
3
3
|
import './badge.css';
|
|
4
4
|
export type BadgeColor = 'ai-active' | 'brand' | 'brand-muted' | 'critical' | 'critical-muted' | 'discovery' | 'discovery-muted' | 'gold' | 'gold-muted' | 'indigo' | 'indigo-muted' | 'info' | 'info-muted' | 'ink' | 'ink-muted' | 'lime' | 'lime-muted' | 'orange' | 'orange-muted' | 'rose' | 'rose-muted' | 'silver' | 'silver-muted' | 'sky' | 'sky-muted' | 'slate' | 'slate-muted' | 'stone' | 'stone-muted' | 'success' | 'success-muted' | 'warning' | 'warning-muted';
|
|
5
5
|
export type BadgeSize = 'xs' | 's' | 'm';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { ComponentPropsWithoutRef, MouseEvent, ReactNode } from 'react';
|
|
2
|
-
import { StatusDotType } from '../../../libs/components/StatusDot/StatusDot';
|
|
3
|
-
import { ButtonDisplayType, ButtonSize, ButtonType, ButtonVariant } from '../../../libs/types/custom-types';
|
|
4
|
-
import { TallyProps } from '../../badges/Tally/Tally';
|
|
5
|
-
import { PDSIcon } from '../../icons/Icon/Icon';
|
|
2
|
+
import { StatusDotType } from '../../../libs/components/StatusDot/StatusDot.js';
|
|
3
|
+
import { ButtonDisplayType, ButtonSize, ButtonType, ButtonVariant } from '../../../libs/types/custom-types.js';
|
|
4
|
+
import { TallyProps } from '../../badges/Tally/Tally.js';
|
|
5
|
+
import { PDSIcon } from '../../icons/Icon/Icon.js';
|
|
6
6
|
import './button.css';
|
|
7
7
|
interface ButtonProps extends ComponentPropsWithoutRef<'button'> {
|
|
8
8
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { ButtonDisplayType, ButtonSize, ButtonVariant } from '../../../libs/types/custom-types';
|
|
3
|
-
import { PDSIcon } from '../../icons/Icon/Icon';
|
|
2
|
+
import { ButtonDisplayType, ButtonSize, ButtonVariant } from '../../../libs/types/custom-types.js';
|
|
3
|
+
import { PDSIcon } from '../../icons/Icon/Icon.js';
|
|
4
4
|
import '../Button/button.css';
|
|
5
5
|
import './button-link.css';
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ComponentPropsWithoutRef, MouseEvent } from 'react';
|
|
2
|
-
import { ButtonType } from '../../../libs/types/custom-types';
|
|
3
|
-
import { PDSIcon } from '../../icons/Icon/Icon';
|
|
2
|
+
import { ButtonType } from '../../../libs/types/custom-types.js';
|
|
3
|
+
import { PDSIcon } from '../../icons/Icon/Icon.js';
|
|
4
4
|
import './icon-button.css';
|
|
5
5
|
export type IconButtonSize = 'xs' | 's' | 'm';
|
|
6
6
|
interface IconButtonProps extends ComponentPropsWithoutRef<'button'> {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ComponentPropsWithRef, ReactNode, RefObject } from 'react';
|
|
2
2
|
import { type Placement } from '@floating-ui/react';
|
|
3
|
-
import { StatusDotType } from '../../../libs/components/StatusDot/StatusDot';
|
|
4
|
-
import { ButtonVariant, HeadingItemType, LinkItemType, MenuItemType, NodeItemType, SeparatorItemType } from '../../../libs/types/custom-types';
|
|
5
|
-
import { TallyProps } from '../../badges/Tally/Tally';
|
|
6
|
-
import { PDSIcon } from '../../icons/Icon/Icon';
|
|
3
|
+
import { StatusDotType } from '../../../libs/components/StatusDot/StatusDot.js';
|
|
4
|
+
import { ButtonVariant, HeadingItemType, LinkItemType, MenuItemType, NodeItemType, SeparatorItemType } from '../../../libs/types/custom-types.js';
|
|
5
|
+
import { TallyProps } from '../../badges/Tally/Tally.js';
|
|
6
|
+
import { PDSIcon } from '../../icons/Icon/Icon.js';
|
|
7
7
|
import '@components/Dropdown/dropdown.css';
|
|
8
8
|
import './menu-button.css';
|
|
9
9
|
type MenuButtonSize = 'xs' | 's' | 'm';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HeadingItemType, LinkItemType, MenuItemType, SeparatorItemType } from '../../../libs/types/custom-types';
|
|
1
|
+
import { HeadingItemType, LinkItemType, MenuItemType, SeparatorItemType } from '../../../libs/types/custom-types.js';
|
|
2
2
|
export declare const dialogMsgBase = "Activated menu item => ";
|
|
3
3
|
export declare const simpleMenuItems: (MenuItemType | LinkItemType)[];
|
|
4
4
|
export declare const iconMenuItems: MenuItemType[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, MouseEvent } from 'react';
|
|
2
|
-
import { ButtonType } from '../../../libs/types/custom-types';
|
|
2
|
+
import { ButtonType } from '../../../libs/types/custom-types.js';
|
|
3
3
|
import './sso-button.css';
|
|
4
4
|
type SSOButtonSize = 'm' | 'l';
|
|
5
5
|
type PlatformType = 'google' | 'microsoft';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import type { Placement } from '@floating-ui/react';
|
|
3
|
-
import { ButtonVariant, LinkItemType, MenuItemType } from '../../../libs/types/custom-types';
|
|
4
|
-
import { PDSIcon } from '../../icons/Icon/Icon';
|
|
3
|
+
import { ButtonVariant, LinkItemType, MenuItemType } from '../../../libs/types/custom-types.js';
|
|
4
|
+
import { PDSIcon } from '../../icons/Icon/Icon.js';
|
|
5
5
|
import './split-button.css';
|
|
6
6
|
type SplitButtonSize = 's' | 'm';
|
|
7
7
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactElement, ReactNode } from 'react';
|
|
2
|
-
import { CardBackground, CardPaddingScale } from '../../../libs/types/layout-types';
|
|
3
|
-
import { CardImageVariant } from '
|
|
2
|
+
import { CardBackground, CardPaddingScale } from '../../../libs/types/layout-types.js';
|
|
3
|
+
import { CardImageVariant } from '../Card/Card.js';
|
|
4
4
|
import './action-card.css';
|
|
5
5
|
export interface ActionCardPrimaryAction {
|
|
6
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { CardBackground, CardPaddingScale, ImageDisplayVariant } from '../../../libs/types/layout-types';
|
|
2
|
+
import { CardBackground, CardPaddingScale, ImageDisplayVariant } from '../../../libs/types/layout-types.js';
|
|
3
3
|
import './card.css';
|
|
4
4
|
export type CardImageVariant = ImageDisplayVariant;
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { CardBackground, CardPaddingScale } from '../../../libs/types/layout-types';
|
|
2
|
+
import { CardBackground, CardPaddingScale } from '../../../libs/types/layout-types.js';
|
|
3
3
|
import './card-select.css';
|
|
4
4
|
export interface CardOption {
|
|
5
5
|
/**
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import type { BaseChartProps } from '../shared/types';
|
|
3
|
+
import '../shared/chart-wrapper.css';
|
|
4
|
+
import './area-chart.css';
|
|
5
|
+
export type AreaChartVariant = 'overlapping' | 'stacked';
|
|
6
|
+
export type AreaChartLineStyle = 'smooth' | 'straight';
|
|
7
|
+
export interface AreaChartProps extends BaseChartProps, Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
8
|
+
/** Line curve style (default: 'smooth') */
|
|
9
|
+
lineStyle?: AreaChartLineStyle;
|
|
10
|
+
/** Area layout variant — stacked (default) sums series on top of each other, overlapping draws each series from the baseline */
|
|
11
|
+
variant?: AreaChartVariant;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* AreaChart UI component
|
|
15
|
+
*
|
|
16
|
+
* Renders a responsive area chart with support for stacked or overlapping
|
|
17
|
+
* series, tooltips, and an accessible data table.
|
|
18
|
+
*/
|
|
19
|
+
export declare const AreaChart: ({ chartHeight, chartWidth, className, colorPalette, data, isLoading, isThumbnail, labelStrings, legendVariant, lineStyle, onTimePeriodChange, selectedTimePeriod, series, showAccessibleTable, showAxisLines, showGrid, showLegend, showTooltip, timePeriodOptions, tooltipContent, variant, xAxisLabel, xAxisTickInterval, yAxisDomain, yAxisFormatter, yAxisLabel, yAxisTickInterval, ...props }: AreaChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface ScatterTableRow {
|
|
2
|
+
/** Point label, when the data provides one */
|
|
3
|
+
label?: string;
|
|
4
|
+
/** Series display name */
|
|
5
|
+
series: string;
|
|
6
|
+
/** Dot size value, when the data is size-driven */
|
|
7
|
+
size?: number;
|
|
8
|
+
/** Formatted X value */
|
|
9
|
+
x: string;
|
|
10
|
+
/** Formatted Y value */
|
|
11
|
+
y: string;
|
|
12
|
+
}
|
|
13
|
+
interface ScatterAccessibleTableProps {
|
|
14
|
+
/** Accessible description for the table */
|
|
15
|
+
description: string;
|
|
16
|
+
/** Header for the point label column, shown when any row has a label */
|
|
17
|
+
labelHeader: string;
|
|
18
|
+
/** Rows, one per data point */
|
|
19
|
+
rows: ScatterTableRow[];
|
|
20
|
+
/** Header for the size column, shown when any row has a size */
|
|
21
|
+
sizeHeader: string;
|
|
22
|
+
/** Header for the X column */
|
|
23
|
+
xHeader: string;
|
|
24
|
+
/** Header for the Y column */
|
|
25
|
+
yHeader: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Renders a visually-hidden HTML table containing scatter plot points
|
|
29
|
+
* for screen reader accessibility.
|
|
30
|
+
*/
|
|
31
|
+
export declare const ScatterAccessibleTable: ({ description, labelHeader, rows, sizeHeader, xHeader, yHeader, }: ScatterAccessibleTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
import type { BaseChartProps, ChartLabelStrings, SeriesConfig, YAxisDomain } from '../shared/types';
|
|
3
|
+
import '../shared/chart-wrapper.css';
|
|
4
|
+
import './scatter-plot.css';
|
|
5
|
+
export interface ScatterDataPoint {
|
|
6
|
+
/** Tooltip heading for this point */
|
|
7
|
+
label?: string;
|
|
8
|
+
/** Key of the series this point belongs to (matches `series[].dataKey`). Defaults to the first series. */
|
|
9
|
+
series?: string;
|
|
10
|
+
/** Value that drives the dot size. When any point sets it, dots scale between `sizeRange`. */
|
|
11
|
+
size?: number;
|
|
12
|
+
/** X value */
|
|
13
|
+
x: number;
|
|
14
|
+
/** Y value */
|
|
15
|
+
y: number;
|
|
16
|
+
}
|
|
17
|
+
export interface ScatterTooltipPayload {
|
|
18
|
+
/** Color of the hovered point's series */
|
|
19
|
+
color: string;
|
|
20
|
+
/** The hovered data point */
|
|
21
|
+
point: ScatterDataPoint;
|
|
22
|
+
/** Config of the hovered point's series */
|
|
23
|
+
series: SeriesConfig;
|
|
24
|
+
}
|
|
25
|
+
export interface ScatterPlotProps extends Omit<BaseChartProps, 'data' | 'isThumbnail' | 'labelStrings' | 'legendVariant' | 'onTimePeriodChange' | 'selectedTimePeriod' | 'showAccessibleTable' | 'showAxisLines' | 'showGrid' | 'showLegend' | 'showTooltip' | 'timePeriodOptions' | 'tooltipContent' | 'xAxisTickInterval'>, Omit<ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
26
|
+
/** Scatter plot points. Each point's `series` picks which series it belongs to. */
|
|
27
|
+
data: ScatterDataPoint[];
|
|
28
|
+
/** Dot diameter in pixels when no point sets `size` (default: 8) */
|
|
29
|
+
dotSize?: number;
|
|
30
|
+
/** Translatable UI strings. Provide overrides for i18n. */
|
|
31
|
+
labelStrings?: Omit<ChartLabelStrings, 'legendTableHeader'>;
|
|
32
|
+
/** Show accessible data table (visually hidden). Defaults to true. */
|
|
33
|
+
showAccessibleTable?: boolean;
|
|
34
|
+
/** Show axis baseline lines. Defaults to true. */
|
|
35
|
+
showAxisLines?: boolean;
|
|
36
|
+
/** Show grid lines. Defaults to true. */
|
|
37
|
+
showGrid?: boolean;
|
|
38
|
+
/** Show legend. Defaults to true. */
|
|
39
|
+
showLegend?: boolean;
|
|
40
|
+
/** Show tooltip on hover. Defaults to true. */
|
|
41
|
+
showTooltip?: boolean;
|
|
42
|
+
/** Name of the `size` value in the tooltip and accessible table (default: 'Size') */
|
|
43
|
+
sizeLabel?: string;
|
|
44
|
+
/** Min and max dot diameters in pixels when dots are sized by `size` (default: [6, 20]) */
|
|
45
|
+
sizeRange?: [number, number];
|
|
46
|
+
/** Custom tooltip renderer. Receives the hovered point and replaces the built-in tooltip. */
|
|
47
|
+
tooltipContent?: (payload: ScatterTooltipPayload) => ReactNode;
|
|
48
|
+
/** Override the X-axis scale bounds. Accepts a tuple of [min, max]. */
|
|
49
|
+
xAxisDomain?: YAxisDomain;
|
|
50
|
+
/** Custom X-axis tick formatter */
|
|
51
|
+
xAxisFormatter?: (value: number) => string;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* ScatterPlot UI component
|
|
55
|
+
*
|
|
56
|
+
* Renders a responsive scatter plot for comparing two numeric variables, with
|
|
57
|
+
* optional series, data-driven dot sizes, tooltips, and an accessible data table.
|
|
58
|
+
*/
|
|
59
|
+
export declare const ScatterPlot: ({ chartHeight, chartWidth, className, colorPalette, data, dotSize, isLoading, labelStrings, series, showAccessibleTable, showAxisLines, showGrid, showLegend, showTooltip, sizeLabel, sizeRange, tooltipContent, xAxisDomain, xAxisFormatter, xAxisLabel, yAxisDomain, yAxisFormatter, yAxisLabel, yAxisTickInterval, ...props }: ScatterPlotProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
interface ChartActiveDotProps {
|
|
2
|
+
/** Series color */
|
|
3
|
+
color: string;
|
|
4
|
+
/** Center x position, supplied by Recharts */
|
|
5
|
+
cx?: number;
|
|
6
|
+
/** Center y position, supplied by Recharts */
|
|
7
|
+
cy?: number;
|
|
8
|
+
/** Lighten the outline toward the surface color */
|
|
9
|
+
isTinted?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Hover dot for line and area charts. The white ring separates the dot from
|
|
13
|
+
* a same-colored line or band, and the series-colored outline keeps the dot's
|
|
14
|
+
* edge visible against the white chart background.
|
|
15
|
+
*/
|
|
16
|
+
export declare const ChartActiveDot: ({ color, cx, cy, isTinted, }: ChartActiveDotProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChartDataPoint, SeriesConfig } from './types';
|
|
1
|
+
import type { ChartDataPoint, ColorPalette, SeriesConfig } from './types';
|
|
2
2
|
import './chart-legend.css';
|
|
3
3
|
export type LegendVariant = 'inline' | 'table';
|
|
4
4
|
interface ChartLegendProps {
|
|
@@ -8,6 +8,8 @@ interface ChartLegendProps {
|
|
|
8
8
|
* visible legend table purely a sighted-user convenience.
|
|
9
9
|
*/
|
|
10
10
|
ariaHidden?: boolean;
|
|
11
|
+
/** Palette the series colors come from — needed to map `paletteIndex` onto palettes with fill-only steps removed */
|
|
12
|
+
colorPalette?: ColorPalette;
|
|
11
13
|
/** Chart data — used to calculate totals for table variant */
|
|
12
14
|
data?: ChartDataPoint[];
|
|
13
15
|
/** Series definitions */
|
|
@@ -27,5 +29,5 @@ interface ChartLegendProps {
|
|
|
27
29
|
* Renders a chart legend in either inline (horizontal list) or
|
|
28
30
|
* table (rows with totals) format.
|
|
29
31
|
*/
|
|
30
|
-
export declare const ChartLegend: ({ ariaHidden, data, series, seriesColors, tableHeader, valueFormatter, variant, }: ChartLegendProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export declare const ChartLegend: ({ ariaHidden, colorPalette, data, series, seriesColors, tableHeader, valueFormatter, variant, }: ChartLegendProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
33
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { HeadingLevelCommon } from '../../../libs/types/custom-types';
|
|
3
|
-
import { PDSIcon } from '../../icons/Icon/Icon';
|
|
2
|
+
import { HeadingLevelCommon } from '../../../libs/types/custom-types.js';
|
|
3
|
+
import { PDSIcon } from '../../icons/Icon/Icon.js';
|
|
4
4
|
import './compact-empty-state.css';
|
|
5
5
|
/**
|
|
6
6
|
* Prop types for CompactEmptyState
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { HeadingLevel } from '../../../libs/types/custom-types';
|
|
3
|
-
import { VideoEmbedProps } from '../../media/VideoEmbed/VideoEmbed';
|
|
2
|
+
import { HeadingLevel } from '../../../libs/types/custom-types.js';
|
|
3
|
+
import { VideoEmbedProps } from '../../media/VideoEmbed/VideoEmbed.js';
|
|
4
4
|
import './horizontal-empty-state.css';
|
|
5
5
|
/**
|
|
6
6
|
* Prop types for HorizontalEmptyState
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { HeadingLevel } from '../../../libs/types/custom-types';
|
|
3
|
-
import { PDSIllustration } from '../../media/Illustration/Illustration';
|
|
2
|
+
import { HeadingLevel } from '../../../libs/types/custom-types.js';
|
|
3
|
+
import { PDSIllustration } from '../../media/Illustration/Illustration.js';
|
|
4
4
|
import './vertical-empty-state.css';
|
|
5
5
|
/**
|
|
6
6
|
* Prop types for VerticalEmptyState
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
import { Display, IconSize } from '../../../libs/types/custom-types';
|
|
2
|
+
import { Display, IconSize } from '../../../libs/types/custom-types.js';
|
|
3
3
|
import { iconList, type PDSIconName } from './generated-icon-data';
|
|
4
4
|
import './icon.css';
|
|
5
5
|
/**
|