@pantheon-systems/pds-toolkit-react 2.0.0-alpha.9 → 2.0.0-alpha.91
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/bin/pds-codemod.cjs +58 -0
- package/codemods/v1-to-v2/css-token-renames.js +186 -0
- package/codemods/v1-to-v2/mappings.json +1824 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/component-renames/basic.input.tsx +33 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/component-renames/basic.output.tsx +33 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/component-renames/only.input.tsx +8 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/component-renames/only.output.tsx +8 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/css-class-removals/basic.input.tsx +55 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/css-class-removals/basic.output.tsx +55 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/css-class-renames/basic.input.tsx +60 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/css-class-renames/basic.output.tsx +60 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/icon-name-updates/basic.input.tsx +35 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/icon-name-updates/basic.output.tsx +35 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/icon-name-updates/only.input.tsx +8 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/icon-name-updates/only.output.tsx +8 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/prop-renames/basic.input.tsx +28 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/prop-renames/basic.output.tsx +28 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/prop-renames/only.input.tsx +8 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/prop-renames/only.output.tsx +8 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/prop-value-standardization/basic.input.tsx +37 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/prop-value-standardization/basic.output.tsx +37 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/prop-value-standardization/only.input.tsx +21 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/prop-value-standardization/only.output.tsx +21 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/removed-prop-values/basic.input.tsx +60 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/removed-prop-values/basic.output.tsx +51 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/removed-prop-values/only.input.tsx +8 -0
- package/codemods/v1-to-v2/transforms/__testfixtures__/removed-prop-values/only.output.tsx +8 -0
- package/codemods/v1-to-v2/transforms/__tests__/component-renames.test.js +15 -0
- package/codemods/v1-to-v2/transforms/__tests__/css-class-removals.test.js +6 -0
- package/codemods/v1-to-v2/transforms/__tests__/css-class-renames.test.js +6 -0
- package/codemods/v1-to-v2/transforms/__tests__/icon-name-updates.test.js +15 -0
- package/codemods/v1-to-v2/transforms/__tests__/prop-renames.test.js +15 -0
- package/codemods/v1-to-v2/transforms/__tests__/prop-value-standardization.test.js +16 -0
- package/codemods/v1-to-v2/transforms/__tests__/removed-prop-values.test.js +15 -0
- package/codemods/v1-to-v2/transforms/component-renames.js +166 -0
- package/codemods/v1-to-v2/transforms/css-class-removals.js +262 -0
- package/codemods/v1-to-v2/transforms/css-class-renames.js +178 -0
- package/codemods/v1-to-v2/transforms/icon-name-updates.js +124 -0
- package/codemods/v1-to-v2/transforms/prop-renames.js +109 -0
- package/codemods/v1-to-v2/transforms/prop-value-standardization.js +143 -0
- package/codemods/v1-to-v2/transforms/removed-prop-values.js +206 -0
- package/dist/components/Callout/Callout.d.ts +6 -2
- package/dist/components/CodeBlock/CodeBlock.d.ts +10 -5
- package/dist/components/CodeBlock/code-examples.d.ts +2 -1
- package/dist/components/CodeBlock/prism-setup.d.ts +2 -0
- package/dist/components/CodeBlock/themes/index.d.ts +1 -2
- package/dist/components/CodeBlock/themes/{pdsDark.d.ts → pds.d.ts} +1 -1
- package/dist/components/ComparisonList/ComparisonList.d.ts +6 -1
- package/dist/components/Dropdown/Dropdown.d.ts +257 -0
- package/dist/components/Dropdown/DropdownSelectedIcon.d.ts +7 -0
- package/dist/components/FileDiff/FileDiff.d.ts +2 -2
- package/dist/components/PantheonLogo/PantheonLogo.d.ts +5 -4
- package/dist/components/Popover/Popover.d.ts +6 -2
- package/dist/components/ResultCount/ResultCount.d.ts +53 -0
- package/dist/components/RowActionsMenu/RowActionsMenu.d.ts +46 -0
- package/dist/components/SiteFooter/SiteFooter.d.ts +45 -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/StatPanel/StatPanel.d.ts +70 -0
- package/dist/components/{RefreshChecker/RefreshChecker.d.ts → StatusChecker/StatusChecker.d.ts} +6 -19
- package/dist/components/StatusIndicator/StatusIndicator.d.ts +7 -4
- package/dist/components/StatusScrim/StatusScrim.d.ts +22 -0
- package/dist/components/Table/Table.d.ts +386 -17
- package/dist/components/TableOfContents/TableOfContents.d.ts +1 -5
- package/dist/components/Tag/Tag.d.ts +21 -3
- package/dist/components/ThemeSwitcher/ThemeSwitcher.d.ts +29 -8
- package/dist/components/Tooltip/Tooltip.d.ts +15 -4
- package/dist/components/UtilityBar/UtilityBar.d.ts +26 -0
- package/dist/components/badges/Badge/Badge.d.ts +10 -3
- package/dist/components/badges/StatusBadge/StatusBadge.d.ts +2 -1
- package/dist/components/buttons/Button/Button.d.ts +15 -0
- package/dist/components/buttons/ButtonLink/ButtonLink.d.ts +1 -3
- package/dist/components/buttons/ClipboardButton/ClipboardButton.d.ts +5 -1
- package/dist/components/buttons/CloseButton/CloseButton.d.ts +2 -2
- package/dist/components/buttons/FilterButton/FilterButton.d.ts +92 -0
- package/dist/components/buttons/IconButton/IconButton.d.ts +13 -1
- package/dist/components/buttons/MenuButton/MenuButton.d.ts +70 -20
- package/dist/components/buttons/SSOButton/SSOButton.d.ts +9 -1
- package/dist/components/buttons/SegmentedButton/SegmentedButton.d.ts +44 -8
- package/dist/components/buttons/SelectButton/SelectButton.d.ts +81 -0
- package/dist/components/buttons/SplitButton/SplitButton.d.ts +26 -1
- package/dist/components/cards/ActionCard/ActionCard.d.ts +64 -0
- package/dist/components/cards/Card/Card.d.ts +10 -4
- package/dist/components/cards/CardSelect/CardSelect.d.ts +100 -0
- 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 +31 -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 +24 -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 +13 -8
- package/dist/components/empty-states/VerticalEmptyState/VerticalEmptyState.d.ts +3 -2
- package/dist/components/icons/Icon/Icon.d.ts +2 -2
- package/dist/components/icons/Icon/custom-icons.d.ts +1 -1
- package/dist/components/icons/Icon/generated-icon-data.d.ts +253 -15
- package/dist/components/icons/PaymentIcon/PaymentIcon.d.ts +7 -3
- package/dist/components/icons/PlatformIcon/PlatformIcon.d.ts +6 -6
- package/dist/components/{Avatar → identity/Avatar}/Avatar.d.ts +8 -3
- package/dist/components/identity/AvatarLabel/AvatarLabel.d.ts +42 -0
- package/dist/components/identity/IdentityBlock/IdentityBlock.d.ts +37 -0
- package/dist/components/inputs/Checkbox/Checkbox.d.ts +11 -1
- package/dist/components/inputs/CheckboxFieldset/CheckboxFieldset.d.ts +20 -2
- package/dist/components/inputs/CheckboxGroup/CheckboxGroup.d.ts +20 -2
- package/dist/components/inputs/Combobox/Combobox.d.ts +33 -7
- package/dist/components/inputs/ComboboxMultiselect/ComboboxMultiselect.d.ts +26 -5
- package/dist/components/inputs/Datepicker/Datepicker.d.ts +280 -16
- package/dist/components/inputs/FileUpload/FileUpload.d.ts +16 -1
- package/dist/components/inputs/RadioGroup/RadioGroup.d.ts +20 -2
- package/dist/components/inputs/Select/Select.d.ts +35 -3
- package/dist/components/inputs/Switch/Switch.d.ts +15 -5
- package/dist/components/inputs/TagsInput/TagsInput.d.ts +16 -1
- package/dist/components/inputs/TextInput/TextInput.d.ts +14 -4
- package/dist/components/inputs/Textarea/Textarea.d.ts +12 -2
- package/dist/components/inputs/Timepicker/Timepicker.d.ts +104 -0
- package/dist/components/inputs/input-utilities.d.ts +16 -1
- package/dist/components/{CTALink → links/CTALink}/CTALink.d.ts +2 -2
- package/dist/components/{LinkNewWindow → links/LinkNewWindow}/LinkNewWindow.d.ts +1 -1
- package/dist/components/loading-indicators/Spinner/Spinner.d.ts +5 -4
- package/dist/components/navigation/BookmarksMenu/BookmarksMenu.d.ts +151 -0
- package/dist/components/navigation/ButtonNav/ButtonNav.d.ts +11 -5
- package/dist/components/navigation/DropdownMenu/DropdownMenu.d.ts +1 -0
- package/dist/components/navigation/Navbar/Navbar.d.ts +16 -15
- package/dist/components/navigation/SideNav/SideNav.d.ts +7 -1
- package/dist/components/navigation/SideNavGlobal/SideNavGlobal.d.ts +5 -15
- package/dist/components/navigation/SideNavGlobal/SideNavGlobalItem.d.ts +15 -1
- package/dist/components/navigation/SiteMenu/SiteMenu.d.ts +26 -0
- package/dist/components/navigation/SiteMenu/SiteMenuDropdown.d.ts +23 -0
- package/dist/components/navigation/TreeNav/TreeNav.d.ts +48 -0
- package/dist/components/navigation/UserMenu/UserMenu.d.ts +31 -5
- package/dist/components/navigation/WorkspaceSelector/WorkspaceSelector.d.ts +13 -16
- package/dist/components/navigation/navigation-utilities.d.ts +15 -2
- package/dist/components/notifications/SectionMessage/SectionMessage.d.ts +12 -4
- package/dist/components/notifications/Toaster/Toast.d.ts +12 -1
- package/dist/components/notifications/Toaster/Toaster.d.ts +16 -7
- package/dist/components/notifications/Toaster/useToast.d.ts +2 -0
- package/dist/components/overlays/BottomSheet/BottomSheet.d.ts +66 -0
- package/dist/components/overlays/BulkActionBar/BulkActionBar.d.ts +48 -0
- package/dist/components/{Drawer → overlays/Drawer}/Drawer.d.ts +4 -4
- package/dist/components/overlays/FullScreenOverlay/FullScreenOverlay.d.ts +45 -0
- package/dist/components/{Modal → overlays/Modal}/Modal.d.ts +3 -1
- package/dist/components/{Pagination → pagination/Pagination}/Pagination.d.ts +7 -2
- package/dist/components/pagination/PaginationChapter/PaginationChapter.d.ts +55 -0
- package/dist/components/pagination/PaginationCompact/PaginationCompact.d.ts +67 -0
- package/dist/components/panels/BookmarksPanel/BookmarksPanel.d.ts +67 -0
- package/dist/components/panels/ExpansionPanel/ExpansionPanel.d.ts +1 -2
- package/dist/components/panels/ExpansionPanelGroup/ExpansionPanelGroup.d.ts +1 -2
- package/dist/components/panels/FeaturePanel/FeaturePanel.d.ts +72 -0
- package/dist/components/panels/Panel/Panel.d.ts +3 -3
- package/dist/components/panels/PanelList/PanelList.d.ts +2 -2
- package/dist/components/panels/PanelList/PanelRow.d.ts +9 -1
- package/dist/components/panels/PanelStack/PanelStack.d.ts +19 -0
- package/dist/components/panels/WidgetPanel/WidgetPanel.d.ts +39 -0
- package/dist/components/panels/WorkspaceSelectorPanel/WorkspaceSelectorPanel.d.ts +57 -0
- package/dist/components/progress-indicators/ProgressBar/ProgressBar.d.ts +4 -5
- package/dist/components/progress-indicators/ProgressRing/ProgressRing.d.ts +12 -4
- package/dist/components/{FlowSteps/FlowSteps.d.ts → steppers/StepList/StepList.d.ts} +7 -7
- package/dist/css/component-css/pds-Table.stories.css +1 -0
- package/dist/css/component-css/pds-action-card.css +1 -0
- package/dist/css/component-css/pds-avatar-label.css +1 -0
- package/dist/css/component-css/pds-avatar.css +1 -1
- 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-bar-chart.css +1 -0
- package/dist/css/component-css/pds-bookmarks-menu.css +1 -0
- package/dist/css/component-css/pds-bookmarks-panel.css +1 -0
- package/dist/css/component-css/pds-bottom-sheet.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-bulk-action-bar.css +1 -0
- 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 +46 -14
- package/dist/css/component-css/pds-callout.css +1 -1
- package/dist/css/component-css/pds-card-select.css +2 -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-group.css +1 -1
- 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-code-block-legacy.css +1 -1
- package/dist/css/component-css/pds-code-block.css +1 -1
- package/dist/css/component-css/pds-combobox-multiselect.css +3 -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 -3
- package/dist/css/component-css/pds-drawer.css +1 -1
- package/dist/css/component-css/pds-dropdown-menu.css +2 -2
- package/dist/css/component-css/pds-dropdown.css +3 -0
- package/dist/css/component-css/pds-expansion-panel-group.css +1 -1
- package/dist/css/component-css/pds-expansion-panel.css +2 -1
- package/dist/css/component-css/pds-feature-panel.css +15 -0
- package/dist/css/component-css/pds-file-diff.css +1 -1
- package/dist/css/component-css/pds-file-upload.css +1 -7
- package/dist/css/component-css/pds-filter-button.css +1 -0
- 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 +22 -14
- package/dist/css/component-css/pds-icon-story-only.css +1 -1
- package/dist/css/component-css/pds-icon.css +1 -1
- package/dist/css/component-css/pds-identity-block.css +1 -0
- package/dist/css/component-css/pds-index.css +189 -63
- 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 +11 -1
- package/dist/css/component-css/pds-modal.css +1 -1
- package/dist/css/component-css/pds-nav-menu.css +1 -5
- package/dist/css/component-css/pds-navbar.css +4 -1
- package/dist/css/component-css/pds-pagination-chapter.css +3 -0
- package/dist/css/component-css/pds-pagination-compact.css +1 -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-stack.css +1 -0
- package/dist/css/component-css/pds-panel.css +2 -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-picture.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-result-count.css +1 -0
- package/dist/css/component-css/pds-row-actions-menu.css +2 -0
- package/dist/css/component-css/pds-section-message.css +1 -1
- package/dist/css/component-css/pds-segmented-button.css +2 -1
- package/dist/css/component-css/pds-select-button.css +1 -0
- package/dist/css/component-css/pds-select.css +1 -1
- package/dist/css/component-css/pds-side-nav-global.css +3 -7
- package/dist/css/component-css/pds-side-nav.css +3 -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-skeleton.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-split-button.css +1 -1
- package/dist/css/component-css/pds-sso-button.css +2 -2
- package/dist/css/component-css/pds-stat-panel.css +1 -0
- 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-status-scrim.css +1 -0
- package/dist/css/component-css/pds-step-list.css +1 -0
- package/dist/css/component-css/pds-stepper.css +5 -1
- package/dist/css/component-css/pds-switch.css +6 -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 +7 -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 -1
- package/dist/css/component-css/pds-tally.css +1 -1
- 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-timepicker.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-tree-nav.css +1 -0
- package/dist/css/component-css/pds-user-menu-story-only.css +1 -1
- package/dist/css/component-css/pds-user-menu.css +32 -1
- package/dist/css/component-css/pds-utility-bar.css +1 -0
- package/dist/css/component-css/pds-utility-button.css +3 -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-video-embed.css +1 -1
- package/dist/css/component-css/pds-widget-panel.css +1 -0
- package/dist/css/component-css/pds-workspace-selector-panel.css +1 -0
- package/dist/css/component-css/pds-workspace-selector.css +23 -1
- package/dist/css/design-tokens/variables.dark.css +371 -340
- package/dist/css/design-tokens/variables.global.css +10 -19
- package/dist/css/design-tokens/variables.light.css +367 -316
- package/dist/css/design-tokens/variables.typography.css +1 -2
- package/dist/css/layout-css/pds-app-layout.css +3 -2
- package/dist/css/layout-css/pds-docs-layout.css +1 -1
- package/dist/css/layout-css/pds-index.css +3 -9
- package/dist/css/layout-css/pds-sidebar-layout.css +13 -0
- package/dist/css/layout-css/pds-stat-panel-group.css +1 -0
- package/dist/css/layout-css/pds-stepper-layout.css +1 -1
- package/dist/css/layout-css/pds-three-item-layout.css +1 -1
- package/dist/css/layout-css/pds-two-item-layout.css +1 -1
- package/dist/css/pds-components.css +189 -63
- package/dist/css/pds-core.css +3 -2
- package/dist/css/pds-layouts.css +3 -9
- package/dist/index.css +5 -1
- package/dist/index.d.ts +101 -9
- package/dist/index.js +13601 -6078
- package/dist/index.js.map +1 -1
- package/dist/index.source.d.ts +59 -42
- package/dist/layouts/AppLayout/AppLayout.d.ts +85 -10
- package/dist/layouts/DocsLayout/DocsLayout.d.ts +9 -7
- package/dist/layouts/SidebarLayout/SidebarLayout.d.ts +41 -7
- package/dist/layouts/StatPanelGroup/StatPanelGroup.d.ts +32 -0
- package/dist/layouts/StepperLayout/StepperLayout.d.ts +13 -1
- package/dist/layouts/ThreeItemLayout/ThreeItemLayout.d.ts +3 -3
- package/dist/layouts/TwoItemLayout/TwoItemLayout.d.ts +3 -3
- package/dist/libs/components/NavAccordion/NavAccordion.d.ts +27 -0
- package/dist/libs/components/NestedOverlayContext.d.ts +14 -0
- package/dist/libs/components/StatusDot/StatusDot.d.ts +15 -0
- package/dist/libs/components/WorkspaceListItem/WorkspaceListItem.d.ts +40 -0
- package/dist/libs/components/useOverlayZIndex.d.ts +16 -0
- package/dist/libs/components/utils.d.ts +1 -1
- package/dist/libs/types/custom-types.d.ts +11 -5
- package/dist/libs/types/layout-types.d.ts +6 -1
- package/dist/libs/types/navigation-types.d.ts +17 -1
- package/dist/svg/anglesDown.svg +3 -0
- package/dist/svg/anglesUp.svg +3 -0
- package/dist/svg/arrowDownWideShort.svg +3 -0
- package/dist/svg/arrowUpShortWide.svg +3 -0
- package/dist/svg/barsStaggered.svg +3 -0
- package/dist/svg/bookmark.svg +3 -0
- package/dist/svg/bookmarkSolid.svg +3 -0
- package/dist/svg/box.svg +3 -0
- package/dist/svg/circleExclamationSolid.svg +3 -0
- package/dist/svg/circleHalfStroke.svg +3 -0
- package/dist/svg/circleInfoSolid.svg +3 -0
- package/dist/svg/circleQuestionSolid.svg +3 -0
- package/dist/svg/claude.svg +3 -0
- package/dist/svg/clock.svg +3 -0
- package/dist/svg/collapseToCenter.svg +3 -0
- package/dist/svg/compress.svg +3 -0
- package/dist/svg/diagramVenn.svg +3 -0
- package/dist/svg/files.svg +3 -0
- package/dist/svg/floppyDisk.svg +3 -0
- package/dist/svg/folders.svg +3 -0
- package/dist/svg/grid.svg +2 -2
- package/dist/svg/grid2.svg +3 -0
- package/dist/svg/landmark.svg +3 -0
- package/dist/svg/list.svg +3 -0
- package/dist/svg/move.svg +3 -0
- package/dist/svg/octagonExclamation.svg +3 -0
- package/dist/svg/openai.svg +3 -0
- package/dist/svg/pause.svg +3 -0
- package/dist/svg/penPaintbrush.svg +3 -0
- package/dist/svg/rectanglesMixed.svg +3 -0
- package/dist/svg/sidebar.svg +3 -0
- package/dist/svg/slider.svg +3 -0
- package/dist/svg/squareDashed.svg +3 -0
- package/dist/svg/tableColumns.svg +3 -0
- package/dist/svg/userSolid.svg +3 -0
- package/dist/{layouts → utilities}/FlexContainer/FlexContainer.d.ts +7 -7
- package/dist/utilities/GlobalWrapper/GlobalWrapper.d.ts +35 -0
- package/dist/utilities/ai-visuals/AiVisualsDemo.d.ts +8 -0
- package/dist/utilities/auto-grid/AutoGrid.d.ts +48 -0
- package/dist/utilities/context-providers/ThemeContext/ThemeContext.d.ts +113 -0
- package/dist/utilities/grid/Grid.d.ts +56 -0
- package/dist/utilities/grid/GridItem.d.ts +57 -0
- package/dist/utilities/hooks/useDropdown/index.d.ts +1 -0
- package/dist/utilities/hooks/useDropdown/useDropdown.d.ts +154 -0
- package/dist/utilities/hooks/useIsMobile/useIsMobile.d.ts +16 -0
- package/dist/utilities/hooks/useKeyPress/useKeyPress.d.ts +6 -0
- package/dist/utilities/hooks/useKeyboardShortcut/useKeyboardShortcut.d.ts +29 -0
- package/package.json +82 -46
- package/dist/components/CTASlice/CTASlice.d.ts +0 -43
- package/dist/components/CodeBlock/themes/pdsLight.d.ts +0 -2
- 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/cards/CardHeading/CardHeading.d.ts +0 -31
- package/dist/components/cards/CardSelectGroup/CardSelectGroup.d.ts +0 -60
- 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 -95
- 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 -34
- 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/NavMenu.d.ts +0 -33
- package/dist/components/navigation/NavMenu/NavMenuDropdown.d.ts +0 -24
- package/dist/components/navigation/SideNavCompact/SideNavCompact.d.ts +0 -53
- package/dist/components/notifications/NotificationHubIcon/NotificationHubIcon.d.ts +0 -38
- package/dist/components/notifications/NotificationsPopover/NotificationsPopover.d.ts +0 -118
- 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-links-card.css +0 -1
- package/dist/css/component-css/pds-new-site-card.css +0 -1
- package/dist/css/component-css/pds-notification-hub-icon.css +0 -1
- package/dist/css/component-css/pds-notifications-popover.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-side-nav-compact.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/css/layout-css/pds-dashboard-global.css +0 -8
- package/dist/css/layout-css/pds-dashboard-inner.css +0 -1
- package/dist/css/layout-css/pds-flex-container.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/svg/{linkSimple.svg → link.svg} +0 -0
- /package/dist/svg/{linkSimpleSlash.svg → unlink.svg} +0 -0
- /package/dist/{layouts → utilities}/Container/Container.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pantheon-systems/pds-toolkit-react",
|
|
3
3
|
"technology": "React",
|
|
4
|
-
"version": "2.0.0-alpha.
|
|
4
|
+
"version": "2.0.0-alpha.91",
|
|
5
5
|
"description": "PDS toolkit built using the React framework",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public",
|
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
"url": "https://github.com/pantheon-systems/pds-toolkit-react/issues"
|
|
21
21
|
},
|
|
22
22
|
"homepage": "https://github.com/pantheon-systems/pds-toolkit-react#readme",
|
|
23
|
+
"bin": {
|
|
24
|
+
"pds-codemod": "./bin/pds-codemod.cjs"
|
|
25
|
+
},
|
|
23
26
|
"module": "dist/index.js",
|
|
24
27
|
"types": "dist/index.d.ts",
|
|
25
28
|
"exports": {
|
|
@@ -32,6 +35,10 @@
|
|
|
32
35
|
"./*": "./dist/*"
|
|
33
36
|
},
|
|
34
37
|
"files": [
|
|
38
|
+
"bin",
|
|
39
|
+
"codemods/v1-to-v2/transforms",
|
|
40
|
+
"codemods/v1-to-v2/mappings.json",
|
|
41
|
+
"codemods/v1-to-v2/css-token-renames.js",
|
|
35
42
|
"dist",
|
|
36
43
|
"tailwind"
|
|
37
44
|
],
|
|
@@ -44,17 +51,17 @@
|
|
|
44
51
|
"build:lib": "vite build && npm run build:types",
|
|
45
52
|
"build:types": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
|
|
46
53
|
"postbuild:lib": "npm run build:css && npm run build:css:components && npm run build:css:layouts && npm run build:css:packageExtraCss && npm run generate:svg-icons",
|
|
47
|
-
"build:css": "postcss src/core.css -o dist/css/pds-core.css",
|
|
48
|
-
"build:css:components": "postcss src/components/index.css -o dist/css/pds-components.css",
|
|
49
|
-
"build:css:layouts": "postcss src/layouts/index.css -o dist/css/pds-layouts.css",
|
|
50
|
-
"build:css:packageExtraCss": "node scripts/package-extra-css.js",
|
|
54
|
+
"build:css": "PDS_CSS_LAYER=pds-v2 postcss src/core.css -o dist/css/pds-core.css",
|
|
55
|
+
"build:css:components": "PDS_CSS_LAYER=pds-v2 postcss src/components/index.css -o dist/css/pds-components.css",
|
|
56
|
+
"build:css:layouts": "PDS_CSS_LAYER=pds-v2 postcss src/layouts/index.css -o dist/css/pds-layouts.css",
|
|
57
|
+
"build:css:packageExtraCss": "PDS_CSS_LAYER=pds-v2 node scripts/package-extra-css.js",
|
|
51
58
|
"build:css:watch": "npm run build:css -- -w",
|
|
52
59
|
"prestorybook": "node scripts/filter-exports-by-tags.js && npm run build:css && npm run build:css:components && npm run build:css:layouts && npm run generate:ux-writing-search-index && npm run generate:ux-writing-guide",
|
|
53
|
-
"storybook": "storybook dev -p 6006",
|
|
60
|
+
"storybook": "PDS_CSS_LAYER=pds-v2 storybook dev -p 6006",
|
|
54
61
|
"prebuild": "npm run build:css && npm run build:css:components && npm run build:css:layouts && npm run build:css:packageExtraCss && npm run generate:ux-writing-search-index && npm run generate:ux-writing-guide",
|
|
55
|
-
"build": "NODE_ENV=production storybook build",
|
|
62
|
+
"build": "NODE_OPTIONS=--max-old-space-size=4096 NODE_ENV=production storybook build",
|
|
56
63
|
"build-storybook": "NODE_ENV=production storybook build",
|
|
57
|
-
"postbuild": "node scripts/
|
|
64
|
+
"postbuild": "node scripts/generate-html-docs.js && node scripts/build-starter-template.js && node scripts/copy-mcp-assets.js && node scripts/verify-mcp-build.js",
|
|
58
65
|
"verify:mcp": "node scripts/verify-mcp-build.js",
|
|
59
66
|
"start": "node index.js",
|
|
60
67
|
"develop": "npm run storybook",
|
|
@@ -68,6 +75,8 @@
|
|
|
68
75
|
"test:vrt": "playwright test --project 'firefox' 'safari' 'iphone'",
|
|
69
76
|
"pretest:vrt:update": "npm run build:css",
|
|
70
77
|
"test:vrt:update": "npm run test:vrt -- --update-snapshots",
|
|
78
|
+
"test:vrt:docker": "bash scripts/vrt-docker.sh",
|
|
79
|
+
"test:vrt:docker:update": "bash scripts/vrt-docker.sh update",
|
|
71
80
|
"pretest:a11y:generate": "npm run build:css",
|
|
72
81
|
"test:a11y:generate": "DISABLE_A11Y_ADDON=true npm run build && node __tests__/a11y/a11y.generate-tests.js",
|
|
73
82
|
"test:a11y": "USE_STATIC_STORYBOOK=true DISABLE_A11Y_ADDON=true playwright test --project 'a11y'",
|
|
@@ -88,84 +97,100 @@
|
|
|
88
97
|
"generate:ux-writing-search-index": "node scripts/generate-search-index.js",
|
|
89
98
|
"generate:ux-writing-guide": "node scripts/generate-ux-writing-guide.js",
|
|
90
99
|
"generate:html-docs": "node scripts/generate-html-docs.js",
|
|
100
|
+
"test:codemods": "jest --testPathPatterns=codemods/",
|
|
91
101
|
"test:version-switcher": "bash scripts/test-version-switcher.sh",
|
|
92
102
|
"pack:local": "bash scripts/pack-local.sh",
|
|
93
103
|
"prepare": "husky install",
|
|
94
104
|
"chromatic": "npx chromatic --project-token=chpt_8f57e9785118676"
|
|
95
105
|
},
|
|
106
|
+
"jest": {
|
|
107
|
+
"testMatch": [
|
|
108
|
+
"**/codemods/**/__tests__/**/*.test.js"
|
|
109
|
+
],
|
|
110
|
+
"testEnvironment": "node"
|
|
111
|
+
},
|
|
96
112
|
"devDependencies": {
|
|
97
113
|
"@arethetypeswrong/cli": "^0.15.3",
|
|
98
|
-
"@axe-core/playwright": "^4.11.
|
|
99
|
-
"@babel/preset-env": "^7.
|
|
114
|
+
"@axe-core/playwright": "^4.11.3",
|
|
115
|
+
"@babel/preset-env": "^7.29.5",
|
|
100
116
|
"@babel/preset-react": "^7.18.6",
|
|
101
117
|
"@babel/preset-typescript": "^7.28.5",
|
|
102
118
|
"@csstools/postcss-design-tokens": "^2.0.4",
|
|
103
119
|
"@csstools/postcss-global-data": "^1.0.3",
|
|
104
|
-
"@
|
|
105
|
-
"@
|
|
106
|
-
"@
|
|
107
|
-
"@
|
|
108
|
-
"@storybook/addon-
|
|
109
|
-
"@storybook/addon-
|
|
110
|
-
"@storybook/
|
|
111
|
-
"@storybook/
|
|
112
|
-
"@
|
|
113
|
-
"@
|
|
114
|
-
"@
|
|
115
|
-
"@
|
|
116
|
-
"@
|
|
120
|
+
"@fortawesome/free-brands-svg-icons": "7.2.0",
|
|
121
|
+
"@fortawesome/pro-regular-svg-icons": "7.2.0",
|
|
122
|
+
"@fortawesome/pro-solid-svg-icons": "7.2.0",
|
|
123
|
+
"@playwright/test": "^1.60.0",
|
|
124
|
+
"@storybook/addon-a11y": "^10.4.0",
|
|
125
|
+
"@storybook/addon-docs": "^10.4.0",
|
|
126
|
+
"@storybook/addon-links": "^10.4.0",
|
|
127
|
+
"@storybook/addon-mcp": "^0.6.0",
|
|
128
|
+
"@storybook/addon-webpack5-compiler-swc": "^4.0.3",
|
|
129
|
+
"@storybook/react-vite": "^10.4.0",
|
|
130
|
+
"@storybook/react-webpack5": "^10.4.0",
|
|
131
|
+
"@types/prismjs": "^1.26.6",
|
|
132
|
+
"@types/react": "^19.2.14",
|
|
133
|
+
"@typescript-eslint/eslint-plugin": "^8.59.3",
|
|
134
|
+
"@typescript-eslint/parser": "^8.59.3",
|
|
135
|
+
"@vitejs/plugin-react": "^6.0.2",
|
|
117
136
|
"@vueless/storybook-dark-mode": "^9.0.9",
|
|
118
137
|
"axe-html-reporter": "^2.2.3",
|
|
119
138
|
"chromatic": "^13.3.4",
|
|
120
139
|
"concurrently": "^8.0.1",
|
|
121
140
|
"cssnano": "^6.0.1",
|
|
122
|
-
"eslint": "^9.
|
|
141
|
+
"eslint": "^9.39.4",
|
|
123
142
|
"eslint-config-prettier": "^9.1.0",
|
|
124
143
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
125
144
|
"eslint-plugin-import": "^2.32.0",
|
|
126
|
-
"eslint-plugin-prettier": "^5.
|
|
145
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
127
146
|
"eslint-plugin-react": "^7.32.2",
|
|
147
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
128
148
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
129
149
|
"eslint-plugin-sort-destructure-keys": "^2.0.0",
|
|
130
|
-
"eslint-plugin-storybook": "^10.
|
|
150
|
+
"eslint-plugin-storybook": "^10.4.0",
|
|
131
151
|
"eslint-plugin-typescript-sort-keys": "^3.3.0",
|
|
132
152
|
"fast-glob": "^3.3.2",
|
|
133
153
|
"husky": "^8.0.3",
|
|
154
|
+
"jest": "^30.4.2",
|
|
155
|
+
"jscodeshift": "^17.3.0",
|
|
134
156
|
"lint-staged": "^13.2.3",
|
|
135
157
|
"pino-pretty": "^13.1.3",
|
|
136
158
|
"plop": "^3.1.2",
|
|
137
|
-
"postcss": "^8.
|
|
159
|
+
"postcss": "^8.5.14",
|
|
138
160
|
"postcss-cli": "^10.1.0",
|
|
139
161
|
"postcss-custom-media": "^9.1.3",
|
|
140
162
|
"postcss-import": "^15.1.0",
|
|
141
163
|
"postcss-insert": "^1.0.0",
|
|
142
|
-
"postcss-loader": "^8.
|
|
164
|
+
"postcss-loader": "^8.2.1",
|
|
143
165
|
"postcss-nested": "^6.0.1",
|
|
144
|
-
"prettier": "3.
|
|
145
|
-
"prettier-plugin-css-order": "^2.
|
|
166
|
+
"prettier": "^3.8.3",
|
|
167
|
+
"prettier-plugin-css-order": "^2.2.0",
|
|
146
168
|
"react": "^18.2.0",
|
|
147
169
|
"react-dom": "^18.2.0",
|
|
148
|
-
"
|
|
149
|
-
"
|
|
150
|
-
"tsc-alias": "^1.8.16",
|
|
170
|
+
"storybook": "^10.4.0",
|
|
171
|
+
"tsc-alias": "^1.8.17",
|
|
151
172
|
"typescript": "^5.4.5",
|
|
152
|
-
"vite": "^
|
|
173
|
+
"vite": "^8.0.16",
|
|
153
174
|
"vite-plugin-lib-inject-css": "^2.1.1",
|
|
154
175
|
"vite-tsconfig-paths": "^4.3.2"
|
|
155
176
|
},
|
|
156
177
|
"peerDependencies": {
|
|
157
|
-
"react": "^
|
|
158
|
-
"react-dom": "^
|
|
178
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
179
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
159
180
|
},
|
|
160
181
|
"dependencies": {
|
|
182
|
+
"@dnd-kit/core": "^6.3.1",
|
|
183
|
+
"@dnd-kit/sortable": "^10.0.0",
|
|
184
|
+
"@dnd-kit/utilities": "^3.2.2",
|
|
161
185
|
"@floating-ui/react": "^0.24.3",
|
|
162
186
|
"@floating-ui/react-dom": "~1.3.0",
|
|
163
|
-
"@
|
|
187
|
+
"@internationalized/date": "^3.12.2",
|
|
188
|
+
"@pantheon-systems/pds-design-tokens": "^2.0.0-alpha.70",
|
|
164
189
|
"@reactuses/core": "^5.0.15",
|
|
165
190
|
"date-fns": "^4.1.0",
|
|
166
|
-
"downshift": "^9.
|
|
167
|
-
"express": "^
|
|
168
|
-
"express-rate-limit": "^8.2
|
|
191
|
+
"downshift": "^9.3.2",
|
|
192
|
+
"express": "^5.0.0",
|
|
193
|
+
"express-rate-limit": "^8.5.2",
|
|
169
194
|
"focus-trap-react": "^10.2.1",
|
|
170
195
|
"hash-sum": "^2.0.0",
|
|
171
196
|
"modern-normalize": "^3.0.1",
|
|
@@ -173,16 +198,27 @@
|
|
|
173
198
|
"pino-http": "^11.0.0",
|
|
174
199
|
"prism-react-renderer": "^2.4.1",
|
|
175
200
|
"prismjs": "^1.29.0",
|
|
201
|
+
"react-aria": "^3.50.0",
|
|
176
202
|
"react-code-block": "^1.1.1",
|
|
177
|
-
"react-day-picker": "^9.11.1",
|
|
178
203
|
"react-device-detect": "^2.2.3",
|
|
179
204
|
"react-hotkeys-hook": "^4.5.1",
|
|
180
|
-
"react-
|
|
205
|
+
"react-stately": "^3.48.0",
|
|
206
|
+
"react-toastify": "^11.1.0",
|
|
207
|
+
"recharts": "^3.8.1"
|
|
181
208
|
},
|
|
182
|
-
"
|
|
183
|
-
"@
|
|
184
|
-
"
|
|
185
|
-
"
|
|
209
|
+
"overrides": {
|
|
210
|
+
"@babel/plugin-transform-modules-systemjs": "^7.29.4",
|
|
211
|
+
"fast-uri": "^3.1.7",
|
|
212
|
+
"hono": "^4.12.18",
|
|
213
|
+
"ip-address": "^10.1.1",
|
|
214
|
+
"js-yaml": "^4.3.2",
|
|
215
|
+
"micromatch": "^4.0.8",
|
|
216
|
+
"minimatch": "^10.0.0",
|
|
217
|
+
"postcss-insert": {
|
|
218
|
+
"postcss": "^8.4.31"
|
|
219
|
+
},
|
|
220
|
+
"valibot": "^1.4.2",
|
|
221
|
+
"yaml": "^2.8.3"
|
|
186
222
|
},
|
|
187
223
|
"lint-staged": {
|
|
188
224
|
"*": "prettier --write --ignore-unknown",
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { ContainerWidth, HeadingLevel } from '../../libs/types/custom-types';
|
|
3
|
-
import './../buttons/Button/button.css';
|
|
4
|
-
import './cta-slice.css';
|
|
5
|
-
interface CTASliceProps extends ComponentPropsWithoutRef<'div'> {
|
|
6
|
-
/**
|
|
7
|
-
* Background color of slice
|
|
8
|
-
*/
|
|
9
|
-
backgroundColor?: 'default' | 'secondary';
|
|
10
|
-
/**
|
|
11
|
-
* Additional class names
|
|
12
|
-
*/
|
|
13
|
-
className?: string;
|
|
14
|
-
/**
|
|
15
|
-
* PDS container width.
|
|
16
|
-
*/
|
|
17
|
-
containerWidth?: ContainerWidth;
|
|
18
|
-
/**
|
|
19
|
-
* Heading level
|
|
20
|
-
*/
|
|
21
|
-
headingLevel?: HeadingLevel;
|
|
22
|
-
/**
|
|
23
|
-
* Heading text
|
|
24
|
-
*/
|
|
25
|
-
headingText: string;
|
|
26
|
-
/**
|
|
27
|
-
* Further explain block
|
|
28
|
-
*/
|
|
29
|
-
leadText?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Primary link content
|
|
32
|
-
*/
|
|
33
|
-
primaryLinkContent: ReactNode;
|
|
34
|
-
/**
|
|
35
|
-
* Optional secondary link content
|
|
36
|
-
*/
|
|
37
|
-
secondaryLinkContent?: ReactNode;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* CTA Slice UI component
|
|
41
|
-
*/
|
|
42
|
-
export declare const CTASlice: ({ backgroundColor, className, containerWidth, headingLevel, headingText, leadText, primaryLinkContent, secondaryLinkContent, ...props }: CTASliceProps) => import("react/jsx-runtime").JSX.Element;
|
|
43
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
import './dashboard-stat.css';
|
|
3
|
-
export type DashboardStatStatus = 'success' | 'warning' | 'launch' | 'error' | 'ready' | 'notReady';
|
|
4
|
-
/**
|
|
5
|
-
* Prop types for DashboardStat
|
|
6
|
-
*/
|
|
7
|
-
export interface DashboardStatProps extends ComponentPropsWithoutRef<'div'> {
|
|
8
|
-
/**
|
|
9
|
-
* Additional class names.
|
|
10
|
-
*/
|
|
11
|
-
className?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Value of the stat, displayed next to the status icon.
|
|
14
|
-
*/
|
|
15
|
-
stat?: string | number;
|
|
16
|
-
/**
|
|
17
|
-
* Status of the stat, which determines the icon and icon color.
|
|
18
|
-
*/
|
|
19
|
-
status?: DashboardStatStatus;
|
|
20
|
-
/**
|
|
21
|
-
* Title of the stat, displayed as the main heading of the component.
|
|
22
|
-
*/
|
|
23
|
-
title?: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* DashboardStat UI component
|
|
27
|
-
*/
|
|
28
|
-
export declare const DashboardStat: ({ className, stat, status, title, ...props }: DashboardStatProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
import './pull-quote.css';
|
|
3
|
-
interface Attribution {
|
|
4
|
-
name: string;
|
|
5
|
-
org: string;
|
|
6
|
-
title: string;
|
|
7
|
-
}
|
|
8
|
-
interface PullQuoteProps extends ComponentPropsWithoutRef<'div'> {
|
|
9
|
-
/**
|
|
10
|
-
* Attribution for the quote
|
|
11
|
-
*/
|
|
12
|
-
attribution?: Attribution;
|
|
13
|
-
/**
|
|
14
|
-
* Additional class names
|
|
15
|
-
*/
|
|
16
|
-
className?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Image src. For stand-alone layout only, will not render for inline layout.
|
|
19
|
-
*/
|
|
20
|
-
image?: string;
|
|
21
|
-
/**
|
|
22
|
-
* The layout type for the pull quote
|
|
23
|
-
*/
|
|
24
|
-
layoutType?: 'stand-alone' | 'inline';
|
|
25
|
-
/**
|
|
26
|
-
* The quote text
|
|
27
|
-
*/
|
|
28
|
-
quote: string;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* PullQuote UI component
|
|
32
|
-
*/
|
|
33
|
-
export declare const PullQuote: ({ attribution, className, image, layoutType, quote, ...props }: PullQuoteProps) => import("react/jsx-runtime").JSX.Element;
|
|
34
|
-
export {};
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { SitePlanLevel, SiteType } from '../../libs/types/custom-types';
|
|
3
|
-
import './site-dashboard-heading.css';
|
|
4
|
-
/**
|
|
5
|
-
* Prop types for SiteDashboardHeading
|
|
6
|
-
*/
|
|
7
|
-
export interface SiteDashboardHeadingProps extends ComponentPropsWithoutRef<'div'> {
|
|
8
|
-
/**
|
|
9
|
-
* Additional class names
|
|
10
|
-
*/
|
|
11
|
-
className?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Function to handle upgrade click.
|
|
14
|
-
*/
|
|
15
|
-
handleUpgradeClick?: () => void;
|
|
16
|
-
/**
|
|
17
|
-
* Function to handle popover content.
|
|
18
|
-
*/
|
|
19
|
-
popoverContent?: ReactNode;
|
|
20
|
-
/**
|
|
21
|
-
* Function to handle popover open state.
|
|
22
|
-
*/
|
|
23
|
-
popoverIsOpen?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Title for the popover.
|
|
26
|
-
*/
|
|
27
|
-
popoverTitle?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Function to set popover open state.
|
|
30
|
-
*/
|
|
31
|
-
setPopoverIsOpen?: (isOpen: boolean) => void;
|
|
32
|
-
/**
|
|
33
|
-
* Name of the site.
|
|
34
|
-
*/
|
|
35
|
-
siteName: string;
|
|
36
|
-
/**
|
|
37
|
-
* Site plan level.
|
|
38
|
-
*/
|
|
39
|
-
sitePlanLevel?: SitePlanLevel | (string & {});
|
|
40
|
-
/**
|
|
41
|
-
* Site type.
|
|
42
|
-
*/
|
|
43
|
-
siteType?: SiteType;
|
|
44
|
-
/**
|
|
45
|
-
* Additional props to pass to the trigger component. Accepts any HTML div attributes.
|
|
46
|
-
*/
|
|
47
|
-
triggerProps?: ComponentPropsWithoutRef<'div'> & {
|
|
48
|
-
[key: `data-${string}`]: string | undefined;
|
|
49
|
-
};
|
|
50
|
-
/**
|
|
51
|
-
* Label for the upgrade button.
|
|
52
|
-
*/
|
|
53
|
-
upgradeLabel: string;
|
|
54
|
-
/**
|
|
55
|
-
* Name of the workspace.
|
|
56
|
-
*/
|
|
57
|
-
workspaceName?: string;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* SiteDashboardHeading UI component
|
|
61
|
-
*/
|
|
62
|
-
export declare const SiteDashboardHeading: ({ className, handleUpgradeClick, popoverContent, popoverIsOpen, popoverTitle, setPopoverIsOpen, siteName, sitePlanLevel, siteType, triggerProps, upgradeLabel, workspaceName, ...props }: SiteDashboardHeadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
import { PDSIcon } from '../icons/Icon/Icon';
|
|
3
|
-
import './social-links.css';
|
|
4
|
-
interface SocialLinksProps extends ComponentPropsWithoutRef<'ul'> {
|
|
5
|
-
/**
|
|
6
|
-
* Additional class names
|
|
7
|
-
*/
|
|
8
|
-
className?: string;
|
|
9
|
-
/**
|
|
10
|
-
* Array of social media links
|
|
11
|
-
*/
|
|
12
|
-
linkItems?: (keyof typeof socialData)[];
|
|
13
|
-
}
|
|
14
|
-
declare const socialData: Record<string, {
|
|
15
|
-
icon: PDSIcon;
|
|
16
|
-
label: string;
|
|
17
|
-
url: string;
|
|
18
|
-
}>;
|
|
19
|
-
/**
|
|
20
|
-
* SocialLinks UI component
|
|
21
|
-
*/
|
|
22
|
-
export declare const SocialLinks: ({ className, linkItems, ...props }: SocialLinksProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { HeadingLevelCommon } from '../../../libs/types/custom-types';
|
|
2
|
-
import './card-heading.css';
|
|
3
|
-
/**
|
|
4
|
-
* Prop types for CardHeading
|
|
5
|
-
*/
|
|
6
|
-
export interface CardHeadingProps {
|
|
7
|
-
/**
|
|
8
|
-
* Additional class names
|
|
9
|
-
*/
|
|
10
|
-
className?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Font size of the heading. Default is `XL`.
|
|
13
|
-
*/
|
|
14
|
-
fontSize?: 'L' | 'XL';
|
|
15
|
-
/**
|
|
16
|
-
* Font weight of the heading. Default is `bold`.
|
|
17
|
-
*/
|
|
18
|
-
fontWeight?: 'bold' | 'semibold';
|
|
19
|
-
/**
|
|
20
|
-
* Heading level or `span`.
|
|
21
|
-
*/
|
|
22
|
-
level?: HeadingLevelCommon;
|
|
23
|
-
/**
|
|
24
|
-
* Heading text.
|
|
25
|
-
*/
|
|
26
|
-
text?: string;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* CardHeading UI component
|
|
30
|
-
*/
|
|
31
|
-
export declare const CardHeading: ({ className, fontSize, fontWeight, level, text, ...props }: CardHeadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import './card-select-group.css';
|
|
3
|
-
export interface CardOption {
|
|
4
|
-
/**
|
|
5
|
-
* Option description
|
|
6
|
-
*/
|
|
7
|
-
description?: string | ReactNode;
|
|
8
|
-
/**
|
|
9
|
-
* Unique ID for the option
|
|
10
|
-
* @default ''
|
|
11
|
-
*/
|
|
12
|
-
id?: string;
|
|
13
|
-
/**
|
|
14
|
-
* Option label
|
|
15
|
-
*/
|
|
16
|
-
label: string | ReactNode;
|
|
17
|
-
/**
|
|
18
|
-
* Option value
|
|
19
|
-
*/
|
|
20
|
-
value: string;
|
|
21
|
-
}
|
|
22
|
-
export interface CardSelectGroupProps extends Omit<ComponentPropsWithoutRef<'fieldset'>, 'onChange'> {
|
|
23
|
-
/**
|
|
24
|
-
* Additional class names
|
|
25
|
-
*/
|
|
26
|
-
className?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Optional initial selected option value
|
|
29
|
-
*/
|
|
30
|
-
defaultValue?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Unique ID for the card select group
|
|
33
|
-
*/
|
|
34
|
-
id: string;
|
|
35
|
-
/**
|
|
36
|
-
* Label for the card select group
|
|
37
|
-
*/
|
|
38
|
-
label: string;
|
|
39
|
-
/**
|
|
40
|
-
* Display of the component label. `hidden` visually hides the label but keeps it accessible to screen readers.
|
|
41
|
-
*/
|
|
42
|
-
labelDisplay?: 'left' | 'center' | 'hidden';
|
|
43
|
-
/**
|
|
44
|
-
* Column layout of the cards at breakpoints medium and above.
|
|
45
|
-
*/
|
|
46
|
-
layout?: 'auto' | 'twoAcross' | 'threeAcross';
|
|
47
|
-
/**
|
|
48
|
-
* Callback function that will return the updated value from the instance when it changes.
|
|
49
|
-
* Function should have the shape of: `(value) => { <do stuff here> } `.
|
|
50
|
-
*/
|
|
51
|
-
onChange?: (value: string) => void;
|
|
52
|
-
/**
|
|
53
|
-
* Array of card options
|
|
54
|
-
*/
|
|
55
|
-
options?: CardOption[];
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* CardSelectGroup UI component
|
|
59
|
-
*/
|
|
60
|
-
export declare const CardSelectGroup: ({ className, defaultValue, id, label, labelDisplay, layout, onChange, options, ...props }: CardSelectGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { HeadingLevelCommon } from '../../../libs/types/custom-types';
|
|
3
|
-
import './empty-state-card.css';
|
|
4
|
-
/**
|
|
5
|
-
* Prop types for EmptyStateCard
|
|
6
|
-
*/
|
|
7
|
-
export interface EmptyStateCardProps extends ComponentPropsWithoutRef<'div'> {
|
|
8
|
-
/**
|
|
9
|
-
* Additional class names
|
|
10
|
-
*/
|
|
11
|
-
className?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Heading level or `span`.
|
|
14
|
-
*/
|
|
15
|
-
headingLevel?: HeadingLevelCommon;
|
|
16
|
-
/**
|
|
17
|
-
* Heading text.
|
|
18
|
-
*/
|
|
19
|
-
headingText: string;
|
|
20
|
-
/**
|
|
21
|
-
* Whether the link is external or not.
|
|
22
|
-
*/
|
|
23
|
-
isLinkExternal?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* A link element using the router of your choice.
|
|
26
|
-
*/
|
|
27
|
-
linkContent: ReactNode;
|
|
28
|
-
/**
|
|
29
|
-
* Summary paragraph.
|
|
30
|
-
*/
|
|
31
|
-
summary: string;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* EmptyStateCard UI component
|
|
35
|
-
*/
|
|
36
|
-
export declare const EmptyStateCard: ({ className, headingLevel, headingText, isLinkExternal, linkContent, summary, ...props }: EmptyStateCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { HeadingLevelCommon } from '../../../libs/types/custom-types';
|
|
3
|
-
import './links-card.css';
|
|
4
|
-
/**
|
|
5
|
-
* Prop types for LinksCard
|
|
6
|
-
*/
|
|
7
|
-
interface LinksCardProps extends ComponentPropsWithoutRef<'div'> {
|
|
8
|
-
/**
|
|
9
|
-
* Additional class names
|
|
10
|
-
*/
|
|
11
|
-
className?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Heading level
|
|
14
|
-
*/
|
|
15
|
-
headingLevel?: HeadingLevelCommon;
|
|
16
|
-
/**
|
|
17
|
-
* Link Card heading
|
|
18
|
-
*/
|
|
19
|
-
headingText: string;
|
|
20
|
-
/**
|
|
21
|
-
* Array of links
|
|
22
|
-
*/
|
|
23
|
-
linkItems?: ReactNode[];
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Links Card UI component
|
|
27
|
-
*/
|
|
28
|
-
export declare const LinksCard: ({ className, headingLevel, headingText, linkItems, ...props }: LinksCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
-
export {};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ReactElement } from 'react';
|
|
2
|
-
import { BadgeColor } from '../../badges/Badge/Badge';
|
|
3
|
-
import './new-site-card.css';
|
|
4
|
-
interface BadgeValueType {
|
|
5
|
-
color: BadgeColor;
|
|
6
|
-
label: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const badgeTypes: {
|
|
9
|
-
[key: string]: BadgeValueType;
|
|
10
|
-
};
|
|
11
|
-
type ActualPlatformIconType = 'drupal' | 'drupal7' | 'front-end-sites' | 'gatsby' | 'gatsby-wp' | 'google' | 'import-custom' | 'microsoft' | 'next' | 'next-drupal' | 'next-wp' | 'splunk' | 'sumo-logic' | 'wordpress';
|
|
12
|
-
type PantheonIconType = 'pantheon';
|
|
13
|
-
type PlatformIconType = ActualPlatformIconType | PantheonIconType;
|
|
14
|
-
type IconVariantType = 'bitbucket' | 'github' | 'gitlab';
|
|
15
|
-
type IconType = IconVariantType | PlatformIconType;
|
|
16
|
-
/**
|
|
17
|
-
* Prop types for NewSiteCard
|
|
18
|
-
*/
|
|
19
|
-
interface NewSiteCardProps extends ComponentPropsWithoutRef<'div'> {
|
|
20
|
-
/**
|
|
21
|
-
* Optional indicator badge type. Choose from only early-access at this time.
|
|
22
|
-
*/
|
|
23
|
-
badge?: 'early-access';
|
|
24
|
-
/**
|
|
25
|
-
* Additional class names
|
|
26
|
-
*/
|
|
27
|
-
className?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Icon. Accepts any platform type from PlatformIcon or github, gitlab, bitbucket from Icon.
|
|
30
|
-
*/
|
|
31
|
-
icon?: IconType;
|
|
32
|
-
/**
|
|
33
|
-
* Text for screen readers when link opens in new window
|
|
34
|
-
*/
|
|
35
|
-
newWindowString?: string;
|
|
36
|
-
/**
|
|
37
|
-
* The primary link for the selection card.
|
|
38
|
-
*/
|
|
39
|
-
selectionLink: ReactElement;
|
|
40
|
-
/**
|
|
41
|
-
* Card subtitle
|
|
42
|
-
*/
|
|
43
|
-
subtitle?: string;
|
|
44
|
-
/**
|
|
45
|
-
* Card summary
|
|
46
|
-
*/
|
|
47
|
-
summary?: string;
|
|
48
|
-
/**
|
|
49
|
-
* Array of supplemental links. Maximum of 2.
|
|
50
|
-
*/
|
|
51
|
-
supplementalLinks?: ReactElement[];
|
|
52
|
-
/**
|
|
53
|
-
* Card title
|
|
54
|
-
*/
|
|
55
|
-
title: string;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* NewSiteCard UI component
|
|
59
|
-
*/
|
|
60
|
-
export declare const NewSiteCard: ({ badge, className, icon, newWindowString, selectionLink, subtitle, summary, supplementalLinks, title, ...props }: NewSiteCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
61
|
-
export {};
|